shaka-player 3.3.16 → 3.3.17

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 (37) hide show
  1. package/.github/workflows/selenium-lab-tests.yaml +22 -0
  2. package/CHANGELOG.md +16 -0
  3. package/dist/locales.js +30 -30
  4. package/dist/shaka-player.compiled.d.ts +5 -0
  5. package/dist/shaka-player.compiled.debug.d.ts +5 -0
  6. package/dist/shaka-player.compiled.debug.externs.js +4 -0
  7. package/dist/shaka-player.compiled.debug.js +80 -75
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +4 -0
  10. package/dist/shaka-player.compiled.js +255 -252
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +5 -0
  13. package/dist/shaka-player.ui.debug.d.ts +5 -0
  14. package/dist/shaka-player.ui.debug.externs.js +4 -0
  15. package/dist/shaka-player.ui.debug.js +94 -89
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +4 -0
  18. package/dist/shaka-player.ui.js +288 -285
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/externs/shaka/text.js +7 -0
  21. package/lib/dash/segment_template.js +17 -5
  22. package/lib/hls/hls_parser.js +1 -1
  23. package/lib/player.js +1 -1
  24. package/lib/polyfill/media_capabilities.js +1 -0
  25. package/lib/text/cue.js +6 -0
  26. package/lib/text/ui_text_displayer.js +1 -5
  27. package/lib/text/vtt_text_parser.js +256 -91
  28. package/lib/util/platform.js +8 -0
  29. package/package.json +1 -1
  30. package/support.html +1 -0
  31. package/test/dash/dash_parser_manifest_unit.js +0 -36
  32. package/test/test/util/layout_tests.js +433 -0
  33. package/test/test/util/util.js +0 -120
  34. package/test/{ui → text}/text_displayer_layout_unit.js +59 -235
  35. package/test/text/ui_text_displayer_unit.js +2 -4
  36. package/test/text/vtt_text_parser_unit.js +127 -6
  37. package/test/text/web_vtt_layout_integration.js +528 -0
@@ -16,31 +16,31 @@ fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(v
16
16
  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 la="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ma;
17
17
  if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ma;
18
18
  function u(a,b){a.prototype=la(b.prototype);a.prototype.constructor=a;if(qa)qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Pi=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
- function ta(a,b){a.i={bf:b,nf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function A(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function D(a){a.g=0}function E(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function I(a,b){a.m=b||0;var c=a.i.bf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
- function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.nf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(a.g);var c=a.g.l;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ba(a)}
19
+ function ta(a,b){a.i={cf:b,pf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function A(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function D(a){a.g=0}function E(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function I(a,b){a.m=b||0;var c=a.i.cf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
+ function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.pf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(a.g);var c=a.g.l;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ba(a)}
21
21
  function Aa(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ba(a)}a.g.l=null;d.call(a.g,f);return Ba(a)}
22
- function Ba(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.nf)throw b.bf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
22
+ function Ba(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.pf)throw b.cf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
23
  function Ca(a){this.next=function(b){sa(a.g);a.g.l?b=Aa(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ba(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Aa(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ba(a));return b};this["return"]=function(b){return za(a,b)};this[Symbol.iterator]=function(){return this}}
24
24
  function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function M(a){return Ea(new Ca(new ya(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
25
  fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
26
26
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.l)}};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.m(g)}};
27
27
  b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
28
28
  function(){if(this.A)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
29
- b.prototype.J=function(g){var h=this.j();g.$c(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,t){return"function"==typeof p?function(v){try{l(p(v))}catch(y){m(y)}}:t}var l,m,n=new b(function(p,t){l=p;m=t});this.$c(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.$c=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).$c(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(y){p[v]=y;t--;0==t&&l(p)}}var p=[],t=0;do p.push(void 0),t++,d(k.value).$c(n(p.length-1),m),k=h.next();
29
+ b.prototype.J=function(g){var h=this.j();g.$c(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,t){return"function"==typeof p?function(v){try{l(p(v))}catch(w){m(w)}}:t}var l,m,n=new b(function(p,t){l=p;m=t});this.$c(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.$c=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).$c(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(w){p[v]=w;t--;0==t&&l(p)}}var p=[],t=0;do p.push(void 0),t++,d(k.value).$c(n(p.length-1),m),k=h.next();
31
31
  while(!k.done)})};return b});function Ga(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
32
  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(!Ga(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
33
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ga(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ga(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
34
  Ga(k,g)&&Ga(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ga(k,g)&&Ga(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- fa("Map",function(a){function b(){var h={};return h.qb=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.qb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ga(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,za:p}}return{id:l,
35
+ fa("Map",function(a){function b(){var h={};return h.rb=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.rb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ga(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,za:p}}return{id:l,
36
36
  list:m,index:-1,za: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||
37
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.za?l.za.value=k:(l.za={next:this.g,qb:this.g.qb,head:this.g,key:h,value:k},l.list.push(l.za),this.g.qb.next=l.za,this.g.qb=l.za,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.za&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.za.qb.next=h.za.next,h.za.next.qb=h.za.qb,
38
- h.za.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.qb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).za};e.prototype.get=function(h){return(h=d(this,h).za)&&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(),
37
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.za?l.za.value=k:(l.za={next:this.g,rb:this.g.rb,head:this.g,key:h,value:k},l.list.push(l.za),this.g.rb.next=l.za,this.g.rb=l.za,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.za&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.za.rb.next=h.za.next,h.za.next.rb=h.za.rb,
38
+ h.za.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.rb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).za};e.prototype.get=function(h){return(h=d(this,h).za)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
39
  m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ha(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 Ha(this,function(b){return b})}});
40
40
  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||
41
41
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;
42
42
  b.prototype[Symbol.iterator]=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}});
43
- 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}});
43
+ 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{lf:e,v:f}}return{lf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).lf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
44
44
  fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});function 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+""}
45
45
  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){for(var d=Ka(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
46
46
  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)Ga(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 Ha(this,function(b,c){return c})}});
@@ -53,7 +53,7 @@ fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(
53
53
  SPDX-License-Identifier: Apache-2.0
54
54
  */
55
55
  function O(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
- function Oa(a){var b=new O(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}O.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};O.prototype.stopImmediatePropagation=function(){this.g=!0};O.prototype.stopPropagation=function(){};N("shaka.util.FakeEvent",O);function Pa(){}function Ra(){}function Sa(){}function Ta(a){var b=Fa.apply(1,arguments);Ua.has(a)||(Ua.add(a),Sa.apply(Pa,ia(b)))}function Va(){}function Wa(){}function Xa(){}function Ya(){}var Ua=new Set;if(window.console&&window.console.log.bind){var Za={},$a=(Za[1]=console.error.bind(console),Za[2]=console.warn.bind(console),Za[3]=console.info.bind(console),Za[4]=console.log.bind(console),Za[5]=console.debug.bind(console),Za[6]=console.debug.bind(console),Za);Sa=$a[2];Ra=$a[1]};function ab(){this.g={}}q=ab.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function bb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function cb(){this.va=new ab;this.md=this}cb.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};cb.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.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.md;a.currentTarget=this.md;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
56
+ function Oa(a){var b=new O(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}O.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};O.prototype.stopImmediatePropagation=function(){this.g=!0};O.prototype.stopPropagation=function(){};N("shaka.util.FakeEvent",O);function Pa(){}function Qa(){}function Sa(){}function Ta(a){var b=Fa.apply(1,arguments);Ua.has(a)||(Ua.add(a),Sa.apply(Pa,ia(b)))}function Va(){}function Wa(){}function Xa(){}function Ya(){}var Ua=new Set;if(window.console&&window.console.log.bind){var Za={},$a=(Za[1]=console.error.bind(console),Za[2]=console.warn.bind(console),Za[3]=console.info.bind(console),Za[4]=console.log.bind(console),Za[5]=console.debug.bind(console),Za[6]=console.debug.bind(console),Za);Sa=$a[2];Qa=$a[1]};function ab(){this.g={}}q=ab.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function bb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function cb(){this.va=new ab;this.md=this}cb.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};cb.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.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.md;a.currentTarget=this.md;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
57
57
  cb.prototype.release=function(){this.va=null};function db(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function eb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function fb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function hb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
58
58
  @license
59
59
  Copyright 2008 The Closure Library Authors
@@ -78,7 +78,7 @@ DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADE
78
78
  CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,
79
79
  FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,
80
80
  CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,
81
- 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 yb(a,b){this.g=a;this.h=b}yb.prototype.toString=function(){return"v"+this.g+"."+this.h};function zb(a,b){var c=new yb(4,0),d=Ab,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Bb(a,b,c,d){Sa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Cb(a,b,c,d){Ra([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Ab=null;function Db(a,b){return a.concat(b)}function Eb(){}function Fb(a){return null!=a}function Gb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(zb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){zb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Hb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new jb(d)});return a.map(function(d){return new jb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Db,[]).map(function(d){return d.toString()})}function Ib(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
81
+ 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 yb(a,b){this.g=a;this.h=b}yb.prototype.toString=function(){return"v"+this.g+"."+this.h};function zb(a,b){var c=new yb(4,0),d=Ab,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Bb(a,b,c,d){Sa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Cb(a,b,c,d){Qa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Ab=null;function Db(a,b){return a.concat(b)}function Eb(){}function Fb(a){return null!=a}function Gb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(zb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){zb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Hb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new jb(d)});return a.map(function(d){return new jb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Db,[]).map(function(d){return d.toString()})}function Ib(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
82
82
  function Jb(a,b){if(1==b.length)return b[0];var c=Kb(a,b);if(null!=c)return c;throw new P(2,4,4025,b);}function Kb(a,b){for(var c=r(Lb[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==Mb?"":null}
83
83
  var Mb="text",Nb={hb:"video",Gb:"audio",oa:Mb,xc:"image",rh:"application"},Lb={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 Ob(){}function Pb(a,b){a=Qb(a);b=Qb(b);return a.split("-")[0]==b.split("-")[0]}function Rb(a,b){a=Qb(a);b=Qb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Sb(a,b){a=Qb(a);b=Qb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Qb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Tb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Ub(a,b){var c=Vb(a),d=Vb(b);return a!=c&&b!=d&&c==d}
84
84
  function Wb(a,b){a=Qb(a);b=Qb(b);return b==a?4:Rb(b,a)?3:Sb(b,a)?2:Rb(a,b)?1:0}function Vb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Tb.get(a)||a}function Xb(a){return a.language?Qb(a.language):a.audio&&a.audio.language?Qb(a.audio.language):a.video&&a.video.language?Qb(a.video.language):"und"}
@@ -90,14 +90,14 @@ var Tb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
90
90
  "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",
91
91
  "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",
92
92
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Zb(a){cb.call(this);this.j=Qb(a);this.i=new Map;this.g=new Set;this.h=new Map}u(Zb,cb);q=Zb.prototype;q.release=function(){cb.prototype.release.call(this)};
93
- q.Ue=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Qb(c.value));$b(this);a=hb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new O("unknown-locales",(new Map).set("locales",a)));a=hb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new O("locale-changed",a))};
93
+ q.Ve=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Qb(c.value));$b(this);a=hb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new O("unknown-locales",(new Map).set("locales",a)));a=hb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new O("locale-changed",a))};
94
94
  q.ea=function(a,b,c){a=Qb(a);void 0===c&&(c=ac);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=ac||d.set(f,e)});this.h.set(a,d);$b(this);this.dispatchEvent(new O("locale-updated"));return this};q.ah=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 O("unknown-localization",a));return""};
95
95
  function $b(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={Yb:f.Yb},h=g.next()){f.Yb=h.value;e.add(f.Yb);e.add(Vb(f.Yb));h=hb(b.keys(),function(l){return function(m){return Ub(m,l.Yb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=hb(b.keys(),function(l){return function(m){return Vb(m)==l.Yb}}(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);
96
96
  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,bc(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new O("missing-localizations",d)))}function bc(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)}N("shaka.ui.Localization",Zb);Zb.prototype.resolve=Zb.prototype.resolve;
97
- Zb.prototype.resolveDictionary=Zb.prototype.ah;Zb.prototype.insert=Zb.prototype.ea;Zb.prototype.changeLocale=Zb.prototype.Ue;Zb.prototype.release=Zb.prototype.release;var ac=1;Zb.ConflictResolution={USE_OLD:0,USE_NEW:ac};Zb.UNKNOWN_LOCALES="unknown-locales";Zb.UNKNOWN_LOCALIZATION="unknown-localization";Zb.MISSING_LOCALIZATIONS="missing-localizations";Zb.LOCALE_CHANGED="locale-changed";Zb.LOCALE_UPDATED="locale-updated";var dc={oi:"SEEK",ii:"PLAY",pi:"SKIP_AD",Vh:"MULTIPLE_LANGUAGES",$h:"OFF",Eh:"ENTER_LOOP_MODE",mi:"REWIND",Ph:"LANGUAGE",Ji:"VOLUME",Ih:"EXIT_LOOP_MODE",Nh:"FULL_SCREEN",Kf:"SUBTITLE_FORCED",Hi:"UNRECOGNIZED_LANGUAGE",Fi:"UNDETERMINED_LANGUAGE",ph:"AD_TIME",ri:"SKIP_TO_LIVE",gi:"PICTURE_IN_PICTURE",Wh:"MUTE",qh:"AIRPLAY",oh:"AD_DURATION",Qh:"LOOP",yh:"CAST",Zh:"NOT_APPLICABLE",Gi:"UNMUTE",ki:"REPLAY",sh:"AUTO_QUALITY",ti:"STATISTICS",li:"RESOLUTION",Fh:"ENTER_PICTURE_IN_PICTURE",Mh:"FAST_FORWARD",
98
- Qe:"LIVE",ji:"PLAYBACK_RATE",AD_PROGRESS:"AD_PROGRESS",Uh:"MORE_SETTINGS",xh:"CAPTIONS",Jh:"EXIT_PICTURE_IN_PICTURE",BACK:"BACK",ei:"PAUSE",Hh:"EXIT_FULL_SCREEN",ai:"ON"};function ec(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ec.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function fc(a){return a.h/(1-Math.pow(a.g,a.i))};function gc(){this.h=new ec(2);this.j=new ec(5);this.g=0;this.i=128E3;this.l=16E3}gc.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)};gc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};gc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(fc(this.h),fc(this.j))};function hc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ic(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function jc(a,b,c){c||(c=hc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Gd:d.Gd},e=a.next()){d.Gd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Gd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
99
- function kc(a,b,c){c||(c=hc);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 lc(a,b,c){this.startTime=a;this.direction=mc;this.endTime=b;this.payload=c;this.region=new nc;this.position=null;this.positionAlign=oc;this.size=0;this.textAlign=pc;this.writingMode=qc;this.lineInterpretation=rc;this.line=null;this.lineHeight="";this.lineAlign=sc;this.displayAlign=tc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=uc;this.fontStyle=vc;this.linePadding=this.letterSpacing=this.fontFamily=
100
- "";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}lc.prototype.clone=function(){var a=new lc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
97
+ Zb.prototype.resolveDictionary=Zb.prototype.ah;Zb.prototype.insert=Zb.prototype.ea;Zb.prototype.changeLocale=Zb.prototype.Ve;Zb.prototype.release=Zb.prototype.release;var ac=1;Zb.ConflictResolution={USE_OLD:0,USE_NEW:ac};Zb.UNKNOWN_LOCALES="unknown-locales";Zb.UNKNOWN_LOCALIZATION="unknown-localization";Zb.MISSING_LOCALIZATIONS="missing-localizations";Zb.LOCALE_CHANGED="locale-changed";Zb.LOCALE_UPDATED="locale-updated";var dc={$h:"OFF",Gi:"UNMUTE",Nh:"FULL_SCREEN",ii:"PLAY",ri:"SKIP_TO_LIVE",AD_PROGRESS:"AD_PROGRESS",Kf:"SUBTITLE_FORCED",Ih:"EXIT_LOOP_MODE",Hh:"EXIT_FULL_SCREEN",Zh:"NOT_APPLICABLE",Mh:"FAST_FORWARD",BACK:"BACK",oh:"AD_DURATION",sh:"AUTO_QUALITY",Fi:"UNDETERMINED_LANGUAGE",gi:"PICTURE_IN_PICTURE",Ji:"VOLUME",Qh:"LOOP",pi:"SKIP_AD",ki:"REPLAY",oi:"SEEK",Uh:"MORE_SETTINGS",Vh:"MULTIPLE_LANGUAGES",Re:"LIVE",ai:"ON",Fh:"ENTER_PICTURE_IN_PICTURE",li:"RESOLUTION",Wh:"MUTE",mi:"REWIND",ei:"PAUSE",Hi:"UNRECOGNIZED_LANGUAGE",
98
+ ph:"AD_TIME",Eh:"ENTER_LOOP_MODE",Ph:"LANGUAGE",yh:"CAST",xh:"CAPTIONS",qh:"AIRPLAY",Jh:"EXIT_PICTURE_IN_PICTURE",ti:"STATISTICS",ji:"PLAYBACK_RATE"};function ec(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ec.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function fc(a){return a.h/(1-Math.pow(a.g,a.i))};function gc(){this.h=new ec(2);this.j=new ec(5);this.g=0;this.i=128E3;this.l=16E3}gc.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)};gc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};gc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(fc(this.h),fc(this.j))};function hc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ic(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function jc(a,b,c){c||(c=hc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Gd:d.Gd},e=a.next()){d.Gd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Gd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
99
+ function kc(a,b,c){c||(c=hc);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 lc(a,b,c){this.startTime=a;this.direction=mc;this.endTime=b;this.payload=c;this.region=new nc;this.position=null;this.positionAlign=oc;this.size=0;this.textAlign=pc;this.writingMode=qc;this.lineInterpretation=rc;this.line=null;this.lineHeight="";this.lineAlign=sc;this.displayAlign=tc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=uc;this.fontStyle=vc;this.linePadding=this.letterSpacing=
100
+ this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}lc.prototype.clone=function(){var a=new lc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
101
101
  function wc(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(!kc(a.nestedCues,b.nestedCues,wc))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(!kc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}N("shaka.text.Cue",lc);var oc="auto";
102
102
  lc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:oc};var pc="center",xc={LEFT:"left",RIGHT:"right",CENTER:pc,START:"start",END:"end"};lc.textAlign=xc;var tc="after",yc={BEFORE:"before",CENTER:"center",AFTER:tc};lc.displayAlign=yc;var mc="ltr";lc.direction={HORIZONTAL_LEFT_TO_RIGHT:mc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var qc="horizontal-tb";lc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:qc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var rc=0;
103
103
  lc.lineInterpretation={LINE_NUMBER:rc,PERCENTAGE:1};var sc="start",zc={CENTER:"center",START:sc,END:"end"};lc.lineAlign=zc;var Ac={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};lc.defaultTextColor=Ac;var Bc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};lc.defaultTextBackgroundColor=Bc;var uc=400;lc.fontWeight={NORMAL:uc,BOLD:700};
@@ -105,12 +105,12 @@ var vc="normal",Cc={NORMAL:vc,ITALIC:"italic",OBLIQUE:"oblique"};lc.fontStyle=Cc
105
105
  function Ic(a,b,c){c=void 0===c?Infinity:c;return Kc(a,void 0===b?0:b,c,Uint8Array)}function Lc(a,b,c){c=void 0===c?Infinity:c;return Kc(a,void 0===b?0:b,c,DataView)}function Kc(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(Hc(a),b,Math.min(b+Math.max(c,0),e)-b)}N("shaka.util.BufferUtils",Fc);Fc.toDataView=Lc;Fc.toUint8=Ic;Fc.toArrayBuffer=Jc;Fc.equal=Gc;function Mc(){}N("shaka.dependencies",Mc);Mc.has=function(a){return Nc.has(a)};Mc.add=function(a,b){if(!Oc[a])throw Error(a+" is not supported");Nc.set(a,function(){return b})};var Oc={muxjs:"muxjs"};Mc.Allowed=Oc;var Nc=new Map([["muxjs",function(){return window.muxjs}]]);function Pc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Pc.prototype.resolve=function(){};Pc.prototype.reject=function(){};function Qc(a){this.h=a;this.g=void 0}Qc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Rc(a){this.h=a;this.g=null}Rc.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};Rc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Q(a){this.h=a;this.g=null}Q.prototype.Ba=function(){this.stop();this.h();return this};Q.prototype.R=function(a){var b=this;this.stop();this.g=(new Rc(function(){b.h()})).R(a);return this};Q.prototype.ha=function(a){var b=this;this.stop();this.g=(new Rc(function(){b.g.R(a);b.h()})).R(a);return this};Q.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};N("shaka.util.Timer",Q);Q.prototype.stop=Q.prototype.stop;Q.prototype.tickEvery=Q.prototype.ha;Q.prototype.tickAfter=Q.prototype.R;
106
106
  Q.prototype.tickNow=Q.prototype.Ba;function Tc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Uc(a){return""!=Vc().canPlayType(a)}function Wc(){return Xc("Xbox One")}function Yc(){return Xc("Tizen")}function Zc(){return Xc("Web0S")}function $c(){return Xc("CrKey")}function ad(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Yc()&&!Xc("PC=EOS")&&!Xc("VirginMedia")&&!bd()&&!Xc("AFT")}function bd(){return Xc("PlayStation 4")}
107
107
  function cd(){if(!ad())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 Xc(a){return(navigator.userAgent||"").includes(a)}function Vc(){if(dd)return dd;ed||(ed=new Q(function(){dd=null}));(dd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(dd=document.createElement("video"));ed.R(1);return dd}var ed=null,dd=null;function fd(){}
108
- function gd(a){if(!a)return"";a=Ic(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!bd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ra('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==
108
+ function gd(a){if(!a)return"";a=Ic(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!bd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Qa('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==
109
109
  (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}
110
110
  function hd(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Lc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return id.value()(d)}
111
111
  function jd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Ic(a);if(239==c[0]&&187==c[1]&&191==c[2])return gd(c);if(254==c[0]&&255==c[1])return hd(c.subarray(2),!1);if(255==c[0]&&254==c[1])return hd(c.subarray(2),!0);if(0==c[0]&&0==c[2])return hd(a,!1);if(0==c[1]&&0==c[3])return hd(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return gd(a);throw new P(2,2,2003);}
112
112
  function kd(a){if(window.TextEncoder&&!bd()){var b=new TextEncoder;return Jc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Jc(b)}function ld(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}N("shaka.util.StringUtils",fd);fd.resetFromCharCode=function(){id.g=void 0};fd.toUTF16=ld;fd.toUTF8=kd;fd.fromBytesAutoDetect=jd;fd.fromUTF16=hd;
113
- fd.fromUTF8=gd;var id=new Qc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function md(){}function nd(a){a=Ic(a);a=id.value()(a);return btoa(a)}function od(a,b){b=void 0==b?!0:b;var c=nd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function pd(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function qd(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
113
+ fd.fromUTF8=gd;var id=new Qc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={vb:65536};0<b.vb;b={vb:b.vb},b.vb/=2)if(a(b.vb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.vb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.vb));return e}}(b);return null});function md(){}function nd(a){a=Ic(a);a=id.value()(a);return btoa(a)}function od(a,b){b=void 0==b?!0:b;var c=nd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function pd(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function qd(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
114
114
  function rd(a){var b=Ic(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function sd(){for(var a=Fa.apply(0,arguments),b=0,c=r(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Ic(d),c),c+=d.byteLength;return b}N("shaka.util.Uint8ArrayUtils",md);md.concat=sd;md.toHex=rd;md.fromHex=qd;md.fromBase64=pd;md.toBase64=od;md.toStandardBase64=nd;
115
115
  md.equal=function(a,b){zb("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead.");return Gc(a,b)};function td(){var a=this;this.A=Nc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(sd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:sd.apply(md,ia(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}td.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
116
116
  function ud(a,b){if(!Nc.get("muxjs")()||!vd(a))return!1;if(b)return MediaSource.isTypeSupported(wd(b,a));var c=wd("audio",a),d=wd("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function vd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
@@ -131,7 +131,7 @@ function $d(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e
131
131
  function ae(a,b){return M(function(c){if(1==c.g)return A(c,be(b,0<b.offlineSessionIds.length),2);ce(a,b);de(b);ee(b);D(c)})}
132
132
  function be(a,b){return M(function(c){if(1==c.g)return A(c,fe(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=ge(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Jb("video",g);f=ge(f);g=Jb("audio",g);g=he(g);var h=zd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(h))return!1;f=[f,g].join()}g=zd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(g))return!1;e.codecs=f}if(f=d.audio){g=he(f.codecs);h=zd(f.mimeType,g,"audio");if(!MediaSource.isTypeSupported(h))return!1;
133
133
  f.codecs=g}if(Wc()&&e&&(e.width&&1920<e.width||e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return Wa(ie(d)),!1;(e=d.decodingInfos.some(function(k){return k.supported}))||Wa(ie(d));return e});D(c)})}
134
- function fe(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;return M(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var w;return M(function(C){if(1==C.g)return E(C,2),A(C,e.decodingInfo(x),4);if(2!=C.g)return w=C.h,y.decodingInfos.push(w),va(C,0);I(C);JSON.stringify(x);D(C)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=je(l,b,c),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,f.push(g(l,t));return A(v,Promise.all(f),
134
+ function fe(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;return M(function(v){if(d=a.some(function(w){return w.decodingInfos.length}))return v["return"]();e=navigator.mediaCapabilities;f=[];g=function(w,y){var x;return M(function(C){if(1==C.g)return E(C,2),A(C,e.decodingInfo(y),4);if(2!=C.g)return x=C.h,w.decodingInfos.push(x),va(C,0);I(C);JSON.stringify(y);D(C)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=je(l,b,c),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,f.push(g(l,t));return A(v,Promise.all(f),
135
135
  0)})}
136
136
  function je(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=Jb("video",g);f=ge(f);g=Jb("audio",g);g=zd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ge(f);f=zd(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";
137
137
  break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=he(d.codecs),f=zd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
@@ -164,18 +164,18 @@ function Ie(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.incl
164
164
  function Qe(a){var b,c;return M(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new P(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return A(d,new Promise(function(e){(new Q(e)).R(c/1E3)}),2)}a.h*=a.m;D(d)})}function Pe(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Re(a,b){this.promise=a;this.i=b;this.g=!1}function Se(a){return new Re(Promise.reject(a),function(){return Promise.resolve()})}function Te(){var a=Promise.reject(new P(2,7,7001));a["catch"](function(){});return new Re(a,function(){return Promise.resolve()})}function Ue(a){return new Re(Promise.resolve(a),function(){return Promise.resolve()})}function Ve(a){return new Re(a,function(){return a["catch"](function(){})})}Re.prototype.abort=function(){this.g=!0;return this.i()};
165
165
  function We(a){return new Re(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Re.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
166
166
  Re.prototype.qa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Xe(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Pc,g=new P(2,7,7001);this.promise.then(c(!0),c(!1));return new Re(f,function(){return d()})};
167
- function Xe(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}N("shaka.util.AbortableOperation",Re);Re.prototype.chain=Re.prototype.qa;Re.prototype["finally"]=Re.prototype["finally"];Re.all=We;Re.prototype.abort=Re.prototype.abort;Re.notAbortable=Ve;Re.completed=Ue;Re.aborted=Te;Re.failed=Se;function Ye(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 Ze(a){var b={},c;for(c in a)b[c]=a[c];return b};function $e(){this.g=[]}function af(a,b){a.g.push(b["finally"](function(){ic(a.g,b)}))}$e.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 bf(a,b,c){cb.call(this);this.i=!1;this.m=new $e;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}u(bf,cb);q=bf.prototype;q.xe=function(a){this.A=a};function cf(a,b,c,d){c=c||df;var e=ef[a];if(!e||c>=e.priority)ef[a]={priority:c,Sg:b,Tg:void 0===d?!1:d}}q.Ug=function(a){this.g.add(a)};q.jh=function(a){this.g["delete"](a)};q.Sf=function(){this.g.clear()};q.Vg=function(a){this.h.add(a)};q.kh=function(a){this.h["delete"](a)};q.Tf=function(){this.h.clear()};
167
+ function Xe(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}N("shaka.util.AbortableOperation",Re);Re.prototype.chain=Re.prototype.qa;Re.prototype["finally"]=Re.prototype["finally"];Re.all=We;Re.prototype.abort=Re.prototype.abort;Re.notAbortable=Ve;Re.completed=Ue;Re.aborted=Te;Re.failed=Se;function Ye(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 Ze(a){var b={},c;for(c in a)b[c]=a[c];return b};function $e(){this.g=[]}function af(a,b){a.g.push(b["finally"](function(){ic(a.g,b)}))}$e.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 bf(a,b,c){cb.call(this);this.i=!1;this.m=new $e;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}u(bf,cb);q=bf.prototype;q.ye=function(a){this.A=a};function cf(a,b,c,d){c=c||df;var e=ef[a];if(!e||c>=e.priority)ef[a]={priority:c,Sg:b,Tg:void 0===d?!1:d}}q.Ug=function(a){this.g.add(a)};q.jh=function(a){this.g["delete"](a)};q.Sf=function(){this.g.clear()};q.Vg=function(a){this.h.add(a)};q.kh=function(a){this.h["delete"](a)};q.Tf=function(){this.h.clear()};
168
168
  function ff(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();cb.prototype.release.call(this);return this.m.destroy()};
169
169
  q.request=function(a,b){var c=this,d=new gf;if(this.i){var e=Promise.reject(new P(2,7,7001));e["catch"](function(){});return new hf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Ye(b.retryParameters):Pe();b.uris=Ye(b.uris);e=jf(this,a,b);var f=e.qa(function(){return kf(c,a,b,new Oe(b.retryParameters,!1),0,null,d)}),g=f.qa(function(n){return lf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
170
170
  var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.qa(function(n){var p=Date.now()-l,t=n.response;t.timeMs+=k;t.timeMs+=p;n.Fg||!c.l||t.fromCache||a!=mf||c.l(t.timeMs,t.data.byteLength);return t},function(n){n&&(n.severity=2);throw n;});e=new hf(m.promise,function(){return m.abort()},d);af(this.m,e);return e};
171
171
  function jf(a,b,c){var d=Ue(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Md:e.Md},f=a.next())e.Md=f.value,d=d.qa(function(g){return function(){c.body&&(c.body=Jc(c.body));return g.Md(b,c)}}(e));return d.qa(void 0,function(g){if(g instanceof P&&7001==g.code)throw g;throw new P(2,1,1006,g);})}
172
- function kf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new jb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),kb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=ef[k])?k.Sg:null;if(!m)return Se(new P(2,1,1E3,h));var n=k.Tg,p=null,t=null,v=!1,y=!1,x;return Ve(Qe(d)).qa(function(){if(a.i)return Te();x=Date.now();var w=m(c.uris[e],c,b,function(B,F,G){p&&p.stop();t&&t.R(z/1E3);a.l&&b==mf&&(a.l(B,F),l=!0,g.g=G)},function(B){a.j&&a.j(B,c,b);y=!0});
173
- if(!n)return w;var C=c.retryParameters.connectionTimeout;C&&(p=new Q(function(){v=!0;w.abort()}),p.R(C/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new Q(function(){v=!0;w.abort()}));return w}).qa(function(w){p&&p.stop();t&&t.stop();void 0==w.timeMs&&(w.timeMs=Date.now()-x);var C={response:w,Fg:l};!y&&a.j&&a.j(w.headers,c,b);return C},function(w){p&&p.stop();t&&t.stop();if(a.B){var C=null,z=0;w instanceof P&&(C=w,1001==w.code&&(z=w.data[1]));a.B(c,C,z,v)}if(a.i)return Te();v&&(w=new P(1,1,1003,
174
- c.uris[e],b));if(w instanceof P){if(7001==w.code)throw w;if(1010==w.code)throw f;if(1==w.severity)return C=(new Map).set("error",w),C=new O("retry",C),a.dispatchEvent(C),e=(e+1)%c.uris.length,kf(a,b,c,d,e,w,g)}throw w;})}
172
+ function kf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new jb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),kb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=ef[k])?k.Sg:null;if(!m)return Se(new P(2,1,1E3,h));var n=k.Tg,p=null,t=null,v=!1,w=!1,y;return Ve(Qe(d)).qa(function(){if(a.i)return Te();y=Date.now();var x=m(c.uris[e],c,b,function(B,F,G){p&&p.stop();t&&t.R(z/1E3);a.l&&b==mf&&(a.l(B,F),l=!0,g.g=G)},function(B){a.j&&a.j(B,c,b);w=!0});
173
+ if(!n)return x;var C=c.retryParameters.connectionTimeout;C&&(p=new Q(function(){v=!0;x.abort()}),p.R(C/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new Q(function(){v=!0;x.abort()}));return x}).qa(function(x){p&&p.stop();t&&t.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-y);var C={response:x,Fg:l};!w&&a.j&&a.j(x.headers,c,b);return C},function(x){p&&p.stop();t&&t.stop();if(a.B){var C=null,z=0;x instanceof P&&(C=x,1001==x.code&&(z=x.data[1]));a.B(c,C,z,v)}if(a.i)return Te();v&&(x=new P(1,1,1003,
174
+ c.uris[e],b));if(x instanceof P){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return C=(new Map).set("error",x),C=new O("retry",C),a.dispatchEvent(C),e=(e+1)%c.uris.length,kf(a,b,c,d,e,x,g)}throw x;})}
175
175
  function lf(a,b,c){var d=Ue(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Nd:e.Nd},f=a.next())e.Nd=f.value,d=d.qa(function(g){return function(){var h=c.response;h.data&&(h.data=Jc(h.data));return g.Nd(b,h)}}(e));return d.qa(function(){return c},function(g){var h=2;if(g instanceof P){if(7001==g.code)throw g;h=g.severity}throw new P(h,1,1007,g);})}N("shaka.net.NetworkingEngine",bf);bf.prototype.request=bf.prototype.request;bf.prototype.destroy=bf.prototype.destroy;bf.makeRequest=ff;
176
- bf.defaultRetryParameters=function(){return Pe()};bf.prototype.clearAllResponseFilters=bf.prototype.Tf;bf.prototype.unregisterResponseFilter=bf.prototype.kh;bf.prototype.registerResponseFilter=bf.prototype.Vg;bf.prototype.clearAllRequestFilters=bf.prototype.Sf;bf.prototype.unregisterRequestFilter=bf.prototype.jh;bf.prototype.registerRequestFilter=bf.prototype.Ug;bf.unregisterScheme=function(a){delete ef[a]};bf.registerScheme=cf;bf.prototype.setForceHTTPS=bf.prototype.xe;function gf(){this.g=0}
177
- bf.NumBytesRemainingClass=gf;function hf(a,b,c){Re.call(this,a,b);this.h=c}u(hf,Re);bf.PendingRequest=hf;var mf=1;bf.RequestType={MANIFEST:0,SEGMENT:mf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var df=3;bf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:df};var ef={};function nf(a){this.g=!1;this.h=new Pc;this.i=a}nf.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 of(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function pf(){this.g=new ab}q=pf.prototype;q.release=function(){this.rb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new qf(a,b,c,d),this.g.push(b,a))};q.Ga=function(a,b,c,d){function e(g){f.pc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.pc=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.pc(),this.g.remove(b,e))}};
178
- 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.pc();this.g.g={}}};N("shaka.util.EventManager",pf);pf.prototype.removeAll=pf.prototype.rb;pf.prototype.unlisten=pf.prototype.pc;pf.prototype.listenOnce=pf.prototype.Ga;pf.prototype.listen=pf.prototype.o;pf.prototype.release=pf.prototype.release;function qf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=rf(a,d);this.target.addEventListener(b,c,this.g)}
176
+ bf.defaultRetryParameters=function(){return Pe()};bf.prototype.clearAllResponseFilters=bf.prototype.Tf;bf.prototype.unregisterResponseFilter=bf.prototype.kh;bf.prototype.registerResponseFilter=bf.prototype.Vg;bf.prototype.clearAllRequestFilters=bf.prototype.Sf;bf.prototype.unregisterRequestFilter=bf.prototype.jh;bf.prototype.registerRequestFilter=bf.prototype.Ug;bf.unregisterScheme=function(a){delete ef[a]};bf.registerScheme=cf;bf.prototype.setForceHTTPS=bf.prototype.ye;function gf(){this.g=0}
177
+ bf.NumBytesRemainingClass=gf;function hf(a,b,c){Re.call(this,a,b);this.h=c}u(hf,Re);bf.PendingRequest=hf;var mf=1;bf.RequestType={MANIFEST:0,SEGMENT:mf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var df=3;bf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:df};var ef={};function nf(a){this.g=!1;this.h=new Pc;this.i=a}nf.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 of(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function pf(){this.g=new ab}q=pf.prototype;q.release=function(){this.sb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new qf(a,b,c,d),this.g.push(b,a))};q.Ga=function(a,b,c,d){function e(g){f.pc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.pc=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.pc(),this.g.remove(b,e))}};
178
+ q.sb=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.pc();this.g.g={}}};N("shaka.util.EventManager",pf);pf.prototype.removeAll=pf.prototype.sb;pf.prototype.unlisten=pf.prototype.pc;pf.prototype.listenOnce=pf.prototype.Ga;pf.prototype.listen=pf.prototype.o;pf.prototype.release=pf.prototype.release;function qf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=rf(a,d);this.target.addEventListener(b,c,this.g)}
179
179
  qf.prototype.pc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function rf(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 sf(a)?b:b.capture||!1}
180
180
  function sf(a){var b=tf;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}tf=b}return b||!1}var tf=void 0;function uf(){}function vf(a){a=jd(a);return(new jb(a)).$a}function wf(a,b,c){function d(h){Lc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ic(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=ld(b,!0):e=b;a=jd(a);a=ld(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}N("shaka.util.FairPlayUtils",uf);uf.initDataTransform=wf;uf.defaultGetContentId=vf;function xf(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 yf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function zf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function Af(a,b){var c=Bf(a,b);return 1!=c.length?null:c[0]}function Cf(a,b,c){a=Df(a,b,c);return 1!=a.length?null:a[0]}function Bf(a,b){for(var c=[],d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function Ef(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
181
181
  function Df(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 Ff(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Gf(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 Hf(a){return Array.from(a.childNodes).every(If)?a.textContent.trim():null}
@@ -186,31 +186,31 @@ function Sf(a,b){var c=new DOMParser,d=Tf.value()(a),e=null;try{e=c.parseFromStr
186
186
  var Tf=new Qc(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Vf(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.H=new Set;this.l=this.B=null;this.aa=this.Z=!1;this.I=0;this.g=null;this.A=new pf;this.i=new Map;this.F=[];this.C=new Pc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ba=new Map;this.$=new Map;this.S=new Q(function(){return Wf(c)});this.K=!1;this.J=[];this.N=!1;this.va=(new Q(function(){Xf(c)})).ha(b);this.C["catch"](function(){});this.j=new nf(function(){return Yf(c)});this.X=!1}q=Vf.prototype;q.destroy=function(){return this.j.destroy()};
187
187
  function Yf(a){return M(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.va.stop(),a.va=null,a.S.stop(),a.S=null,A(b,Zf(a),2);case 2:if(!a.l){b.D(3);break}E(b,4);return A(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:I(b);case 5:a.l=null;case 3:a.g=null,a.H.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,D(b)}})}q.configure=function(a){this.h=a};function $f(a,b,c){a.aa=!0;a.F=[];a.K=c;return ag(a,b)}
188
188
  function bg(a,b,c){a.F=c;a.K=0<c.length;return ag(a,b)}function cg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return dg(a,g,[])}
189
- function ag(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y;return M(function(x){if(1==x.g){if(c=eg(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(w){return w.video&&w.video.drmInfos.length||w.audio&&w.audio.drmInfos.length?!0:!1});g||(h=xf(a.h.servers),fg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=gg(l),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,hg(t,xf(a.h.servers),xf(a.h.advanced||{}));return A(x,
190
- fe(b,a.K,a.X),2)}v=g||Object.keys(a.h.servers).length;if(!v)return a.Z=!0,x["return"](Promise.resolve());y=dg(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}
189
+ function ag(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;return M(function(y){if(1==y.g){if(c=eg(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(x){return x.video&&x.video.drmInfos.length||x.audio&&x.audio.drmInfos.length?!0:!1});g||(h=xf(a.h.servers),fg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=gg(l),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,hg(t,xf(a.h.servers),xf(a.h.advanced||{}));return A(y,
190
+ fe(b,a.K,a.X),2)}v=g||Object.keys(a.h.servers).length;if(!v)return a.Z=!0,y["return"](Promise.resolve());w=dg(a,void 0,b);return y["return"](g?w:w["catch"](function(){}))})}
191
191
  q.yc=function(a){var b=this,c,d;return M(function(e){if(1==e.g){if(!b.B)return b.A.Ga(a,"encrypted",function(){b.m(new P(2,6,6010))}),e["return"]();b.l=a;b.A.Ga(b.l,"play",function(){for(var f=r(b.J),g=f.next();!g.done;g=f.next())ig(b,g.value);b.N=!0;b.J=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Zf(b)});c=b.l.setMediaKeys(b.B);c=c["catch"](function(f){return Promise.reject(new P(2,6,6003,f.message))});return A(e,
192
192
  c,2)}of(b.j);jg(b);b.g.initData.length||b.F.length||(d=function(f){return mg(b,f.initDataType,Ic(f.initData))},b.A.o(b.l,"encrypted",d));D(e)})};
193
193
  function ng(a){var b,c,d,e,f;return M(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=ff([a.g.serverCertificateUri],a.h.retryParameters);E(g,3);c=a.G.Qb.request(5,b);return A(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ic(d.data);va(g,4);break;case 3:throw e=I(g),new P(2,6,6017,e);case 4:if(a.j.g)return g["return"]();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g["return"]();
194
194
  E(g,6);return A(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=I(g),new P(2,6,6004,f.message);}})}function og(a,b){var c,d,e;return M(function(f){if(1==f.g)return A(f,pg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.eb=new Pc,d.push(e.eb);d.push(c.remove());return A(f,Promise.all(d),3)}a.i["delete"](c);D(f)})}
195
195
  function jg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,mg(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())pg(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function mg(a,b,c){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Gc(c,e.value.initData)&&!Xc("Tizen 2"))return;qg(a,b,c,a.g.sessionType)}function rg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
196
196
  function sg(a){a=a.i.keys();a=db(a,function(b){return b.sessionId});return Array.from(a)}q.Dc=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.fd=function(){return yf(this.$)};
197
- function dg(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,y;return M(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=tg(a,c,d);x.D(2);break}return A(x,ug(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new P(2,6,6001);of(a.j);E(x,4);a.H.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.H.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.H.add(t.contentType.toLowerCase());if(c.length){var w=
198
- f.keySystem;var C=d.get(f.keySystem);var z=[],B=[],F=[],G=[],H=new Set;vg(C,z,F,B,G,H);var J=a.K?"persistent-license":"temporary";w={keySystem:w,licenseServerUri:z[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||J,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:H};C=r(C);for(z=C.next();!z.done;z=
199
- C.next())z=z.value,z.distinctiveIdentifierRequired&&(w.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(w.persistentStateRequired=z.persistentStateRequired);C=w}else C=f.keySystem,w=b.get(f.keySystem),z=[],B=[],F=[],G=[],H=new Set,vg(w.drmInfos,z,F,B,G,H),C={keySystem:C,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==w.distinctiveIdentifier,persistentStateRequired:"required"==w.persistentState,sessionType:w.sessionTypes[0]||"temporary",audioRobustness:(w.audioCapabilities?
200
- w.audioCapabilities[0].robustness:"")||"",videoRobustness:(w.videoCapabilities?w.videoCapabilities[0].robustness:"")||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:H};a.g=C;if(!a.g.licenseServerUri)throw new P(2,6,6012,a.g.keySystem);return A(x,f.createMediaKeys(),6);case 6:return v=x.h,of(a.j),a.B=v,a.Z=!0,A(x,ng(a),7);case 7:of(a.j);va(x,0);break;case 4:y=I(x);of(a.j,y);a.g=null;a.H.clear();if(y instanceof P)throw y;throw new P(2,6,6002,y.message);}})}
197
+ function dg(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w;return M(function(y){switch(y.g){case 1:d=new Map;if(c.length){e=tg(a,c,d);y.D(2);break}return A(y,ug(a,b),3);case 3:e=y.h;case 2:f=e;if(!f)throw new P(2,6,6001);of(a.j);E(y,4);a.H.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.H.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.H.add(t.contentType.toLowerCase());if(c.length){var x=
198
+ f.keySystem;var C=d.get(f.keySystem);var z=[],B=[],F=[],G=[],H=new Set;vg(C,z,F,B,G,H);var J=a.K?"persistent-license":"temporary";x={keySystem:x,licenseServerUri:z[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||J,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:H};C=r(C);for(z=C.next();!z.done;z=
199
+ C.next())z=z.value,z.distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(x.persistentStateRequired=z.persistentStateRequired);C=x}else C=f.keySystem,x=b.get(f.keySystem),z=[],B=[],F=[],G=[],H=new Set,vg(x.drmInfos,z,F,B,G,H),C={keySystem:C,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==x.distinctiveIdentifier,persistentStateRequired:"required"==x.persistentState,sessionType:x.sessionTypes[0]||"temporary",audioRobustness:(x.audioCapabilities?
200
+ x.audioCapabilities[0].robustness:"")||"",videoRobustness:(x.videoCapabilities?x.videoCapabilities[0].robustness:"")||"",serverCertificate:F[0],serverCertificateUri:B[0],initData:G,keyIds:H};a.g=C;if(!a.g.licenseServerUri)throw new P(2,6,6012,a.g.keySystem);return A(y,f.createMediaKeys(),6);case 6:return v=y.h,of(a.j),a.B=v,a.Z=!0,A(y,ng(a),7);case 7:of(a.j);va(y,0);break;case 4:w=I(y);of(a.j,w);a.g=null;a.H.clear();if(w instanceof P)throw w;throw new P(2,6,6002,w.message);}})}
201
201
  function tg(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(gg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new P(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Kd:d.Kd},e=a.next())for(d.Kd=e.value,f=r(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
202
202
  l.Kd}}(d)))return e.keySystemAccess;a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
203
- function ug(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y,x;return M(function(w){switch(w.g){case 1:if(1==b.size&&b.has(""))throw new P(2,6,6E3);d=r(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){w.D(4);break}k=h.value;if(!b.has(k)){w.D(3);break}l=b.get(k);E(w,6);return A(w,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
204
- w.h,w["return"](c);case 6:I(w);case 7:of(a.j);case 3:h=g.next();w.D(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){w.D(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();w.D(9);break}v=h.value;y=b.get(v);x=y.drmInfos.some(function(C){return!!C.licenseServerUri});if(x!=p){w.D(13);break}E(w,15);return A(w,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=w.h,w["return"](c);case 15:I(w);case 16:of(a.j);case 13:h=t.next();w.D(12);break;case 11:return w["return"](c)}})}
203
+ function ug(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,y;return M(function(x){switch(x.g){case 1:if(1==b.size&&b.has(""))throw new P(2,6,6E3);d=r(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){x.D(4);break}k=h.value;if(!b.has(k)){x.D(3);break}l=b.get(k);E(x,6);return A(x,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
204
+ x.h,x["return"](c);case 6:I(x);case 7:of(a.j);case 3:h=g.next();x.D(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){x.D(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();x.D(9);break}v=h.value;w=b.get(v);y=w.drmInfos.some(function(C){return!!C.licenseServerUri});if(y!=p){x.D(13);break}E(x,15);return A(x,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=x.h,x["return"](c);case 15:I(x);case 16:of(a.j);case 13:h=t.next();x.D(12);break;case 11:return x["return"](c)}})}
205
205
  function eg(a){a=xf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=qd(f),h=qd(e);g={kty:"oct",kid:od(g,!1),k:od(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Ic(kd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
206
206
  serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
207
- function pg(a,b){var c,d,e,f,g;return M(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new P(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.N?a.J.push(k):ig(a,k)});a.A.o(c,"keystatuseschange",function(k){return wg(a,k)});e={initData:null,loaded:!1,ie:Infinity,eb:null,type:"persistent-license"};a.i.set(c,e);E(h,2);return A(h,c.load(b),4);case 4:f=h.h;of(a.j);
207
+ function pg(a,b){var c,d,e,f,g;return M(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new P(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.N?a.J.push(k):ig(a,k)});a.A.o(c,"keystatuseschange",function(k){return wg(a,k)});e={initData:null,loaded:!1,je:Infinity,eb:null,type:"persistent-license"};a.i.set(c,e);E(h,2);return A(h,c.load(b),4);case 4:f=h.h;of(a.j);
208
208
  if(!f)return a.i["delete"](c),a.m(new P(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;xg(a)&&a.C.resolve();return h["return"](c);case 2:g=I(h),of(a.j,g),a.i["delete"](c),a.m(new P(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
209
- function qg(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new P(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.N?a.J.push(f):ig(a,f)});a.A.o(e,"keystatuseschange",function(f){return wg(a,f)});a.i.set(e,{initData:c,loaded:!1,ie:Infinity,eb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&od(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
209
+ function qg(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new P(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.N?a.J.push(f):ig(a,f)});a.A.o(e,"keystatuseschange",function(f){return wg(a,f)});a.i.set(e,{initData:c,loaded:!1,je:Infinity,eb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&od(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
210
210
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.m(new P(2,6,6006,f.message,f,h))}})}function yg(a,b,c){"skd"==b&&(b=c.serverCertificate,c=vf(a),a=wf(a,c,b));return a}
211
- function ig(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y;M(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&od(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=ff([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,rg(a.g.keySystem)&&zg(g),h=Date.now(),E(x,2),l=a.G.Qb.request(2,g),A(x,
212
- l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=I(x),n=new P(2,6,6007,m),a.m(n),d&&d.eb&&d.eb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&od(k.data);E(x,5);return A(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=I(x),t=new P(2,6,6008,p.message),a.m(t),d&&d.eb&&d.eb.reject(t),x["return"]();case 6:if(a.j.g)return x["return"]();v=new O("drmsessionupdate");a.G.onEvent(v);d&&(d.eb&&d.eb.resolve(),y=new Q(function(){d.loaded=
213
- !0;xg(a)&&a.C.resolve()}),y.R(Ag));D(x)}})}function zg(a){var b=hd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=Sf(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=pd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
211
+ function ig(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;M(function(y){switch(y.g){case 1:return c=b.target,a.h.logLicenseExchange&&od(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=ff([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,rg(a.g.keySystem)&&zg(g),h=Date.now(),E(y,2),l=a.G.Qb.request(2,g),A(y,
212
+ l.promise,4);case 4:k=y.h;va(y,3);break;case 2:return m=I(y),n=new P(2,6,6007,m),a.m(n),d&&d.eb&&d.eb.reject(n),y["return"]();case 3:if(a.j.g)return y["return"]();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&od(k.data);E(y,5);return A(y,c.update(k.data),7);case 7:va(y,6);break;case 5:return p=I(y),t=new P(2,6,6008,p.message),a.m(t),d&&d.eb&&d.eb.reject(t),y["return"]();case 6:if(a.j.g)return y["return"]();v=new O("drmsessionupdate");a.G.onEvent(v);d&&(d.eb&&d.eb.resolve(),w=new Q(function(){d.loaded=
213
+ !0;xg(a)&&a.C.resolve()}),w.R(Ag));D(y)}})}function zg(a){var b=hd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=Sf(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=pd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
214
214
  function wg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(rg(a.g.keySystem)&&16==h.byteLength&&(navigator.userAgent.match(/Edge?\//)||bd())){k=Lc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=rd(h).slice(0,32);a.ba.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.eb&&(a.i["delete"](c),
215
215
  c.close()["catch"](function(){}));xg(a)&&(a.C.resolve(),a.S.R(Bg))}function Wf(a){var b=a.ba,c=a.$;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new P(2,6,6014));a.G.rd(yf(c))}
216
216
  function Cg(){var a,b,c,d,e,f,g,h;return M(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 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,
@@ -219,7 +219,7 @@ function Dg(a){var b;return M(function(c){if(1==c.g)return b=new Promise(functio
219
219
  function Zf(a){var b;return M(function(c){b=Array.from(a.i.entries());a.i.clear();return A(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return M(function(g){if(1==g.g)return E(g,2),a.aa||a.F.includes(e.sessionId)||"persistent-license"!==f.type?A(g,Dg(e),5):A(g,e.remove(),5);if(2!=g.g)return va(g,0);I(g);D(g)})})),0)})}
220
220
  function Fg(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Ua:f.Ua},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ua=[];f.Ua=f.Ua.concat(e.initData||[]);f.Ua=f.Ua.concat(h.initData||[]);f.Ua=f.Ua.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ua.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
221
221
  e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,serverCertificateUri:e.serverCertificateUri||h.serverCertificateUri,
222
- initData:f.Ua,keyIds:g});break}}return c}function gg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Xf(a){a.i.forEach(function(b,c){var d=b.ie,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.ie=e)})}function xg(a){a=a.i.values();return eb(a,function(b){return b.loaded})}
222
+ initData:f.Ua,keyIds:g});break}}return c}function gg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Xf(a){a.i.forEach(function(b,c){var d=b.je,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.je=e)})}function xg(a){a=a.i.values();return eb(a,function(b){return b.loaded})}
223
223
  function fg(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
224
224
  function vg(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Ja:g.Ja},h=a.next()){g.Ja=h.value;b.includes(g.Ja.licenseServerUri)||b.push(g.Ja.licenseServerUri);d.includes(g.Ja.serverCertificateUri)||d.push(g.Ja.serverCertificateUri);g.Ja.serverCertificate&&(c.some(function(m){return function(n){return Gc(n,m.Ja.serverCertificate)}}(g))||c.push(g.Ja.serverCertificate));if(g.Ja.initData){h={};for(var k=r(g.Ja.initData),l=k.next();!l.done;h={Tc:h.Tc},l=k.next())h.Tc=l.value,e.some(function(m){return function(n){var p=
225
225
  m.Tc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Gc(n.initData,p.initData)}}(h))||e.push(h.Tc)}if(g.Ja.keyIds)for(h=r(g.Ja.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
@@ -236,8 +236,8 @@ function Rg(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.val
236
236
  Qg.prototype.fullBox=Qg.prototype.V;Qg.prototype.box=Qg.prototype.box;var Sg=0,Tg=1;function Zg(a){function b(){d=!0}function c(l){f.push(l);Ug(l)}a=Ic(a);var d=!1,e,f=[],g=[];(new Qg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).V("stsd",function(l){e=l;f.push(l);Wg(l)}).V("encv",b).V("enca",b).V("hev1",function(l){g.push({box:l,Rb:1701733238})}).V("hvc1",function(l){g.push({box:l,Rb:1701733238})}).V("avc1",function(l){g.push({box:l,Rb:1701733238})}).V("avc3",function(l){g.push({box:l,Rb:1701733238})}).V("ac-3",function(l){g.push({box:l,Rb:1701733217})}).V("ec-3",
237
237
  function(l){g.push({box:l,Rb:1701733217})}).V("mp4a",function(l){g.push({box:l,Rb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw Ya(rd(a)),new P(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=$g(a,e,k.box,f,k.Rb);return a}
238
238
  function $g(a,b,c,d,e){var f=ah.value(),g=a.subarray(c.start,c.start+c.size),h=Lc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Lc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);bh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Wc()?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,bh(e,d.start,d.size+k.byteLength);k=Lc(e,b.start);b=Vg(b);a=k.getUint32(b);
239
- k.setUint32(b,a+1);return e}function bh(a,b,c){a=Lc(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 ah=new Qc(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 ch(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=dh(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,v=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){t=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){v=y;break}if(-1===
240
- t||-1===v)p=eh(d,e),a.nestedCues.push(p);else{for(;t<=v;t++)if(y=p[t]){var x=y.l,w=y.i,C=y.j,z=y.h;if(x!=h||w!=k||C!=l||z!=m)n.payload&&a.nestedCues.push(n),n=dh(d,e,x,w,C,z),h=x,k=w,l=C,m=z;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=eh(d,e),a.nestedCues.push(n));n=dh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
239
+ k.setUint32(b,a+1);return e}function bh(a,b,c){a=Lc(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 ah=new Qc(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 ch(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=dh(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,v=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){t=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){v=w;break}if(-1===
240
+ t||-1===v)p=eh(d,e),a.nestedCues.push(p);else{for(;t<=v;t++)if(w=p[t]){var y=w.l,x=w.i,C=w.j,z=w.h;if(y!=h||x!=k||C!=l||z!=m)n.payload&&a.nestedCues.push(n),n=dh(d,e,y,x,C,z),h=y,k=x,l=C,m=z;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=eh(d,e),a.nestedCues.push(n));n=dh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
241
241
  function dh(a,b,c,d,e,f){a=new lc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function eh(a,b){var c=new lc(a,b,"");c.lineBreak=!0;return c}function fh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function gh(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";hh(this)}function ih(a,b,c){return ch(new lc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function hh(a){jh(a,0,15);a.g=1}function kh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case lh:d=mh.has(c)?mh.get(c):String.fromCharCode(c);break;case nh:d=oh.get(c);break;case ph:a.i[a.g].pop();d=qh.get(c);break;case rh:a.i[a.g].pop(),d=sh.get(c)}d&&a.i[a.g].push(new fh(d,a.m,a.j,a.A,a.l))}}
242
242
  function th(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 jh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
243
243
  var lh=0,nh=1,ph=2,rh=3,mh=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"]]),oh=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"]]),qh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
@@ -255,13 +255,13 @@ function bi(a,b){var c=b.type;if(16===(b.Ra&112)){var d=b.Ra>>3&1;0===c?a.m=d:a.
255
255
  d=1===(d&1);if(c.h!==yh){f=c.g;if(c.h===xh&&e!==f.g){var k=1+e-f.h;th(f,k,1+f.g-f.h,f.h);jh(f,0,k-1);jh(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",kh(c.g,lh,32),g=!1,e=Dh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=Ch[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))kh(c.g,nh,d);else if(18===
256
256
  (e&246)&&32===(d&224))kh(c.g,e&1?rh:ph,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.kb){case 32:zh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=wh(c,2,d);break;case 38:e=wh(c,3,d);break;case 39:e=wh(c,4,d);break;case 40:kh(c.g,lh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:hh(c.A);Bh(c);break;case 43:Bh(c);break;case 44:e=c.i;g=null;c.h!==yh&&(g=ih(e,c.j,d));jh(e,0,15);e=g;break;case 45:e=c.g;c.h!==xh?e=null:(g=ih(e,c.j,d),h=e.g-e.h+1,th(e,h-1,h,e.h),jh(e,
257
257
  0,h-1),jh(e,e.g,15-e.g),c.j=d,e=g);break;case 46:jh(c.l,0,15);break;case 47:e=null,c.h!==yh&&(e=ih(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,zh(c),c.j=d}d=e;break a}d=null}else e=b.kb,kh(c.g,lh,b.Ra),kh(c.g,lh,e);return d}
258
- function ci(a,b){var c=[];try{for(;b.Ea();){var d=Qh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Qh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Rh(e));for(var g=a.j.get(e),h=b.ia();b.ia()-h<f;){e=b;var k=Qh(e),l=k.value,m=k.pts;if(16===l){var n=Qh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Jh(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=Kh(t,p,g.i));if(t.h+1>=t.H){p=t;for(var v=0,y=1;16>y;y++,
259
- v++)p.i[v]=p.i[y];for(y=0;1>y;y++,v++)p.i[v]=Hh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Kh(t,p,g.i));t.i[t.h]=Hh();t.g=0;break;case 12:t.isVisible()&&(e=Kh(t,p,g.i)),Gh(t),p=t,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=Sh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Ih(g.g,"\u266a"):Ih(g.g,
260
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Ih(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Yh.has(e)){var w=Yh.get(e);Ih(g.g,w)}else Ih(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Ih(g.g,"_"):Ih(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(C){if(C instanceof P&&3E3===C.code)Ta("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function di(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ei(a,b){var c=null,d=null,e=a.P();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.P());b&16&&(d=a.P());return{trackId:e,Ze:c,Vf:d}}function fi(a,b){return{Ud:1==b?a.mc():a.P()}}function gi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.P()}}
261
- function hi(a,b,c){var d=a.P(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={qe:null,sampleSize:null,wd:null};c&256&&(g.qe=a.P());c&512&&(g.sampleSize=a.P());c&1024&&a.skip(4);c&2048&&(g.wd=0==b?a.P():a.vf());e.push(g)}return{Oi:d,yf:e}};function ii(){this.i=new Map;this.h=this.g=0}
258
+ function ci(a,b){var c=[];try{for(;b.Ea();){var d=Qh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Qh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Rh(e));for(var g=a.j.get(e),h=b.ia();b.ia()-h<f;){e=b;var k=Qh(e),l=k.value,m=k.pts;if(16===l){var n=Qh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Jh(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=Kh(t,p,g.i));if(t.h+1>=t.H){p=t;for(var v=0,w=1;16>w;w++,
259
+ v++)p.i[v]=p.i[w];for(w=0;1>w;w++,v++)p.i[v]=Hh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Kh(t,p,g.i));t.i[t.h]=Hh();t.g=0;break;case 12:t.isVisible()&&(e=Kh(t,p,g.i)),Gh(t),p=t,p.h=0,p.g=0}var y=e}else y=null}else if(128<=l&&159>=l)y=Sh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Ih(g.g,"\u266a"):Ih(g.g,
260
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Ih(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Yh.has(e)){var x=Yh.get(e);Ih(g.g,x)}else Ih(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Ih(g.g,"_"):Ih(g.g,"[CC]"));y=null}(e=y)&&c.push(e)}}}}catch(C){if(C instanceof P&&3E3===C.code)Ta("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function di(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ei(a,b){var c=null,d=null,e=a.P();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.P());b&16&&(d=a.P());return{trackId:e,$e:c,Vf:d}}function fi(a,b){return{Ud:1==b?a.mc():a.P()}}function gi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.P()}}
261
+ function hi(a,b,c){var d=a.P(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={re:null,sampleSize:null,wd:null};c&256&&(g.re=a.P());c&512&&(g.sampleSize=a.P());c&1024&&a.skip(4);c&2048&&(g.wd=0==b?a.P():a.vf());e.push(g)}return{Oi:d,yf:e}};function ii(){this.i=new Map;this.h=this.g=0}
262
262
  ii.prototype.init=function(a){var b=this,c=[],d=[];(new Qg).box("moov",Ug).box("mvex",Ug).V("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.P();f=f.P();b.g=e;b.h=f}).box("trak",Ug).V("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.P();c.push(e)}).box("mdia",Ug).V("mdhd",function(e){e=gi(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new P(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
263
- ii.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Qg).box("moof",Ug).box("traf",Ug).V("trun",function(k){f=hi(k.reader,k.version,k.flags).yf}).V("tfhd",function(k){k=ei(k.reader,k.flags);d=k.Ze||b.g;e=k.Vf||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).V("tfdt",function(k){g=fi(k.reader,k.version).Ud}).box("mdat",function(k){if(null===g)throw new P(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,v=0,y=p;for(t.length&&(y=t[0].sampleSize||p);k.Ea();){var x=k.P();if(6==
264
- (k.ka()&31)){var w=0;t.length>v&&(w=t[v].wd||0);w=(l+w)/m;for(var C=[],z,B=k.Cb(x-1),F=z=0;F<B.length;)2==z&&3==B[F]?(z=0,B=[].concat(ia(B)),B.splice(F,1),B=new Uint8Array(B)):0==B[F]?z++:z=0,F++;z=B;for(F=0;F<z.length;){for(B=0;255==z[F];)B+=255,F++;B+=z[F++];for(var G=0;255==z[F];)G+=255,F++;G+=z[F++];4==B&&C.push(z.subarray(F,F+G));F+=G}C=r(C);for(z=C.next();!z.done;z=C.next())c.push({Rg:z.value,pts:w})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=t.length>v?l+(t[v].qe||n):l+n,v++,y=t.length>
263
+ ii.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Qg).box("moof",Ug).box("traf",Ug).V("trun",function(k){f=hi(k.reader,k.version,k.flags).yf}).V("tfhd",function(k){k=ei(k.reader,k.flags);d=k.$e||b.g;e=k.Vf||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).V("tfdt",function(k){g=fi(k.reader,k.version).Ud}).box("mdat",function(k){if(null===g)throw new P(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,v=0,w=p;for(t.length&&(w=t[0].sampleSize||p);k.Ea();){var y=k.P();if(6==
264
+ (k.ka()&31)){var x=0;t.length>v&&(x=t[v].wd||0);x=(l+x)/m;for(var C=[],z,B=k.Cb(y-1),F=z=0;F<B.length;)2==z&&3==B[F]?(z=0,B=[].concat(ia(B)),B.splice(F,1),B=new Uint8Array(B)):0==B[F]?z++:z=0,F++;z=B;for(F=0;F<z.length;){for(B=0;255==z[F];)B+=255,F++;B+=z[F++];for(var G=0;255==z[F];)G+=255,F++;G+=z[F++];4==B&&C.push(z.subarray(F,F+G));F+=G}C=r(C);for(z=C.next();!z.done;z=C.next())c.push({Rg:z.value,pts:x})}else try{k.skip(y-1)}catch(H){break}w-=y+4;0==w&&(l=t.length>v?l+(t[v].re||n):l+n,v++,w=t.length>
265
265
  v?t[v].sampleSize||p:p)}}).parse(a,!1);return c};function ji(){this.h=new ii;this.g=new Zh}ji.prototype.init=function(a){this.h.init(a)};
266
266
  function ki(a,b){var c=a.h.parse(b);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Ic(e.Rg);if(0<f.length&&(d=a.g,e=e.pts,f=new Ng(f,0),181===f.ka()&&49===f.lc()&&1195456820===f.P()&&3===f.ka())){var g=f.ka();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.ka(),l=(k&4)>>2,m=f.ka(),n=f.ka();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Ra:m,kb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return ai(a.g)}
267
267
  ;function li(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function mi(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function ni(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(oi(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}
@@ -277,22 +277,22 @@ function Gi(a,b){var c;return M(function(d){c=Nb;return b==c.oa?a.g?A(d,a.g.remo
277
277
  function Hi(a,b,c,d,e){var f;return M(function(g){f=Nb;return b==f.oa?(a.g.C=c,Id(a.g,d,e),g["return"]()):A(g,Promise.all([Di(a,b,function(){var h=a.h[b].appendWindowStart,k=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=h;a.h[b].appendWindowEnd=k;vi(a,b)}),Di(a,b,function(){var h=c;0>h&&(h+=.001);a.h[b].timestampOffset=h;vi(a,b)}),Di(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;vi(a,b)})]),0)})}
278
278
  q.endOfStream=function(a){var b=this;return M(function(c){return A(c,Ii(b,function(){wi(b)||(a?b.m.endOfStream(a):b.m.endOfStream())}),0)})};q.cb=function(a){var b=this;return M(function(c){return A(c,Ii(b,function(){b.m.duration=a}),0)})};q.getDuration=function(){return this.m.duration};function vi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Ji(a,b))}function Di(a,b,c){of(a.F);c={start:c,p:new Pc};a.i[b].push(c);1==a.i[b].length&&Ki(a,b);return c.p}
279
279
  function Ii(a,b){var c,d,e,f,g,h;return M(function(k){switch(k.g){case 1:of(a.F);c=[];d={};for(e in a.h)d.uc=new Pc,f={start:function(l){return function(){return l.uc.resolve()}}(d),p:d.uc},a.i[e].push(f),c.push(d.uc),1==a.i[e].length&&f.start(),d={uc:d.uc};E(k,2);return A(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=I(k),g;case 3:try{b()}catch(l){throw new P(2,3,3015,l);}finally{for(h in a.h)Ji(a,h)}D(k)}})}function Ji(a,b){a.i[b].shift();Ki(a,b)}
280
- function Ki(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new P(2,3,3017,b)):c.p.reject(new P(2,3,3015,d)),Ji(a,b)}}function Ci(a,b,c,d){var e=a.I[d];null==c&&e&&(Yc()||Wc())&&"mp4"==a.J[d].split(";")[0].split("/")[1]&&(b=Zg(b));return b}var ti=window.URL.createObjectURL;function Li(a,b,c,d){this.Ka=a;this.Ha=b;this.ya=c;this.be=void 0===d?null:d}Li.prototype.Gc=function(){return this.Ha};Li.prototype.Cc=function(){return this.ya};function Mi(a,b){return a&&b?a.Gc()==b.Gc()&&a.Cc()==b.Cc()&&kc(a.Ka(),b.Ka()):a==b}N("shaka.media.InitSegmentReference",Li);Li.prototype.getEndByte=Li.prototype.Cc;Li.prototype.getStartByte=Li.prototype.Gc;
280
+ function Ki(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new P(2,3,3017,b)):c.p.reject(new P(2,3,3015,d)),Ji(a,b)}}function Ci(a,b,c,d){var e=a.I[d];null==c&&e&&(Yc()||Wc())&&"mp4"==a.J[d].split(";")[0].split("/")[1]&&(b=Zg(b));return b}var ti=window.URL.createObjectURL;function Li(a,b,c,d){this.Ka=a;this.Ha=b;this.ya=c;this.ce=void 0===d?null:d}Li.prototype.Gc=function(){return this.Ha};Li.prototype.Cc=function(){return this.ya};function Mi(a,b){return a&&b?a.Gc()==b.Gc()&&a.Cc()==b.Cc()&&kc(a.Ka(),b.Ka()):a==b}N("shaka.media.InitSegmentReference",Li);Li.prototype.getEndByte=Li.prototype.Cc;Li.prototype.getStartByte=Li.prototype.Gc;
281
281
  function Ni(a,b,c,d,e,f,g,h,k,l,m,n){l=void 0===l?[]:l;this.startTime=a;this.l=this.endTime=b;this.j=c;this.Ha=d;this.ya=e;this.g=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.i=void 0===n?null:n}q=Ni.prototype;q.Ka=function(){return this.j()};q.getStartTime=function(){return this.startTime};q.ig=function(){return this.endTime};q.Gc=function(){return this.Ha};q.Cc=function(){return this.ya};q.Cg=function(){return this.tilesLayout};
282
- q.Bg=function(){return this.i};N("shaka.media.SegmentReference",Ni);Ni.prototype.getTileDuration=Ni.prototype.Bg;Ni.prototype.getTilesLayout=Ni.prototype.Cg;Ni.prototype.getEndByte=Ni.prototype.Cc;Ni.prototype.getStartByte=Ni.prototype.Gc;Ni.prototype.getEndTime=Ni.prototype.ig;Ni.prototype.getStartTime=Ni.prototype.getStartTime;Ni.prototype.getUris=Ni.prototype.Ka;function R(a,b,c){this.l=a;this.ud=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=R.prototype;q.getDuration=function(){return this.i};q.qg=function(){return this.g};q.cb=function(a){this.i=a};q.vg=function(){return this.l};q.Bf=function(a){this.A=a};q.Qc=function(a){this.B=a};q.Be=function(a){this.m=a};q.hh=function(a){this.ud=a};q.hg=function(){return this.ud};
283
- q.ic=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.ge(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.ae=function(){this.H=!0};q.ge=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.fe=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
284
- q.T=function(){return Infinity==this.i&&!this.B};q.Nb=function(){return Infinity!=this.i&&!this.B};q.ob=function(){return Math.max(this.C,this.Kb()-this.m)};q.Ef=function(a){this.C=a};q.Kb=function(){return this.T()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Fc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Kb()-this.m+a,this.mb()))};q.cc=function(){return this.Fc(0)};
285
- q.mb=function(){return Math.max(0,this.Kb()-(this.T()||this.Nb()?this.ud:0))};q.If=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Af=function(a){this.G=a};N("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.Af;R.prototype.usingPresentationStartTime=R.prototype.If;R.prototype.getSeekRangeEnd=R.prototype.mb;R.prototype.getSeekRangeStart=R.prototype.cc;R.prototype.getSafeSeekRangeStart=R.prototype.Fc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Kb;
286
- R.prototype.setUserSeekStart=R.prototype.Ef;R.prototype.getSegmentAvailabilityStart=R.prototype.ob;R.prototype.isInProgress=R.prototype.Nb;R.prototype.isLive=R.prototype.T;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.fe;R.prototype.notifyMinSegmentStartTime=R.prototype.ge;R.prototype.lockStartTime=R.prototype.ae;R.prototype.notifySegments=R.prototype.ic;R.prototype.getDelay=R.prototype.hg;R.prototype.setDelay=R.prototype.hh;
287
- R.prototype.setSegmentAvailabilityDuration=R.prototype.Be;R.prototype.setStatic=R.prototype.Qc;R.prototype.setClockOffset=R.prototype.Bf;R.prototype.getPresentationStartTime=R.prototype.vg;R.prototype.setDuration=R.prototype.cb;R.prototype.getMaxSegmentDuration=R.prototype.qg;R.prototype.getDuration=R.prototype.getDuration;function Oi(a,b){this.j=a;this.m=Pi(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}Oi.prototype.release=function(){this.j=null;this.i=function(){}};function Qi(a,b){a.i=b}function Ri(a){this.g=a}function Pi(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(oi(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 Si(a,b,c,d,e){var f=this;this.g=a;this.F=b;this.l=c;this.C=e;this.i=new pf;this.B=!1;this.G=a.readyState;this.j=!1;this.h=d;this.A=!1;this.i.o(a,"waiting",function(){return Ti(f)});this.m=(new Q(function(){Ti(f)})).ha(.25)}Si.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.F=this.C=null};Si.prototype.je=function(){this.A=!0;Ti(this)};
282
+ q.Bg=function(){return this.i};N("shaka.media.SegmentReference",Ni);Ni.prototype.getTileDuration=Ni.prototype.Bg;Ni.prototype.getTilesLayout=Ni.prototype.Cg;Ni.prototype.getEndByte=Ni.prototype.Cc;Ni.prototype.getStartByte=Ni.prototype.Gc;Ni.prototype.getEndTime=Ni.prototype.ig;Ni.prototype.getStartTime=Ni.prototype.getStartTime;Ni.prototype.getUris=Ni.prototype.Ka;function R(a,b,c){this.l=a;this.ud=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=R.prototype;q.getDuration=function(){return this.i};q.qg=function(){return this.g};q.cb=function(a){this.i=a};q.vg=function(){return this.l};q.Bf=function(a){this.A=a};q.Qc=function(a){this.B=a};q.Ce=function(a){this.m=a};q.hh=function(a){this.ud=a};q.hg=function(){return this.ud};
283
+ q.ic=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.ie(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.be=function(){this.H=!0};q.ie=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.ge=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
284
+ q.T=function(){return Infinity==this.i&&!this.B};q.Nb=function(){return Infinity!=this.i&&!this.B};q.pb=function(){return Math.max(this.C,this.Kb()-this.m)};q.Ef=function(a){this.C=a};q.Kb=function(){return this.T()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Fc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Kb()-this.m+a,this.ob()))};q.cc=function(){return this.Fc(0)};
285
+ q.ob=function(){return Math.max(0,this.Kb()-(this.T()||this.Nb()?this.ud:0))};q.If=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Af=function(a){this.G=a};N("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.Af;R.prototype.usingPresentationStartTime=R.prototype.If;R.prototype.getSeekRangeEnd=R.prototype.ob;R.prototype.getSeekRangeStart=R.prototype.cc;R.prototype.getSafeSeekRangeStart=R.prototype.Fc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Kb;
286
+ R.prototype.setUserSeekStart=R.prototype.Ef;R.prototype.getSegmentAvailabilityStart=R.prototype.pb;R.prototype.isInProgress=R.prototype.Nb;R.prototype.isLive=R.prototype.T;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.ge;R.prototype.notifyMinSegmentStartTime=R.prototype.ie;R.prototype.lockStartTime=R.prototype.be;R.prototype.notifySegments=R.prototype.ic;R.prototype.getDelay=R.prototype.hg;R.prototype.setDelay=R.prototype.hh;
287
+ R.prototype.setSegmentAvailabilityDuration=R.prototype.Ce;R.prototype.setStatic=R.prototype.Qc;R.prototype.setClockOffset=R.prototype.Bf;R.prototype.getPresentationStartTime=R.prototype.vg;R.prototype.setDuration=R.prototype.cb;R.prototype.getMaxSegmentDuration=R.prototype.qg;R.prototype.getDuration=R.prototype.getDuration;function Oi(a,b){this.j=a;this.m=Pi(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}Oi.prototype.release=function(){this.j=null;this.i=function(){}};function Qi(a,b){a.i=b}function Ri(a){this.g=a}function Pi(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(oi(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 Si(a,b,c,d,e){var f=this;this.g=a;this.F=b;this.l=c;this.C=e;this.i=new pf;this.B=!1;this.G=a.readyState;this.j=!1;this.h=d;this.A=!1;this.i.o(a,"waiting",function(){return Ti(f)});this.m=(new Q(function(){Ti(f)})).ha(.25)}Si.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.F=this.C=null};Si.prototype.ke=function(){this.A=!0;Ti(this)};
288
288
  function Ti(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.B)return}else a.B=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.G&&(a.j=!1,a.G=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Pi(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.m!=d)b.l=f,b.g=e,b.m=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){e=a.l.smallGapLimit;var g=a.g.currentTime;b=a.g.buffered;c=pi(b,g,a.l.gapDetectionThreshold);if(!(null==
289
- c||0==c&&!a.A||(d=b.start(c),d>=a.F.mb()))){var h=d-g;e=h<=e;f=!1;.001>h||(e||a.j||(a.j=!0,g=(new Map).set("currentTime",g).set("gapSize",h),g=new O("largegap",g),g.cancelable=!0,a.C(g),a.l.jumpLargeGaps&&!g.defaultPrevented&&(f=!0)),!e&&!f)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Ui(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Vi.value().get(b),c.Ga(a,b,d))}var Vi=new Qc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Wi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new pf;this.i=new Xi(a);Ui(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Yi(d,d.j)})}Wi.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 Zi(a){return a.m?a.g.currentTime:a.j}function $i(a,b){0<a.g.readyState?dj(a.i,b):Ui(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Yi(a,a.j)})}
289
+ c||0==c&&!a.A||(d=b.start(c),d>=a.F.ob()))){var h=d-g;e=h<=e;f=!1;.001>h||(e||a.j||(a.j=!0,g=(new Map).set("currentTime",g).set("gapSize",h),g=new O("largegap",g),g.cancelable=!0,a.C(g),a.l.jumpLargeGaps&&!g.defaultPrevented&&(f=!0)),!e&&!f)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Ui(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Vi.value().get(b),c.Ga(a,b,d))}var Vi=new Qc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Wi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new pf;this.i=new Xi(a);Ui(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Yi(d,d.j)})}Wi.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 Zi(a){return a.m?a.g.currentTime:a.j}function $i(a,b){0<a.g.readyState?dj(a.i,b):Ui(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Yi(a,a.j)})}
290
290
  function Yi(a,b){.001>Math.abs(a.g.currentTime-b)?ej(a):(a.h.Ga(a.g,"seeking",function(){ej(a)}),dj(a.i,0==a.g.currentTime?b:a.g.currentTime))}function ej(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Xi(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Q(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Xi.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
291
291
  function dj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ha(.1)};function fj(a){this.g=a;this.j=!1;this.h=null;this.i=new pf}q=fj.prototype;q.Sd=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.Ga(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Ui(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.Td=function(a){this.h=this.j?this.h:a};q.Xc=function(){return(this.j?this.g.currentTime:this.h)||0};q.tf=function(){};
292
- function gj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.l=c;this.B=e;this.A=null;this.j=new Si(a,b.presentationTimeline,c,hj(a,c),f);this.h=new Wi(a,function(){a:{var h=g.j;h.B=!0;h.A=!1;h.j=!1;var k=Zi(g.h);h=ij(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;$i(g.h,h);h=void 0;break a}g.B();h=void 0}return h},jj(this,d));this.m=new Q(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Zi(g.h),k=g.g.cc(),l=g.g.mb();3>l-k&&(k=l-
292
+ function gj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.l=c;this.B=e;this.A=null;this.j=new Si(a,b.presentationTimeline,c,hj(a,c),f);this.h=new Wi(a,function(){a:{var h=g.j;h.B=!0;h.A=!1;h.j=!1;var k=Zi(g.h);h=ij(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;$i(g.h,h);h=void 0;break a}g.B();h=void 0}return h},jj(this,d));this.m=new Q(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Zi(g.h),k=g.g.cc(),l=g.g.ob();3>l-k&&(k=l-
293
293
  3);h<k&&(h=ij(g,h),g.i.currentTime=h)}})}q=gj.prototype;q.Sd=function(){this.m.ha(.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.B=function(){}};q.Td=function(a){$i(this.h,a)};q.Xc=function(){var a=Zi(this.h);return 0<this.i.readyState&&!this.i.paused?kj(this,a):a};
294
- function jj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.cc():a.g.mb():0>b&&(b=a.g.mb()+b);return lj(a,kj(a,b))}q.tf=function(){this.j.je()};function lj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function ij(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Fc(c),k=a.g.Fc(d);c=a.g.Fc(c+d);return b>=g?lj(a,b):b>f?f:b<e?mi(a.i.buffered,k)?k:c:b>=h||mi(a.i.buffered,b)?b:c}
295
- function kj(a,b){var c=a.g.cc();if(b<c)return c;c=a.g.mb();return b>c?c:b}function hj(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new Oi(new Ri(a),b.stallThreshold);Qi(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function mj(a){this.O=a;this.g=null;this.h=0;this.i=!1}q=mj.prototype;q.destroy=function(){zb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};q.release=function(){this.i||(this.O=[],this.g&&this.g.stop(),this.g=null)};q.Lg=function(){this.i=!0};
294
+ function jj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.cc():a.g.ob():0>b&&(b=a.g.ob()+b);return lj(a,kj(a,b))}q.tf=function(){this.j.ke()};function lj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function ij(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.ob(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Fc(c),k=a.g.Fc(d);c=a.g.Fc(c+d);return b>=g?lj(a,b):b>f?f:b<e?mi(a.i.buffered,k)?k:c:b>=h||mi(a.i.buffered,b)?b:c}
295
+ function kj(a,b){var c=a.g.cc();if(b<c)return c;c=a.g.ob();return b>c?c:b}function hj(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new Oi(new Ri(a),b.stallThreshold);Qi(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function mj(a){this.O=a;this.g=null;this.h=0;this.i=!1}q=mj.prototype;q.destroy=function(){zb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};q.release=function(){this.i||(this.O=[],this.g&&this.g.stop(),this.g=null)};q.Lg=function(){this.i=!0};
296
296
  q.find=function(a){for(var b=this.O.length-1,c=b;0<=c;--c){var d=this.O[c],e=c<b?this.O[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.O.length&&a<this.O[0].startTime?this.h:null};q.get=function(a){if(0==this.O.length)return null;a-=this.h;return 0>a||a>=this.O.length?null:this.O[a]};q.offset=function(a){if(!this.i)for(var b=r(this.O),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};
297
297
  q.fc=function(a){!this.i&&a.length&&(this.O=this.O.filter(function(b){return b.startTime<a[0].startTime}),this.O.push.apply(this.O,ia(a)))};q.hc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.O.length||d.endTime>c.O[0].startTime)});this.fc(a);this.Hb(b)};q.Hb=function(a){if(!this.i){var b=this.O.length;this.O=this.O.filter(function(c){return c.endTime>a});this.h+=b-this.O.length}};
298
298
  q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.O.length;)if(this.O[this.O.length-1].startTime>=b)this.O.pop();else break;for(;this.O.length;)if(this.O[0].endTime<=a)this.O.shift(),c||this.h++;else break;0!=this.O.length&&(a=this.O[this.O.length-1],this.O[this.O.length-1]=new Ni(a.startTime,b,a.j,a.Ha,a.ya,a.g,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.i))}};
@@ -302,9 +302,9 @@ mj.prototype.markImmutable=mj.prototype.Lg;mj.prototype.release=mj.prototype.rel
302
302
  nj.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.h.length&&a.Ka().length&&this.g>=a.h.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.h.length?a.h[this.g]:a};nj.prototype.next=function(){var a=this.i.get(this.h);a&&0<a.h.length?(this.g++,a.Ka().length&&this.g==a.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};N("shaka.media.SegmentIterator",nj);nj.prototype.next=nj.prototype.next;nj.prototype.current=nj.prototype.current;
303
303
  nj.prototype.seek=nj.prototype.seek;function pj(){mj.call(this,[]);this.j=[]}u(pj,mj);q=pj.prototype;q.clone=function(){var a=new pj;a.j=this.j.slice();return a};q.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.O.length}return null};
304
304
  q.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.O.length}return null};q.offset=function(){};q.fc=function(){};q.Hb=function(){};q.hc=function(){};q.yb=function(){};q.yd=function(){};N("shaka.media.MetaSegmentIndex",pj);pj.prototype.updateEvery=pj.prototype.yd;pj.prototype.fit=pj.prototype.yb;pj.prototype.mergeAndEvict=pj.prototype.hc;pj.prototype.evict=pj.prototype.Hb;pj.prototype.merge=pj.prototype.fc;
305
- pj.prototype.offset=pj.prototype.offset;pj.prototype.get=pj.prototype.get;pj.prototype.find=pj.prototype.find;pj.prototype.release=pj.prototype.release;function qj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.hd();this.h=new Q(function(){b.g.rf(.25*b.i)})}qj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};qj.prototype.set=function(a){this.i=a;rj(this)};qj.prototype.ed=function(){return this.g.ed()};function rj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.hd()!=b&&a.g.ze(b);return}catch(c){}a.h.ha(.25);0!=a.g.hd()&&a.g.ze(0)};function sj(a){var b=this;this.h=a;this.g=new Set;this.i=(new Q(function(){tj(b,!1)})).ha(.25)}sj.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 tj(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function uj(a){cb.call(this);this.g=new Map;this.h=a}u(uj,cb);uj.prototype.release=function(){this.g.clear();cb.prototype.release.call(this)};function vj(a,b){var c=a.g.get(b);c||(c={Lc:[],Xe:null,contentType:b},a.g.set(b,c));return c}function wj(a,b,c){var d=vj(a,b.contentType);xj(a,d);a={be:b,position:c};d=d.Lc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
306
- uj.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.Lc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.be;break a}}d=null}if(e=d)e=c.Xe,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);
307
- 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.Xe=d,JSON.stringify(d),c=new O("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function xj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Lc;b.Lc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Lc=[]};function yj(a){cb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Q(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 O("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ha(2)}u(yj,cb);yj.prototype.release=function(){this.g.clear();this.h.stop();cb.prototype.release.call(this)};function zj(a){cb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Wb:null,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Cj,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Dj,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Aj,Vb:Cj,Mb:function(c,d){return Bj(b,"exit",c,d)}},{Wb:Aj,Vb:Dj,Mb:function(c,d){return Bj(b,"exit",c,d)}},{Wb:Cj,Vb:Dj,Mb:function(c,d){return Bj(b,"skip",c,d)}},{Wb:Dj,Vb:Cj,Mb:function(c,d){return Bj(b,"skip",c,d)}}];this.h=new pf;this.h.o(this.i,"regionremove",
305
+ pj.prototype.offset=pj.prototype.offset;pj.prototype.get=pj.prototype.get;pj.prototype.find=pj.prototype.find;pj.prototype.release=pj.prototype.release;function qj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.hd();this.h=new Q(function(){b.g.rf(.25*b.i)})}qj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};qj.prototype.set=function(a){this.i=a;rj(this)};qj.prototype.ed=function(){return this.g.ed()};function rj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.hd()!=b&&a.g.Ae(b);return}catch(c){}a.h.ha(.25);0!=a.g.hd()&&a.g.Ae(0)};function sj(a){var b=this;this.h=a;this.g=new Set;this.i=(new Q(function(){tj(b,!1)})).ha(.25)}sj.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 tj(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function uj(a){cb.call(this);this.g=new Map;this.h=a}u(uj,cb);uj.prototype.release=function(){this.g.clear();cb.prototype.release.call(this)};function vj(a,b){var c=a.g.get(b);c||(c={Lc:[],Ye:null,contentType:b},a.g.set(b,c));return c}function wj(a,b,c){var d=vj(a,b.contentType);xj(a,d);a={ce:b,position:c};d=d.Lc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
306
+ uj.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.Lc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ce;break a}}d=null}if(e=d)e=c.Ye,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);
307
+ 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.Ye=d,JSON.stringify(d),c=new O("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function xj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Lc;b.Lc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Lc=[]};function yj(a){cb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Q(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 O("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ha(2)}u(yj,cb);yj.prototype.release=function(){this.g.clear();this.h.stop();cb.prototype.release.call(this)};function zj(a){cb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Wb:null,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Cj,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Dj,Vb:Aj,Mb:function(c,d){return Bj(b,"enter",c,d)}},{Wb:Aj,Vb:Cj,Mb:function(c,d){return Bj(b,"exit",c,d)}},{Wb:Aj,Vb:Dj,Mb:function(c,d){return Bj(b,"exit",c,d)}},{Wb:Cj,Vb:Dj,Mb:function(c,d){return Bj(b,"skip",c,d)}},{Wb:Dj,Vb:Cj,Mb:function(c,d){return Bj(b,"skip",c,d)}}];this.h=new pf;this.h.o(this.i,"regionremove",
308
308
  function(c){b.g["delete"](c.region)})}u(zj,cb);zj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;cb.prototype.release.call(this)};zj.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?Cj:a>d.endTime?Dj:Aj;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Wb==e&&h.Vb==f&&h.Mb(d,b)}};
309
309
  function Bj(a,b,c,d){b=new O(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Cj=1,Aj=2,Dj=3;function Ej(a,b,c,d,e){a=ff(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Fj(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.C=1;this.A=this.l=null;this.j=new Map;this.F=!1;this.G=null;this.B=!1;this.i=new nf(function(){return Gj(c)})}Fj.prototype.destroy=function(){return this.i.destroy()};function Gj(a){var b,c,d,e;return M(function(f){if(1==f.g){b=[];c=r(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,Hj(e),b.push(Ij(e));return A(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.h=null;D(f)})}
310
310
  Fj.prototype.configure=function(a){this.h=a;this.G=new Oe({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)};Fj.prototype.start=function(){var a=this;return M(function(b){if(1==b.g)return A(b,Jj(a),2);of(a.i);a.F=!0;D(b)})};
@@ -314,20 +314,20 @@ function Pj(a,b,c,d,e){var f=a.j.get(b.type);f||b.type!=Mb?f&&(f.Tb&&(b.trickMod
314
314
  function Tj(a,b){var c,d;return M(function(e){if(1==e.g){if(!b.Na)return e["return"]();c=b.stream;d=b.Na;return c.segmentIndex?e.D(2):A(e,c.createSegmentIndex(),2)}if(b.Na!=d||b.stream!=c)return e["return"]();var f=a.g.gd();var g=zi(a.g.W,b.type),h=b.stream.segmentIndex.find(b.Sa?b.Sa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ya?k.ya-k.Ha:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.g)&&(h+=(k.ya?k.ya-k.Ha:null)||0),k=a.g.getBandwidthEstimate(),
315
315
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Na.h.g>h?!0:!1):f=!1;f&&b.Na.abort();D(e)})}function Uj(a,b){b.zc||b.Eb||(b.La?(b.Eb=!0,b.bd=0):null==xi(a.g.W,b.type)?null==b.fb&&Mj(a,b,0):(Hj(b),Sj(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
316
316
  function Jj(a){var b,c,d,e,f,g,h,k,l,m;return M(function(n){if(1==n.g){b=Nb;if(!a.l)throw new P(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Gb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.hb,a.l.video),d.add(a.l.video));a.A&&(c.set(b.oa,a.A),d.add(a.A));e=a.g.W;f=a.h.forceTransmuxTS;return A(n,e.init(c,f),2)}of(a.i);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.W.cb(p):a.g.W.cb(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||
317
- (m=Lj(l),a.j.set(k,m),Mj(a,m,0));D(n)})}function Lj(a){return{stream:a,type:a.type,ua:null,Sa:null,ld:null,$d:null,Zd:null,Yd:null,Tb:null,endOfStream:!1,La:!1,fb:null,Eb:!1,bd:0,Cd:!1,zc:!1,me:!1,Ic:!1,Na:null}}
317
+ (m=Lj(l),a.j.set(k,m),Mj(a,m,0));D(n)})}function Lj(a){return{stream:a,type:a.type,ua:null,Sa:null,ld:null,ae:null,$d:null,Zd:null,Tb:null,endOfStream:!1,La:!1,fb:null,Eb:!1,bd:0,Cd:!1,zc:!1,oe:!1,Ic:!1,Na:null}}
318
318
  function Vj(a,b){var c,d,e,f,g;return M(function(h){switch(h.g){case 1:of(a.i);if(b.La||null==b.fb||b.zc)return h["return"]();b.fb=null;if(!b.Eb){h.D(2);break}return A(h,Sj(a,b,b.Cd,b.bd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return A(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.La||b.fb||Mj(a,b,0),h["return"]();case 4:E(h,6);d=Wj(a,b);null!=d&&(Mj(a,b,d),b.Ic=!1);va(h,7);break;case 6:return e=
319
319
  I(h),A(h,Xj(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 A(h,a.g.W.endOfStream(),10);case 10:of(a.i),g=a.g.W.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.cb(g),D(h)}})}
320
320
  function Wj(a,b){if(Yj(b))return Ei(a.g.W,b.stream.originalId||""),null;b.type==Mb&&Fi(a.g.W);var c=a.g.gd(),d=b.Sa?b.Sa.endTime:c,e=Ai(a.g.W,b.type,c),f=Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=zi(a.g.W,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(c=a.j.get(Mb))&&Yj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=Zj(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;
321
321
  f=Infinity;g=Array.from(a.j.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,Yj(h)||h.ua&&!h.ua.current()||(f=Math.min(f,h.Sa?h.Sa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;ak(a,b,c,e)["catch"](function(){});return null}
322
322
  function Zj(a,b,c,d){if(b.ua)return b.ua.current();if(b.Sa||d)return b.ua=b.stream.segmentIndex.Jb(b.Sa?b.Sa.endTime:d),b.ua&&b.ua.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ua=b.stream.segmentIndex.Jb(d),e=b.ua&&b.ua.next().value);e||(b.ua=b.stream.segmentIndex.Jb(c),e=b.ua&&b.ua.next().value);return e}
323
- function ak(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,v,y,x,w,C;return M(function(z){switch(z.g){case 1:return e=Nb,f=b.stream,g=b.ua,b.La=!0,E(z,2),A(z,bk(a,b,d),4);case 4:of(a.i);if(a.B)return z["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h)return n=new Uint8Array(0),t=p=!1,v=function(B){var F,G,H;return M(function(J){if(p)return J["return"]();t=!0;of(a.i);if(a.B)return J["return"]();n=ck(n,B);F=!1;G=0;(new Qg).box("mdat",function(K){G=
324
- K.size+K.start;F=!0}).parse(n,!1,!0);if(!F)return J.D(0);H=n.subarray(0,G);n=n.subarray(G);return A(J,dk(a,b,c,f,d,H),0)})},A(z,ek(a,b,d,v),9);l=ek(a,b,d);return A(z,l,7);case 7:return m=z.h,of(a.i),a.B?z["return"]():b.Eb?(b.La=!1,Mj(a,b,0),z["return"]()):A(z,dk(a,b,c,f,d,m),6);case 9:y=z.h;if(t){z.D(6);break}p=!0;of(a.i);return a.B?z["return"]():b.Eb?(b.La=!1,Mj(a,b,0),z["return"]()):A(z,dk(a,b,c,f,d,y),6);case 6:of(a.i);if(a.B)return z["return"]();b.Sa=d;g.next();b.La=!1;b.me=!1;x=a.g.W.zb();w=
325
- x[b.type];Xa(JSON.stringify(w));b.Eb||a.g.je();Mj(a,b,0);va(z,0);break;case 2:C=I(z);of(a.i,C);if(a.B)return z["return"]();b.La=!1;if(7001==C.code)b.La=!1,Hj(b),Mj(a,b,0),z.D(0);else if(b.type==e.oa&&a.h.ignoreTextStreamFailures)a.j["delete"](e.oa),z.D(0);else if(3017==C.code)fk(a,b,C),z.D(0);else return b.Ic=!0,C.severity=2,A(z,Xj(a,C),0)}})}function ck(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
326
- function fk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.me})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Ic=!0;a.B=!0;a.g.onError(c);return}b.me=!0}Mj(a,b,4)}
327
- function bk(a,b,c){var d,e,f,g,h,k,l;return M(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.$d||e!=b.Zd||f!=b.Yd)h=function(){var n;return M(function(p){if(1==p.g)return E(p,2),b.Zd=e,b.Yd=f,b.$d=g,A(p,Hi(a.g.W,b.type,g,e,f),4);if(2!=p.g)return va(p,0);n=I(p);b.Zd=null;b.Yd=null;b.$d=null;throw n;})},d.push(h());!Mi(c.g,b.ld)&&(b.ld=c.g)&&(k=ek(a,b,c.g),l=function(){var n,p,t;return M(function(v){switch(v.g){case 1:return E(v,2),A(v,k,4);
323
+ function ak(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,v,w,y,x,C;return M(function(z){switch(z.g){case 1:return e=Nb,f=b.stream,g=b.ua,b.La=!0,E(z,2),A(z,bk(a,b,d),4);case 4:of(a.i);if(a.B)return z["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h)return n=new Uint8Array(0),t=p=!1,v=function(B){var F,G,H;return M(function(J){if(p)return J["return"]();t=!0;of(a.i);if(a.B)return J["return"]();n=ck(n,B);F=!1;G=0;(new Qg).box("mdat",function(K){G=
324
+ K.size+K.start;F=!0}).parse(n,!1,!0);if(!F)return J.D(0);H=n.subarray(0,G);n=n.subarray(G);return A(J,dk(a,b,c,f,d,H),0)})},A(z,ek(a,b,d,v),9);l=ek(a,b,d);return A(z,l,7);case 7:return m=z.h,of(a.i),a.B?z["return"]():b.Eb?(b.La=!1,Mj(a,b,0),z["return"]()):A(z,dk(a,b,c,f,d,m),6);case 9:w=z.h;if(t){z.D(6);break}p=!0;of(a.i);return a.B?z["return"]():b.Eb?(b.La=!1,Mj(a,b,0),z["return"]()):A(z,dk(a,b,c,f,d,w),6);case 6:of(a.i);if(a.B)return z["return"]();b.Sa=d;g.next();b.La=!1;b.oe=!1;y=a.g.W.zb();x=
325
+ y[b.type];Xa(JSON.stringify(x));b.Eb||a.g.ke();Mj(a,b,0);va(z,0);break;case 2:C=I(z);of(a.i,C);if(a.B)return z["return"]();b.La=!1;if(7001==C.code)b.La=!1,Hj(b),Mj(a,b,0),z.D(0);else if(b.type==e.oa&&a.h.ignoreTextStreamFailures)a.j["delete"](e.oa),z.D(0);else if(3017==C.code)fk(a,b,C),z.D(0);else return b.Ic=!0,C.severity=2,A(z,Xj(a,C),0)}})}function ck(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
326
+ function fk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.oe})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Ic=!0;a.B=!0;a.g.onError(c);return}b.oe=!0}Mj(a,b,4)}
327
+ function bk(a,b,c){var d,e,f,g,h,k,l;return M(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.ae||e!=b.$d||f!=b.Zd)h=function(){var n;return M(function(p){if(1==p.g)return E(p,2),b.$d=e,b.Zd=f,b.ae=g,A(p,Hi(a.g.W,b.type,g,e,f),4);if(2!=p.g)return va(p,0);n=I(p);b.$d=null;b.Zd=null;b.ae=null;throw n;})},d.push(h());!Mi(c.g,b.ld)&&(b.ld=c.g)&&(k=ek(a,b,c.g),l=function(){var n,p,t;return M(function(v){switch(v.g){case 1:return E(v,2),A(v,k,4);
328
328
  case 4:return n=v.h,of(a.i),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,A(v,Bi(a.g.W,b.type,n,null,null,p),5);case 5:va(v,0);break;case 2:throw t=I(v),b.ld=null,t;}})},a.g.Pg(c.startTime,c.g),d.push(l()));return A(m,Promise.all(d),0)})}
329
- function dk(a,b,c,d,e,f){var g;return M(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes)&&(new Qg).V("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Mc();var n=k.reader.Mc();var p=k.reader.P();var t=k.reader.P();var v=k.reader.P();var y=k.reader.P();var x=e.startTime+t/p}else p=k.reader.P(),x=k.reader.mc()/p+e.timestampOffset,t=x-e.startTime,v=k.reader.P(),y=k.reader.P(),
330
- m=k.reader.Mc(),n=k.reader.Mc();k=k.reader.Cb(k.reader.U.byteLength-k.reader.ia());if(l&&l.includes(m)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==m?a.g.Qg():(l=(new Map).set("detail",{startTime:x,endTime:x+v/p,schemeIdUri:m,value:n,timescale:p,presentationTimeDelta:t,eventDuration:v,id:y,messageData:k}),l=new O(gk,l),a.g.onEvent(l))}).parse(f),A(h,hk(a,b,c),2);if(3!=h.g)return of(a.i),A(h,Bi(a.g.W,b.type,f,e.startTime,e.endTime,g),3);of(a.i);D(h)})}
329
+ function dk(a,b,c,d,e,f){var g;return M(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes)&&(new Qg).V("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Mc();var n=k.reader.Mc();var p=k.reader.P();var t=k.reader.P();var v=k.reader.P();var w=k.reader.P();var y=e.startTime+t/p}else p=k.reader.P(),y=k.reader.mc()/p+e.timestampOffset,t=y-e.startTime,v=k.reader.P(),w=k.reader.P(),
330
+ m=k.reader.Mc(),n=k.reader.Mc();k=k.reader.Cb(k.reader.U.byteLength-k.reader.ia());if(l&&l.includes(m)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==m?a.g.Qg():(l=(new Map).set("detail",{startTime:y,endTime:y+v/p,schemeIdUri:m,value:n,timescale:p,presentationTimeDelta:t,eventDuration:v,id:w,messageData:k}),l=new O(gk,l),a.g.onEvent(l))}).parse(f),A(h,hk(a,b,c),2);if(3!=h.g)return of(a.i),A(h,Bi(a.g.W,b.type,f,e.startTime,e.endTime,g),3);of(a.i);D(h)})}
331
331
  function hk(a,b,c){var d,e,f,g;return M(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=xi(a.g.W,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():A(h,a.g.W.remove(b.type,e,e+g),2)}of(a.i);D(h)})}function Yj(a){return a&&a.type==Mb&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
332
332
  function ek(a,b,c,d){var e,f,g,h,k;return M(function(l){if(1==l.g)return e=mf,f=Ej(c.Ka(),c.Ha,c.ya,a.h.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof Li,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Qb.request(e,f),b.Na=h,A(l,h.promise,2);k=l.h;b.Na=null;return l["return"](k.data)})}
333
333
  function Sj(a,b,c,d){var e,f;return M(function(g){if(1==g.g)return b.Eb=!1,b.Cd=!1,b.bd=0,b.zc=!0,b.Sa=null,b.ld=null,b.ua=null,d?(e=a.g.gd(),f=a.g.W.getDuration(),A(g,a.g.W.remove(b.type,e+d,f),3)):A(g,Gi(a.g.W,b.type),4);if(3!=g.g)return of(a.i),c?A(g,a.g.W.flush(b.type),3):g.D(3);of(a.i);b.zc=!1;b.endOfStream=!1;b.La||b.fb||Mj(a,b,0);D(g)})}
@@ -347,9 +347,9 @@ t.startTime?p.startTime-t.startTime:p.endTime-t.endTime});h=r(h);for(k=h.next();
347
347
  function zk(a,b,c){var d=1<c.length,e=d?"span":"div";if(b.lineBreak||b.spacer)b.spacer&&zb("shaka.extern.Cue","Please use lineBreak instead of spacer."),e="br";d=!d&&0<b.nestedCues.length;var f=S(e);"br"!=e&&Ak(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==Dc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Dc?"%":"px"),a.A.has(e))c=a.A.get(e);else{var g=S("span"),h=c.heightUnits==Dc?"%":"px",k=c.widthUnits==Dc?
348
348
  "%":"px",l=c.viewportAnchorUnits==Dc?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");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.A.set(e,g);c=g}e=f;d&&(e=S("span"),e.classList.add("shaka-text-wrapper"),
349
349
  e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{Vd:f,Jf:e,Nc:c})}
350
- function Ak(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=Bk(c.linePadding,c,a.m);f.paddingRight=Bk(c.linePadding,c,a.m);if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize=
351
- "contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=S("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Ck(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"flex-start":"center"==
352
- 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=Bk(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==qc?(f.width="100%",c.lineAlign==sc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==sc?f.left=c.line+"%":"end"==c.lineAlign&&
350
+ function Ak(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=Bk(c.linePadding,c,a.m);f.paddingRight=Bk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
351
+ "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=S("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Ck(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?
352
+ "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=Bk(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",c.writingMode==qc?(f.width="100%",c.lineAlign==sc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==sc?f.left=c.line+"%":"end"==c.lineAlign&&
353
353
  (f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==sc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%")));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==qc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||
354
354
  (f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==qc?f.width=c.size+"%":f.height=c.size+"%")}function Bk(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function Ck(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}
355
355
  N("shaka.text.UITextDisplayer",vk);vk.prototype.setTextVisibility=vk.prototype.setTextVisibility;vk.prototype.isTextVisible=vk.prototype.isTextVisible;vk.prototype.remove=vk.prototype.remove;vk.prototype.destroy=vk.prototype.destroy;vk.prototype.append=vk.prototype.append;function Dk(a,b){function c(k,l){for(var m=r(k),n=m.next();!n.done;n=m.next())if(n=n.value,n.isContainer)c(n.nestedCues,l);else{var p=n.clone();p.nestedCues=[];p.payload=e(n);l.push(p)}return l}function d(k){for(var l=k,m=r(b),n=m.next();!n.done;n=m.next())n=n.value,n.end&&n.start<k&&(l+=n.end-n.start);k=Math.floor(l/3600);m=Math.floor(l/60%60);n=Math.floor(l%60);l=Math.floor(1E3*l%1E3);return(10>k?"0":"")+k+":"+(10>m?"0":"")+m+":"+(10>n?"0":"")+n+"."+(100>l?10>l?"00":"0":"")+l}function e(k){var l=
@@ -362,7 +362,7 @@ function Ok(a,b){var c=a.h.ab();if(!c.length)return NaN;var d=c[0];c=r(c);for(va
362
362
  function Tk(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=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"===
363
363
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Xk(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=Tk(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
364
364
  function Uk(a,b){if(!b||a.includes("offline:"))return a;var c=new jb(a);c.g.set("CMCD",b);return c.toString()}var Sk="m",Kk="a",Jk="v",Lk="av",Yk="i",Wk="c",Mk="tt",Hk="v",Gk="l";N("shaka.util.CmcdManager.StreamingFormat",{Ah:"d",Oh:"h",si:"s",bi:"o"});function Zk(){}
365
- function $k(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]=Ye(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Ye(l)),k=$k(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?(Ra("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Sa("Unexpected number of arguments for "+k),a[h]=b[h]):(Ra("Invalid config, unrecognized key "+
365
+ function $k(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]=Ye(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Ye(l)),k=$k(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?(Qa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Sa("Unexpected number of arguments for "+k),a[h]=b[h]):(Qa("Invalid config, unrecognized key "+
366
366
  k),g=!1)}return g}function al(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 bl(a,b){return a&&b}N("shaka.util.ConfigUtils",Zk);Zk.convertToConfigObject=al;Zk.mergeConfigObjects=$k;function cl(){}
367
367
  function dl(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Pe(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:yg,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},c={retryParameters:Pe(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,
368
368
  ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},
@@ -374,41 +374,41 @@ maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:In
374
374
  function fl(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return $k(a,b,c||dl(),d,"")}
375
375
  function el(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Yb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Qb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
376
376
  2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Mb&&"image"!=g.type||c.push(g);return c}N("shaka.util.PlayerConfiguration",cl);cl.mergeConfigObjects=fl;function gl(){this.g=null;this.h=[]}function hl(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 il(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
377
- function jl(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 kl(){this.i=this.h=null;this.g=[]}function ll(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 ml(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new gl;this.h=new kl};function T(a,b){cb.call(this);var c=this;this.l=nl;this.jd=this.g=null;this.ba=!1;this.nd=new pf;this.gb=new pf;this.A=new pf;this.ke=this.C=this.ib=this.i=this.pd=this.J=this.j=this.ma=this.X=this.na=this.K=this.kd=this.I=this.Ya=this.F=this.N=this.m=this.H=null;this.Ne=1E9;this.h=ol(this);this.Me={width:Infinity,height:Infinity};this.B=null;this.Ca=new Ge(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Pa=this.h.preferredTextLanguage;this.Bc=this.h.preferredTextRole;
378
- this.wb=this.h.preferForcedSubs;this.jb=[];this.Hc=null;b&&b(this);this.H=pl(this);this.H.xe(this.h.streaming.forceHTTPS);this.G=null;ql&&(this.G=Gb(ql));this.nd.o(window,"online",function(){c.oe()});this.S={name:"detach"};this.Z={name:"attach"};this.aa={name:"unload"};this.Oe={name:"manifest-parser"};this.Je={name:"manifest"};this.Xa={name:"media-source"};this.le={name:"drm-engine"};this.$={name:"load"};this.Pe={name:"src-equals-drm-engine"};this.Za={name:"src-equals"};var d=new Map;d.set(this.Z,
379
- function(e,f){return Ve(rl(c,e,f))});d.set(this.S,function(e){e.M&&(c.gb.rb(),e.M=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return Ve(e)});d.set(this.aa,function(e){return Ve(sl(c,e))});d.set(this.Xa,function(e){e=tl(c,e);return Ve(e)});d.set(this.Oe,function(e,f){var g=ul(c,e,f);return Ve(g)});d.set(this.Je,function(e){return vl(c,e)});d.set(this.le,function(e){e=wl(c,e);return Ve(e)});d.set(this.$,function(e,f){return Ve(xl(c,e,f))});d.set(this.Pe,function(e,f){var g=yl(c,e,f);return Ve(g)});
380
- d.set(this.Za,function(e,f){return zl(c,e,f)});this.wa=new ik(this.S,{sg:function(e,f,g,h){var k=null;e==c.S&&(k=g==c.S?c.S:c.Z);e==c.Z&&(k=g==c.S||f.M!=h.M?c.S:g==c.Z?c.Z:g==c.Xa||g==c.$?c.Xa:g==c.Za?c.Pe:null);e==c.Xa&&(k=g==c.$&&f.M==h.M?c.Oe:c.aa);e==c.Oe&&(k=Al(c.$,c.Je,c.aa,g,f,h));e==c.Je&&(k=Al(c.$,c.le,c.aa,g,f,h));e==c.le&&(k=Al(c.$,c.$,c.aa,g,f,h));e==c.Pe&&(k=g==c.Za&&f.M==h.M?c.Za:c.aa);if(e==c.$||e==c.Za)k=c.aa;e==c.aa&&(k=h.M&&f.M==h.M?c.Z:c.S);return k},Xf:function(e,f,g){c.dispatchEvent(Bl(Cl,
377
+ function jl(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 kl(){this.i=this.h=null;this.g=[]}function ll(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 ml(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new gl;this.h=new kl};function T(a,b){cb.call(this);var c=this;this.l=nl;this.jd=this.g=null;this.ba=!1;this.nd=new pf;this.gb=new pf;this.A=new pf;this.le=this.C=this.ib=this.i=this.pd=this.J=this.j=this.ma=this.X=this.na=this.K=this.kd=this.I=this.Ya=this.F=this.N=this.m=this.H=null;this.Oe=1E9;this.h=ol(this);this.Ne={width:Infinity,height:Infinity};this.B=null;this.Ca=new Ge(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Pa=this.h.preferredTextLanguage;this.Bc=this.h.preferredTextRole;
378
+ this.xb=this.h.preferForcedSubs;this.jb=[];this.Hc=null;b&&b(this);this.H=pl(this);this.H.ye(this.h.streaming.forceHTTPS);this.G=null;ql&&(this.G=Gb(ql));this.nd.o(window,"online",function(){c.pe()});this.S={name:"detach"};this.Z={name:"attach"};this.aa={name:"unload"};this.Pe={name:"manifest-parser"};this.Ke={name:"manifest"};this.Xa={name:"media-source"};this.me={name:"drm-engine"};this.$={name:"load"};this.Qe={name:"src-equals-drm-engine"};this.Za={name:"src-equals"};var d=new Map;d.set(this.Z,
379
+ function(e,f){return Ve(rl(c,e,f))});d.set(this.S,function(e){e.M&&(c.gb.sb(),e.M=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return Ve(e)});d.set(this.aa,function(e){return Ve(sl(c,e))});d.set(this.Xa,function(e){e=tl(c,e);return Ve(e)});d.set(this.Pe,function(e,f){var g=ul(c,e,f);return Ve(g)});d.set(this.Ke,function(e){return vl(c,e)});d.set(this.me,function(e){e=wl(c,e);return Ve(e)});d.set(this.$,function(e,f){return Ve(xl(c,e,f))});d.set(this.Qe,function(e,f){var g=yl(c,e,f);return Ve(g)});
380
+ d.set(this.Za,function(e,f){return zl(c,e,f)});this.wa=new ik(this.S,{sg:function(e,f,g,h){var k=null;e==c.S&&(k=g==c.S?c.S:c.Z);e==c.Z&&(k=g==c.S||f.M!=h.M?c.S:g==c.Z?c.Z:g==c.Xa||g==c.$?c.Xa:g==c.Za?c.Qe:null);e==c.Xa&&(k=g==c.$&&f.M==h.M?c.Pe:c.aa);e==c.Pe&&(k=Al(c.$,c.Ke,c.aa,g,f,h));e==c.Ke&&(k=Al(c.$,c.me,c.aa,g,f,h));e==c.me&&(k=Al(c.$,c.$,c.aa,g,f,h));e==c.Qe&&(k=g==c.Za&&f.M==h.M?c.Za:c.aa);if(e==c.$||e==c.Za)k=c.aa;e==c.aa&&(k=h.M&&f.M==h.M?c.Z:c.S);return k},Xf:function(e,f,g){c.dispatchEvent(Bl(Cl,
381
381
  (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return M(function(f){return 1==f.g?A(f,sl(c,e),2):f["return"](e.M?c.Z:c.S)})},Og:function(e){c.dispatchEvent(Bl(Dl,(new Map).set("state",e.name)))}});a&&this.yc(a,!0)}u(T,cb);function Bl(a,b){return new O(a,b)}q=T.prototype;
382
- q.destroy=function(){var a=this,b;return M(function(c){switch(c.g){case 1:if(a.l==El)return c["return"]();a.l=El;b=nk(a.wa,function(){return{node:a.S,payload:jk(),Lb:!1}});return A(c,new Promise(function(d){b.jc=function(){};b.qd=function(){d()};b.Sb=function(){d()};b.onError=function(){d()};b.sd=function(){d()}}),2);case 2:return A(c,a.wa.destroy(),3);case 3:a.nd&&(a.nd.release(),a.nd=null);a.gb&&(a.gb.release(),a.gb=null);a.A&&(a.A.release(),a.A=null);a.ke=null;a.C=null;a.h=null;a.B=null;a.jd=null;
382
+ q.destroy=function(){var a=this,b;return M(function(c){switch(c.g){case 1:if(a.l==El)return c["return"]();a.l=El;b=nk(a.wa,function(){return{node:a.S,payload:jk(),Lb:!1}});return A(c,new Promise(function(d){b.jc=function(){};b.qd=function(){d()};b.Sb=function(){d()};b.onError=function(){d()};b.sd=function(){d()}}),2);case 2:return A(c,a.wa.destroy(),3);case 3:a.nd&&(a.nd.release(),a.nd=null);a.gb&&(a.gb.release(),a.gb=null);a.A&&(a.A.release(),a.A=null);a.le=null;a.C=null;a.h=null;a.B=null;a.jd=null;
383
383
  a.X=null;if(!a.H){c.D(4);break}return A(c,a.H.destroy(),5);case 5:a.H=null;case 4:cb.prototype.release.call(a),D(c)}})};
384
384
  function Fl(){window.Promise||Sa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Xc("Trident/"))return!1;var a=cd();return a&&12>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Tc()?!0:Uc("application/x-mpegurl")}
385
385
  q.yc=function(a,b){b=void 0===b?!0:b;if(this.l==El)return Promise.reject(Gl());var c=jk();c.M=a;Tc()||(b=!1);var d=b?this.Xa:this.Z,e=nk(this.wa,function(){return{node:d,payload:c,Lb:!1}});e.jc=function(){};return Hl(e)};q.detach=function(){var a=this;if(this.l==El)return Promise.reject(Gl());var b=nk(this.wa,function(){return{node:a.S,payload:jk(),Lb:!1}});b.jc=function(){};return Hl(b)};
386
- q.Ke=function(a){var b=this;a=void 0===a?!0:a;if(this.l==El)return Promise.reject(Gl());Tc()||(a=!1);var c=jk(),d=nk(this.wa,function(e){var f=e.M&&a?b.Xa:e.M?b.Z:b.S;c.M=e.M;return{node:f,payload:c,Lb:!1}});d.jc=function(){};return Hl(d)};q.nh=function(a){this.Hc=a};
387
- q.load=function(a,b,c){var d=this;this.Hc=null;if(this.l==El)return Promise.reject(Gl());this.dispatchEvent(Bl(Il));var e=jk();e.uri=a;e.Ee=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Jl(this,e)?this.Za:this.$,g=nk(this.wa,function(h){if(null==h.M)return null;e.M=h.M;return{node:f,payload:e,Lb:!0}});this.B=new ml;this.X=Kl(this);g.jc=function(){};return new Promise(function(h,k){g.sd=function(){return k(new P(2,7,7002))};g.qd=function(){h();d.dispatchEvent(Bl(Ll))};g.Sb=function(){return k(Gl())};
386
+ q.Le=function(a){var b=this;a=void 0===a?!0:a;if(this.l==El)return Promise.reject(Gl());Tc()||(a=!1);var c=jk(),d=nk(this.wa,function(e){var f=e.M&&a?b.Xa:e.M?b.Z:b.S;c.M=e.M;return{node:f,payload:c,Lb:!1}});d.jc=function(){};return Hl(d)};q.nh=function(a){this.Hc=a};
387
+ q.load=function(a,b,c){var d=this;this.Hc=null;if(this.l==El)return Promise.reject(Gl());this.dispatchEvent(Bl(Il));var e=jk();e.uri=a;e.Fe=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Jl(this,e)?this.Za:this.$,g=nk(this.wa,function(h){if(null==h.M)return null;e.M=h.M;return{node:f,payload:e,Lb:!0}});this.B=new ml;this.X=Kl(this);g.jc=function(){};return new Promise(function(h,k){g.sd=function(){return k(new P(2,7,7002))};g.qd=function(){h();d.dispatchEvent(Bl(Ll))};g.Sb=function(){return k(Gl())};
388
388
  g.onError=function(l){return k(l)}})};function Jl(a,b){if(!Tc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=Kg(d),c=Ml[c]);if(c){if(""==(b.M||Vc()).canPlayType(c))return!1;if(!Tc()||!(c in Jg||Kg(d)in Lg)||a.h.streaming.preferNativeHls)return!0;if(ad())return a.h.streaming.useNativeHlsOnSafari}return!1}function rl(a,b,c){null==b.M&&(b.M=c.M,a.gb.o(b.M,"error",function(){var d=Nl(a);d&&Ol(a,d)}));a.g=b.M;return Promise.resolve()}
389
- function sl(a,b){var c,d,e,f,g,h,k,l,m;return M(function(n){switch(n.g){case 1:return a.l!=El&&(a.l=nl),c=a.jb.map(function(p){return p()}),a.jb=[],A(n,Promise.all(c),2);case 2:a.dispatchEvent(Bl(Pl));b.mimeType=null;b.startTime=null;b.uri=null;a.na&&(a.na.release(),a.na=null);b.M&&a.A.rb();a.Ya&&(a.Ya.release(),a.Ya=null);a.kd&&(a.kd.stop(),a.kd=null);if(!a.J){n.D(3);break}return A(n,a.J.stop(),4);case 4:a.J=null,a.pd=null;case 3:if(!a.C){n.D(5);break}return A(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);
389
+ function sl(a,b){var c,d,e,f,g,h,k,l,m;return M(function(n){switch(n.g){case 1:return a.l!=El&&(a.l=nl),c=a.jb.map(function(p){return p()}),a.jb=[],A(n,Promise.all(c),2);case 2:a.dispatchEvent(Bl(Pl));b.mimeType=null;b.startTime=null;b.uri=null;a.na&&(a.na.release(),a.na=null);b.M&&a.A.sb();a.Ya&&(a.Ya.release(),a.Ya=null);a.kd&&(a.kd.stop(),a.kd=null);if(!a.J){n.D(3);break}return A(n,a.J.stop(),4);case 4:a.J=null,a.pd=null;case 3:if(!a.C){n.D(5);break}return A(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);
390
390
  break}return A(n,a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.N){n.D(9);break}return A(n,a.N.destroy(),10);case 10:a.N=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.M||!b.M.src){n.D(11);break}return A(n,new Promise(function(p){return(new Q(p)).R(.1)}),12);case 12:for(b.M.removeAttribute("src"),b.M.load();b.M.lastChild;)b.M.removeChild(b.M.firstChild);case 11:if(!a.m){n.D(13);break}return A(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.ib=
391
- null;a.K=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.B=new ml;a.pe=null;Ql(a);D(n)}})}
392
- function tl(a,b){var c,d,e,f;return M(function(g){if(1==g.g)return c=new ji,d=a.h.textDisplayFactory,e=Gb(d),a.pe=d,f=Rl(b.M,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,p=l,t=r(m.frames),v=t.next();!v.done;v=t.next())Sl(a,n,p,"ID3",v.value);if(a.G)a.G.onHlsTimedMetadata(m,n)}}),A(g,f.G,2);a.N=f;D(g)})}
391
+ null;a.K=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.B=new ml;a.qe=null;Ql(a);D(n)}})}
392
+ function tl(a,b){var c,d,e,f;return M(function(g){if(1==g.g)return c=new ji,d=a.h.textDisplayFactory,e=Gb(d),a.qe=d,f=Rl(b.M,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,p=l,t=r(m.frames),v=t.next();!v.done;v=t.next())Sl(a,n,p,"ID3",v.value);if(a.G)a.G.onHlsTimedMetadata(m,n)}}),A(g,f.G,2);a.N=f;D(g)})}
393
393
  function ul(a,b,c){var d,e,f,g;return M(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.ib=d,f=a,A(h,Ig(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.pd=h.h;a.J=Gb(a.pd);g=Ye(a.h.manifest);c.M&&"AUDIO"===c.M.nodeName&&(g.disableVideo=!0);a.J.configure(g);D(h)})}
394
394
  function vl(a,b){var c=b.uri,d=a.H;a.na=new yj(function(){return a.Ma()});a.na.addEventListener("regionadd",function(g){g=g.region;Tl(a,Ul,g);if(a.G)a.G.onDashTimedMetadata(g)});a.ma=null;a.h.streaming.observeQualityChanges&&(a.ma=new uj(function(){return a.zb()}),a.ma.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,height:h.height,
395
395
  mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(Bl(Vl,h))}));var e={networkingEngine:d,modifyManifestRequest:function(g,h){var k=a.X;try{k.g.enabled&&(k.A=h.format,Pk(k,g,{ot:Sk,su:!k.i}))}catch(l){Ta("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",l)}},modifySegmentRequest:function(g,h){Fk(a.X,g,h)},filter:function(g){return Wl(a,g)},makeTextStreamsForClosedCaptions:function(g){return Xl(a,g)},
396
396
  onTimelineRegionAdded:function(g){var h=a.na;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new O("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Ol(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
397
397
  enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new Re(function(){var g,h,k,l;return M(function(m){if(1==m.g)return g=a,A(m,a.J.start(c,e),2);g.i=m.h;h=Bl(Yl);a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);Zl(a.i);k=Date.now()/1E3;l=k-f;a.B.H=l;D(m)})}(),function(){return a.J.stop()})}
398
398
  function wl(a,b){var c,d;return M(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=$l(a,{Qb:a.H,onError:function(f){Ol(a,f)},rd:function(f){am(a,f)},onExpirationUpdated:function(f,g){bm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==cm&&d&&(d=!1,a.B.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),A(e,bg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?A(e,a.m.yc(b.M),3):A(e,Wl(a,a.i),0)})}
399
- function xl(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v;return M(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Hc&&(b.startTime=a.Hc,a.Hc=null);d=b.M;e=b.uri;a.ib=e;a.I=new qj({hd:function(){return d.playbackRate},ed:function(){return d.defaultPlaybackRate},ze:function(x){d.playbackRate=x},rf:function(x){d.currentTime+=x}});f=function(){return dm(a)};g=function(){return em(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.ke==h||
400
- (a.ke=h,a.C=Gb(h),"function"!=typeof a.C.playbackRateChanged&&(zb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.C.playbackRateChanged=function(){}),a.C.configure(a.h.abr));a.Ca=new Ge(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Pa=a.h.preferredTextLanguage;a.Bc=a.h.preferredTextRole;a.wb=a.h.preferForcedSubs;fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,w,C){a.j&&x!=a.j.l&&gm(a,x,!0,void 0===
401
- w?!1:w,void 0===C?0:C)});a.F=hm(a,b.startTime);a.Ya=im(a);k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);jm(a,k);Nd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=km(a);a.j.configure(a.h.streaming);a.l=lm;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":mm(a,x)}});a.dispatchEvent(Bl(nm));l=null;if(m=a.ab().find(function(x){return x.active})){y.D(2);break}l=
402
- om(a)?a.C.chooseVariant():null;gm(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);break}n=a.F.Xc();return A(y,pm(l,n),4);case 4:p=y.h,a.F.Td(p);case 3:qm(a,null,le(l));case 2:return a.F.Sd(),t=a.pb().find(function(x){return x.active}),t||((v=ve(a.i.textStreams,a.Pa,a.Bc,a.wb)[0]||null)&&ll(a.B.h,v,!0),l&&(v?(l.audio&&rm(a,l.audio,v)&&(a.ba=!0),a.ba&&a.N.l.setTextVisibility(!0),sm(a)):a.ba=!1),v&&(a.h.streaming.alwaysStreamText||a.Pb())&&Rj(a.j,v)),A(y,a.j.start(),5);case 5:a.h.abr.enabled&&
403
- (a.C.enable(),tm(a)),ce(a.j?a.j.l:null,a.i),um(a.i),vm(a),om(a),a.i.variants.some(function(x){return x.primary}),a.A.Ga(d,"loadedmetadata",function(){a.B.m=Date.now()/1E3-c.Ee}),D(y)}})}
399
+ function xl(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v;return M(function(w){switch(w.g){case 1:b.startTime=c.startTime;null!=a.Hc&&(b.startTime=a.Hc,a.Hc=null);d=b.M;e=b.uri;a.ib=e;a.I=new qj({hd:function(){return d.playbackRate},ed:function(){return d.defaultPlaybackRate},Ae:function(y){d.playbackRate=y},rf:function(y){d.currentTime+=y}});f=function(){return dm(a)};g=function(){return em(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.le==h||
400
+ (a.le=h,a.C=Gb(h),"function"!=typeof a.C.playbackRateChanged&&(zb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.C.playbackRateChanged=function(){}),a.C.configure(a.h.abr));a.Ca=new Ge(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Pa=a.h.preferredTextLanguage;a.Bc=a.h.preferredTextRole;a.xb=a.h.preferForcedSubs;fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(y,x,C){a.j&&y!=a.j.l&&gm(a,y,!0,void 0===
401
+ x?!1:x,void 0===C?0:C)});a.F=hm(a,b.startTime);a.Ya=im(a);k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);jm(a,k);Nd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=km(a);a.j.configure(a.h.streaming);a.l=lm;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(y){if(y.track)switch(y=y.track,y.kind){case "chapters":mm(a,y)}});a.dispatchEvent(Bl(nm));l=null;if(m=a.ab().find(function(y){return y.active})){w.D(2);break}l=
402
+ om(a)?a.C.chooseVariant():null;gm(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){w.D(3);break}n=a.F.Xc();return A(w,pm(l,n),4);case 4:p=w.h,a.F.Td(p);case 3:qm(a,null,le(l));case 2:return a.F.Sd(),t=a.qb().find(function(y){return y.active}),t||((v=ve(a.i.textStreams,a.Pa,a.Bc,a.xb)[0]||null)&&ll(a.B.h,v,!0),l&&(v?(l.audio&&rm(a,l.audio,v)&&(a.ba=!0),a.ba&&a.N.l.setTextVisibility(!0),sm(a)):a.ba=!1),v&&(a.h.streaming.alwaysStreamText||a.Pb())&&Rj(a.j,v)),A(w,a.j.start(),5);case 5:a.h.abr.enabled&&
403
+ (a.C.enable(),tm(a)),ce(a.j?a.j.l:null,a.i),um(a.i),vm(a),om(a),a.i.variants.some(function(y){return y.primary}),a.A.Ga(d,"loadedmetadata",function(){a.B.m=Date.now()/1E3-c.Fe}),D(w)}})}
404
404
  function yl(a,b,c){var d,e,f,g,h,k,l;return M(function(m){return 1==m.g?(d=Nb,e=Date.now()/1E3,f=!0,a.m=$l(a,{Qb:a.H,onError:function(n){Ol(a,n)},rd:function(n){am(a,n)},onExpirationUpdated:function(n,p){bm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);n.type==cm&&f&&(f=!1,a.B.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=Kg(g),k=Ml[h],"application/x-mpegurl"==k&&ad()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,
405
405
  createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Cd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.hb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.m.X=!0,A(m,bg(a.m,[l],[]),2)):A(m,a.m.yc(b.M),
406
406
  0)})}
407
- function zl(a,b,c){function d(){return dm(a)}b.uri=c.uri;b.startTime=c.startTime;a.ib=b.uri;var e=b.M;a.F=new fj(e);var f=!1;a.jb.push(function(){f=!0});null!=b.startTime&&a.F.Td(b.startTime);a.I=new qj({hd:function(){return e.playbackRate},ed:function(){return e.defaultPlaybackRate},ze:function(k){e.playbackRate=k},rf:function(k){e.currentTime+=k}});jm(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return em(a)});"none"!=e.preload&&
408
- a.A.Ga(e,"loadedmetadata",function(){a.B.m=Date.now()/1E3-c.Ee});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return vm(a)}),a.A.o(e.audioTracks,"removetrack",function(){return vm(a)}),a.A.o(e.audioTracks,"change",function(){return vm(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":wm(a,k);break;case "chapters":mm(a,k);break;default:vm(a)}}),a.A.o(e.textTracks,"removetrack",function(){return vm(a)}),a.A.o(e.textTracks,
407
+ function zl(a,b,c){function d(){return dm(a)}b.uri=c.uri;b.startTime=c.startTime;a.ib=b.uri;var e=b.M;a.F=new fj(e);var f=!1;a.jb.push(function(){f=!0});null!=b.startTime&&a.F.Td(b.startTime);a.I=new qj({hd:function(){return e.playbackRate},ed:function(){return e.defaultPlaybackRate},Ae:function(k){e.playbackRate=k},rf:function(k){e.currentTime+=k}});jm(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return em(a)});"none"!=e.preload&&
408
+ a.A.Ga(e,"loadedmetadata",function(){a.B.m=Date.now()/1E3-c.Fe});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return vm(a)}),a.A.o(e.audioTracks,"removetrack",function(){return vm(a)}),a.A.o(e.audioTracks,"change",function(){return vm(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":wm(a,k);break;case "chapters":mm(a,k);break;default:vm(a)}}),a.A.o(e.textTracks,"removetrack",function(){return vm(a)}),a.A.o(e.textTracks,
409
409
  "change",function(){return vm(a)}));var g=Kg(b.uri);e.src=Qk(a.X,b.uri,Ml[g]);(Yc()||Zc())&&e.load();a.l=xm;a.dispatchEvent(Bl(nm));var h=new Pc;Ui(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){a.F.Sd();h.resolve()});Ui(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return M(function(l){if(1==l.g)return ym(a),k=zm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):A(l,new Promise(function(m){a.A.Ga(e.textTracks,"change",m);(new Q(m)).R(1)}),2);if(f)return l["return"]();Am(a);D(l)})});
410
410
  e.error?h.reject(Nl(a)):"none"==e.preload&&(Sa('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.A.Ga(e,"error",function(){h.reject(Nl(a))});return new Re(h,function(){h.reject(new P(2,7,7001));return Promise.resolve()})}
411
- function ym(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.xd(b);var c=a.h.preferredVariantRole;""!=c&&a.xd(b,c)}}function Am(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.re(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.re(b,d,c)}}
411
+ function ym(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.xd(b);var c=a.h.preferredVariantRole;""!=c&&a.xd(b,c)}}function Am(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.se(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.se(b,d,c)}}
412
412
  function wm(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.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,Sl(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new Q(function(){var d=Bm(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ba().R(.5);a.jb.push(function(){c.stop()})}}
413
413
  function Sl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Bl(Cm,b))}function mm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Q(function(){b.mode="hidden"})).Ba().R(.5);a.jb.push(function(){c.stop()})}}function Zl(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 $l(a,b){return new Vf(b,a.h.drm.updateExpirationTime)}
414
414
  function pl(a){return new bf(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(Bl(Dm,b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(Bl(Em,b))})}
@@ -416,52 +416,52 @@ function hm(a,b){return new gj(a.g,a.i,a.h.streaming,b,function(){a.Ya&&tj(a.Ya,
416
416
  g.next())Vh(h.value)}}a.K&&Fm(a)},function(c){return a.dispatchEvent(c)})}function im(a){var b=new zj(a.na);b.addEventListener("enter",function(d){Tl(a,Gm,d.region)});b.addEventListener("exit",function(d){Tl(a,Hm,d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Tl(a,Gm,e),Tl(a,Hm,e))});var c=new sj(a.g);c.g.add(b);a.ma&&c.g.add(a.ma);return c}function jm(a,b){a.K=new Ke;a.K.g=Me;Ne(a.K,b,Math.min(.5,b/2));Ql(a);a.kd=(new Q(function(){Fm(a)})).ha(.25)}
417
417
  function Fm(a){switch(a.l){case xm:if(a.g.ended)var b=!0;else{var c=li(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case lm:a:if(a.g.ended||wi(a.N))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.Kb();var d=li(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=ni(a.g.buffered,a.g.currentTime);c=a.K;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Le:Me;c.g=d;b!=d&&Ql(a)}function Rl(a,b,c,d){return new qi(a,b,c,d)}
418
418
  function Kl(a){return new Ek({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},zb:function(){return a.zb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},ab:function(){return a.ab()},Ab:function(){return a.Ab()},T:function(){return a.T()}},a.h.cmcd)}
419
- function km(a){return new Fj(a.i,{gd:function(){return a.F.Xc()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Fk(a.X,b,c)},W:a.N,Qb:a.H,onError:function(b){return Ol(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Qg:function(){a.J&&a.J.update&&a.J.update()},je:function(){a.F&&a.F.tf();Fm(a)},Pg:function(b,c){var d=c.be;d&&a.ma&&wj(a.ma,d,b)}})}
419
+ function km(a){return new Fj(a.i,{gd:function(){return a.F.Xc()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Fk(a.X,b,c)},W:a.N,Qb:a.H,onError:function(b){return Ol(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Qg:function(){a.J&&a.J.update&&a.J.update()},ke:function(){a.F&&a.F.tf();Fm(a)},Pg:function(b,c){var d=c.ce;d&&a.ma&&wj(a.ma,d,b)}})}
420
420
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=al(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(zb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=
421
421
  0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=fl(this.h,a,ol(this));Im(this);return c};
422
- function Im(a){if(a.J){var b=Ye(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Jm(a,a.i)}catch(f){Ol(a,f)}a.C&&om(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||Km(a)}a.H&&a.H.xe(a.h.streaming.forceHTTPS);if(a.N&&(b=a.h.textDisplayFactory,a.pe!=b)){var c=Gb(b),d=a.N,e=d.l;d.l=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=c);a.pe=b;a.j&&(b=a.j,(c=b.j.get(Mb))&&
422
+ function Im(a){if(a.J){var b=Ye(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Jm(a,a.i)}catch(f){Ol(a,f)}a.C&&om(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||Km(a)}a.H&&a.H.ye(a.h.streaming.forceHTTPS);if(a.N&&(b=a.h.textDisplayFactory,a.qe!=b)){var c=Gb(b),d=a.N,e=d.l;d.l=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=c);a.qe=b;a.j&&(b=a.j,(c=b.j.get(Mb))&&
423
423
  Pj(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),tm(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ne(a.K,b,Math.min(.5,b/2)));a.i&&fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=ol(this);fl(a,this.h,ol(this));return a};
424
- q.$f=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.Ma().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.$g=function(){for(var a in this.h)delete this.h[a];fl(this.h,ol(this),ol(this));Im(this)};q.gf=function(){return this.l};q.rg=function(){return this.g};q.Ec=function(){return this.H};q.Wd=function(){return this.ib};
425
- q.dd=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.Nb=function(){return this.i?this.i.presentationTimeline.Nb():!1};q.mf=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};
426
- q.Ma=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.cc(),end:a.mb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Eg=function(){this.T()&&(this.g.currentTime=this.Ma().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Dc=function(){return this.m?this.m.Dc():Infinity};q.fd=function(){return this.m?this.m.fd():{}};
427
- q.Kc=function(){return this.K?this.K.g==Me:!1};q.Ab=function(){return this.g?this.I?this.I.i:1:0};q.Ie=function(a){0==a?Sa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==lm&&(this.C.playbackRateChanged(a),Oj(this.j,1<Math.abs(a))))};q.Se=function(){var a=this.I.ed();this.l==xm&&this.I.set(a);this.l==lm&&(this.I.set(a),this.C.playbackRateChanged(a),Oj(this.j,!1))};
424
+ q.$f=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.Ma().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.$g=function(){for(var a in this.h)delete this.h[a];fl(this.h,ol(this),ol(this));Im(this)};q.hf=function(){return this.l};q.rg=function(){return this.g};q.Ec=function(){return this.H};q.Wd=function(){return this.ib};
425
+ q.dd=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.Nb=function(){return this.i?this.i.presentationTimeline.Nb():!1};q.nf=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};
426
+ q.Ma=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.cc(),end:a.ob()}}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.Eg=function(){this.T()&&(this.g.currentTime=this.Ma().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Dc=function(){return this.m?this.m.Dc():Infinity};q.fd=function(){return this.m?this.m.fd():{}};
427
+ q.Kc=function(){return this.K?this.K.g==Me:!1};q.Ab=function(){return this.g?this.I?this.I.i:1:0};q.Je=function(a){0==a?Sa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==lm&&(this.C.playbackRateChanged(a),Oj(this.j,1<Math.abs(a))))};q.Te=function(){var a=this.I.ed();this.l==xm&&this.I.set(a);this.l==lm&&(this.I.set(a),this.C.playbackRateChanged(a),Oj(this.j,!1))};
428
428
  q.ab=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,te(e)){var f=le(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 se(g)}):[]};
429
- q.pb=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=me(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?zm(this).map(function(f){return qe(f)}):[]};q.jg=function(){return this.i?this.i.imageStreams.map(function(a){return ne(a)}):[]};
430
- q.Ag=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B;return M(function(F){if(1==F.g)return c.i?(d=c.i.imageStreams.find(function(G){return G.id==a}))?d.segmentIndex?F.D(3):A(F,d.createSegmentIndex(),3):F["return"](null):F.D(2);if(2!=F.g){e=d.segmentIndex.find(b);if(null==e)return F["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return F["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
431
- v=m*n;y=f.l-f.startTime;x=f.i||y/v;w=f.startTime;z=C=0;1<v&&(B=Math.floor((b-f.startTime)/x),w=f.startTime+B*x,C=B%m*p,z=Math.floor(B/m)*t);return F["return"]({imageHeight:l,imageWidth:k,height:t,positionX:C,positionY:z,startTime:w,duration:x,uris:f.Ka(),width:p})}return F["return"](null)})};
432
- q.se=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(ll(this.B.h,b,!1),Rj(this.j,b),Lm(this),this.Pa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=zm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,oe(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";Lm(this)}};
433
- q.ue=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&&Sa("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&&te(d)&&(gm(this,d,!1,b,c),this.Ca=new Fe(d),om(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,
434
- oe(c)==a.id){Mm(this,c);break}};q.Zf=function(){return Nm(this.ab())};q.zg=function(){return Nm(this.pb())};q.Yf=function(){return Array.from(Om(this.ab()))};q.yg=function(){return Array.from(Om(this.pb()))};
435
- q.xd=function(a,b){if(this.i&&this.F){this.Ca=new Ge(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.Ca.create(this.i.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=le(f),this.ue(c,!0)):Km(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Qb(a);f=d=null;e=
429
+ q.qb=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=me(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?zm(this).map(function(f){return qe(f)}):[]};q.jg=function(){return this.i?this.i.imageStreams.map(function(a){return ne(a)}):[]};
430
+ q.Ag=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B;return M(function(F){if(1==F.g)return c.i?(d=c.i.imageStreams.find(function(G){return G.id==a}))?d.segmentIndex?F.D(3):A(F,d.createSegmentIndex(),3):F["return"](null):F.D(2);if(2!=F.g){e=d.segmentIndex.find(b);if(null==e)return F["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return F["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
431
+ v=m*n;w=f.l-f.startTime;y=f.i||w/v;x=f.startTime;z=C=0;1<v&&(B=Math.floor((b-f.startTime)/y),x=f.startTime+B*y,C=B%m*p,z=Math.floor(B/m)*t);return F["return"]({imageHeight:l,imageWidth:k,height:t,positionX:C,positionY:z,startTime:x,duration:y,uris:f.Ka(),width:p})}return F["return"](null)})};
432
+ q.ue=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(ll(this.B.h,b,!1),Rj(this.j,b),Lm(this),this.Pa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=zm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,oe(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";Lm(this)}};
433
+ q.ve=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&&Sa("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&&te(d)&&(gm(this,d,!1,b,c),this.Ca=new Fe(d),om(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,
434
+ oe(c)==a.id){Mm(this,c);break}};q.Zf=function(){return Nm(this.ab())};q.zg=function(){return Nm(this.qb())};q.Yf=function(){return Array.from(Om(this.ab()))};q.yg=function(){return Array.from(Om(this.qb()))};
435
+ q.xd=function(a,b){if(this.i&&this.F){this.Ca=new Ge(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.Ca.create(this.i.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=le(f),this.ve(c,!0)):Km(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Qb(a);f=d=null;e=
436
436
  r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=se(g);Qb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?Mm(this,f):d&&Mm(this,d)}};
437
- q.re=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Pa=a,this.Bc=b||"",this.wb=c,(a=ve(this.i.textStreams,this.Pa,this.Bc,this.wb)[0]||null)&&a!=this.j.A&&(ll(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Pb()))Rj(this.j,a),Lm(this)}else{var d=Qb(a);(a=this.pb().find(function(e){return Qb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.se(a)}};
438
- q.bh=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.Ca=new Ge(b.language,"",0,a),Km(this))}};q.Pb=function(){var a=this.ba;return this.N?this.N.l.isTextVisible():this.g&&this.g.src&&this.g.textTracks?zm(this).some(function(b){return"showing"==b.mode}):a};q.df=function(){return this.g&&this.g.src&&this.g.textTracks?Pm(this).map(function(a){return qe(a)}):[]};
437
+ q.se=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Pa=a,this.Bc=b||"",this.xb=c,(a=ve(this.i.textStreams,this.Pa,this.Bc,this.xb)[0]||null)&&a!=this.j.A&&(ll(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Pb()))Rj(this.j,a),Lm(this)}else{var d=Qb(a);(a=this.qb().find(function(e){return Qb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.ue(a)}};
438
+ q.bh=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.Ca=new Ge(b.language,"",0,a),Km(this))}};q.Pb=function(){var a=this.ba;return this.N?this.N.l.isTextVisible():this.g&&this.g.src&&this.g.textTracks?zm(this).some(function(b){return"showing"==b.mode}):a};q.ef=function(){return this.g&&this.g.src&&this.g.textTracks?Pm(this).map(function(a){return qe(a)}):[]};
439
439
  q.cg=function(a){var b=Qb(a),c=Pm(this).filter(function(h){return Qb(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};
440
440
  function zm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Bm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Pm(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
441
- q.Ce=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==lm)this.N.l.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ve(this.i.textStreams,this.Pa,this.Bc,this.wb),0<a.length&&(Rj(this.j,a[0]),Lm(this))):Nj(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=zm(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")}sm(this)}};
441
+ q.De=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==lm)this.N.l.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ve(this.i.textStreams,this.Pa,this.Bc,this.xb),0<a.length&&(Rj(this.j,a[0]),Lm(this))):Nj(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=zm(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")}sm(this)}};
442
442
  q.ug=function(){if(!this.T())return null;var a=this.wa.l,b=0;if(this.F)b=this.F.Xc();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
443
- q.hf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.zb=function(){if(this.l==lm)return this.N.zb();var a={total:[],audio:[],video:[],text:[]};this.l==xm&&(a.total=oi(this.g.buffered));return a};
443
+ q.jf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.zb=function(){if(this.l==lm)return this.N.zb();var a={total:[],audio:[],video:[],text:[]};this.l==xm&&(a.total=oi(this.g.buffered));return a};
444
444
  q.getStats=function(){if(this.l!=lm&&this.l!=xm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames: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:[]};dm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.B;b=Math.round(100*b);c.i=isNaN(c.i)?
445
- b:Math.max(c.i,b)}if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.B;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.B.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.I?c.I:NaN):c=NaN;this.B.B=c;if(this.l==lm){if(c=this.j.l)this.B.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.B,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.T()&&(c=this.hf().valueOf()+1E3*this.Ma().end,this.B.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&
446
- (this.B.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.B.C=c}this.l==xm&&(c=this.B,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.B;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.C,k=e.i,l=e.m,m=e.H,n=e.j,p=il(e.g,"playing"),t=il(e.g,"paused"),v=il(e.g,"buffering"),y=e.B,x=e.G,w=e.I,C=jl(e.g),z=[];e=r(e.h.g);for(var B=e.next();!B.done;B=e.next())B=B.value,z.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,
447
- height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,estimatedBandwidth:h,completionPercent:k,loadLatency:l,manifestTimeSeconds:m,drmTimeSeconds:n,playTime:p,pauseTime:t,bufferingTime:v,licenseTime:y,liveLatency:x,maxSegmentDuration:w,stateHistory:C,switchHistory:z}};
448
- q.addTextTrack=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;zb("addTextTrack","Please use an addTextTrackAsync.");if(this.l!=lm&&this.l!=xm)throw new P(1,7,7004);if(!d){var h=Kg(a);d=Qm[h];if(!d)throw new P(1,2,2011,h);}if(this.l==xm){if("text/vtt"!=d)throw new P(1,2,2013,d);g&&(c="forced");d=document.createElement("track");d.src=Vk(this.X,a);d.label=f||"";d.kind=c;d.srclang=b;this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous");this.g.appendChild(d);if(a=this.pb().find(function(k){return k.language==
449
- b&&k.label==(f||"")&&k.kind==c}))return vm(this),a;throw new P(1,2,2012);}h=this.i.presentationTimeline.getDuration();if(Infinity==h)throw new P(1,4,4033);a={id:this.Ne++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:oj(0,h,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:Mb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,
445
+ b:Math.max(c.i,b)}if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.B;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.B.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.I?c.I:NaN):c=NaN;this.B.B=c;if(this.l==lm){if(c=this.j.l)this.B.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.B,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.T()&&(c=this.jf().valueOf()+1E3*this.Ma().end,this.B.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&
446
+ (this.B.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.B.C=c}this.l==xm&&(c=this.B,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.B;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.C,k=e.i,l=e.m,m=e.H,n=e.j,p=il(e.g,"playing"),t=il(e.g,"paused"),v=il(e.g,"buffering"),w=e.B,y=e.G,x=e.I,C=jl(e.g),z=[];e=r(e.h.g);for(var B=e.next();!B.done;B=e.next())B=B.value,z.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,
447
+ height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,estimatedBandwidth:h,completionPercent:k,loadLatency:l,manifestTimeSeconds:m,drmTimeSeconds:n,playTime:p,pauseTime:t,bufferingTime:v,licenseTime:w,liveLatency:y,maxSegmentDuration:x,stateHistory:C,switchHistory:z}};
448
+ q.addTextTrack=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;zb("addTextTrack","Please use an addTextTrackAsync.");if(this.l!=lm&&this.l!=xm)throw new P(1,7,7004);if(!d){var h=Kg(a);d=Qm[h];if(!d)throw new P(1,2,2011,h);}if(this.l==xm){if("text/vtt"!=d)throw new P(1,2,2013,d);g&&(c="forced");d=document.createElement("track");d.src=Vk(this.X,a);d.label=f||"";d.kind=c;d.srclang=b;this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous");this.g.appendChild(d);if(a=this.qb().find(function(k){return k.language==
449
+ b&&k.label==(f||"")&&k.kind==c}))return vm(this),a;throw new P(1,2,2012);}h=this.i.presentationTimeline.getDuration();if(Infinity==h)throw new P(1,4,4033);a={id:this.Oe++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:oj(0,h,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:Mb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,
450
450
  closedCaptions:null};if(!Ed(yd(a.mimeType,a.codecs)))throw new P(2,2,2014,d);this.i.textStreams.push(a);vm(this);return me(a)};
451
- q.Of=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,v,y,x,w,C;return M(function(z){switch(z.g){case 1:if(h.l!=lm&&h.l!=xm)throw new P(1,7,7004);if(d){z.D(2);break}return A(z,Rm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=xm){z.D(4);break}g&&(c="forced");return A(z,Sm(h,a,b,c,d,f||"",k),5);case 5:l=h.pb();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return vm(h),z["return"](m);throw new P(1,2,2012);case 4:n=
452
- Nb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new P(1,4,4033);if(!k.length){z.D(6);break}return A(z,Tm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,v=Um(h,t,d,k),y=new Blob([v],{type:"text/vtt"}),a=ti(y),d="text/vtt";case 6:x={id:h.Ne++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:oj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.oa,primary:!1,trickModeVideo:null,
453
- emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};w=yd(x.mimeType,x.codecs);C=Ed(w);if(!C)throw new P(2,2,2014,d);h.i.textStreams.push(x);vm(h);return z["return"](me(x))}})};
454
- q.Nf=function(a,b,c){var d=this,e,f,g,h;return M(function(k){switch(k.g){case 1:if(d.l!=lm&&d.l!=xm)throw new P(1,7,7004);if(c){k.D(2);break}return A(k,Rm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return A(k,Sm(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 A(k,new Promise(function(l,m){d.A.Ga(f,"load",l);d.A.Ga(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return k["return"](h);
451
+ q.Of=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,v,w,y,x,C;return M(function(z){switch(z.g){case 1:if(h.l!=lm&&h.l!=xm)throw new P(1,7,7004);if(d){z.D(2);break}return A(z,Rm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=xm){z.D(4);break}g&&(c="forced");return A(z,Sm(h,a,b,c,d,f||"",k),5);case 5:l=h.qb();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return vm(h),z["return"](m);throw new P(1,2,2012);case 4:n=
452
+ Nb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new P(1,4,4033);if(!k.length){z.D(6);break}return A(z,Tm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,v=Um(h,t,d,k),w=new Blob([v],{type:"text/vtt"}),a=ti(w),d="text/vtt";case 6:y={id:h.Oe++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:oj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.oa,primary:!1,trickModeVideo:null,
453
+ emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};x=yd(y.mimeType,y.codecs);C=Ed(x);if(!C)throw new P(2,2,2014,d);h.i.textStreams.push(y);vm(h);return z["return"](me(y))}})};
454
+ q.Nf=function(a,b,c){var d=this,e,f,g,h;return M(function(k){switch(k.g){case 1:if(d.l!=lm&&d.l!=xm)throw new P(1,7,7004);if(c){k.D(2);break}return A(k,Rm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return A(k,Sm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.ef();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return A(k,new Promise(function(l,m){d.A.Ga(f,"load",l);d.A.Ga(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return k["return"](h);
455
455
  case 5:throw new P(1,2,2012);}})};function Rm(a,b){var c,d;return M(function(e){switch(e.g){case 1:c=Kg(b);if(d=Qm[c])return e["return"](d);E(e,2);return A(e,Mg(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:I(e);case 3:if(d)return e["return"](d);throw new P(1,2,2011,c);}})}
456
456
  function Sm(a,b,c,d,e,f,g){var h,k,l,m;return M(function(n){if(1==n.g)return"text/vtt"!=e||g.length?A(n,Tm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=Um(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ti(l),e="text/vtt");m=document.createElement("track");m.src=Vk(a.X,b);m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}
457
457
  function Tm(a,b,c,d){var e,f,g;return M(function(h){if(1==h.g){e=mf;f=ff([b],d);f.method="GET";var k=a.X;try{k.g.enabled&&Pk(k,f,{ot:Wk,su:!0})}catch(l){Ta("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return A(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}function Um(a,b,c,d){var e=Fd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration},b=Ic(b),b=c.parseMedia(b,a),Dk(b,d);throw new P(2,2,2014,c);}
458
- q.ye=function(a,b){this.Me.width=a;this.Me.height=b};q.oe=function(a){if(this.l==lm){var b=this.j;a=void 0===a?.1:a;if(b.i.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.Ic||d.La||d.fb||(d.Ic=!1,Mj(b,d,a));b=!0}}else b=!1;return b};
458
+ q.ze=function(a,b){this.Ne.width=a;this.Ne.height=b};q.pe=function(a){if(this.l==lm){var b=this.j;a=void 0===a?.1:a;if(b.i.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.Ic||d.La||d.fb||(d.Ic=!1,Mj(b,d,a));b=!0}}else b=!1;return b};
459
459
  q.og=function(){Sa("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.pd};
460
- function ol(a){var b=dl();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.oe(d))}};b.textDisplayFactory=function(){return a.jd?new vk(a.g,a.jd):new pk(a.g)};return b}q.De=function(a){this.jd=a};
461
- function Xl(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 pj;h={id:a.Ne++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
460
+ function ol(a){var b=dl();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.pe(d))}};b.textDisplayFactory=function(){return a.jd?new vk(a.g,a.jd):new pk(a.g)};return b}q.Ee=function(a){this.jd=a};
461
+ function Xl(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 pj;h={id:a.Oe++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
462
462
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Mb,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 Wl(a,b){return M(function(c){if(1==c.g)return A(c,Vm(a,b),2);Jm(a,b);D(c)})}
463
463
  function Vm(a,b){var c;return M(function(d){if(1==d.g)return c=a.j?a.j.l:null,A(d,ae(c,b),2);um(b);D(d)})}
464
- function Jm(a,b){if(a.l!=El){for(var c=a.h.restrictions,d=a.Me,e=!1,f=r(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=$d(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&vm(a);if((c=a.m?a.m.g:null)&&a.m.B)for(d=r(b.variants),e=d.next();!e.done;e=d.next())for(e=e.value,e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])),f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem)for(f=r(f.initData||[]),g=f.next();!g.done;g=
464
+ function Jm(a,b){if(a.l!=El){for(var c=a.h.restrictions,d=a.Ne,e=!1,f=r(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=$d(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&vm(a);if((c=a.m?a.m.g:null)&&a.m.B)for(d=r(b.variants),e=d.next();!e.done;e=d.next())for(e=e.value,e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])),f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem)for(f=r(f.initData||[]),g=f.next();!g.done;g=
465
465
  f.next())g=g.value,mg(a.m,g.initDataType,g.initData);Wm(a,b)}}
466
466
  function pm(a,b){var c,d,e,f,g;return M(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return M(function(t){if(1==t.g)return k?A(t,k.createSegmentIndex(),2):t["return"](null);n=(m=k.segmentIndex.Jb(l))?m.next().value:null;if(!n)return t["return"](null);p=n.startTime;return t["return"](p)})},A(h,e(c,b),2);if(3!=h.g)return f=h.h,A(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)})}
467
467
  function Ql(a){var b=a.Kc();if(a.B&&a.K&&a.F){var c=a.I;c.j=b;rj(c);a.X&&(c=a.X,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);dm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Bl(Xm,b))}function em(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=Bl(Ym),a.dispatchEvent(b))}function dm(a){if(a.B&&a.K){var b=a.B.g;a.K.g==Me?hl(b,"buffering"):a.g.paused?hl(b,"paused"):a.g.ended?hl(b,"ended"):hl(b,"playing")}}
@@ -475,23 +475,23 @@ function am(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(
475
475
  function Wm(a,b){var c=a.m?a.m.fd():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var t=c[d?"00":p];t?hn.includes(t)&&h.add(t):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
476
476
  missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new P(2,4,4012,c);}function um(a){if(!a.variants.some(te))throw new P(2,4,4032);}function an(a,b){M(function(c){if(1==c.g)return A(c,Promise.resolve(),2);a.l!=El&&a.dispatchEvent(b);D(c)})}function Om(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(Qb(c.language)):b.add("und");return b}
477
477
  function Nm(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=Qb(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){for(var m=r(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
478
- h.push({language:l,role:n,label:p})}});return h}function Gl(){return new P(2,7,7E3)}function Al(a,b,c,d,e,f){return d==a&&e.M==f.M&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function jk(){return{M:null,mimeType:null,startTime:null,Ee:NaN,uri:null}}function Hl(a){return new Promise(function(b,c){a.Sb=function(){return c(Gl())};a.qd=function(){return b()};a.onError=function(d){return c(d)};a.sd=function(){return c(Gl())}})}N("shaka.Player",T);T.prototype.setVideoContainer=T.prototype.De;
479
- T.prototype.getManifestParserFactory=T.prototype.pg;T.prototype.getManifest=T.prototype.og;T.prototype.retryStreaming=T.prototype.oe;T.prototype.setMaxHardwareResolution=T.prototype.ye;T.prototype.addChaptersTrack=T.prototype.Nf;T.prototype.addTextTrackAsync=T.prototype.Of;T.prototype.addTextTrack=T.prototype.addTextTrack;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.zb;T.prototype.getPresentationStartTimeAsDate=T.prototype.hf;
480
- T.prototype.getPlayheadTimeAsDate=T.prototype.ug;T.prototype.setTextTrackVisibility=T.prototype.Ce;T.prototype.getChapters=T.prototype.cg;T.prototype.getChaptersTracks=T.prototype.df;T.prototype.isTextTrackVisible=T.prototype.Pb;T.prototype.selectVariantsByLabel=T.prototype.bh;T.prototype.selectTextLanguage=T.prototype.re;T.prototype.selectAudioLanguage=T.prototype.xd;T.prototype.getTextLanguages=T.prototype.yg;T.prototype.getAudioLanguages=T.prototype.Yf;T.prototype.getTextLanguagesAndRoles=T.prototype.zg;
481
- T.prototype.getAudioLanguagesAndRoles=T.prototype.Zf;T.prototype.selectVariantTrack=T.prototype.ue;T.prototype.selectTextTrack=T.prototype.se;T.prototype.getThumbnails=T.prototype.Ag;T.prototype.getImageTracks=T.prototype.jg;T.prototype.getTextTracks=T.prototype.pb;T.prototype.getVariantTracks=T.prototype.ab;T.prototype.cancelTrickPlay=T.prototype.Se;T.prototype.trickPlay=T.prototype.Ie;T.prototype.getPlaybackRate=T.prototype.Ab;T.prototype.isBuffering=T.prototype.Kc;T.prototype.getKeyStatuses=T.prototype.fd;
482
- T.prototype.getExpiration=T.prototype.Dc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.goToLive=T.prototype.Eg;T.prototype.seekRange=T.prototype.Ma;T.prototype.isAudioOnly=T.prototype.mf;T.prototype.isInProgress=T.prototype.Nb;T.prototype.isLive=T.prototype.T;T.prototype.getAdManager=T.prototype.dd;T.prototype.getAssetUri=T.prototype.Wd;T.prototype.getNetworkingEngine=T.prototype.Ec;T.prototype.getMediaElement=T.prototype.rg;
483
- T.prototype.getLoadMode=T.prototype.gf;T.prototype.resetConfiguration=T.prototype.$g;T.prototype.getBufferFullness=T.prototype.$f;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.nh;T.prototype.unload=T.prototype.Ke;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.yc;
478
+ h.push({language:l,role:n,label:p})}});return h}function Gl(){return new P(2,7,7E3)}function Al(a,b,c,d,e,f){return d==a&&e.M==f.M&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function jk(){return{M:null,mimeType:null,startTime:null,Fe:NaN,uri:null}}function Hl(a){return new Promise(function(b,c){a.Sb=function(){return c(Gl())};a.qd=function(){return b()};a.onError=function(d){return c(d)};a.sd=function(){return c(Gl())}})}N("shaka.Player",T);T.prototype.setVideoContainer=T.prototype.Ee;
479
+ T.prototype.getManifestParserFactory=T.prototype.pg;T.prototype.getManifest=T.prototype.og;T.prototype.retryStreaming=T.prototype.pe;T.prototype.setMaxHardwareResolution=T.prototype.ze;T.prototype.addChaptersTrack=T.prototype.Nf;T.prototype.addTextTrackAsync=T.prototype.Of;T.prototype.addTextTrack=T.prototype.addTextTrack;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.zb;T.prototype.getPresentationStartTimeAsDate=T.prototype.jf;
480
+ T.prototype.getPlayheadTimeAsDate=T.prototype.ug;T.prototype.setTextTrackVisibility=T.prototype.De;T.prototype.getChapters=T.prototype.cg;T.prototype.getChaptersTracks=T.prototype.ef;T.prototype.isTextTrackVisible=T.prototype.Pb;T.prototype.selectVariantsByLabel=T.prototype.bh;T.prototype.selectTextLanguage=T.prototype.se;T.prototype.selectAudioLanguage=T.prototype.xd;T.prototype.getTextLanguages=T.prototype.yg;T.prototype.getAudioLanguages=T.prototype.Yf;T.prototype.getTextLanguagesAndRoles=T.prototype.zg;
481
+ T.prototype.getAudioLanguagesAndRoles=T.prototype.Zf;T.prototype.selectVariantTrack=T.prototype.ve;T.prototype.selectTextTrack=T.prototype.ue;T.prototype.getThumbnails=T.prototype.Ag;T.prototype.getImageTracks=T.prototype.jg;T.prototype.getTextTracks=T.prototype.qb;T.prototype.getVariantTracks=T.prototype.ab;T.prototype.cancelTrickPlay=T.prototype.Te;T.prototype.trickPlay=T.prototype.Je;T.prototype.getPlaybackRate=T.prototype.Ab;T.prototype.isBuffering=T.prototype.Kc;T.prototype.getKeyStatuses=T.prototype.fd;
482
+ T.prototype.getExpiration=T.prototype.Dc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.goToLive=T.prototype.Eg;T.prototype.seekRange=T.prototype.Ma;T.prototype.isAudioOnly=T.prototype.nf;T.prototype.isInProgress=T.prototype.Nb;T.prototype.isLive=T.prototype.T;T.prototype.getAdManager=T.prototype.dd;T.prototype.getAssetUri=T.prototype.Wd;T.prototype.getNetworkingEngine=T.prototype.Ec;T.prototype.getMediaElement=T.prototype.rg;
483
+ T.prototype.getLoadMode=T.prototype.hf;T.prototype.resetConfiguration=T.prototype.$g;T.prototype.getBufferFullness=T.prototype.$f;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.nh;T.prototype.unload=T.prototype.Le;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.yc;
484
484
  T.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return M(function(h){if(1==h.g)return b={},a?A(h,Cg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Tc()){for(var l in Jg)k[l]=!0;for(var m in Lg)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 n=m.next();!n.done;n=m.next())n=n.value,k[n]=Tc()?!!Jg[n]:Uc(n);for(var p in l)k[p]=
485
485
  Tc()?!!Lg[p]:Uc(l[p]);c=k;k={};p=r('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(","));
486
486
  for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Tc()?Ed(l)?!0:MediaSource.isTypeSupported(l)||ud(l):Uc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=kn;for(g in f)e[g]=f[g]();return h["return"](e)})};T.isBrowserSupported=Fl;T.setAdManagerFactory=function(a){ql=a};T.registerSupportPlugin=function(a,b){kn[a]=b};T.prototype.destroy=T.prototype.destroy;
487
487
  var fn="abrstatuschanged",$m="adaptation",Xm="buffering",Em="downloadfailed",Dm="downloadheadersreceived",cm="drmsessionupdate",gk="emsg",gn="error",jn="expirationupdated",Ll="loaded",Il="loading",Yl="manifestparsed",Vl="mediaqualitychanged",Cm="metadata",Cl="onstatechange",Dl="onstateidle",Ym="ratechange",nm="streaming",dn="textchanged",en="texttrackvisibility",Ul="timelineregionadded",Gm="timelineregionenter",Hm="timelineregionexit",bn="trackschanged",Pl="unloading",cn="variantchanged",ln={uh:fn,
488
- vh:$m,wh:Xm,Bh:Em,Ch:Dm,Dh:cm,Kh:gk,Error:gn,Lh:jn,Rh:"largegap",Sh:Ll,Th:Il,Xh:Yl,Yh:Vl,Metadata:Cm,ci:Cl,di:Dl,ni:Ym,wi:"sessiondata",xi:nm,zi:dn,Ai:en,Bi:Ul,Ci:Gm,Di:Hm,Ei:bn,Ii:Pl,Ki:cn},El=0,nl=1,lm=2,xm=3;T.LoadMode={DESTROYED:El,NOT_LOADED:nl,MEDIA_SOURCE:lm,SRC_EQUALS:xm};T.version="v3.3.16";var mn=["3","3"];Ab=new function(a){this.g=a;this.i=Bb;this.h=Cb}(new yb(Number(mn[0]),Number(mn[1])));
488
+ vh:$m,wh:Xm,Bh:Em,Ch:Dm,Dh:cm,Kh:gk,Error:gn,Lh:jn,Rh:"largegap",Sh:Ll,Th:Il,Xh:Yl,Yh:Vl,Metadata:Cm,ci:Cl,di:Dl,ni:Ym,wi:"sessiondata",xi:nm,zi:dn,Ai:en,Bi:Ul,Ci:Gm,Di:Hm,Ei:bn,Ii:Pl,Ki:cn},El=0,nl=1,lm=2,xm=3;T.LoadMode={DESTROYED:El,NOT_LOADED:nl,MEDIA_SOURCE:lm,SRC_EQUALS:xm};T.version="v3.3.17";var mn=["3","3"];Ab=new function(a){this.g=a;this.i=Bb;this.h=Cb}(new yb(Number(mn[0]),Number(mn[1])));
489
489
  var hn=["output-restricted","internal-error"],kn={},ql=null,Ml={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"},Qm={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
490
490
  ssa:"text/x-ssa",ass:"text/x-ssa"};function nn(){this.h=[];this.j=this.i=this.g=0};function on(a,b){var c=this;this.h=a;this.g=b;this.i=!1;this.l=this.g.getVolume();this.j=new pf;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){c.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){c.i=!1})}q=on.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};
491
491
  q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.g.getAdSkippableState()};q.skip=function(){return this.g.skip()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.resume()};q.getVolume=function(){return this.g.getVolume()};q.setVolume=function(a){return this.g.setVolume(a)};q.isMuted=function(){return 0==this.g.getVolume()};
492
492
  q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?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()};q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};
493
493
  N("shaka.ads.ClientSideAd",on);on.prototype.release=on.prototype.release;on.prototype.getPositionInSequence=on.prototype.getPositionInSequence;on.prototype.getSequenceLength=on.prototype.getSequenceLength;on.prototype.setMuted=on.prototype.setMuted;on.prototype.resize=on.prototype.resize;on.prototype.isLinear=on.prototype.isLinear;on.prototype.isMuted=on.prototype.isMuted;on.prototype.setVolume=on.prototype.setVolume;on.prototype.getVolume=on.prototype.getVolume;on.prototype.play=on.prototype.play;
494
- on.prototype.pause=on.prototype.pause;on.prototype.skip=on.prototype.skip;on.prototype.canSkipNow=on.prototype.canSkipNow;on.prototype.getTimeUntilSkippable=on.prototype.getTimeUntilSkippable;on.prototype.isSkippable=on.prototype.isSkippable;on.prototype.isPaused=on.prototype.isPaused;on.prototype.getRemainingTime=on.prototype.getRemainingTime;on.prototype.getMinSuggestedDuration=on.prototype.getMinSuggestedDuration;on.prototype.getDuration=on.prototype.getDuration;function pn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new pf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v3.3.16");this.g=null;this.h.Ga(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){qn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
494
+ on.prototype.pause=on.prototype.pause;on.prototype.skip=on.prototype.skip;on.prototype.canSkipNow=on.prototype.canSkipNow;on.prototype.getTimeUntilSkippable=on.prototype.getTimeUntilSkippable;on.prototype.isSkippable=on.prototype.isSkippable;on.prototype.isPaused=on.prototype.isPaused;on.prototype.getRemainingTime=on.prototype.getRemainingTime;on.prototype.getMinSuggestedDuration=on.prototype.getMinSuggestedDuration;on.prototype.getDuration=on.prototype.getDuration;function pn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new pf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v3.3.17");this.g=null;this.h.Ga(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){qn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
495
495
  function(f){rn(e,f)});this.i.onended=function(){e.m.contentComplete()}}pn.prototype.stop=function(){this.g&&this.g.stop();this.A&&uk(this.A)};pn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function rn(a,b){b.getError();sn(a,null);a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
496
496
  function qn(a,b){a.l(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new O("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",d)))}tn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),
497
497
  a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,document.fullscreenElement?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,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)),a.i.addEventListener("play",function(){a.g.start()},{once:!0})}catch(f){sn(a,null)}}
@@ -512,8 +512,8 @@ f;e.i(new O("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}wn.prototyp
512
512
  function xn(a,b){a.i(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function U(){cb.call(this);this.g=this.i=null;this.h=new nn;this.j=navigator.language}u(U,cb);q=U.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new P(2,10,1E4);this.i&&this.i.release();this.i=new pn(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)})};
513
513
  q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);cb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new O("ad-stopped"));this.h=new nn};q.requestClientSideAds=function(a){if(!this.i)throw new P(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
514
514
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new wn(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)})};
515
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Sa('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="v3.3.16";c=this.g;var d=b;c.j?c=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
516
- (c.H=!0),c.j=new Pc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Sa('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="v3.3.16";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new P(1,10,10003);return this.g.G};
515
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Sa('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="v3.3.17";c=this.g;var d=b;c.j?c=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
516
+ (c.H=!0),c.j=new Pc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Sa('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="v3.3.17";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new P(1,10,10003);return this.g.G};
517
517
  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)};N("shaka.ads.AdManager",U);
518
518
  U.prototype.onCueMetadataChange=U.prototype.onCueMetadataChange;U.prototype.onHlsTimedMetadata=U.prototype.onHlsTimedMetadata;U.prototype.onDashTimedMetadata=U.prototype.onDashTimedMetadata;U.prototype.getStats=U.prototype.getStats;U.prototype.getServerSideCuePoints=U.prototype.getServerSideCuePoints;U.prototype.replaceServerSideAdTagParameters=U.prototype.replaceServerSideAdTagParameters;U.prototype.requestServerSideStream=U.prototype.requestServerSideStream;U.prototype.initServerSide=U.prototype.initServerSide;
519
519
  U.prototype.requestClientSideAds=U.prototype.requestClientSideAds;U.prototype.onAssetUnload=U.prototype.onAssetUnload;U.prototype.release=U.prototype.release;U.prototype.initClientSide=U.prototype.initClientSide;U.prototype.setLocale=U.prototype.setLocale;U.ADS_LOADED="ads-loaded";U.AD_STARTED="ad-started";U.AD_FIRST_QUARTILE="ad-first-quartile";U.AD_MIDPOINT="ad-midpoint";U.AD_THIRD_QUARTILE="ad-third-quartile";U.AD_COMPLETE="ad-complete";U.AD_STOPPED="ad-stopped";U.AD_SKIPPED="ad-skipped";
@@ -527,16 +527,16 @@ isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySy
527
527
  Ln=["attach","detach","load","unload"];function Mn(a,b,c,d,e,f){var g=this;this.I=a;this.j=new Q(b);this.S=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return Nn(g)};this.G=function(h,k){var l=zn(k);switch(l.type){case "event":var m=l.targetName;l=Oa(l.event);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var p in m[n])l[p]=m[n][p]}g.C&&(g.S(),g.C=!1);break;case "asyncComplete":if(n=l.id,l=l.error,p=g.i[n],delete g.i[n],p)if(l){n=new P(l.severity,l.category,l.code);
528
528
  for(m in l)n[m]=l[m];p.reject(n)}else p.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;On.add(this)}q=Mn.prototype;q.destroy=function(){On["delete"](this);Pn(this);Qn&&Rn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.ra=function(){return this.h};q.vd=function(){return this.N};
529
529
  q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Ba();var a=new chrome.cast.SessionRequest(this.I);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(On),d=c.next();!d.done;d=c.next())Sn(d.value,b)},function(b){for(var c=r(On),d=c.next();!d.done;d=c.next())d=d.value,Tn="available"==b,d.j.Ba()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Tn&&this.j.R(Un);(a=Qn)&&a.status!=chrome.cast.SessionStatus.STOPPED?Sn(this,
530
- a):Qn=null}else window.__onGCastApiAvailable!==Vn&&(Wn=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Vn)};q.ve=function(a){this.A=a;this.h&&Xn(this,{type:"appData",appData:this.A})};q.cast=function(a){var b=this;return M(function(c){if(!b.m)throw new P(1,8,8E3);if(!Tn)throw new P(1,8,8001);if(b.h)throw new P(1,8,8002);b.l=new Pc;chrome.cast.requestSession(function(d){return Yn(b,a,d)},function(d){return Zn(b,d)});return A(c,b.l,0)})};
530
+ a):Qn=null}else window.__onGCastApiAvailable!==Vn&&(Wn=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Vn)};q.we=function(a){this.A=a;this.h&&Xn(this,{type:"appData",appData:this.A})};q.cast=function(a){var b=this;return M(function(c){if(!b.m)throw new P(1,8,8E3);if(!Tn)throw new P(1,8,8001);if(b.h)throw new P(1,8,8002);b.l=new Pc;chrome.cast.requestSession(function(d){return Yn(b,a,d)},function(d){return Zn(b,d)});return A(c,b.l,0)})};
531
531
  function $n(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Yn(a,b,c)},function(c){return Zn(a,c)})}}q.$b=function(){if(this.h){Pn(this);if(Qn){Rn(this);try{Qn.stop(function(){},function(){})}catch(a){}Qn=null}Nn(this)}};
532
532
  q.get=function(a,b){var c=this;if("video"==a){if(En.includes(b))return function(){return c.wf.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))}}else if("player"==a){if(Hn[b]&&!this.get("player","isLive")())return function(){};if(Kn.includes(b))return function(){return c.wf.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(Ln.includes(b))return function(){return c.Xg.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(Fn[b]||Gn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
533
533
  q.set=function(a,b,c){this.g[a][b]=c;Xn(this,{type:"set",targetName:a,property:b,value:c})};function Yn(a,b,c){Qn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Nn(a);Xn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function Zn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new P(2,8,c,b))}
534
534
  q.wf=function(a,b){Xn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.Xg=function(a,b){var c=Fa.apply(2,arguments),d=new Pc,e=this.J.toString();this.J++;this.i[e]=d;try{Xn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Sn(a,b){var c=a.K();a.l=new Pc;a.C=!0;Yn(a,c,b)}function Rn(a){var b=Qn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
535
535
  function Nn(a){var b=Qn?"connected"==Qn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Pn(a)}a.h=b;a.N=b?Qn.receiver.friendlyName:"";a.j.Ba()}function Pn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new P(1,7,7E3))}}function Xn(a,b){var c=yn(b),d=Qn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Va)}catch(e){throw c=new P(2,8,8005,e),d=new O("error",(new Map).set("detail",c)),a.B("player",d),a.$b(),c;}}var Un=.02,Tn=!1,Qn=null,Wn=null,On=new Set;
536
536
  function Vn(a){Wn?window.__onGCastApiAvailable=Wn:delete window.__onGCastApiAvailable;Wn=null;if(a)for(var b=r(On),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ao(a,b,c){cb.call(this);var d=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.F=c;this.C=new Map;this.g=new Mn(c,function(){return bo(d)},function(){return co(d)},function(e,f){return eo(d,e,f)},function(){return fo(d)},function(){return go(d)});ho(this)}u(ao,cb);q=ao.prototype;
537
- 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;cb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.bc=function(){return this.B};q.Re=function(){return this.g.m&&Tn};q.ra=function(){return this.g.ra()};q.vd=function(){return this.g.vd()};
538
- q.cast=function(){var a=this,b;return M(function(c){return 1==c.g?(b=go(a),A(c,a.g.cast(b),2)):a.h?A(c,a.h.Ke(),0):c["return"]()})};q.ve=function(a){this.g.ve(a)};q.Gf=function(){$n(this.g)};q.$b=function(){this.g.$b()};
539
- q.Ve=function(a){var b=this;return M(function(c){if(1==c.g){if(a==b.F)return c["return"]();b.F=a;b.g.$b();return A(c,b.g.destroy(),2)}b.g=null;b.g=new Mn(a,function(){return bo(b)},function(){return co(b)},function(d,e){return eo(b,d,e)},function(){return fo(b)},function(){return go(b)});b.g.init();D(c)})};
537
+ 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;cb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.bc=function(){return this.B};q.Se=function(){return this.g.m&&Tn};q.ra=function(){return this.g.ra()};q.vd=function(){return this.g.vd()};
538
+ q.cast=function(){var a=this,b;return M(function(c){return 1==c.g?(b=go(a),A(c,a.g.cast(b),2)):a.h?A(c,a.h.Le(),0):c["return"]()})};q.we=function(a){this.g.we(a)};q.Gf=function(){$n(this.g)};q.$b=function(){this.g.$b()};
539
+ q.We=function(a){var b=this;return M(function(c){if(1==c.g){if(a==b.F)return c["return"]();b.F=a;b.g.$b();return A(c,b.g.destroy(),2)}b.g=null;b.g=new Mn(a,function(){return bo(b)},function(){return co(b)},function(d,e){return eo(b,d,e)},function(){return fo(b)},function(){return go(b)});b.g.init();D(c)})};
540
540
  function ho(a){a.g.init();a.m=new pf;for(var b=r(Bn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.ra()||(f=Oa(f),a.j.dispatchEvent(f))});for(var d in ln)a.m.o(a.h,ln[d],function(f){a.g.ra()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.qc=e,Object.defineProperty(a.l,b.qc,{configurable:!1,enumerable:!0,get:function(f){return function(){return io(a,f.qc)}}(b),set:function(f){return function(g){var h=f.qc;a.g.ra()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={qc:b.qc};a.B={};jo(a,
541
541
  function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return ko(a,f)}})});lo(a);a.j=new cb;a.j.md=a.l;a.A=new cb;a.A.md=a.B}function lo(a){var b=new Map;jo(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
542
542
  function jo(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
@@ -546,13 +546,13 @@ function fo(a){for(var b=r(In),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[
546
546
  h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new O(gn,h);a.h.dispatchEvent(h)})}
547
547
  function io(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.ra()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.ra()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
548
548
  function ko(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Ec()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.dd()};
549
- if("setVideoContainer"==b)return function(c){return a.h.De(c)};if(a.g.ra()){if("getManifest"==b||"drmInfo"==b)return function(){Sa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Sa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.ra()&&0==Object.keys(a.g.g.video).length&&(Fn[b]||Gn[b])||!a.g.ra()?a.h[b].bind(a.h):a.g.get("player",b)}
550
- function eo(a,b,c){a.g.ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}N("shaka.cast.CastProxy",ao);ao.prototype.changeReceiverId=ao.prototype.Ve;ao.prototype.forceDisconnect=ao.prototype.$b;ao.prototype.suggestDisconnect=ao.prototype.Gf;ao.prototype.setAppData=ao.prototype.ve;ao.prototype.cast=ao.prototype.cast;ao.prototype.receiverName=ao.prototype.vd;ao.prototype.isCasting=ao.prototype.ra;ao.prototype.canCast=ao.prototype.Re;ao.prototype.getPlayer=ao.prototype.bc;
549
+ if("setVideoContainer"==b)return function(c){return a.h.Ee(c)};if(a.g.ra()){if("getManifest"==b||"drmInfo"==b)return function(){Sa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Sa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.ra()&&0==Object.keys(a.g.g.video).length&&(Fn[b]||Gn[b])||!a.g.ra()?a.h[b].bind(a.h):a.g.get("player",b)}
550
+ function eo(a,b,c){a.g.ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}N("shaka.cast.CastProxy",ao);ao.prototype.changeReceiverId=ao.prototype.We;ao.prototype.forceDisconnect=ao.prototype.$b;ao.prototype.suggestDisconnect=ao.prototype.Gf;ao.prototype.setAppData=ao.prototype.we;ao.prototype.cast=ao.prototype.cast;ao.prototype.receiverName=ao.prototype.vd;ao.prototype.isCasting=ao.prototype.ra;ao.prototype.canCast=ao.prototype.Se;ao.prototype.getPlayer=ao.prototype.bc;
551
551
  ao.prototype.getVideo=ao.prototype.Bb;ao.prototype.destroy=ao.prototype.destroy;function mo(a,b,c,d){cb.call(this);var e=this;this.g=a;this.h=b;this.j=new pf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new Q(function(){no(e)});oo(this)}u(mo,cb);q=mo.prototype;q.isConnected=function(){return this.H};q.Hg=function(){return this.A};q.fh=function(a){this.i=a};q.Uf=function(){this.i=null};
552
552
  q.gh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.eh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.dh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
553
553
  q.destroy=function(){var a=this,b,c;return M(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.A=!0,a.l=null,a.B=null,cb.prototype.release.call(a),A(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();D(d)})};
554
554
  function oo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return po(a)};b.onSenderDisconnected=function(){return po(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&qo(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);qo(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 ro(a,
555
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return so(a,e)};b.start();b=r(Bn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return to(a,"video",e)});for(var d in ln)a.j.o(a.h,ln[d],function(e){return to(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.ye(3840,2160):a.h.ye(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
555
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return so(a,e)};b.start();b=r(Bn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return to(a,"video",e)});for(var d in ln)a.j.o(a.h,ln[d],function(e){return to(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.ze(3840,2160):a.h.ze(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
556
556
  !1;uo(a)});a.j.o(a.g,"playing",function(){a.A=!1;uo(a)});a.j.o(a.g,"pause",function(){uo(a)});a.j.o(a.h,"unloading",function(){a.A=!0;uo(a)});a.j.o(a.g,"ended",function(){(new Q(function(){a.g&&a.g.ended&&(a.A=!0,uo(a))})).R(vo)})}function po(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;uo(a)}
557
557
  function uo(a){var b;M(function(c){if(1==c.g)return A(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new O("caststatuschanged");a.dispatchEvent(b);wo(a)||xo(a);D(c)})}
558
558
  function yo(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;M(function(v){switch(v.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,E(v,5),A(v,a.h.load(b.manifest,b.startTime),7)):A(v,Promise.resolve(),3);case 7:va(v,3);break;case 5:return g=I(v),h=gn,k=(new Map).set("detail",g),l=new O(h,k),a.h&&a.h.dispatchEvent(l),v["return"]();case 3:if(!a.h)return v["return"]();for(m in b.video)n=b.video[m],a.g[m]=n;for(p in b.playerAfterLoad)t=b.playerAfterLoad[p],
@@ -561,12 +561,12 @@ function no(a){a.I.R(zo);for(var b={video:{},player:{}},c=r(Cn),d=c.next();!d.do
561
561
  1);wo(a)}function wo(a){return a.C&&(a.g.duration||a.h.T())?(Ao(a),a.C=!1,!0):!1}function Ao(a,b){var c={contentId:a.h.Wd(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);xo(a,void 0===b?0:b,c)}
562
562
  function so(a,b){var c=zn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;yo(a,c.initState,c.appData);no(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
563
563
  c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return Bo(a,h,g,null)},function(k){return Bo(a,h,g,k)})}}
564
- function ro(a,b){var c=zn(b.data);switch(c.type){case "PLAY":a.g.play();xo(a);break;case "PAUSE":a.g.pause();xo(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),xo(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),xo(a));break;case "STOP":a.h.Ke().then(function(){a.h&&xo(a)});break;case "GET_STATUS":Ao(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
564
+ function ro(a,b){var c=zn(b.data);switch(c.type){case "PLAY":a.g.play();xo(a);break;case "PAUSE":a.g.pause();xo(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),xo(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),xo(a));break;case "STOP":a.h.Le().then(function(){a.h&&xo(a)});break;case "GET_STATUS":Ao(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
565
565
  null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||xo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&Ao(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");qo(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:qo(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
566
566
  function Bo(a,b,c,d){a.h&&qo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function qo(a,b,c,d){a.H&&(a=yn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function xo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Co:a.h.Kc()?Do:a.g.paused?Eo:Fo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);qo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
567
567
  N("shaka.cast.CastReceiver",mo);mo.prototype.destroy=mo.prototype.destroy;mo.prototype.setContentArtist=mo.prototype.dh;mo.prototype.setContentImage=mo.prototype.eh;mo.prototype.setContentTitle=mo.prototype.gh;mo.prototype.clearContentMetadata=mo.prototype.Uf;mo.prototype.setContentMetadata=mo.prototype.fh;mo.prototype.isIdle=mo.prototype.Hg;mo.prototype.isConnected=mo.prototype.isConnected;var zo=.5,vo=5,Co="IDLE",Fo="PLAYING",Do="BUFFERING",Eo="PAUSED";function Go(a){var b=this;this.g=[];this.h=[];this.data=[];(new Qg).box("moov",Ug).V("pssh",function(c){if(!(1<c.version)){var d=Ic(c.reader.U,-12,c.size);b.data.push(d);b.g.push(rd(c.reader.Cb(16)));if(0<c.version){d=c.reader.P();for(var e=0;e<d;e++){var f=rd(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
568
568
  function Ho(a,b){var c=a.length,d=b.length+16+c,e=new Uint8Array(d),f=Lc(e),g=0;f.setUint32(g,d);g+=4;f.setUint32(g,1886614376);g+=4;f.setUint32(g,0);g+=4;e.set(b,g);g+=b.length;f.setUint32(g,c);e.set(a,g+4);return e}function Io(a){if(!a)return a;var b=new Go(a);if(1>=b.data.length)return a;a=[];var c={};b=r(b.data);for(var d=b.next();!d.done;c={Sc:c.Sc},d=b.next())c.Sc=d.value,a.some(function(e){return function(f){return Gc(f,e.Sc)}}(c))||a.push(c.Sc);return sd.apply(md,ia(a))};function Jo(a,b,c){var d=Ko(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new P(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.zf?(e=h.init||e,!1):!0}),f.length&&(a=Lo(e,f,c),0==a.length&&(a=[Ib("",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(Ib(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
569
- r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Ye:g,Li:e,drmInfos:a,cf:!0}}function Mo(a,b,c,d){var e=Jo(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 P(2,4,4008);return e.Ye||b.Ye}
569
+ r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Ze:g,Li:e,drmInfos:a,df:!0}}function Mo(a,b,c,d){var e=Jo(a,c,d);if(b.df){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.df=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new P(2,4,4008);return e.Ze||b.Ze}
570
570
  function No(a){var b=0,c=Lc(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=Ic(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
571
571
  function Oo(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 Po(a){a=Cf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=pd(a.textContent);a=No(a).filter(function(b){return b.type===Qo})[0];if(!a)return"";a=hd(a.value,!0);return(a=Sf(a,"WRMHEADER"))?Oo(a):""}
572
572
  function Lo(a,b,c){var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=c[e.zf];if(f){var g;if(g=Cf(e.node,"urn:microsoft:playready","pro")){g=pd(g.textContent);var h=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);g=[{initData:Ho(g,h),initDataType:"cenc",keyId:e.keyId}]}else g=null;g=Ib(f,e.init||a||g);if(f=Ro.get(f))g.licenseServerUri=f(e);d.push(g)}}return d}
@@ -574,8 +574,8 @@ function Ko(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=So(c.val
574
574
  function So(a){var b=a.getAttribute("schemeIdUri"),c=Ff(a,"urn:mpeg:cenc:2013","default_KID"),d=Df(a,"urn:mpeg:cenc:2013","pssh").map(Hf);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new P(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:pd(f),keyId:null}})}catch(f){throw new P(2,4,4007);}return{node:a,zf:b,keyId:c,init:0<e.length?e:null}}
575
575
  var Qo=1,Ro=(new Map).set("com.widevine.alpha",function(a){return(a=Cf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Po).set("com.microsoft.playready.recommendation",Po).set("com.microsoft.playready.software",Po).set("com.microsoft.playready.hardware",Po);function To(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=
576
576
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
577
- function Uo(a,b){var c=Vo(a,b,"timescale"),d=1;c&&(d=Of(c)||1);var e=Vo(a,b,"duration");c=Of(e||"");"image"==a.L.contentType&&(c=Qf(e||""));c&&(c/=d);var f=Vo(a,b,"startNumber");e=Number(Vo(a,b,"presentationTimeOffset"))||0;var g=Pf(f||"");if(null==f||null==g)g=1;var h=Wo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Y.duration||Infinity;h=Bf(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],t=h[n+1],v=Jf(p,"t",Pf),y=Jf(p,"d",Pf);p=Jf(p,"r",Nf);null!=v&&(v-=e);if(!y)break;v=null!=v?v:m;p=
578
- p||0;if(0>p)if(t){t=Jf(t,"t",Pf);if(null==t)break;else if(v>=t)break;p=Math.ceil((t-v)/y)-1}else{if(Infinity==k)break;else if(v/f>=k)break;p=Math.ceil((k*f-v)/y)-1}0<l.length&&v!=m&&(l[l.length-1].end=v/f);for(t=0;t<=p;++t)m=v+y,l.push({start:v/f,end:m/f,lh:v}),v=m}f=l}return{timescale:d,Aa:c,nc:g,sb:e/d||0,Le:e,timeline:f}}function Vo(a,b,c){return[b(a.L),b(a.xa),b(a.sa)].filter(Fb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
577
+ function Uo(a,b){var c=Vo(a,b,"timescale"),d=1;c&&(d=Of(c)||1);var e=Vo(a,b,"duration");c=Of(e||"");"image"==a.L.contentType&&(c=Qf(e||""));c&&(c/=d);var f=Vo(a,b,"startNumber");e=Number(Vo(a,b,"presentationTimeOffset"))||0;var g=Pf(f||"");if(null==f||null==g)g=1;var h=Wo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Y.duration||Infinity;h=Bf(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],t=h[n+1],v=Jf(p,"t",Pf),w=Jf(p,"d",Pf);p=Jf(p,"r",Nf);null!=v&&(v-=e);if(!w)break;v=null!=v?v:m;p=
578
+ p||0;if(0>p)if(t){t=Jf(t,"t",Pf);if(null==t)break;else if(v>=t)break;p=Math.ceil((t-v)/w)-1}else{if(Infinity==k)break;else if(v/f>=k)break;p=Math.ceil((k*f-v)/w)-1}0<l.length&&v!=m&&(l[l.length-1].end=v/f);for(t=0;t<=p;++t)m=v+w,l.push({start:v/f,end:m/f,lh:v}),v=m}f=l}return{timescale:d,Aa:c,nc:g,ub:e/d||0,Me:e,timeline:f}}function Vo(a,b,c){return[b(a.L),b(a.xa),b(a.sa)].filter(Fb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
579
579
  function Wo(a,b,c){return[b(a.L),b(a.xa),b(a.sa)].filter(Fb).map(function(d){return Af(d,c)}).reduce(function(d,e){return d||e})}
580
580
  function Xo(a,b,c,d,e,f){for(var g=Ff(a,"http://www.w3.org/1999/xlink","href"),h=Ff(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 Se(new P(2,4,4028));if("onLoad"!=h)return Se(new P(2,4,4027));var m=Hb([d],[g]);return e.request(0,ff(m,b)).qa(function(n){n=Uf(n.data,a.tagName);if(!n)return Se(new P(2,4,4001,g));
581
581
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=r(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Yo(a,b,c,m[0],e,f+1)})}
@@ -586,31 +586,31 @@ d)}function cp(a){var b=a.g.ia(),c=a.g.ka();if(0==c)throw new P(2,3,3002);c=8-Ma
586
586
  function fp(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function gp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new ap(a.g);for(var n=null,p=null;a.Ea();){var t=bp(a);if(187==t.id){var v=hp(t);v&&(t=c*v.mh,v=b+v.Wg,null!=n&&m.push(new Ni(n+g,t+g,l,p,v-1,f,g,h,k)),n=t,p=v)}}null!=n&&m.push(new Ni(n+g,d+g,l,p,null,f,g,h,k));return m}
587
587
  function hp(a){var b=new ap(a.g);a=bp(b);if(179!=a.id)throw new P(2,3,3013);a=fp(a);b=bp(b);if(183!=b.id)throw new P(2,3,3012);b=new ap(b.g);for(var c=0;b.Ea();){var d=bp(b);if(241==d.id){c=fp(d);break}}return{mh:a,Wg:c}};function ip(a,b){var c=Wo(a,b,"Initialization");if(!c)return null;var d=a.L.Qa,e=c.getAttribute("sourceURL");e&&(d=Hb(a.L.Qa,[e]));e=0;var f=null;if(c=Jf(c,"range",Mf))e=c.start,f=c.end;return new Li(function(){return d},e,f,jp(a))}
588
588
  function kp(a,b){var c=Number(Vo(a,lp,"presentationTimeOffset"))||0,d=Vo(a,lp,"timescale"),e=1;d&&(e=Of(d)||1);var f=c/e||0,g=ip(a,lp);mp(a,g);var h=Ze(a);return{ac:function(){var k=Wo(h,lp,"RepresentationIndex"),l=h.L.Qa;k&&(k=k.getAttribute("sourceURL"))&&(l=Hb(h.L.Qa,[k]));k=np(h);return op(h,b,g,l,k.start,k.end,f)}}}
589
- function op(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,v,y,x,w,C,z,B,F;return M(function(G){if(1==G.g)return h=a.presentationTimeline,k=!a.xb||!a.Y.pf,l=a.Y.start,m=a.Y.duration,n=a.L.mimeType.split("/")[1],p=b,t=null,v=[p(d,e,f),"webm"==n?p(c.Ka(),c.Ha,c.ya):null],p=null,A(G,Promise.all(v),2);y=G.h;x=y[0];w=y[1]||null;C=null;z=l-g;B=l;F=m?l+m:Infinity;if("mp4"==n)var H=Zo(x,e,d,c,z,B,F);else{H=new ap(w);if(440786851!=bp(H).id)throw new P(2,3,3008);var J=bp(H);if(408125543!=J.id)throw new P(2,3,3009);H=J.g.byteOffset;
590
- J=new ap(J.g);for(var K=null;J.Ea();){var L=bp(J);if(357149030==L.id){K=L;break}}if(!K)throw new P(2,3,3010);K=new ap(K.g);L=1E6;for(J=null;K.Ea();){var W=bp(K);if(2807729==W.id)L=fp(W);else if(17545==W.id)if(4==W.g.byteLength)J=W.g.getFloat32(0);else if(8==W.g.byteLength)J=W.g.getFloat64(0);else throw new P(2,3,3003);}if(null==J)throw new P(2,3,3011);K=L/1E9;J*=K;L=bp(new ap(x));if(475249515!=L.id)throw new P(2,3,3007);H=gp(L,H,K,J,d,c,z,B,F)}C=H;h.ic(C);t=new mj(C);k&&t.yb(B,F,!0);return G["return"](t)})}
589
+ function op(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,v,w,y,x,C,z,B,F;return M(function(G){if(1==G.g)return h=a.presentationTimeline,k=!a.mb||!a.Y.Xd,l=a.Y.start,m=a.Y.duration,n=a.L.mimeType.split("/")[1],p=b,t=null,v=[p(d,e,f),"webm"==n?p(c.Ka(),c.Ha,c.ya):null],p=null,A(G,Promise.all(v),2);w=G.h;y=w[0];x=w[1]||null;C=null;z=l-g;B=l;F=m?l+m:Infinity;if("mp4"==n)var H=Zo(y,e,d,c,z,B,F);else{H=new ap(x);if(440786851!=bp(H).id)throw new P(2,3,3008);var J=bp(H);if(408125543!=J.id)throw new P(2,3,3009);H=J.g.byteOffset;
590
+ J=new ap(J.g);for(var K=null;J.Ea();){var L=bp(J);if(357149030==L.id){K=L;break}}if(!K)throw new P(2,3,3010);K=new ap(K.g);L=1E6;for(J=null;K.Ea();){var W=bp(K);if(2807729==W.id)L=fp(W);else if(17545==W.id)if(4==W.g.byteLength)J=W.g.getFloat32(0);else if(8==W.g.byteLength)J=W.g.getFloat64(0);else throw new P(2,3,3003);}if(null==J)throw new P(2,3,3011);K=L/1E9;J*=K;L=bp(new ap(y));if(475249515!=L.id)throw new P(2,3,3007);H=gp(L,H,K,J,d,c,z,B,F)}C=H;h.ic(C);t=new mj(C);k&&t.yb(B,F,!0);return G["return"](t)})}
591
591
  function lp(a){return a.Oc}function np(a){var b=Wo(a,lp,"RepresentationIndex");a=Vo(a,lp,"indexRange");a=Mf(a||"");b&&(a=Jf(b,"range",Mf,a));return a}function mp(a,b){pp(a,b);if(!np(a))throw new P(2,4,4002);}function pp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Mb&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
592
- function jp(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.od,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function qp(a,b){var c=ip(a,rp),d=sp(a);if(!d.Aa&&!d.timeline&&1<d.ec.length)throw new P(2,4,4002);if(!d.Aa&&!a.Y.duration&&!d.timeline&&1==d.ec.length)throw new P(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new P(2,4,4002);var e=null,f=null;a.sa.id&&a.L.id&&(f=b[a.sa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Bp(a.Y.start,a.Y.duration,a.L.Qa,d,c);c=!e;e?e.hc(g,a.presentationTimeline.ob()):e=new mj(g);a.presentationTimeline.ic(g);a.xb&&a.Y.pf||e.yb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
593
- Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.O.length||e.fc(g);return Promise.resolve(e)}}}function rp(a){return a.Db}function sp(a){var b=Cp(a);a=Uo(a,rp);var c=a.nc;0==c&&(c=1);var d=0;a.Aa?d=a.Aa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Aa:a.Aa,startTime:d,nc:c,sb:a.sb,timeline:a.timeline,ec:b}}
594
- function Bp(a,b,c,d,e){var f=d.ec.length;d.timeline&&d.timeline.length!=d.ec.length&&(f=Math.min(d.timeline.length,d.ec.length));for(var g=a-d.sb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Id:m.Id},n++){var p=d.ec[n];m.Id=Hb(c,[p.Ng]);var t=void 0;t=null!=d.Aa?l+d.Aa:d.timeline?d.timeline[n].end:l+b;k.push(new Ni(a+l,a+t,function(v){return function(){return v.Id}}(m),p.start,p.end,e,g,a,h));l=t}return k}
595
- function Cp(a){return[a.L.Db,a.xa.Db,a.sa.Db].filter(Fb).map(function(b){return Bf(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=Jf(b,"mediaRange",Mf,{start:0,end:null});return{Ng:c,start:b.start,end:b.end}})};function Dp(a,b,c,d,e,f){var g=Ep(a),h=Fp(a);Gp(h);var k=Ze(a);if(h.Jc)return pp(a,g),{ac:function(){var t=To(h.Jc,k.L.id,null,k.bandwidth||null,null);t=Hb(k.L.Qa,[t]);return op(k,b,g,t,0,null,h.sb)}};if(h.Aa)return d||"image"===a.xa.contentType||(a.presentationTimeline.fe(h.Aa),a.presentationTimeline.ge(a.Y.start)),{ac:function(){return Hp(k,h,e,g,f)}};var l=null;d=d=null;a.sa.id&&a.L.id&&(d=a.sa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Ip(k,h,g);c=a.Y.start;var n=a.Y.duration?a.Y.start+a.Y.duration:
596
- Infinity,p=Infinity!=n;l?(p&&(new mj(m)).yb(c,n,!0),l.hc(m,a.presentationTimeline.ob())):l=new mj(m);a.presentationTimeline.ic(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.O.length||l.fc(m);return Promise.resolve(l)}}}function Jp(a){return a.Pc}function Fp(a){var b=Uo(a,Jp),c=Vo(a,Jp,"media");a=Vo(a,Jp,"index");return{Aa:b.Aa,timescale:b.timescale,nc:b.nc,sb:b.sb,Le:b.Le,timeline:b.timeline,ee:c,Jc:a}}
597
- function Gp(a){var b=a.Jc?1:0;b+=a.timeline?1:0;b+=a.Aa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Jc&&(a.timeline=null),a.Aa=null);if(!a.Jc&&!a.ee)throw new P(2,4,4002);}
598
- function Hp(a,b,c,d,e){function f(K){var L=(K-t)*p,W=L+b.sb,Z=L+l;L=Z+p;var ka=Math.min(L,h());Z=new Ni(Z,ka,function(){var ja=To(y,w,K,x,W*v);return Hb(C,[ja])},0,null,d,z,l,h());Z.l=L;return Z}function g(){var K=[Math.max(k.ob(),l),Math.min(k.Kb(),h())].map(function(L){return L-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(L){return L+t})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.sa.id,n=a.Y.duration,p=b.Aa,t=b.nc,v=b.timescale,
599
- y=b.ee,x=a.bandwidth||null,w=a.L.id,C=a.L.Qa,z=l-b.sb,B=g();a=a.xb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var F=a;F<=B;++F){var G=f(F);c.push(G)}var H=new mj(c);c=k.Kb()<h();F=k.T();if(c||F){var J=Math.max(a,B+1);H.yd(p,function(){var K=k.ob();H.Hb(K);var L=r(g());L.next();L=L.next().value;for(var W=[];J<=L;){var Z=f(J);W.push(Z);J++}return K>h()&&!W.length?null:W})}return Promise.resolve(H)}
600
- function Ip(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.sb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Hd:h.Hd,Ld:h.Ld,Od:h.Od,Ed:h.Ed,Qd:h.Qd,Fd:h.Fd},k++){var l=b.timeline[k],m=l.start,n=l.lh;l=l.end;h.Od=k+b.nc;h.Qd=n+b.Le;h.Ld=a.L.id;h.Ed=a.bandwidth||null;h.Hd=b.ee;h.Fd=a.L.Qa;g.push(new Ni(d+m,d+l,function(p){return function(){var t=To(p.Hd,p.Ld,p.Od,p.Ed||null,p.Qd);return Hb(p.Fd,[t]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
592
+ function jp(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.od,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function qp(a,b){var c=ip(a,rp),d=sp(a);if(!d.Aa&&!d.timeline&&1<d.ec.length)throw new P(2,4,4002);if(!d.Aa&&!a.Y.duration&&!d.timeline&&1==d.ec.length)throw new P(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new P(2,4,4002);var e=null,f=null;a.sa.id&&a.L.id&&(f=b[a.sa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Bp(a.Y.start,a.Y.duration,a.L.Qa,d,c);c=!e;e?e.hc(g,a.presentationTimeline.pb()):e=new mj(g);a.presentationTimeline.ic(g);a.mb&&a.Y.Xd||e.yb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
593
+ Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.O.length||e.fc(g);return Promise.resolve(e)}}}function rp(a){return a.Db}function sp(a){var b=Cp(a);a=Uo(a,rp);var c=a.nc;0==c&&(c=1);var d=0;a.Aa?d=a.Aa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Aa:a.Aa,startTime:d,nc:c,ub:a.ub,timeline:a.timeline,ec:b}}
594
+ function Bp(a,b,c,d,e){var f=d.ec.length;d.timeline&&d.timeline.length!=d.ec.length&&(f=Math.min(d.timeline.length,d.ec.length));for(var g=a-d.ub,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Id:m.Id},n++){var p=d.ec[n];m.Id=Hb(c,[p.Ng]);var t=void 0;t=null!=d.Aa?l+d.Aa:d.timeline?d.timeline[n].end:l+b;k.push(new Ni(a+l,a+t,function(v){return function(){return v.Id}}(m),p.start,p.end,e,g,a,h));l=t}return k}
595
+ function Cp(a){return[a.L.Db,a.xa.Db,a.sa.Db].filter(Fb).map(function(b){return Bf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.mf&&(a.mf=!0);var c=b.getAttribute("media");b=Jf(b,"mediaRange",Mf,{start:0,end:null});return{Ng:c,start:b.start,end:b.end}})};function Dp(a,b,c,d,e,f){var g=Ep(a),h=Fp(a);Gp(h);var k=Ze(a);if(h.Jc)return pp(a,g),{ac:function(){var t=To(h.Jc,k.L.id,null,k.bandwidth||null,null);t=Hb(k.L.Qa,[t]);return op(k,b,g,t,0,null,h.ub)}};if(h.Aa)return d||"image"===a.xa.contentType||(a.presentationTimeline.ge(h.Aa),a.presentationTimeline.ie(a.Y.start)),{ac:function(){return Hp(k,h,e,g,f)}};var l=null;d=d=null;a.sa.id&&a.L.id&&(d=a.sa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Ip(k,h,g);c=a.Y.start;var n=a.Y.duration?a.Y.start+a.Y.duration:
596
+ Infinity,p=!(a.mb&&a.Y.Xd);l?(p&&(new mj(m)).yb(c,n,!0),l.hc(m,a.presentationTimeline.pb())):l=new mj(m);a.presentationTimeline.ic(m);p&&l.yb(c,n);d&&a.mb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.O.length||l.fc(m);return Promise.resolve(l)}}}function Jp(a){return a.Pc}function Fp(a){var b=Uo(a,Jp),c=Vo(a,Jp,"media");a=Vo(a,Jp,"index");return{Aa:b.Aa,timescale:b.timescale,nc:b.nc,ub:b.ub,Me:b.Me,timeline:b.timeline,fe:c,Jc:a}}
597
+ function Gp(a){var b=a.Jc?1:0;b+=a.timeline?1:0;b+=a.Aa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Jc&&(a.timeline=null),a.Aa=null);if(!a.Jc&&!a.fe)throw new P(2,4,4002);}
598
+ function Hp(a,b,c,d,e){function f(K){var L=(K-t)*p,W=L+b.ub,Z=L+l;L=Z+p;var ka=Math.min(L,h());Z=new Ni(Z,ka,function(){var ja=To(w,x,K,y,W*v);return Hb(C,[ja])},0,null,d,z,l,h());Z.l=L;return Z}function g(){var K=[Math.max(k.pb(),l),Math.min(k.Kb(),h())].map(function(L){return L-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(L){return L+t})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.sa.id,n=a.Y.duration,p=b.Aa,t=b.nc,v=b.timescale,
599
+ w=b.fe,y=a.bandwidth||null,x=a.L.id,C=a.L.Qa,z=l-b.ub,B=g();a=a.mb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var F=a;F<=B;++F){var G=f(F);c.push(G)}var H=new mj(c);c=k.Kb()<h();F=k.T();if(c||F){var J=Math.max(a,B+1);H.yd(p,function(){var K=k.pb();H.Hb(K);var L=r(g());L.next();L=L.next().value;for(var W=[];J<=L;){var Z=f(J);W.push(Z);J++}return K>h()&&!W.length?null:W})}return Promise.resolve(H)}
600
+ function Ip(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.ub;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Hd:h.Hd,Ld:h.Ld,Od:h.Od,Ed:h.Ed,Qd:h.Qd,Fd:h.Fd},k++){var l=b.timeline[k],m=l.start,n=l.lh;l=l.end;h.Od=k+b.nc;h.Qd=n+b.Me;h.Ld=a.L.id;h.Ed=a.bandwidth||null;h.Hd=b.fe;h.Fd=a.L.Qa;g.push(new Ni(d+m,d+l,function(p){return function(){var t=To(p.Hd,p.Ld,p.Od,p.Ed||null,p.Qd);return Hb(p.Fd,[t]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
601
601
  function Ep(a){var b=Vo(a,Jp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Qa;return new Li(function(){var f=To(b,c,null,d,null);return Hb(e,[f])},0,null,jp(a))};function Kp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Kp.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=[]};
602
- function Lp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia;return M(function(Ma){switch(Ma.g){case 1:d=Nb;Mp(b);Np(b);Op(b);Pp(b);if(!c&&1==b.length){e=b[0];a.g=e.Zc;a.h=e.Bd;a.j=e.textStreams;a.i=e.imageStreams;Ma.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 Ma["return"]();k=b.map(function(Da){return Da.Zc});l=b.map(function(Da){return Da.Bd});m=b.map(function(Da){return Da.textStreams});n=b.map(function(Da){return Da.imageStreams});
603
- p=r(m);for(t=p.next();!t.done;t=p.next())v=t.value,v.push(Qp(d.oa));y=r(n);for(x=y.next();!x.done;x=y.next())w=x.value,w.push(Qp(d.xc));return A(Ma,Rp(a.g,k,f,Sp,Tp),3);case 3:return A(Ma,Rp(a.h,l,f,Sp,Tp),4);case 4:return A(Ma,Rp(a.j,m,f,Sp,Tp),5);case 5:return A(Ma,Rp(a.i,n,f,Sp,Tp),2);case 2:C=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),L=K.next();!L.done;L=K.next())for(W=L.value,Z=r(a.h),ka=Z.next();!ka.done;ka=Z.next())ja=ka.value,ea=Fg(W.drmInfos,ja.drmInfos),W.drmInfos.length&&ja.drmInfos.length&&
602
+ function Lp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia;return M(function(Ma){switch(Ma.g){case 1:d=Nb;Mp(b);Np(b);Op(b);Pp(b);if(!c&&1==b.length){e=b[0];a.g=e.Zc;a.h=e.Bd;a.j=e.textStreams;a.i=e.imageStreams;Ma.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 Ma["return"]();k=b.map(function(Da){return Da.Zc});l=b.map(function(Da){return Da.Bd});m=b.map(function(Da){return Da.textStreams});n=b.map(function(Da){return Da.imageStreams});
603
+ p=r(m);for(t=p.next();!t.done;t=p.next())v=t.value,v.push(Qp(d.oa));w=r(n);for(y=w.next();!y.done;y=w.next())x=y.value,x.push(Qp(d.xc));return A(Ma,Rp(a.g,k,f,Sp,Tp),3);case 3:return A(Ma,Rp(a.h,l,f,Sp,Tp),4);case 4:return A(Ma,Rp(a.j,m,f,Sp,Tp),5);case 5:return A(Ma,Rp(a.i,n,f,Sp,Tp),2);case 2:C=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),L=K.next();!L.done;L=K.next())for(W=L.value,Z=r(a.h),ka=Z.next();!ka.done;ka=Z.next())ja=ka.value,ea=Fg(W.drmInfos,ja.drmInfos),W.drmInfos.length&&ja.drmInfos.length&&
604
604
  !ea.length||(Ia=C++,z.push({id:Ia,language:W.language,primary:W.primary,audio:W,video:ja,bandwidth:(W.bandwidth||0)+(ja.bandwidth||0),drmInfos:ea,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),F=r(B),G=F.next();!G.done;G=F.next())H=G.value,J=C++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.Gb?H:null,video:H.type==d.hb?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
605
605
  a.l=z;D(Ma)}})}function Mp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Zc),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&&jc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Zc=c}}
606
606
  function Op(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&&jc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
607
607
  function Np(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Bd),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&&jc(e.roles,h.roles)&&zf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Bd=c}}
608
608
  function Pp(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}}
609
- function Up(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W;return M(function(Z){switch(Z.g){case 1:b=Nb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.Gb})});d=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.hb})});e=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.oa})});f=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.xc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
610
- h.value,k.push(Vp(b.oa));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Vp(b.xc));return A(Z,Rp([],c,0,Wp,Xp),2);case 2:return p=Z.h,A(Z,Rp([],d,0,Wp,Xp),3);case 3:return t=Z.h,A(Z,Rp([],e,0,Wp,Xp),4);case 4:return v=Z.h,A(Z,Rp([],f,0,Wp,Xp),5);case 5:y=Z.h;x=0;if(t.length&&p.length)for(F=r(p),G=F.next();!G.done;G=F.next())for(H=G.value,J=r(t),K=J.next();!K.done;K=J.next())L=K.value,W=x++,L.variantIds.push(W),H.variantIds.push(W);else for(w=t.concat(p),C=r(w),z=C.next();!z.done;z=C.next())B=
611
- z.value,B.variantIds=[x++];return Z["return"](t.concat(p).concat(v).concat(y))}})}
612
- function Rp(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K;return M(function(L){switch(L.g){case 1:f=Nb;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){L.D(4);break}m=l.value;return A(L,Yp(m,b,c,e,g),5);case 5:n=L.h;if(!n)throw new P(2,4,4037);l=k.next();L.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(v=t.value,y=r(v),x=y.next();!x.done;x=y.next())w=x.value,(C=Zp(w,b,d,e,g))&&a.push(C);z=r(g);for(t=z.next();!t.done;t=
613
- z.next())for(B=t.value,F={},G=r(B),x=G.next();!x.done;F={vb:F.vb},x=G.next())if(F.vb=x.value,H=F.vb.type==f.oa&&!F.vb.language,J=F.vb.type==f.xc&&!F.vb.tilesLayout,!H&&!J&&(K=a.some(function(W){return function(Z){return Z.mimeType==W.vb.mimeType&&Ad(Z.codecs)==Ad(W.vb.codecs)}}(F))))throw new P(2,4,4037);return L["return"](a)}})}
609
+ function Up(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W;return M(function(Z){switch(Z.g){case 1:b=Nb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.Gb})});d=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.hb})});e=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.oa})});f=a.map(function(ka){return ka.filter(function(ja){return ja.type==b.xc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
610
+ h.value,k.push(Vp(b.oa));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Vp(b.xc));return A(Z,Rp([],c,0,Wp,Xp),2);case 2:return p=Z.h,A(Z,Rp([],d,0,Wp,Xp),3);case 3:return t=Z.h,A(Z,Rp([],e,0,Wp,Xp),4);case 4:return v=Z.h,A(Z,Rp([],f,0,Wp,Xp),5);case 5:w=Z.h;y=0;if(t.length&&p.length)for(F=r(p),G=F.next();!G.done;G=F.next())for(H=G.value,J=r(t),K=J.next();!K.done;K=J.next())L=K.value,W=y++,L.variantIds.push(W),H.variantIds.push(W);else for(x=t.concat(p),C=r(x),z=C.next();!z.done;z=C.next())B=
611
+ z.value,B.variantIds=[y++];return Z["return"](t.concat(p).concat(v).concat(w))}})}
612
+ function Rp(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K;return M(function(L){switch(L.g){case 1:f=Nb;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){L.D(4);break}m=l.value;return A(L,Yp(m,b,c,e,g),5);case 5:n=L.h;if(!n)throw new P(2,4,4037);l=k.next();L.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(v=t.value,w=r(v),y=w.next();!y.done;y=w.next())x=y.value,(C=Zp(x,b,d,e,g))&&a.push(C);z=r(g);for(t=z.next();!t.done;t=
613
+ z.next())for(B=t.value,F={},G=r(B),y=G.next();!y.done;F={wb:F.wb},y=G.next())if(F.wb=y.value,H=F.wb.type==f.oa&&!F.wb.language,J=F.wb.type==f.xc&&!F.wb.tilesLayout,!H&&!J&&(K=a.some(function(W){return function(Z){return Z.mimeType==W.wb.mimeType&&Ad(Z.codecs)==Ad(W.wb.codecs)}}(F))))throw new P(2,4,4037);return L["return"](a)}})}
614
614
  function Yp(a,b,c,d,e){return M(function(f){if(1==f.g)return $p(b,a),a.matchedStreams?a.segmentIndex?A(f,aq(a,c),2):f.D(2):f["return"](!1);bq(a,c,d,e);return f["return"](!0)})}
615
615
  function aq(a,b){var c,d,e,f,g,h,k;return M(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 A(l,Promise.all(c),2)}if(a.segmentIndex instanceof pj)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);D(l)})}
616
616
  function Zp(a,b,c,d,e){var f=c(a);$p(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return M(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new pj;return A(g,aq(f,0),0)})});if(!f.matchedStreams)return null;bq(f,0,d,e);return f}function bq(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==Wb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
@@ -631,29 +631,29 @@ function jq(a,b,c){if(b==a&&a!=c)return lq;if(c==a&&a!=b)return kq;if(b>a){if(c<
631
631
  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.A.destroy()};q.update=function(){var a=this,b;return M(function(c){if(1==c.g)return E(c,2),A(c,qq(a),4);if(2!=c.g)return va(c,0);b=I(c);if(!a.h||!b)return c["return"]();a.h.onError(b);D(c)})};q.onExpirationUpdated=function(){};
632
632
  function qq(a){var b,c,d,e,f,g,h;return M(function(k){if(1==k.g)return b=ff(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),af(a.A,e),A(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 A(k,sq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
633
633
  function sq(a,b,c){var d,e,f,g,h;return M(function(k){if(1==k.g){d=Uf(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](tq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Yo(d,a.g.retryParameters,f,c,a.h.networkingEngine);af(a.A,g);return A(k,g.promise,2)}h=k.h;return k["return"](tq(a,h,c))})}
634
- function tq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da;return M(function(Qa){switch(Qa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Bf(b,"Location").map(Hf).filter(Fb);0<f.length&&(g=Hb(e,f),e=a.m=g);h=Bf(b,"BaseURL");k=h.map(Hf);l=Hb(e,k);m=0;h&&h.length&&(m=Jf(h[0],"availabilityTimeOffset",Qf)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=Jf(b,"minBufferTime",Lf)||0);a.H=Jf(b,"minimumUpdatePeriod",Lf,-1);t=Jf(b,"availabilityStartTime",Kf);v=Jf(b,
635
- "timeShiftBufferDepth",Lf);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=Jf(b,"suggestedPresentationDelay",Lf));w=a.g.dash.ignoreMaxSegmentDuration;C=null;w||(C=Jf(b,"maxSegmentDuration",Lf));z=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,F=r(Object.values(a.l)),G=F.next();!G.done;G=F.next())H=G.value,H.segmentIndex&&H.segmentIndex.Hb(B.ob());else J=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:J,B=new R(t,K,a.g.dash.autoCorrectDrift);B.Qc("static"==z);(L=B.T())&&
636
- !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);B.Be(v);W=b.getAttribute("profiles")||"";Z={xb:"static"!=z,presentationTimeline:B,sa:null,Y:null,xa:null,L:null,bandwidth:0,lf:!1,Zb:m,profiles:W.split(",")};ka=uq(a,Z,l,b);ja=ka.duration;ea=ka.periods;"static"!=z&&ka.$e||B.cb(ja||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Af(a.C):a.C&&Sa("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.");
637
- B.fe(C||1);return A(Qa,Lp(a.j,ea,Z.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Qa.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0};if(!B.If()){Qa.D(4);break}Ma=Bf(b,"UTCTiming");return A(Qa,vq(a,l,Ma),5);case 5:Da=Qa.h;if(!a.h)return Qa["return"]();B.Bf(Da);case 4:B.ae();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),D(Qa)}})}
638
- function uq(a,b,c,d){var e=Jf(d,"mediaPresentationDuration",Lf),f=[],g=0;d=Bf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Jf(k,"start",Lf,g),n=k.id,p=Jf(k,"duration",Lf),t=null;if(l){var v=Jf(l,"start",Lf);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=wq(a,b,c,{start:m,duration:t,node:k,pf:null==t||!l});f.push(g);b.sa.id&&t&&(a.N[b.sa.id]=t);if(null==t){g=
639
- null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,$e:!1}:{periods:f,duration:g,$e:!0}}
640
- function wq(a,b,c,d){b.sa=xq(d.node,null,c);b.Y=d;b.sa.Zb=b.Zb;b.sa.id||(b.sa.id="__shaka_period_"+d.start);var e=Bf(d.node,"EventStream");c=b.presentationTimeline.ob();e=r(e);for(var f=e.next();!f.done;f=e.next())yq(a,d.start,d.duration,f.value,c);c=Bf(d.node,"AdaptationSet").map(function(m){return zq(a,b,m)}).filter(Fb);if(b.xb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.Zg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
641
- }d=c.filter(function(m){return!m.He});c=c.filter(function(m){return m.He});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.He.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={Wc:h.Wc},l=k.next())h.Wc=l.value,h.Wc.trickModeVideo=e.streams.find(function(m){return function(n){return Ad(m.Wc.codecs)==Ad(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:Aq(d,"audio");g=a.g.disableVideo?[]:Aq(d,"video");f=a.g.disableText?
634
+ function tq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da;return M(function(Ra){switch(Ra.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Bf(b,"Location").map(Hf).filter(Fb);0<f.length&&(g=Hb(e,f),e=a.m=g);h=Bf(b,"BaseURL");k=h.map(Hf);l=Hb(e,k);m=0;h&&h.length&&(m=Jf(h[0],"availabilityTimeOffset",Qf)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=Jf(b,"minBufferTime",Lf)||0);a.H=Jf(b,"minimumUpdatePeriod",Lf,-1);t=Jf(b,"availabilityStartTime",Kf);v=Jf(b,
635
+ "timeShiftBufferDepth",Lf);w=a.g.dash.ignoreSuggestedPresentationDelay;y=null;w||(y=Jf(b,"suggestedPresentationDelay",Lf));x=a.g.dash.ignoreMaxSegmentDuration;C=null;x||(C=Jf(b,"maxSegmentDuration",Lf));z=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,F=r(Object.values(a.l)),G=F.next();!G.done;G=F.next())H=G.value,H.segmentIndex&&H.segmentIndex.Hb(B.pb());else J=a.g.defaultPresentationDelay||1.5*p,K=null!=y?y:J,B=new R(t,K,a.g.dash.autoCorrectDrift);B.Qc("static"==z);(L=B.T())&&
636
+ !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);B.Ce(v);W=b.getAttribute("profiles")||"";Z={mb:"static"!=z,presentationTimeline:B,sa:null,Y:null,xa:null,L:null,bandwidth:0,mf:!1,Zb:m,profiles:W.split(",")};ka=uq(a,Z,l,b);ja=ka.duration;ea=ka.periods;"static"!=z&&ka.bf||B.cb(ja||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Af(a.C):a.C&&Sa("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.");
637
+ B.ge(C||1);return A(Ra,Lp(a.j,ea,Z.mb),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);Ra.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0};if(!B.If()){Ra.D(4);break}Ma=Bf(b,"UTCTiming");return A(Ra,vq(a,l,Ma),5);case 5:Da=Ra.h;if(!a.h)return Ra["return"]();B.Bf(Da);case 4:B.be();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),D(Ra)}})}
638
+ function uq(a,b,c,d){var e=Jf(d,"mediaPresentationDuration",Lf),f=[],g=0;d=Bf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Jf(k,"start",Lf,g),n=k.id,p=Jf(k,"duration",Lf),t=null;if(l){var v=Jf(l,"start",Lf);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=wq(a,b,c,{start:m,duration:t,node:k,Xd:null==t||!l});f.push(g);b.sa.id&&t&&(a.N[b.sa.id]=t);if(null==t){g=
639
+ null;break}g=m+t}}a.K=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,bf:!1}:{periods:f,duration:g,bf:!0}}
640
+ function wq(a,b,c,d){b.sa=xq(d.node,null,c);b.Y=d;b.sa.Zb=b.Zb;b.sa.id||(b.sa.id="__shaka_period_"+d.start);var e=Bf(d.node,"EventStream");c=b.presentationTimeline.pb();e=r(e);for(var f=e.next();!f.done;f=e.next())yq(a,d.start,d.duration,f.value,c);c=Bf(d.node,"AdaptationSet").map(function(m){return zq(a,b,m)}).filter(Fb);if(b.mb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.Zg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
641
+ }d=c.filter(function(m){return!m.Ie});c=c.filter(function(m){return m.Ie});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ie.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={Wc:h.Wc},l=k.next())h.Wc=l.value,h.Wc.trickModeVideo=e.streams.find(function(m){return function(n){return Ad(m.Wc.codecs)==Ad(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:Aq(d,"audio");g=a.g.disableVideo?[]:Aq(d,"video");f=a.g.disableText?
642
642
  []:Aq(d,Mb);c=a.g.disableThumbnails?[]:Aq(d,"image");if(!g.length&&!e.length)throw new P(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.sa.id,Zc:d,Bd:e,textStreams:g,imageStreams:f}}
643
643
  function Aq(a,b){return a.filter(function(c){return c.contentType==b})}
644
644
  function zq(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.xa=xq(c,b.sa,null);var e=!1,f=Bf(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(Fb),h=void 0,k=b.xa.contentType==Mb;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=
645
645
  l}}var n;m=Bf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?n=d(parseInt(p.getAttribute("value"),10)):l=!0}m=Bf(c,"SupplementalProperty");m=r(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),
646
- 10)));m=Bf(c,"Accessibility");var v=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var y=r(t),x=y.next();!x.done;x=y.next()){var w=x.value,C=x=void 0;w.includes("=")?(w=w.split("="),x=w[0].startsWith("CC")?w[0]:"CC"+w[0],C=w[1]||"und"):(x="CC"+p,2==t.length?p+=2:p++,C=w);v.set(x,Qb(C))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
647
- 1,null!=t)for(t=r(t.split(";")),x=t.next();!x.done;x=t.next())x=x.value,w=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],w=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,w=x),v.set(y,Qb(w));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Bf(c,"ContentProtection");var z=Jo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Qb(c.getAttribute("lang")||"und"),F=c.getAttribute("label");(l=Bf(c,"Label"))&&l.length&&
646
+ 10)));m=Bf(c,"Accessibility");var v=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var w=r(t),y=w.next();!y.done;y=w.next()){var x=y.value,C=y=void 0;x.includes("=")?(x=x.split("="),y=x[0].startsWith("CC")?x[0]:"CC"+x[0],C=x[1]||"und"):(y="CC"+p,2==t.length?p+=2:p++,C=x);v.set(y,Qb(C))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
647
+ 1,null!=t)for(t=r(t.split(";")),y=t.next();!y.done;y=t.next())y=y.value,x=w=void 0,y.includes("=")?(y=y.split("="),w="svc"+y[0],x=y[1].split(",")[0].split(":").pop()):(w="svc"+p,p++,x=y),v.set(w,Qb(x));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Bf(c,"ContentProtection");var z=Jo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Qb(c.getAttribute("lang")||"und"),F=c.getAttribute("label");(l=Bf(c,"Label"))&&l.length&&
648
648
  (l=l[0],l.textContent&&(F=l.textContent));l=Bf(c,"Representation");c=l.map(function(G){if(G=Bq(a,b,z,h,B,F,e,g,v,G))G.hdr=G.hdr||n;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.xa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new P(2,4,4003);}if(!b.xa.contentType||"application"==b.xa.contentType)for(b.xa.contentType=Cq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.xa.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
649
- m.value,p=r(z.drmInfos),t=p.next();!t.done;t=p.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(G){return G.getAttribute("id")}).filter(Fb);return{id:b.xa.id||"__fake__"+a.I++,contentType:b.xa.contentType,language:B,Mi:e,streams:c,drmInfos:z.drmInfos,He:f,Zg:k}}
650
- function Bq(a,b,c,d,e,f,g,h,k,l){b.L=xq(l,b.xa,null);a.C=Math.min(a.C,b.L.Zb);if(!Dq(b.L))return null;var m=b.Y.start;b.bandwidth=Jf(l,"bandwidth",Of)||0;var n=b.L.contentType,p=n==Mb||"application"==n;n="image"==n;try{var t=function(H,J,K){return Eq(a,H,J,K)};if(b.L.Oc)var v=kp(b,t);else if(b.L.Db)v=qp(b,a.l);else if(b.L.Pc)v=Dp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Qa,x=b.Y.duration||0;v={ac:function(){return Promise.resolve(oj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
651
- throw H;}t=Bf(l,"ContentProtection");t=Mo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var w=!1;Bf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(w=!0);var C=!1;p&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(n&&((l=Bf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
652
- (z=l.getAttribute("value")),!z))return null;var B;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"))&&(B="PQ");var F=b.L.id?b.sa.id+","+b.L.id:"",G={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,J,K;return M(function(L){if(1==L.g){J=(H=F&&b.xb&&a.l[F])?a.l[F]:G;if(J.segmentIndex)return L.D(0);K=J;return A(L,v.ac(),3)}K.segmentIndex=L.h;D(L)})},closeSegmentIndex:function(){G.segmentIndex&&
653
- (G.segmentIndex.release(),G.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.xa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.L.od,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:w,closedCaptions:k,
654
- hdr:B,tilesLayout:z,matchedStreams:[]};F&&b.xb&&!a.l[F]&&(a.l[F]=G);return G}function pq(a){var b,c;M(function(d){switch(d.g){case 1:return b=0,E(d,2),A(d,qq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=I(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();rq(a,b);D(d)}})}function rq(a,b){0>a.H||a.G.R(Math.max(3,a.H-b,fc(a.J)))}
649
+ m.value,p=r(z.drmInfos),t=p.next();!t.done;t=p.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(G){return G.getAttribute("id")}).filter(Fb);return{id:b.xa.id||"__fake__"+a.I++,contentType:b.xa.contentType,language:B,Mi:e,streams:c,drmInfos:z.drmInfos,Ie:f,Zg:k}}
650
+ function Bq(a,b,c,d,e,f,g,h,k,l){b.L=xq(l,b.xa,null);a.C=Math.min(a.C,b.L.Zb);if(!Dq(b.L))return null;var m=b.Y.start;b.bandwidth=Jf(l,"bandwidth",Of)||0;var n=b.L.contentType,p=n==Mb||"application"==n;n="image"==n;try{var t=function(H,J,K){return Eq(a,H,J,K)};if(b.L.Oc)var v=kp(b,t);else if(b.L.Db)v=qp(b,a.l);else if(b.L.Pc)v=Dp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var w=b.L.Qa,y=b.Y.duration||0;v={ac:function(){return Promise.resolve(oj(m,y,w))}}}}catch(H){if((p||n)&&4002==H.code)return null;
651
+ throw H;}t=Bf(l,"ContentProtection");t=Mo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var x=!1;Bf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(x=!0);var C=!1;p&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(n&&((l=Bf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
652
+ (z=l.getAttribute("value")),!z))return null;var B;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"))&&(B="PQ");var F=b.L.id?b.sa.id+","+b.L.id:"",G={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,J,K;return M(function(L){if(1==L.g){J=(H=F&&b.mb&&a.l[F])?a.l[F]:G;if(J.segmentIndex)return L.D(0);K=J;return A(L,v.ac(),3)}K.segmentIndex=L.h;D(L)})},closeSegmentIndex:function(){G.segmentIndex&&
653
+ (G.segmentIndex.release(),G.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.xa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.L.od,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:x,closedCaptions:k,
654
+ hdr:B,tilesLayout:z,matchedStreams:[]};F&&b.mb&&!a.l[F]&&(a.l[F]=G);return G}function pq(a){var b,c;M(function(d){switch(d.g){case 1:return b=0,E(d,2),A(d,qq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=I(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();rq(a,b);D(d)}})}function rq(a,b){0>a.H||a.G.R(Math.max(3,a.H-b,fc(a.J)))}
655
655
  function xq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,od:null,audioSamplingRate:null,Zb:0};c=c||b.Qa;var d=Bf(a,"BaseURL"),e=d.map(Hf),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=Jf(a,"frameRate",Rf)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Bf(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p=
656
- m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Bf(a,"AudioChannelConfiguration");m=Fq(m)||b.od;p=Jf(a,"audioSamplingRate",Pf)||b.audioSamplingRate;f||(f=Cq(g,h));var t=Af(a,"SegmentBase"),v=Af(a,"SegmentTemplate"),y=t?Jf(t,"availabilityTimeOffset",Qf)||0:0,x=v?Jf(v,"availabilityTimeOffset",Qf)||0:0;d=d&&d.length?Jf(d[0],"availabilityTimeOffset",Qf)||0:0;d=b.Zb+d+y+x;return{Qa:Hb(c,e),Oc:t||b.Oc,Db:Af(a,"SegmentList")||b.Db,Pc:v||b.Pc,width:Jf(a,"width",Pf)||b.width,height:Jf(a,
656
+ m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Bf(a,"AudioChannelConfiguration");m=Fq(m)||b.od;p=Jf(a,"audioSamplingRate",Pf)||b.audioSamplingRate;f||(f=Cq(g,h));var t=Af(a,"SegmentBase"),v=Af(a,"SegmentTemplate"),w=t?Jf(t,"availabilityTimeOffset",Qf)||0:0,y=v?Jf(v,"availabilityTimeOffset",Qf)||0:0;d=d&&d.length?Jf(d[0],"availabilityTimeOffset",Qf)||0:0;d=b.Zb+d+w+y;return{Qa:Hb(c,e),Oc:t||b.Oc,Db:Af(a,"SegmentList")||b.Db,Pc:v||b.Pc,width:Jf(a,"width",Pf)||b.width,height:Jf(a,
657
657
  "height",Pf)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),od:m,audioSamplingRate:p,Zb:d}}
658
658
  function Fq(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=
659
659
  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 Dq(a){var b=a.Oc?1:0;b+=a.Db?1:0;b+=a.Pc?1:0;if(0==b)return a.contentType==Mb||"application"==a.contentType?!0:!1;1!=b&&(a.Oc&&(a.Db=null),a.Pc=null);return!0}
@@ -671,65 +671,65 @@ var Yq="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE E
671
671
  N("shaka.net.DataUriPlugin",$q);$q.parse=ar;cf("data",ar);function cr(){var a=this;this.g=this.i=null;this.wa=1;this.A=new Map;this.C=new Map;this.na=new Set;this.h=new Map;this.j=null;this.N="";this.$=new Vq;this.ma=0;this.F=new Q(function(){dr(a)});this.m=er;this.G=null;this.aa=0;this.I=Infinity;this.Z=this.ba=0;this.H=new $e;this.X=[];this.K=new Map;this.Ca=!1;this.B=new Map;this.S=null;this.va=new Map;this.J=new Map;this.l=!1}q=cr.prototype;q.configure=function(a){this.g=a};
672
672
  q.start=function(a,b){var c=this,d,e;return M(function(f){if(1==f.g)return c.i=b,c.l=b.isLowLatencyMode(),A(f,fr(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,A(f,gr(c,d.data),3);e=c.ma;0<e&&c.F.R(e);return f["return"](c.G)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.H&&(a.push(this.H.destroy()),this.H=null);this.g=this.i=null;this.na.clear();this.G=null;this.h.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
673
673
  q.update=function(){var a=this,b,c,d;return M(function(e){if(1==e.g){if(a.m==er)return e["return"]();b=[];a.S=null;c=Array.from(a.h.values());return c.length?A(e,hr(a,c[0]),2):e.D(2)}for(d=1;d<c.length;d++)b.push(hr(a,c[d]));return A(e,Promise.all(b),0)})};
674
- function hr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v;return M(function(y){if(1==y.g)return c=ir,d=b.Mf,e=new jb(d),a.l&&b.Rf&&nb(e,new pb("_HLS_skip=YES")),A(y,fr(a,e.toString()),2);if(3!=y.g){f=y.h;g=Wq(a.$,f.data,f.uri);if(1!=g.type)throw new P(2,4,4017);h=Nq(g.g,"EXT-X-DEFINE");k=jr(a,h);l=b.stream;return A(y,kr(a,b.zd,g,l.type,l.mimeType,b.ce,k,b.Wf,l.codecs,l.bandwidth),3)}m=y.h;l.segmentIndex.hc(m,a.j.ob());m.length&&(n=Qq(g.g,"EXT-X-MEDIA-SEQUENCE",0),p=b.ce.get(n),l.segmentIndex.Hb(p));t=m[m.length-
675
- 1];if(v=Pq(g.g,"EXT-X-ENDLIST"))lr(a,c.Lf),a.j.cb(t.endTime);D(y)})}q.onExpirationUpdated=function(){};
676
- function gr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da,Qa,cc,Gd;return M(function(gb){switch(gb.g){case 1:c=Wq(a.$,b,a.N);if(0!=c.type)throw new P(2,4,4022);d=Nq(c.g,"EXT-X-DEFINE");mr(a,d);e=Nq(c.g,"EXT-X-MEDIA");f=Nq(c.g,"EXT-X-STREAM-INF");g=Nq(c.g,"EXT-X-IMAGE-STREAM-INF");nr(a,f);h=Nq(c.g,"EXT-X-SESSION-DATA");k=r(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=Jq(m,"DATA-ID"),p=Jq(m,"URI"),t=Jq(m,"LANGUAGE"),v=Jq(m,"VALUE"),y=(new Map).set("id",n),p&&
677
- y.set("uri",Hb([a.N],[p])[0]),t&&y.set("language",t),v&&y.set("value",v),x=new O("sessiondata",y),a.i)a.i.onEvent(x);return A(gb,or(a,e),2);case 2:return pr(a,e),A(gb,qr(a,f),3);case 3:return w=gb.h,A(gb,rr(a,e),4);case 4:return C=gb.h,A(gb,sr(a,g),5);case 5:z=gb.h;if(!a.i)throw new P(2,7,7001);if(a.Ca&&0==w.length)throw new P(2,4,4034);F=B=Infinity;G=r(a.h.values());for(H=G.next();!H.done;H=G.next())J=H.value,B=Math.min(B,J.qf),"text"!=J.stream.type&&(F=Math.min(F,J.Mg-J.qf));a.m!=er?(a.j=new R(0,
678
- a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.Z?a.Z:3*a.aa),a.j.Qc(!1)):(a.j=new R(null,0),a.j.Qc(!0));if(a.m!=er)a.ma=a.I,K=ir,a.m==K.Qe&&(L=a.j.ud,isNaN(a.g.availabilityWindowOverride)||(L=a.g.availabilityWindowOverride),a.j.Be(L));else for(a.j.cb(F),a.j.offset(-B),W=r(a.h.values()),H=W.next();!H.done;H=W.next())Z=H.value,Z.stream.segmentIndex.offset(-B),Z.stream.segmentIndex.yb(0,F);a.X=[];ka=[];ja=r(w);for(ea=ja.next();!ea.done;ea=ja.next())for(Ia=ea.value,Ma=r([Ia.video,Ia.audio]),
679
- Da=Ma.next();!Da.done;Da=Ma.next())(Qa=Da.value)&&ka.push(Qa);return A(gb,Promise.all(ka.map(function(kg){return M(function(Sc){return A(Sc,kg.createSegmentIndex(),0)})})),6);case 6:cc=r(ka);for(Da=cc.next();!Da.done;Da=cc.next())Gd=Da.value,a.X.push(Gd.segmentIndex.O);tr(a);a.j.ae();a.G={presentationTimeline:a.j,variants:w,textStreams:C,imageStreams:z,offlineSessionIds:[],minBufferTime:0};a.i.makeTextStreamsForClosedCaptions(a.G);D(gb)}})}
674
+ function hr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v;return M(function(w){if(1==w.g)return c=ir,d=b.Mf,e=new jb(d),a.l&&b.Rf&&nb(e,new pb("_HLS_skip=YES")),A(w,fr(a,e.toString()),2);if(3!=w.g){f=w.h;g=Wq(a.$,f.data,f.uri);if(1!=g.type)throw new P(2,4,4017);h=Nq(g.g,"EXT-X-DEFINE");k=jr(a,h);l=b.stream;return A(w,kr(a,b.zd,g,l.type,l.mimeType,b.ee,k,b.Wf,l.codecs,l.bandwidth),3)}m=w.h;l.segmentIndex.hc(m,a.j.pb());m.length&&(n=Qq(g.g,"EXT-X-MEDIA-SEQUENCE",0),p=b.ee.get(n),l.segmentIndex.Hb(p));t=m[m.length-
675
+ 1];if(v=Pq(g.g,"EXT-X-ENDLIST"))lr(a,c.Lf),a.j.cb(t.endTime);D(w)})}q.onExpirationUpdated=function(){};
676
+ function gr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da,Ra,cc,Gd;return M(function(gb){switch(gb.g){case 1:c=Wq(a.$,b,a.N);if(0!=c.type)throw new P(2,4,4022);d=Nq(c.g,"EXT-X-DEFINE");mr(a,d);e=Nq(c.g,"EXT-X-MEDIA");f=Nq(c.g,"EXT-X-STREAM-INF");g=Nq(c.g,"EXT-X-IMAGE-STREAM-INF");nr(a,f);h=Nq(c.g,"EXT-X-SESSION-DATA");k=r(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=Jq(m,"DATA-ID"),p=Jq(m,"URI"),t=Jq(m,"LANGUAGE"),v=Jq(m,"VALUE"),w=(new Map).set("id",n),p&&
677
+ w.set("uri",Hb([a.N],[p])[0]),t&&w.set("language",t),v&&w.set("value",v),y=new O("sessiondata",w),a.i)a.i.onEvent(y);return A(gb,or(a,e),2);case 2:return pr(a,e),A(gb,qr(a,f),3);case 3:return x=gb.h,A(gb,rr(a,e),4);case 4:return C=gb.h,A(gb,sr(a,g),5);case 5:z=gb.h;if(!a.i)throw new P(2,7,7001);if(a.Ca&&0==x.length)throw new P(2,4,4034);F=B=Infinity;G=r(a.h.values());for(H=G.next();!H.done;H=G.next())J=H.value,B=Math.min(B,J.qf),"text"!=J.stream.type&&(F=Math.min(F,J.Mg-J.qf));a.m!=er?(a.j=new R(0,
678
+ a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.Z?a.Z:3*a.aa),a.j.Qc(!1)):(a.j=new R(null,0),a.j.Qc(!0));if(a.m!=er)a.ma=a.I,K=ir,a.m==K.Re&&(L=a.j.ud,isNaN(a.g.availabilityWindowOverride)||(L=a.g.availabilityWindowOverride),a.j.Ce(L));else for(a.j.cb(F),a.j.offset(-B),W=r(a.h.values()),H=W.next();!H.done;H=W.next())Z=H.value,Z.stream.segmentIndex.offset(-B),Z.stream.segmentIndex.yb(0,F);a.X=[];ka=[];ja=r(x);for(ea=ja.next();!ea.done;ea=ja.next())for(Ia=ea.value,Ma=r([Ia.video,Ia.audio]),
679
+ Da=Ma.next();!Da.done;Da=Ma.next())(Ra=Da.value)&&ka.push(Ra);return A(gb,Promise.all(ka.map(function(kg){return M(function(Sc){return A(Sc,kg.createSegmentIndex(),0)})})),6);case 6:cc=r(ka);for(Da=cc.next();!Da.done;Da=cc.next())Gd=Da.value,a.X.push(Gd.segmentIndex.O);tr(a);a.j.be();a.G={presentationTimeline:a.j,variants:x,textStreams:C,imageStreams:z,offlineSessionIds:[],minBufferTime:0};a.i.makeTextStreamsForClosedCaptions(a.G);D(gb)}})}
680
680
  function mr(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=Jq(e,"NAME");e=Jq(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}function jr(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=Jq(f,"NAME");var g=Jq(f,"VALUE");f=Jq(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
681
681
  function nr(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=Jq(e,"AUDIO");d=Jq(e,"VIDEO");var g=Jq(e,"SUBTITLES");e=ur(a,e);if(g){var h=Kb(Mb,e);a.B.set(g,h);ic(e,h)}f&&(g=Kb("audio",e),g||(g=a.g.hls.defaultAudioCodec),a.B.set(f,g));d&&(f=Kb("video",e),f||(f=a.g.hls.defaultVideoCodec),a.B.set(d,f))}}
682
- function rr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return M(function(v){if(1==v.g)return c=Oq(b,"SUBTITLES"),d=c.map(function(y){var x,w,C;return M(function(z){if(1==z.g){if(x=a.g.disableText)return z["return"](null);E(z,2);return A(z,vr(a,y),4)}if(2!=z.g)return w=z.h,z["return"](w.stream);C=I(z);if(a.g.hls.ignoreTextStreamFailures)return z["return"](null);throw C;})}),A(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Kq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
683
- r(m),p=n.next();!p.done;p=n.next())t=p.value,t.stream.codecs=l;return v["return"](e.filter(function(y){return y}))})}
682
+ function rr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return M(function(v){if(1==v.g)return c=Oq(b,"SUBTITLES"),d=c.map(function(w){var y,x,C;return M(function(z){if(1==z.g){if(y=a.g.disableText)return z["return"](null);E(z,2);return A(z,vr(a,w),4)}if(2!=z.g)return x=z.h,z["return"](x.stream);C=I(z);if(a.g.hls.ignoreTextStreamFailures)return z["return"](null);throw C;})}),A(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Kq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
683
+ r(m),p=n.next();!p.done;p=n.next())t=p.value,t.stream.codecs=l;return v["return"](e.filter(function(w){return w}))})}
684
684
  function sr(a,b){var c,d;return M(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return M(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l["return"](null);E(l,2);return A(l,wr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=I(l);if(a.g.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),A(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
685
685
  function or(a,b){var c;return M(function(d){if(1==d.g)return b=b.filter(function(e){var f=Jq(e,"URI")||"";return"SUBTITLES"!=Jq(e,"TYPE")&&""!=f}),b.length?A(d,vr(a,b[0]),2):d.D(2);c=b.slice(1).map(function(e){return vr(a,e)});return A(d,Promise.all(c),0)})}
686
- function qr(a,b){var c,d,e;return M(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,v;return M(function(y){if(1==y.g)return h=Jq(g,"FRAME-RATE"),k=Number(Jq(g,"AVERAGE-BANDWIDTH"))||Number(Kq(g,"BANDWIDTH")),l=Jq(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=Jq(g,"VIDEO-RANGE"),A(y,xr(a,g,k),2);if(v=y.h){for(var x=y["return"],w=v.audio,C=v.video,z=r(C),B=z.next();!B.done;B=z.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(p)||
687
- void 0,B.frameRate=Number(h)||void 0,B.hdr=t||void 0;z=a.g.disableAudio;if(!w.length||z)w=[null];z=a.g.disableVideo;if(!C.length||z)C=[null];z=[];w=r(w);for(B=w.next();!B.done;B=w.next()){B=B.value;for(var F=r(C),G=F.next();!G.done;G=F.next()){var H=G.value;G=B?B.stream:null;var J=H?H.stream:null,K=B?B.stream.drmInfos:null,L=H?H.stream.drmInfos:null;H=(H?H.zd:"")+" - "+(B?B.zd:"");G&&J&&K.length&&L.length&&!(0<Fg(K,L).length)||a.na.has(H)||(G={id:a.wa++,language:G?G.language:"und",primary:!!G&&G.primary||
688
- !!J&&J.primary,audio:G,video:J,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},z.push(G),a.na.add(H))}}y=x.call(y,z)}else y=y["return"]([]);return y})}),A(f,Promise.all(c),2);d=f.h;e=d.reduce(Db,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
689
- function xr(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,y,x;return M(function(w){if(1==w.g)return d=Nb,e=ur(a,b),f=Jq(b,"AUDIO"),g=Jq(b,"VIDEO"),k=(h=f||g)&&a.C.has(h)?a.C.get(h):[],l={audio:f?k:[],video:g?k:[]},n=!1,p=Kq(b,"URI"),t=l.audio.find(function(C){return C&&C.zd==p}),v=Kb(d.hb,e),(y=Kb(d.Gb,e))&&!v?m=d.Gb:!k.length&&y&&v?(m=d.hb,e=[[v,y].join()]):l.audio.length&&t?(m=d.Gb,n=!0):m=l.video.length&&!l.audio.length?d.Gb:d.hb,n?w.D(2):A(w,yr(a,b,e,m,c),3);2!=w.g&&(x=w.h);if(x)l[x.stream.type]=[x];else if(null===
690
- x)return w["return"](null);zr(l);return w["return"](l)})}function ur(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);var d=Jq(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=Bd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function Ar(a){a=Jq(a,"LANGUAGE")||"und";return Qb(a)}
686
+ function qr(a,b){var c,d,e;return M(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,v;return M(function(w){if(1==w.g)return h=Jq(g,"FRAME-RATE"),k=Number(Jq(g,"AVERAGE-BANDWIDTH"))||Number(Kq(g,"BANDWIDTH")),l=Jq(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=Jq(g,"VIDEO-RANGE"),A(w,xr(a,g,k),2);if(v=w.h){for(var y=w["return"],x=v.audio,C=v.video,z=r(C),B=z.next();!B.done;B=z.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(p)||
687
+ void 0,B.frameRate=Number(h)||void 0,B.hdr=t||void 0;z=a.g.disableAudio;if(!x.length||z)x=[null];z=a.g.disableVideo;if(!C.length||z)C=[null];z=[];x=r(x);for(B=x.next();!B.done;B=x.next()){B=B.value;for(var F=r(C),G=F.next();!G.done;G=F.next()){var H=G.value;G=B?B.stream:null;var J=H?H.stream:null,K=B?B.stream.drmInfos:null,L=H?H.stream.drmInfos:null;H=(H?H.zd:"")+" - "+(B?B.zd:"");G&&J&&K.length&&L.length&&!(0<Fg(K,L).length)||a.na.has(H)||(G={id:a.wa++,language:G?G.language:"und",primary:!!G&&G.primary||
688
+ !!J&&J.primary,audio:G,video:J,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},z.push(G),a.na.add(H))}}w=y.call(w,z)}else w=w["return"]([]);return w})}),A(f,Promise.all(c),2);d=f.h;e=d.reduce(Db,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
689
+ function xr(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,v,w,y;return M(function(x){if(1==x.g)return d=Nb,e=ur(a,b),f=Jq(b,"AUDIO"),g=Jq(b,"VIDEO"),k=(h=f||g)&&a.C.has(h)?a.C.get(h):[],l={audio:f?k:[],video:g?k:[]},n=!1,p=Kq(b,"URI"),t=l.audio.find(function(C){return C&&C.zd==p}),v=Kb(d.hb,e),(w=Kb(d.Gb,e))&&!v?m=d.Gb:!k.length&&w&&v?(m=d.hb,e=[[v,w].join()]):l.audio.length&&t?(m=d.Gb,n=!0):m=l.video.length&&!l.audio.length?d.Gb:d.hb,n?x.D(2):A(x,yr(a,b,e,m,c),3);2!=x.g&&(y=x.h);if(y)l[y.stream.type]=[y];else if(null===
690
+ y)return x["return"](null);zr(l);return x["return"](l)})}function ur(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);var d=Jq(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=Bd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function Ar(a){a=Jq(a,"LANGUAGE")||"und";return Qb(a)}
691
691
  function zr(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function pr(a,b){var c=Oq(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=Ar(e);var f=Kq(e,"GROUP-ID");e=Kq(e,"INSTREAM-ID");a.K.get(f)||a.K.set(f,new Map);a.K.get(f).set(e,d)}}
692
- function vr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y;return M(function(x){if(1==x.g){c=Kq(b,"GROUP-ID");d="";var w=Kq(b,"TYPE").toLowerCase();"subtitles"==w&&(w=Mb);e=w;e!=Mb&&c&&a.B.has(c)&&(d=a.B.get(c));f=Br(Kq(b,"URI"),a.A);if(a.h.has(f))return x["return"](a.h.get(f));g=Ar(b);h=Jq(b,"NAME");k=Jq(b,"DEFAULT");l="YES"==k;"audio"==e?w=(w=Jq(b,"CHANNELS"))?parseInt(w.split("/")[0],10):null:w=null;m=w;"audio"==e?w=(w=Jq(b,"CHANNELS"))?w.includes("/JOC"):!1:w=!1;n=w;p=Jq(b,"CHARACTERISTICS");t=Jq(b,"FORCED");
693
- v="YES"==t;return A(x,Cr(a,f,d,e,g,l,h,m,null,p,v,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(null==y)return x["return"](null);if(a.h.has(f))return x["return"](a.h.get(f));a.h.set(f,y);return x["return"](y)})}
692
+ function vr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w;return M(function(y){if(1==y.g){c=Kq(b,"GROUP-ID");d="";var x=Kq(b,"TYPE").toLowerCase();"subtitles"==x&&(x=Mb);e=x;e!=Mb&&c&&a.B.has(c)&&(d=a.B.get(c));f=Br(Kq(b,"URI"),a.A);if(a.h.has(f))return y["return"](a.h.get(f));g=Ar(b);h=Jq(b,"NAME");k=Jq(b,"DEFAULT");l="YES"==k;"audio"==e?x=(x=Jq(b,"CHANNELS"))?parseInt(x.split("/")[0],10):null:x=null;m=x;"audio"==e?x=(x=Jq(b,"CHANNELS"))?x.includes("/JOC"):!1:x=!1;n=x;p=Jq(b,"CHARACTERISTICS");t=Jq(b,"FORCED");
693
+ v="YES"==t;return A(y,Cr(a,f,d,e,g,l,h,m,null,p,v,n),2)}w=y.h;a.C.has(c)?a.C.get(c).push(w):a.C.set(c,[w]);if(null==w)return y["return"](null);if(a.h.has(f))return y["return"](a.h.get(f));a.h.set(f,w);return y["return"](w)})}
694
694
  function wr(a,b){var c,d,e,f,g,h,k,l,m,n;return M(function(p){if(1==p.g){c=Br(Kq(b,"URI"),a.A);d=Jq(b,"CODECS","jpeg")||"";if(a.h.has(c))return p["return"](a.h.get(c));e=Ar(b);f=Jq(b,"NAME");g=Jq(b,"CHARACTERISTICS");return A(p,Cr(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(null==h)return p["return"](null);if(a.h.has(c))return p["return"](a.h.get(c));if(k=Jq(b,"RESOLUTION"))if(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=
695
695
  Number(k.split("x")[1])*Number(m.split("x")[1]);if(n=Jq(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return p["return"](h)})}
696
696
  function yr(a,b,c,d,e){var f,g,h,k;return M(function(l){if(1==l.g){f=Br(Kq(b,"URI"),a.A);if(a.h.has(f))return l["return"](a.h.get(f));var m=Jq(b,"CLOSED-CAPTIONS");g="video"==d&&m&&"NONE"!=m?a.K.get(m):null;h=Jb(d,c);return A(l,Cr(a,f,h,d,"und",!1,null,null,g,null,!1,!1,e),2)}k=l.h;if(null==k)return l["return"](null);if(a.h.has(f))return l["return"](a.h.get(f));a.h.set(f,k);return l["return"](k)})}
697
- function Cr(a,b,c,d,e,f,g,h,k,l,m,n,p){var t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da,Qa,cc,Gd,gb,kg,Sc,aj,tp,up,vp,wp,bj,cj,lg,xp,yp,zp,Ap;return M(function(mb){switch(mb.g){case 1:return t=Hb([a.N],[b])[0],A(mb,fr(a,t),2);case 2:v=mb.h;t=v.uri;y=Wq(a.$,v.data,t);if(1!=y.type)throw new P(2,4,4017);x=[];if(y.segments)for(w=r(y.segments),C=w.next();!C.done;C=w.next())z=C.value,B=Nq(z.g,"EXT-X-KEY"),x.push.apply(x,ia(B));F=!1;G=[];H=new Set;J=r(x);for(K=J.next();!K.done;K=J.next())if(L=K.value,
698
- W=Kq(L,"METHOD"),"NONE"!=W){F=!0;if("AES-128"==W)return a.Ca=!0,mb["return"](null);Z=Kq(L,"KEYFORMAT");if(ja=(ka=Dr[Z])?ka(L):null){if(ja.keyIds)for(ea=r(ja.keyIds),Ia=ea.next();!Ia.done;Ia=ea.next())Ma=Ia.value,H.add(Ma);G.push(ja)}}if(F&&!G.length)throw new P(2,4,4026);Da=Nq(y.g,"EXT-X-DEFINE");Qa=jr(a,Da);Er(a,y);return A(mb,Fr(a,d,c,y,Qa),3);case 3:return cc=mb.h,Gr.includes(cc)&&(c=""),Gd=new Map,gb=new Map,kg=a.l,E(mb,4),A(mb,kr(a,b,y,d,cc,Gd,Qa,gb,c,p),6);case 6:Sc=mb.h;va(mb,5);break;case 4:aj=
699
- I(mb);if(4035==aj.code)return Sa("Skipping unsupported HLS stream",cc,b),mb["return"](null);throw aj;case 5:kg!=a.l&&Er(a,y);tp=Sc[0].startTime;up=Sc[Sc.length-1].endTime;vp=new mj(Sc);wp=d==Mb?"subtitle":void 0;bj=[];if(l)for(cj=r(l.split(",")),lg=cj.next();!lg.done;lg=cj.next())xp=lg.value,bj.push(xp);zp=(yp=Pq(y.g,"EXT-X-SERVER-CONTROL"))?null!=yp.getAttribute("CAN-SKIP-UNTIL"):!1;Ap={id:a.wa++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:vp,mimeType:cc,codecs:c,
700
- kind:wp,encrypted:F,drmInfos:G,keyIds:H,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:bj,forced:m,channelsCount:h,audioSamplingRate:null,spatialAudio:n,closedCaptions:k,hdr:void 0,tilesLayout:void 0};return mb["return"]({stream:Ap,zd:b,Mf:t,qf:tp,Mg:up,ce:Gd,Wf:gb,Rf:zp})}})}
697
+ function Cr(a,b,c,d,e,f,g,h,k,l,m,n,p){var t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja,ea,Ia,Ma,Da,Ra,cc,Gd,gb,kg,Sc,aj,tp,up,vp,wp,bj,cj,lg,xp,yp,zp,Ap;return M(function(mb){switch(mb.g){case 1:return t=Hb([a.N],[b])[0],A(mb,fr(a,t),2);case 2:v=mb.h;t=v.uri;w=Wq(a.$,v.data,t);if(1!=w.type)throw new P(2,4,4017);y=[];if(w.segments)for(x=r(w.segments),C=x.next();!C.done;C=x.next())z=C.value,B=Nq(z.g,"EXT-X-KEY"),y.push.apply(y,ia(B));F=!1;G=[];H=new Set;J=r(y);for(K=J.next();!K.done;K=J.next())if(L=K.value,
698
+ W=Kq(L,"METHOD"),"NONE"!=W){F=!0;if("AES-128"==W)return a.Ca=!0,mb["return"](null);Z=Kq(L,"KEYFORMAT");if(ja=(ka=Dr[Z])?ka(L):null){if(ja.keyIds)for(ea=r(ja.keyIds),Ia=ea.next();!Ia.done;Ia=ea.next())Ma=Ia.value,H.add(Ma);G.push(ja)}}if(F&&!G.length)throw new P(2,4,4026);Da=Nq(w.g,"EXT-X-DEFINE");Ra=jr(a,Da);Er(a,w);return A(mb,Fr(a,d,c,w,Ra),3);case 3:return cc=mb.h,Gr.includes(cc)&&(c=""),Gd=new Map,gb=new Map,kg=a.l,E(mb,4),A(mb,kr(a,b,w,d,cc,Gd,Ra,gb,c,p),6);case 6:Sc=mb.h;va(mb,5);break;case 4:aj=
699
+ I(mb);if(4035==aj.code)return Sa("Skipping unsupported HLS stream",cc,b),mb["return"](null);throw aj;case 5:kg!=a.l&&Er(a,w);tp=Sc[0].startTime;up=Sc[Sc.length-1].endTime;vp=new mj(Sc);wp=d==Mb?"subtitle":void 0;bj=[];if(l)for(cj=r(l.split(",")),lg=cj.next();!lg.done;lg=cj.next())xp=lg.value,bj.push(xp);zp=(yp=Pq(w.g,"EXT-X-SERVER-CONTROL"))?null!=yp.getAttribute("CAN-SKIP-UNTIL"):!1;Ap={id:a.wa++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:vp,mimeType:cc,codecs:c,
700
+ kind:wp,encrypted:F,drmInfos:G,keyIds:H,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:bj,forced:m,channelsCount:h,audioSamplingRate:null,spatialAudio:n,closedCaptions:k,hdr:void 0,tilesLayout:void 0};return mb["return"]({stream:Ap,zd:b,Mf:t,qf:tp,Mg:up,ee:Gd,Wf:gb,Rf:zp})}})}
701
701
  function Er(a,b){var c=Pq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Pq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)lr(a,er);else{c?lr(a,Hr):lr(a,Ir);d=Pq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Pq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ba=Number(Kq(c,"PART-TARGET")),a.I=Math.min(a.ba,a.I),c=Pq(b.g,"EXT-X-SERVER-CONTROL"),a.Z=c?Number(Kq(c,"PART-HOLD-BACK")):0):a.I=Math.min(d,a.I);a.aa=Math.max(d,a.aa)}}
702
702
  function Jr(a,b,c,d){c=Pq(c,"EXT-X-MAP");if(!c)return null;var e=Kq(c,"URI");d=Br(Hb([b],[e])[0],d);b=[d,Jq(c,"BYTERANGE","")].join("-");a.va.has(b)||(c=Kr(d,c),a.va.set(b,c));return a.va.get(b)}function Kr(a,b){var c=0,d=null,e=Jq(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new Li(function(){return[a]},c,d)}
703
- function Lr(a,b,c,d,e,f,g,h,k){var l=d.g,m=Br(d.h,g),n=Pq(l,"EXTINF"),p=g=0,t=null;if(!n){if(0==d.i.length)throw new P(2,4,4024,"EXTINF");if(!a.l)return null}var v=[];if(a.l)for(var y={},x=0;x<d.i.length;y={Jd:y.Jd},x++){var w=d.i[x],C=0==x?c:v[v.length-1],z=0==x?e:C.endTime,B=Number(Jq(w,"DURATION"))||a.ba;if(B){B=z+B;var F=0,G=null;"EXT-X-PRELOAD-HINT"==w.name?F=(C=Jq(w,"BYTERANGE-START"))?Number(C):0:(F=Jq(w,"BYTERANGE"),C=r(Mr(C,F)),F=C.next().value,G=C.next().value);if(w=Jq(w,"URI"))y.Jd=Hb([h],
704
- [w])[0],v.push(new Ni(z,B,function(H){return function(){return[H.Jd]}}(y),F,G,b,f,0,Infinity))}}n?g=e+Number(n.value.split(",")[0]):g=v[v.length-1].endTime;(a=Pq(l,"EXT-X-BYTERANGE"))?(t=r(Mr(c,a.value)),p=t.next().value,t=t.next().value):v.length&&(p=v[0].Ha,t=v[v.length-1].ya);c="";a=null;"image"==k&&(c="1x1",k=Pq(l,"EXT-X-TILES"))&&(c=Kq(k,"LAYOUT"),(k=Jq(k,"DURATION"))&&(a=Number(k)));return new Ni(e,g,function(){return m.length?[m]:[]},p,t,b,f,0,Infinity,v,c,a)}
703
+ function Lr(a,b,c,d,e,f,g,h,k){var l=d.g,m=Br(d.h,g),n=Pq(l,"EXTINF"),p=g=0,t=null;if(!n){if(0==d.i.length)throw new P(2,4,4024,"EXTINF");if(!a.l)return null}var v=[];if(a.l)for(var w={},y=0;y<d.i.length;w={Jd:w.Jd},y++){var x=d.i[y],C=0==y?c:v[v.length-1],z=0==y?e:C.endTime,B=Number(Jq(x,"DURATION"))||a.ba;if(B){B=z+B;var F=0,G=null;"EXT-X-PRELOAD-HINT"==x.name?F=(C=Jq(x,"BYTERANGE-START"))?Number(C):0:(F=Jq(x,"BYTERANGE"),C=r(Mr(C,F)),F=C.next().value,G=C.next().value);if(x=Jq(x,"URI"))w.Jd=Hb([h],
704
+ [x])[0],v.push(new Ni(z,B,function(H){return function(){return[H.Jd]}}(w),F,G,b,f,0,Infinity))}}n?g=e+Number(n.value.split(",")[0]):g=v[v.length-1].endTime;(a=Pq(l,"EXT-X-BYTERANGE"))?(t=r(Mr(c,a.value)),p=t.next().value,t=t.next().value):v.length&&(p=v[0].Ha,t=v[v.length-1].ya);c="";a=null;"image"==k&&(c="1x1",k=Pq(l,"EXT-X-TILES"))&&(c=Kq(k,"LAYOUT"),(k=Jq(k,"DURATION"))&&(a=Number(k)));return new Ni(e,g,function(){return m.length?[m]:[]},p,t,b,f,0,Infinity,v,c,a)}
705
705
  function Mr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.ya+1,d=c+d-1);return[c,d]}function tr(a){if(a.j){for(var b=r(a.X),c=b.next();!c.done;c=b.next())a.j.ic(c.value);a.X=[]}}
706
- function kr(a,b,c,d,e,f,g,h,k,l){var m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja;return M(function(ea){switch(ea.g){case 1:m=c.segments;p=Qq(c.g,"EXT-X-MEDIA-SEQUENCE",0);v=(t=Pq(c.g,"EXT-X-SKIP"))?Number(Jq(t,"SKIPPED-SEGMENTS")):0;y=p+v;if(a.m!=er&&f.has(y)){x=f.get(y);ea.D(2);break}if(null!=a.S){ea.D(3);break}n=Jr(a,c.h,m[0].g,g);w=a;return A(ea,Nr(a,b,n,e,y,!1,m[0],g,d,k,l),4);case 4:w.S=ea.h;case 3:x=a.S;case 2:C=m[0].h;C.split("/").pop();z=Qq(c.g,"EXT-X-DISCONTINUITY-SEQUENCE");if(a.l&&(h.has(z)||
707
- h.set(z,y),v))for(B=h;B.has(z+1)&&B.get(z+1)<y;)z++;F=a.J.get(z)||0;G=[];H=0;case 5:if(!(H<m.length)){ea.D(7);break}J=m[H];K=G[G.length-1];L=0==H?x:K.endTime;y=p+v+H;f.set(y,L);n=Jr(a,c.h,J.g,g);W=Pq(J.g,"EXT-X-DISCONTINUITY");if(!W){ea.D(8);break}z++;h.set(z,y);return A(ea,Or(a,z,b,n,e,y,J,g,L,d,k,l),9);case 9:F=ea.h;case 8:!a.l&&(Z=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());ka=Pq(J.g,"EXTINF");a.l||ka?(ja=Lr(a,n,K,J,L,F,g,c.h,d))&&G.push(ja):a.l||Sa("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.");
706
+ function kr(a,b,c,d,e,f,g,h,k,l){var m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja;return M(function(ea){switch(ea.g){case 1:m=c.segments;p=Qq(c.g,"EXT-X-MEDIA-SEQUENCE",0);v=(t=Pq(c.g,"EXT-X-SKIP"))?Number(Jq(t,"SKIPPED-SEGMENTS")):0;w=p+v;if(a.m!=er&&f.has(w)){y=f.get(w);ea.D(2);break}if(null!=a.S){ea.D(3);break}n=Jr(a,c.h,m[0].g,g);x=a;return A(ea,Nr(a,b,n,e,w,!1,m[0],g,d,k,l),4);case 4:x.S=ea.h;case 3:y=a.S;case 2:C=m[0].h;C.split("/").pop();z=Qq(c.g,"EXT-X-DISCONTINUITY-SEQUENCE");if(a.l&&(h.has(z)||
707
+ h.set(z,w),v))for(B=h;B.has(z+1)&&B.get(z+1)<w;)z++;F=a.J.get(z)||0;G=[];H=0;case 5:if(!(H<m.length)){ea.D(7);break}J=m[H];K=G[G.length-1];L=0==H?y:K.endTime;w=p+v+H;f.set(w,L);n=Jr(a,c.h,J.g,g);W=Pq(J.g,"EXT-X-DISCONTINUITY");if(!W){ea.D(8);break}z++;h.set(z,w);return A(ea,Or(a,z,b,n,e,w,J,g,L,d,k,l),9);case 9:F=ea.h;case 8:!a.l&&(Z=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());ka=Pq(J.g,"EXTINF");a.l||ka?(ja=Lr(a,n,K,J,L,F,g,c.h,d))&&G.push(ja):a.l||Sa("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.");
708
708
  H++;ea.D(5);break;case 7:return ea["return"](G)}})}function Or(a,b,c,d,e,f,g,h,k,l,m,n){var p,t;return M(function(v){if(1==v.g)return p=0,a.J.has(b)?(p=a.J.get(b),v.D(2)):A(v,Nr(a,c,d,e,f,!0,g,h,l,m,n),3);2!=v.g&&(t=v.h,p=k-t,a.J.set(b,p));return v["return"](p)})}
709
709
  function Pr(a,b,c,d,e,f){var g,h,k,l,m,n;return M(function(p){switch(p.g){case 1:g=mf;h=Ej(b.Ka(),b.Ha,b.ya,a.g.retryParameters);a.i.modifySegmentRequest(h,{type:c,init:b instanceof Li,duration:b.endTime-b.startTime,mimeType:d,codecs:e,bandwidth:f});if(a.g.hls.useFullSegmentsForStartTime)return p["return"](Qr(a,h,g));k=Ej(b.Ka(),b.Ha,b.Ha+2048-1,a.g.retryParameters);a.i.modifySegmentRequest(k,{type:c,init:b instanceof Li,duration:b.endTime-b.startTime,mimeType:d,codecs:e,bandwidth:f});E(p,2);return A(p,
710
710
  Qr(a,k,g),4);case 4:return l=p.h,p["return"](l);case 2:m=I(p);if(7001==m.code)throw m;Sa("Unable to fetch the starting part of HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",k.uris[0]);return A(p,Qr(a,h,g),5);case 5:return n=p.h,p["return"](n)}})}
711
- function Nr(a,b,c,d,e,f,g,h,k,l,m){var n,p,t,v,y,x,w,C;return M(function(z){switch(z.g){case 1:n=Lr(a,c,null,g,0,0,h,"",k);if(a.G&&!f&&(p=a.h.get(b),t=p.ce.get(e),void 0!=t))return z["return"](t);d=d.toLowerCase();if(Gr.includes(d))throw Sa("Raw formats are not yet supported. Skipping "+d),new P(1,4,4035);if("video/webm"==d)throw Sa("WebM in HLS is not yet supported. Skipping."),new P(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){z.D(2);break}v=[Pr(a,n,k,d,l,m)];c&&v.push(Pr(a,c,k,d,l,m));return A(z,
712
- Promise.all(v),3);case 3:return y=z.h,x=y[0],w=y[1]||y[0],z["return"](Rr(b,x.uri,x.data,w.data));case 2:if("video/mp2t"!=d){z.D(4);break}return A(z,Pr(a,n,k,d,l,m),5);case 5:return C=z.h,z["return"](Sr(b,C.uri,C.data));case 4:throw new P(2,4,4030,b);}})}
711
+ function Nr(a,b,c,d,e,f,g,h,k,l,m){var n,p,t,v,w,y,x,C;return M(function(z){switch(z.g){case 1:n=Lr(a,c,null,g,0,0,h,"",k);if(a.G&&!f&&(p=a.h.get(b),t=p.ee.get(e),void 0!=t))return z["return"](t);d=d.toLowerCase();if(Gr.includes(d))throw Sa("Raw formats are not yet supported. Skipping "+d),new P(1,4,4035);if("video/webm"==d)throw Sa("WebM in HLS is not yet supported. Skipping."),new P(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){z.D(2);break}v=[Pr(a,n,k,d,l,m)];c&&v.push(Pr(a,c,k,d,l,m));return A(z,
712
+ Promise.all(v),3);case 3:return w=z.h,y=w[0],x=w[1]||w[0],z["return"](Rr(b,y.uri,y.data,x.data));case 2:if("video/mp2t"!=d){z.D(4);break}return A(z,Pr(a,n,k,d,l,m),5);case 5:return C=z.h,z["return"](Sr(b,C.uri,C.data));case 4:throw new P(2,4,4030,b);}})}
713
713
  function Rr(a,b,c,d){var e=0;(new Qg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).V("mdhd",function(h){e=gi(h.reader,h.version).timescale;h.parser.stop()}).parse(d,!0);if(!e)throw new P(2,4,4030,a,b);var f=0,g=!1;(new Qg).box("moof",Ug).box("traf",Ug).V("tfdt",function(h){f=fi(h.reader,h.version).Ud/e;g=!0;h.parser.stop()}).parse(c,!0);if(!g)throw new P(2,4,4030,a,b);return f}
714
714
  function Sr(a,b,c){function d(){f.seek(g+188);h=f.ka();71!=h&&(f.seek(g+192),h=f.ka());71!=h&&(f.seek(g+204),h=f.ka());71!=h&&e();f.xf(1)}function e(){throw new P(2,4,4030,a,b);}var f=new Ng(c,0),g=0,h=0;for(c=Math.min(f.U.byteLength-188,940);;){g=f.ia();h=f.ka();if(71!=h){if(0<c){--c;continue}e()}c=0;var k=f.lc();if(8191==(k&8191))d();else if(k&16384)if(k=(f.ka()&48)>>4,0!=k&&2!=k||e(),3==k&&(k=f.ka(),f.skip(k)),1!=f.P()>>8)d();else{f.skip(3);c=f.ka()>>6;0!=c&&1!=c||e();0==f.ka()&&e();c=f.ka();k=
715
715
  f.lc();var l=f.lc();return(1073741824*((c&14)>>1)+((k&65534)<<14|(l&65534)>>1))/9E4}else d()}}function Br(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new P(2,4,4039,f);}}return c}
716
- function Fr(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,y;return M(function(x){if(1==x.g){f=Nb;g=mf;h=Br(d.segments[0].h,e);k=new jb(h);l=k.Oa.split(".").pop();m=Tr[b];if(n=m[l])return x["return"](n);if(b==f.oa)return c&&"vtt"!=c&&"wvtt"!=c?x["return"]("application/mp4"):x["return"]("text/vtt");if(b==f.xc&&(!c||"jpeg"==c))return x["return"]("image/jpeg");p=ff([h],a.g.retryParameters);p.method="HEAD";return A(x,Qr(a,p,g),2)}t=x.h;v=t.headers["content-type"];return v?x["return"](v.split(";")[0]):(y=m.mp4,x["return"](y))})}
716
+ function Fr(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,v,w;return M(function(y){if(1==y.g){f=Nb;g=mf;h=Br(d.segments[0].h,e);k=new jb(h);l=k.Oa.split(".").pop();m=Tr[b];if(n=m[l])return y["return"](n);if(b==f.oa)return c&&"vtt"!=c&&"wvtt"!=c?y["return"]("application/mp4"):y["return"]("text/vtt");if(b==f.xc&&(!c||"jpeg"==c))return y["return"]("image/jpeg");p=ff([h],a.g.retryParameters);p.method="HEAD";return A(y,Qr(a,p,g),2)}t=y.h;v=t.headers["content-type"];return v?y["return"](v.split(";")[0]):(w=m.mp4,y["return"](w))})}
717
717
  function fr(a,b){var c=ff([b],a.g.retryParameters);a.i.modifyManifestRequest(c,{format:"h"});return Qr(a,c,0)}function dr(a){var b,c;M(function(d){if(1==d.g){if(!a.i)return d["return"]();E(d,2);return A(d,a.update(),4)}if(2!=d.g)return b=a.ma,a.F.R(b),va(d,0);c=I(d);if(!a.i)return d["return"]();c.severity=1;a.i.onError(c);a.F.R(.1);D(d)})}function lr(a,b){a.m=b;a.j&&a.j.Qc(a.m==er);a.m!=er||a.F.stop()}
718
718
  function Qr(a,b,c){if(!a.H)throw new P(2,7,7001);b=a.i.networkingEngine.request(c,b);af(a.H,b);return b.promise}N("shaka.hls.HlsParser",cr);
719
719
  var Gr=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],Tr={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
720
- vtt:"text/vtt",webvtt:"txt/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Dr={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Kq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Kq(a,"URI");b=br(b);b=Ic(b.data);b=Ib("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Jq(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=
721
- Kq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Kq(a,"URI");a=br(a);a=Ic(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Ho(a,b);return Ib("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},er="VOD",Ir="EVENT",Hr="LIVE",ir={Lf:er,Gh:Ir,Qe:Hr};Lg.m3u8=function(){return new cr};Jg["application/x-mpegurl"]=function(){return new cr};Jg["application/vnd.apple.mpegurl"]=function(){return new cr};function Ur(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,uf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=jd(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Vr(){}function Wr(a,b,c,d,e){var f=new Xr;xf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Yr,h={Te:!1,Hf:!1};a=Zr(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 Re(a,function(){h.Te=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Q(function(){h.Hf=!0;g.abort()});k.R(b/1E3);a["finally"](function(){k.stop()})}return a}
722
- function Zr(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,v,y,x,w,C,z;return M(function(B){switch(B.g){case 1:return h=$r,k=as,p=n=0,t=Date.now(),E(B,2),A(B,h(a,c),4);case 4:return l=B.h,f(bs(l.headers)),v=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,w=function(F){function G(){var H,J;return M(function(K){switch(K.g){case 1:return E(K,2),A(K,v.read(),4);case 4:H=K.h;va(K,3);break;case 2:return I(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
723
- break}return A(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,n-p,x-n),p=n,t=J;H.done?F.close():(F.enqueue(H.value),G());D(K)}})}G()},new k({start:w}),A(B,l.arrayBuffer(),5);case 5:m=B.h;va(B,3);break;case 2:C=I(B);if(d.Te)throw new P(1,1,7001,a,b);if(d.Hf)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,C,b);case 3:return z=bs(l.headers),B["return"](Ur(z,m,l.status,a,l.url,b))}})}function bs(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
720
+ vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Dr={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Kq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Kq(a,"URI");b=br(b);b=Ic(b.data);b=Ib("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Jq(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=
721
+ Kq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Kq(a,"URI");a=br(a);a=Ic(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Ho(a,b);return Ib("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},er="VOD",Ir="EVENT",Hr="LIVE",ir={Lf:er,Gh:Ir,Re:Hr};Lg.m3u8=function(){return new cr};Jg["application/x-mpegurl"]=function(){return new cr};Jg["application/vnd.apple.mpegurl"]=function(){return new cr};function Ur(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,uf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=jd(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Vr(){}function Wr(a,b,c,d,e){var f=new Xr;xf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Yr,h={Ue:!1,Hf:!1};a=Zr(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 Re(a,function(){h.Ue=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Q(function(){h.Hf=!0;g.abort()});k.R(b/1E3);a["finally"](function(){k.stop()})}return a}
722
+ function Zr(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,v,w,y,x,C,z;return M(function(B){switch(B.g){case 1:return h=$r,k=as,p=n=0,t=Date.now(),E(B,2),A(B,h(a,c),4);case 4:return l=B.h,f(bs(l.headers)),v=l.clone().body.getReader(),y=(w=l.headers.get("Content-Length"))?parseInt(w,10):0,x=function(F){function G(){var H,J;return M(function(K){switch(K.g){case 1:return E(K,2),A(K,v.read(),4);case 4:H=K.h;va(K,3);break;case 2:return I(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
723
+ break}return A(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,n-p,y-n),p=n,t=J;H.done?F.close():(F.enqueue(H.value),G());D(K)}})}G()},new k({start:x}),A(B,l.arrayBuffer(),5);case 5:m=B.h;va(B,3);break;case 2:C=I(B);if(d.Ue)throw new P(1,1,7001,a,b);if(d.Hf)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,C,b);case 3:return z=bs(l.headers),B["return"](Ur(z,m,l.status,a,l.url,b))}})}function bs(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
724
724
  function cs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}N("shaka.net.HttpFetchPlugin",Vr);Vr.isSupported=cs;Vr.parse=Wr;var $r=window.fetch,Yr=window.AbortController,as=window.ReadableStream,Xr=window.Headers;cs()&&(cf("http",Wr,2,!0),cf("https",Wr,2,!0),cf("blob",Wr,2,!0));function ds(){}
725
- function es(a,b,c,d,e){var f=new fs,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var t=gs(f);e(t);n=!0}};f.onload=function(){var t=gs(f),v=f.response;try{var y=Ur(t,v,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(t){m(new P(1,1,1002,a,t,
725
+ function es(a,b,c,d,e){var f=new fs,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var t=gs(f);e(t);n=!0}};f.onload=function(){var t=gs(f),v=f.response;try{var w=Ur(t,v,f.status,a,f.responseURL,c);l(w)}catch(y){m(y)}};f.onerror=function(t){m(new P(1,1,1002,a,t,
726
726
  c))};f.ontimeout=function(){m(new P(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 p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new Re(k,function(){f.abort();return Promise.resolve()})}
727
727
  function gs(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}N("shaka.net.HttpXHRPlugin",ds);ds.parse=es;var fs=window.XMLHttpRequest;cf("http",es,1,!0);cf("https",es,1,!0);cf("blob",es,1,!0);function hs(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function is(a){return a.Ka().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ha+":"+a.ya}function js(a,b){return Ej(a.g.Ka(),a.g.Ha,a.g.ya,b.streaming.retryParameters)};function ks(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function ls(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}ks.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 ms(a){var b=this;this.A=a;this.j=new Map;this.i=new nf(function(){return ns(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new ks}ms.prototype.destroy=function(){return this.i.destroy()};function os(a,b,c){a.m=b;a.l=c}function ns(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
728
- function ps(a,b,c,d,e,f){of(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return M(function(v){if(1==v.g)return A(v,qs(a,c),2);h=v.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=Ic(h),l=new Go(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.l(p,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 rs(a){return M(function(b){return 1==b.g?A(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
728
+ function ps(a,b,c,d,e,f){of(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return M(function(v){if(1==v.g)return A(v,qs(a,c),2);h=v.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=Ic(h),l=new Go(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.l(p,t);a.g.close(d,h.byteLength);var w=a.g;a.m(0==w.i?0:w.j/w.i,a.g.h);return v["return"](f(h))})});a.j.set(b,g)}function rs(a){return M(function(b){return 1==b.g?A(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
729
729
  function qs(a,b){var c,d,e,f;return M(function(g){if(1==g.g)return c=mf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),A(g,d.promise,2);f=g.h;ic(a.h,e);return g["return"](f.data)})};function ss(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Pc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}ss.prototype.abort=function(){var a=this;return M(function(b){if(1==b.g){try{a.i.abort()}catch(c){}E(b,2);return A(b,a.g,4)}if(2!=b.g)return va(b,0);I(b);D(b)})};
730
- function ts(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return M(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return A(g,b(f.key,f.value,f),2)}f["continue"]();D(g)})}})}ss.prototype.store=function(){return this.h};ss.prototype.promise=function(){return this.g};function us(a){this.h=a;this.g=[]}us.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function vs(a,b){return ws(a,b,"readwrite")}function ws(a,b,c){c=a.h.transaction([b],c);var d=new ss(c,b);a.g.push(d);d.promise().then(function(){ic(a.g,d)},function(){ic(a.g,d)});return d};function xs(a,b,c){this.h=new us(a);this.i=b;this.g=c}q=xs.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return ys(this.i)};q.removeSegments=function(a,b){return zs(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return M(function(d){if(1==d.g)return A(d,As(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.We(e)}))})};q.addManifests=function(){return ys(this.g)};
730
+ function ts(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return M(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return A(g,b(f.key,f.value,f),2)}f["continue"]();D(g)})}})}ss.prototype.store=function(){return this.h};ss.prototype.promise=function(){return this.g};function us(a){this.h=a;this.g=[]}us.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function vs(a,b){return ws(a,b,"readwrite")}function ws(a,b,c){c=a.h.transaction([b],c);var d=new ss(c,b);a.g.push(d);d.promise().then(function(){ic(a.g,d)},function(){ic(a.g,d)});return d};function xs(a,b,c){this.h=new us(a);this.i=b;this.g=c}q=xs.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return ys(this.i)};q.removeSegments=function(a,b){return zs(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return M(function(d){if(1==d.g)return A(d,As(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.Xe(e)}))})};q.addManifests=function(){return ys(this.g)};
731
731
  q.updateManifest=function(){return Promise.reject(new P(2,9,9016,"Cannot modify values in "+this.g))};function Bs(a,b,c){a=vs(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=vs(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 zs(this,this.g,a,b)};
732
- q.getManifests=function(a){var b=this,c;return M(function(d){if(1==d.g)return A(d,As(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Ac(e)})))})};q.getAllManifests=function(){var a=this,b,c;return M(function(d){return 1==d.g?(b=ws(a.h,a.g,"readonly"),c=new Map,A(d,ts(b,function(e,f){var g;return M(function(h){if(1==h.g)return A(h,a.Ac(f),2);g=h.h;c.set(e,g);D(h)})}),2)):3!=d.g?A(d,b.promise(),3):d["return"](c)})};q.We=function(a){return a};q.Ac=function(a){return Promise.resolve(a)};
732
+ q.getManifests=function(a){var b=this,c;return M(function(d){if(1==d.g)return A(d,As(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Ac(e)})))})};q.getAllManifests=function(){var a=this,b,c;return M(function(d){return 1==d.g?(b=ws(a.h,a.g,"readonly"),c=new Map,A(d,ts(b,function(e,f){var g;return M(function(h){if(1==h.g)return A(h,a.Ac(f),2);g=h.h;c.set(e,g);D(h)})}),2)):3!=d.g?A(d,b.promise(),3):d["return"](c)})};q.Xe=function(a){return a};q.Ac=function(a){return Promise.resolve(a)};
733
733
  function ys(a){return Promise.reject(new P(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return M(function(m){if(1==m.g){d=vs(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Vc:g.Vc},k=h.next())l=k.value,g.Vc=e.add(l),g.Vc.onsuccess=function(n){return function(){f.push(n.Vc.result)}}(g);return A(m,d.promise(),2)}return m["return"](f)})};
734
734
  function zs(a,b,c,d){a=vs(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Uc:e.Uc},f=c.next())e.Uc=f.value,b["delete"](e.Uc).onsuccess=function(g){return function(){return d(g.Uc)}}(e);return a.promise()}
735
735
  function As(a,b,c){var d,e,f,g,h,k,l;return M(function(m){if(1==m.g){d=ws(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={vc:h.vc,rc:h.rc},l=k.next())h.rc=l.value,h.vc=e.get(h.rc),h.vc.onsuccess=function(n){return function(){void 0==n.vc.result&&g.push(n.rc);f[n.rc]=n.vc.result}}(h);return A(m,d.promise(),2)}if(g.length)throw new P(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function Cs(a){this.g=new us(a)}Cs.prototype.destroy=function(){return this.g.destroy()};Cs.prototype.getAll=function(){var a=this,b,c;return M(function(d){return 1==d.g?(b=ws(a.g,"session-ids","readonly"),c=[],A(d,ts(b,function(e,f){c.push(f)}),2)):3!=d.g?A(d,b.promise(),3):d["return"](c)})};Cs.prototype.add=function(a){var b=vs(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()};
@@ -740,7 +740,7 @@ function Ks(a){var b,c,d;return M(function(e){return 1==e.g?(b=Array.from(a.g.va
740
740
  Ms.prototype.Ac=function(a){var b,c,d,e,f,g;return M(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=Ns(a.periods[c],e),b.push(f);return A(h,Up(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})})};
741
741
  function Ns(a,b){Os(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Ps(e,a.startTime,b)})}
742
742
  function Ps(a,b,c){var d=a.initSegmentUri?Qs(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=Qs(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
743
- 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}}Ms.prototype.We=function(a){return{data:a.data}};function Qs(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new P(2,9,9004,"Could not parse uri "+a);}
743
+ 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}}Ms.prototype.Xe=function(a){return{data:a.data}};function Qs(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new P(2,9,9004,"Could not parse uri "+a);}
744
744
  function Os(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++,
745
745
  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 Rs(){xs.apply(this,arguments)}u(Rs,xs);
746
746
  Rs.prototype.Ac=function(a){var b,c,d,e,f,g;return M(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),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Ss(n,k.startTime,k.startTime+e));f=l;b.push(f)}return A(h,Up(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
@@ -764,7 +764,7 @@ function ct(a,b){var c=new Ws("segment",a.h,a.g,b);return new Li(function(){retu
764
764
  q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return M(function(m){switch(m.g){case 1:d=Xs(a);c.g=d;if(null==d||"manifest"!=d.g)throw new P(2,1,9004,a);e=new Ds;ua(m);return A(m,e.init(),4);case 4:return A(m,Hs(e,d.Ta(),d.Da()),5);case 5:return f=m.h,A(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Ys(d.Ta(),d.Da()),l=Zs(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),A(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
765
765
  q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return M(function(m){switch(m.g){case 1:return d=c.g,e=new Ds,E(m,2,3),A(m,e.init(),5);case 5:return A(m,Hs(e,d.Ta(),d.Da()),6);case 6:return f=m.h,A(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 A(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),A(m,e.destroy(),10);case 10:xa(m,0);break;case 2:I(m),m.D(3)}})};
766
766
  Jg["application/x-offline-manifest"]=function(){return new dt};function et(){}function ft(a){var b=Xs(a);b&&"manifest"==b.g?(a={uri:a,uf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Ue(a)):a=b&&"segment"==b.g?gt(b.key(),b):Se(new P(2,1,9004,a));return a}
767
- function gt(a,b){var c=new Ds;return Ue(void 0).qa(function(){return c.init()}).qa(function(){return Hs(c,b.Ta(),b.Da())}).qa(function(d){return d.getSegments([b.key()])}).qa(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}N("shaka.offline.OfflineScheme",et);et.plugin=ft;cf("offline",ft);function ht(a,b,c){var d,e,f,g,h,k;return M(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,v=r(m),y=v.next();!y.done;y=v.next())if(y=y.value,it(y.info,p)){y.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=jt(a,b,g);return A(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)}})}
767
+ function gt(a,b){var c=new Ds;return Ue(void 0).qa(function(){return c.init()}).qa(function(){return Hs(c,b.Ta(),b.Da())}).qa(function(d){return d.getSegments([b.key()])}).qa(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}N("shaka.offline.OfflineScheme",et);et.plugin=ft;cf("offline",ft);function ht(a,b,c){var d,e,f,g,h,k;return M(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,v=r(m),w=v.next();!w.done;w=v.next())if(w=w.value,it(w.info,p)){w.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=jt(a,b,g);return A(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)}})}
768
768
  function jt(a,b,c){var d,e;return M(function(f){switch(f.g){case 1:return d=new Vf({Qb:b,onError:function(){},rd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),E(f,2),d.configure(a),A(f,cg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return I(f),A(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return E(f,6),A(f,ng(d),8);case 8:va(f,7);break;case 6:return I(f),A(f,d.destroy(),
769
769
  9);case 9:return f["return"]([]);case 7:return e=[],A(f,Promise.all(c.sessionIds.map(function(g){return M(function(h){if(1==h.g)return E(h,2),A(h,og(d,g),4);if(2!=h.g)return e.push(g),va(h,0);I(h);D(h)})})),10);case 10:return A(f,d.destroy(),11);case 11:return f["return"](e)}})}
770
770
  function it(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&jc(a.audioCapabilities,b.audioCapabilities,c)&&jc(a.videoCapabilities,b.videoCapabilities,c)};function kt(a,b,c){var d=b.presentationTimeline.getDuration();b=lt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function mt(a,b){var c=Zs(new Ys(a.Ta(),a.Da()),b),d=b.appMetadata||{};c=lt(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}}
@@ -773,18 +773,18 @@ case 4:b.h=null,b.g=null,D(k)}})})}function st(){if(Tc())a:{var a=r(Es.values())
773
773
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=al(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(zb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);return fl(this.h,a)};q.getConfiguration=function(){var a=dl();fl(a,this.h,dl());return a};q.Ec=function(){return this.g};
774
774
  q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new ms(this.g);this.j.push(f);b=tt(this,a,b||{},function(){var h;return M(function(k){if(1==k.g)return A(k,Ig(a,d.g,e.manifest.retryParameters,c||null),2);h=k.h;return k["return"](Gb(h))})},e,f);var g=new Re(b,function(){return ns(f)});g["finally"](function(){ic(d.j,f)});g.then=function(h){zb("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead.");
775
775
  return g.promise.then(h)};return ut(this,g)};q.xg=function(){zb("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported.");return!1};
776
- function tt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,y,x,w,C,z;return M(function(B){switch(B.g){case 1:return vt(),h=g=null,k=new Ds,n=m=l=null,E(B,2,3),A(B,d(),5);case 5:return g=B.h,A(B,wt(a,b,g,e),6);case 6:p=B.h;xt(a);t=!p.presentationTimeline.T()&&!p.presentationTimeline.Nb();if(!t)throw new P(2,9,9005,b);return A(B,yt(a,p,function(F){n=n||F},e),7);case 7:h=B.h;xt(a);if(n)throw n;return A(B,zt(p,e),8);case 8:return A(B,k.init(),9);case 9:return xt(a),A(B,Fs(k),10);case 10:return l=B.h,xt(a),v=At(h,
777
- p,b,c,e,f),y=v.Kg,x=v.Fe,A(B,l.Da.addManifests([y]),11);case 11:w=B.h;xt(a);m=w[0];xt(a);if(n)throw n;return A(B,Bt(a,x,m,y,f,e,l.Da,p,h),12);case 12:return xt(a),C=new Ws("manifest",l.path.Ta,l.path.Da,m),B["return"](mt(C,y));case 3:return wa(B),A(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return A(B,g.stop(),14);case 14:if(!h){B.D(16);break}return A(B,h.destroy(),16);case 16:xa(B,0);break;case 2:z=I(B);if(null==m){B.D(18);break}return A(B,Ct(m),18);case 18:throw n||z;}})}
778
- function Bt(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,v,y,x,w,C;return M(function(z){switch(z.g){case 1:l={};m=0;n=function(B,F){var G,H,J,K,L,W,Z;return M(function(ka){if(1==ka.g){G={};H=r(B);for(J=H.next();!J.done;G={Fb:G.Fb},J=H.next())G.Fb=J.value,K=js(G.Fb,f),L=G.Fb.i,W=G.Fb.h,Z=function(ja){return function(ea){var Ia,Ma,Da;return M(function(Qa){if(1==Qa.g)return A(Qa,g.addSegments([{data:ea}]),2);Ia=Qa.h;xt(a);Ma=ja.Fb.g;Da=is(Ma);l[Da]=Ia[0];m+=ea.byteLength;D(Qa)})}}(G),ps(e,G.Fb.groupId,K,L,W,Z);
779
- return A(ka,rs(e),2)}if(!F)return ka.D(0);xt(a);Dt(h,d,k,f);return A(ka,g.updateManifest(c,d),0)})};p=!1;E(z,2);if(!Et(h)||!p||Ft(h)){z.D(4);break}return A(z,n(b.filter(function(B){return B.h}),!0),5);case 5:return xt(a),b=b.filter(function(B){return!B.h}),t=l,v=m,l={},m=0,A(z,Gt(g,c,d,t,v,function(){return xt(a)}),6);case 6:xt(a);case 4:if(p){z.D(7);break}return A(z,n(b,!1),8);case 8:return xt(a),y=l,x=m,l={},m=0,A(z,Gt(g,c,d,y,x,function(){return xt(a)}),9);case 9:xt(a);case 7:va(z,0);break;case 2:return w=
780
- I(z),C=Object.values(l),A(z,g.removeSegments(C,function(){}),10);case 10:throw w;}})}function Ct(a){var b,c,d,e;return M(function(f){switch(f.g){case 1:return b=new Ds,A(f,b.init(),2);case 2:return A(f,Fs(b),3);case 3:return c=f.h,d=new Ws("manifest",c.path.Ta,c.path.Da,a),A(f,b.destroy(),4);case 4:return e=new rt,A(f,e.remove(d.toString()),0)}})}
781
- function Gt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,y,x;return M(function(w){switch(w.g){case 1:g=!1;E(w,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=r(m.segments),p=n.next();!p.done;p=n.next())t=p.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&&
782
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return A(w,a.updateManifest(b,c),4);case 4:g=!0;f();va(w,0);break;case 2:return y=I(w),A(w,Ct(b),5);case 5:if(g){w.D(6);break}x=Object.values(d);return A(w,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
783
- function zt(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,y,x,w,C,z,B,F,G,H,J,K,L,W,Z,ka,ja;return M(function(ea){switch(ea.g){case 1:return c={width:Infinity,height:Infinity},Zd(a,b.restrictions,c),A(ea,be(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Nd(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(le(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=
784
- p.value,d.push(me(t));v=r(a.imageStreams);for(y=v.next();!y.done;y=v.next())x=y.value,d.push(ne(x));return A(ea,b.offline.trackSelectionCallback(d),3);case 3:w=ea.h;C=a.presentationTimeline.getDuration();z=0;B=r(w);for(F=B.next();!F.done;F=B.next())G=F.value,H=G.bandwidth*C/8,z+=H;E(ea,4);return A(ea,b.offline.downloadSizeCallback(z),6);case 6:J=ea.h;if(!J)throw new P(2,9,9014);va(ea,5);break;case 4:K=I(ea);if(K instanceof P)throw K;throw new P(2,9,9015);case 5:L=new Set;W=new Set;Z=new Set;ka=r(w);
776
+ function tt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,w,y,x,C,z;return M(function(B){switch(B.g){case 1:return vt(),h=g=null,k=new Ds,n=m=l=null,E(B,2,3),A(B,d(),5);case 5:return g=B.h,A(B,wt(a,b,g,e),6);case 6:p=B.h;xt(a);t=!p.presentationTimeline.T()&&!p.presentationTimeline.Nb();if(!t)throw new P(2,9,9005,b);return A(B,yt(a,p,function(F){n=n||F},e),7);case 7:h=B.h;xt(a);if(n)throw n;return A(B,zt(p,e),8);case 8:return A(B,k.init(),9);case 9:return xt(a),A(B,Fs(k),10);case 10:return l=B.h,xt(a),v=At(h,
777
+ p,b,c,e,f),w=v.Kg,y=v.Ge,A(B,l.Da.addManifests([w]),11);case 11:x=B.h;xt(a);m=x[0];xt(a);if(n)throw n;return A(B,Bt(a,y,m,w,f,e,l.Da,p,h),12);case 12:return xt(a),C=new Ws("manifest",l.path.Ta,l.path.Da,m),B["return"](mt(C,w));case 3:return wa(B),A(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return A(B,g.stop(),14);case 14:if(!h){B.D(16);break}return A(B,h.destroy(),16);case 16:xa(B,0);break;case 2:z=I(B);if(null==m){B.D(18);break}return A(B,Ct(m),18);case 18:throw n||z;}})}
778
+ function Bt(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,v,w,y,x,C;return M(function(z){switch(z.g){case 1:l={};m=0;n=function(B,F){var G,H,J,K,L,W,Z;return M(function(ka){if(1==ka.g){G={};H=r(B);for(J=H.next();!J.done;G={Fb:G.Fb},J=H.next())G.Fb=J.value,K=js(G.Fb,f),L=G.Fb.i,W=G.Fb.h,Z=function(ja){return function(ea){var Ia,Ma,Da;return M(function(Ra){if(1==Ra.g)return A(Ra,g.addSegments([{data:ea}]),2);Ia=Ra.h;xt(a);Ma=ja.Fb.g;Da=is(Ma);l[Da]=Ia[0];m+=ea.byteLength;D(Ra)})}}(G),ps(e,G.Fb.groupId,K,L,W,Z);
779
+ return A(ka,rs(e),2)}if(!F)return ka.D(0);xt(a);Dt(h,d,k,f);return A(ka,g.updateManifest(c,d),0)})};p=!1;E(z,2);if(!Et(h)||!p||Ft(h)){z.D(4);break}return A(z,n(b.filter(function(B){return B.h}),!0),5);case 5:return xt(a),b=b.filter(function(B){return!B.h}),t=l,v=m,l={},m=0,A(z,Gt(g,c,d,t,v,function(){return xt(a)}),6);case 6:xt(a);case 4:if(p){z.D(7);break}return A(z,n(b,!1),8);case 8:return xt(a),w=l,y=m,l={},m=0,A(z,Gt(g,c,d,w,y,function(){return xt(a)}),9);case 9:xt(a);case 7:va(z,0);break;case 2:return x=
780
+ I(z),C=Object.values(l),A(z,g.removeSegments(C,function(){}),10);case 10:throw x;}})}function Ct(a){var b,c,d,e;return M(function(f){switch(f.g){case 1:return b=new Ds,A(f,b.init(),2);case 2:return A(f,Fs(b),3);case 3:return c=f.h,d=new Ws("manifest",c.path.Ta,c.path.Da,a),A(f,b.destroy(),4);case 4:return e=new rt,A(f,e.remove(d.toString()),0)}})}
781
+ function Gt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,v,w,y;return M(function(x){switch(x.g){case 1:g=!1;E(x,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=r(m.segments),p=n.next();!p.done;p=n.next())t=p.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&&
782
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return A(x,a.updateManifest(b,c),4);case 4:g=!0;f();va(x,0);break;case 2:return w=I(x),A(x,Ct(b),5);case 5:if(g){x.D(6);break}y=Object.values(d);return A(x,a.removeSegments(y,function(){}),6);case 6:throw w;}})}
783
+ function zt(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,v,w,y,x,C,z,B,F,G,H,J,K,L,W,Z,ka,ja;return M(function(ea){switch(ea.g){case 1:return c={width:Infinity,height:Infinity},Zd(a,b.restrictions,c),A(ea,be(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Nd(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(le(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=
784
+ p.value,d.push(me(t));v=r(a.imageStreams);for(w=v.next();!w.done;w=v.next())y=w.value,d.push(ne(y));return A(ea,b.offline.trackSelectionCallback(d),3);case 3:x=ea.h;C=a.presentationTimeline.getDuration();z=0;B=r(x);for(F=B.next();!F.done;F=B.next())G=F.value,H=G.bandwidth*C/8,z+=H;E(ea,4);return A(ea,b.offline.downloadSizeCallback(z),6);case 6:J=ea.h;if(!J)throw new P(2,9,9014);va(ea,5);break;case 4:K=I(ea);if(K instanceof P)throw K;throw new P(2,9,9015);case 5:L=new Set;W=new Set;Z=new Set;ka=r(x);
785
785
  for(F=ka.next();!F.done;F=ka.next())ja=F.value,"variant"==ja.type&&L.add(ja.id),"text"==ja.type&&W.add(ja.id),"image"==ja.type&&Z.add(ja.id);a.variants=a.variants.filter(function(Ia){return L.has(Ia.id)});a.textStreams=a.textStreams.filter(function(Ia){return W.has(Ia.id)});a.imageStreams=a.imageStreams.filter(function(Ia){return Z.has(Ia.id)});Ht(a);D(ea)}})}
786
- function At(a,b,c,d,e,f){var g=kt(c,b,d),h=e.offline.progressCallback;os(f,function(t,v){g.size=v;h(g,t)},function(t,v){k&&e.offline.usePersistentLicense&&l==v&&mg(a,"cenc",t)});var k=Et(b)&&!Ft(b),l=null;k&&(l=It.get(a.g.keySystem));for(var m=new nt,n=r(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=r(b.imageStreams);for(p=n.next();!p.done;p=n.next())pt(m,p.value);p=r(b.variants);for(n=p.next();!n.done;n=p.next())ot(m,n.value);m=Jt(f,m,b);f=m.streams;m=m.Fe;p=a.g;n=e.offline.usePersistentLicense;
787
- p&&n&&(p.initData=[]);return{Kg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Dc(),streams:f,sessionIds:n?sg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0},Fe:m}}function Et(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
786
+ function At(a,b,c,d,e,f){var g=kt(c,b,d),h=e.offline.progressCallback;os(f,function(t,v){g.size=v;h(g,t)},function(t,v){k&&e.offline.usePersistentLicense&&l==v&&mg(a,"cenc",t)});var k=Et(b)&&!Ft(b),l=null;k&&(l=It.get(a.g.keySystem));for(var m=new nt,n=r(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=r(b.imageStreams);for(p=n.next();!p.done;p=n.next())pt(m,p.value);p=r(b.variants);for(n=p.next();!n.done;n=p.next())ot(m,n.value);m=Jt(f,m,b);f=m.streams;m=m.Ge;p=a.g;n=e.offline.usePersistentLicense;
787
+ p&&n&&(p.initData=[]);return{Kg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Dc(),streams:f,sessionIds:n?sg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0},Ge:m}}function Et(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
788
788
  function Ft(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 Dt(a,b,c,d){b.expiration=c.Dc();c=sg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Et(a)&&d.offline.usePersistentLicense&&!c.length)throw new P(2,9,9007);}q.remove=function(a){return Kt(this,Lt(this,a))};
789
789
  function Lt(a,b){var c,d,e,f,g,h;return M(function(k){switch(k.g){case 1:vt();c=Xs(b);if(null==c||"manifest"!=c.g)throw new P(2,9,9004,b);d=c;e=new Ds;ua(k);return A(k,e.init(),4);case 4:return A(k,Hs(e,d.Ta(),d.Da()),5);case 5:return f=k.h,A(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],A(k,Promise.all([Mt(a,h,e),Nt(f,d,h)]),2);case 2:return wa(k),A(k,e.destroy(),8);case 8:xa(k,0)}})}
790
790
  function Ot(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:yd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:yd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Mt(a,b,c){return M(function(d){return A(d,Pt(a.g,a.h.drm,c,b),0)})}
@@ -793,9 +793,9 @@ function Rt(a){var b,c,d,e,f,g,h,k,l,m;return M(function(n){switch(n.g){case 1:r
793
793
  q.list=function(){return Kt(this,St())};function St(){var a,b,c;return M(function(d){switch(d.g){case 1:return vt(),a=[],b=new Ds,ua(d),A(d,b.init(),4);case 4:return c=Promise.resolve(),Gs(b,function(e,f){c=c.then(function(){var g;return M(function(h){if(1==h.g)return A(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=mt(new Ws("manifest",e.Ta,e.Da,l),k);a.push(m)});D(h)})})}),A(d,c,2);case 2:return wa(d),A(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d["return"](a)}})}
794
794
  function wt(a,b,c,d){var e,f,g,h,k;return M(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},c.configure(d.manifest),xt(a),A(l,c.start(b,
795
795
  g),2);if(3!=l.g)return h=l.h,xt(a),k=Tt(h),A(l,Promise.all(db(k,function(m){return m.createSegmentIndex()})),3);xt(a);if(e)throw e;return l["return"](h)})}function yt(a,b,c,d){var e;return M(function(f){switch(f.g){case 1:return e=new Vf({Qb:a.g,onError:c,rd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),A(f,$f(e,b.variants,d.offline.usePersistentLicense),2);case 2:return A(f,ng(e),3);case 3:return A(f,jg(e),4);case 4:return f["return"](e)}})}
796
- function Jt(a,b,c){var d=new Map,e=Tt(c),f=new Map;e=r(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var h=Ut(a,b,c,g,d);f.set(g.id,h)}a=r(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&f.get(b.audio.id).variantIds.push(b.id),b.video&&f.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(f.values()),Fe:Array.from(d.values())}}
796
+ function Jt(a,b,c){var d=new Map,e=Tt(c),f=new Map;e=r(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var h=Ut(a,b,c,g,d);f.set(g.id,h)}a=r(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&f.get(b.audio.id).variantIds.push(b.id),b.video&&f.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(f.values()),Ge:Array.from(d.values())}}
797
797
  function Ut(a,b,c,d,e){var f={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,
798
- tilesLayout:d.tilesLayout};Vt(d,c.presentationTimeline.ob(),function(g){var h=is(g),k=void 0;if(!e.has(h)){var l=g.endTime-g.startTime;l=qt(b,d.id)*l;l=ls(a.g,l);e.set(h,new hs(g,l,d.id,!1))}g.g&&(k=is(g.g),e.has(k)||(l=.5*qt(b,d.id),l=ls(a.g,l),e.set(k,new hs(g.g,l,d.id,!0))));f.segments.push({pendingInitSegmentRefId:k,initSegmentKey:k?0:null,startTime:g.startTime,endTime:g.endTime,appendWindowStart:g.appendWindowStart,appendWindowEnd:g.appendWindowEnd,timestampOffset:g.timestampOffset,tilesLayout:g.tilesLayout,
798
+ tilesLayout:d.tilesLayout};Vt(d,c.presentationTimeline.pb(),function(g){var h=is(g),k=void 0;if(!e.has(h)){var l=g.endTime-g.startTime;l=qt(b,d.id)*l;l=ls(a.g,l);e.set(h,new hs(g,l,d.id,!1))}g.g&&(k=is(g.g),e.has(k)||(l=.5*qt(b,d.id),l=ls(a.g,l),e.set(k,new hs(g.g,l,d.id,!0))));f.segments.push({pendingInitSegmentRefId:k,initSegmentKey:k?0:null,startTime:g.startTime,endTime:g.endTime,appendWindowStart:g.appendWindowStart,appendWindowEnd:g.appendWindowEnd,timestampOffset:g.timestampOffset,tilesLayout:g.tilesLayout,
799
799
  pendingSegmentRefId:h,dataKey:0})});return f}function Vt(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 xt(a){if(a.l.g)throw new P(2,9,7001);}function vt(){if(!st())throw new P(2,9,9E3);}function Kt(a,b){return M(function(c){if(1==c.g)return a.i.push(b),ua(c),A(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);ic(a.i,b);return xa(c,0)})}function ut(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){ic(a.i,c)})}
800
800
  function Qt(a){var b=new Set;a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
801
801
  function Pt(a,b,c,d){var e,f,g;return M(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=Js(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Ot(d,!1),videoCapabilities:Ot(d,!0)}});return A(h,ht(b,a,f),2)}return 3!=h.g?(g=h.h,A(h,e.remove(g),3)):A(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
@@ -806,11 +806,11 @@ var It=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("
806
806
  kn.offline=st;function Wt(){}function Xt(){for(var a=r(Yt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Qf()}catch(c){Sa("Error installing polyfill!",c)}}}function Zt(a,b){for(var c={priority:b||0,Qf:a},d=0;d<Yt.length;d++)if(Yt[d].priority<c.priority){Yt.splice(d,0,c);return}Yt.push(c)}N("shaka.polyfill",Wt);Wt.register=Zt;Wt.installAll=Xt;var Yt=[];function $t(){}function au(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())bu(b.value)}function bu(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)}})}Wt.Aria=$t;$t.install=au;Zt(au);function cu(){}function du(){eu()}Wt.EncryptionScheme=cu;cu.install=du;Zt(du,-2);function fu(){}
807
807
  function gu(){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}}),
808
808
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",hu);document.addEventListener("webkitfullscreenerror",hu);document.addEventListener("mozfullscreenchange",hu);document.addEventListener("mozfullscreenerror",hu);document.addEventListener("MSFullscreenChange",hu);document.addEventListener("MSFullscreenError",hu)}}
809
- function hu(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)}Wt.Fullscreen=fu;fu.install=gu;Zt(gu);function iu(){}function ju(){}Wt.MathRound=iu;iu.install=ju;Zt(ju);function ku(){}function lu(){if($c()||ad()||bd()||Xc("PlayStation 5")||Zc()||Yc()||Xc("PC=EOS")||!navigator.mediaCapabilities)navigator.mediaCapabilities||(navigator.mediaCapabilities={}),mu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=nu}
810
- function nu(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,v,y,x,w;return M(function(C){switch(C.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return C["return"](b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Tc())return C["return"](b);if(c){if($c()){if(!window.cast)throw new P(2,8,8E3);if(cast.__platform__&&cast.__platform__.canDisplayType){var z=c.contentType;c.width&&c.height&&(z+="; width="+c.width+"; height="+c.height);c.framerate&&(z+="; framerate="+
809
+ function hu(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)}Wt.Fullscreen=fu;fu.install=gu;Zt(gu);function iu(){}function ju(){}Wt.MathRound=iu;iu.install=ju;Zt(ju);function ku(){}function lu(){if($c()||ad()||bd()||Xc("PlayStation 5")||Zc()||Yc()||Xc("PC=EOS")||Xc("Hisense")||Xc("VIDAA")||!navigator.mediaCapabilities)navigator.mediaCapabilities||(navigator.mediaCapabilities={}),mu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=nu}
810
+ function nu(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,v,w,y,x;return M(function(C){switch(C.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return C["return"](b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Tc())return C["return"](b);if(c){if($c()){if(!window.cast)throw new P(2,8,8E3);if(cast.__platform__&&cast.__platform__.canDisplayType){var z=c.contentType;c.width&&c.height&&(z+="; width="+c.width+"; height="+c.height);c.framerate&&(z+="; framerate="+
811
811
  c.framerate);"pq"===c.transferFunction&&(z+="; eotf=smpte2084");z=cast.__platform__.canDisplayType(z)}else z=MediaSource.isTypeSupported(c.contentType)}else z=MediaSource.isTypeSupported(c.contentType);e=z;if(!e)return C["return"](b)}if(d&&(f=d.contentType,g=MediaSource.isTypeSupported(f),!g))return C["return"](b)}else if("file"==a.type){if(c&&(h=c.contentType,k=Uc(h),!k)||d&&(l=d.contentType,m=Uc(l),!m))return C["return"](b)}else return C["return"](b);if(!a.keySystemConfiguration)return b.supported=
812
- !0,C["return"](Promise.resolve(b));n=a.keySystemConfiguration;p=[];t=[];n.audio&&(v={robustness:n.audio.robustness||"",contentType:a.audio.contentType},p.push(v));n.video&&(y={robustness:n.video.robustness||"",contentType:a.video.contentType},t.push(y));x={initDataTypes:[n.initDataType],distinctiveIdentifier:n.distinctiveIdentifier,persistentState:n.persistentState,sessionTypes:n.sessionTypes};p.length&&(x.audioCapabilities=p);t.length&&(x.videoCapabilities=t);E(C,3);return A(C,navigator.requestMediaKeySystemAccess(n.keySystem,
813
- [x]),5);case 5:w=C.h;va(C,4);break;case 3:I(C);case 4:w&&(b.supported=!0,b.keySystemAccess=w);case 2:return C["return"](b)}})}Wt.MediaCapabilities=ku;ku.install=lu;var mu=null;ku.originalMcap=mu;Zt(lu,-1);function ou(){}function pu(){var a=cd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?qu():a?(ru(),12>=a?(su(),tu()):su()):(Xc("Tizen 2")||Xc("Tizen 3")||Xc("Tizen 4"))&&uu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&vu()}
812
+ !0,C["return"](Promise.resolve(b));n=a.keySystemConfiguration;p=[];t=[];n.audio&&(v={robustness:n.audio.robustness||"",contentType:a.audio.contentType},p.push(v));n.video&&(w={robustness:n.video.robustness||"",contentType:a.video.contentType},t.push(w));y={initDataTypes:[n.initDataType],distinctiveIdentifier:n.distinctiveIdentifier,persistentState:n.persistentState,sessionTypes:n.sessionTypes};p.length&&(y.audioCapabilities=p);t.length&&(y.videoCapabilities=t);E(C,3);return A(C,navigator.requestMediaKeySystemAccess(n.keySystem,
813
+ [y]),5);case 5:x=C.h;va(C,4);break;case 3:I(C);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return C["return"](b)}})}Wt.MediaCapabilities=ku;ku.install=lu;var mu=null;ku.originalMcap=mu;Zt(lu,-1);function ou(){}function pu(){var a=cd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?qu():a?(ru(),12>=a?(su(),tu()):su()):(Xc("Tizen 2")||Xc("Tizen 3")||Xc("Tizen 4"))&&uu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&vu()}
814
814
  function su(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function tu(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function ru(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"==b.split(/ *; */)[0].split("/")[1].toLowerCase()?!1:a(b)}}
815
815
  function uu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Bd(b)[0]&&a(b)}}function qu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
816
816
  function vu(){var a=MediaSource.isTypeSupported;Zc()||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}Wt.MediaSource=ou;ou.install=pu;Zt(pu);function wu(){}function xu(){screen.orientation||void 0!=window.orientation&&yu()}function yu(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new zu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new O("change");b.dispatchEvent(c)})}Wt.Orientation=wu;
@@ -821,27 +821,27 @@ function Cu(a){var b=this.mediaKeys;b&&b!=a&&Gu(b,null);delete this.mediaKeys;re
821
821
  function Eu(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
822
822
  k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=r(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
823
823
  Eu.prototype.createMediaKeys=function(){var a=new Du(this.keySystem);return Promise.resolve(a)};Eu.prototype.getConfiguration=function(){return this.g};function Du(a){this.h=new WebKitMediaKeys(a);this.g=new pf}Du.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Iu(this.h,a)};Du.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
824
- function Gu(a,b){a.g.rb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",Hu);try{return Ui(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function Iu(a){cb.call(this);this.i=null;this.l=a;this.h=this.g=null;this.j=new pf;this.sessionId="";this.expiration=NaN;this.closed=new Pc;this.keyStatuses=new Ju}u(Iu,cb);q=Iu.prototype;
824
+ function Gu(a,b){a.g.sb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",Hu);try{return Ui(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function Iu(a){cb.call(this);this.i=null;this.l=a;this.h=this.g=null;this.j=new pf;this.sessionId="";this.expiration=NaN;this.closed=new Pc;this.keyStatuses=new Ju}u(Iu,cb);q=Iu.prototype;
825
825
  q.generateRequest=function(a,b){var c=this;this.g=new Pc;try{var d=this.l.createSession("video/mp4",Ic(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",Jc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.h&&(Ku(c,"usable"),c.h.resolve(),c.h=null)});this.j.o(d,"webkitkeyerror",function(){var e=
826
826
  Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.h)c.h.reject(e),c.h=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Ku(c,"output-not-allowed");break;default:Ku(c,"internal-error")}});Ku(this,"status-pending")}catch(e){this.g.reject(e)}return this.g};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
827
- q.update=function(a){this.h=new Pc;try{this.i.update(Ic(a))}catch(b){this.h.reject(b)}return this.h};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.rb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Ku(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}
827
+ q.update=function(a){this.h=new Pc;try{this.i.update(Ic(a))}catch(b){this.h.reject(b)}return this.h};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.sb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Ku(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}
828
828
  function Ju(){this.size=0;this.g=void 0}q=Ju.prototype;q.forEach=function(a){this.g&&a(this.g,Gg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Gg.value();return this.g&&Gc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};Zt(Bu);function Lu(){}function Mu(){!window.HTMLVideoElement||!window.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,window.MediaKeys=Nu,window.MediaKeySystemAccess=Ou,navigator.requestMediaKeySystemAccess=Pu,HTMLMediaElement.prototype.setMediaKeys=Qu)}function Pu(a,b){try{var c=new Ou(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
829
829
  function Ru(a){if(a.initData){var b=new CustomEvent("encrypted");b.initDataType="cenc";b.initData=Jc(Io(a.initData));this.dispatchEvent(b)}}Wt.PatchedMediaKeysMs=Lu;Lu.install=Mu;
830
830
  function Ou(a,b){this.keySystem=a;for(var c=!1,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label},g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.audioCapabilities.push(k),c=
831
831
  !0));if(e.videoCapabilities)for(h=r(e.videoCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.videoCapabilities.push(k),c=!0));g||(c=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));"required"==e.persistentState&&(c=!1);if(c){this.g=f;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
832
832
  Ou.prototype.createMediaKeys=function(){var a=new Nu(this.keySystem);return Promise.resolve(a)};Ou.prototype.getConfiguration=function(){return this.g};function Qu(a){var b=this.mediaKeys;b&&b!=a&&Su(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?Su(a,this):Promise.resolve()}function Nu(a){this.h=new MSMediaKeys(a);this.g=new pf}
833
- Nu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Tu(this.h,a)};Nu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function Su(a,b){a.g.rb();if(!b)return Promise.resolve();a.g.o(b,"msneedkey",Ru);try{return Ui(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.msSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
833
+ Nu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Tu(this.h,a)};Nu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function Su(a,b){a.g.sb();if(!b)return Promise.resolve();a.g.o(b,"msneedkey",Ru);try{return Ui(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.msSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
834
834
  function Tu(a){cb.call(this);this.i=null;this.l=a;this.h=this.g=null;this.j=new pf;this.sessionId="";this.expiration=NaN;this.closed=new Pc;this.keyStatuses=new Uu}u(Tu,cb);q=Tu.prototype;
835
835
  q.generateRequest=function(a,b){var c=this;this.g=new Pc;try{this.i=this.l.createSession("video/mp4",Ic(b),null),this.j.o(this.i,"mskeymessage",function(d){c.g&&(c.g.resolve(),c.g=null);d=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",Jc(d.message));d=new O("message",d);c.dispatchEvent(d)}),this.j.o(this.i,"mskeyadded",function(){c.g?(Vu(c,"usable"),c.g.resolve(),c.g=null):c.h&&(Vu(c,"usable"),c.h.resolve(),c.h=null)}),this.j.o(this.i,"mskeyerror",
836
836
  function(){var d=Error("EME PatchedMediaKeysMs key error");d.errorCode=c.i.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.h)c.h.reject(d),c.h=null;else switch(c.i.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Vu(c,"output-not-allowed");break;default:Vu(c,"internal-error")}}),Vu(this,"status-pending")}catch(d){this.g.reject(d)}return this.g};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
837
- q.update=function(a){this.h=new Pc;try{this.i.update(Ic(a))}catch(b){this.h.reject(b)}return this.h};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.rb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Vu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}
837
+ q.update=function(a){this.h=new Pc;try{this.i.update(Ic(a))}catch(b){this.h.reject(b)}return this.h};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.sb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Vu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}
838
838
  function Uu(){this.size=0;this.g=void 0}q=Uu.prototype;q.forEach=function(a){this.g&&a(this.g,Gg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Gg.value();return this.g&&Gc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};Zt(Mu);function Wu(){}function Xu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Yu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Zu,window.MediaKeys=$u,window.MediaKeySystemAccess=av)}function Yu(){return Promise.reject(Error("The key system specified is not supported."))}
839
839
  function Zu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Wt.PatchedMediaKeysNop=Wu;Wu.install=Xu;function $u(){throw new TypeError("Illegal constructor.");}$u.prototype.createSession=function(){};$u.prototype.setServerCertificate=function(){};function av(){this.keySystem="";throw new TypeError("Illegal constructor.");}av.prototype.getConfiguration=function(){};av.prototype.createMediaKeys=function(){};Zt(Xu,-10);function bv(){}function cv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)dv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ev;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=fv;window.MediaKeys=gv;window.MediaKeySystemAccess=hv}}
840
840
  function iv(a){var b=dv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function ev(a,b){try{var c=new hv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function fv(a){var b=this.mediaKeys;b&&b!=a&&jv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&jv(a,this);return Promise.resolve()}Wt.PatchedMediaKeysWebkit=bv;bv.install=cv;
841
841
  function hv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
842
842
  m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
843
843
  d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}hv.prototype.createMediaKeys=function(){var a=new gv(this.g);return Promise.resolve(a)};hv.prototype.getConfiguration=function(){return this.h};function gv(a){this.l=a;this.h=null;this.g=new pf;this.i=[];this.j=new Map}
844
- function jv(a,b){a.h=b;a.g.rb();var c=dv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Jc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=kv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.g?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=kv(a,d.sessionId))lv(d,"usable"),
844
+ function jv(a,b){a.h=b;a.g.sb();var c=dv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Jc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=kv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.g?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=kv(a,d.sessionId))lv(d,"usable"),
845
845
  d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=kv(a,d.sessionId);e&&e.handleError(d)}))}gv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new mv(b,this.l,a);this.i.push(a);return a};gv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
846
846
  function kv(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function mv(a,b,c){cb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Pc;this.keyStatuses=new nv}u(mv,cb);q=mv.prototype;
847
847
  q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?lv(this,"output-restricted"):1==b?lv(this,"expired"):lv(this,"internal-error"))};
@@ -855,12 +855,12 @@ function sv(){return this.webkitSupportsPresentationMode("picture-in-picture")?(
855
855
  function tv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function uv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Wt.PiPWebkit=qv;qv.install=rv;Zt(rv);function xv(){}function yv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=zv))}function zv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Wt.RandomUUID=xv;xv.install=yv;Zt(yv);function Av(){}function Bv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Cv)}function Cv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Wt.StorageEstimate=Av;Av.install=Bv;Zt(Bv);function Dv(){}function Ev(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Fv})}function Fv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Wt.Symbol=Dv;Dv.install=Ev;Zt(Ev);function Gv(){}function Hv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Wt.VideoPlayPromise=Gv;Gv.install=Hv;Zt(Hv);function Iv(){}function Jv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc("Web0S")&&Xc("Chrome/38.0.2125.122 Safari/537.36"))&&(a.getVideoPlaybackQuality=Kv)}}function Kv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Wt.VideoPlaybackQuality=Iv;Iv.install=Jv;Zt(Jv);function Lv(){}function Mv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Nv;else if(6==b)a=Ov;else{try{var c=!!Nv(1,2,"")}catch(d){c=!1}c&&(a=Nv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Nv(a,b,c){return new window.TextTrackCue(a,b,c)}function Ov(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Wt.VTTCue=Lv;Lv.install=Mv;Zt(Mv);function Pv(){}Pv.prototype.parseInit=function(){};Pv.prototype.parseMedia=function(a,b){var c=null,d=[],e=gd(a).split(/\r?\n/);e=r(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=Qv.exec(f))){var g=Rv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new lc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};N("shaka.text.LrcTextParser",Pv);Pv.prototype.parseMedia=Pv.prototype.parseMedia;
856
856
  Pv.prototype.parseInit=Pv.prototype.parseInit;var Qv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Rv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Fd["application/x-subtitle-lrc"]=function(){return new Pv};function Sv(){}Sv.prototype.parseInit=function(){};
857
857
  Sv.prototype.parseMedia=function(a,b){var c=gd(a),d=[];if(""==c)return d;var e=Sf(c,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");c=e.getElementsByTagName("body")[0];if(!c)return[];var f=Gf(e,Tv,"frameRate"),g=Gf(e,Tv,"subFrameRate"),h=Gf(e,Tv,"frameRateMultiplier"),k=Gf(e,Tv,"tickRate"),l=Gf(e,Tv,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=Gf(e,Uv,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new Vv(f,g,
858
- h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?Ef(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=r(e),t=p.next();!t.done;t=p.next()){var v=t.value;t=new nc;var y=v.getAttribute("xml:id");if(y){t.id=y;var x=null;n&&(x=Wv.exec(n)||Xv.exec(n));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var w,C;if(w=Yv(v,h,"extent"))w=(C=Wv.exec(w))||Xv.exec(w),
859
- null!=w&&(t.width=Number(w[1]),t.height=Number(w[2]),C||(null!=y&&(t.width=100*t.width/y),null!=x&&(t.height=100*t.height/x)),t.widthUnits=C||null!=y?Dc:0,t.heightUnits=C||null!=x?Dc:0);if(v=Yv(v,h,"origin"))w=(C=Wv.exec(v))||Xv.exec(v),null!=w&&(t.viewportAnchorX=Number(w[1]),t.viewportAnchorY=Number(w[2]),C||(null!=x&&(t.viewportAnchorY=100*t.viewportAnchorY/x),null!=y&&(t.viewportAnchorX=100*t.viewportAnchorX/y)),t.viewportAnchorUnits=C||null!=y?Dc:0)}else t=null;t&&k.push(t)}if(Bf(c,"p").length)throw new P(2,
858
+ h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?Ef(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=r(e),t=p.next();!t.done;t=p.next()){var v=t.value;t=new nc;var w=v.getAttribute("xml:id");if(w){t.id=w;var y=null;n&&(y=Wv.exec(n)||Xv.exec(n));w=y?Number(y[1]):null;y=y?Number(y[2]):null;var x,C;if(x=Yv(v,h,"extent"))x=(C=Wv.exec(x))||Xv.exec(x),
859
+ null!=x&&(t.width=Number(x[1]),t.height=Number(x[2]),C||(null!=w&&(t.width=100*t.width/w),null!=y&&(t.height=100*t.height/y)),t.widthUnits=C||null!=w?Dc:0,t.heightUnits=C||null!=y?Dc:0);if(v=Yv(v,h,"origin"))x=(C=Wv.exec(v))||Xv.exec(v),null!=x&&(t.viewportAnchorX=Number(x[1]),t.viewportAnchorY=Number(x[2]),C||(null!=y&&(t.viewportAnchorY=100*t.viewportAnchorY/y),null!=w&&(t.viewportAnchorX=100*t.viewportAnchorX/w)),t.viewportAnchorUnits=C||null!=w?Dc:0)}else t=null;t&&k.push(t)}if(Bf(c,"p").length)throw new P(2,
860
860
  2,2001,"<p> can only be inside <div> in TTML");n=r(Bf(c,"div"));for(p=n.next();!p.done;p=n.next())if(Bf(p.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(c=Zv(c,b,f,g,h,e,k,m,l,null,!1))c.backgroundColor||(c.backgroundColor="transparent"),d.push(c);return d};
861
- function Zv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,v=r($v),y=v.next();!y.done&&!(t=aw(p,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
862
- a=[];if(!y)for(var x=r(p.childNodes),w=x.next();!w.done;w=x.next())(w=Zv(w.value,b,c,d,e,f,g,h,k,p,m))&&a.push(w);d=null!=l;x=/\S/.test(p.textContent);var C=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(C||x||"br"==p.tagName||0!=a.length||d&&!h))return null;w=bw(p,c);x=w.start;for(w=w.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)w=cw(n,c,x,w),x=w.start,w=w.end,n=n.parentNode;null==x&&(x=0);x+=b.periodStart;w=null==w?Infinity:w+b.periodStart;x=Math.max(x,b.segmentStart);
863
- w=Math.min(w,b.segmentEnd);if(!C&&0<a.length)for(x=Infinity,w=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),w=Math.max(w,c.endTime);if("br"==p.tagName)return e=new lc(x,w,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new lc(x,w,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=aw(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==
861
+ function Zv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,v=r($v),w=v.next();!w.done&&!(t=aw(p,"backgroundImage",d,"#",w.value)[0]);w=v.next());v=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));w=Array.from(p.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
862
+ a=[];if(!w)for(var y=r(p.childNodes),x=y.next();!x.done;x=y.next())(x=Zv(x.value,b,c,d,e,f,g,h,k,p,m))&&a.push(x);d=null!=l;y=/\S/.test(p.textContent);var C=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(C||y||"br"==p.tagName||0!=a.length||d&&!h))return null;x=bw(p,c);y=x.start;for(x=x.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)x=cw(n,c,y,x),y=x.start,x=x.end,n=n.parentNode;null==y&&(y=0);y+=b.periodStart;x=null==x?Infinity:x+b.periodStart;y=Math.max(y,b.segmentStart);
863
+ x=Math.min(x,b.segmentEnd);if(!C&&0<a.length)for(y=Infinity,x=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,y=Math.min(y,c.startTime),x=Math.max(x,c.endTime);if("br"==p.tagName)return e=new lc(y,x,""),e.lineBreak=!0,e;b="";w&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new lc(y,x,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=aw(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==
864
864
  z})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&(g=aw(l,"region",f,"")[0]);dw(b,p,g,t,e,v,0==a.length);return b}
865
865
  function dw(a,b,c,d,e,f,g){f=f||g;"rtl"==ew(b,c,e,"direction",f)&&(a.direction="rtl");g=ew(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=mc);(g=ew(b,c,e,"textAlign",!0))?(a.positionAlign=fw[g],a.lineAlign=gw[g],a.textAlign=xc[g.toUpperCase()]):a.textAlign=pc;if(g=ew(b,c,e,"displayAlign",!0))a.displayAlign=yc[g.toUpperCase()];if(g=ew(b,c,e,"color",f))a.color=g;if(g=ew(b,c,e,"backgroundColor",
866
866
  f))a.backgroundColor=g;if(g=ew(b,c,e,"border",f))a.border=g;if(g=ew(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=ew(b,c,e,"fontWeight",f))&&
@@ -878,20 +878,23 @@ end:"end"},fw={left:"line-left",center:"center",right:"line-right"},Tv=["http://
878
878
  uw.prototype.parseInit=uw.prototype.parseInit;Fd['application/mp4; codecs="stpp"']=function(){return new uw};Fd['application/mp4; codecs="stpp.ttml"']=function(){return new uw};Fd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new uw};Fd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new uw};function vw(){}vw.prototype.parseInit=function(){};
879
879
  vw.prototype.parseMedia=function(a,b){var c=gd(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new P(2,2,2E3);c=b.periodStart;if(d[0].includes("X-TIMESTAMP-MAP")){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=ww(new Rq(e[1]));if(null==c)throw new P(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-c}}f=
880
880
  [];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new Rq(g);var h=new nc;Uq(g);Sq(g);for(var k=Uq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
881
- (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Sq(g);k=Uq(g)}f.push(h)}e=new Map;xw(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new lc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var t=
882
- /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(t){var v=t[2].trim().replace(";","");switch(t[1].trim()){case "background-color":n=!0;m.backgroundColor=v;break;case "color":n=!0;m.color=v;break;case "font-family":n=!0;m.fontFamily=v;break;case "font-size":n=!0;m.fontSize=v;break;case "font-weight":700<=parseInt(v,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(v){case "normal":n=!0;m.fontStyle=vc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
883
- !0;m.opacity=parseFloat(v);break;case "white-space":n=!0,m.wrapLine="noWrap"!=v}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new Rq(h[0]);m=ww(k);t=Tq(k,/[ \t]+--\x3e[ \t]+/g);n=ww(k);if(null==m||null==t||null==n)throw new P(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),h.startTime=m,h.endTime=n,h.payload=
884
- ""):h=new lc(m,n,"");yw(p,h,e);Sq(k);for(m=Uq(k);m;)zw(h,m,f),Sq(k),m=Uq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function xw(a){for(var b=r(Object.entries(Ac)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new lc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(Bc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new lc(0,0,""),e.backgroundColor=d,a.set(c,e)}
885
- function yw(a,b,c){0===c.size&&xw(c);a=Aw(a);var d=Sf("<span>"+a+"</span>","span");if(d){var e=[];d=d.childNodes;if(1==d.length){var f=d[0];if(f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE){b.payload=a;return}}a=r(d);for(d=a.next();!d.done;d=a.next())Bw(d.value,b,e,c);b.nestedCues=e}else b.payload=a}
886
- function Aw(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 Cw(a,b){return a&&0<a.length?a:b}
887
- function Bw(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=Cw(h.backgroundColor,e.backgroundColor),e.color=Cw(h.color,e.color),e.fontFamily=Cw(h.fontFamily,e.fontFamily),e.fontSize=Cw(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=
888
- "italic";break;case "u":e.textDecoration.push("underline")}}if(If(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Bw(a.value,e,c,d)}
889
- function zw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=pc:a.textAlign=xc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
881
+ (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Sq(g);k=Uq(g)}f.push(h)}e=new Map;xw(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]){l=[];k=-1;for(m=1;m<h.length;m++)h[m].includes("::cue")&&(l.push([]),k=l.length-1),-1!=k&&(l[k].push(h[m]),h[m].includes("}")&&(k=-1));l=r(l);for(k=l.next();!k.done;k=l.next()){var n=k.value;k="global";(m=n[0].match(/\((.*)\)/))&&
882
+ (k=m.pop());m=n.slice(1,-1);n[0].includes("}")&&(n=/\{(.*?)\}/.exec(n[0]))&&(m=n[1].split(";"));(n=e.get(k))||(n=new lc(0,0,""));for(var p=!1,t=0;t<m.length;t++){var v=/^\s*([^:]+):\s*(.*)/.exec(m[t]);if(v){var w=v[2].trim().replace(";","");switch(v[1].trim()){case "background-color":case "background":p=!0;n.backgroundColor=w;break;case "color":p=!0;n.color=w;break;case "font-family":p=!0;n.fontFamily=w;break;case "font-size":p=!0;n.fontSize=w;break;case "font-weight":if(700<=parseInt(w,10)||"bold"==
883
+ w)p=!0,n.fontWeight=700;break;case "font-style":switch(w){case "normal":p=!0;n.fontStyle=vc;break;case "italic":p=!0;n.fontStyle="italic";break;case "oblique":p=!0,n.fontStyle="oblique"}break;case "opacity":p=!0;n.opacity=parseFloat(w);break;case "text-shadow":p=!0;n.textShadow=w;break;case "white-space":p=!0,n.wrapLine="noWrap"!=w}}}p&&e.set(k,n)}}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0]||"REGION"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));
884
+ k=new Rq(h[0]);m=ww(k);t=Tq(k,/[ \t]+--\x3e[ \t]+/g);n=ww(k);if(null==m||null==t||null==n)throw new P(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=yw(h.slice(1).join("\n").trim());e.has("global")?(h=e.get("global").clone(),h.startTime=m,h.endTime=n,h.payload=""):h=new lc(m,n,"");zw(p,h,e);Sq(k);for(m=Uq(k);m;)Aw(h,m,f),Sq(k),m=Uq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};
885
+ function xw(a){for(var b=r(Object.entries(Ac)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new lc(0,0,"");e.color=d;a.set("."+c,e)}b=r(Object.entries(Bc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new lc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
886
+ function zw(a,b,c){0===c.size&&xw(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",
887
+ h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=
888
+ Sf("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=a;return}a=r(e);for(e=a.next();!e.done;e=a.next())Bw(e.value,b,d,c);b.nestedCues=d}else b.payload=a}function Cw(a,b){return a&&0<a.length?a:b}
889
+ function Bw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=Cw(h.backgroundColor,e.backgroundColor),e.color=Cw(h.color,e.color),e.fontFamily=Cw(h.fontFamily,e.fontFamily),e.fontSize=Cw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=
890
+ h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline")}}if(If(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Bw(a.value,e,c,d)}
891
+ function Aw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=pc:a.textAlign=xc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
890
892
  b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Dw(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=zc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=rc,a.line=Number(c[1]),c[2]&&(a.lineAlign=zc[c[2].toUpperCase()])}function Dw(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
891
- function ww(a){a=Tq(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.VttTextParser",vw);vw.prototype.parseMedia=vw.prototype.parseMedia;vw.prototype.parseInit=vw.prototype.parseInit;Fd["text/vtt"]=function(){return new vw};Fd['text/vtt; codecs="vtt"']=function(){return new vw};Fd['text/vtt; codecs="wvtt"']=function(){return new vw};function Ew(){this.g=null}Ew.prototype.parseInit=function(a){var b=this,c=!1;(new Qg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).V("mdhd",function(d){d=gi(d.reader,d.version);b.g=d.timescale}).box("minf",Ug).box("stbl",Ug).V("stsd",Wg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};
892
- Ew.prototype.parseMedia=function(a,b){if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Qg).box("moof",Ug).box("traf",Ug).V("tfdt",function(B){g=!0;c=fi(B.reader,B.version).Ud}).V("tfhd",function(B){l=ei(B.reader,B.flags).Ze}).V("trun",function(B){h=!0;d=hi(B.reader,B.version,B.flags).yf}).box("mdat",Xg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);for(var m=c,n=new Ng(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var v=t.qe||l,y=t.wd?
893
- c+t.wd:m;m=y+(v||0);var x=0;do{var w=n.P();x+=w;var C=n.P(),z=null;"vttc"==Yg(C)?8<w&&(z=n.Cb(w-8)):n.skip(w-8);v&&z&&(w=Fw(z,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(w))}while(t.sampleSize&&x<t.sampleSize)}return f.filter(Fb)};function Fw(a,b,c){var d,e,f;(new Qg).box("payl",Xg(function(g){d=gd(g)})).box("iden",Xg(function(g){e=gd(g)})).box("sttg",Xg(function(g){f=gd(g)})).parse(a);return d?Gw(d,e,f,b,c):null}
894
- function Gw(a,b,c,d,e){d=new lc(d,e,"");yw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Rq(c),b=Uq(a);b;)zw(d,b,[]),Sq(a),b=Uq(a);return d}N("shaka.text.Mp4VttParser",Ew);Ew.prototype.parseMedia=Ew.prototype.parseMedia;Ew.prototype.parseInit=Ew.prototype.parseInit;Fd['application/mp4; codecs="wvtt"']=function(){return new Ew};function Hw(){}Hw.prototype.parseInit=function(){};Hw.prototype.parseMedia=function(a){var b=gd(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 Rq(c[0]),e=Iw(d),f=Tq(d,/,/g);d=Iw(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new lc(e,d,c.slice(1).join("\n").trim()))}return a};
893
+ function ww(a){a=Tq(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)}function yw(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}N("shaka.text.VttTextParser",vw);
894
+ vw.prototype.parseMedia=vw.prototype.parseMedia;vw.prototype.parseInit=vw.prototype.parseInit;Fd["text/vtt"]=function(){return new vw};Fd['text/vtt; codecs="vtt"']=function(){return new vw};Fd['text/vtt; codecs="wvtt"']=function(){return new vw};function Ew(){this.g=null}Ew.prototype.parseInit=function(a){var b=this,c=!1;(new Qg).box("moov",Ug).box("trak",Ug).box("mdia",Ug).V("mdhd",function(d){d=gi(d.reader,d.version);b.g=d.timescale}).box("minf",Ug).box("stbl",Ug).V("stsd",Wg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};
895
+ Ew.prototype.parseMedia=function(a,b){if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Qg).box("moof",Ug).box("traf",Ug).V("tfdt",function(B){g=!0;c=fi(B.reader,B.version).Ud}).V("tfhd",function(B){l=ei(B.reader,B.flags).$e}).V("trun",function(B){h=!0;d=hi(B.reader,B.version,B.flags).yf}).box("mdat",Xg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);for(var m=c,n=new Ng(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var v=t.re||l,w=t.wd?
896
+ c+t.wd:m;m=w+(v||0);var y=0;do{var x=n.P();y+=x;var C=n.P(),z=null;"vttc"==Yg(C)?8<x&&(z=n.Cb(x-8)):n.skip(x-8);v&&z&&(x=Fw(z,b.periodStart+w/this.g,b.periodStart+m/this.g),f.push(x))}while(t.sampleSize&&y<t.sampleSize)}return f.filter(Fb)};function Fw(a,b,c){var d,e,f;(new Qg).box("payl",Xg(function(g){d=gd(g)})).box("iden",Xg(function(g){e=gd(g)})).box("sttg",Xg(function(g){f=gd(g)})).parse(a);return d?Gw(d,e,f,b,c):null}
897
+ function Gw(a,b,c,d,e){d=new lc(d,e,"");zw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Rq(c),b=Uq(a);b;)Aw(d,b,[]),Sq(a),b=Uq(a);return d}N("shaka.text.Mp4VttParser",Ew);Ew.prototype.parseMedia=Ew.prototype.parseMedia;Ew.prototype.parseInit=Ew.prototype.parseInit;Fd['application/mp4; codecs="wvtt"']=function(){return new Ew};function Hw(){}Hw.prototype.parseInit=function(){};Hw.prototype.parseMedia=function(a){var b=gd(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 Rq(c[0]),e=Iw(d),f=Tq(d,/,/g);d=Iw(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new lc(e,d,c.slice(1).join("\n").trim()))}return a};
895
898
  function Iw(a){a=Tq(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.SbvTextParser",Hw);Hw.prototype.parseMedia=Hw.prototype.parseMedia;Hw.prototype.parseInit=Hw.prototype.parseInit;Fd["text/x-subviewer"]=function(){return new Hw};function Jw(){this.g=new vw}Jw.prototype.parseInit=function(){};Jw.prototype.parseMedia=function(a,b){var c=gd(a);c=Kw(c);c=Ic(kd(c));return this.g.parseMedia(c,b)};function Kw(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}N("shaka.text.SrtTextParser",Jw);Jw.srt2webvtt=Kw;Jw.prototype.parseMedia=Jw.prototype.parseMedia;
896
899
  Jw.prototype.parseInit=Jw.prototype.parseInit;Fd["text/srt"]=function(){return new Jw};function Lw(){}Lw.prototype.parseInit=function(){};
897
900
  Lw.prototype.parseMedia=function(a){var b="",c="";a=gd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=Mw.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=Nw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Ow);else if("Style"==e){e=f.split(Ow);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
@@ -979,22 +982,22 @@ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown"
979
982
  q.setValue=function(a){this.g||(this.bar.value=a)};function Dx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}N("shaka.ui.RangeElement",Cx);Cx.prototype.setValue=Cx.prototype.setValue;Cx.prototype.getValue=Cx.prototype.getValue;Cx.prototype.changeTo=Cx.prototype.changeTo;Cx.prototype.onChangeEnd=Cx.prototype.onChangeEnd;Cx.prototype.onChange=Cx.prototype.onChange;
980
983
  Cx.prototype.onChangeStart=Cx.prototype.onChangeStart;Cx.prototype.setRange=Cx.prototype.setRange;function Ex(a,b){Cx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new Q(function(){c.video.currentTime=c.getValue()});this.A=new Q(function(){Fx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Gx(c)});this.eventManager.o(this.localization,
981
984
  "locale-changed",function(){return Gx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Hx(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Hx(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Ix(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Ix(c)});this.setValue(this.video.currentTime);this.update();Gx(this);this.ad&&X(this.container,!1)}u(Ex,Cx);q=Ex.prototype;
982
- q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Cx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ae(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.Ba();this.controls.Ae(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
985
+ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Cx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Be(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.Ba();this.controls.Be(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
983
986
  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.Ma(),g=f.end-f.start;this.setRange(f.start,f.end);Hx(this)?(X(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
984
987
  a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):X(this.container,!1)};
985
988
  function Fx(a){if(a.i.length){for(var b=a.player.Ma(),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 "+
986
989
  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 Ix(a){Fx(a);var b=a.player.Ma();b=b.end-b.start;a.player.T()&&5<b&&a.A.ha(1)}function Hx(a){var b=a.player.Ma();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Gx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}N("shaka.ui.SeekBar",Ex);function Jx(){}
987
- Jx.prototype.create=function(a,b){return new Ex(a,b)};Ex.Factory=Jx;function Y(a,b,c,d){cb.call(this);var e=this;this.X=!0;this.i=d;this.B=new ao(c,a,this.i.castReceiverAppId);this.Za=!0;this.A=this.B.Bb();this.C=c;this.F=this.B.bc();this.wa=a;this.j=b;this.Xa=this.F.dd();this.m=this.l=null;this.$=!1;this.G=[];this.wb=[];this.jb=!1;this.aa=new Q(function(){e.j.style.cursor="none";e.jb=!1;Kx(e)});this.ma=new Q(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new Q(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())X(g.value,!1)});this.Pa=new Q(function(){e.Ob()&&
990
+ Jx.prototype.create=function(a,b){return new Ex(a,b)};Ex.Factory=Jx;function Y(a,b,c,d){cb.call(this);var e=this;this.X=!0;this.i=d;this.B=new ao(c,a,this.i.castReceiverAppId);this.Za=!0;this.A=this.B.Bb();this.C=c;this.F=this.B.bc();this.wa=a;this.j=b;this.Xa=this.F.dd();this.m=this.l=null;this.$=!1;this.G=[];this.xb=[];this.jb=!1;this.aa=new Q(function(){e.j.style.cursor="none";e.jb=!1;Kx(e)});this.ma=new Q(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new Q(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())X(g.value,!1)});this.Pa=new Q(function(){e.Ob()&&
988
991
  Lx(e)});this.J=null;this.H=[];this.Ca=Mx();this.h=new pf;this.configure(this.i);Nx(this);this.na=new Set;Ox(this);this.Pa.ha(.125);this.h.o(this.Ca,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}u(Y,cb);q=Y.prototype;
989
992
  q.destroy=function(){var a=this;return M(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.C){b.D(2);break}return A(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ma&&(a.ma.stop(),a.ma=null);a.I&&(a.I.stop(),a.I=null);a.Pa&&(a.Pa.stop(),a.Pa=null);Px(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.B){b.D(4);break}return A(b,a.B.destroy(),5);case 5:a.B=null;case 4:if(!a.wa){b.D(6);break}return A(b,a.wa.destroy(),7);case 7:a.wa=
990
993
  null;case 6:a.F=null,a.C=null,a.A=null,a.Ca=null,a.na.clear(),cb.prototype.release.call(a),D(b)}})};function Px(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function Qx(a,b){Rx.set(a,b)}q.Pf=function(a){this.Za=a;Ox(this)};q.Jg=function(){Kx(this)};
991
- q.configure=function(a){this.i=a;this.B.Ve(a.castReceiverAppId);this.m&&(this.m=null);this.gb&&(this.gb=null);this.Ya&&(this.Ya=null);this.g?(uk(this.g),Px(this)):(Sx(this),Tx(this));this.j.classList.add("shaka-video-container");this.C.classList.add("shaka-video");Ux(this);this.i.addBigPlayButton&&Vx(this);this.i.customContextMenu&&(this.Ya=new yx(this.Z,this),this.H.push(this.Ya));this.ba||Wx(this);this.ib=S("div");this.ib.classList.add("shaka-server-side-ad-container");this.g.appendChild(this.ib);
992
- Xx(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"))));Yx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Kx(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",c)}};
993
- q.we=function(a){(this.X=a)?(this.j.setAttribute("shaka-controls","true"),this.C.tabIndex=-1,this.C.controls=!1):this.j.removeAttribute("shaka-controls");Kx(this)};q.Cf=function(a){this.C.controls=a;this.C.tabIndex=a?0:-1;a&&this.we(!1)};q.getAd=function(){return this.l};q.ag=function(){return this.B};q.ng=function(){return this.Ca};q.Dg=function(){return this.j};q.Bb=function(){return this.A};q.mg=function(){return this.C};q.bc=function(){return this.F};q.lg=function(){return this.wa};q.gg=function(){return this.g};
994
- q.wg=function(){return this.ib};q.dg=function(){return this.S};q.eg=function(){return this.i};q.Ig=function(){return this.$};q.Ae=function(a){this.$=a};q.Gg=function(){return this.Za};q.ef=function(){return this.m?this.m.getValue():this.A.currentTime};q.Df=function(a){this.J=a};q.Yc=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.dc=function(){this.I.Ba()};
995
- q.Ge=function(){var a=this,b;return M(function(c){switch(c.g){case 1:if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),A(c,document.exitFullscreen(),0);E(c,4);if(!document.pictureInPictureElement){c.D(6);break}return A(c,document.exitPictureInPicture(),6);case 6:return A(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){c.D(9);break}E(c,10);return A(c,screen.orientation.lock("landscape"),12);case 12:va(c,
996
- 9,4);break;case 10:I(c,4);case 9:va(c,0);break;case 4:b=I(c),a.dispatchEvent(new O("error",(new Map).set("detail",b))),c.D(0)}})};q.Ff=function(){X(this.K,!0);X(this.S,!0);this.g.setAttribute("ad-active","true")};q.jf=function(){X(this.K,!1);X(this.S,!1);this.g.removeAttribute("ad-active")};function wx(a){a.X&&a.A.duration&&(a.F.Se(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function vx(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
997
- function Sx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Ob()?a.J=Date.now():(Zx(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){$x(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&document.fullscreenEnabled&&a.Ge()})}
994
+ q.configure=function(a){this.i=a;this.B.We(a.castReceiverAppId);this.m&&(this.m=null);this.gb&&(this.gb=null);this.Ya&&(this.Ya=null);this.g?(uk(this.g),Px(this)):(Sx(this),Tx(this));this.j.classList.add("shaka-video-container");this.C.classList.add("shaka-video");Ux(this);this.i.addBigPlayButton&&Vx(this);this.i.customContextMenu&&(this.Ya=new yx(this.Z,this),this.H.push(this.Ya));this.ba||Wx(this);this.ib=S("div");this.ib.classList.add("shaka-server-side-ad-container");this.g.appendChild(this.ib);
995
+ Xx(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"))));Yx(this);this.xb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Kx(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",c)}};
996
+ q.xe=function(a){(this.X=a)?(this.j.setAttribute("shaka-controls","true"),this.C.tabIndex=-1,this.C.controls=!1):this.j.removeAttribute("shaka-controls");Kx(this)};q.Cf=function(a){this.C.controls=a;this.C.tabIndex=a?0:-1;a&&this.xe(!1)};q.getAd=function(){return this.l};q.ag=function(){return this.B};q.ng=function(){return this.Ca};q.Dg=function(){return this.j};q.Bb=function(){return this.A};q.mg=function(){return this.C};q.bc=function(){return this.F};q.lg=function(){return this.wa};q.gg=function(){return this.g};
997
+ q.wg=function(){return this.ib};q.dg=function(){return this.S};q.eg=function(){return this.i};q.Ig=function(){return this.$};q.Be=function(a){this.$=a};q.Gg=function(){return this.Za};q.gf=function(){return this.m?this.m.getValue():this.A.currentTime};q.Df=function(a){this.J=a};q.Yc=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.dc=function(){this.I.Ba()};
998
+ q.He=function(){var a=this,b;return M(function(c){switch(c.g){case 1:if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),A(c,document.exitFullscreen(),0);E(c,4);if(!document.pictureInPictureElement){c.D(6);break}return A(c,document.exitPictureInPicture(),6);case 6:return A(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){c.D(9);break}E(c,10);return A(c,screen.orientation.lock("landscape"),12);case 12:va(c,
999
+ 9,4);break;case 10:I(c,4);case 9:va(c,0);break;case 4:b=I(c),a.dispatchEvent(new O("error",(new Map).set("detail",b))),c.D(0)}})};q.Ff=function(){X(this.K,!0);X(this.S,!0);this.g.setAttribute("ad-active","true")};q.kf=function(){X(this.K,!1);X(this.S,!1);this.g.removeAttribute("ad-active")};function wx(a){a.X&&a.A.duration&&(a.F.Te(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function vx(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
1000
+ function Sx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Ob()?a.J=Date.now():(Zx(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){$x(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&document.fullscreenEnabled&&a.He()})}
998
1001
  function Vx(a){var b=S("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.gb=new xx(b,a);a.H.push(a.gb)}function Ux(a){var b=S("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function ay(a){a.K=S("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new sx(a.K,a);a.H.push(b);b=new rx(a.K,a);a.H.push(b)}
999
1002
  function Wx(a){a.ba=S("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=S("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
1000
1003
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
@@ -1003,9 +1006,9 @@ d.value,Rx.get(d)?(d=Rx.get(d).create(a.Z,a),"function"!=typeof d.release&&(zb("
1003
1006
  function Tx(a){a.S=S("div");a.S.classList.add("shaka-client-side-ad-container");X(a.S,!1);a.h.o(a.S,"click",function(){$x(a)});a.j.appendChild(a.S)}
1004
1007
  function Nx(a){a.h.o(a.F,"buffering",function(){a.X&&X(a.ba,a.F.Kc())});a.X&&X(a.ba,a.F.Kc());a.h.o(window,"keydown",function(b){cy(a,b)});a.h.o(window,"click",function(){return a.dc()});a.h.o(a,"submenuopen",function(){a.dc()});a.h.o(a.A,"play",function(){Kx(a)});a.h.o(a.A,"pause",function(){Kx(a)});a.h.o(a.j,"mousemove",function(b){Zx(a,b)});a.h.o(a.j,"touchmove",function(b){Zx(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Zx(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.Ba()});
1005
1008
  a.h.o(a.B,"caststatuschanged",function(){Ox(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)&&Zx(a,b);if(a.i.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.m&&!d&&(b.preventDefault(),dy(a,a.m.getValue()-5));break;case "ArrowRight":a.m&&!d&&(b.preventDefault(),dy(a,a.m.getValue()+5));break;case "Home":a.m&&dy(a,a.F.Ma().start);break;
1006
- case "End":a.m&&dy(a,a.F.Ma().end);break;case " ":e&&ey(a)}});a.h.o(a.j,"keyup",function(b){a.na["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.l=b.ad;a.Ff()});a.h.o(a.Xa,"ad-stopped",function(){a.l=null;a.jf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return M(function(b){return A(b,fy(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.C.offsetWidth,a.C.offsetHeight)})}
1009
+ case "End":a.m&&dy(a,a.F.Ma().end);break;case " ":e&&ey(a)}});a.h.o(a.j,"keyup",function(b){a.na["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.l=b.ad;a.Ff()});a.h.o(a.Xa,"ad-stopped",function(){a.l=null;a.kf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return M(function(b){return A(b,fy(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.C.offsetWidth,a.C.offsetHeight)})}
1007
1010
  function fy(a){return M(function(b){return a.A&&0!=a.A.readyState&&!a.B.ra()&&a.i.enableFullscreenOnRotation&&document.fullscreenEnabled?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?A(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?A(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
1008
- function Zx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Kx(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.jb=!0,a.I.stop(),a.Ob()||(Lx(a),Kx(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.R(3))}function gy(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
1011
+ function Zx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Kx(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.jb=!0,a.I.stop(),a.Ob()||(Lx(a),Kx(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.R(3))}function gy(a){return window.matchMedia("hover: hover").matches?a.xb.some(function(b){return b.matches(":hover")}):!1}
1009
1012
  function Kx(a){var b=a.l?a.l.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.jb||d||gy(a)?(Lx(a),a.g.setAttribute("shown","true"),a.ma.stop()):a.ma.R(a.i.fadeDelay)}function $x(a){a.X&&(a.Yc()?a.I.Ba():a.i.singleClickForPlayAndPause&&ey(a))}function ey(a){a.l&&a.l.isLinear()?vx(a):wx(a)}
1010
1013
  function Ox(a){var b=a.B.ra();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Ob=function(){return this.X?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function dy(a,b){a.m.changeTo(b);a.Ob()&&Lx(a)}
1011
1014
  function Lx(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.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 O("timeandseekrangeupdated"))}
@@ -1069,29 +1072,29 @@ a.ea("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1069
1072
  ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ea("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1070
1073
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1071
1074
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1072
- ["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.Ue(navigator.languages||[]);return a}N("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Ob;Y.prototype.hideAdUI=Y.prototype.jf;Y.prototype.showAdUI=Y.prototype.Ff;
1073
- Y.prototype.toggleFullScreen=Y.prototype.Ge;Y.prototype.hideSettingsMenus=Y.prototype.dc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.Yc;Y.prototype.setLastTouchEventTime=Y.prototype.Df;Y.prototype.getDisplayTime=Y.prototype.ef;Y.prototype.isCastAllowed=Y.prototype.Gg;Y.prototype.setSeeking=Y.prototype.Ae;Y.prototype.isSeeking=Y.prototype.Ig;Y.prototype.getConfig=Y.prototype.eg;Y.prototype.getClientSideAdContainer=Y.prototype.dg;Y.prototype.getServerSideAdContainer=Y.prototype.wg;
1074
- Y.prototype.getControlsContainer=Y.prototype.gg;Y.prototype.getLocalPlayer=Y.prototype.lg;Y.prototype.getPlayer=Y.prototype.bc;Y.prototype.getLocalVideo=Y.prototype.mg;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Dg;Y.prototype.getLocalization=Y.prototype.ng;Y.prototype.getCastProxy=Y.prototype.ag;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.Cf;Y.prototype.setEnabledShakaControls=Y.prototype.we;Y.prototype.configure=Y.prototype.configure;
1075
+ ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Ve(navigator.languages||[]);return a}N("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Ob;Y.prototype.hideAdUI=Y.prototype.kf;Y.prototype.showAdUI=Y.prototype.Ff;
1076
+ Y.prototype.toggleFullScreen=Y.prototype.He;Y.prototype.hideSettingsMenus=Y.prototype.dc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.Yc;Y.prototype.setLastTouchEventTime=Y.prototype.Df;Y.prototype.getDisplayTime=Y.prototype.gf;Y.prototype.isCastAllowed=Y.prototype.Gg;Y.prototype.setSeeking=Y.prototype.Be;Y.prototype.isSeeking=Y.prototype.Ig;Y.prototype.getConfig=Y.prototype.eg;Y.prototype.getClientSideAdContainer=Y.prototype.dg;Y.prototype.getServerSideAdContainer=Y.prototype.wg;
1077
+ Y.prototype.getControlsContainer=Y.prototype.gg;Y.prototype.getLocalPlayer=Y.prototype.lg;Y.prototype.getPlayer=Y.prototype.bc;Y.prototype.getLocalVideo=Y.prototype.mg;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Dg;Y.prototype.getLocalization=Y.prototype.ng;Y.prototype.getCastProxy=Y.prototype.ag;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.Cf;Y.prototype.setEnabledShakaControls=Y.prototype.xe;Y.prototype.configure=Y.prototype.configure;
1075
1078
  Y.prototype.loadComplete=Y.prototype.Jg;Y.prototype.allowCast=Y.prototype.Pf;Y.registerSeekBar=function(a){by=a};Y.registerElement=Qx;Y.prototype.destroy=Y.prototype.destroy;var Rx=new Map,by=new Jx;function iy(a,b){V.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=tk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=S("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1076
1079
  this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);jy(this);this.eventManager.o(this.localization,"locale-updated",function(){ky(c)});this.eventManager.o(this.localization,"locale-changed",function(){ky(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Df(Date.now());
1077
1080
  d.stopPropagation()});this.eventManager.o(this.g,"click",function(){ly(c)});ky(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}u(iy,V);iy.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=[];V.prototype.release.call(this)};function my(a,b){ny.set(a,b)}
1078
1081
  function jy(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,ny.get(c)?(c=ny.get(c),a.i.push(c.create(a.h,a.controls))):Sa("Unrecognized overflow menu element requested:",c)}function ly(a){if(a.controls.Yc())a.controls.dc();else{X(a.h,!0);Kx(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.h.childNodes,b)&&hb(a.h.childNodes,b)[0].focus()}}function ky(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1079
1082
  N("shaka.ui.OverflowMenu",iy);iy.registerElement=my;function oy(){}oy.prototype.create=function(a,b){return new iy(a,b)};Qx("overflow_menu",new oy);var ny=new Map;function py(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=S("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");d.appendChild(this.j);
1080
1083
  this.i=S("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);qy(this);ry(this);this.eventManager.o(this.localization,"locale-updated",function(){qy(c)});this.eventManager.o(this.localization,"locale-changed",function(){qy(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1081
- c.player.gf()==xm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){ry(c)})}u(py,V);function ry(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function qy(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}N("shaka.ui.AirPlayButton",py);function sy(){}sy.prototype.create=function(a,b){return new py(a,b)};my("airplay",new sy);
1082
- Qx("airplay",new sy);function ty(a,b,c){this.i=a;this.h=uy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Xd()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.De(b);b.ui=this;c.ui=this}q=ty.prototype;q.destroy=function(){var a=this;return M(function(b){if(1==b.g)return a.g?A(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?A(b,a.i.destroy(),4):b.D(4);a.i=null;D(b)})};q.Xd=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:ad()&&1<navigator.maxTouchPoints};
1083
- q.getConfiguration=function(){var a=uy(this);$k(a,this.h,uy(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=al(a,b));$k(this.h,a,uy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};q.fg=function(){return this.g};q.ih=function(a){this.g.we(a)};
1084
+ c.player.hf()==xm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){ry(c)})}u(py,V);function ry(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function qy(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}N("shaka.ui.AirPlayButton",py);function sy(){}sy.prototype.create=function(a,b){return new py(a,b)};my("airplay",new sy);
1085
+ Qx("airplay",new sy);function ty(a,b,c){this.i=a;this.h=uy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Yd()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.Ee(b);b.ui=this;c.ui=this}q=ty.prototype;q.destroy=function(){var a=this;return M(function(b){if(1==b.g)return a.g?A(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?A(b,a.i.destroy(),4):b.D(4);a.i=null;D(b)})};q.Yd=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:ad()&&1<navigator.maxTouchPoints};
1086
+ q.getConfiguration=function(){var a=uy(this);$k(a,this.h,uy(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=al(a,b));$k(this.h,a,uy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};q.fg=function(){return this.g};q.ih=function(a){this.g.xe(a)};
1084
1087
  function uy(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",
1085
1088
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",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)"},trackLabelFormat:vy,fadeDelay:0,
1086
- doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.Xd()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1089
+ doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.Yd()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1087
1090
  function wy(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return M(function(t){switch(t.g){case 1:Xt();if(!Fl())return xy("shaka-ui-load-failed",yy),t["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),zy(f,e));t.D(2);break}h=r(a);k=h.next();
1088
1091
  case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));E(t,7);return A(t,zy(l,m),9);case 9:va(t,5);break;case 7:return I(t),xy("shaka-ui-load-failed",Ay),t["return"]();case 5:k=h.next();t.D(4);break;case 2:xy("shaka-ui-loaded"),D(t)}})}
1089
1092
  function xy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1090
1093
  function zy(a,b){var c,d,e,f,g,h,k,l;return M(function(m){switch(m.g){case 1:c=new T(b);d=new ty(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.Cf(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
1091
- k=h.next();case 2:if(k.done){m.D(0);break}l=k.value;E(m,5);return A(m,d.g.bc().load(l.getAttribute("src")),7);case 7:m.D(0);break;case 5:I(m);case 3:k=h.next(),m.D(2)}})}N("shaka.ui.Overlay",ty);ty.prototype.setEnabled=ty.prototype.ih;ty.prototype.getControls=ty.prototype.fg;ty.prototype.configure=ty.prototype.configure;ty.prototype.getConfiguration=ty.prototype.getConfiguration;ty.prototype.isMobile=ty.prototype.Xd;ty.prototype.destroy=ty.prototype.destroy;var vy=0;
1094
+ k=h.next();case 2:if(k.done){m.D(0);break}l=k.value;E(m,5);return A(m,d.g.bc().load(l.getAttribute("src")),7);case 7:m.D(0);break;case 5:I(m);case 3:k=h.next(),m.D(2)}})}N("shaka.ui.Overlay",ty);ty.prototype.setEnabled=ty.prototype.ih;ty.prototype.getControls=ty.prototype.fg;ty.prototype.configure=ty.prototype.configure;ty.prototype.getConfiguration=ty.prototype.getConfiguration;ty.prototype.isMobile=ty.prototype.Yd;ty.prototype.destroy=ty.prototype.destroy;var vy=0;
1092
1095
  ty.TrackLabelFormat={LANGUAGE:vy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var yy=0,Ay=1;ty.FailReasonCode={NO_BROWSER_SUPPORT:yy,PLAYER_FAILED_TO_LOAD:Ay};"complete"==document.readyState?M(function(a){if(1==a.g)return A(a,Promise.resolve(),2);wy();D(a)}):window.addEventListener("load",wy);function By(a,b,c,d,e,f,g){function h(z,B){return z+": "+B}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=mx(b);uk(b);b.appendChild(m);m=new Map;for(var n=r(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var t=
1093
- n.Va.forced,v=f.resolve(dc.Kf),y=k(n.Va),x=h(p,y);if(!m.has(x)){m.add(x);var w=tk();w.addEventListener("click",function(z){return function(){c(z.Va)}}(n));var C=S("span");w.appendChild(C);C.textContent=Cy(p,f);switch(g){case vy:t&&(C.textContent+=" ("+v+")");break;case 1:y?C.textContent=y:(Sa("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+v+")");break;case 2:y&&(C.textContent+=": "+y);t&&(C.textContent+=" ("+v+")");
1094
- break;case 3:n.Va.label?C.textContent=n.Va.label:(Sa("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&x==l&&(w.appendChild(px()),C.classList.add("shaka-chosen-item"),w.ariaSelected="true",e.textContent=C.textContent);b.appendChild(w)}}}
1096
+ n.Va.forced,v=f.resolve(dc.Kf),w=k(n.Va),y=h(p,w);if(!m.has(y)){m.add(y);var x=tk();x.addEventListener("click",function(z){return function(){c(z.Va)}}(n));var C=S("span");x.appendChild(C);C.textContent=Cy(p,f);switch(g){case vy:t&&(C.textContent+=" ("+v+")");break;case 1:w?C.textContent=w:(Sa("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+v+")");break;case 2:w&&(C.textContent+=": "+w);t&&(C.textContent+=" ("+v+")");
1097
+ break;case 3:n.Va.label?C.textContent=n.Va.label:(Sa("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&y==l&&(x.appendChild(px()),C.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=C.textContent);b.appendChild(x)}}}
1095
1098
  function Cy(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=Vb(a);return a in ix?ix[a].s:c in ix?ix[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Dy(a,b,c){V.call(this,a,b);var d=this;Ey(this,c);Fy(this);Gy(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),X(d.menu,!0),ox(d.menu)):X(d.menu,!1)})}u(Dy,V);
1096
1099
  function Ey(a,b){a.button=tk();a.button.classList.add("shaka-overflow-button");a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=S("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=S("span");c.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1097
1100
  function Fy(a){a.menu=S("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=tk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.dc()});var b=S("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
@@ -1099,10 +1102,10 @@ S("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}
1099
1102
  function(){Jy(c)});Iy(this);Jy(this)}u(Hy,Dy);function Jy(a){var b=a.player.ab();By(b,a.menu,function(c){a.player.xd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);ox(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1100
1103
  function Iy(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}N("shaka.ui.AudioLanguageSelection",Hy);function Ky(){}Ky.prototype.create=function(a,b){return new Hy(a,b)};my("language",new Ky);Qx("language",new Ky);function Ly(a,b){V.call(this,a,b);var c=this;this.h=this.controls.B;this.g=tk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=S("span");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");
1101
1104
  d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);My(this);Ny(this);this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});this.eventManager.o(this.g,"click",function(){Oy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){Ny(c)})}u(Ly,V);
1102
- function Oy(a){var b;M(function(c){if(1==c.g){if(a.h.ra())return a.h.Gf(),c.D(0);E(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=I(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));D(c)})}function Ny(a){var b=a.h.Re()&&a.controls.Za,c=a.h.ra();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");Py(a)}
1105
+ function Oy(a){var b;M(function(c){if(1==c.g){if(a.h.ra())return a.h.Gf(),c.D(0);E(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=I(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));D(c)})}function Ny(a){var b=a.h.Se()&&a.controls.Za,c=a.h.ra();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");Py(a)}
1103
1106
  function Py(a){a.j.textContent=a.h.ra()?a.h.vd():a.localization.resolve("OFF")}function My(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");Py(a)}N("shaka.ui.CastButton",Ly);function Qy(){}Qy.prototype.create=function(a,b){return new Ly(a,b)};my("cast",new Qy);Qx("cast",new Qy);function Ry(a,b){V.call(this,a,b);var c=this;this.g=tk();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);Sy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){Sy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Sy(c)});
1104
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ab())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ie(d);c.g.setAttribute("shaka-status",d+"x")}})}u(Ry,V);function Sy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}N("shaka.ui.FastForwardButton",Ry);function Ty(){}Ty.prototype.create=function(a,b){return new Ry(a,b)};Qx("fast_forward",new Ty);function Uy(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Vy(this);this.eventManager.o(this.localization,"locale-updated",function(){Vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Vy(c)});this.eventManager.o(this.g,
1105
- "click",function(){return M(function(d){return A(d,c.controls.Ge(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Vy(c)})}u(Uy,V);function Vy(a){a.g.ariaLabel=a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN")}N("shaka.ui.FullscreenButton",Uy);function Wy(){}Wy.prototype.create=function(a,b){return new Uy(a,b)};Qx("fullscreen",new Wy);function Xy(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1107
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ab())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Je(d);c.g.setAttribute("shaka-status",d+"x")}})}u(Ry,V);function Sy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}N("shaka.ui.FastForwardButton",Ry);function Ty(){}Ty.prototype.create=function(a,b){return new Ry(a,b)};Qx("fast_forward",new Ty);function Uy(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Vy(this);this.eventManager.o(this.localization,"locale-updated",function(){Vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Vy(c)});this.eventManager.o(this.g,
1108
+ "click",function(){return M(function(d){return A(d,c.controls.He(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Vy(c)})}u(Uy,V);function Vy(a){a.g.ariaLabel=a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN")}N("shaka.ui.FullscreenButton",Uy);function Wy(){}Wy.prototype.create=function(a,b){return new Uy(a,b)};Qx("fullscreen",new Wy);function Xy(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1106
1109
  d.appendChild(this.l);this.g.appendChild(d);Yy(this);this.parent.appendChild(this.g);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(){c.video.loop=!c.video.loop;c.h.Ba();c.h.ha(1)});this.m=this.video.loop;this.h=new Q(function(){c.m!=c.video.loop&&(Yy(c),c.m=c.video.loop)});this.h.ha(1)}u(Xy,V);Xy.prototype.release=function(){this.h.stop();this.h=null;V.prototype.release.call(this)};
1107
1110
  function Yy(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}N("shaka.ui.LoopButton",Xy);function Zy(){}Zy.prototype.create=function(a,b){return new Xy(a,b)};my("loop",new Zy);Qx("loop",new Zy);Ax("loop",new Zy);function $y(a,b){V.call(this,a,b);var c=this;this.g=tk();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);az(this);bz(this);this.eventManager.o(this.localization,"locale-updated",function(){az(c)});this.eventManager.o(this.localization,"locale-changed",function(){az(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});
1108
1111
  this.eventManager.o(this.video,"volumechange",function(){az(c);bz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){az(c);bz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){az(c);bz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;az(c);bz(c)})}u($y,V);function az(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
@@ -1111,18 +1114,18 @@ this.h=S("span");this.h.classList.add("shaka-current-selection-span");d.appendCh
1111
1114
  "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!1):
1112
1115
  document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){gz(c)})}u(dz,V);function fz(a){var b;M(function(c){if(1==c.g)return E(c,2),document.pictureInPictureElement?A(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),A(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=I(c);a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));D(c)})}
1113
1116
  function ez(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1114
- function gz(a){M(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.mf())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?A(b,document.exitPictureInPicture(),0):b.D(0)})}N("shaka.ui.PipButton",dz);function hz(){}hz.prototype.create=function(a,b){return new dz(a,b)};my("picture_in_picture",new hz);Qx("picture_in_picture",new hz);Ax("picture_in_picture",new hz);function iz(a,b){Dy.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(){jz(c)});this.eventManager.o(this.localization,"locale-changed",function(){jz(c)});this.eventManager.o(this.player,"ratechange",function(){kz(c,c.player.Ab())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1117
+ function gz(a){M(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.nf())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?A(b,document.exitPictureInPicture(),0):b.D(0)})}N("shaka.ui.PipButton",dz);function hz(){}hz.prototype.create=function(a,b){return new dz(a,b)};my("picture_in_picture",new hz);Qx("picture_in_picture",new hz);Ax("picture_in_picture",new hz);function iz(a,b){Dy.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(){jz(c)});this.eventManager.o(this.localization,"locale-changed",function(){jz(c)});this.eventManager.o(this.player,"ratechange",function(){kz(c,c.player.Ab())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1115
1118
  "x",d]}));jz(this);lz(this);kz(this,this.player.Ab())}u(iz,Dy);function jz(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")}
1116
1119
  function kz(a,b){var c=nx(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(px()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1117
- "x")}function lz(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={tc:b.tc},d=c.next()){b.tc=d.value;d=tk();var e=S("span");e.textContent=b.tc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.tc);a.video.defaultPlaybackRate=a.g.get(f.tc)}}(b));a.menu.appendChild(d)}ox(a.menu)}N("shaka.ui.PlaybackRateSelection",iz);function mz(){}mz.prototype.create=function(a,b){return new iz(a,b)};my("playback_rate",new mz);Qx("playback_rate",new mz);function nz(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-current-time");oz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ma().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.ef(),f=c.video.duration,g=c.player.Ma(),h=g.end-g.start;c.player.T()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(oz(c,"- "+qx(e,f)),c.g.disabled=
1120
+ "x")}function lz(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={tc:b.tc},d=c.next()){b.tc=d.value;d=tk();var e=S("span");e.textContent=b.tc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.tc);a.video.defaultPlaybackRate=a.g.get(f.tc)}}(b));a.menu.appendChild(d)}ox(a.menu)}N("shaka.ui.PlaybackRateSelection",iz);function mz(){}mz.prototype.create=function(a,b){return new iz(a,b)};my("playback_rate",new mz);Qx("playback_rate",new mz);function nz(a,b){V.call(this,a,b);var c=this;this.g=tk();this.g.classList.add("shaka-current-time");oz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ma().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.gf(),f=c.video.duration,g=c.player.Ma(),h=g.end-g.start;c.player.T()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(oz(c,"- "+qx(e,f)),c.g.disabled=
1118
1121
  !1):(oz(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=qx(e,d),f&&(e+=" / "+qx(f,d)),oz(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"))})}u(nz,V);function oz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}N("shaka.ui.PresentationTimeTracker",nz);function pz(){}pz.prototype.create=function(a,b){return new nz(a,b)};Qx("time_and_duration",new pz);function qz(a,b){Dy.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(){rz(c)});this.eventManager.o(this.localization,"locale-changed",function(){rz(c)});this.eventManager.o(this.player,"variantchanged",function(){sz(c)});this.eventManager.o(this.player,"trackschanged",function(){sz(c)});this.eventManager.o(this.player,
1119
1122
  "abrstatuschanged",function(){sz(c)});sz(this);rz(this)}u(qz,Dy);
1120
1123
  function sz(a){var b=a.player.ab();if(b.length&&!b[0].height)X(a.menu,!1),X(a.button,!1);else{X(a.button,!0);b.sort(function(k,l){return l.height-k.height});var 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 b.findIndex(function(m){return m.height==k.height})==l});var d=mx(a.menu);uk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e=
1121
- {wc:e.wc},g=f.next()){e.wc=g.value;g=tk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.wc;a.player.configure({abr:{enabled:!1}});a.player.ue(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=e.wc.height+"p";g.appendChild(h);d||e.wc!=c||(g.ariaSelected="true",g.appendChild(px()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=tk();e.classList.add("shaka-enable-abr-button");
1124
+ {wc:e.wc},g=f.next()){e.wc=g.value;g=tk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.wc;a.player.configure({abr:{enabled:!1}});a.player.ve(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=e.wc.height+"p";g.appendChild(h);d||e.wc!=c||(g.ariaSelected="true",g.appendChild(px()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=tk();e.classList.add("shaka-enable-abr-button");
1122
1125
  a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});sz(a)});a.g=S("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(px()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);ox(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"))}}
1123
1126
  function rz(a){a.button.ariaLabel=a.localization.resolve("RESOLUTION");a.backButton.ariaLabel=a.localization.resolve("RESOLUTION");a.backSpan.textContent=a.localization.resolve("RESOLUTION");a.nameSpan.textContent=a.localization.resolve("RESOLUTION");a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}N("shaka.ui.ResolutionSelection",qz);function tz(){}
1124
1127
  tz.prototype.create=function(a,b){return new qz(a,b)};my("quality",new tz);Qx("quality",new tz);function uz(a,b){V.call(this,a,b);var c=this;this.g=tk();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);vz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){vz(c)});this.eventManager.o(this.localization,"locale-changed",function(){vz(c)});
1125
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ab())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ie(d);c.g.setAttribute("shaka-status",d+"x")}})}u(uz,V);function vz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}N("shaka.ui.RewindButton",uz);function wz(){}wz.prototype.create=function(a,b){return new uz(a,b)};Qx("rewind",new wz);function xz(a,b){V.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=tk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);yz(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1128
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ab())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Je(d);c.g.setAttribute("shaka-status",d+"x")}})}u(uz,V);function vz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}N("shaka.ui.RewindButton",uz);function wz(){}wz.prototype.create=function(a,b){return new uz(a,b)};Qx("rewind",new wz);function xz(a,b){V.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=tk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);yz(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1126
1129
  d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){yz(c)});this.eventManager.o(this.localization,"locale-changed",function(){yz(c)});this.eventManager.o(this.adManager,"ad-started",function(){zz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1127
1130
  "click",function(){c.ad.skip()});this.ad&&zz(this)}u(xz,V);xz.prototype.release=function(){this.i.stop();this.i=null;V.prototype.release.call(this)};function yz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function zz(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.Ba(),a.i.ha(.5))}N("shaka.ui.SkipAdButton",xz);function Az(a,b){ux.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}u(Az,ux);Az.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Az.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)}};
1128
1131
  N("shaka.ui.SmallPlayButton",Az);function Bz(){}Bz.prototype.create=function(a,b){return new Az(a,b)};Qx("play_pause",new Bz);function Cz(a,b){V.call(this,a,b);var c=S("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}u(Cz,V);N("shaka.ui.Spacer",Cz);function Dz(){}Dz.prototype.create=function(a,b){return new Cz(a,b)};Qx("spacer",new Dz);function Ez(a,b){function c(l){return qx(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}V.call(this,a,b);var h=this;this.i=tk();this.i.classList.add("shaka-statistics-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=S("label");k.classList.add("shaka-overflow-button-label");
@@ -1134,9 +1137,9 @@ function Gz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.n
1134
1137
  Hz.prototype.create=function(a,b){return new Ez(a,b)};my("statistics",new Hz);Ax("statistics",new Hz);function Iz(a,b){Dy.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.Pb()?this.button.ariaPressed="true":this.button.ariaPressed="false";Jz(this);this.eventManager.o(this.localization,"locale-updated",function(){Kz(c);Lz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Kz(c);Lz(c)});this.eventManager.o(this.player,
1135
1138
  "texttrackvisibility",function(){Mz(c);Lz(c)});this.eventManager.o(this.player,"textchanged",function(){Lz(c)});this.eventManager.o(this.player,"trackschanged",function(){Nz(c)});Mz(this);Kz(this);Lz(this);Nz(this)}u(Iz,Dy);function Jz(a){var b=tk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(px());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1136
1139
  function Mz(a){a.player.Pb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1137
- function Lz(a){var b=a.player.pb();By(b,a.menu,function(c){return Oz(a,c)},a.player.Pb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=tk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ce(!1);Lz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Pb()||(b.ariaSelected="true",b.appendChild(px()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1138
- a.currentSelection.textContent);ox(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function Oz(a,b){return M(function(c){a.player.se(b);return A(c,a.player.Ce(!0),0)})}function Kz(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")}
1139
- function Nz(a){var b=0<a.player.pb().length;X(a.button,b);Lz(a)}N("shaka.ui.TextSelection",Iz);function Pz(){}Pz.prototype.create=function(a,b){return new Iz(a,b)};my("captions",new Pz);Qx("captions",new Pz);function Qz(a,b){Cx.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 Rz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Sz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return Sz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return Rz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return Tz(c)});
1140
+ function Lz(a){var b=a.player.qb();By(b,a.menu,function(c){return Oz(a,c)},a.player.Pb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=tk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.De(!1);Lz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Pb()||(b.ariaSelected="true",b.appendChild(px()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1141
+ a.currentSelection.textContent);ox(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function Oz(a,b){return M(function(c){a.player.ue(b);return A(c,a.player.De(!0),0)})}function Kz(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")}
1142
+ function Nz(a){var b=0<a.player.qb().length;X(a.button,b);Lz(a)}N("shaka.ui.TextSelection",Iz);function Pz(){}Pz.prototype.create=function(a,b){return new Iz(a,b)};my("captions",new Pz);Qx("captions",new Pz);function Qz(a,b){Cx.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 Rz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Sz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return Sz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return Rz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return Tz(c)});
1140
1143
  this.eventManager.o(this.localization,"locale-changed",function(){return Tz(c)});Rz(this);Tz(this);if(this.ad)this.onChange()}u(Qz,Cx);Qz.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 Rz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Uz(a)}function Sz(a){var b=a.ad.getVolume();a.setValue(b);Uz(a)}
1141
1144
  function Uz(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 Tz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}N("shaka.ui.VolumeBar",Qz);function Vz(){}Vz.prototype.create=function(a,b){return new Qz(a,b)};Qx("volume",new Vz);}).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})();
1142
1145