shaka-player 4.3.14 → 4.3.16

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 (75) hide show
  1. package/.github/workflows/appspot.yaml +4 -4
  2. package/.github/workflows/build-and-test.yaml +23 -10
  3. package/.github/workflows/custom-actions/set-commit-status/action.yaml +29 -7
  4. package/.github/workflows/demo-version-index.yaml +3 -3
  5. package/.github/workflows/nightly-demo.yaml +4 -4
  6. package/.github/workflows/release-please.yaml +25 -24
  7. package/.github/workflows/report-incremental-coverage.yaml +1 -1
  8. package/.github/workflows/selenium-lab-tests.yaml +30 -18
  9. package/.github/workflows/shaka-bot-commands/lib.sh +37 -12
  10. package/.github/workflows/shaka-bot-commands/main.sh +4 -2
  11. package/.github/workflows/sync-labels.yaml +1 -1
  12. package/.github/workflows/talk-to-shaka-bot.yaml +2 -1
  13. package/.github/workflows/update-issues.yaml +1 -1
  14. package/.github/workflows/update-screenshots.yaml +25 -38
  15. package/CHANGELOG.md +37 -0
  16. package/demo/demo.less +1 -5
  17. package/dist/controls.css +1 -1
  18. package/dist/controls.css.map +1 -1
  19. package/dist/demo.css +1 -1
  20. package/dist/demo.css.map +1 -1
  21. package/dist/deps.js +0 -1
  22. package/dist/locales.js +32 -32
  23. package/dist/shaka-player.compiled.d.ts +6 -10
  24. package/dist/shaka-player.compiled.debug.d.ts +6 -10
  25. package/dist/shaka-player.compiled.debug.externs.js +13 -11
  26. package/dist/shaka-player.compiled.debug.js +222 -217
  27. package/dist/shaka-player.compiled.debug.map +4 -4
  28. package/dist/shaka-player.compiled.externs.js +13 -11
  29. package/dist/shaka-player.compiled.js +855 -853
  30. package/dist/shaka-player.compiled.map +4 -4
  31. package/dist/shaka-player.ui.d.ts +6 -10
  32. package/dist/shaka-player.ui.debug.d.ts +6 -10
  33. package/dist/shaka-player.ui.debug.externs.js +13 -11
  34. package/dist/shaka-player.ui.debug.js +171 -167
  35. package/dist/shaka-player.ui.debug.map +4 -4
  36. package/dist/shaka-player.ui.externs.js +13 -11
  37. package/dist/shaka-player.ui.js +950 -948
  38. package/dist/shaka-player.ui.map +4 -4
  39. package/docs/tutorials/faq.md +25 -0
  40. package/docs/tutorials/offline.md +3 -0
  41. package/docs/tutorials/ui.md +4 -4
  42. package/externs/shaka/player.js +32 -19
  43. package/lib/cast/cast_proxy.js +1 -3
  44. package/lib/cast/cast_sender.js +8 -11
  45. package/lib/cea/cea608_memory.js +1 -1
  46. package/lib/dash/dash_parser.js +3 -0
  47. package/lib/dash/segment_template.js +5 -0
  48. package/lib/deprecate/deprecate.js +1 -1
  49. package/lib/hls/hls_parser.js +34 -17
  50. package/lib/media/drm_engine.js +17 -3
  51. package/lib/media/manifest_parser.js +2 -1
  52. package/lib/media/presentation_timeline.js +23 -0
  53. package/lib/media/segment_index.js +10 -0
  54. package/lib/media/streaming_engine.js +1 -13
  55. package/lib/player.js +19 -5
  56. package/lib/polyfill/mediasource.js +5 -36
  57. package/lib/text/ui_text_displayer.js +10 -1
  58. package/lib/text/vtt_text_parser.js +2 -1
  59. package/lib/util/error.js +1 -0
  60. package/lib/util/manifest_parser_utils.js +1 -0
  61. package/lib/util/stream_utils.js +8 -5
  62. package/package.json +2 -2
  63. package/test/cast/cast_proxy_unit.js +0 -46
  64. package/test/cast/cast_sender_unit.js +26 -26
  65. package/test/cea/cea608_memory_unit.js +3 -2
  66. package/test/hls/hls_live_unit.js +52 -0
  67. package/test/hls/hls_parser_unit.js +28 -0
  68. package/test/media/media_source_engine_integration.js +1 -1
  69. package/test/player_integration.js +9 -1
  70. package/test/player_load_graph_integration.js +13 -7
  71. package/test/player_src_equals_integration.js +2 -2
  72. package/test/player_unit.js +22 -4
  73. package/test/text/vtt_text_parser_unit.js +31 -0
  74. package/ui/less/containers.less +1 -0
  75. package/lib/polyfill/storage_estimate.js +0 -57
@@ -16,48 +16,48 @@
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  */
18
18
  var r;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
19
- function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
20
- ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
21
- ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
22
- function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ha(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ja;
23
- if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var la;a:{var na={a:!0},oa={};try{oa.__proto__=na;la=oa.a;break a}catch(a){}la=!1}ja=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ja;
24
- function ra(a,b){a.prototype=ia(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.Aj=b.prototype}function ta(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ua(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}ta.prototype.B=function(a){this.h=a};
25
- function va(a,b){a.i={Jf:b,Rf:!0};a.g=a.m||a.j}ta.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ta.prototype.D=function(a){this.g=a};function C(a){a.g=0}function wa(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ya(a){a.m=0;a.j=2}function za(a,b,c){a.g=b;a.m=c||0}function Aa(a,b){a.m=b||0;b=a.i.Jf;a.i=null;return b}function Ba(a){a.C=[a.i];a.m=0;a.j=0}
26
- function Ca(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Rf?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 Da(a){this.g=new ta;this.h=a}function Ea(a,b){ua(a.g);var c=a.g.l;if(c)return Fa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ga(a)}
27
- function Fa(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,va(a.g,g),Ga(a)}a.g.l=null;d.call(a.g,f);return Ga(a)}function Ga(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,va(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Rf)throw b.Jf;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
28
- function Ia(a){this.next=function(b){ua(a.g);a.g.l?b=Fa(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ga(a));return b};this.throw=function(b){ua(a.g);a.g.l?b=Fa(a,a.g.l["throw"],b,a.g.B):(va(a.g,b),b=Ga(a));return b};this.return=function(b){return Ea(a,b)};this[Symbol.iterator]=function(){return this}}function Ja(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
29
- function D(a){return Ja(new Ia(new Da(a)))}function Ka(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
30
- ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
19
+ function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=ca(this);function fa(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
20
+ fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
21
+ fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
22
+ function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
23
+ if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;la=pa.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ka;
24
+ function sa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(qa)qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Bj=b.prototype}function ua(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function va(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}ua.prototype.B=function(a){this.h=a};
25
+ function wa(a,b){a.i={If:b,Qf:!0};a.g=a.m||a.j}ua.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ua.prototype.D=function(a){this.g=a};function C(a){a.g=0}function xa(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function za(a){a.m=0;a.j=2}function Aa(a,b,c){a.g=b;a.m=c||0}function Ba(a,b){a.m=b||0;b=a.i.If;a.i=null;return b}function Ca(a){a.C=[a.i];a.m=0;a.j=0}
26
+ function Da(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Qf?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 Ea(a){this.g=new ua;this.h=a}function Fa(a,b){va(a.g);var c=a.g.l;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ha(a)}
27
+ function Ga(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,wa(a.g,g),Ha(a)}a.g.l=null;d.call(a.g,f);return Ha(a)}function Ha(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,wa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Qf)throw b.If;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
28
+ function Ia(a){this.next=function(b){va(a.g);a.g.l?b=Ga(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ha(a));return b};this.throw=function(b){va(a.g);a.g.l?b=Ga(a,a.g.l["throw"],b,a.g.B):(wa(a.g,b),b=Ha(a));return b};this.return=function(b){return Fa(a,b)};this[Symbol.iterator]=function(){return this}}function Ja(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
29
+ function D(a){return Ja(new Ia(new Ea(a)))}function Ka(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
30
+ fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
31
31
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.l)}};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.m(g)}};
32
- b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
33
- function(){if(this.s)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
34
- b.prototype.J=function(g){var h=this.j();g.sd(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,q){return"function"==typeof p?function(v){try{l(p(v))}catch(w){m(w)}}:q}var l,m,n=new b(function(p,q){l=p;m=q});this.sd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.sd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
35
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).sd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(w){p[v]=w;q--;0==q&&l(p)}}var p=[],q=0;do p.push(void 0),q++,d(k.value).sd(n(p.length-1),m),k=h.next();
32
+ b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
33
+ function(){if(this.s)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
34
+ b.prototype.J=function(g){var h=this.j();g.rd(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,q){return"function"==typeof p?function(v){try{l(p(v))}catch(w){m(w)}}:q}var l,m,n=new b(function(p,q){l=p;m=q});this.rd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.rd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
35
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).rd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(w){p[v]=w;q--;0==q&&l(p)}}var p=[],q=0;do p.push(void 0),q++,d(k.value).rd(n(p.length-1),m),k=h.next();
36
36
  while(!k.done)})};return b});function La(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
37
- ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!La(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
37
+ fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!La(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({}),
38
38
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(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(!La(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&La(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&La(k,
39
39
  g)&&La(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&La(k,g)&&La(k[g],this.g)?delete k[g][this.g]:!1};return b});
40
- ea("Map",function(a){function b(){var h={};return h.rb=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.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&&La(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,za:n}}return{id:l,
41
- list:m,index:-1,za:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
42
- "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,
43
- 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(),
44
- m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ma(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return Ma(this,function(b){return b})}});
45
- ea("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
40
+ 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&&La(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,ya:n}}return{id:l,
41
+ list:m,index:-1,ya:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
42
+ "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.ya?l.ya.value=k:(l.ya={next:this.g,qb:this.g.qb,head:this.g,key:h,value:k},l.list.push(l.ya),this.g.qb.next=l.ya,this.g.qb=l.ya,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.ya&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.ya.qb.next=h.ya.next,h.ya.next.qb=h.ya.qb,
43
+ h.ya.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).ya};e.prototype.get=function(h){return(h=d(this,h).ya)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
44
+ m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ma(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 Ma(this,function(b){return b})}});
45
+ fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
46
46
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
47
- b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
48
- function Na(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{Pf:e,v:f}}return{Pf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Na(this,b,c).Pf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
49
- ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Oa(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
50
- ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Oa(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Oa(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
51
- var Sa="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)La(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Sa});ea("Array.prototype.values",function(a){return a?a:function(){return Ma(this,function(b,c){return c})}});
52
- ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
53
- ea("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
54
- ea("Array.prototype.entries",function(a){return a?a:function(){return Ma(this,function(b,c){return[b,c]})}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Oa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
55
- ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push([d,b[d]]);return c}});var Ta=this||self;
56
- function G(a,b){a=a.split(".");var c=Ta;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function I(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
57
- function Ua(a){var b=new I(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}I.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};I.prototype.stopImmediatePropagation=function(){this.g=!0};I.prototype.stopPropagation=function(){};G("shaka.util.FakeEvent",I);
58
- var Va={ai:"abrstatuschanged",bi:"adaptation",ci:"buffering",gi:"downloadfailed",ii:"downloadheadersreceived",ji:"drmsessionupdate",ri:"emsg",Si:"prft",Error:"error",si:"expirationupdated",xi:"gapjumped",Bi:"loaded",Ci:"loading",Hi:"manifestparsed",Ii:"mediaqualitychanged",Metadata:"metadata",Mi:"onstatechange",Ni:"onstateidle",Xi:"ratechange",cj:"segmentappended",dj:"sessiondata",ej:"stalldetected",fj:"streaming",gj:"textchanged",hj:"texttrackvisibility",ij:"timelineregionadded",jj:"timelineregionenter",
59
- kj:"timelineregionexit",lj:"trackschanged",qj:"unloading",sj:"variantchanged"};function Wa(){}function Xa(){}function Za(){}function $a(a){var b=Ka.apply(1,arguments);bb.has(a)||(bb.add(a),Za.apply(Wa,ha(b)))}function cb(){}function db(){}function eb(){}function gb(){}var bb=new Set;window.console&&(Za=function(){return console.warn.apply(console,ha(Ka.apply(0,arguments)))},Xa=function(){console.error.apply(console,ha(Ka.apply(0,arguments)))});function hb(){this.g={}}r=hb.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.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])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function ib(){this.va=new hb;this.Md=this}ib.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};ib.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};ib.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=t(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};
60
- ib.prototype.release=function(){this.va=null};function kb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function lb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function mb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function nb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
47
+ b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
48
+ function Na(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{Of:e,v:f}}return{Of:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Na(this,b,c).Of}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
49
+ fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Oa(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
50
+ fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Oa(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Oa(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
51
+ var Ra="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)La(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Ra});fa("Array.prototype.values",function(a){return a?a:function(){return Ma(this,function(b,c){return c})}});
52
+ fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
53
+ fa("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
54
+ fa("Array.prototype.entries",function(a){return a?a:function(){return Ma(this,function(b,c){return[b,c]})}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Oa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
55
+ fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push([d,b[d]]);return c}});var Sa=this||self;
56
+ function G(a,b){a=a.split(".");var c=Sa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function I(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
57
+ function Ta(a){var b=new I(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}I.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};I.prototype.stopImmediatePropagation=function(){this.g=!0};I.prototype.stopPropagation=function(){};G("shaka.util.FakeEvent",I);
58
+ var Ua={bi:"abrstatuschanged",ci:"adaptation",di:"buffering",ii:"downloadfailed",ji:"downloadheadersreceived",ki:"drmsessionupdate",si:"emsg",Ti:"prft",Error:"error",ti:"expirationupdated",zi:"gapjumped",Ci:"loaded",Di:"loading",Ii:"manifestparsed",Ji:"mediaqualitychanged",Metadata:"metadata",Ni:"onstatechange",Oi:"onstateidle",Yi:"ratechange",dj:"segmentappended",ej:"sessiondata",fj:"stalldetected",gj:"streaming",hj:"textchanged",ij:"texttrackvisibility",jj:"timelineregionadded",kj:"timelineregionenter",
59
+ lj:"timelineregionexit",mj:"trackschanged",rj:"unloading",tj:"variantchanged"};function Va(){}function Wa(){}function Ya(){}function $a(a){var b=Ka.apply(1,arguments);ab.has(a)||(ab.add(a),Ya.apply(Va,ia(b)))}function bb(){}function cb(){}function db(){}function gb(){}var ab=new Set;window.console&&(Ya=function(){return console.warn.apply(console,ia(Ka.apply(0,arguments)))},Wa=function(){console.error.apply(console,ia(Ka.apply(0,arguments)))});function hb(){this.g={}}r=hb.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.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])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function jb(){this.ua=new hb;this.Md=this}jb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};jb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};jb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Md;a.currentTarget=this.Md;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
60
+ jb.prototype.release=function(){this.ua=null};function kb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function lb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function mb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function nb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
61
61
  @license
62
62
  Copyright 2008 The Closure Library Authors
63
63
  SPDX-License-Identifier: Apache-2.0
@@ -67,13 +67,13 @@ var ob=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
67
67
  Copyright 2006 The Closure Library Authors
68
68
  SPDX-License-Identifier: Apache-2.0
69
69
  */
70
- function pb(a){var b;a instanceof pb?(qb(this,a.Xa),this.Xb=a.Xb,this.cb=a.cb,rb(this,a.rc),this.Ka=a.Ka,sb(this,a.g.clone()),this.Mb=a.Mb):a&&(b=String(a).match(ob))?(qb(this,b[1]||"",!0),this.Xb=tb(b[2]||""),this.cb=tb(b[3]||"",!0),rb(this,b[4]),this.Ka=tb(b[5]||"",!0),sb(this,b[6]||"",!0),this.Mb=tb(b[7]||"")):this.g=new ub(null)}r=pb.prototype;r.Xa="";r.Xb="";r.cb="";r.rc=null;r.Ka="";r.Mb="";
71
- r.toString=function(){var a=[],b=this.Xa;b&&a.push(vb(b,wb,!0),":");if(b=this.cb){a.push("//");var c=this.Xb;c&&a.push(vb(c,wb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.rc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(vb(b,"/"==b.charAt(0)?xb:yb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Mb)&&a.push("#",vb(b,zb));return a.join("")};
72
- r.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new pb);var c=!!a.Xa;c?qb(b,a.Xa):c=!!a.Xb;c?b.Xb=a.Xb:c=!!a.cb;c?b.cb=a.cb:c=null!=a.rc;var d=a.Ka;if(c)rb(b,a.rc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.cb&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
73
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ka=d:c=""!==a.g.toString();c?sb(b,a.g.clone()):c=!!a.Mb;c&&(b.Mb=a.Mb);return b};r.clone=function(){return new pb(this)};function qb(a,b,c){a.Xa=c?tb(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function rb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.rc=b}else a.rc=null}function sb(a,b,c){b instanceof ub?a.g=b:(c||(b=vb(b,Ab)),a.g=new ub(b))}
70
+ function pb(a){var b;a instanceof pb?(qb(this,a.Xa),this.Yb=a.Yb,this.cb=a.cb,rb(this,a.rc),this.Ja=a.Ja,sb(this,a.g.clone()),this.Mb=a.Mb):a&&(b=String(a).match(ob))?(qb(this,b[1]||"",!0),this.Yb=tb(b[2]||""),this.cb=tb(b[3]||"",!0),rb(this,b[4]),this.Ja=tb(b[5]||"",!0),sb(this,b[6]||"",!0),this.Mb=tb(b[7]||"")):this.g=new ub(null)}r=pb.prototype;r.Xa="";r.Yb="";r.cb="";r.rc=null;r.Ja="";r.Mb="";
71
+ r.toString=function(){var a=[],b=this.Xa;b&&a.push(vb(b,wb,!0),":");if(b=this.cb){a.push("//");var c=this.Yb;c&&a.push(vb(c,wb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.rc;null!=b&&a.push(":",String(b))}if(b=this.Ja)this.cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(vb(b,"/"==b.charAt(0)?xb:yb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Mb)&&a.push("#",vb(b,zb));return a.join("")};
72
+ r.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new pb);var c=!!a.Xa;c?qb(b,a.Xa):c=!!a.Yb;c?b.Yb=a.Yb:c=!!a.cb;c?b.cb=a.cb:c=null!=a.rc;var d=a.Ja;if(c)rb(b,a.rc);else if(c=!!a.Ja){if("/"!=d.charAt(0))if(this.cb&&!this.Ja)d="/"+d;else{var e=b.Ja.lastIndexOf("/");-1!=e&&(d=b.Ja.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
73
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ja=d:c=""!==a.g.toString();c?sb(b,a.g.clone()):c=!!a.Mb;c&&(b.Mb=a.Mb);return b};r.clone=function(){return new pb(this)};function qb(a,b,c){a.Xa=c?tb(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function rb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.rc=b}else a.rc=null}function sb(a,b,c){b instanceof ub?a.g=b:(c||(b=vb(b,Ab)),a.g=new ub(b))}
74
74
  function tb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function vb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Bb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Bb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var wb=/[#\/\?@]/g,yb=/[#\?:]/g,xb=/[#\?]/g,Ab=/[#\?@]/g,zb=/#/g;function ub(a){this.g=a||null}
75
- function Cb(a){if(!a.Fa&&(a.Fa={},a.wd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}r=ub.prototype;r.Fa=null;r.wd=null;r.add=function(a,b){Cb(this);this.g=null;var c=this.Fa.hasOwnProperty(a)?this.Fa[a]:null;c||(this.Fa[a]=c=[]);c.push(b);this.wd++;return this};
76
- r.set=function(a,b){Cb(this);this.g=null;this.Fa.hasOwnProperty(a)?this.Fa[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.Fa)return"";var a=[],b;for(b in this.Fa)for(var c=encodeURIComponent(b),d=this.Fa[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new ub;a.g=this.g;if(this.Fa){var b={},c;for(c in this.Fa)b[c]=this.Fa[c].concat();a.Fa=b;a.wd=this.wd}return a};function K(a,b,c){var d=Ka.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}K.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};G("shaka.util.Error",K);K.Severity={RECOVERABLE:1,CRITICAL:2};K.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
75
+ function Cb(a){if(!a.Ea&&(a.Ea={},a.vd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}r=ub.prototype;r.Ea=null;r.vd=null;r.add=function(a,b){Cb(this);this.g=null;var c=this.Ea.hasOwnProperty(a)?this.Ea[a]:null;c||(this.Ea[a]=c=[]);c.push(b);this.vd++;return this};
76
+ r.set=function(a,b){Cb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new ub;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.vd=this.vd}return a};function K(a,b,c){var d=Ka.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}K.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};G("shaka.util.Error",K);K.Severity={RECOVERABLE:1,CRITICAL:2};K.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
77
77
  K.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
78
78
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,
79
79
  WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,
@@ -83,7 +83,7 @@ NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILE
83
83
  LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,
84
84
  LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function Db(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new pb(a[0]);b=new pb(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new pb(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new pb(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c}
85
85
  function Eb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function Fb(a,b){if(1==b.length)return b[0];a=Gb(a,b);if(null!=a)return a;throw new K(2,4,4025,b);}
86
- function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ia:"video",Kb:"audio",ia:Ib,Dc:"image",Yh:"application"},Hb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Ob(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Qb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Rb(a,b){var c=Sb(a),d=Sb(b);return a!=c&&b!=d&&c==d}
86
+ function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ha:"video",Jb:"audio",ha:Ib,Dc:"image",Zh:"application"},Hb={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/,/^iamf/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Ob(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Qb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Rb(a,b){var c=Sb(a),d=Sb(b);return a!=c&&b!=d&&c==d}
87
87
  function Tb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}function Sb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Qb.get(a)||a}function Ub(a){return a.language?Mb(a.language):a.audio&&a.audio.language?Mb(a.audio.language):a.video&&a.video.language?Mb(a.video.language):"und"}
88
88
  function Vb(a,b){a=Mb(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(Mb(b.value));d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Nb(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Ob(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Nb(a,b))return b;return null}G("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Vb;Kb.getLocaleForVariant=Ub;
89
89
  Kb.getLocaleForText=function(a){return Mb(a.language||"und")};Kb.getBase=Sb;Kb.relatedness=Tb;Kb.areSiblings=Rb;Kb.normalize=Mb;Kb.isSiblingOf=Ob;Kb.isParentOf=Nb;Kb.areLanguageCompatible=Lb;Kb.areLocaleCompatible=function(a,b){a=Mb(a);b=Mb(b);return a==b};
@@ -92,13 +92,13 @@ var Qb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
92
92
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
93
93
  "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",
94
94
  "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",
95
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){ib.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}ra(Wb,ib);r=Wb.prototype;r.release=function(){ib.prototype.release.call(this)};
96
- r.Cf=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Xb(this);a=nb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new I("unknown-locales",(new Map).set("locales",a)));a=nb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new I("locale-changed",a))};
97
- r.ka=function(a,b,c){a=Mb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new I("locale-updated"));return this};r.Ih=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};r.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 I("unknown-localization",a));return""};
98
- function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={ac:f.ac},h=g.next()){f.ac=h.value;e.add(f.ac);e.add(Sb(f.ac));h=nb(b.keys(),function(l){return function(m){return Rb(m,l.ac)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=nb(b.keys(),function(l){return function(m){return Sb(m)==l.ac}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
95
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){jb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}sa(Wb,jb);r=Wb.prototype;r.release=function(){jb.prototype.release.call(this)};
96
+ r.Bf=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Xb(this);a=nb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new I("unknown-locales",(new Map).set("locales",a)));a=nb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new I("locale-changed",a))};
97
+ r.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new I("locale-updated"));return this};r.Jh=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};r.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 I("unknown-localization",a));return""};
98
+ function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={bc:f.bc},h=g.next()){f.bc=h.value;e.add(f.bc);e.add(Sb(f.bc));h=nb(b.keys(),function(l){return function(m){return Rb(m,l.bc)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=nb(b.keys(),function(l){return function(m){return Sb(m)==l.bc}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
99
99
  c.reverse();a.i.clear();b=t(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new I("missing-localizations",d)))}function Zb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}G("shaka.ui.Localization",Wb);Wb.prototype.resolve=Wb.prototype.resolve;
100
- Wb.prototype.resolveDictionary=Wb.prototype.Ih;Wb.prototype.insert=Wb.prototype.ka;Wb.prototype.changeLocale=Wb.prototype.Cf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={Pi:"PICTURE_IN_PICTURE",Gi:"MUTE",Li:"ON",Wi:"REWIND",ti:"FAST_FORWARD",ei:"CAST",rj:"VOLUME",Ei:"MORE_SETTINGS",Qi:"PLAY",Oi:"PAUSE",ki:"ENTER_LOOP_MODE",Ai:"LOOP",Zh:"AUTO_QUALITY",lg:"SUBTITLE_FORCED",li:"ENTER_PICTURE_IN_PICTURE",wi:"FULL_SCREEN",Ki:"OFF",Ri:"PLAYBACK_RATE",$i:"SKIP_TO_LIVE",Vi:"RESOLUTION",Ui:"REPLAY",pi:"EXIT_PICTURE_IN_PICTURE",nj:"UNDETERMINED_LANGUAGE",Ti:"QUALITY",BACK:"BACK",oj:"UNMUTE",Xh:"AIRPLAY",Zi:"SKIP_AD",Ji:"NOT_APPLICABLE",pj:"UNRECOGNIZED_LANGUAGE",ni:"EXIT_FULL_SCREEN",
101
- zi:"LANGUAGE",Wh:"AD_TIME",AD_PROGRESS:"AD_PROGRESS",bj:"STATISTICS",Fi:"MULTIPLE_LANGUAGES",oi:"EXIT_LOOP_MODE",di:"CAPTIONS",Yi:"SEEK",Vh:"AD_DURATION",kg:"LIVE"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={$d:d.$d},e=a.next()){d.$d=e.value;e=b.findIndex(function(f){return function(g){return c(f.$d,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
100
+ Wb.prototype.resolveDictionary=Wb.prototype.Jh;Wb.prototype.insert=Wb.prototype.ia;Wb.prototype.changeLocale=Wb.prototype.Bf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={$h:"AUTO_QUALITY",ri:"EXIT_PICTURE_IN_PICTURE",Vi:"REPLAY",Mi:"ON",aj:"SKIP_TO_LIVE",Ui:"QUALITY",Ki:"NOT_APPLICABLE",Yh:"AIRPLAY",Si:"PLAYBACK_RATE",Gi:"MULTIPLE_LANGUAGES",wi:"FAST_FORWARD",xi:"FULL_SCREEN",Bi:"LOOP",qj:"UNRECOGNIZED_LANGUAGE",ei:"CAPTIONS",BACK:"BACK",Fi:"MORE_SETTINGS",Qi:"PICTURE_IN_PICTURE",Xi:"REWIND",Hi:"MUTE",lg:"SUBTITLE_FORCED",oi:"EXIT_FULL_SCREEN",Zi:"SEEK",pi:"EXIT_LOOP_MODE",Pi:"PAUSE",pj:"UNMUTE",sj:"VOLUME",Xh:"AD_TIME",Ri:"PLAY",Ai:"LANGUAGE",Li:"OFF",gi:"CAST",
101
+ Wh:"AD_DURATION",li:"ENTER_LOOP_MODE",cj:"STATISTICS",mi:"ENTER_PICTURE_IN_PICTURE",AD_PROGRESS:"AD_PROGRESS",$i:"SKIP_AD",oj:"UNDETERMINED_LANGUAGE",kg:"LIVE",Wi:"RESOLUTION"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={$d:d.$d},e=a.next()){d.$d=e.value;e=b.findIndex(function(f){return function(g){return c(f.$d,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
102
102
  function ic(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function jc(a,b,c){this.startTime=a;this.direction=kc;this.endTime=b;this.payload=c;this.region=new lc;this.position=null;this.positionAlign=mc;this.size=0;this.textAlign=nc;this.writingMode=oc;this.lineInterpretation=pc;this.line=null;this.lineHeight="";this.lineAlign=qc;this.displayAlign=rc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=sc;this.fontStyle=tc;this.linePadding=this.letterSpacing=
103
103
  this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}jc.prototype.clone=function(){var a=new jc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
104
104
  function uc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ic(a.nestedCues,b.nestedCues,uc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!ic(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}G("shaka.text.Cue",jc);var mc="auto";
@@ -106,893 +106,895 @@ jc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:mc};v
106
106
  jc.lineInterpretation={LINE_NUMBER:pc,PERCENTAGE:1};var qc="start",xc={CENTER:"center",START:qc,END:"end"};jc.lineAlign=xc;var yc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};jc.defaultTextColor=yc;var zc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};jc.defaultTextBackgroundColor=zc;var sc=400;jc.fontWeight={NORMAL:sc,BOLD:700};
107
107
  var tc="normal",Ac={NORMAL:tc,ITALIC:"italic",OBLIQUE:"oblique"};jc.fontStyle=Ac;jc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function lc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Bc;this.scroll=Cc}G("shaka.text.CueRegion",lc);var Bc=1;lc.units={PX:0,PERCENTAGE:Bc,LINES:2};var Cc="";lc.scrollMode={NONE:Cc,UP:"up"};function Dc(){}function Ec(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Fc(a)==Fc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Gc(a);b=Gc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Fc(a){return a instanceof ArrayBuffer?a:a.buffer}function Hc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
108
108
  function Gc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,Uint8Array)}function Jc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,Uint16Array)}function Kc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,DataView)}function Ic(a,b,c,d){var e=Fc(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
109
- G("shaka.util.BufferUtils",Dc);Dc.toDataView=Kc;Dc.toUint16=Jc;Dc.toUint8=Gc;Dc.toArrayBuffer=Hc;Dc.equal=Ec;function Lc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Lc.prototype.resolve=function(){};Lc.prototype.reject=function(){};function Mc(a){this.h=a;this.g=void 0}Mc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Nc(a){this.h=a;this.g=null}Nc.prototype.R=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Nc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function N(a){this.h=a;this.g=null}N.prototype.Ca=function(){this.stop();this.h();return this};N.prototype.R=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).R(a);return this};N.prototype.ma=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.R(a);b.h()})).R(a);return this};N.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};G("shaka.util.Timer",N);N.prototype.stop=N.prototype.stop;N.prototype.tickEvery=N.prototype.ma;N.prototype.tickAfter=N.prototype.R;
110
- N.prototype.tickNow=N.prototype.Ca;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Sc(){return Tc("Xbox One")}function Uc(){return Tc("Tizen")}function Vc(){return Tc("Web0S")&&Tc("Chrome/38.0.2125.122 Safari/537.36")}function Wc(){return Tc("CrKey")}
109
+ G("shaka.util.BufferUtils",Dc);Dc.toDataView=Kc;Dc.toUint16=Jc;Dc.toUint8=Gc;Dc.toArrayBuffer=Hc;Dc.equal=Ec;function Lc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Lc.prototype.resolve=function(){};Lc.prototype.reject=function(){};function Mc(a){this.h=a;this.g=void 0}Mc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Nc(a){this.h=a;this.g=null}Nc.prototype.R=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Nc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function M(a){this.h=a;this.g=null}M.prototype.Ba=function(){this.stop();this.h();return this};M.prototype.R=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).R(a);return this};M.prototype.ka=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.R(a);b.h()})).R(a);return this};M.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};G("shaka.util.Timer",M);M.prototype.stop=M.prototype.stop;M.prototype.tickEvery=M.prototype.ka;M.prototype.tickAfter=M.prototype.R;
110
+ M.prototype.tickNow=M.prototype.Ba;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Sc(){return Tc("Xbox One")}function Uc(){return Tc("Tizen")}function Vc(){return Tc("Web0S")&&Tc("Chrome/38.0.2125.122 Safari/537.36")}function Wc(){return Tc("CrKey")}
111
111
  function Xc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Uc()&&!Tc("PC=EOS")&&!Tc("PC=APL")&&!Tc("VirginMedia")&&!Tc("SOPOpenBrowser")&&!Yc()&&!Tc("AFT")&&!Tc("WPE")}function Yc(){return Tc("PlayStation 4")}function Zc(){if(!Xc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Tc(a){return(navigator.userAgent||"").includes(a)}
112
- function Qc(){if($c)return $c;ad||(ad=new N(function(){$c=null}));($c=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||($c=document.createElement("video"));ad.R(1);return $c}var ad=null,$c=null;function bd(){}
113
- function cd(a){if(!a)return"";a=Gc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Yc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Xa('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==
112
+ function Qc(){if($c)return $c;ad||(ad=new M(function(){$c=null}));($c=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||($c=document.createElement("video"));ad.R(1);return $c}var ad=null,$c=null;function bd(){}
113
+ function cd(a){if(!a)return"";a=Gc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Yc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Wa('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==
114
114
  (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}
115
115
  function dd(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new K(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Kc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return ed.value()(d)}
116
116
  function fd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Gc(a);if(239==c[0]&&187==c[1]&&191==c[2])return cd(c);if(254==c[0]&&255==c[1])return dd(c.subarray(2),!1);if(255==c[0]&&254==c[1])return dd(c.subarray(2),!0);if(0==c[0]&&0==c[2])return dd(a,!1);if(0==c[1]&&0==c[3])return dd(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return cd(a);throw new K(2,2,2003);}
117
117
  function gd(a){if(window.TextEncoder&&!Yc()){var b=new TextEncoder;return Hc(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 Hc(b)}function hd(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}G("shaka.util.StringUtils",bd);bd.resetFromCharCode=function(){ed.g=void 0};bd.toUTF16=hd;bd.toUTF8=gd;bd.fromBytesAutoDetect=fd;bd.fromUTF16=dd;
118
- bd.fromUTF8=cd;var ed=new Mc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={wb:65536};0<b.wb;b={wb:b.wb},b.wb/=2)if(a(b.wb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.wb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.wb));return e}}(b);return null});function id(){}function jd(a){a=Gc(a);a=ed.value()(a);return btoa(a)}function kd(a,b){b=void 0==b?!0:b;a=jd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function ld(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 md(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}
119
- function nd(a){var b=Gc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function od(){for(var a=Ka.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Gc(d),c),c+=d.byteLength;return b}G("shaka.util.Uint8ArrayUtils",id);id.concat=od;id.toHex=nd;id.fromHex=md;id.fromBase64=ld;id.toBase64=kd;id.toStandardBase64=jd;function pd(){}G("shaka.dependencies",pd);pd.has=function(a){return qd.has(a)};pd.add=function(a,b){if(!rd[a])throw Error(a+" is not supported");qd.set(a,function(){return b})};var rd={muxjs:"muxjs"};pd.Allowed=rd;var qd=new Map([["muxjs",function(){return window.muxjs}]]);function sd(a){var b=this;this.s=a;this.m=qd.get("muxjs")();this.h=this.g=null;this.l=[];this.i=[];this.j=!1;this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(c){b.i=c.captions;b.l.push(od(c.initSegment,c.data))}),this.g.on("done",function(){var c={data:od.apply(id,ha(b.l)),captions:b.i};b.h.resolve(c);b.j=!1}))}sd.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()};
118
+ bd.fromUTF8=cd;var ed=new Mc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={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 id(){}function jd(a){a=Gc(a);a=ed.value()(a);return btoa(a)}function kd(a,b){b=void 0==b?!0:b;a=jd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function ld(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 md(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}
119
+ function nd(a){var b=Gc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function od(){for(var a=Ka.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Gc(d),c),c+=d.byteLength;return b}G("shaka.util.Uint8ArrayUtils",id);id.concat=od;id.toHex=nd;id.fromHex=md;id.fromBase64=ld;id.toBase64=kd;id.toStandardBase64=jd;function pd(){}G("shaka.dependencies",pd);pd.has=function(a){return qd.has(a)};pd.add=function(a,b){if(!rd[a])throw Error(a+" is not supported");qd.set(a,function(){return b})};var rd={muxjs:"muxjs"};pd.Allowed=rd;var qd=new Map([["muxjs",function(){return window.muxjs}]]);function sd(a){var b=this;this.s=a;this.m=qd.get("muxjs")();this.h=this.g=null;this.l=[];this.i=[];this.j=!1;this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(c){b.i=c.captions;b.l.push(od(c.initSegment,c.data))}),this.g.on("done",function(){var c={data:od.apply(id,ia(b.l)),captions:b.i};b.h.resolve(c);b.j=!1}))}sd.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()};
120
120
  function td(a,b){var c=ud(a),d="audio/aac"==a.toLowerCase().split(";")[0];if(!qd.get("muxjs")()||!c&&!d)return!1;if(d)return dc('audio/mp4; codecs="mp4a.40.2"');if(b)return dc(vd(b,a));b=vd("audio",a);a=vd("video",a);return dc(b)||dc(a)}function ud(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}function wd(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':ud(b)?vd(a,b):b}
121
121
  function vd(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function xd(a,b){a.j=!0;a.h=new Lc;a.l=[];a.i=[];b=Gc(b);a.g.push(b);a.g.flush();a.j&&a.h.reject(new K(2,3,3018));return a.h};function yd(){}function zd(a,b){b&&(a+='; codecs="'+b+'"');return a}function Ad(a,b,c){b=zd(a,b);return td(b,c)?wd(c,b):"video/mp2t"!=a&&"audio"==c?b.replace("video","audio"):b}
122
122
  function Bd(a){var b=Cd(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx";
123
- case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Dd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function Cd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}G("shaka.util.MimeUtils",yd);yd.getFullType=zd;
124
- (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Ed(a){this.i=null;this.j=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.s=new Map}function Fd(a){return Gd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Ed.prototype.destroy=function(){this.j=this.i=null;this.s.clear();return Promise.resolve()};
125
- function Hd(a,b,c,d,e){var f,g,h,k;return D(function(l){if(1==l.g)return u(l,Promise.resolve(),2);if(!a.i||!a.j)return l.return();if(null==c||null==d)return a.i.parseInit(Gc(b)),l.return();f=a.C?c:a.B;g={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:f};h=a.i.parseMedia(Gc(b),g,e);k=h.filter(function(m){return m.startTime>=a.l&&m.startTime<a.m});a.j.append(k);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);C(l)})}
126
- Ed.prototype.remove=function(a,b){var c=this;return D(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));C(d)})};function Id(a,b,c){a.l=b;a.m=c}function Jd(a,b,c){a.F=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)}
127
- function Kd(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new jc(c.startTime,c.endTime,c.text)});return b}function Ld(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Ld(a,d.value,c)}
128
- function Md(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Ld(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
129
- a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}G("shaka.text.TextEngine",Ed);Ed.prototype.destroy=Ed.prototype.destroy;Ed.findParser=function(a){return Gd[a]};Ed.unregisterParser=function(a){delete Gd[a]};Ed.registerParser=function(a,b){Gd[a]=b};var Gd={};function Nd(a,b){return a.concat(b)}function Od(){}function Pd(a){return null!=a};function Qd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Rd(f,b,c);f=Sd(f,d);b=Td(f);b=Ud(b);var g=Vd(b,e);a.variants=a.variants.filter(function(h){return Wd(h)==g?!0:!1})}function Td(a){var b=new hb;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Wd(c);b.push(d,c)}return b}
130
- function Ud(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=t(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new hb);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a}
131
- function Rd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={me:d.me},e=b.next())if(d.me=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.me)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Xd:d.Xd},b=c.next())if(d.Xd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Xd)}}(d)),b.length){a=b;break}return a}
132
- function Vd(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==Xd||c==Yd){if(a=Zd(a,c),1==a.size())return a.keys()[0]}else if(c==$d)break;return ae(a)}function Zd(a,b){var c=0,d=new hb;a.forEach(function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
133
- function ae(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=t(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Wd(a){var b="";a.video&&(b=Bd(a.video.codecs));var c="";a.audio&&(c=Bd(a.audio.codecs));return b+"-"+c}function be(a,b,c){a.variants=a.variants.filter(function(d){return ce(d,b,c)})}
134
- function ce(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
135
- function de(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=ce(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function ee(a,b){return D(function(c){if(1==c.g)return u(c,fe(b,0<b.offlineSessionIds.length),2);ge(a,b);he(b);return u(c,ie(b),0)})}
136
- function fe(a,b){var c,d,e;return D(function(f){if(1==f.g)return u(f,je(a.variants,b,!1),2);c=Jb;d=Sc();e=Tc("Firefox")&&Tc("Android");a.variants=a.variants.filter(function(g){var h=g.video,k=h&&h.width||0,l=h&&h.height||0;if(d&&h&&(1920<k||1080<l)&&(h.codecs.includes("avc1.")||h.codecs.includes("avc3.")))return db(ke(g)),!1;if(h){k=le(h.codecs);if(h.codecs.includes(",")){l=h.codecs.split(",");k=Fb(c.Ia,l);k=le(k);l=Fb(c.Kb,l);l=me(l);var m=Ad(h.mimeType,l,c.Kb);if(!dc(m))return!1;k=[k,l].join()}l=
137
- Ad(h.mimeType,k,c.Ia);if(!dc(l))return!1;h.codecs=k}h=g.audio;if(e&&h&&h.encrypted&&h.codecs.toLowerCase().includes("opus"))return db(ke(g)),!1;if(h){k=me(h.codecs);l=Ad(h.mimeType,k,c.Kb);if(!dc(l))return!1;h.codecs=k}(h=g.decodingInfos.some(function(n){return n.supported}))||db(ke(g));return h});C(f)})}
138
- function je(a,b,c){var d,e,f,g,h,k,l,m,n,p,q;return D(function(v){if(d=a.some(function(w){return w.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(w,x){var z;return D(function(B){if(1==B.g)return wa(B,2),u(B,e.decodingInfo(x),4);if(2!=B.g)return z=B.h,w.decodingInfos.push(z),za(B,0);Aa(B);JSON.stringify(x);C(B)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=ne(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,f.push(g(l,q));return u(v,Promise.all(f),
123
+ case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Dd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function Ed(a){return"application/x-mpegurl"===a||"application/vnd.apple.mpegurl"===a}function Cd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}
124
+ G("shaka.util.MimeUtils",yd);yd.getFullType=zd;(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Fd(a){this.i=null;this.j=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.s=new Map}function Gd(a){return Hd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Fd.prototype.destroy=function(){this.j=this.i=null;this.s.clear();return Promise.resolve()};
125
+ function Id(a,b,c,d,e){var f,g,h,k;return D(function(l){if(1==l.g)return u(l,Promise.resolve(),2);if(!a.i||!a.j)return l.return();if(null==c||null==d)return a.i.parseInit(Gc(b)),l.return();f=a.C?c:a.B;g={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:f};h=a.i.parseMedia(Gc(b),g,e);k=h.filter(function(m){return m.startTime>=a.l&&m.startTime<a.m});a.j.append(k);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);C(l)})}
126
+ Fd.prototype.remove=function(a,b){var c=this;return D(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));C(d)})};function Jd(a,b,c){a.l=b;a.m=c}function Kd(a,b,c){a.F=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)}
127
+ function Ld(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new jc(c.startTime,c.endTime,c.text)});return b}function Md(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Md(a,d.value,c)}
128
+ function Nd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Md(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
129
+ a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}G("shaka.text.TextEngine",Fd);Fd.prototype.destroy=Fd.prototype.destroy;Fd.findParser=function(a){return Hd[a]};Fd.unregisterParser=function(a){delete Hd[a]};Fd.registerParser=function(a,b){Hd[a]=b};var Hd={};function Od(a,b){return a.concat(b)}function Pd(){}function Qd(a){return null!=a};function Rd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Sd(f,b,c);f=Td(f,d);b=Ud(f);b=Vd(b);var g=Wd(b,e);a.variants=a.variants.filter(function(h){return Xd(h)==g?!0:!1})}function Ud(a){var b=new hb;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Xd(c);b.push(d,c)}return b}
130
+ function Vd(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=t(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new hb);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a}
131
+ function Sd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={me:d.me},e=b.next())if(d.me=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.me)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Xd:d.Xd},b=c.next())if(d.Xd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Xd)}}(d)),b.length){a=b;break}return a}
132
+ function Wd(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==Yd||c==Zd){if(a=$d(a,c),1==a.size())return a.keys()[0]}else if(c==ae)break;return be(a)}function $d(a,b){var c=0,d=new hb;a.forEach(function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
133
+ function be(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=t(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Xd(a){var b="";a.video&&(b=Bd(a.video.codecs));var c="";a.audio&&(c=Bd(a.audio.codecs));return b+"-"+c}function ce(a,b,c){a.variants=a.variants.filter(function(d){return de(d,b,c)})}
134
+ function de(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
135
+ function ee(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=de(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function fe(a,b){return D(function(c){if(1==c.g)return u(c,ge(b,0<b.offlineSessionIds.length),2);he(a,b);ie(b);return u(c,je(b),0)})}
136
+ function ge(a,b){var c,d,e;return D(function(f){if(1==f.g)return u(f,ke(a.variants,b,!1),2);c=Jb;d=Sc();e=Tc("Firefox")&&Tc("Android");a.variants=a.variants.filter(function(g){var h=g.video,k=h&&h.width||0,l=h&&h.height||0;if(d&&h&&(1920<k||1080<l)&&(h.codecs.includes("avc1.")||h.codecs.includes("avc3.")))return cb(le(g)),!1;if(h){k=me(h.codecs);if(h.codecs.includes(",")){l=h.codecs.split(",");k=Fb(c.Ha,l);k=me(k);l=Fb(c.Jb,l);l=ne(l);var m=Ad(h.mimeType,l,c.Jb);if(!dc(m))return!1;k=[k,l].join()}l=
137
+ Ad(h.mimeType,k,c.Ha);if(!dc(l))return!1;h.codecs=k}h=g.audio;if(e&&h&&h.encrypted&&h.codecs.toLowerCase().includes("opus"))return cb(le(g)),!1;if(h){k=ne(h.codecs);l=Ad(h.mimeType,k,c.Jb);if(!dc(l))return!1;h.codecs=k}(h=g.decodingInfos.some(function(n){return n.supported}))||cb(le(g));return h});C(f)})}
138
+ function ke(a,b,c){var d,e,f,g,h,k,l,m,n,p,q;return D(function(v){if(d=a.some(function(w){return w.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(w,x){var z;return D(function(B){if(1==B.g)return xa(B,2),u(B,e.decodingInfo(x),4);if(2!=B.g)return z=B.h,w.decodingInfos.push(z),Aa(B,0);Ba(B);JSON.stringify(x);C(B)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=oe(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,f.push(g(l,q));return u(v,Promise.all(f),
139
139
  0)})}
140
- function ne(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=le(f);g=Fb("audio",g);g=me(g);g=Ad(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=le(f);f=Ad(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";
141
- break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=me(d.codecs),f=Ad(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
140
+ function oe(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=me(f);g=Fb("audio",g);g=ne(g);g=Ad(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=me(f);f=Ad(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";
141
+ break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=ne(d.codecs),f=Ad(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
142
142
  f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,q=t(h.initData),v=q.next();!v.done;v=q.next())p.add(v.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
143
143
  (m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(""!=h.audioRobustness?m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness}:m.audio||(m.audio={}));e&&(""!=h.videoRobustness?m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness}:m.video||(m.video={}))}l.keySystemConfiguration=m;a.push(l)}return a}
144
- function me(a){return"fLaC"!==a||Zc()?"Opus"===a?"opus":a:"flac"}function le(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function ge(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!oe(d,a.audio)||c&&a&&a.video&&!oe(c,a.video)?!1:!0})}
145
- function he(a){a.textStreams=a.textStreams.filter(function(b){return Fd(zd(b.mimeType,b.codecs))})}function ie(a){var b,c,d,e,f,g,h,k;return D(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(pe.has(f)){l.D(5);break}g=qe.get(f);if(!g){pe.set(f,!1);l.D(5);break}return u(l,re(g),7);case 7:h=l.h,pe.set(f,h);case 5:(k=pe.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,C(l)}})}
146
- function re(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}function oe(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
147
- function se(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
144
+ function ne(a){return"flac"==a.toLowerCase()?Zc()?"fLaC":"flac":"Opus"===a?"opus":a}function me(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function he(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!pe(d,a.audio)||c&&a&&a.video&&!pe(c,a.video)?!1:!0})}
145
+ function ie(a){a.textStreams=a.textStreams.filter(function(b){return Gd(zd(b.mimeType,b.codecs))})}function je(a){var b,c,d,e,f,g,h,k;return D(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(qe.has(f)){l.D(5);break}g=re.get(f);if(!g){qe.set(f,!1);l.D(5);break}return u(l,se(g),7);case 7:h=l.h,qe.set(f,h);case 5:(k=qe.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,C(l)}})}
146
+ function se(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}function pe(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
147
+ function te(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
148
148
  kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,
149
149
  a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null,a.hdr=c.hdr||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioRoles=b.roles);return a}
150
- function te(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
150
+ function ue(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
151
151
  originalAudioId:null,originalTextId:a.originalId,originalImageId:null}}
152
- function ue(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
153
- audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function ve(a){a.__shaka_id||(a.__shaka_id=we++);return a.__shaka_id}
154
- function xe(a){var b=ye(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function ze(a){var b=ye(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
155
- function ye(a){var b=a.language;return{id:ve(a),active:!1,type:"",bandwidth:0,language:Mb(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
156
- originalTextId:null,originalImageId:null,xj:b}}function Ae(a){return a.allowedByApplication&&a.allowedByKeySystem}function Be(a){return a.filter(function(b){return Ae(b)})}
157
- function Sd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;a=c.filter(function(g){return g<=b});return a.length?d.get(Math.max.apply(Math,ha(a))):d.get(Math.min.apply(Math,ha(c)))}
158
- function Ce(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Vb(Mb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Mb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=De(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Nd,[]);return a.length?
159
- De(e,a[0]):e}function De(a,b){return a.filter(function(c){return c.roles.includes(b)})}function ke(a){var b=[];a.audio&&b.push(Ee(a.audio));a.video&&b.push(Ee(a.video));return b.join(", ")}
160
- function Ee(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
161
- var we=0,Xd="smooth",Yd="powerEfficient",$d="bandwidth",pe=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),qe=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Fe(){var a=this;this.m=null;this.l=!1;this.i=new cc;this.C=null;navigator.connection&&navigator.connection.addEventListener&&(this.C=function(){if(a.l&&a.g.useNetworkInformation){a.i=new cc;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.m(b)}},navigator.connection.addEventListener("change",this.C));this.s=[];this.F=1;this.H=!1;this.h=this.j=this.g=this.B=null;this.G=new N(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.m(b)}})}r=Fe.prototype;
152
+ function ve(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
153
+ audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function we(a){a.__shaka_id||(a.__shaka_id=xe++);return a.__shaka_id}
154
+ function ye(a){var b=ze(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function Ae(a){var b=ze(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
155
+ function ze(a){var b=a.language;return{id:we(a),active:!1,type:"",bandwidth:0,language:Mb(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
156
+ originalTextId:null,originalImageId:null,yj:b}}function Be(a){return a.allowedByApplication&&a.allowedByKeySystem}function Ce(a){return a.filter(function(b){return Be(b)})}
157
+ function Td(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;a=c.filter(function(g){return g<=b});return a.length?d.get(Math.max.apply(Math,ia(a))):d.get(Math.min.apply(Math,ia(c)))}
158
+ function De(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Vb(Mb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Mb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Ee(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Od,[]);return a.length?
159
+ Ee(e,a[0]):e}function Ee(a,b){return a.filter(function(c){return c.roles.includes(b)})}function le(a){var b=[];a.audio&&b.push(Fe(a.audio));a.video&&b.push(Fe(a.video));return b.join(", ")}
160
+ function Fe(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
161
+ var xe=0,Yd="smooth",Zd="powerEfficient",ae="bandwidth",qe=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),re=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ge(){var a=this;this.m=null;this.l=!1;this.i=new cc;this.C=null;navigator.connection&&navigator.connection.addEventListener&&(this.C=function(){if(a.l&&a.g.useNetworkInformation){a.i=new cc;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.m(b)}},navigator.connection.addEventListener("change",this.C));this.s=[];this.F=1;this.H=!1;this.h=this.j=this.g=this.B=null;this.G=new M(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.m(b)}})}r=Ge.prototype;
162
162
  r.stop=function(){this.m=null;this.l=!1;this.s=[];this.F=1;this.j=this.B=null;this.h&&(this.h.disconnect(),this.h=null);this.G.stop()};r.release=function(){navigator.connection&&navigator.connection.removeEventListener&&(navigator.connection.removeEventListener("change",this.C),this.C=null);this.G=null};r.init=function(a){this.m=a};
163
- r.chooseVariant=function(){var a=Infinity,b=Infinity;this.g.restrictToScreenSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientHeight*b,b*=this.j.clientWidth);a=Ge(this.g.restrictions,this.s,a,b);b=this.i.getBandwidthEstimate(He(this));this.s.length&&!a.length&&(a=Ge(null,this.s,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,
163
+ r.chooseVariant=function(){var a=Infinity,b=Infinity;this.g.restrictToScreenSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientHeight*b,b*=this.j.clientWidth);a=He(this.g.restrictions,this.s,a,b);b=this.i.getBandwidthEstimate(Ie(this));this.s.length&&!a.length&&(a=He(null,this.s,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,
164
164
  d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.F)?1:Math.abs(this.F),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.B=Date.now();return c};r.enable=function(){this.l=!0};r.disable=function(){this.l=!1};
165
- r.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.H){a=this.i;if(!(a.g>=a.i))break a;this.H=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.i.getBandwidthEstimate(He(this));a&&this.m(a)}};r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(He(this))};r.setVariants=function(a){this.s=a};r.playbackRateChanged=function(a){this.F=a};
166
- r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.R(Ie)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function He(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
167
- function Ge(a,b,c,d){a&&(b=b.filter(function(e){return ce(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}G("shaka.abr.SimpleAbrManager",Fe);Fe.prototype.configure=Fe.prototype.configure;Fe.prototype.setMediaElement=Fe.prototype.setMediaElement;Fe.prototype.playbackRateChanged=Fe.prototype.playbackRateChanged;Fe.prototype.setVariants=Fe.prototype.setVariants;Fe.prototype.getBandwidthEstimate=Fe.prototype.getBandwidthEstimate;Fe.prototype.segmentDownloaded=Fe.prototype.segmentDownloaded;
168
- Fe.prototype.disable=Fe.prototype.disable;Fe.prototype.enable=Fe.prototype.enable;Fe.prototype.chooseVariant=Fe.prototype.chooseVariant;Fe.prototype.init=Fe.prototype.init;Fe.prototype.release=Fe.prototype.release;Fe.prototype.stop=Fe.prototype.stop;var Ie=1;function Je(a,b){this.g=a;this.h=b}Je.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ke(a,b){var c=new Je(5,0),d=Le,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Me(a,b,c,d){Za([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ne(a,b,c,d){Xa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Le=null;G("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Oe(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Oe.prototype.add=function(a){return Pe(this.h,a)?(this.g.add(a),!0):!1};
169
- function Pe(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Qe(c,d)&&Re(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(Qe(a,b)&&Re(a.roles,b.roles)));return c?!1:!0}Oe.prototype.values=function(){return this.g.values()};
170
- function Qe(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Cd(d)[0]});b=b.codecs.split(",").map(function(d){return Cd(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Re(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Se(a){this.g=a;this.h=new Te(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Se.prototype.create=function(a){var b=this,c=a.filter(function(d){return Pe(b.g,d)});return c.length?new Oe(c[0],c):this.h.create(a)};function Te(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
171
- Te.prototype.create=function(a){var b=[];b=Ue(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Ve(b,this.j);a.length&&(b=a);this.g&&(a=Sd(b,this.g),a.length&&(b=a));this.h&&(a=We(b,this.h),a.length&&(b=a));a=new Oe(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Pe(a.h,c)&&a.add(c);return a};function Ue(a,b){b=Mb(b);var c=Vb(b,a.map(function(d){return Ub(d)}));return c?a.filter(function(d){return c==Ub(d)}):[]}
172
- function Ve(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function We(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Xe(){this.g=Ye;this.h=(new Map).set(Ye,2).set(Ze,1)}function $e(a,b,c){a.h.set(Ye,c).set(Ze,b)}var Ze=0,Ye=1;function af(a,b){var c=bf();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
173
- function cf(a){var b,c;return D(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new K(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return u(d,new Promise(function(e){(new N(e)).R(c/1E3)}),2)}a.h*=a.m;C(d)})}function bf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function df(a,b){this.promise=a;this.i=b;this.g=!1}function ef(a){return new df(Promise.reject(a),function(){return Promise.resolve()})}function ff(){var a=Promise.reject(new K(2,7,7001));a.catch(function(){});return new df(a,function(){return Promise.resolve()})}function gf(a){return new df(Promise.resolve(a),function(){return Promise.resolve()})}function hf(a){return new df(a,function(){return a.catch(function(){})})}df.prototype.abort=function(){this.g=!0;return this.i()};
174
- function jf(a){return new df(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}df.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
175
- df.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=kf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Lc,g=new K(2,7,7001);this.promise.then(c(!0),c(!1));return new df(f,function(){return d()})};
176
- function kf(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()}}}G("shaka.util.AbortableOperation",df);df.prototype.chain=df.prototype.na;df.prototype["finally"]=df.prototype.finally;df.all=jf;df.prototype.abort=df.prototype.abort;df.notAbortable=hf;df.completed=gf;df.aborted=ff;df.failed=ef;function lf(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function mf(a){var b={},c;for(c in a)b[c]=a[c];return b};function nf(){this.g=[]}function of(a,b){a.g.push(b.finally(function(){gc(a.g,b)}))}nf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function pf(a,b,c){ib.call(this);this.i=!1;this.m=new nf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.s=!1}ra(pf,ib);r=pf.prototype;r.Ve=function(a){this.s=a};function qf(a,b,c,d){c=c||rf;var e=sf[a];if(!e||c>=e.priority)sf[a]={priority:c,yh:b,Ah:void 0===d?!1:d}}r.Bh=function(a){this.g.add(a)};r.Qh=function(a){this.g.delete(a)};r.ug=function(){this.g.clear()};r.Ch=function(a){this.h.add(a)};r.Rh=function(a){this.h.delete(a)};r.vg=function(){this.h.clear()};
177
- function tf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ib.prototype.release.call(this);return this.m.destroy()};
178
- r.request=function(a,b){var c=this,d=new uf;if(this.i){var e=Promise.reject(new K(2,7,7001));e.catch(function(){});return new vf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?lf(b.retryParameters):bf();b.uris=lf(b.uris);e=wf(this,a,b);var f=e.na(function(){return xf(c,a,b,new af(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return yf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
179
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,q=n.response;q.timeMs+=k;q.timeMs+=p;n.hh||!c.l||q.fromCache||"HEAD"==b.method||a!=zf||c.l(q.timeMs,q.data.byteLength);return q},function(n){n&&(n.severity=2);throw n;});e=new vf(m.promise,function(){return m.abort()},d);of(this.m,e);return e};
180
- function wf(a,b,c){var d=gf(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={ge:e.ge},f=a.next())e.ge=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Hc(c.body));return g.ge(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof K&&7001==g.code)throw g;throw new K(2,1,1006,g);})}
181
- function xf(a,b,c,d,e,f,g){a.s&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new pb(c.uris[e]),k=h.Xa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),qb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=sf[k])?k.yh:null;if(!m)return ef(new K(2,1,1E3,h));var n=k.Ah,p=null,q=null,v=!1,w=!1,x;return hf(cf(d)).na(function(){if(a.i)return ff();x=Date.now();var z=m(c.uris[e],c,b,function(y,E,F){p&&p.stop();q&&q.R(A/1E3);a.l&&b==zf&&(a.l(y,E),l=!0,g.g=F)},function(y){a.j&&a.j(y,c,b);w=!0});
182
- if(!n)return z;var B=c.retryParameters.connectionTimeout;B&&(p=new N(function(){v=!0;z.abort()}),p.R(B/1E3));var A=c.retryParameters.stallTimeout;A&&(q=new N(function(){v=!0;z.abort()}));return z}).na(function(z){p&&p.stop();q&&q.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-x);var B={response:z,hh:l};!w&&a.j&&a.j(z.headers,c,b);return B},function(z){p&&p.stop();q&&q.stop();if(a.B){var B=null,A=0;z instanceof K&&(B=z,1001==z.code&&(A=z.data[1]));a.B(c,B,A,v)}if(a.i)return ff();v&&(z=new K(1,1,1003,
183
- c.uris[e],b));if(z instanceof K){if(7001==z.code)throw z;if(1010==z.code)throw f;if(1==z.severity)return B=(new Map).set("error",z),B=new I("retry",B),a.dispatchEvent(B),e=(e+1)%c.uris.length,xf(a,b,c,d,e,z,g)}throw z;})}
184
- function yf(a,b,c){var d=gf(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={ie:e.ie},f=a.next())e.ie=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Hc(h.data));return g.ie(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof K){if(7001==g.code)throw g;h=g.severity}throw new K(h,1,1007,g);})}G("shaka.net.NetworkingEngine",pf);pf.prototype.request=pf.prototype.request;pf.prototype.destroy=pf.prototype.destroy;pf.makeRequest=tf;
185
- pf.defaultRetryParameters=function(){return bf()};pf.prototype.clearAllResponseFilters=pf.prototype.vg;pf.prototype.unregisterResponseFilter=pf.prototype.Rh;pf.prototype.registerResponseFilter=pf.prototype.Ch;pf.prototype.clearAllRequestFilters=pf.prototype.ug;pf.prototype.unregisterRequestFilter=pf.prototype.Qh;pf.prototype.registerRequestFilter=pf.prototype.Bh;pf.unregisterScheme=function(a){delete sf[a]};pf.registerScheme=qf;pf.prototype.setForceHTTPS=pf.prototype.Ve;function uf(){this.g=0}
186
- pf.NumBytesRemainingClass=uf;function vf(a,b,c){df.call(this,a,b);this.h=c}ra(vf,df);pf.PendingRequest=vf;var zf=1;pf.RequestType={MANIFEST:0,SEGMENT:zf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var rf=3;pf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:rf};var sf={};function Af(a){this.g=!1;this.h=new Lc;this.i=a}Af.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 Bf(a,b){if(a.g){if(b instanceof K&&7003==b.code)throw b;throw new K(2,7,7003,b);}};function Cf(){this.g=new hb}r=Cf.prototype;r.release=function(){this.gb();this.g=null};r.o=function(a,b,c,d){this.g&&(a=new Df(a,b,c,d),this.g.push(b,a))};r.sa=function(a,b,c,d){function e(g){f.tc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};r.tc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.tc(),this.g.remove(b,e))}};
187
- r.gb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ha(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.tc();this.g.g={}}};G("shaka.util.EventManager",Cf);Cf.prototype.removeAll=Cf.prototype.gb;Cf.prototype.unlisten=Cf.prototype.tc;Cf.prototype.listenOnce=Cf.prototype.sa;Cf.prototype.listen=Cf.prototype.o;Cf.prototype.release=Cf.prototype.release;function Df(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Ef(a,d);this.target.addEventListener(b,c,this.g)}
188
- Df.prototype.tc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Ef(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 Ff(a)?b:b.capture||!1}
189
- function Ff(a){var b=Gf;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}Gf=b}return b||!1}var Gf=void 0;function Hf(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function If(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Jf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Kf(a,b){this.W=Kc(a);this.h=b==Lf;this.g=0}r=Kf.prototype;r.Aa=function(){return this.g<this.W.byteLength};r.oa=function(){return this.g};r.Ng=function(){return this.W.byteLength};r.sb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Mf();}};r.Le=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Mf();}};r.O=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Mf();}};
190
- r.Vf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Mf();}};r.Fb=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Mf();}if(2097151<b)throw new K(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.Eb=function(a){if(this.g+a>this.W.byteLength)throw Mf();var b=Gc(this.W,this.g,a);this.g+=a;return b};
191
- r.skip=function(a){if(this.g+a>this.W.byteLength)throw Mf();this.g+=a};r.Jh=function(a){if(this.g<a)throw Mf();this.g-=a};r.seek=function(a){if(0>a||a>this.W.byteLength)throw Mf();this.g=a};r.$c=function(){for(var a=this.g;this.Aa()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Gc(this.W,a,this.g-a);this.g+=1;return cd(a)};function Mf(){return new K(2,3,3E3)}G("shaka.util.DataViewReader",Kf);Kf.prototype.readTerminatedString=Kf.prototype.$c;Kf.prototype.seek=Kf.prototype.seek;Kf.prototype.rewind=Kf.prototype.Jh;
192
- Kf.prototype.skip=Kf.prototype.skip;Kf.prototype.readBytes=Kf.prototype.Eb;Kf.prototype.readUint64=Kf.prototype.Fb;Kf.prototype.readInt32=Kf.prototype.Vf;Kf.prototype.readUint32=Kf.prototype.O;Kf.prototype.readUint16=Kf.prototype.Le;Kf.prototype.readUint8=Kf.prototype.sb;Kf.prototype.getLength=Kf.prototype.Ng;Kf.prototype.getPosition=Kf.prototype.oa;Kf.prototype.hasMoreData=Kf.prototype.Aa;var Lf=1;Kf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Lf};function Nf(){this.i=[];this.h=[];this.g=!1}r=Nf.prototype;r.box=function(a,b){a=Of(a);this.i[a]=Pf;this.h[a]=b;return this};r.S=function(a,b){a=Of(a);this.i[a]=Qf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new Kf(a,0);for(this.g=!1;a.Aa()&&!this.g;)this.Yc(0,a,b,c)};
193
- r.Yc=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.O(),g=b.O(),h=Rf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.Fb();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Qf){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}n=b.O();m=n>>>24;n&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Eb(d):new Uint8Array(0),b=new Kf(b,0),l({name:h,parser:this,
194
- partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Sf(a){for(var b=Tf(a);a.reader.Aa()&&!a.parser.g;)a.parser.Yc(a.start+b,a.reader,a.partialOkay)}function Uf(a){for(var b=Tf(a),c=a.reader.O(),d=0;d<c&&(a.parser.Yc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Vf(a){var b=Tf(a);for(a.reader.skip(78);a.reader.Aa()&&!a.parser.g;)a.parser.Yc(a.start+b,a.reader,a.partialOkay)}
195
- function Wf(a){return function(b){a(b.reader.Eb(b.reader.W.byteLength-b.reader.oa()))}}function Of(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Rf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Tf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}G("shaka.util.Mp4Parser",Nf);Nf.headerSize=Tf;Nf.typeToString=Rf;Nf.allData=Wf;Nf.visualSampleEntry=Vf;Nf.sampleDescription=Uf;Nf.children=Sf;
196
- Nf.prototype.parseNext=Nf.prototype.Yc;Nf.prototype.parse=Nf.prototype.parse;Nf.prototype.stop=Nf.prototype.stop;Nf.prototype.fullBox=Nf.prototype.S;Nf.prototype.box=Nf.prototype.box;var Pf=0,Qf=1;function Xf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Nf).box("moov",Sf).box("moof",Sf).S("pssh",function(c){if(!(1<c.version)){var d=Gc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(nd(c.reader.Eb(16)));if(0<c.version){d=c.reader.O();for(var e=0;e<d;e++){var f=nd(c.reader.Eb(16));b.h.push(f)}}}}).parse(a)}
197
- function Yf(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Kc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=md(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Zf(a,b){a=$f(a,b);return 1!=a.length?null:a[0]}function ag(a,b,c){a=bg(a,b,c);return 1!=a.length?null:a[0]}function $f(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function cg(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
198
- function bg(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function dg(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function eg(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function fg(a){return Array.from(a.childNodes).every(gg)?a.textContent.trim():null}
199
- function gg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function hg(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function ig(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}
200
- function jg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
201
- function kg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function lg(a){a=Number(a);return 0===a%1?a:null}function mg(a){a=Number(a);return 0===a%1&&0<a?a:null}function ng(a){a=Number(a);return 0===a%1&&0<=a?a:null}function og(a){a=Number(a);return isNaN(a)?null:a}function pg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
202
- function qg(a,b){var c=new DOMParser,d=rg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function sg(a,b){try{var c=cd(a);return qg(c,b)}catch(d){return null}}
203
- var rg=new Mc(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 tg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.J=new Set;this.l=this.C=null;this.aa=this.Z=!1;this.K=0;this.g=null;this.B=new Cf;this.i=new Map;this.F=[];this.s=new Lc;this.h=null;this.m=function(d){c.s.reject(d);a.onError(d)};this.ea=new Map;this.$=new Map;this.U=new N(function(){return ug(c)});this.N=!1;this.L=[];this.P=!1;this.va=(new N(function(){vg(c)})).ma(b);this.s.catch(function(){});this.j=new Af(function(){return wg(c)});this.X=!1;this.H=this.I=null}r=tg.prototype;
204
- r.destroy=function(){return this.j.destroy()};function wg(a){return D(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.s.reject(),a.va.stop(),a.va=null,a.U.stop(),a.U=null,u(b,xg(a),2);case 2:if(!a.l){b.D(3);break}wa(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:za(b,5);break;case 4:Aa(b);case 5:a.l=null;case 3:a.g=null,a.J.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.I=null,C(b)}})}r.configure=function(a){this.h=a};
205
- function yg(a,b,c){a.aa=!0;a.F=[];a.N=c;return zg(a,b)}function Ag(a,b,c){a.F=c;a.N=0<c.length;return zg(a,b)}
206
- function Bg(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 Cg(a,g,[])}
207
- function zg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){if(1==A.g){if(c=Dg(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=Hf(a.h.servers),Eg(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Fg(m),p=t(n),q=p.next();!q.done;q=p.next())v=q.value,k.add(v);w=t(k);for(q=w.next();!q.done;q=
208
- w.next())x=q.value,Gg(x,Hf(a.h.servers),Hf(a.h.advanced||{}),a.h.keySystemsMapping);return u(A,je(b,a.N,a.X),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.Z=!0,A.return(Promise.resolve());B=Cg(a,void 0,b);return A.return(g?B:B.catch(function(){}))})}
209
- function Hg(a){var b;return D(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.I){c.D(2);break}return u(c,a.I,3);case 3:return Bf(a.j),c.return();case 2:return wa(c,4),a.I=a.l.setMediaKeys(a.C),u(c,a.I,6);case 6:za(c,5);break;case 4:b=Aa(c),a.m(new K(2,6,6003,b.message));case 5:Bf(a.j),C(c)}})}function Ig(a,b){return D(function(c){if(1==c.g)return u(c,Hg(a),2);Jg(a,b.initDataType,Gc(b.initData));C(c)})}
210
- r.Ec=function(a){var b=this;return D(function(c){if(1==c.g){if(!b.C)return b.B.sa(a,"encrypted",function(){b.m(new K(2,6,6010))}),c.return();b.l=a;b.B.sa(b.l,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())Kg(b,e.value);b.P=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return xg(b)});b.H=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.H||"com.apple.fps"!==b.g.keySystem||
211
- b.F.length?u(c,Hg(b),2):c.D(2)}Lg(b);b.H||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(d){return Ig(b,d)});C(c)})};
212
- function Mg(a){var b,c,d,e,f;return D(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=tf([a.g.serverCertificateUri],a.h.retryParameters);wa(g,3);c=a.G.Ub.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Gc(d.data);za(g,4);break;case 3:throw e=Aa(g),new K(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();
213
- wa(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:za(g,0);break;case 6:throw f=Aa(g),new K(2,6,6004,f.message);}})}function Ng(a,b){var c,d,e;return D(function(f){if(1==f.g)return u(f,Og(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.hb=new Lc,d.push(e.hb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);C(f)})}
214
- function Lg(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Jg(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())Og(a,d.value);b.length||a.F.length||a.s.resolve();return a.s}function Jg(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Ec(c,e.value.initData)&&!Tc("Tizen 2"))return;0<a.i.size&&Pg(a)&&(a.s.resolve(),a.s=new Lc,a.s.catch(function(){}));Qg(a,b,c,a.g.sessionType)}}
215
- function Rg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Sg(a){a=a.i.keys();a=kb(a,function(b){return b.sessionId});return Array.from(a)}r.Kc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};r.yd=function(){return If(this.$)};
216
- function Cg(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w;return D(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Tg(a,c,d);x.D(2);break}return u(x,Ug(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new K(2,6,6001);Bf(a.j);wa(x,4);a.J.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.J.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())q=m.value,a.J.add(q.contentType.toLowerCase());if(c.length){var z=
217
- f.keySystem;var B=d.get(f.keySystem);var A=[],y=[],E=[],F=[],H=new Set;Vg(B,A,E,y,F,H);var J=a.N?"persistent-license":"temporary";z={keySystem:z,licenseServerUri:A[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||J,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:y[0],initData:F,keyIds:H};B=t(B);for(A=B.next();!A.done;A=
218
- B.next())A=A.value,A.distinctiveIdentifierRequired&&(z.distinctiveIdentifierRequired=A.distinctiveIdentifierRequired),A.persistentStateRequired&&(z.persistentStateRequired=A.persistentStateRequired);B=z}else B=f.keySystem,z=b.get(f.keySystem),A=[],y=[],E=[],F=[],H=new Set,Vg(z.drmInfos,A,E,y,F,H),B={keySystem:B,licenseServerUri:A[0],distinctiveIdentifierRequired:"required"==z.distinctiveIdentifier,persistentStateRequired:"required"==z.persistentState,sessionType:z.sessionTypes[0]||"temporary",audioRobustness:(z.audioCapabilities?
219
- z.audioCapabilities[0].robustness:"")||"",videoRobustness:(z.videoCapabilities?z.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:y[0],initData:F,keyIds:H};a.g=B;if(!a.g.licenseServerUri)throw new K(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return v=x.h,Bf(a.j),a.C=v,a.Z=!0,u(x,Mg(a),7);case 7:Bf(a.j);za(x,0);break;case 4:w=Aa(x);Bf(a.j,w);a.g=null;a.J.clear();if(w instanceof K)throw w;throw new K(2,6,6002,w.message);}})}
220
- function Tg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Fg(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 K(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={ee:d.ee},e=a.next())for(d.ee=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
165
+ r.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.H){a=this.i;if(!(a.g>=a.i))break a;this.H=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.i.getBandwidthEstimate(Ie(this));a&&this.m(a)}};r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Ie(this))};r.setVariants=function(a){this.s=a};r.playbackRateChanged=function(a){this.F=a};
166
+ r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.R(Je)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function Ie(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
167
+ function He(a,b,c,d){a&&(b=b.filter(function(e){return de(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}G("shaka.abr.SimpleAbrManager",Ge);Ge.prototype.configure=Ge.prototype.configure;Ge.prototype.setMediaElement=Ge.prototype.setMediaElement;Ge.prototype.playbackRateChanged=Ge.prototype.playbackRateChanged;Ge.prototype.setVariants=Ge.prototype.setVariants;Ge.prototype.getBandwidthEstimate=Ge.prototype.getBandwidthEstimate;Ge.prototype.segmentDownloaded=Ge.prototype.segmentDownloaded;
168
+ Ge.prototype.disable=Ge.prototype.disable;Ge.prototype.enable=Ge.prototype.enable;Ge.prototype.chooseVariant=Ge.prototype.chooseVariant;Ge.prototype.init=Ge.prototype.init;Ge.prototype.release=Ge.prototype.release;Ge.prototype.stop=Ge.prototype.stop;var Je=1;function Ke(a,b){this.g=a;this.h=b}Ke.prototype.toString=function(){return"v"+this.g+"."+this.h};function Le(a,b){var c=new Ke(5,0),d=Me,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ne(a,b,c,d){Ya([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Oe(a,b,c,d){Wa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Me=null;G("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Pe(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Pe.prototype.add=function(a){return Qe(this.h,a)?(this.g.add(a),!0):!1};
169
+ function Qe(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Re(c,d)&&Se(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(Re(a,b)&&Se(a.roles,b.roles)));return c?!1:!0}Pe.prototype.values=function(){return this.g.values()};
170
+ function Re(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Cd(d)[0]});b=b.codecs.split(",").map(function(d){return Cd(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Se(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Te(a){this.g=a;this.h=new Ue(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Te.prototype.create=function(a){var b=this,c=a.filter(function(d){return Qe(b.g,d)});return c.length?new Pe(c[0],c):this.h.create(a)};function Ue(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
171
+ Ue.prototype.create=function(a){var b=[];b=Ve(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=We(b,this.j);a.length&&(b=a);this.g&&(a=Td(b,this.g),a.length&&(b=a));this.h&&(a=Xe(b,this.h),a.length&&(b=a));a=new Pe(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Qe(a.h,c)&&a.add(c);return a};function Ve(a,b){b=Mb(b);var c=Vb(b,a.map(function(d){return Ub(d)}));return c?a.filter(function(d){return c==Ub(d)}):[]}
172
+ function We(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Xe(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Ye(){this.g=Ze;this.h=(new Map).set(Ze,2).set($e,1)}function af(a,b,c){a.h.set(Ze,c).set($e,b)}var $e=0,Ze=1;function bf(a,b){var c=cf();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
173
+ function df(a){var b,c;return D(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new K(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return u(d,new Promise(function(e){(new M(e)).R(c/1E3)}),2)}a.h*=a.m;C(d)})}function cf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function ef(a,b){this.promise=a;this.i=b;this.g=!1}function ff(a){return new ef(Promise.reject(a),function(){return Promise.resolve()})}function gf(){var a=Promise.reject(new K(2,7,7001));a.catch(function(){});return new ef(a,function(){return Promise.resolve()})}function hf(a){return new ef(Promise.resolve(a),function(){return Promise.resolve()})}function jf(a){return new ef(a,function(){return a.catch(function(){})})}ef.prototype.abort=function(){this.g=!0;return this.i()};
174
+ function kf(a){return new ef(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}ef.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
175
+ ef.prototype.ma=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=lf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Lc,g=new K(2,7,7001);this.promise.then(c(!0),c(!1));return new ef(f,function(){return d()})};
176
+ function lf(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()}}}G("shaka.util.AbortableOperation",ef);ef.prototype.chain=ef.prototype.ma;ef.prototype["finally"]=ef.prototype.finally;ef.all=kf;ef.prototype.abort=ef.prototype.abort;ef.notAbortable=jf;ef.completed=hf;ef.aborted=gf;ef.failed=ff;function mf(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function nf(a){var b={},c;for(c in a)b[c]=a[c];return b};function of(){this.g=[]}function pf(a,b){a.g.push(b.finally(function(){gc(a.g,b)}))}of.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function qf(a,b,c){jb.call(this);this.i=!1;this.m=new of;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.s=!1}sa(qf,jb);r=qf.prototype;r.Ve=function(a){this.s=a};function rf(a,b,c,d){c=c||sf;var e=tf[a];if(!e||c>=e.priority)tf[a]={priority:c,Ah:b,Bh:void 0===d?!1:d}}r.Ch=function(a){this.g.add(a)};r.Rh=function(a){this.g.delete(a)};r.ug=function(){this.g.clear()};r.Dh=function(a){this.h.add(a)};r.Sh=function(a){this.h.delete(a)};r.vg=function(){this.h.clear()};
177
+ function uf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();jb.prototype.release.call(this);return this.m.destroy()};
178
+ r.request=function(a,b){var c=this,d=new vf;if(this.i){var e=Promise.reject(new K(2,7,7001));e.catch(function(){});return new wf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?mf(b.retryParameters):cf();b.uris=mf(b.uris);e=xf(this,a,b);var f=e.ma(function(){return yf(c,a,b,new bf(b.retryParameters,!1),0,null,d)}),g=f.ma(function(n){return zf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
179
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ma(function(n){var p=Date.now()-l,q=n.response;q.timeMs+=k;q.timeMs+=p;n.ih||!c.l||q.fromCache||"HEAD"==b.method||a!=Af||c.l(q.timeMs,q.data.byteLength);return q},function(n){n&&(n.severity=2);throw n;});e=new wf(m.promise,function(){return m.abort()},d);pf(this.m,e);return e};
180
+ function xf(a,b,c){var d=hf(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={ge:e.ge},f=a.next())e.ge=f.value,d=d.ma(function(g){return function(){c.body&&(c.body=Hc(c.body));return g.ge(b,c)}}(e));return d.ma(void 0,function(g){if(g instanceof K&&7001==g.code)throw g;throw new K(2,1,1006,g);})}
181
+ function yf(a,b,c,d,e,f,g){a.s&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new pb(c.uris[e]),k=h.Xa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),qb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=tf[k])?k.Ah:null;if(!m)return ff(new K(2,1,1E3,h));var n=k.Bh,p=null,q=null,v=!1,w=!1,x;return jf(df(d)).ma(function(){if(a.i)return gf();x=Date.now();var z=m(c.uris[e],c,b,function(y,E,F){p&&p.stop();q&&q.R(A/1E3);a.l&&b==Af&&(a.l(y,E),l=!0,g.g=F)},function(y){a.j&&a.j(y,c,b);w=!0});
182
+ if(!n)return z;var B=c.retryParameters.connectionTimeout;B&&(p=new M(function(){v=!0;z.abort()}),p.R(B/1E3));var A=c.retryParameters.stallTimeout;A&&(q=new M(function(){v=!0;z.abort()}));return z}).ma(function(z){p&&p.stop();q&&q.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-x);var B={response:z,ih:l};!w&&a.j&&a.j(z.headers,c,b);return B},function(z){p&&p.stop();q&&q.stop();if(a.B){var B=null,A=0;z instanceof K&&(B=z,1001==z.code&&(A=z.data[1]));a.B(c,B,A,v)}if(a.i)return gf();v&&(z=new K(1,1,1003,
183
+ c.uris[e],b));if(z instanceof K){if(7001==z.code)throw z;if(1010==z.code)throw f;if(1==z.severity)return B=(new Map).set("error",z),B=new I("retry",B),a.dispatchEvent(B),e=(e+1)%c.uris.length,yf(a,b,c,d,e,z,g)}throw z;})}
184
+ function zf(a,b,c){var d=hf(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={ie:e.ie},f=a.next())e.ie=f.value,d=d.ma(function(g){return function(){var h=c.response;h.data&&(h.data=Hc(h.data));return g.ie(b,h)}}(e));return d.ma(function(){return c},function(g){var h=2;if(g instanceof K){if(7001==g.code)throw g;h=g.severity}throw new K(h,1,1007,g);})}G("shaka.net.NetworkingEngine",qf);qf.prototype.request=qf.prototype.request;qf.prototype.destroy=qf.prototype.destroy;qf.makeRequest=uf;
185
+ qf.defaultRetryParameters=function(){return cf()};qf.prototype.clearAllResponseFilters=qf.prototype.vg;qf.prototype.unregisterResponseFilter=qf.prototype.Sh;qf.prototype.registerResponseFilter=qf.prototype.Dh;qf.prototype.clearAllRequestFilters=qf.prototype.ug;qf.prototype.unregisterRequestFilter=qf.prototype.Rh;qf.prototype.registerRequestFilter=qf.prototype.Ch;qf.unregisterScheme=function(a){delete tf[a]};qf.registerScheme=rf;qf.prototype.setForceHTTPS=qf.prototype.Ve;function vf(){this.g=0}
186
+ qf.NumBytesRemainingClass=vf;function wf(a,b,c){ef.call(this,a,b);this.h=c}sa(wf,ef);qf.PendingRequest=wf;var Af=1;qf.RequestType={MANIFEST:0,SEGMENT:Af,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var sf=3;qf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:sf};var tf={};function Bf(a){this.g=!1;this.h=new Lc;this.i=a}Bf.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 Cf(a,b){if(a.g){if(b instanceof K&&7003==b.code)throw b;throw new K(2,7,7003,b);}};function Df(){this.g=new hb}r=Df.prototype;r.release=function(){this.gb();this.g=null};r.o=function(a,b,c,d){this.g&&(a=new Ef(a,b,c,d),this.g.push(b,a))};r.ra=function(a,b,c,d){function e(g){f.tc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};r.tc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.tc(),this.g.remove(b,e))}};
187
+ r.gb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.tc();this.g.g={}}};G("shaka.util.EventManager",Df);Df.prototype.removeAll=Df.prototype.gb;Df.prototype.unlisten=Df.prototype.tc;Df.prototype.listenOnce=Df.prototype.ra;Df.prototype.listen=Df.prototype.o;Df.prototype.release=Df.prototype.release;function Ef(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Ff(a,d);this.target.addEventListener(b,c,this.g)}
188
+ Ef.prototype.tc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Ff(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 Gf(a)?b:b.capture||!1}
189
+ function Gf(a){var b=Hf;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}Hf=b}return b||!1}var Hf=void 0;function If(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Jf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Kf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Lf(a,b){this.W=Kc(a);this.h=b==Mf;this.g=0}r=Lf.prototype;r.za=function(){return this.g<this.W.byteLength};r.na=function(){return this.g};r.Og=function(){return this.W.byteLength};r.rb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Nf();}};r.Ke=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Nf();}};r.O=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Nf();}};
190
+ r.Uf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Nf();}};r.Eb=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Nf();}if(2097151<b)throw new K(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.Db=function(a){if(this.g+a>this.W.byteLength)throw Nf();var b=Gc(this.W,this.g,a);this.g+=a;return b};
191
+ r.skip=function(a){if(this.g+a>this.W.byteLength)throw Nf();this.g+=a};r.Kh=function(a){if(this.g<a)throw Nf();this.g-=a};r.seek=function(a){if(0>a||a>this.W.byteLength)throw Nf();this.g=a};r.$c=function(){for(var a=this.g;this.za()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Gc(this.W,a,this.g-a);this.g+=1;return cd(a)};function Nf(){return new K(2,3,3E3)}G("shaka.util.DataViewReader",Lf);Lf.prototype.readTerminatedString=Lf.prototype.$c;Lf.prototype.seek=Lf.prototype.seek;Lf.prototype.rewind=Lf.prototype.Kh;
192
+ Lf.prototype.skip=Lf.prototype.skip;Lf.prototype.readBytes=Lf.prototype.Db;Lf.prototype.readUint64=Lf.prototype.Eb;Lf.prototype.readInt32=Lf.prototype.Uf;Lf.prototype.readUint32=Lf.prototype.O;Lf.prototype.readUint16=Lf.prototype.Ke;Lf.prototype.readUint8=Lf.prototype.rb;Lf.prototype.getLength=Lf.prototype.Og;Lf.prototype.getPosition=Lf.prototype.na;Lf.prototype.hasMoreData=Lf.prototype.za;var Mf=1;Lf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Mf};function Of(){this.i=[];this.h=[];this.g=!1}r=Of.prototype;r.box=function(a,b){a=Pf(a);this.i[a]=Qf;this.h[a]=b;return this};r.S=function(a,b){a=Pf(a);this.i[a]=Rf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new Lf(a,0);for(this.g=!1;a.za()&&!this.g;)this.Yc(0,a,b,c)};
193
+ r.Yc=function(a,b,c,d){var e=b.na();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.O(),g=b.O(),h=Sf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.na()+8>b.W.byteLength){this.g=!0;return}f=b.Eb();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Rf){if(d&&b.na()+4>b.W.byteLength){this.g=!0;return}n=b.O();m=n>>>24;n&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.na(),b=0<d?b.Db(d):new Uint8Array(0),b=new Lf(b,0),l({name:h,parser:this,
194
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.na(),b.W.byteLength-b.na()))}};function Tf(a){for(var b=Uf(a);a.reader.za()&&!a.parser.g;)a.parser.Yc(a.start+b,a.reader,a.partialOkay)}function Vf(a){for(var b=Uf(a),c=a.reader.O(),d=0;d<c&&(a.parser.Yc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Wf(a){var b=Uf(a);for(a.reader.skip(78);a.reader.za()&&!a.parser.g;)a.parser.Yc(a.start+b,a.reader,a.partialOkay)}
195
+ function Xf(a){return function(b){a(b.reader.Db(b.reader.W.byteLength-b.reader.na()))}}function Pf(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Sf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Uf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}G("shaka.util.Mp4Parser",Of);Of.headerSize=Uf;Of.typeToString=Sf;Of.allData=Xf;Of.visualSampleEntry=Wf;Of.sampleDescription=Vf;Of.children=Tf;
196
+ Of.prototype.parseNext=Of.prototype.Yc;Of.prototype.parse=Of.prototype.parse;Of.prototype.stop=Of.prototype.stop;Of.prototype.fullBox=Of.prototype.S;Of.prototype.box=Of.prototype.box;var Qf=0,Rf=1;function Yf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Of).box("moov",Tf).box("moof",Tf).S("pssh",function(c){if(!(1<c.version)){var d=Gc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(nd(c.reader.Db(16)));if(0<c.version){d=c.reader.O();for(var e=0;e<d;e++){var f=nd(c.reader.Db(16));b.h.push(f)}}}}).parse(a)}
197
+ function Zf(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Kc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=md(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function $f(a,b){a=ag(a,b);return 1!=a.length?null:a[0]}function bg(a,b,c){a=cg(a,b,c);return 1!=a.length?null:a[0]}function ag(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function dg(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
198
+ function cg(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function eg(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function fg(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function gg(a){return Array.from(a.childNodes).every(hg)?a.textContent.trim():null}
199
+ function hg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function ig(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function jg(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}
200
+ function kg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
201
+ function lg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function mg(a){a=Number(a);return 0===a%1?a:null}function ng(a){a=Number(a);return 0===a%1&&0<a?a:null}function og(a){a=Number(a);return 0===a%1&&0<=a?a:null}function pg(a){a=Number(a);return isNaN(a)?null:a}function qg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
202
+ function rg(a,b){var c=new DOMParser,d=sg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function tg(a,b){try{var c=cd(a);return rg(c,b)}catch(d){return null}}
203
+ var sg=new Mc(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 ug(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.J=new Set;this.l=this.C=null;this.aa=this.Z=!1;this.K=0;this.g=null;this.B=new Df;this.i=new Map;this.F=[];this.m=new Lc;this.h=null;this.s=function(d){c.m.reject(d);a.onError(d)};this.ba=new Map;this.$=new Map;this.M=new M(function(){return vg(c)});this.P=!1;this.N=[];this.U=!1;this.ua=(new M(function(){wg(c)})).ka(b);this.m.catch(function(){});this.j=new Bf(function(){return xg(c)});this.X=!1;this.H=this.I=null}r=ug.prototype;
204
+ r.destroy=function(){return this.j.destroy()};function xg(a){return D(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.m.reject(),a.ua.stop(),a.ua=null,a.M.stop(),a.M=null,u(b,yg(a),2);case 2:if(!a.l){b.D(3);break}xa(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:Aa(b,5);break;case 4:Ba(b);case 5:a.l=null;case 3:a.g=null,a.J.clear(),a.C=null,a.F=[],a.h=null,a.s=function(){},a.G=null,a.X=!1,a.I=null,C(b)}})}r.configure=function(a){this.h=a};
205
+ function zg(a,b,c){a.aa=!0;a.F=[];a.P=c;return Ag(a,b)}function Bg(a,b,c){a.F=c;a.P=0<c.length;return Ag(a,b)}
206
+ 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,[])}
207
+ function Ag(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){if(1==A.g){if(c=Eg(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=If(a.h.servers),Fg(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Gg(m),p=t(n),q=p.next();!q.done;q=p.next())v=q.value,k.add(v);w=t(k);for(q=w.next();!q.done;q=
208
+ w.next())x=q.value,Hg(x,If(a.h.servers),If(a.h.advanced||{}),a.h.keySystemsMapping);return u(A,ke(b,a.P,a.X),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.Z=!0,A.return(Promise.resolve());B=Dg(a,void 0,b);return A.return(g?B:B.catch(function(){}))})}
209
+ function Ig(a){var b;return D(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.I){c.D(2);break}return u(c,a.I,3);case 3:return Cf(a.j),c.return();case 2:return xa(c,4),a.I=a.l.setMediaKeys(a.C),u(c,a.I,6);case 6:Aa(c,5);break;case 4:b=Ba(c),a.s(new K(2,6,6003,b.message));case 5:Cf(a.j),C(c)}})}function Jg(a,b){return D(function(c){if(1==c.g)return u(c,Ig(a),2);Kg(a,b.initDataType,Gc(b.initData));C(c)})}
210
+ r.Ec=function(a){var b=this;return D(function(c){if(1==c.g){if(!b.C)return b.B.ra(a,"encrypted",function(){b.s(new K(2,6,6010))}),c.return();b.l=a;b.B.ra(b.l,"play",function(){for(var d=t(b.N),e=d.next();!e.done;e=d.next())Lg(b,e.value);b.U=!0;b.N=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return yg(b)});b.H=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.H||"com.apple.fps"!==b.g.keySystem||
211
+ b.F.length?u(c,Ig(b),2):c.D(2)}Mg(b);b.H||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(d){return Jg(b,d)});C(c)})};
212
+ function Ng(a){var b,c,d,e,f;return D(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=uf([a.g.serverCertificateUri],a.h.retryParameters);xa(g,3);c=a.G.Ub.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Gc(d.data);Aa(g,4);break;case 3:throw e=Ba(g),new K(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();
213
+ xa(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:Aa(g,0);break;case 6:throw f=Ba(g),new K(2,6,6004,f.message);}})}function Og(a,b){var c,d,e;return D(function(f){if(1==f.g)return u(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.Qa=new Lc,d.push(e.Qa);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);C(f)})}
214
+ function Mg(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Kg(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())Pg(a,d.value);b.length||a.F.length||a.m.resolve();return a.m}function Kg(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Ec(c,e.value.initData)&&!Tc("Tizen 2"))return;0<a.i.size&&Qg(a)&&(a.m.resolve(),a.m=new Lc,a.m.catch(function(){}));Rg(a,b,c,a.g.sessionType)}}
215
+ function Sg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Tg(a){a=a.i.keys();a=kb(a,function(b){return b.sessionId});return Array.from(a)}r.Kc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};r.yd=function(){return Jf(this.$)};
216
+ function Dg(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w;return D(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Ug(a,c,d);x.D(2);break}return u(x,Vg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new K(2,6,6001);Cf(a.j);xa(x,4);a.J.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.J.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())q=m.value,a.J.add(q.contentType.toLowerCase());if(c.length){var z=
217
+ f.keySystem;var B=d.get(f.keySystem);var A=[],y=[],E=[],F=[],H=new Set;Wg(B,A,E,y,F,H);var J=a.P?"persistent-license":"temporary";z={keySystem:z,licenseServerUri:A[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||J,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:y[0],initData:F,keyIds:H};B=t(B);for(A=B.next();!A.done;A=
218
+ B.next())A=A.value,A.distinctiveIdentifierRequired&&(z.distinctiveIdentifierRequired=A.distinctiveIdentifierRequired),A.persistentStateRequired&&(z.persistentStateRequired=A.persistentStateRequired);B=z}else B=f.keySystem,z=b.get(f.keySystem),A=[],y=[],E=[],F=[],H=new Set,Wg(z.drmInfos,A,E,y,F,H),B={keySystem:B,licenseServerUri:A[0],distinctiveIdentifierRequired:"required"==z.distinctiveIdentifier,persistentStateRequired:"required"==z.persistentState,sessionType:z.sessionTypes[0]||"temporary",audioRobustness:(z.audioCapabilities?
219
+ z.audioCapabilities[0].robustness:"")||"",videoRobustness:(z.videoCapabilities?z.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:y[0],initData:F,keyIds:H};a.g=B;if(!a.g.licenseServerUri)throw new K(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return v=x.h,Cf(a.j),a.C=v,a.Z=!0,u(x,Ng(a),7);case 7:Cf(a.j);Aa(x,0);break;case 4:w=Ba(x);Cf(a.j,w);a.g=null;a.J.clear();if(w instanceof K)throw w;throw new K(2,6,6002,w.message);}})}
220
+ function Ug(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(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 K(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={ee:d.ee},e=a.next())for(d.ee=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
221
221
  l.ee}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
222
- function Ug(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x;return D(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new K(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.D(4);break}k=h.value;if(!b.has(k)){z.D(3);break}l=b.get(k);wa(z,6);return u(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
223
- z.h,z.return(c);case 6:Aa(z);case 7:Bf(a.j);case 3:h=g.next();z.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.D(11);break}p=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();z.D(9);break}v=h.value;w=b.get(v);x=w.drmInfos.some(function(B){return!!B.licenseServerUri});if(x!=p){z.D(13);break}wa(z,15);return u(z,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=z.h,z.return(c);case 15:Aa(z);case 16:Bf(a.j);case 13:h=q.next();z.D(12);break;case 11:return z.return(c)}})}
224
- function Dg(a){a=Hf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=kd(md(f),!1));f=e;22!=f.length&&(f=kd(md(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Gc(gd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
222
+ function Vg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x;return D(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new K(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.D(4);break}k=h.value;if(!b.has(k)){z.D(3);break}l=b.get(k);xa(z,6);return u(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
223
+ z.h,z.return(c);case 6:Ba(z);case 7:Cf(a.j);case 3:h=g.next();z.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.D(11);break}p=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();z.D(9);break}v=h.value;w=b.get(v);x=w.drmInfos.some(function(B){return!!B.licenseServerUri});if(x!=p){z.D(13);break}xa(z,15);return u(z,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=z.h,z.return(c);case 15:Ba(z);case 16:Cf(a.j);case 13:h=q.next();z.D(12);break;case 11:return z.return(c)}})}
224
+ function Eg(a){a=If(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=kd(md(f),!1));f=e;22!=f.length&&(f=kd(md(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Gc(gd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
225
225
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
226
- function Og(a,b){var c,d,e,f,g;return D(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new K(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.L.push(k):Kg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Wg(a,k)});e={initData:null,initDataType:null,loaded:!1,Je:Infinity,hb:null,type:"persistent-license"};a.i.set(c,e);wa(h,2);return u(h,c.load(b),4);case 4:f=
227
- h.h;Bf(a.j);if(!f)return a.i.delete(c),a.m(new K(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Pg(a)&&a.s.resolve();return h.return(c);case 2:g=Aa(h),Bf(a.j,g),a.i.delete(c),a.m(new K(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
228
- function Qg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new K(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.L.push(f):Kg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Wg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Je:Infinity,hb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof K||(b=new K(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&kd(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
229
- 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 K(2,6,6006,f.message,f,h))}})}
230
- function Kg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w;D(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&kd(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=tf([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,g.drmInfo=a.g,d&&(g.initData=d.initData,g.initDataType=d.initDataType),
231
- Rg(a.g.keySystem)&&Xg(g),h=Date.now(),wa(x,2),l=a.G.Ub.request(2,g),u(x,l.promise,4);case 4:k=x.h;za(x,3);break;case 2:return m=Aa(x),n=new K(2,6,6007,m),a.m(n),d&&d.hb&&d.hb.reject(n),x.return();case 3:if(a.j.g)return x.return();a.K+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&kd(k.data);wa(x,5);return u(x,c.update(k.data),7);case 7:za(x,6);break;case 5:return p=Aa(x),q=new K(2,6,6008,p.message),a.m(q),d&&d.hb&&d.hb.reject(q),x.return();case 6:if(a.j.g)return x.return();v=new I("drmsessionupdate");
232
- a.G.onEvent(v);d&&(d.hb&&d.hb.resolve(),w=new N(function(){d.loaded=!0;Pg(a)&&a.s.resolve()}),w.R(Yg));C(x)}})}
233
- function Xg(a){var b=dd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=qg(b,"PlayReadyKeyMessage");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=ld(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
234
- function Wg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Rg(a.g.keySystem)&&16==g.byteLength&&(Rc()||Yc())){h=Kc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=nd(g).slice(0,32);a.ea.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.hb&&(a.i.delete(b),b.close().catch(function(){}));
235
- Pg(a)&&(a.s.resolve(),a.U.R(Zg))}function ug(a){var b=a.ea,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 K(2,6,6014));a.G.Jd(If(c))}
236
- function $g(){var a,b,c,d,e,f,g,h;return D(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
237
- p;return D(function(q){switch(q.g){case 1:wa(q,2);if("org.w3.clearkey"===l&&Zc())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Tc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(q,m.createMediaKeys(),5);case 5:za(q,0);break;case 2:Aa(q),f.set(l,null),C(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(If(f))})}
238
- function ah(a){var b;return D(function(c){if(1==c.g)return b=new Promise(function(d,e){(new N(e)).R(bh)}),wa(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return za(c,0);Aa(c);C(c)})}
239
- function xg(a){var b;return D(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return D(function(g){if(1==g.g)return wa(g,2),a.aa||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,ah(e),5):u(g,e.remove(),5);if(2!=g.g)return za(g,0);Aa(g);C(g)})})),0)})}
240
- function ch(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(ha(d.keyIds),ha(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
226
+ function Pg(a,b){var c,d,e,f,g;return D(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new K(2,6,6005,k.message),a.s(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.U?a.N.push(k):Lg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Xg(a,k)});e={initData:null,initDataType:null,loaded:!1,Ie:Infinity,Qa:null,type:"persistent-license"};a.i.set(c,e);xa(h,2);return u(h,c.load(b),4);case 4:f=
227
+ h.h;Cf(a.j);if(!f)return a.i.delete(c),a.s(new K(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Qg(a)&&a.m.resolve();return h.return(c);case 2:g=Ba(h),Cf(a.j,g),a.i.delete(c),a.s(new K(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
228
+ function Rg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.s(new K(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.U?a.N.push(f):Lg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Xg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Ie:Infinity,Qa:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof K||(b=new K(2,6,6016,f));a.s(b);return}a.h.logLicenseExchange&&kd(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
229
+ 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.s(new K(2,6,6006,f.message,f,h))}})}
230
+ function Lg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w;D(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&kd(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=uf([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,g.drmInfo=a.g,d&&(g.initData=d.initData,g.initDataType=d.initDataType),
231
+ Sg(a.g.keySystem)&&Yg(g),h=Date.now(),xa(x,2),l=a.G.Ub.request(2,g),u(x,l.promise,4);case 4:k=x.h;Aa(x,3);break;case 2:m=Ba(x);if(a.j.g)return x.return();n=new K(2,6,6007,m);1==a.i.size?(a.s(n),d&&d.Qa&&d.Qa.reject(n)):(d&&d.Qa&&d.Qa.reject(n),a.i.delete(c),Qg(a)&&(a.m.resolve(),a.M.R(.1)));return x.return();case 3:if(a.j.g)return x.return();a.K+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&kd(k.data);xa(x,5);return u(x,c.update(k.data),7);case 7:Aa(x,6);break;case 5:return p=Ba(x),q=new K(2,6,6008,
232
+ p.message),a.s(q),d&&d.Qa&&d.Qa.reject(q),x.return();case 6:if(a.j.g)return x.return();v=new I("drmsessionupdate");a.G.onEvent(v);d&&(d.Qa&&d.Qa.resolve(),w=new M(function(){d.loaded=!0;Qg(a)&&a.m.resolve()}),w.R(Zg));C(x)}})}
233
+ function Yg(a){var b=dd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=rg(b,"PlayReadyKeyMessage");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=ld(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
234
+ function Xg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Sg(a.g.keySystem)&&16==g.byteLength&&(Rc()||Yc())){h=Kc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=nd(g).slice(0,32);a.ba.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Qa&&(a.i.delete(b),b.close().catch(function(){}));
235
+ Qg(a)&&(a.m.resolve(),a.M.R($g))}function vg(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.s(new K(2,6,6014));a.G.Jd(Jf(c))}
236
+ function ah(){var a,b,c,d,e,f,g,h;return D(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
237
+ p;return D(function(q){switch(q.g){case 1:xa(q,2);if("org.w3.clearkey"===l&&Zc())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Tc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(q,m.createMediaKeys(),5);case 5:Aa(q,0);break;case 2:Ba(q),f.set(l,null),C(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(Jf(f))})}
238
+ function bh(a){var b;return D(function(c){if(1==c.g)return b=new Promise(function(d,e){(new M(e)).R(ch)}),xa(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return Aa(c,0);Ba(c);C(c)})}
239
+ function yg(a){var b;return D(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return D(function(g){if(1==g.g)return xa(g,2),a.aa||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,bh(e),5):u(g,e.remove(),5);if(2!=g.g)return Aa(g,0);Ba(g);C(g)})})),0)})}
240
+ function dh(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(ia(d.keyIds),ia(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
241
241
  f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
242
- function Fg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function vg(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 Pg(a){a=a.i.values();return lb(a,function(b){return b.loaded})}
243
- function Eg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
244
- function Vg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Ec(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=t(g.Ha.initData),l=k.next();!l.done;h={kd:h.kd},l=k.next())h.kd=l.value,e.some(function(m){return function(n){var p=
245
- m.kd;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Ec(n.initData,p.initData)}}(h))||e.push(h.kd)}if(g.Ha.keyIds)for(h=t(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
246
- function Gg(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
247
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var bh=1,Yg=5,Zg=.5,dh=new Mc(function(){return Hc(new Uint8Array([0]))});function eh(){}function fh(a,b,c,d){var e,f,g,h;return D(function(k){if(1==k.g){if(d&&(e=gh[d.toLowerCase()]))return k.return(e);if(f=hh(a))if(g=ih[f])return k.return(g);return d?k.D(2):u(k,jh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=gh[d]))return k.return(h);throw new K(2,4,4E3,a);})}function jh(a,b,c){var d,e,f;return D(function(g){if(1==g.g)return d=tf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
248
- function hh(a){a=(new pb(a)).Ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}G("shaka.media.ManifestParser",eh);eh.unregisterParserByMime=function(a){delete gh[a]};eh.registerParserByMime=function(a,b){gh[a]=b};eh.registerParserByExtension=function(a,b){ih[a]=b};var gh={},ih={};function kh(a){function b(){d=!0}function c(l){f.push(l);Sf(l)}a=Gc(a);var d=!1,e,f=[],g=[];(new Nf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).S("stsd",function(l){e=l;f.push(l);Uf(l)}).S("encv",b).S("enca",b).S("dvav",function(l){g.push({box:l,Pa:1701733238})}).S("dva1",function(l){g.push({box:l,Pa:1701733238})}).S("dvh1",function(l){g.push({box:l,Pa:1701733238})}).S("dvhe",function(l){g.push({box:l,Pa:1701733238})}).S("hev1",function(l){g.push({box:l,Pa:1701733238})}).S("hvc1",
249
- function(l){g.push({box:l,Pa:1701733238})}).S("avc1",function(l){g.push({box:l,Pa:1701733238})}).S("avc3",function(l){g.push({box:l,Pa:1701733238})}).S("ac-3",function(l){g.push({box:l,Pa:1701733217})}).S("ec-3",function(l){g.push({box:l,Pa:1701733217})}).S("ac-4",function(l){g.push({box:l,Pa:1701733217})}).S("mp4a",function(l){g.push({box:l,Pa:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw gb(nd(a)),new K(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
250
- a=lh(a,e,k.box,f,k.Pa);return a}
251
- function lh(a,b,c,d,e){var f=mh.value(),g=a.subarray(c.start,c.start+c.size),h=Kc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Kc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);nh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Sc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,nh(e,d.start,d.size+k.byteLength);k=Kc(e,b.start);b=Tf(b);a=k.getUint32(b);
252
- k.setUint32(b,a+1);return e}function nh(a,b,c){a=Kc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var mh=new Mc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function oh(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(y){return null!=y&&""!=y.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(y){return null!=y&&""!=y.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=ph(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],q=-1,v=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){q=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){v=w;break}if(-1===
253
- q||-1===v)p=qh(d,e),a.nestedCues.push(p);else{for(;q<=v;q++)if(w=p[q]){var x=w.l,z=w.i,B=w.j,A=w.h;if(x!=h||z!=k||B!=l||A!=m)n.payload&&a.nestedCues.push(n),n=ph(d,e,x,z,B,A),h=x,k=z,l=B,m=A;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=qh(d,e),a.nestedCues.push(n));n=ph(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
254
- function ph(a,b,c,d,e,f){a=new jc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function qh(a,b){a=new jc(a,b,"");a.lineBreak=!0;return a}function rh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function sh(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.s="black";th(this)}function uh(a,b,c){return oh(new jc(b,c,""),"CC"+((a.C<<1|a.B)+1),a.i,b,c)}function th(a){vh(a,0,15);a.g=1}function wh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case xh:d=yh.has(c)?yh.get(c):String.fromCharCode(c);break;case zh:d=Ah.get(c);break;case Bh:a.i[a.g].pop();d=Ch.get(c);break;case Dh:a.i[a.g].pop(),d=Eh.get(c)}d&&a.i[a.g].push(new rh(d,a.m,a.j,a.s,a.l))}}
255
- function Fh(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 vh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
256
- var xh=0,zh=1,Bh=2,Dh=3,yh=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"]]),Ah=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"]]),Ch=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
257
- [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Eh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
258
- [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function Gh(a,b){this.h=Hh;this.s=new sh(a,b);this.i=new sh(a,b);this.l=new sh(a,b);this.g=this.i;this.j=0;this.m=null}function Ih(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Jh&&a.h!==Kh&&(e=uh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,vh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,vh(c,0,15),d.g=15);a.h=Jh;d.h=b;return e}function Lh(a){a.h=Mh;a.g=a.l;a.g.h=0}function Nh(a){$a("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Kh}
259
- var Hh=0,Mh=1,Jh=3,Kh=4,Oh="black green blue cyan red yellow magenta black".split(" "),Ph="white green blue cyan red yellow magenta white_italics".split(" ");function Qh(){this.l=!1;this.F=this.H=0;this.G=Rh;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.B="white";this.m="black";Sh(this)}function Sh(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Th())}function Th(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Uh(a,b){Vh(a)&&(a.i[a.h][a.g]=new rh(b,a.C,a.s,a.m,a.B),a.g++)}function Vh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Qh.prototype.isVisible=function(){return this.l};
260
- function Wh(a,b,c){var d=new jc(a.j,b,"");d.textAlign=a.G===Xh?"left":a.G===Yh?"right":nc;if(c=oh(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Xh=0,Yh=1,Rh=2;function Zh(){this.i=[];this.h=null;this.g=0}function $h(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new ai(a.h)),a.h=null,a.g=0))}function ai(a){this.g=0;this.h=a}ai.prototype.Aa=function(){return this.g<this.h.length};ai.prototype.oa=function(){return this.g};function bi(a){if(!a.Aa())throw new K(2,2,3E3);return a.h[a.g++]}ai.prototype.skip=function(a){if(this.g+a>this.h.length)throw new K(2,2,3E3);this.g+=a};function ci(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
261
- function di(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=bi(b).value;b=null;c=t(ei(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Wh(e,d,a.i)),Sh(e);return b}if(137===c)for(b=bi(b).value,b=t(ei(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=bi(b).value;b=null;c=t(ei(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Wh(e,d,a.i)),e.l=!1;return b}if(139===c){c=bi(b).value;
262
- b=null;c=t(ei(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Wh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=bi(b).value,fi(a,b,d);if(143===c)return d=fi(a,255,d),gi(a),d;if(144===c)b.skip(1),d=bi(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=bi(b).value,c=bi(b).value,b.skip(1),a.g&&(b=hi((c&48)>>4,(c&12)>>2,c&3),a.g.B=hi((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=bi(b).value,b=bi(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
263
- b.skip(1),d=bi(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Qh;f.j=d;a.h[c]=f}d=bi(b).value;bi(b);bi(b);f=bi(b).value;var g=bi(b).value;b=bi(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function ei(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
264
- function fi(a,b,c){var d=null;b=t(ei(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Wh(f,c,a.i));a.h[e]=null}return d}function gi(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function hi(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return ii[a<<2|b<<1|c]}
265
- var ji=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),ii="black blue green cyan red magenta yellow white".split(" ");function ki(){this.h=[];this.g=[];this.i=new Zh;this.l=0;this.B=new Map([["CC1",new Gh(0,0)],["CC2",new Gh(0,1)],["CC3",new Gh(1,0)],["CC4",new Gh(1,1)]]);this.s=this.m=0;this.j=new Map;li(this)}function li(a){a.m=0;a.s=0;a=t(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,th(b.i),th(b.l),th(b.s)}
266
- function mi(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=ni(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())$h(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=oi(a,e.value),c.push.apply(c,ha(e));a.i.i=[];a.h=[];a.g=[];return c}
267
- function ni(a,b){var c=b.type;if(16===(b.Sa&112)){var d=b.Sa>>3&1;0===c?a.m=d:a.s=d}c=a.B.get("CC"+((c<<1|(c?a.s:a.m))+1));if(255===b.Sa&&255===b.kb||!b.Sa&&!b.kb||!pi(b.Sa)||!pi(b.kb))return 45<=++a.l&&li(a),null;a.l=0;b.Sa&=127;b.kb&=127;if(!b.Sa&&!b.kb)return null;a=null;if(16===(b.Sa&112))a:{d=b.Sa;a=b.kb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Ph[e]:7===e&&(f=
268
- !0);a=1===(a&1);if(c.h!==Kh){e=c.g;if(c.h===Jh&&b!==e.g){var g=1+b-e.h;Fh(e,g,1+e.g-e.h,e.h);vh(e,0,g-1);vh(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.s="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",wh(c.g,xh,32),d=!1,b=Ph[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Oh[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))wh(c.g,zh,a);else if(18===
269
- (d&246)&&32===(a&224))wh(c.g,d&1?Dh:Bh,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.kb){case 32:Lh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Ih(c,2,a);break;case 38:d=Ih(c,3,a);break;case 39:d=Ih(c,4,a);break;case 40:wh(c.g,xh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:th(c.s);Nh(c);break;case 43:Nh(c);break;case 44:b=c.i;d=null;c.h!==Kh&&(d=uh(b,c.j,a));vh(b,0,15);break;case 45:b=c.g;c.h!==Jh?d=null:(d=uh(b,c.j,a),f=b.g-b.h+1,Fh(b,f-1,f,b.h),vh(b,0,
270
- f-1),vh(b,b.g,15-b.g),c.j=a);break;case 46:vh(c.l,0,15);break;case 47:b=null,c.h!==Kh&&(b=uh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Lh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.kb,wh(c.g,xh,b.Sa),wh(c.g,xh,d);return a}
271
- function oi(a,b){var c=[];try{for(;b.Aa();){var d=bi(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=bi(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new ci(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=bi(e),l=k.value,m=k.pts;if(16===l){var n=bi(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Vh(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.F-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=Wh(q,p,g.i));if(q.h+1>=q.H){p=q;for(var v=0,w=1;16>w;w++,
272
- v++)p.i[v]=p.i[w];for(w=0;1>w;w++,v++)p.i[v]=Th()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=Wh(q,p,g.i));q.i[q.h]=Th();q.g=0;break;case 12:q.isVisible()&&(e=Wh(q,p,g.i)),Sh(q),p=q,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=di(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?Uh(g.g,"\u266a"):Uh(g.g,
273
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Uh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ji.has(e)){var z=ji.get(e);Uh(g.g,z)}else Uh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Uh(g.g,"_"):Uh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(B){if(B instanceof K&&3E3===B.code)$a("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw B;}return c}function pi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function qi(){}qi.prototype.init=function(){};qi.prototype.parse=function(){return[]};function ri(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(ha(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function si(a,b){var c=null,d=null,e=null,f=a.O();b&1&&(e=a.Fb());b&2&&a.skip(4);b&8&&(c=a.O());b&16&&(d=a.O());return{trackId:f,Hf:c,zg:d,tj:e}}function ti(a,b){return{yf:1==b?a.Fb():a.O()}}function ui(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.O()}}
274
- function vi(a,b,c){var d=a.O(),e=[],f=null;c&1&&(f=a.O());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Oe:null,sampleSize:null,Pd:null};c&256&&(h.Oe=a.O());c&512&&(h.sampleSize=a.O());c&1024&&a.skip(4);c&2048&&(h.Pd=0==b?a.O():a.Vf());e.push(h)}return{zj:d,Xf:e,yg:f}};function wi(){this.j=new Map;this.i=this.h=0;this.g=xi}
275
- wi.prototype.init=function(a){function b(f){f=f.name;f in yi&&(c.g=yi[f])}var c=this,d=[],e=[];(new Nf).box("moov",Sf).box("mvex",Sf).S("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.O();g=g.O();c.h=f;c.i=g}).box("trak",Sf).S("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.O();d.push(f)}).box("mdia",Sf).S("mdhd",function(f){f=ui(f.reader,f.version);e.push(f.timescale)}).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("avc1",b).box("avc3",b).box("hev1",
276
- b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Vf).box("sinf",Sf).box("frma",function(f){f=f.reader.O();f=Rf(f);f in yi&&(c.g=yi[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new K(2,2,2010);this.g==xi&&Za("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
277
- wi.prototype.parse=function(a){var b=this;if(this.g==xi)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Nf).box("moof",function(l){f=l.start;g=[];Sf(l)}).box("traf",Sf).S("trun",function(l){l=vi(l.reader,l.version,l.flags);g.push(l)}).S("tfhd",function(l){l=si(l.reader,l.flags);d=l.Hf||b.h;e=l.zg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).S("tfdt",function(l){h=ti(l.reader,l.version).yf}).box("mdat",function(l){if(null===h)throw Za("Unable to find base media decode time for CEA captions!"),
278
- new K(2,2,2010);zi(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
279
- function zi(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(v){return v.Xf});n=[].concat.apply([],ha(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].yg);b.Aa();){g=b.O();var p=b.sb(),q=null;q=!1;h=1;switch(a.g){case Ai:q=p&31;q=6==q;break;case Bi:h=2;b.skip(1);q=p>>1&63;q=39==q||40==q;break;default:return}if(q)for(p=0,l<n.length&&(p=n[l].Pd||0),p=(c+p)/d,h=t(ri(b.Eb(g-h))),q=h.next();!q.done;q=h.next())k.push({xh:q.value,pts:p});else try{b.skip(g-h)}catch(v){break}m-=g+4;0==m&&(c=l<n.length?
280
- c+(n[l].Oe||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}var xi=0,Ai=1,Bi=2,yi={avc1:Ai,avc3:Ai,hev1:Bi,hvc1:Bi,dvh1:Bi,dvhe:Bi};function Ci(a){this.h=new qi;a.includes("video/mp4")&&(this.h=new wi);this.g=new ki}Ci.prototype.init=function(a){this.h.init(a)};
281
- function Di(a,b){b=a.h.parse(b);b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Gc(d.xh);if(0<e.length&&(c=a.g,d=d.pts,e=new Kf(e,0),!(8>e.W.byteLength)&&181===e.sb()&&49===e.Le()&&1195456820===e.O()&&3===e.sb())){var f=e.sb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.sb(),k=(h&4)>>2,l=e.sb(),m=e.sb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Sa:l,kb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return mi(a.g)}
282
- ;function Ei(a,b,c,d,e,f){this.Na=a;this.Va=b;this.Ea=c;this.Ee=void 0===d?null:d;this.timescale=void 0===e?null:e;this.l=void 0===f?null:f}Ei.prototype.Nc=function(){return this.Va};Ei.prototype.Jc=function(){return this.Ea};function Fi(a,b){return a===b?!0:a&&b?a.Nc()==b.Nc()&&a.Jc()==b.Jc()&&ic(a.Na().sort(),b.Na().sort()):a==b}G("shaka.media.InitSegmentReference",Ei);Ei.prototype.getEndByte=Ei.prototype.Jc;Ei.prototype.getStartByte=Ei.prototype.Nc;
283
- function Gi(a,b,c,d,e,f,g,h,k,l,m,n,p,q,v){l=void 0===l?[]:l;q=void 0===q?Hi:q;this.startTime=a;this.i=this.endTime=b;this.C=c;this.Va=d;this.Ea=e;this.g=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.s=void 0===n?null:n;this.ba=void 0===p?null:p;this.status=q;this.B=!1;this.l=void 0===v?null:v;this.m=null;this.j=0}r=Gi.prototype;r.Na=function(){return this.C()};r.getStartTime=function(){return this.startTime};r.Lg=function(){return this.endTime};
284
- r.Nc=function(){return this.Va};r.Jc=function(){return this.Ea};r.eh=function(){return this.tilesLayout};r.dh=function(){return this.s};r.ic=function(){return this.status};r.ph=function(){this.status=Ii};r.Sf=function(){this.B=!0};r.kh=function(){return this.B};r.dg=function(a){this.m=a};r.ah=function(){return this.m};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=t(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
285
- r.cf=function(a){null==this.ba?Xa("Sync attempted without sync time!"):(a=this.ba-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};G("shaka.media.SegmentReference",Gi);Gi.prototype.syncAgainst=Gi.prototype.cf;Gi.prototype.offset=Gi.prototype.offset;Gi.prototype.getThumbnailSprite=Gi.prototype.ah;Gi.prototype.setThumbnailSprite=Gi.prototype.dg;Gi.prototype.isPreload=Gi.prototype.kh;Gi.prototype.markAsPreload=Gi.prototype.Sf;Gi.prototype.markAsUnavailable=Gi.prototype.ph;
286
- Gi.prototype.getStatus=Gi.prototype.ic;Gi.prototype.getTileDuration=Gi.prototype.dh;Gi.prototype.getTilesLayout=Gi.prototype.eh;Gi.prototype.getEndByte=Gi.prototype.Jc;Gi.prototype.getStartByte=Gi.prototype.Nc;Gi.prototype.getEndTime=Gi.prototype.Lg;Gi.prototype.getStartTime=Gi.prototype.getStartTime;Gi.prototype.getUris=Gi.prototype.Na;var Hi=0,Ii=1;Gi.Status={$h:Hi,mj:Ii,Di:2};function Ji(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ki(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Li(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
287
- function Mi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Ni(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function Oi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Ni(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
288
- function Ni(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
242
+ function Gg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function wg(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 Qg(a){a=a.i.values();return lb(a,function(b){return b.loaded})}
243
+ function Fg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
244
+ function Wg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ga:g.Ga},h=a.next()){g.Ga=h.value;b.includes(g.Ga.licenseServerUri)||b.push(g.Ga.licenseServerUri);d.includes(g.Ga.serverCertificateUri)||d.push(g.Ga.serverCertificateUri);g.Ga.serverCertificate&&(c.some(function(m){return function(n){return Ec(n,m.Ga.serverCertificate)}}(g))||c.push(g.Ga.serverCertificate));if(g.Ga.initData){h={};for(var k=t(g.Ga.initData),l=k.next();!l.done;h={jd:h.jd},l=k.next())h.jd=l.value,e.some(function(m){return function(n){var p=
245
+ m.jd;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Ec(n.initData,p.initData)}}(h))||e.push(h.jd)}if(g.Ga.keyIds)for(h=t(g.Ga.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
246
+ function Hg(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
247
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var ch=1,Zg=5,$g=.5,eh=new Mc(function(){return Hc(new Uint8Array([0]))});function fh(){}function gh(a,b,c,d){var e,f,g,h;return D(function(k){if(1==k.g){if(d&&(e=hh[d.toLowerCase()]))return k.return(e);if(f=ih(a))if(g=jh[f])return k.return(g);return d?k.D(2):u(k,kh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=hh[d]))return k.return(h);throw new K(2,4,4E3,a,d);})}function kh(a,b,c){var d,e,f;return D(function(g){if(1==g.g)return d=uf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
248
+ function ih(a){a=(new pb(a)).Ja.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}G("shaka.media.ManifestParser",fh);fh.unregisterParserByMime=function(a){delete hh[a]};fh.registerParserByMime=function(a,b){hh[a]=b};fh.registerParserByExtension=function(a,b){jh[a]=b};var hh={},jh={};function lh(a){function b(){d=!0}function c(l){f.push(l);Tf(l)}a=Gc(a);var d=!1,e,f=[],g=[];(new Of).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).S("stsd",function(l){e=l;f.push(l);Vf(l)}).S("encv",b).S("enca",b).S("dvav",function(l){g.push({box:l,Oa:1701733238})}).S("dva1",function(l){g.push({box:l,Oa:1701733238})}).S("dvh1",function(l){g.push({box:l,Oa:1701733238})}).S("dvhe",function(l){g.push({box:l,Oa:1701733238})}).S("hev1",function(l){g.push({box:l,Oa:1701733238})}).S("hvc1",
249
+ function(l){g.push({box:l,Oa:1701733238})}).S("avc1",function(l){g.push({box:l,Oa:1701733238})}).S("avc3",function(l){g.push({box:l,Oa:1701733238})}).S("ac-3",function(l){g.push({box:l,Oa:1701733217})}).S("ec-3",function(l){g.push({box:l,Oa:1701733217})}).S("ac-4",function(l){g.push({box:l,Oa:1701733217})}).S("mp4a",function(l){g.push({box:l,Oa:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw gb(nd(a)),new K(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
250
+ a=mh(a,e,k.box,f,k.Oa);return a}
251
+ function mh(a,b,c,d,e){var f=nh.value(),g=a.subarray(c.start,c.start+c.size),h=Kc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Kc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);oh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Sc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,oh(e,d.start,d.size+k.byteLength);k=Kc(e,b.start);b=Uf(b);a=k.getUint32(b);
252
+ k.setUint32(b,a+1);return e}function oh(a,b,c){a=Kc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var nh=new Mc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function ph(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(y){return null!=y&&""!=y.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(y){return null!=y&&""!=y.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=qh(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],q=-1,v=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){q=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){v=w;break}if(-1===
253
+ q||-1===v)p=rh(d,e),a.nestedCues.push(p);else{for(;q<=v;q++)if(w=p[q]){var x=w.l,z=w.i,B=w.j,A=w.h;if(x!=h||z!=k||B!=l||A!=m)n.payload&&a.nestedCues.push(n),n=qh(d,e,x,z,B,A),h=x,k=z,l=B,m=A;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=rh(d,e),a.nestedCues.push(n));n=qh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
254
+ function qh(a,b,c,d,e,f){a=new jc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function rh(a,b){a=new jc(a,b,"");a.lineBreak=!0;return a}function sh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function th(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.s="black";uh(this)}function vh(a,b,c){return ph(new jc(b,c,""),"CC"+((a.C<<1|a.B)+1),a.i,b,c)}function uh(a){wh(a,0,15);a.g=1}function xh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case yh:d=zh.has(c)?zh.get(c):String.fromCharCode(c);break;case Ah:d=Bh.get(c);break;case Ch:a.i[a.g].pop();d=Dh.get(c);break;case Eh:a.i[a.g].pop(),d=Fh.get(c)}d&&a.i[a.g].push(new sh(d,a.m,a.j,a.s,a.l))}}
255
+ function Gh(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 wh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
256
+ var yh=0,Ah=1,Ch=2,Eh=3,zh=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"]]),Bh=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Dh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,
257
+ "\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Fh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
258
+ [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function Hh(a,b){this.h=Ih;this.s=new th(a,b);this.i=new th(a,b);this.l=new th(a,b);this.g=this.i;this.j=0;this.m=null}function Jh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Kh&&a.h!==Lh&&(e=vh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,wh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,wh(c,0,15),d.g=15);a.h=Kh;d.h=b;return e}function Mh(a){a.h=Nh;a.g=a.l;a.g.h=0}function Oh(a){$a("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Lh}
259
+ var Ih=0,Nh=1,Kh=3,Lh=4,Ph="black green blue cyan red yellow magenta black".split(" "),Qh="white green blue cyan red yellow magenta white_italics".split(" ");function Rh(){this.l=!1;this.F=this.H=0;this.G=Sh;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.B="white";this.m="black";Th(this)}function Th(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Uh())}function Uh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Vh(a,b){Wh(a)&&(a.i[a.h][a.g]=new sh(b,a.C,a.s,a.m,a.B),a.g++)}function Wh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Rh.prototype.isVisible=function(){return this.l};
260
+ function Xh(a,b,c){var d=new jc(a.j,b,"");d.textAlign=a.G===Yh?"left":a.G===Zh?"right":nc;if(c=ph(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Yh=0,Zh=1,Sh=2;function $h(){this.i=[];this.h=null;this.g=0}function ai(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new bi(a.h)),a.h=null,a.g=0))}function bi(a){this.g=0;this.h=a}bi.prototype.za=function(){return this.g<this.h.length};bi.prototype.na=function(){return this.g};function ci(a){if(!a.za())throw new K(2,2,3E3);return a.h[a.g++]}bi.prototype.skip=function(a){if(this.g+a>this.h.length)throw new K(2,2,3E3);this.g+=a};function di(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
261
+ function ei(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=ci(b).value;b=null;c=t(fi(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Xh(e,d,a.i)),Th(e);return b}if(137===c)for(b=ci(b).value,b=t(fi(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=ci(b).value;b=null;c=t(fi(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Xh(e,d,a.i)),e.l=!1;return b}if(139===c){c=ci(b).value;
262
+ b=null;c=t(fi(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Xh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=ci(b).value,gi(a,b,d);if(143===c)return d=gi(a,255,d),hi(a),d;if(144===c)b.skip(1),d=ci(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=ci(b).value,c=ci(b).value,b.skip(1),a.g&&(b=ii((c&48)>>4,(c&12)>>2,c&3),a.g.B=ii((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=ci(b).value,b=ci(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
263
+ b.skip(1),d=ci(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Rh;f.j=d;a.h[c]=f}d=ci(b).value;ci(b);ci(b);f=ci(b).value;var g=ci(b).value;b=ci(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function fi(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
264
+ function gi(a,b,c){var d=null;b=t(fi(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Xh(f,c,a.i));a.h[e]=null}return d}function hi(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function ii(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return ji[a<<2|b<<1|c]}
265
+ var ki=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),ji="black blue green cyan red magenta yellow white".split(" ");function li(){this.h=[];this.g=[];this.i=new $h;this.l=0;this.B=new Map([["CC1",new Hh(0,0)],["CC2",new Hh(0,1)],["CC3",new Hh(1,0)],["CC4",new Hh(1,1)]]);this.s=this.m=0;this.j=new Map;mi(this)}function mi(a){a.m=0;a.s=0;a=t(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,uh(b.i),uh(b.l),uh(b.s)}
266
+ function ni(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=oi(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())ai(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=pi(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
267
+ function oi(a,b){var c=b.type;if(16===(b.Sa&112)){var d=b.Sa>>3&1;0===c?a.m=d:a.s=d}c=a.B.get("CC"+((c<<1|(c?a.s:a.m))+1));if(255===b.Sa&&255===b.jb||!b.Sa&&!b.jb||!qi(b.Sa)||!qi(b.jb))return 45<=++a.l&&mi(a),null;a.l=0;b.Sa&=127;b.jb&=127;if(!b.Sa&&!b.jb)return null;a=null;if(16===(b.Sa&112))a:{d=b.Sa;a=b.jb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Qh[e]:7===e&&(f=
268
+ !0);a=1===(a&1);if(c.h!==Lh){e=c.g;if(c.h===Kh&&b!==e.g){var g=1+b-e.h;Gh(e,g,1+e.g-e.h,e.h);wh(e,0,g-1);wh(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.s="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",xh(c.g,yh,32),d=!1,b=Qh[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Ph[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))xh(c.g,Ah,a);else if(18===
269
+ (d&246)&&32===(a&224))xh(c.g,d&1?Eh:Ch,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.jb){case 32:Mh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Jh(c,2,a);break;case 38:d=Jh(c,3,a);break;case 39:d=Jh(c,4,a);break;case 40:xh(c.g,yh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:uh(c.s);Oh(c);break;case 43:Oh(c);break;case 44:b=c.i;d=null;c.h!==Lh&&(d=vh(b,c.j,a));wh(b,0,15);break;case 45:b=c.g;c.h!==Kh?d=null:(d=vh(b,c.j,a),f=b.g-b.h+1,Gh(b,f-1,f,b.h),wh(b,0,
270
+ f-1),wh(b,b.g,15-b.g),c.j=a);break;case 46:wh(c.l,0,15);break;case 47:b=null,c.h!==Lh&&(b=vh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Mh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.jb,xh(c.g,yh,b.Sa),xh(c.g,yh,d);return a}
271
+ function pi(a,b){var c=[];try{for(;b.za();){var d=ci(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ci(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new di(e));for(var g=a.j.get(e),h=b.na();b.na()-h<f;){e=b;var k=ci(e),l=k.value,m=k.pts;if(16===l){var n=ci(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Wh(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.F-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=Xh(q,p,g.i));if(q.h+1>=q.H){p=q;for(var v=0,w=1;16>w;w++,
272
+ v++)p.i[v]=p.i[w];for(w=0;1>w;w++,v++)p.i[v]=Uh()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=Xh(q,p,g.i));q.i[q.h]=Uh();q.g=0;break;case 12:q.isVisible()&&(e=Xh(q,p,g.i)),Th(q),p=q,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=ei(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?Vh(g.g,"\u266a"):Vh(g.g,
273
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Vh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ki.has(e)){var z=ki.get(e);Vh(g.g,z)}else Vh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Vh(g.g,"_"):Vh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(B){if(B instanceof K&&3E3===B.code)$a("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw B;}return c}function qi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function ri(){}ri.prototype.init=function(){};ri.prototype.parse=function(){return[]};function si(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(ia(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function ti(a,b){var c=null,d=null,e=null,f=a.O();b&1&&(e=a.Eb());b&2&&a.skip(4);b&8&&(c=a.O());b&16&&(d=a.O());return{trackId:f,Gf:c,zg:d,uj:e}}function ui(a,b){return{xf:1==b?a.Eb():a.O()}}function vi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.O()}}
274
+ function wi(a,b,c){var d=a.O(),e=[],f=null;c&1&&(f=a.O());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Ne:null,sampleSize:null,Pd:null};c&256&&(h.Ne=a.O());c&512&&(h.sampleSize=a.O());c&1024&&a.skip(4);c&2048&&(h.Pd=0==b?a.O():a.Uf());e.push(h)}return{Aj:d,Wf:e,yg:f}};function xi(){this.j=new Map;this.i=this.h=0;this.g=yi}
275
+ xi.prototype.init=function(a){function b(f){f=f.name;f in zi&&(c.g=zi[f])}var c=this,d=[],e=[];(new Of).box("moov",Tf).box("mvex",Tf).S("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.O();g=g.O();c.h=f;c.i=g}).box("trak",Tf).S("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.O();d.push(f)}).box("mdia",Tf).S("mdhd",function(f){f=vi(f.reader,f.version);e.push(f.timescale)}).box("minf",Tf).box("stbl",Tf).S("stsd",Vf).box("avc1",b).box("avc3",b).box("hev1",
276
+ b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Wf).box("sinf",Tf).box("frma",function(f){f=f.reader.O();f=Sf(f);f in zi&&(c.g=zi[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new K(2,2,2010);this.g==yi&&Ya("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
277
+ xi.prototype.parse=function(a){var b=this;if(this.g==yi)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Of).box("moof",function(l){f=l.start;g=[];Tf(l)}).box("traf",Tf).S("trun",function(l){l=wi(l.reader,l.version,l.flags);g.push(l)}).S("tfhd",function(l){l=ti(l.reader,l.flags);d=l.Gf||b.h;e=l.zg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).S("tfdt",function(l){h=ui(l.reader,l.version).xf}).box("mdat",function(l){if(null===h)throw Ya("Unable to find base media decode time for CEA captions!"),
278
+ new K(2,2,2010);Ai(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
279
+ function Ai(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(v){return v.Wf});n=[].concat.apply([],ia(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].yg);b.za();){g=b.O();var p=b.rb(),q=null;q=!1;h=1;switch(a.g){case Bi:q=p&31;q=6==q;break;case Ci:h=2;b.skip(1);q=p>>1&63;q=39==q||40==q;break;default:return}if(q)for(p=0,l<n.length&&(p=n[l].Pd||0),p=(c+p)/d,h=t(si(b.Db(g-h))),q=h.next();!q.done;q=h.next())k.push({yh:q.value,pts:p});else try{b.skip(g-h)}catch(v){break}m-=g+4;0==m&&(c=l<n.length?
280
+ c+(n[l].Ne||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}var yi=0,Bi=1,Ci=2,zi={avc1:Bi,avc3:Bi,hev1:Ci,hvc1:Ci,dvh1:Ci,dvhe:Ci};function Di(a){this.h=new ri;a.includes("video/mp4")&&(this.h=new xi);this.g=new li}Di.prototype.init=function(a){this.h.init(a)};
281
+ function Ei(a,b){b=a.h.parse(b);b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Gc(d.yh);if(0<e.length&&(c=a.g,d=d.pts,e=new Lf(e,0),!(8>e.W.byteLength)&&181===e.rb()&&49===e.Ke()&&1195456820===e.O()&&3===e.rb())){var f=e.rb();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.rb(),k=(h&4)>>2,l=e.rb(),m=e.rb();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Sa:l,jb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return ni(a.g)}
282
+ ;function Fi(a,b,c,d,e,f){this.Ma=a;this.Va=b;this.Da=c;this.Ee=void 0===d?null:d;this.timescale=void 0===e?null:e;this.m=void 0===f?null:f}Fi.prototype.Nc=function(){return this.Va};Fi.prototype.Jc=function(){return this.Da};function Gi(a,b){return a===b?!0:a&&b?a.Nc()==b.Nc()&&a.Jc()==b.Jc()&&ic(a.Ma().sort(),b.Ma().sort()):a==b}G("shaka.media.InitSegmentReference",Fi);Fi.prototype.getEndByte=Fi.prototype.Jc;Fi.prototype.getStartByte=Fi.prototype.Nc;
283
+ function Hi(a,b,c,d,e,f,g,h,k,l,m,n,p,q,v){l=void 0===l?[]:l;q=void 0===q?Ii:q;this.startTime=a;this.j=this.endTime=b;this.F=c;this.Va=d;this.Da=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.B=void 0===n?null:n;this.g=void 0===p?null:p;this.status=q;this.C=!1;this.m=void 0===v?null:v;this.s=null;this.l=0}r=Hi.prototype;r.Ma=function(){return this.F()};r.getStartTime=function(){return this.startTime};r.Lg=function(){return this.endTime};
284
+ r.Nc=function(){return this.Va};r.Jc=function(){return this.Da};r.fh=function(){return this.tilesLayout};r.eh=function(){return this.B};r.ic=function(){return this.status};r.qh=function(){this.status=Ji};r.Rf=function(){this.C=!0};r.lh=function(){return this.C};r.dg=function(a){this.s=a};r.bh=function(){return this.s};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
285
+ r.bf=function(a){null==this.g?Wa("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};G("shaka.media.SegmentReference",Hi);Hi.prototype.syncAgainst=Hi.prototype.bf;Hi.prototype.offset=Hi.prototype.offset;Hi.prototype.getThumbnailSprite=Hi.prototype.bh;Hi.prototype.setThumbnailSprite=Hi.prototype.dg;Hi.prototype.isPreload=Hi.prototype.lh;Hi.prototype.markAsPreload=Hi.prototype.Rf;Hi.prototype.markAsUnavailable=Hi.prototype.qh;Hi.prototype.getStatus=Hi.prototype.ic;
286
+ Hi.prototype.getTileDuration=Hi.prototype.eh;Hi.prototype.getTilesLayout=Hi.prototype.fh;Hi.prototype.getEndByte=Hi.prototype.Jc;Hi.prototype.getStartByte=Hi.prototype.Nc;Hi.prototype.getEndTime=Hi.prototype.Lg;Hi.prototype.getStartTime=Hi.prototype.getStartTime;Hi.prototype.getUris=Hi.prototype.Ma;var Ii=0,Ji=1;Hi.Status={ai:Ii,nj:Ji,Ei:2};function Ki(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function 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){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
287
+ function Ni(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Oi(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function Pi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Oi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
288
+ function Oi(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
289
289
  @license
290
290
  Shaka Player
291
291
  Copyright 2022 Google LLC
292
292
  SPDX-License-Identifier: Apache-2.0
293
293
  */
294
- function Pi(){}function Qi(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127}
295
- function Ri(a){var b={key:a.type,description:"",data:""};if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=cd(Gc(a.data,1,c));a=cd(Gc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;c=a.data.subarray(1).indexOf(0);if(-1===c)return null;d=cd(Gc(a.data,1,c));a=cd(Gc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("PRIV"===a.type){if(2>
294
+ function Qi(){}function Ri(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127}
295
+ function Si(a){var b={key:a.type,description:"",data:""};if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=cd(Gc(a.data,1,c));a=cd(Gc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;c=a.data.subarray(1).indexOf(0);if(-1===c)return null;d=cd(Gc(a.data,1,c));a=cd(Gc(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("PRIV"===a.type){if(2>
296
296
  a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d=cd(Gc(a.data,0,d));a=Hc(a.data.subarray(d.length+1));b.description=d;b.data=a;return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=cd(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=cd(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Hc(a.data),b):null}
297
- function Si(a){for(var b=0,c=[];b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9];){var d=Qi(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Qi(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Ri(e))&&c.push(f);b+=e.size+10}b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]&&(b+=10)}return c}
298
- G("shaka.util.Id3Utils",Pi);Pi.getID3Frames=Si;function Ti(){this.m=null;this.s=!1;this.B=this.i=null;this.F=[];this.j=this.g=null;this.C=[];this.l=null;this.h=[]}
299
- Ti.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Ui(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71===a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h===e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.m=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.m:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Cd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
297
+ function Ti(a){for(var b=0,c=[];b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9];){var d=Ri(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Ri(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Si(e))&&c.push(f);b+=e.size+10}b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]&&(b+=10)}return c}
298
+ G("shaka.util.Id3Utils",Qi);Qi.getID3Frames=Ti;function Ui(){this.m=null;this.s=!1;this.B=this.i=null;this.F=[];this.j=this.g=null;this.C=[];this.l=null;this.h=[]}
299
+ Ui.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Vi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71===a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h===e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.m=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.m:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Cd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
300
300
  15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.Cd&&(g.Cd=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;-1!=f.video&&(this.B=f.video);-1!=f.audio&&(this.j=f.audio);-1!=f.Cd&&(this.l=f.Cd);d&&!this.s&&(d=!1,e=b-188);this.s=!0;break;case this.B:f=
301
- a.subarray(h,e+188);null==this.i&&(h=Vi(f))&&null!=h.pts&&(this.i=h.pts/9E4);this.F.push(f);break;case this.j:f=a.subarray(h,e+188);null==this.g&&(h=Vi(f))&&null!=h.pts&&(this.g=h.pts/9E4);this.C.push(f);break;case this.l:this.h.push(a.subarray(h,e+188));break;default:d=!0}}return this};
302
- function Vi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),yj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
303
- function Wi(a){for(var b=[],c=new Uint8Array(0),d=a.h.length-1;0<=d;d--){c=od(a.h[d],c);var e=Vi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Si(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Ti.prototype.getStartTime=function(){return{audio:this.g,video:this.i}};function Ui(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71===a[c]&&71===a[c+188]&&71===a[c+376])return c;c++}return-1}G("shaka.util.TsParser",Ti);function Xi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Za("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Za("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Za(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
304
- (this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Xi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Yi(a,b){var c=Zi;switch(b.mimeType){case "video/webm":c=$i;break;case "video/mp4":c=aj}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}G("shaka.lcevc.Dil",Xi);Xi.prototype.release=Xi.prototype.release;var Zi=0,$i=1,aj=2;function bj(a,b,c,d){var e=this;this.l=a;this.I=null;this.m=b;this.h={};this.L={};this.P={};this.g=null;this.J=!1;this.U=c||function(){};this.H=d||null;this.i={};this.C=new Cf;this.s={};this.B=null;this.K=new Lc;this.N="";this.j=cj(this,this.K);this.G=new Af(function(){return dj(e)});this.F=!1;this.X=new Lc}function cj(a,b){var c=new MediaSource;a.C.sa(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.N=ej(c);a.l.src=a.N;return c}r=bj.prototype;r.destroy=function(){return this.G.destroy()};
305
- function dj(a){var b,c,d,e,f,g,h,k;return D(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(Od)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new K(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.s)b.push(a.s[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.I=null;a.j=null;a.g=null;a.m=null;a.h={};a.s={};a.B=null;
301
+ a.subarray(h,e+188);null==this.i&&(h=Wi(f))&&null!=h.pts&&(this.i=h.pts/9E4);this.F.push(f);break;case this.j:f=a.subarray(h,e+188);null==this.g&&(h=Wi(f))&&null!=h.pts&&(this.g=h.pts/9E4);this.C.push(f);break;case this.l:this.h.push(a.subarray(h,e+188));break;default:d=!0}}return this};
302
+ function Wi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),zj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
303
+ function Xi(a){for(var b=[],c=new Uint8Array(0),d=a.h.length-1;0<=d;d--){c=od(a.h[d],c);var e=Wi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Ti(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Ui.prototype.getStartTime=function(){return{audio:this.g,video:this.i}};function Vi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71===a[c]&&71===a[c+188]&&71===a[c+376])return c;c++}return-1}G("shaka.util.TsParser",Ui);function Yi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Ya("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Ya("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Ya(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
304
+ (this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Yi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Zi(a,b){var c=$i;switch(b.mimeType){case "video/webm":c=aj;break;case "video/mp4":c=bj}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}G("shaka.lcevc.Dil",Yi);Yi.prototype.release=Yi.prototype.release;var $i=0,aj=1,bj=2;function cj(a,b,c,d){var e=this;this.l=a;this.I=null;this.m=b;this.h={};this.M={};this.P={};this.g=null;this.J=!1;this.U=c||function(){};this.H=d||null;this.i={};this.C=new Df;this.s={};this.B=null;this.K=new Lc;this.N="";this.j=dj(this,this.K);this.G=new Bf(function(){return ej(e)});this.F=!1;this.X=new Lc}function dj(a,b){var c=new MediaSource;a.C.ra(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.N=fj(c);a.l.src=a.N;return c}r=cj.prototype;r.destroy=function(){return this.G.destroy()};
305
+ function ej(a){var b,c,d,e,f,g,h,k;return D(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(Pd)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new K(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.s)b.push(a.s[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.I=null;a.j=null;a.g=null;a.m=null;a.h={};a.s={};a.B=null;
306
306
  a.i={};a.H=null;C(l)})}
307
- r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n;return D(function(p){if(1==p.g)return e=Jb,u(p,d.K,2);d.F=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())if(f.Ga=h.value,k=a.get(f.Ga),l=zd(k.mimeType,k.codecs),f.Ga==e.ia)fj(d,l,c,k.external);else{!b&&dc(l)||!td(l,f.Ga)||(d.s[f.Ga]=new sd(l),l=wd(f.Ga,l));m=l+d.I.sourceBufferExtraFeatures;Bf(d.G);n=void 0;try{n=d.j.addSourceBuffer(m)}catch(q){throw new K(2,3,3015,q,"The mediaSource_ status was"+d.j.readyState+
308
- "expected 'open'");}d.C.o(n,"error",function(q){return function(){d.i[q.Ga][0].p.reject(new K(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.C.o(n,"updateend",function(q){return function(){return gj(d,q.Ga)}}(f));d.h[f.Ga]=n;d.L[f.Ga]=l;d.i[f.Ga]=[];d.P[f.Ga]=!!k.drmInfos.length}C(p)})};r.configure=function(a){this.I=a};
309
- function fj(a,b,c,d){a.g||(a.g=new Ed(a.m));var e=a.g;a=d||a.J;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Gd[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Za('Text parsers should have a "setSequenceMode" method!'),e.C=a)}function hj(a){return a.j?"ended"==a.j.readyState:!0}function ij(a,b){return b==Ib?a.g.g:Ji(jj(a,b))}function kj(a,b){return b==Ib?a.g.h:Ki(jj(a,b))}
310
- function lj(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=jj(a,b);return Mi(a,c)}r.mb=function(){var a={total:Ni(this.l.buffered),audio:Ni(jj(this,"audio")),video:Ni(jj(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function jj(a,b){try{return a.h[b].buffered}catch(c){return null}}
311
- function mj(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka;return D(function(Q){switch(Q.g){case 1:h=Jb;if(b!=h.ia){Q.D(2);break}if(!a.F){Q.D(3);break}return u(Q,a.X,4);case 4:k=Q.h,a.g.B=k;case 3:return u(Q,Hd(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.Na()[0]:null),5);case 5:return Q.return();case 2:l=Gc(c);m=a.L[b];a.s[b]&&(m=a.s[b].s);0>Ui(l)?nj.includes(m)&&(v=Si(l),v.length&&d&&(w={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,
312
- pts:d.startTime},a.U([w],0,d.endTime))):(n=(new Ti).parse(l),p=d.startTime-(n.getStartTime()[b]||0),q=Wi(n),q.length&&a.U(q,p,d?d.endTime:null));if(!a.s[b]){e&&b==h.Ia&&(a.g||fj(a,"application/cea-608",a.F,!1),a.B||(a.B=new Ci(m)),d?(x=Di(a.B,c),x.length&&(z=a.h[h.Ia].timestampOffset,Md(a.g,x,d.startTime,d.endTime,z))):a.B.init(c));Q.D(6);break}f&&a.s[b].g.resetCaptions();return u(Q,xd(a.s[b],c),7);case 7:B=Q.h,a.g||fj(a,"application/cea-608",a.F,!1),B.captions&&B.captions.length&&(A=a.h[h.Ia].timestampOffset,
313
- y=Kd(B.captions),Md(a.g,y,d?d.startTime:null,d?d.endTime:null,A)),c=B.data;case 6:c=oj(a,c,d?d.startTime:null,b);E=a.h[b];F=pj;if(!a.F||E.mode==F||!d){Q.D(8);break}H=a.j.duration;J=b==h.Ia||!(h.Ia in a.h);if(!J){Q.D(9);break}L=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;M=E.timestampOffset;E.timestampOffset=0;return u(Q,qj(a,b,function(){return rj(a,b,c)}),10);case 10:return u(Q,qj(a,b,function(){return sj(a,b)}),11);case 11:return E.timestampOffset=M,
314
- E.appendWindowStart=L[0],E.appendWindowEnd=L[1],S=Ji(jj(a,b)),X=(d.startTime||0)-(S||0),a.X.resolve(X),u(Q,qj(a,b,function(){return tj(a,b,0,H)}),12);case 12:if(b!=h.Ia){Q.D(9);break}return u(Q,qj(a,b,function(){a.l.currentTime-=.001;gj(a,b)}),9);case 9:return E.mode=F,u(Q,a.Ua(H),8);case 8:return d&&a.F&&b!=h.ia&&(f||g)&&(ka=d.startTime,qj(a,b,function(){return sj(a,b)}),qj(a,b,function(){return uj(a,b,ka)})),u(Q,qj(a,b,function(){rj(a,b,c)}),16);case 16:C(Q)}})}
315
- function vj(a,b){var c=kj(a,"video")||0;Jd(a.g,b,c)}function wj(a){a.g&&Jd(a.g,"",0)}r.remove=function(a,b,c){var d=this,e;return D(function(f){e=Jb;return a==e.ia?u(f,d.g.remove(b,c),0):u(f,qj(d,a,function(){return tj(d,a,b,c)}),0)})};function xj(a,b){var c;return D(function(d){c=Jb;return b==c.ia?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,qj(a,b,function(){return tj(a,b,0,a.j.duration)}),0)})}
316
- r.flush=function(a){var b=this,c;return D(function(d){c=Jb;return a==c.ia?d.return():u(d,qj(b,a,function(){b.l.currentTime-=.001;gj(b,a)}),0)})};function yj(a,b,c,d,e,f){var g;return D(function(h){g=Jb;return b==g.ia?(f||(a.g.B=c),Id(a.g,d,e),h.return()):u(h,Promise.all([qj(a,b,function(){return sj(a,b)}),f?Promise.resolve():qj(a,b,function(){return uj(a,b,c)}),qj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;gj(a,b)})]),0)})}
317
- function zj(a,b,c){var d;return D(function(e){d=Jb;if(b==d.ia)return e.return();qj(a,b,function(){return sj(a,b)});return u(e,qj(a,b,function(){return uj(a,b,c)}),0)})}r.endOfStream=function(a){var b=this;return D(function(c){return u(c,Aj(b,function(){hj(b)||"closed"===b.j.readyState||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};
318
- r.Ua=function(a){var b=this;return D(function(c){return u(c,Aj(b,function(){if(a<b.j.duration)for(var d in b.h){var e={start:function(){},p:new Lc};b.i[d].unshift(e)}b.j.duration=a}),0)})};r.getDuration=function(){return this.j.duration};function rj(a,b,c){if("video"==b&&a.H){var d=a.H;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function tj(a,b,c,d){d<=c?gj(a,b):a.h[b].remove(c,d)}
319
- function sj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;gj(a,b)}function uj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;gj(a,b)}function gj(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Bj(a,b))}function qj(a,b,c){Bf(a.G);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&Cj(a,b);return c.p}
320
- function Aj(a,b){var c,d,e,f,g,h;return D(function(k){switch(k.g){case 1:Bf(a.G);c=[];d={};for(e in a.h)d.Ac=new Lc,f={start:function(l){return function(){return l.Ac.resolve()}}(d),p:d.Ac},a.i[e].push(f),c.push(d.Ac),1==a.i[e].length&&f.start(),d={Ac:d.Ac};wa(k,2);return u(k,Promise.all(c),4);case 4:za(k,3);break;case 2:throw g=Aa(k),g;case 3:try{b()}catch(l){throw new K(2,3,3015,l);}finally{for(h in a.h)Bj(a,h)}C(k)}})}function Bj(a,b){a.i[b].shift();Cj(a,b)}
321
- function Cj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new K(2,3,3017,b)):c.p.reject(new K(2,3,3015,d)),Bj(a,b)}}function oj(a,b,c,d){var e=a.P[d];null==c&&e&&(Uc()||Sc()||Tc("SOPOpenBrowser"))&&"mp4"==a.L[d].split(";")[0].split("/")[1]&&(b=kh(b));return b}var ej=window.URL.createObjectURL,pj="sequence",nj=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function O(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.C=0;this.F=!0;this.G=0;this.H=void 0===c?!0:c;this.I=0;this.B=!1}r=O.prototype;r.getDuration=function(){return this.j};r.Tg=function(){return this.g};r.Xe=function(a){this.i=a};r.Ua=function(a){this.j=a};r.Xg=function(){return this.i};r.Zf=function(a){this.C=a};r.fd=function(a){this.F=a};r.$e=function(a){this.s=a};r.$f=function(a){this.m=a};r.Kg=function(){return this.m};
322
- r.pc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.C)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Ie(b);this.h=Math.max(this.h,c);null!=this.i&&this.H&&!this.B&&(this.i=d-this.h-this.g)}};r.De=function(){this.B=!0};r.mh=function(){return this.B};r.Ie=function(a){this.l=null==this.l?a:Math.min(this.l,a)};
323
- r.He=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.T=function(){return Infinity==this.j&&!this.F};r.Qb=function(){return Infinity!=this.j&&!this.F};r.eb=function(){return Math.max(this.G,this.Bb()-this.s)};r.eg=function(a){this.G=a};r.Bb=function(){return this.T()||this.Qb()?Math.min(Math.max(0,(Date.now()+this.C)/1E3-this.g-this.i)+this.I,this.j):this.h?Math.min(this.h,this.j):this.j};
324
- r.Mc=function(a){var b=Math.max(this.l,this.G);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Bb()-this.s+a,this.pb()))};r.hc=function(){return this.Mc(0)};r.pb=function(){return Math.max(0,this.Bb()-(this.T()||this.Qb()?this.m:0))};r.ig=function(){return null==this.i||null!=this.h&&this.H?!1:!0};r.Yf=function(a){this.I=a};G("shaka.media.PresentationTimeline",O);O.prototype.setAvailabilityTimeOffset=O.prototype.Yf;O.prototype.usingPresentationStartTime=O.prototype.ig;
325
- O.prototype.getSeekRangeEnd=O.prototype.pb;O.prototype.getSeekRangeStart=O.prototype.hc;O.prototype.getSafeSeekRangeStart=O.prototype.Mc;O.prototype.getSegmentAvailabilityEnd=O.prototype.Bb;O.prototype.setUserSeekStart=O.prototype.eg;O.prototype.getSegmentAvailabilityStart=O.prototype.eb;O.prototype.isInProgress=O.prototype.Qb;O.prototype.isLive=O.prototype.T;O.prototype.offset=O.prototype.offset;O.prototype.notifyMaxSegmentDuration=O.prototype.He;O.prototype.notifyMinSegmentStartTime=O.prototype.Ie;
326
- O.prototype.isStartTimeLocked=O.prototype.mh;O.prototype.lockStartTime=O.prototype.De;O.prototype.notifySegments=O.prototype.pc;O.prototype.getDelay=O.prototype.Kg;O.prototype.setDelay=O.prototype.$f;O.prototype.setSegmentAvailabilityDuration=O.prototype.$e;O.prototype.setStatic=O.prototype.fd;O.prototype.setClockOffset=O.prototype.Zf;O.prototype.getPresentationStartTime=O.prototype.Xg;O.prototype.setDuration=O.prototype.Ua;O.prototype.setPresentationStartTime=O.prototype.Xe;
327
- O.prototype.getMaxSegmentDuration=O.prototype.Tg;O.prototype.getDuration=O.prototype.getDuration;function Dj(a,b,c){this.l=c;this.j=a;this.B=Ej(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}Dj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Fj(a,b){a.i=b}function Gj(a){this.g=a}function Ej(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ni(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 Hj(a,b,c,d,e){var f=this;this.B=e;this.g=a;this.C=b;this.H=c;this.l=new Cf;this.j=!1;this.G=a.readyState;this.F=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return Ij(f)});this.m=(new N(function(){Ij(f)})).ma(.25)}Hj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.B=null};Hj.prototype.Ke=function(){this.s=!0;Ij(this)};
328
- function Ij(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.G&&(a.G=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Ej(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.l(new I("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Oi(c,b,a.H.gapDetectionThreshold),null==
329
- d||0==d&&!a.s||(e=c.start(d),e>=a.C.pb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.F++,a.B(new I("gapjumped")))))}}};function Jj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Kj.value().get(b),c.sa(a,b,d))}var Kj=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Lj(a,b,c,d){var e=this;this.g=a;this.l=b;this.s=c;this.j=d;this.m=!1;this.h=new Cf;this.i=new Mj(a);Jj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Nj(e,e.j)})}Lj.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 Oj(a){return a.m?a.g.currentTime:a.j}function Pj(a,b){0<a.g.readyState?Qj(a.i,b):Jj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Nj(a,a.j)})}
330
- function Nj(a,b){.001>Math.abs(a.g.currentTime-b)?Rj(a):(a.h.sa(a.g,"seeking",function(){Rj(a)}),Qj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Rj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()});a.s(a.g.currentTime)}function Mj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new N(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Mj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
331
- function Qj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ma(.1)};function Sj(a){this.g=a;this.j=!1;this.h=null;this.i=new Cf}r=Sj.prototype;r.qe=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.sa(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Jj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.re=function(a){this.h=this.j?this.h:a};r.od=function(){return(this.j?this.g.currentTime:this.h)||0};r.vf=function(){return 0};
332
- r.uf=function(){return 0};r.Uf=function(){};
333
- function Tj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.s=Uj(a,c,f);this.j=new Hj(a,b.presentationTimeline,c,this.s,f);this.h=new Lj(a,function(){a:{var h=g.j;h.j=!0;h.s=!1;var k=Oj(g.h);h=Vj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Pj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},Wj(this,d));this.m=new N(function(){if(0!=g.i.readyState&&
334
- !g.i.paused){var h=Oj(g.h),k=g.g.hc(),l=g.g.pb();3>l-k&&(k=l-3);h<k&&(h=Vj(g,h),g.i.currentTime=h)}})}r=Tj.prototype;r.qe=function(){this.m.ma(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};r.re=function(a){Pj(this.h,a)};r.od=function(){var a=Oj(this.h);return 0<this.i.readyState&&!this.i.paused?Xj(this,a):a};r.vf=function(){return this.s?this.s.s:0};
335
- r.uf=function(){return this.j.F};function Wj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.hc():a.g.pb():0>b&&(b=a.g.pb()+b);return Yj(a,Xj(a,b))}r.Uf=function(){this.j.Ke()};function Yj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
336
- function Vj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.hc(),f=a.g.pb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Mc(c),k=a.g.Mc(d);c=a.g.Mc(c+d);return b>=g?Yj(a,b):b>f?f:b<e?Li(a.i.buffered,k)?k:c:b>=h||Li(a.i.buffered,b)?b:c}function Xj(a,b){var c=a.g.hc();if(b<c)return c;a=a.g.pb();return b>a?a:b}
337
- function Uj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Dj(new Gj(a),b.stallThreshold,c);Fj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Zj(a){this.g=a;this.h=null;this.i=0;this.j=!1}r=Zj.prototype;r.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};r.qh=function(){this.j=!0};function ak(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};
338
- r.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.j)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.Wc=function(a){if(!this.j&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,ha(a))}};
339
- r.nc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Wc(a);this.Lb(b)};r.Lb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
340
- r.Ab=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Gi(a.startTime,b,a.C,a.Va,a.Ea,a.g,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.s,a.ba,a.status,a.l),this.g[this.g.length-1].j=a.j)}};
341
- r.Ud=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new N(function(){var d=b();d?c.g.push.apply(c.g,ha(d)):(c.h.stop(),c.h=null)}),this.h.ma(a))};Zj.prototype[Symbol.iterator]=function(){return this.Nb(0)};Zj.prototype.Nb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new bk(this,b,d)};
342
- function ck(a,b,c){return new Zj([new Gi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}G("shaka.media.SegmentIndex",Zj);Zj.forSingleSegment=ck;Zj.prototype.getIteratorForTime=Zj.prototype.Nb;Zj.prototype.updateEvery=Zj.prototype.Ud;Zj.prototype.fit=Zj.prototype.Ab;Zj.prototype.evict=Zj.prototype.Lb;Zj.prototype.mergeAndEvict=Zj.prototype.nc;Zj.prototype.offset=Zj.prototype.offset;Zj.prototype.get=Zj.prototype.get;Zj.prototype.find=Zj.prototype.find;Zj.prototype.markImmutable=Zj.prototype.qh;
343
- Zj.prototype.release=Zj.prototype.release;function bk(a,b,c){this.i=a;this.g=b;this.h=c}bk.prototype.xg=function(){return this.g};bk.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Na().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
344
- bk.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Na().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};G("shaka.media.SegmentIterator",bk);bk.prototype.next=bk.prototype.next;bk.prototype.current=bk.prototype.current;bk.prototype.currentPosition=bk.prototype.xg;function dk(){Zj.call(this,[]);this.l=[]}ra(dk,Zj);r=dk.prototype;r.clone=function(){var a=new dk;a.l=this.l.slice();return a};
345
- r.release=function(){for(var a=t(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};r.find=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};r.get=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};r.offset=function(){};r.Wc=function(){};r.Lb=function(){};r.nc=function(){};r.Ab=function(){};r.Ud=function(){};
346
- G("shaka.media.MetaSegmentIndex",dk);dk.prototype.updateEvery=dk.prototype.Ud;dk.prototype.fit=dk.prototype.Ab;dk.prototype.mergeAndEvict=dk.prototype.nc;dk.prototype.evict=dk.prototype.Lb;dk.prototype.merge=dk.prototype.Wc;dk.prototype.offset=dk.prototype.offset;dk.prototype.get=dk.prototype.get;dk.prototype.find=dk.prototype.find;dk.prototype.release=dk.prototype.release;function ek(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Bd();this.h=new N(function(){b.g.Tf(.25*b.i)})}ek.prototype.release=function(){this.set(this.Ic());this.h&&(this.h.stop(),this.h=null);this.g=null};ek.prototype.set=function(a){this.i=a;fk(this)};ek.prototype.Ic=function(){return this.g.Ic()};function fk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Bd()!=b&&a.g.Ye(b);return}catch(c){}a.h.ma(.25);0!=a.g.Bd()&&a.g.Ye(0)};function gk(a){var b=this;this.h=a;this.g=new Set;this.i=(new N(function(){hk(b,!1)})).ma(.25)}gk.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function hk(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function ik(a){ib.call(this);this.g=new Map;this.h=a}ra(ik,ib);ik.prototype.release=function(){this.g.clear();ib.prototype.release.call(this)};function jk(a,b){var c=a.g.get(b);c||(c={Zc:[],Ff:null,contentType:b},a.g.set(b,c));return c}function kk(a,b,c){var d=jk(a,b.contentType);lk(a,d);a={Ee:b,position:c};d=d.Zc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
347
- ik.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Zc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Ee;break a}}d=null}if(e=d)e=c.Ff,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);
348
- 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.Ff=d,JSON.stringify(d),c=new I("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function lk(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Zc;b.Zc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Zc=[]};function mk(a){ib.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new N(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new I("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ma(2)}ra(mk,ib);mk.prototype.release=function(){this.g.clear();this.h.stop();ib.prototype.release.call(this)};function nk(a,b){ib.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Zb:null,Yb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{Zb:qk,Yb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{Zb:rk,Yb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{Zb:ok,Yb:qk,Pb:function(d,e){return pk(c,"exit",d,e)}},{Zb:ok,Yb:rk,Pb:function(d,e){return pk(c,"exit",d,e)}},{Zb:qk,Yb:rk,Pb:function(d,e){return pk(c,"skip",d,e)}},{Zb:rk,Yb:qk,Pb:function(d,e){return pk(c,"skip",d,e)}}];this.h=new Cf;this.h.o(this.i,
349
- "regionremove",function(d){c.g.delete(d.region)})}ra(nk,ib);nk.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ib.prototype.release.call(this)};nk.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?qk:a>d.endTime?rk:ok;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Zb==e&&h.Yb==f&&h.Pb(d,b)}}};
307
+ r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n;return D(function(p){if(1==p.g)return e=Jb,u(p,d.K,2);d.F=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Fa:f.Fa},h=g.next())if(f.Fa=h.value,k=a.get(f.Fa),l=zd(k.mimeType,k.codecs),f.Fa==e.ha)gj(d,l,c,k.external);else{!b&&dc(l)||!td(l,f.Fa)||(d.s[f.Fa]=new sd(l),l=wd(f.Fa,l));m=l+d.I.sourceBufferExtraFeatures;Cf(d.G);n=void 0;try{n=d.j.addSourceBuffer(m)}catch(q){throw new K(2,3,3015,q,"The mediaSource_ status was"+d.j.readyState+
308
+ "expected 'open'");}d.C.o(n,"error",function(q){return function(){d.i[q.Fa][0].p.reject(new K(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.C.o(n,"updateend",function(q){return function(){return hj(d,q.Fa)}}(f));d.h[f.Fa]=n;d.M[f.Fa]=l;d.i[f.Fa]=[];d.P[f.Fa]=!!k.drmInfos.length}C(p)})};r.configure=function(a){this.I=a};
309
+ function gj(a,b,c,d){a.g||(a.g=new Fd(a.m));var e=a.g;a=d||a.J;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Hd[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ya('Text parsers should have a "setSequenceMode" method!'),e.C=a)}function ij(a){return a.j?"ended"==a.j.readyState:!0}function jj(a,b){return b==Ib?a.g.g:Ki(kj(a,b))}function lj(a,b){return b==Ib?a.g.h:Li(kj(a,b))}
310
+ function mj(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=kj(a,b);return Ni(a,c)}r.kb=function(){var a={total:Oi(this.l.buffered),audio:Oi(kj(this,"audio")),video:Oi(kj(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function kj(a,b){try{return a.h[b].buffered}catch(c){return null}}
311
+ function nj(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O,X,da;return D(function(R){switch(R.g){case 1:h=Jb;if(b!=h.ha){R.D(2);break}if(!a.F){R.D(3);break}return u(R,a.X,4);case 4:k=R.h,a.g.B=k;case 3:return u(R,Id(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.Ma()[0]:null),5);case 5:return R.return();case 2:l=Gc(c);m=a.M[b];a.s[b]&&(m=a.s[b].s);0>Vi(l)?oj.includes(m)&&(v=Ti(l),v.length&&d&&(w={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,
312
+ pts:d.startTime},a.U([w],0,d.endTime))):(n=(new Ui).parse(l),p=d.startTime-(n.getStartTime()[b]||0),q=Xi(n),q.length&&a.U(q,p,d?d.endTime:null));if(!a.s[b]){e&&b==h.Ha&&(a.g||gj(a,"application/cea-608",a.F,!1),a.B||(a.B=new Di(m)),d?(x=Ei(a.B,c),x.length&&(z=a.h[h.Ha].timestampOffset,Nd(a.g,x,d.startTime,d.endTime,z))):a.B.init(c));R.D(6);break}f&&a.s[b].g.resetCaptions();return u(R,xd(a.s[b],c),7);case 7:B=R.h,a.g||gj(a,"application/cea-608",a.F,!1),B.captions&&B.captions.length&&(A=a.h[h.Ha].timestampOffset,
313
+ y=Ld(B.captions),Nd(a.g,y,d?d.startTime:null,d?d.endTime:null,A)),c=B.data;case 6:c=pj(a,c,d?d.startTime:null,b);E=a.h[b];F=qj;if(!a.F||E.mode==F||!d){R.D(8);break}H=a.j.duration;J=b==h.Ha||!(h.Ha in a.h);if(!J){R.D(9);break}N=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;L=E.timestampOffset;E.timestampOffset=0;return u(R,rj(a,b,function(){return sj(a,b,c)}),10);case 10:return u(R,rj(a,b,function(){return tj(a,b)}),11);case 11:return E.timestampOffset=L,
314
+ E.appendWindowStart=N[0],E.appendWindowEnd=N[1],O=Ki(kj(a,b)),X=(d.startTime||0)-(O||0),a.X.resolve(X),u(R,rj(a,b,function(){return uj(a,b,0,H)}),12);case 12:if(b!=h.Ha){R.D(9);break}return u(R,rj(a,b,function(){a.l.currentTime-=.001;hj(a,b)}),9);case 9:return E.mode=F,u(R,a.Ua(H),8);case 8:return d&&a.F&&b!=h.ha&&(f||g)&&(da=d.startTime,rj(a,b,function(){return tj(a,b)}),rj(a,b,function(){return vj(a,b,da)})),u(R,rj(a,b,function(){sj(a,b,c)}),16);case 16:C(R)}})}
315
+ function wj(a,b){var c=lj(a,"video")||0;Kd(a.g,b,c)}function xj(a){a.g&&Kd(a.g,"",0)}r.remove=function(a,b,c){var d=this,e;return D(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,rj(d,a,function(){return uj(d,a,b,c)}),0)})};function yj(a,b){var c;return D(function(d){c=Jb;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,rj(a,b,function(){return uj(a,b,0,a.j.duration)}),0)})}
316
+ r.flush=function(a){var b=this,c;return D(function(d){c=Jb;return a==c.ha?d.return():u(d,rj(b,a,function(){b.l.currentTime-=.001;hj(b,a)}),0)})};function zj(a,b,c,d,e,f){var g;return D(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Jd(a.g,d,e),h.return()):u(h,Promise.all([rj(a,b,function(){return tj(a,b)}),f?Promise.resolve():rj(a,b,function(){return vj(a,b,c)}),rj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;hj(a,b)})]),0)})}
317
+ function Aj(a,b,c){var d;return D(function(e){d=Jb;if(b==d.ha)return e.return();rj(a,b,function(){return tj(a,b)});return u(e,rj(a,b,function(){return vj(a,b,c)}),0)})}r.endOfStream=function(a){var b=this;return D(function(c){return u(c,Bj(b,function(){ij(b)||"closed"===b.j.readyState||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};
318
+ r.Ua=function(a){var b=this;return D(function(c){return u(c,Bj(b,function(){if(a<b.j.duration)for(var d in b.h){var e={start:function(){},p:new Lc};b.i[d].unshift(e)}b.j.duration=a}),0)})};r.getDuration=function(){return this.j.duration};function sj(a,b,c){if("video"==b&&a.H){var d=a.H;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function uj(a,b,c,d){d<=c?hj(a,b):a.h[b].remove(c,d)}
319
+ function tj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;hj(a,b)}function vj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;hj(a,b)}function hj(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Cj(a,b))}function rj(a,b,c){Cf(a.G);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&Dj(a,b);return c.p}
320
+ function Bj(a,b){var c,d,e,f,g,h;return D(function(k){switch(k.g){case 1:Cf(a.G);c=[];d={};for(e in a.h)d.Ac=new Lc,f={start:function(l){return function(){return l.Ac.resolve()}}(d),p:d.Ac},a.i[e].push(f),c.push(d.Ac),1==a.i[e].length&&f.start(),d={Ac:d.Ac};xa(k,2);return u(k,Promise.all(c),4);case 4:Aa(k,3);break;case 2:throw g=Ba(k),g;case 3:try{b()}catch(l){throw new K(2,3,3015,l);}finally{for(h in a.h)Cj(a,h)}C(k)}})}function Cj(a,b){a.i[b].shift();Dj(a,b)}
321
+ function Dj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new K(2,3,3017,b)):c.p.reject(new K(2,3,3015,d)),Cj(a,b)}}function pj(a,b,c,d){var e=a.P[d];null==c&&e&&(Uc()||Sc()||Tc("SOPOpenBrowser"))&&"mp4"==a.M[d].split(";")[0].split("/")[1]&&(b=lh(b));return b}var fj=window.URL.createObjectURL,qj="sequence",oj=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function P(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.C=0;this.G=!0;this.H=0;this.I=void 0===c?!0:c;this.J=0;this.B=!1;this.F=null}r=P.prototype;r.getDuration=function(){return this.j};r.Ug=function(){return this.g};r.cg=function(a){this.i=a};r.Ua=function(a){this.j=a};r.Yg=function(){return this.i};r.Yf=function(a){this.C=a};r.ed=function(a){this.G=a};r.Ze=function(a){this.s=a};r.Te=function(a){this.m=a};r.Kg=function(){return this.m};
322
+ r.pc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.C)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.He(b);this.h=Math.max(this.h,c);null!=this.i&&this.I&&!this.B&&(this.i=d-this.h-this.g)}};r.De=function(){this.B=!0};r.nh=function(){return this.B};r.$f=function(a){this.F=a};r.Ng=function(){return this.F};
323
+ r.He=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.Ge=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.T=function(){return Infinity==this.j&&!this.G};r.Qb=function(){return Infinity!=this.j&&!this.G};r.eb=function(){return Math.max(this.H,this.Ab()-this.s)};r.eg=function(a){this.H=a};
324
+ r.Ab=function(){return this.T()||this.Qb()?Math.min(Math.max(0,(Date.now()+this.C)/1E3-this.g-this.i)+this.J,this.j):this.h?Math.min(this.h,this.j):this.j};r.Mc=function(a){var b=Math.max(this.l,this.H);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ab()-this.s+a,this.ob()))};r.hc=function(){return this.Mc(0)};r.ob=function(){return Math.max(0,this.Ab()-(this.T()||this.Qb()?this.m:0))};r.ig=function(){return null==this.i||null!=this.h&&this.I?!1:!0};
325
+ r.Xf=function(a){this.J=a};G("shaka.media.PresentationTimeline",P);P.prototype.setAvailabilityTimeOffset=P.prototype.Xf;P.prototype.usingPresentationStartTime=P.prototype.ig;P.prototype.getSeekRangeEnd=P.prototype.ob;P.prototype.getSeekRangeStart=P.prototype.hc;P.prototype.getSafeSeekRangeStart=P.prototype.Mc;P.prototype.getSegmentAvailabilityEnd=P.prototype.Ab;P.prototype.setUserSeekStart=P.prototype.eg;P.prototype.getSegmentAvailabilityStart=P.prototype.eb;P.prototype.isInProgress=P.prototype.Qb;
326
+ P.prototype.isLive=P.prototype.T;P.prototype.offset=P.prototype.offset;P.prototype.notifyMaxSegmentDuration=P.prototype.Ge;P.prototype.notifyMinSegmentStartTime=P.prototype.He;P.prototype.getInitialProgramDateTime=P.prototype.Ng;P.prototype.setInitialProgramDateTime=P.prototype.$f;P.prototype.isStartTimeLocked=P.prototype.nh;P.prototype.lockStartTime=P.prototype.De;P.prototype.notifySegments=P.prototype.pc;P.prototype.getDelay=P.prototype.Kg;P.prototype.setDelay=P.prototype.Te;
327
+ P.prototype.setSegmentAvailabilityDuration=P.prototype.Ze;P.prototype.setStatic=P.prototype.ed;P.prototype.setClockOffset=P.prototype.Yf;P.prototype.getPresentationStartTime=P.prototype.Yg;P.prototype.setDuration=P.prototype.Ua;P.prototype.setPresentationStartTime=P.prototype.cg;P.prototype.getMaxSegmentDuration=P.prototype.Ug;P.prototype.getDuration=P.prototype.getDuration;function Ej(a,b,c){this.l=c;this.j=a;this.B=Fj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}Ej.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Gj(a,b){a.i=b}function Hj(a){this.g=a}function Fj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(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 Ij(a,b,c,d,e){var f=this;this.B=e;this.g=a;this.C=b;this.H=c;this.l=new Df;this.j=!1;this.G=a.readyState;this.F=this.i=0;this.h=d;this.s=!1;this.l.o(a,"waiting",function(){return Jj(f)});this.m=(new M(function(){Jj(f)})).ka(.25)}Ij.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.B=null};Ij.prototype.Je=function(){this.s=!0;Jj(this)};
328
+ function Jj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.G&&(a.G=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Fj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.s++,b.l(new I("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Pi(c,b,a.H.gapDetectionThreshold),null==
329
+ d||0==d&&!a.s||(e=c.start(d),e>=a.C.ob()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.F++,a.B(new I("gapjumped")))))}}};function Kj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Lj.value().get(b),c.ra(a,b,d))}var Lj=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Mj(a,b,c,d){var e=this;this.g=a;this.l=b;this.s=c;this.j=d;this.m=!1;this.h=new Df;this.i=new Nj(a);Kj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Oj(e,e.j)})}Mj.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 Pj(a){return a.m?a.g.currentTime:a.j}function Qj(a,b){0<a.g.readyState?Rj(a.i,b):Kj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Oj(a,a.j)})}
330
+ function Oj(a,b){.001>Math.abs(a.g.currentTime-b)?Sj(a):(a.h.ra(a.g,"seeking",function(){Sj(a)}),Rj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Sj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()});a.s(a.g.currentTime)}function Nj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new M(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Nj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
331
+ function Rj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Tj(a){this.g=a;this.j=!1;this.h=null;this.i=new Df}r=Tj.prototype;r.qe=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ra(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Kj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.re=function(a){this.h=this.j?this.h:a};r.nd=function(){return(this.j?this.g.currentTime:this.h)||0};r.uf=function(){return 0};
332
+ r.tf=function(){return 0};r.Tf=function(){};
333
+ function Uj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.s=Vj(a,c,f);this.j=new Ij(a,b.presentationTimeline,c,this.s,f);this.h=new Mj(a,function(){a:{var h=g.j;h.j=!0;h.s=!1;var k=Pj(g.h);h=Wj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Qj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},Xj(this,d));this.m=new M(function(){if(0!=g.i.readyState&&
334
+ !g.i.paused){var h=Pj(g.h),k=g.g.hc(),l=g.g.ob();3>l-k&&(k=l-3);h<k&&(h=Wj(g,h),g.i.currentTime=h)}})}r=Uj.prototype;r.qe=function(){this.m.ka(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};r.re=function(a){Qj(this.h,a)};r.nd=function(){var a=Pj(this.h);return 0<this.i.readyState&&!this.i.paused?Yj(this,a):a};r.uf=function(){return this.s?this.s.s:0};
335
+ r.tf=function(){return this.j.F};function Xj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.hc():a.g.ob():0>b&&(b=a.g.ob()+b);return Zj(a,Yj(a,b))}r.Tf=function(){this.j.Je()};function Zj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
336
+ function Wj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.hc(),f=a.g.ob(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Mc(c),k=a.g.Mc(d);c=a.g.Mc(c+d);return b>=g?Zj(a,b):b>f?f:b<e?Mi(a.i.buffered,k)?k:c:b>=h||Mi(a.i.buffered,b)?b:c}function Yj(a,b){var c=a.g.hc();if(b<c)return c;a=a.g.ob();return b>a?a:b}
337
+ function Vj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Ej(new Hj(a),b.stallThreshold,c);Gj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ak(a){this.g=a;this.h=null;this.j=0;this.l=!1}r=ak.prototype;r.release=function(){this.l||(this.g=[],this.h&&this.h.stop(),this.h=null)};r.rh=function(){this.l=!0};r.wd=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
338
+ r.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.l)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.Wc=function(a){if(!this.l&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,ia(a))}};
339
+ r.nc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Wc(a);this.Lb(b)};r.Lb=function(a){if(!this.l){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
340
+ r.zb=function(a,b,c){c=void 0===c?!1:c;if(!this.l){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new Hi(a.startTime,b,a.F,a.Va,a.Da,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.B,a.g,a.status,a.m),this.g[this.g.length-1].l=a.l)}};
341
+ r.Ud=function(a,b){var c=this;this.l||(this.h&&this.h.stop(),this.h=new M(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.ka(a))};ak.prototype[Symbol.iterator]=function(){return this.Nb(0)};ak.prototype.Nb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new bk(this,b,d)};
342
+ function ck(a,b,c){return new ak([new Hi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}G("shaka.media.SegmentIndex",ak);ak.forSingleSegment=ck;ak.prototype.getIteratorForTime=ak.prototype.Nb;ak.prototype.updateEvery=ak.prototype.Ud;ak.prototype.fit=ak.prototype.zb;ak.prototype.evict=ak.prototype.Lb;ak.prototype.mergeAndEvict=ak.prototype.nc;ak.prototype.offset=ak.prototype.offset;ak.prototype.get=ak.prototype.get;ak.prototype.find=ak.prototype.find;ak.prototype.markImmutable=ak.prototype.rh;
343
+ ak.prototype.release=ak.prototype.release;function bk(a,b,c){this.i=a;this.g=b;this.h=c}bk.prototype.xg=function(){return this.g};bk.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.Ma().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};
344
+ bk.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.Ma().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};G("shaka.media.SegmentIterator",bk);bk.prototype.next=bk.prototype.next;bk.prototype.current=bk.prototype.current;bk.prototype.currentPosition=bk.prototype.xg;function dk(){ak.call(this,[]);this.i=[]}sa(dk,ak);r=dk.prototype;r.clone=function(){var a=new dk;a.i=this.i.slice();return a};
345
+ r.release=function(){for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[]};r.wd=function(a){for(var b=t(this.i),c=b.next();!c.done;c=b.next())c.value.wd(a)};r.find=function(a){for(var b=0,c=t(this.i),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.g.length}return null};r.get=function(a){for(var b=0,c=t(this.i),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.g.length}return null};r.offset=function(){};
346
+ r.Wc=function(){};r.Lb=function(){};r.nc=function(){};r.zb=function(){};r.Ud=function(){};G("shaka.media.MetaSegmentIndex",dk);dk.prototype.updateEvery=dk.prototype.Ud;dk.prototype.fit=dk.prototype.zb;dk.prototype.mergeAndEvict=dk.prototype.nc;dk.prototype.evict=dk.prototype.Lb;dk.prototype.merge=dk.prototype.Wc;dk.prototype.offset=dk.prototype.offset;dk.prototype.get=dk.prototype.get;dk.prototype.find=dk.prototype.find;dk.prototype.forEachTopLevelReference=dk.prototype.wd;dk.prototype.release=dk.prototype.release;function ek(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Bd();this.h=new M(function(){b.g.Sf(.25*b.i)})}ek.prototype.release=function(){this.set(this.Ic());this.h&&(this.h.stop(),this.h=null);this.g=null};ek.prototype.set=function(a){this.i=a;fk(this)};ek.prototype.Ic=function(){return this.g.Ic()};function fk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Bd()!=b&&a.g.Xe(b);return}catch(c){}a.h.ka(.25);0!=a.g.Bd()&&a.g.Xe(0)};function gk(a){var b=this;this.h=a;this.g=new Set;this.i=(new M(function(){hk(b,!1)})).ka(.25)}gk.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function hk(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function ik(a){jb.call(this);this.g=new Map;this.h=a}sa(ik,jb);ik.prototype.release=function(){this.g.clear();jb.prototype.release.call(this)};function jk(a,b){var c=a.g.get(b);c||(c={Zc:[],Ef:null,contentType:b},a.g.set(b,c));return c}function kk(a,b,c){var d=jk(a,b.contentType);lk(a,d);a={Ee:b,position:c};d=d.Zc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
347
+ ik.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Zc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Ee;break a}}d=null}if(e=d)e=c.Ef,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);
348
+ 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.Ef=d,JSON.stringify(d),c=new I("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function lk(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Zc;b.Zc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Zc=[]};function mk(a){jb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new M(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new I("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}sa(mk,jb);mk.prototype.release=function(){this.g.clear();this.h.stop();jb.prototype.release.call(this)};function nk(a,b){jb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{$b:null,Zb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{$b:qk,Zb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{$b:rk,Zb:ok,Pb:function(d,e){return pk(c,"enter",d,e)}},{$b:ok,Zb:qk,Pb:function(d,e){return pk(c,"exit",d,e)}},{$b:ok,Zb:rk,Pb:function(d,e){return pk(c,"exit",d,e)}},{$b:qk,Zb:rk,Pb:function(d,e){return pk(c,"skip",d,e)}},{$b:rk,Zb:qk,Pb:function(d,e){return pk(c,"skip",d,e)}}];this.h=new Df;this.h.o(this.i,
349
+ "regionremove",function(d){c.g.delete(d.region)})}sa(nk,jb);nk.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;jb.prototype.release.call(this)};nk.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?qk:a>d.endTime?rk:ok;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.$b==e&&h.Zb==f&&h.Pb(d,b)}}};
350
350
  function pk(a,b,c,d){b=new I(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var qk=1,ok=2,rk=3;function sk(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}function tk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?uk:vk};d.ot=wk(c);var e=d.ot===xk||d.ot===yk||d.ot===zk||d.ot===Ak;e&&(d.bl=Bk(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==Ak&&(d.tb=Ck(a,d.ot)/1E3);Dk(a,b,d)}}catch(f){$a("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
351
351
  function Ek(a,b,c){try{if(!a.g.enabled)return b;var d=Fk(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=yk;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=zk;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=Gk;break a}e=void 0}d.ot=e;d.su=
352
352
  !0;var f=Hk(d);return Ik(b,f)}catch(g){return $a("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function Fk(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
353
- function Dk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,Fk(a));c.pr=a.h.ob();var e=c.ot===xk||c.ot===zk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Jk(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Hk(c);f&&(b.uris=b.uris.map(function(g){return Ik(g,f)}))}}}
354
- function wk(a){var b=a.type;if(a.init)return Kk;if("video"==b)return a.codecs.includes(",")?zk:xk;if("audio"==b)return yk;if("text"==b)return"application/mp4"===a.mimeType?Ak:Lk}function Bk(a,b){b=a.h.mb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
355
- function Ck(a,b){var c=a.h.Oa();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case xk:return a.videoBandwidth||NaN;case yk:return a.audioBandwidth||NaN;default:return a.bandwidth}}
353
+ function Dk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,Fk(a));c.pr=a.h.mb();var e=c.ot===xk||c.ot===zk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Jk(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Hk(c);f&&(b.uris=b.uris.map(function(g){return Ik(g,f)}))}}}
354
+ function wk(a){var b=a.type;if(a.init)return Kk;if("video"==b)return a.codecs.includes(",")?zk:xk;if("audio"==b)return yk;if("text"==b)return"application/mp4"===a.mimeType?Ak:Lk}function Bk(a,b){b=a.h.kb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
355
+ function Ck(a,b){var c=a.h.Na();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case xk:return a.videoBandwidth||NaN;case yk:return a.audioBandwidth||NaN;default:return a.bandwidth}}
356
356
  function Hk(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
357
357
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Jk(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=Hk(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
358
- function Ik(a,b){if(!b||a.includes("offline:"))return a;a=new pb(a);a.g.set("CMCD",b);return a.toString()}var Gk="m",yk="a",xk="v",zk="av",Kk="i",Lk="c",Ak="tt",vk="v",uk="l";G("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",aj:"s",OTHER:"o"});function Mk(a,b,c,d,e){a=tf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Nk(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.C=1;this.s=this.l=null;this.H=0;this.G=!1;this.j=new Map;this.F=!1;this.I=null;this.B=!1;this.i=new Af(function(){return Ok(c)})}r=Nk.prototype;r.destroy=function(){return this.i.destroy()};function Ok(a){var b,c,d,e;return D(function(f){if(1==f.g){b=[];c=t(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,Pk(e),b.push(Qk(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.h=null;C(f)})}
359
- r.configure=function(a){this.h=a;this.I=new af({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)};r.start=function(){var a=this;return D(function(b){if(1==b.g)return u(b,Rk(a),2);Bf(a.i);a.F=!0;C(b)})};
360
- function Sk(a,b){var c,d,e,f,g,h,k;D(function(l){switch(l.g){case 1:return c=Jb,a.H++,d=a.H,wa(l,2),u(l,xj(a.g.V,c.ia),4);case 4:za(l,3);break;case 2:if(e=Aa(l),a.g)a.g.onError(e);case 3:f=zd(b.mimeType,b.codecs),fj(a.g.V,f,a.m.sequenceMode,b.external),g=a.g.V.m,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=Tk(b),a.j.set(c.ia,k),Uk(a,k,0)),C(l)}})}function Vk(a){var b=a.j.get(Ib);b&&(Pk(b),Qk(b).catch(function(){}),a.j.delete(Ib));a.s=null}
361
- function Wk(a,b){var c=a.j.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Wb&&(Xk(a,b,!1,0,!1),c.Wb=d);else if(d=c.Wb)c.Wb=null,Xk(a,d,!0,0,!1)}}function Yk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.F&&(b.video&&Xk(a,b.video,c,d,e,f),b.audio&&Xk(a,b.audio,c,d,e,f))}function Zk(a,b){D(function(c){if(1==c.g)return a.s=b,a.F?b.segmentIndex?c.D(2):u(c,b.createSegmentIndex(),2):c.return();Xk(a,b,!0,0,!1);C(c)})}
362
- function Xk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=Ib?g&&(g.Wb&&(b.trickModeVideo?(g.Wb=b,b=b.trickModeVideo):g.Wb=null),g.stream!=b||e)&&(b.type==Ib&&fj(a.g.V,zd(b.mimeType,b.codecs),a.m.sequenceMode,b.external),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ha=null,g.wf=!!f,c&&(g.Fc?g.Wd=!0:g.La?(g.Hb=!0,g.vd=d,g.Wd=!0):(Pk(g),$k(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),al(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Sk(a,b)}
363
- function al(a,b){var c,d;return D(function(e){if(1==e.g){if(!b.Qa)return e.return();c=b.stream;d=b.Qa;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Qa!=d||b.stream!=c)return e.return();var f=a.g.zd();var g=kj(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ja?b.Ja.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ea?k.Ea-k.Va:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.g)&&(h+=(k.Ea?k.Ea-k.Va:null)||0),k=a.g.getBandwidthEstimate(),
364
- f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Qa.h.g>h?!0:!1):f=!1;f&&b.Qa.abort();C(e)})}
365
- r.cd=function(){if(this.g)for(var a=this.g.zd(),b=t(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);var e=null;c.ha&&(e=c.ha.current());if(!e||e.startTime>a||e.endTime<a)c.ha=null;e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=jj(e,d),e=Li(e,a));if(!e){(null!=kj(this.g.V,d)||c.La)&&bl(this,c);c.Qa&&(c.Qa.abort(),c.Qa=null);if(d===Ib&&(d=this.g.V,d.B))for(d=d.B.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,li(d),d=t(d.j.values()),e=d.next();!e.done;e=
366
- d.next())gi(e.value);c.cd=!0}}};function bl(a,b){b.Fc||b.Hb||(b.La?(b.Hb=!0,b.vd=0):null==ij(a.g.V,b.type)?null==b.ib&&Uk(a,b,0):(Pk(b),$k(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
367
- function Rk(a){var b,c,d,e,f,g,h,k,l,m;return D(function(n){if(1==n.g){b=Jb;if(!a.l)throw new K(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Kb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ia,a.l.video),d.add(a.l.video));a.s&&(c.set(b.ia,a.s),d.add(a.s));e=a.g.V;f=a.h.forceTransmux;return u(n,e.init(c,f,a.m.sequenceMode),2)}Bf(a.i);a.updateDuration();g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=Tk(l),a.j.set(k,m),Uk(a,m,0));C(n)})}
368
- function Tk(a){return{stream:a,type:a.type,ha:null,Ja:null,Ed:null,Be:null,Ae:null,ze:null,Wb:null,endOfStream:!1,La:!1,ib:null,Hb:!1,vd:0,Wd:!1,Fc:!1,cd:!0,Ge:!1,Me:!1,Qc:!1,Qa:null}}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.Ua(a):this.g.V.Ua(Math.pow(2,32))};
369
- function cl(a,b){var c,d,e,f,g;return D(function(h){switch(h.g){case 1:Bf(a.i);if(b.La||null==b.ib||b.Fc)return h.return();b.ib=null;if(!b.Hb){h.D(2);break}return u(h,$k(a,b,b.Wd,b.vd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.La||b.ib||Uk(a,b,0),h.return();case 4:wa(h,6);d=dl(a,b);null!=d&&(Uk(a,b,d),b.Qc=!1);za(h,7);break;case 6:return e=
370
- Aa(h),u(h,el(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:Bf(a.i),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Ua(g),C(h)}})}
371
- function dl(a,b){if(fl(b))return vj(a.g.V,b.stream.originalId||""),null;b.type==Ib&&wj(a.g.V);var c=a.g.zd(),d=b.Ja?b.Ja.endTime:c,e=lj(a.g.V,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=kj(a.g.V,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(Ib))&&fl(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=gl(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;
372
- f=Infinity;g=Array.from(a.j.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,fl(h)||h.ha&&!h.ha.current()||(f=Math.min(f,h.Ja?h.Ja.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;hl(a,b,c,e).catch(function(){});return null}
373
- function gl(a,b,c,d){if(b.ha)return b.ha.current();if(b.Ja||d)return c=b.Ja?b.Ja.endTime:d,b.Ge=!0,b.ha=b.stream.segmentIndex.Nb(c),b.ha&&b.ha.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ha=b.stream.segmentIndex.Nb(d),e=b.ha&&b.ha.next().value);e||(b.ha=b.stream.segmentIndex.Nb(c),e=b.ha&&b.ha.next().value);return e}
374
- function hl(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:e=Jb;f=b.stream;g=b.ha;b.La=!0;wa(y,2);if(2==d.ic())throw new K(1,1,1011);return u(y,il(a,b,d),4);case 4:Bf(a.i);if(a.B)return y.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&!d.l)return n=new Uint8Array(0),q=p=!1,w=function(E){var F,H,J,L;return D(function(M){if(1==M.g){if(p)return M.return();q=!0;Bf(a.i);if(a.B)return M.return();wa(M,
375
- 2);n=jl(n,E);F=!1;H=0;(new Nf).box("mdat",function(S){H=S.size+S.start;F=!0}).parse(n,!1,!0);if(!F)return M.D(4);J=n.subarray(0,H);n=n.subarray(H);return u(M,kl(a,b,c,f,d,J),4)}if(2!=M.g)return za(M,0);v=L=Aa(M);C(M)})},u(y,ll(a,b,d,w),9);l=ll(a,b,d);return u(y,l,7);case 7:return m=y.h,Bf(a.i),a.B?y.return():b.Hb?(b.La=!1,Uk(a,b,0),y.return()):u(y,kl(a,b,c,f,d,m),6);case 9:x=y.h;if(v)throw v;if(q){y.D(6);break}p=!0;Bf(a.i);return a.B?y.return():b.Hb?(b.La=!1,Uk(a,b,0),y.return()):u(y,kl(a,b,c,f,d,
376
- x),6);case 6:Bf(a.i);if(a.B)return y.return();b.Ja=d;g.next();b.La=!1;b.Me=!1;z=a.g.V.mb();B=z[b.type];eb(JSON.stringify(B));b.Hb||a.g.Ke(d.startTime,d.endTime,b.type);Uk(a,b,0);za(y,0);break;case 2:A=Aa(y);Bf(a.i,A);if(a.B)return y.return();b.La=!1;if(7001==A.code)b.La=!1,Pk(b),Uk(a,b,0),y.D(0);else if(b.type==e.ia&&a.h.ignoreTextStreamFailures)a.j.delete(e.ia),y.D(0);else if(3017==A.code)ml(a,b,A),y.D(0);else return b.Qc=!0,A.severity=2,u(y,el(a,A),0)}})}
358
+ function Ik(a,b){if(!b||a.includes("offline:"))return a;a=new pb(a);a.g.set("CMCD",b);return a.toString()}var Gk="m",yk="a",xk="v",zk="av",Kk="i",Lk="c",Ak="tt",vk="v",uk="l";G("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",bj:"s",OTHER:"o"});function Mk(a,b,c,d,e){a=uf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Nk(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.C=1;this.s=this.l=null;this.H=0;this.G=!1;this.j=new Map;this.F=!1;this.I=null;this.B=!1;this.i=new Bf(function(){return Ok(c)})}r=Nk.prototype;r.destroy=function(){return this.i.destroy()};function Ok(a){var b,c,d,e;return D(function(f){if(1==f.g){b=[];c=t(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,Pk(e),b.push(Qk(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.h=null;C(f)})}
359
+ r.configure=function(a){this.h=a;this.I=new bf({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)};r.start=function(){var a=this;return D(function(b){if(1==b.g)return u(b,Rk(a),2);Cf(a.i);a.F=!0;C(b)})};
360
+ function Sk(a,b){var c,d,e,f,g,h,k;D(function(l){switch(l.g){case 1:return c=Jb,a.H++,d=a.H,xa(l,2),u(l,yj(a.g.V,c.ha),4);case 4:Aa(l,3);break;case 2:if(e=Ba(l),a.g)a.g.onError(e);case 3:f=zd(b.mimeType,b.codecs),gj(a.g.V,f,a.m.sequenceMode,b.external),g=a.g.V.m,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=Tk(b),a.j.set(c.ha,k),Uk(a,k,0)),C(l)}})}function Vk(a){var b=a.j.get(Ib);b&&(Pk(b),Qk(b).catch(function(){}),a.j.delete(Ib));a.s=null}
361
+ function Wk(a,b){var c=a.j.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Xb&&(Xk(a,b,!1,0,!1),c.Xb=d);else if(d=c.Xb)c.Xb=null,Xk(a,d,!0,0,!1)}}function Yk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.F&&(b.video&&Xk(a,b.video,c,d,e,f),b.audio&&Xk(a,b.audio,c,d,e,f))}function Zk(a,b){D(function(c){if(1==c.g)return a.s=b,a.F?b.segmentIndex?c.D(2):u(c,b.createSegmentIndex(),2):c.return();Xk(a,b,!0,0,!1);C(c)})}
362
+ function Xk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=Ib?g&&(g.Xb&&(b.trickModeVideo?(g.Xb=b,b=b.trickModeVideo):g.Xb=null),g.stream!=b||e)&&(b.type==Ib&&gj(a.g.V,zd(b.mimeType,b.codecs),a.m.sequenceMode,b.external),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ea=null,g.vf=!!f,c&&(g.Fc?g.Wd=!0:g.Ka?(g.Gb=!0,g.ud=d,g.Wd=!0):(Pk(g),$k(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),al(a,g).catch(function(h){if(a.g)a.g.onError(h)})):Sk(a,b)}
363
+ function al(a,b){var c,d;return D(function(e){if(1==e.g){if(!b.Pa)return e.return();c=b.stream;d=b.Pa;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Pa!=d||b.stream!=c)return e.return();var f=a.g.zd();var g=lj(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ia?b.Ia.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Da?k.Da-k.Va:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.Da?k.Da-k.Va:null)||0),k=a.g.getBandwidthEstimate(),
364
+ f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Pa.h.g>h?!0:!1):f=!1;f&&b.Pa.abort();C(e)})}
365
+ r.bd=function(){if(this.g)for(var a=this.g.zd(),b=t(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);var e=null;c.ea&&(e=c.ea.current());if(!e||e.startTime>a||e.endTime<a)c.ea=null;e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=kj(e,d),e=Mi(e,a));if(!e){(null!=lj(this.g.V,d)||c.Ka)&&bl(this,c);c.Pa&&(c.Pa.abort(),c.Pa=null);if(d===Ib&&(d=this.g.V,d.B))for(d=d.B.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,mi(d),d=t(d.j.values()),e=d.next();!e.done;e=
366
+ d.next())hi(e.value);c.bd=!0}}};function bl(a,b){b.Fc||b.Gb||(b.Ka?(b.Gb=!0,b.ud=0):null==jj(a.g.V,b.type)?null==b.hb&&Uk(a,b,0):(Pk(b),$k(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
367
+ function Rk(a){var b,c,d,e,f,g,h,k,l,m;return D(function(n){if(1==n.g){b=Jb;if(!a.l)throw new K(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Jb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ha,a.l.video),d.add(a.l.video));a.s&&(c.set(b.ha,a.s),d.add(a.s));e=a.g.V;f=a.h.forceTransmux;return u(n,e.init(c,f,a.m.sequenceMode),2)}Cf(a.i);a.updateDuration();g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=Tk(l),a.j.set(k,m),Uk(a,m,0));C(n)})}
368
+ function Tk(a){return{stream:a,type:a.type,ea:null,Ia:null,Ed:null,Be:null,Ae:null,ze:null,Xb:null,endOfStream:!1,Ka:!1,hb:null,Gb:!1,ud:0,Wd:!1,Fc:!1,bd:!0,Le:!1,Qc:!1,Pa:null}}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.Ua(a):this.g.V.Ua(Math.pow(2,32))};
369
+ function cl(a,b){var c,d,e,f,g;return D(function(h){switch(h.g){case 1:Cf(a.i);if(b.Ka||null==b.hb||b.Fc)return h.return();b.hb=null;if(!b.Gb){h.D(2);break}return u(h,$k(a,b,b.Wd,b.ud),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Ka||b.hb||Uk(a,b,0),h.return();case 4:xa(h,6);d=dl(a,b);null!=d&&(Uk(a,b,d),b.Qc=!1);Aa(h,7);break;case 6:return e=
370
+ Ba(h),u(h,el(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:Cf(a.i),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Ua(g),C(h)}})}
371
+ function dl(a,b){if(fl(b))return wj(a.g.V,b.stream.originalId||""),null;b.type==Ib&&xj(a.g.V);var c=a.g.zd(),d=b.Ia?b.Ia.endTime:c,e=mj(a.g.V,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=lj(a.g.V,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(Ib))&&fl(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=gl(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;
372
+ f=Infinity;g=Array.from(a.j.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,fl(h)||h.ea&&!h.ea.current()||(f=Math.min(f,h.Ia?h.Ia.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;hl(a,b,c,e).catch(function(){});return null}
373
+ function gl(a,b,c,d){if(b.ea)return b.ea.current();if(b.Ia||d)return b.ea=b.stream.segmentIndex.Nb(b.Ia?b.Ia.endTime:d),b.ea&&b.ea.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ea=b.stream.segmentIndex.Nb(d),e=b.ea&&b.ea.next().value);e||(b.ea=b.stream.segmentIndex.Nb(c),e=b.ea&&b.ea.next().value);return e}
374
+ function hl(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:e=Jb;f=b.stream;g=b.ea;b.Ka=!0;xa(y,2);if(2==d.ic())throw new K(1,1,1011);return u(y,il(a,b,d),4);case 4:Cf(a.i);if(a.B)return y.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&!d.m)return n=new Uint8Array(0),q=p=!1,w=function(E){var F,H,J,N;return D(function(L){if(1==L.g){if(p)return L.return();q=!0;Cf(a.i);if(a.B)return L.return();xa(L,
375
+ 2);n=jl(n,E);F=!1;H=0;(new Of).box("mdat",function(O){H=O.size+O.start;F=!0}).parse(n,!1,!0);if(!F)return L.D(4);J=n.subarray(0,H);n=n.subarray(H);return u(L,kl(a,b,c,f,d,J),4)}if(2!=L.g)return Aa(L,0);v=N=Ba(L);C(L)})},u(y,ll(a,b,d,w),9);l=ll(a,b,d);return u(y,l,7);case 7:return m=y.h,Cf(a.i),a.B?y.return():b.Gb?(b.Ka=!1,Uk(a,b,0),y.return()):u(y,kl(a,b,c,f,d,m),6);case 9:x=y.h;if(v)throw v;if(q){y.D(6);break}p=!0;Cf(a.i);return a.B?y.return():b.Gb?(b.Ka=!1,Uk(a,b,0),y.return()):u(y,kl(a,b,c,f,d,
376
+ x),6);case 6:Cf(a.i);if(a.B)return y.return();b.Ia=d;g.next();b.Ka=!1;b.Le=!1;z=a.g.V.kb();B=z[b.type];db(JSON.stringify(B));b.Gb||a.g.Je(d.startTime,d.endTime,b.type);Uk(a,b,0);Aa(y,0);break;case 2:A=Ba(y);Cf(a.i,A);if(a.B)return y.return();b.Ka=!1;if(7001==A.code)b.Ka=!1,Pk(b),Uk(a,b,0),y.D(0);else if(b.type==e.ha&&a.h.ignoreTextStreamFailures)a.j.delete(e.ha),y.D(0);else if(3017==A.code)ml(a,b,A),y.D(0);else return b.Qc=!0,A.severity=2,u(y,el(a,A),0)}})}
377
377
  function nl(a,b,c){var d,e,f,g;return D(function(h){if(1==h.g)return d=b,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Gc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function jl(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
378
- function ml(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.Qc=!0;a.B=!0;a.g.onError(c);return}b.Me=!0}Uk(a,b,4)}
379
- function il(a,b,c){var d,e,f,g,h,k,l,m;return D(function(n){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Be||e!=b.Ae||f!=b.ze)h=function(){var p;return D(function(q){if(1==q.g)return wa(q,2),b.Ae=e,b.ze=f,b.Be=g,u(q,yj(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=q.g)return za(q,0);p=Aa(q);b.Ae=null;b.ze=null;b.Be=null;throw p;})},d.push(h());!Fi(c.g,b.Ed)&&(b.Ed=c.g)&&(k=ll(a,b,c.g),l=function(){var p,q,v,w;return D(function(x){switch(x.g){case 1:return wa(x,
380
- 2),u(x,k,4);case 4:return p=x.h,Bf(a.i),q=new Nf,q.box("moov",Sf).box("trak",Sf).box("mdia",Sf).S("mdhd",function(z){z=ui(z.reader||0,z.version||0);c.g.timescale=z.timescale}).parse(p),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(x,a.g.zf(b.type,p),5);case 5:return u(x,mj(a.g.V,b.type,p,null,v),6);case 6:za(x,0);break;case 2:throw w=Aa(x),b.Ed=null,w;}})},a.g.uh(c.startTime,c.g),d.push(l()));a.m.sequenceMode&&(m=b.Ja?b.Ja.j:null,c.j!=m||b.Ge)&&(b.Ge=!1,d.push(zj(a.g.V,b.type,c.startTime)));
381
- return u(n,Promise.all(d),0)})}
382
- function kl(a,b,c,d,e,f){var g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;l=a.h.parsePrftBox&&!a.G;if(k||l)h=new Nf;k&&h.S("emsg",function(q){var v=d.emsgSchemeIdUris;if(0===q.version){var w=q.reader.$c();var x=q.reader.$c();var z=q.reader.O();var B=q.reader.O();var A=q.reader.O();var y=q.reader.O();var E=e.startTime+B/z}else z=q.reader.O(),E=q.reader.Fb()/z+e.timestampOffset,
383
- B=E-e.startTime,A=q.reader.O(),y=q.reader.O(),w=q.reader.$c(),x=q.reader.$c();q=q.reader.Eb(q.reader.W.byteLength-q.reader.oa());if(v&&v.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.vh():(v=(new Map).set("detail",{startTime:E,endTime:E+A/z,schemeIdUri:w,value:x,timescale:z,presentationTimeDelta:B,eventDuration:A,id:y,messageData:q}),v=new I("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
384
- w||(w=Si(q),w.length&&e&&a.g.wh([{cueTime:e.startTime,data:q,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});l&&h.S("prft",function(q){a:{if(!a.G&&e.g.timescale){q.reader.O();var v=q.reader.O(),w=q.reader.O();v=1E3*v+w/Math.pow(2,32)*1E3;if(0===q.version)var x=q.reader.O();else try{x=q.reader.Fb()}catch(z){a.G=!0;x=void 0;break a}q=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();x=(new Map).set("detail",{wallClockTime:q,programStartDate:new Date(q-x/e.g.timescale*
385
- 1E3)});x=new I("prft",x);a.g.onEvent(x);a.G=!0}x=void 0}return x});(k||l)&&h.parse(f);return u(p,ol(a,b,c),2);case 2:return Bf(a.i),m=b.cd,b.cd=!1,n=b.wf,b.wf=!1,u(p,a.g.zf(b.type,f),3);case 3:return u(p,mj(a.g.V,b.type,f,e,g,m,n),4);case 4:Bf(a.i),C(p)}})}
386
- function ol(a,b,c){var d,e,f,g;return D(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=ij(a.g.V,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():u(h,a.g.V.remove(b.type,e,e+g),2)}Bf(a.i);C(h)})}function fl(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
387
- function ll(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,v;return D(function(w){switch(w.g){case 1:return e=zf,f=Mk(c.Na(),c.Va,c.Ea,a.h.retryParameters,d),g=b.stream,h=c instanceof Ei,k=c,l=h?0:k.endTime-k.startTime,a.g.modifySegmentRequest(f,{type:g.type,init:h,duration:l,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),m=a.g.Ub.request(e,f),b.Qa=m,u(w,m.promise,2);case 2:n=w.h;b.Qa=null;p=n.data;if(!c.l){w.D(3);break}q=b.ha;v=h?null:k.startTime;q||null==v||(q=b.stream.segmentIndex.Nb(v));return u(w,
388
- nl(p,c.l,q),4);case 4:p=w.h;case 3:return w.return(p)}})}function $k(a,b,c,d){var e,f;return D(function(g){if(1==g.g)return b.Hb=!1,b.Wd=!1,b.vd=0,b.Fc=!0,b.Ja=null,b.Ed=null,b.ha=null,d?(e=a.g.zd(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,xj(a.g.V,b.type),4);if(3!=g.g)return Bf(a.i),c?u(g,a.g.V.flush(b.type),3):g.D(3);Bf(a.i);b.Fc=!1;b.endOfStream=!1;b.La||b.ib||Uk(a,b,0);C(g)})}
389
- function Uk(a,b,c){var d=b.type;if(d!=Ib||a.j.has(d))b.ib=(new Nc(function(){var e;return D(function(f){if(1==f.g)return wa(f,2),u(f,cl(a,b),4);if(2!=f.g)return za(f,0);e=Aa(f);if(a.g)a.g.onError(e);C(f)})})).R(c)}function Pk(a){null!=a.ib&&(a.ib.stop(),a.ib=null)}function Qk(a){return D(function(b){return a.Qa?u(b,a.Qa.abort(),0):b.D(0)})}function el(a,b){return D(function(c){if(1==c.g)return u(c,cf(a.I),2);Bf(a.i);a.g.onError(b);b.handled||a.h.failureCallback(b);C(c)})};function pl(a,b){var c=ql(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return rl(d)});this.B=new Af(function(){return sl(d)})}pl.prototype.destroy=function(){return this.B.destroy()};function sl(a){var b,c,d;return D(function(e){if(1==e.g)return a.h&&a.h.abort(),tl(a),u(e,a.C,2);a.g&&a.g.fb.Vb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.fb.Vb();a.g=null;a.m=[];a.j=null;C(e)})}
390
- function ul(a,b){var c={qc:function(){},Id:function(){},Vb:function(){},onError:function(){},Kd:function(){},wj:function(){}};a.m.push({create:b,fb:c});a.h&&a.h.abort();tl(a);return c}
391
- function rl(a){return D(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Ob)var c=!1;else{a.g&&(a.g.fb.Vb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.fb.qc(),a.g={node:d.node,payload:d.payload,Ob:d.Ob,fb:c.fb}):c.fb.Kd();c=!0}c?c=Promise.resolve():a.g?c=vl(a):(a.j.sh(a.i),a.s=new Lc,c=a.s);b=u(b,c,1)}return b})}
392
- function vl(a){var b,c;return D(function(d){switch(d.g){case 1:return a.i=a.j.Vg(a.i,a.l,a.g.node,a.g.payload),wa(d,2),a.h=a.j.Ag(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.fb.Id(),a.g=null);za(d,0);break;case 2:b=Aa(d);if(7001==b.code)a.g.fb.Vb();else a.g.fb.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,C(d)}})}function tl(a){a.s&&(a.s.resolve(),a.s=null)};function wl(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(wl).join(""):c+a.payload+b}
378
+ function ml(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.Le})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Qc=!0;a.B=!0;a.g.onError(c);return}b.Le=!0}Uk(a,b,4)}
379
+ function il(a,b,c){var d,e,f,g,h,k,l,m;return D(function(n){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Be||e!=b.Ae||f!=b.ze)h=function(){var p;return D(function(q){if(1==q.g)return xa(q,2),b.Ae=e,b.ze=f,b.Be=g,u(q,zj(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=q.g)return Aa(q,0);p=Ba(q);b.Ae=null;b.ze=null;b.Be=null;throw p;})},d.push(h());!Gi(c.h,b.Ed)&&(b.Ed=c.h)&&(k=ll(a,b,c.h),l=function(){var p,q,v,w;return D(function(x){switch(x.g){case 1:return xa(x,
380
+ 2),u(x,k,4);case 4:return p=x.h,Cf(a.i),q=new Of,q.box("moov",Tf).box("trak",Tf).box("mdia",Tf).S("mdhd",function(z){z=vi(z.reader||0,z.version||0);c.h.timescale=z.timescale}).parse(p),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(x,a.g.yf(b.type,p),5);case 5:return u(x,nj(a.g.V,b.type,p,null,v),6);case 6:Aa(x,0);break;case 2:throw w=Ba(x),b.Ed=null,w;}})},a.g.vh(c.startTime,c.h),d.push(l()));a.m.sequenceMode&&(m=b.Ia?b.Ia.l:null,c.l!=m&&d.push(Aj(a.g.V,b.type,c.startTime)));return u(n,
381
+ Promise.all(d),0)})}
382
+ function kl(a,b,c,d,e,f){var g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;l=a.h.parsePrftBox&&!a.G;if(k||l)h=new Of;k&&h.S("emsg",function(q){var v=d.emsgSchemeIdUris;if(0===q.version){var w=q.reader.$c();var x=q.reader.$c();var z=q.reader.O();var B=q.reader.O();var A=q.reader.O();var y=q.reader.O();var E=e.startTime+B/z}else z=q.reader.O(),E=q.reader.Eb()/z+e.timestampOffset,
383
+ B=E-e.startTime,A=q.reader.O(),y=q.reader.O(),w=q.reader.$c(),x=q.reader.$c();q=q.reader.Db(q.reader.W.byteLength-q.reader.na());if(v&&v.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.wh():(v=(new Map).set("detail",{startTime:E,endTime:E+A/z,schemeIdUri:w,value:x,timescale:z,presentationTimeDelta:B,eventDuration:A,id:y,messageData:q}),v=new I("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
384
+ w||(w=Ti(q),w.length&&e&&a.g.xh([{cueTime:e.startTime,data:q,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});l&&h.S("prft",function(q){a:{if(!a.G&&e.h.timescale){q.reader.O();var v=q.reader.O(),w=q.reader.O();v=1E3*v+w/Math.pow(2,32)*1E3;if(0===q.version)var x=q.reader.O();else try{x=q.reader.Eb()}catch(z){a.G=!0;x=void 0;break a}q=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();x=(new Map).set("detail",{wallClockTime:q,programStartDate:new Date(q-x/e.h.timescale*
385
+ 1E3)});x=new I("prft",x);a.g.onEvent(x);a.G=!0}x=void 0}return x});(k||l)&&h.parse(f);return u(p,ol(a,b,c),2);case 2:return Cf(a.i),m=b.bd,b.bd=!1,n=b.vf,b.vf=!1,u(p,a.g.yf(b.type,f),3);case 3:return u(p,nj(a.g.V,b.type,f,e,g,m,n),4);case 4:Cf(a.i),C(p)}})}
386
+ function ol(a,b,c){var d,e,f,g;return D(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=jj(a.g.V,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():u(h,a.g.V.remove(b.type,e,e+g),2)}Cf(a.i);C(h)})}function fl(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
387
+ function ll(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,v;return D(function(w){switch(w.g){case 1:return e=Af,f=Mk(c.Ma(),c.Va,c.Da,a.h.retryParameters,d),g=b.stream,h=c instanceof Fi,k=c,l=h?0:k.endTime-k.startTime,a.g.modifySegmentRequest(f,{type:g.type,init:h,duration:l,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),m=a.g.Ub.request(e,f),b.Pa=m,u(w,m.promise,2);case 2:n=w.h;b.Pa=null;p=n.data;if(!c.m){w.D(3);break}q=b.ea;v=h?null:k.startTime;q||null==v||(q=b.stream.segmentIndex.Nb(v));return u(w,
388
+ nl(p,c.m,q),4);case 4:p=w.h;case 3:return w.return(p)}})}function $k(a,b,c,d){var e,f;return D(function(g){if(1==g.g)return b.Gb=!1,b.Wd=!1,b.ud=0,b.Fc=!0,b.Ia=null,b.Ed=null,b.ea=null,d?(e=a.g.zd(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,yj(a.g.V,b.type),4);if(3!=g.g)return Cf(a.i),c?u(g,a.g.V.flush(b.type),3):g.D(3);Cf(a.i);b.Fc=!1;b.endOfStream=!1;b.Ka||b.hb||Uk(a,b,0);C(g)})}
389
+ function Uk(a,b,c){var d=b.type;if(d!=Ib||a.j.has(d))b.hb=(new Nc(function(){var e;return D(function(f){if(1==f.g)return xa(f,2),u(f,cl(a,b),4);if(2!=f.g)return Aa(f,0);e=Ba(f);if(a.g)a.g.onError(e);C(f)})})).R(c)}function Pk(a){null!=a.hb&&(a.hb.stop(),a.hb=null)}function Qk(a){return D(function(b){return a.Pa?u(b,a.Pa.abort(),0):b.D(0)})}function el(a,b){return D(function(c){if(1==c.g)return u(c,df(a.I),2);Cf(a.i);a.g.onError(b);b.handled||a.h.failureCallback(b);C(c)})};function pl(a,b){var c=ql(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return rl(d)});this.B=new Bf(function(){return sl(d)})}pl.prototype.destroy=function(){return this.B.destroy()};function sl(a){var b,c,d;return D(function(e){if(1==e.g)return a.h&&a.h.abort(),tl(a),u(e,a.C,2);a.g&&a.g.fb.Vb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.fb.Vb();a.g=null;a.m=[];a.j=null;C(e)})}
390
+ function ul(a,b){var c={qc:function(){},Id:function(){},Vb:function(){},onError:function(){},Kd:function(){},xj:function(){}};a.m.push({create:b,fb:c});a.h&&a.h.abort();tl(a);return c}
391
+ function rl(a){return D(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Ob)var c=!1;else{a.g&&(a.g.fb.Vb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.fb.qc(),a.g={node:d.node,payload:d.payload,Ob:d.Ob,fb:c.fb}):c.fb.Kd();c=!0}c?c=Promise.resolve():a.g?c=vl(a):(a.j.uh(a.i),a.s=new Lc,c=a.s);b=u(b,c,1)}return b})}
392
+ function vl(a){var b,c;return D(function(d){switch(d.g){case 1:return a.i=a.j.Wg(a.i,a.l,a.g.node,a.g.payload),xa(d,2),a.h=a.j.Ag(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.fb.Id(),a.g=null);Aa(d,0);break;case 2:b=Ba(d);if(7001==b.code)a.g.fb.Vb();else a.g.fb.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,C(d)}})}function tl(a){a.s&&(a.s.resolve(),a.s=null)};function wl(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(wl).join(""):c+a.payload+b}
393
393
  function xl(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)xl(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=wl(c);b.push(d)}return b};function yl(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}r=yl.prototype;r.remove=function(a,b){if(!this.g)return!1;zl(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
394
- r.append=function(a){var b=xl(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={$b:d.$b},e=b.next())d.$b=e.value,a.some(function(f){return function(g){return g.startTime==f.$b.startTime&&g.endTime==f.$b.endTime&&g.text==f.$b.payload?!0:!1}}(d))||(e=Al(d.$b))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
394
+ r.append=function(a){var b=xl(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={ac:d.ac},e=b.next())d.ac=e.value,a.some(function(f){return function(g){return g.startTime==f.ac.startTime&&g.endTime==f.ac.endTime&&g.text==f.ac.payload?!0:!1}}(d))||(e=Al(d.ac))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
395
395
  c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};r.destroy=function(){this.g&&(zl(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
396
396
  function Al(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
397
- function zl(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}G("shaka.text.SimpleTextDisplayer",yl);yl.prototype.setTextVisibility=yl.prototype.setTextVisibility;yl.prototype.isTextVisible=yl.prototype.isTextVisible;yl.prototype.destroy=yl.prototype.destroy;yl.prototype.append=yl.prototype.append;yl.prototype.remove=yl.prototype.remove;function Bl(){}function P(a){return document.createElement(a)}function Cl(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Dl(a){for(;a.firstChild;)a.removeChild(a.firstChild)}G("shaka.util.Dom",Bl);Bl.removeAllChildren=Dl;function El(a,b){var c=this;this.m=!1;this.i=[];this.F=a;this.B=b;this.j=null;this.g=P("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.B.appendChild(this.g);this.G=(new N(function(){Fl(c)})).ma(.25);this.h=new Map;this.l=new Cf;this.l.o(document,"fullscreenchange",function(){Fl(c,!0)});this.l.o(this.F,"resize",function(){var d=
398
- c.F,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){Fl(c,!0)}),this.s.observe(this.g));this.C=new Map}r=El.prototype;r.append=function(a){var b=[].concat(ha(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={jd:c.jd},d=a.next())c.jd=d.value,b.some(function(e){return function(f){return uc(f,e.jd)}}(c))||this.i.push(c.jd);Fl(this)};
399
- r.destroy=function(){if(!this.g)return Promise.resolve();this.B.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.G&&this.G.stop();this.h.clear();this.l&&(this.l.release(),this.l=null);this.s&&(this.s.disconnect(),this.s=null);return Promise.resolve()};r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Fl(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.m};
397
+ function zl(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}G("shaka.text.SimpleTextDisplayer",yl);yl.prototype.setTextVisibility=yl.prototype.setTextVisibility;yl.prototype.isTextVisible=yl.prototype.isTextVisible;yl.prototype.destroy=yl.prototype.destroy;yl.prototype.append=yl.prototype.append;yl.prototype.remove=yl.prototype.remove;function Bl(){}function Q(a){return document.createElement(a)}function Cl(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Dl(a){for(;a.firstChild;)a.removeChild(a.firstChild)}G("shaka.util.Dom",Bl);Bl.removeAllChildren=Dl;function El(a,b){var c=this;this.m=!1;this.i=[];this.C=a;this.B=b;this.l=null;this.g=Q("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.B.appendChild(this.g);this.G=(new M(function(){c.C.paused||Fl(c)})).ka(.25);this.h=new Map;this.j=new Df;this.j.o(document,"fullscreenchange",function(){Fl(c,!0)});this.j.o(this.C,"seeking",
398
+ function(){Fl(c,!0)});this.j.o(this.C,"resize",function(){var d=c.C,e=d.videoWidth;d=d.videoHeight;e&&d?c.l=e/d:c.l=null});this.s=null;"ResizeObserver"in window&&(this.s=new ResizeObserver(function(){Fl(c,!0)}),this.s.observe(this.g));this.F=new Map}r=El.prototype;r.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={hd:c.hd},d=a.next())c.hd=d.value,b.some(function(e){return function(f){return uc(f,e.hd)}}(c))||this.i.push(c.hd);Fl(this)};
399
+ r.destroy=function(){if(!this.g)return Promise.resolve();this.B.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.G&&this.G.stop();this.h.clear();this.j&&(this.j.release(),this.j=null);this.s&&(this.s.disconnect(),this.s=null);return Promise.resolve()};r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Fl(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.m};
400
400
  r.setTextVisibility=function(a){this.m=a};function Gl(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
401
- function Hl(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.jg:null;l&&(g.push(l.se),l.bd&&g.push(l.bd),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Gl(a,n)||(f=!0):(Il(a,k,e),l=a.h.get(k),n=l.jg,f=!0));0<k.nestedCues.length&&n&&Hl(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,q){return p.startTime!=
402
- q.startTime?p.startTime-q.startTime:p.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.bd?(c.appendChild(d.bd),d.bd.appendChild(d.se)):c.appendChild(d.se)}}function Fl(a,b){if(a.g){var c=a.F.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())Dl(d.value);Dl(a.g);a.h.clear();a.C.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Hl(a,a.i,a.g,c,[])}}}
403
- function Il(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=P(e);"br"!=e&&Jl(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.j===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Bc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Bc?"%":"px");if(a.C.has(g))c=a.C.get(g);else{var h=P("span"),k=c.heightUnits==Bc?"%":"px",l=c.widthUnits==Bc?"%":"px",m=c.viewportAnchorUnits==Bc?"%":"px";h.id="shaka-text-region---"+
404
- g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.j===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):(h.style.top=c.viewportAnchorY-c.regionAnchorY*c.height/100+m,h.style.left=c.viewportAnchorX-
405
- c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.C.set(g,h);c=h}}e=f;d&&(e=P("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{se:f,jg:e,bd:c})}
401
+ function Hl(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.jg:null;l&&(g.push(l.se),l.Wb&&g.push(l.Wb),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Gl(a,n)||(f=!0):(Il(a,k,e),l=a.h.get(k),n=l.jg,f=!0));0<k.nestedCues.length&&n&&Hl(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,q){return p.startTime!=
402
+ q.startTime?p.startTime-q.startTime:p.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Wb?(d.Wb.contains(c)&&d.Wb.removeChild(c),c.appendChild(d.Wb),d.Wb.appendChild(d.se)):c.appendChild(d.se)}}
403
+ function Fl(a,b){if(a.g){var c=a.C.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.F.values());for(var d=b.next();!d.done;d=b.next())Dl(d.value);Dl(a.g);a.h.clear();a.F.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Hl(a,a.i,a.g,c,[])}}}
404
+ function Il(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=Q(e);"br"!=e&&Jl(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.l===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Bc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Bc?"%":"px");if(a.F.has(g))c=a.F.get(g);else{var h=Q("span"),k=c.heightUnits==Bc?"%":"px",l=c.widthUnits==Bc?"%":"px",m=c.viewportAnchorUnits==Bc?"%":"px";h.id="shaka-text-region---"+
405
+ g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.l===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):(h.style.top=c.viewportAnchorY-c.regionAnchorY*c.height/100+m,h.style.left=c.viewportAnchorX-
406
+ c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.F.set(g,h);c=h}}e=f;d&&(e=Q("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{se:f,jg:e,Wb:c})}
406
407
  function Kl(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==mc?c:"left"===a||"start"===a&&b===kc||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===kc?"line-right":"center"}
407
408
  function Jl(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=Ll(c.linePadding,c,a.B);f.paddingRight=Ll(c.linePadding,c,a.B);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
408
- "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=P("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=Ml(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=Ml(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection=
409
- "column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"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=Ll(c.fontSize,c,a.B);d=c.line;null!=d&&(g=c.lineInterpretation,g==pc&&(g=1,h=16,a.j&&1>a.j&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==oc?(f.width="100%",c.lineAlign==qc?f.top=d+"%":"end"==
409
+ "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=Q("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=Ml(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=Ml(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection=
410
+ "column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"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=Ll(c.fontSize,c,a.B);d=c.line;null!=d&&(g=c.lineInterpretation,g==pc&&(g=1,h=16,a.l&&1>a.l&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==oc?(f.width="100%",c.lineAlign==qc?f.top=d+"%":"end"==
410
411
  c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==qc?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==qc?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%"))));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==oc?f.paddingLeft=c.position:f.paddingTop=c.position);a=Kl(c);"line-left"==a?f.cssFloat="left":"line-right"==a&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=
411
412
  c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==oc?f.width=c.size+"%":f.height=c.size+"%")}function Ll(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}}
412
413
  function Ml(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}G("shaka.text.UITextDisplayer",El);El.prototype.setTextVisibility=El.prototype.setTextVisibility;El.prototype.isTextVisible=El.prototype.isTextVisible;El.prototype.remove=El.prototype.remove;El.prototype.destroy=El.prototype.destroy;El.prototype.append=El.prototype.append;function Nl(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=xl(a,[]);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");
413
414
  break;case "right":g.push("align:right");break;case nc:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}G("shaka.text.WebVttGenerator",function(){});function Ol(){}
414
- function Pl(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]=lf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=lf(l)),k=Pl(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?(Xa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Za("Unexpected number of arguments for "+k),a[h]=b[h]):(Xa("Invalid config, unrecognized key "+
415
+ function Pl(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]=mf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=mf(l)),k=Pl(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?(Wa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ya("Unexpected number of arguments for "+k),a[h]=b[h]):(Wa("Invalid config, unrecognized key "+
415
416
  k),g=!1)}return g}function Ql(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 Rl(a,b){return a&&b}G("shaka.util.ConfigUtils",Ol);Ol.convertToConfigObject=Ql;Ol.mergeConfigObjects=Pl;function Sl(){}function Tl(a){a=fd(a);return(new pb(a)).cb}function Ul(a,b,c){function d(h){Kc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Gc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new K(2,6,6015);var e;"string"==typeof b?e=hd(b,!0):e=b;a=fd(a);a=hd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}G("shaka.util.FairPlayUtils",Sl);
416
417
  Sl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=cd(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Hc(ld(c)))}};Sl.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Sl.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
417
418
  Sl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=Gc(b.body),a=kd(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=gd("spc="+a))};Sl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=fd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Jc(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Ul(a,d,b)};
418
419
  Sl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=fd(a).split(";").pop();return Ul(a,c,b)};Sl.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=fd(a).split("skd://").pop();return Ul(a,c,b)};Sl.initDataTransform=Ul;Sl.defaultGetContentId=Tl;
419
- Sl.isFairPlaySupported=function(){var a;return D(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},wa(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);Aa(b);return b.return(!1)})};function Vl(){}
420
- function Wl(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:bf(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){window.shakaMediaKeysPolyfill&&"skd"==h&&(h=k.serverCertificate,k=Tl(g),g=Ul(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Sc()},c={retryParameters:bf(),availabilityWindowOverride:NaN,disableAudio:!1,
420
+ Sl.isFairPlaySupported=function(){var a;return D(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},xa(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);Ba(b);return b.return(!1)})};function Vl(){}
421
+ function Wl(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:cf(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){window.shakaMediaKeysPolyfill&&"skd"==h&&(h=k.serverCertificate,k=Tl(g),g=Ul(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Sc()},c={retryParameters:cf(),availabilityWindowOverride:NaN,disableAudio:!1,
421
422
  disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey",
422
423
  "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"},manifestPreprocessor:function(g){return Rl([g],g)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,
423
- mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},d={retryParameters:bf(),failureCallback:function(g){return Rl([g])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,
424
+ mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},d={retryParameters:cf(),failureCallback:function(g){return Rl([g])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,
424
425
  autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};if(Tc("Web0S")||Uc()||Wc()||Tc("Hisense")||Tc("VIDAA"))d.stallSkip=0;var e={trackSelectionCallback:function(g){return D(function(h){return h.return(g)})},downloadSizeCallback:function(g){var h;return D(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k.return(!0);h=k.h;return k.return(h.usage+
425
- g<.95*h.quota)})},progressCallback:function(g,h){return Rl([g,h])},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,mediaSource:{sourceBufferExtraFeatures:""},offline:e,abrFactory:function(){return new Fe},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,
426
+ g<.95*h.quota)})},progressCallback:function(g,h){return Rl([g,h])},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,mediaSource:{sourceBufferExtraFeatures:""},offline:e,abrFactory:function(){return new Ge},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,
426
427
  minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,
427
428
  minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};e.trackSelectionCallback=function(g){return D(function(h){return h.return(Xl(g,f.preferredAudioLanguage))})};return f}
428
429
  function Yl(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Pl(a,b,c||Wl(),d,"")}
429
430
  function Xl(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Vb(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Mb(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
430
431
  2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Ib&&"image"!=d.type||b.push(d);return b}G("shaka.util.PlayerConfiguration",Vl);Vl.mergeConfigObjects=Yl;Vl.createDefault=Wl;function Zl(){this.g=null;this.h=[]}function $l(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 am(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
431
- function bm(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function cm(){this.i=this.h=null;this.g=[]}function dm(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 em(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.N=this.P=this.J=this.K=this.L=this.l=this.s=NaN;this.g=new Zl;this.h=new cm};function R(a,b){ib.call(this);var c=this;this.l=fm;this.Hd=this.g=null;this.$=!1;this.Od=new Cf;this.Hc=new Cf;this.C=new Cf;this.wa=new Cf;this.yb=this.i=this.Td=this.G=this.j=this.ea=this.L=this.tf=this.U=this.ra=this.N=this.Ld=this.K=this.Wa=this.F=this.J=this.m=this.I=null;this.Vc=!1;this.lf=this.B=null;this.qf=1E9;this.h=gm(this);this.$a={width:Infinity,height:Infinity};this.s=null;this.Ya=new Te(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Za=
432
- this.h.preferredTextLanguage;this.Uc=this.h.preferredTextRole;this.Rc=this.h.preferForcedSubs;this.Oc=[];this.Xc=null;b&&b(this);this.I=hm(this);this.I.Ve(this.h.streaming.forceHTTPS);this.H=null;im&&(this.H=im());this.Od.o(window,"online",function(){c.Ne()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.oe={name:"manifest-parser"};this.pf={name:"manifest"};this.ab={name:"media-source"};this.mf={name:"drm-engine"};this.Z={name:"load"};this.pe={name:"src-equals-drm-engine"};
433
- this.bb={name:"src-equals"};var d=new Map;d.set(this.X,function(e,f){return hf(jm(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.Hc.gb(),e.mediaElement=null);c.H&&c.H.release();c.g=null;e=Promise.resolve();return hf(e)});d.set(this.aa,function(e){return hf(km(c,e))});d.set(this.ab,function(e){e=lm(c,e);return hf(e)});d.set(this.oe,function(e,f){e=mm(c,e,f);return hf(e)});d.set(this.pf,function(e){return nm(c,e)});d.set(this.mf,function(e){e=om(c,e);return hf(e)});d.set(this.Z,function(e,f){return hf(pm(c,
434
- e,f))});d.set(this.pe,function(e,f){e=qm(c,e,f);return hf(e)});d.set(this.bb,function(e,f){return rm(c,e,f)});this.xa=new pl(this.P,{Vg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.ab||g==c.Z?c.ab:g==c.bb?c.pe:null);e==c.ab&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.oe:c.aa);e==c.oe&&(k=sm(c.Z,c.pf,c.aa,g,f,h));e==c.pf&&(k=sm(c.Z,c.mf,c.aa,g,f,h));e==c.mf&&(k=sm(c.Z,c.Z,c.aa,g,f,h));e==c.pe&&(k=g==c.bb&&f.mediaElement==
435
- h.mediaElement?c.bb:c.aa);if(e==c.Z||e==c.bb)k=c.aa;e==c.aa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},Ag:function(e,f,g){c.dispatchEvent(tm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return D(function(f){return 1==f.g?u(f,km(c,e),2):f.return(e.mediaElement?c.X:c.P)})},sh:function(e){c.dispatchEvent(tm("onstateidle",(new Map).set("state",e.name)))}});this.rf=new N(function(){de(c.i.variants,c.h.restrictions,c.$a)&&um(c)});
436
- a&&this.Ec(a,!0)}ra(R,ib);function vm(a){null!=a.L&&(a.L.release(),a.L=null)}function wm(a,b){if(b.lcevc.enabled){var c=a.Oa();c&&c[0]&&c[0].videoMimeType==xm.ts&&(Rc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Za("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));vm(a);null==a.L&&(a.L=new Xi(a.g,a.tf,b.lcevc),a.J&&(a.J.H=a.L))}else vm(a)}function tm(a,b){return new I(a,b)}r=R.prototype;
437
- r.destroy=function(){var a=this,b;return D(function(c){switch(c.g){case 1:if(a.l==ym)return c.return();vm(a);a.l=ym;b=ul(a.xa,function(){return{node:a.P,payload:ql(),Ob:!1}});return u(c,new Promise(function(d){b.qc=function(){};b.Id=function(){d()};b.Vb=function(){d()};b.onError=function(){d()};b.Kd=function(){d()}}),2);case 2:return u(c,a.xa.destroy(),3);case 3:a.Od&&(a.Od.release(),a.Od=null);a.Hc&&(a.Hc.release(),a.Hc=null);a.C&&(a.C.release(),a.C=null);a.wa&&(a.wa.release(),a.wa=null);a.lf=null;
438
- a.h=null;a.s=null;a.Hd=null;a.U=null;if(!a.I){c.D(4);break}return u(c,a.I.destroy(),5);case 5:a.I=null;case 4:a.B&&(a.B.release(),a.B=null),ib.prototype.release.call(a),C(c)}})};
439
- function zm(){window.Promise||Za("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Tc("Trident/"))return!1;var a=Zc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
440
- r.Ec=function(a,b){b=void 0===b?!0:b;if(this.l==ym)return Promise.reject(Am());var c=ql();c.mediaElement=a;Oc()||(b=!1);var d=b?this.ab:this.X;a=ul(this.xa,function(){return{node:d,payload:c,Ob:!1}});a.qc=function(){};return Bm(a)};r.xf=function(a){this.tf=a};r.detach=function(){var a=this;if(this.l==ym)return Promise.reject(Am());var b=ul(this.xa,function(){return{node:a.P,payload:ql(),Ob:!1}});b.qc=function(){};return Bm(b)};
441
- r.jf=function(a){var b=this;a=void 0===a?!0:a;if(this.l==ym)return Promise.reject(Am());this.Vc=!1;Oc()||(a=!1);vm(this);var c=ql(),d=ul(this.xa,function(e){var f=e.mediaElement&&a?b.ab:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Ob:!1}});d.qc=function(){};return Bm(d)};r.Uh=function(a){this.Xc=a};
442
- r.load=function(a,b,c){var d=this;this.Xc=null;this.Vc=!1;if(this.l==ym)return Promise.reject(Am());this.dispatchEvent(tm("loading"));var e=ql();e.uri=a;e.Sd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Cm(this,e)?this.bb:this.Z,g=ul(this.xa,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Ob:!0}});this.s=new em;this.U=Dm(this);g.qc=function(){};return new Promise(function(h,k){g.Kd=function(){return k(new K(2,7,7002))};g.Id=
443
- function(){h();d.dispatchEvent(tm("loaded"))};g.Vb=function(){return k(Am())};g.onError=function(l){return k(l)}})};function Cm(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=hh(d),c=xm[c]);if(c){if(""==(b.mediaElement||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in gh||hh(d)in ih)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.h.streaming.preferNativeHls)return!0;if(Xc())return a.h.streaming.useNativeHlsOnSafari}return!1}
432
+ function bm(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function cm(){this.i=this.h=null;this.g=[]}function dm(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 em(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.N=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Zl;this.h=new cm};function S(a,b){jb.call(this);var c=this;this.l=fm;this.Hd=this.g=null;this.$=!1;this.Od=new Df;this.Hc=new Df;this.C=new Df;this.va=new Df;this.xb=this.i=this.Td=this.G=this.j=this.ba=this.M=this.rf=this.U=this.qa=this.N=this.Ld=this.K=this.Wa=this.F=this.J=this.m=this.I=null;this.Vc=!1;this.kf=this.B=null;this.pf=1E9;this.h=gm(this);this.$a={width:Infinity,height:Infinity};this.s=null;this.Ya=new Ue(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Za=
433
+ this.h.preferredTextLanguage;this.Uc=this.h.preferredTextRole;this.Rc=this.h.preferForcedSubs;this.Oc=[];this.Xc=null;b&&b(this);this.I=hm(this);this.I.Ve(this.h.streaming.forceHTTPS);this.H=null;im&&(this.H=im());this.Od.o(window,"online",function(){c.Me()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.oe={name:"manifest-parser"};this.nf={name:"manifest"};this.ab={name:"media-source"};this.lf={name:"drm-engine"};this.Z={name:"load"};this.pe={name:"src-equals-drm-engine"};
434
+ this.bb={name:"src-equals"};var d=new Map;d.set(this.X,function(e,f){return jf(jm(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.Hc.gb(),e.mediaElement=null);c.H&&c.H.release();c.g=null;e=Promise.resolve();return jf(e)});d.set(this.aa,function(e){return jf(km(c,e))});d.set(this.ab,function(e){e=lm(c,e);return jf(e)});d.set(this.oe,function(e,f){e=mm(c,e,f);return jf(e)});d.set(this.nf,function(e){return nm(c,e)});d.set(this.lf,function(e){e=om(c,e);return jf(e)});d.set(this.Z,function(e,f){return jf(pm(c,
435
+ e,f))});d.set(this.pe,function(e,f){e=qm(c,e,f);return jf(e)});d.set(this.bb,function(e,f){return rm(c,e,f)});this.wa=new pl(this.P,{Wg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.ab||g==c.Z?c.ab:g==c.bb?c.pe:null);e==c.ab&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.oe:c.aa);e==c.oe&&(k=sm(c.Z,c.nf,c.aa,g,f,h));e==c.nf&&(k=sm(c.Z,c.lf,c.aa,g,f,h));e==c.lf&&(k=sm(c.Z,c.Z,c.aa,g,f,h));e==c.pe&&(k=g==c.bb&&f.mediaElement==
436
+ h.mediaElement?c.bb:c.aa);if(e==c.Z||e==c.bb)k=c.aa;e==c.aa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},Ag:function(e,f,g){c.dispatchEvent(tm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return D(function(f){return 1==f.g?u(f,km(c,e),2):f.return(e.mediaElement?c.X:c.P)})},uh:function(e){c.dispatchEvent(tm("onstateidle",(new Map).set("state",e.name)))}});this.qf=new M(function(){ee(c.i.variants,c.h.restrictions,c.$a)&&um(c)});
437
+ a&&this.Ec(a,!0)}sa(S,jb);function vm(a){null!=a.M&&(a.M.release(),a.M=null)}function wm(a,b){if(b.lcevc.enabled){var c=a.Na();c&&c[0]&&c[0].videoMimeType==xm.ts&&(Rc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Ya("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));vm(a);null==a.M&&(a.M=new Yi(a.g,a.rf,b.lcevc),a.J&&(a.J.H=a.M))}else vm(a)}function tm(a,b){return new I(a,b)}r=S.prototype;
438
+ r.destroy=function(){var a=this,b;return D(function(c){switch(c.g){case 1:if(a.l==ym)return c.return();vm(a);a.l=ym;b=ul(a.wa,function(){return{node:a.P,payload:ql(),Ob:!1}});return u(c,new Promise(function(d){b.qc=function(){};b.Id=function(){d()};b.Vb=function(){d()};b.onError=function(){d()};b.Kd=function(){d()}}),2);case 2:return u(c,a.wa.destroy(),3);case 3:a.Od&&(a.Od.release(),a.Od=null);a.Hc&&(a.Hc.release(),a.Hc=null);a.C&&(a.C.release(),a.C=null);a.va&&(a.va.release(),a.va=null);a.kf=null;
439
+ a.h=null;a.s=null;a.Hd=null;a.U=null;if(!a.I){c.D(4);break}return u(c,a.I.destroy(),5);case 5:a.I=null;case 4:a.B&&(a.B.release(),a.B=null),jb.prototype.release.call(a),C(c)}})};
440
+ function zm(){window.Promise||Ya("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Tc("Trident/"))return!1;var a=Zc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
441
+ r.Ec=function(a,b){b=void 0===b?!0:b;if(this.l==ym)return Promise.reject(Am());var c=ql();c.mediaElement=a;Oc()||(b=!1);var d=b?this.ab:this.X;a=ul(this.wa,function(){return{node:d,payload:c,Ob:!1}});a.qc=function(){};return Bm(a)};r.wf=function(a){this.rf=a};r.detach=function(){var a=this;if(this.l==ym)return Promise.reject(Am());var b=ul(this.wa,function(){return{node:a.P,payload:ql(),Ob:!1}});b.qc=function(){};return Bm(b)};
442
+ r.hf=function(a){var b=this;a=void 0===a?!0:a;if(this.l==ym)return Promise.reject(Am());this.Vc=!1;Oc()||(a=!1);vm(this);var c=ql(),d=ul(this.wa,function(e){var f=e.mediaElement&&a?b.ab:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Ob:!1}});d.qc=function(){};return Bm(d)};r.Vh=function(a){this.Xc=a};
443
+ r.load=function(a,b,c){var d=this;this.Xc=null;this.Vc=!1;if(this.l==ym)return Promise.reject(Am());this.dispatchEvent(tm("loading"));var e=ql();e.uri=a;e.Sd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Cm(this,e)?this.bb:this.Z,g=ul(this.wa,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Ob:!0}});this.s=new em;this.U=Dm(this);g.qc=function(){};return new Promise(function(h,k){g.Kd=function(){return k(new K(2,7,7002))};g.Id=
444
+ function(){h();d.dispatchEvent(tm("loaded"))};g.Vb=function(){return k(Am())};g.onError=function(l){return k(l)}})};function Cm(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=ih(d),c=xm[c]);if(c){if(""==(b.mediaElement||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in hh||ih(d)in jh)||Ed(c)&&a.h.streaming.preferNativeHls)return!0;if(Xc())return a.h.streaming.useNativeHlsOnSafari}return!1}
444
445
  function jm(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.Hc.o(b.mediaElement,"error",function(){var d=Em(a);d&&Fm(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
445
- function km(a,b){var c,d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:return a.l!=ym&&(a.l=fm),c=a.Oc.map(function(p){return p()}),a.Oc=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(tm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.ra&&(a.ra.release(),a.ra=null);b.mediaElement&&(a.C.gb(),a.wa.gb());a.rf.stop();a.Wa&&(a.Wa.release(),a.Wa=null);a.Ld&&(a.Ld.stop(),a.Ld=null);if(!a.G){n.D(3);break}return u(n,a.G.stop(),4);case 4:a.G=null,a.Td=null;case 3:if(!a.B){n.D(5);break}return u(n,
446
- a.B.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,a.j.destroy(),8);case 8:a.j=null;case 7:a.K&&(a.K.release(),a.K=null);a.F&&(a.F.release(),a.F=null);if(!a.J){n.D(9);break}return u(n,a.J.destroy(),10);case 10:a.J=null;case 9:if(a.H)a.H.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){n.D(11);break}return u(n,new Promise(function(p){return(new N(p)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
447
- case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.yb=null;a.N=null;if(a.i){d=t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.s=new em;a.nf=null;Gm(a);C(n)}})}
448
- function lm(a,b){var c,d,e,f,g;return D(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.nf=c,e=Hm(b.mediaElement,d,function(k,l,m){Im(a,k,l,m)},a.L),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.J=e;C(h)})}
449
- function mm(a,b,c){var d,e,f,g;return D(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.I,a.yb=d,f=a,u(h,fh(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Td=h.h;a.G=a.Td();g=lf(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.G.configure(g);C(h)})}
450
- function nm(a,b){var c=b.uri;b=a.I;a.ra=new mk(function(){return a.Ma()});a.ra.addEventListener("regionadd",function(f){f=f.region;Jm(a,"timelineregionadded",f);if(a.H)a.H.onDashTimedMetadata(f)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new ik(function(){return a.mb()}),a.ea.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
446
+ function km(a,b){var c,d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:return a.l!=ym&&(a.l=fm),c=a.Oc.map(function(p){return p()}),a.Oc=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(tm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.qa&&(a.qa.release(),a.qa=null);b.mediaElement&&(a.C.gb(),a.va.gb());a.qf.stop();a.Wa&&(a.Wa.release(),a.Wa=null);a.Ld&&(a.Ld.stop(),a.Ld=null);if(!a.G){n.D(3);break}return u(n,a.G.stop(),4);case 4:a.G=null,a.Td=null;case 3:if(!a.B){n.D(5);break}return u(n,
447
+ a.B.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,a.j.destroy(),8);case 8:a.j=null;case 7:a.K&&(a.K.release(),a.K=null);a.F&&(a.F.release(),a.F=null);if(!a.J){n.D(9);break}return u(n,a.J.destroy(),10);case 10:a.J=null;case 9:if(a.H)a.H.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){n.D(11);break}return u(n,new Promise(function(p){return(new M(p)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
448
+ case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.xb=null;a.N=null;if(a.i){d=t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.s=new em;a.mf=null;Gm(a);C(n)}})}
449
+ function lm(a,b){var c,d,e,f,g;return D(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.mf=c,e=Hm(b.mediaElement,d,function(k,l,m){Im(a,k,l,m)},a.M),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.J=e;C(h)})}
450
+ function mm(a,b,c){var d,e,f,g;return D(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.I,a.xb=d,f=a,u(h,gh(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Td=h.h;a.G=a.Td();g=mf(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.G.configure(g);C(h)})}
451
+ function nm(a,b){var c=b.uri;b=a.I;a.qa=new mk(function(){return a.La()});a.qa.addEventListener("regionadd",function(f){f=f.region;Jm(a,"timelineregionadded",f);if(a.H)a.H.onDashTimedMetadata(f)});a.ba=null;a.h.streaming.observeQualityChanges&&(a.ba=new ik(function(){return a.kb()}),a.ba.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
451
452
  height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(tm("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.U;try{h.g.enabled&&(h.s=g.format,Dk(h,f,{ot:Gk,su:!h.i}))}catch(k){$a("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){tk(a.U,f,g)},filter:function(f){return Km(a,f)},makeTextStreamsForClosedCaptions:function(f){return Lm(a,
452
- f)},onTimelineRegionAdded:function(f){var g=a.ra;a:{var h=t(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new I("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return Fm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
453
- enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&Mm(a,g.keySystem,f)}},e=Date.now()/1E3;return new df(function(){var f,g,h,k;return D(function(l){if(1==l.g)return f=a,u(l,a.G.start(c,d),2);f.i=l.h;g=tm("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new K(2,4,4036);Nm(a.i);h=Date.now()/1E3;k=h-e;a.s.H=k;C(l)})}(),function(){return a.G.stop()})}
454
- function om(a,b){var c,d,e,f;return D(function(g){return 1==g.g?(c=Date.now()/1E3,d=!0,a.m=Om(a,{Ub:a.I,onError:function(h){Fm(a,h)},Jd:function(h){Pm(a,h)},onExpirationUpdated:function(h,k){Qm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.L&&(h=a.L,h.g&&h.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),(e=de(a.i.variants,a.h.restrictions,a.$a))&&a.j&&Rm(a),f=Be(a.i.variants),u(g,Ag(a.m,f,a.i.offlineSessionIds),2)):3!=g.g?
453
+ f)},onTimelineRegionAdded:function(f){var g=a.qa;a:{var h=t(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new I("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return Fm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
454
+ enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&Mm(a,g.keySystem,f)}},e=Date.now()/1E3;return new ef(function(){var f,g,h,k;return D(function(l){if(1==l.g)return f=a,u(l,a.G.start(c,d),2);f.i=l.h;g=tm("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new K(2,4,4036);Nm(a.i);h=Date.now()/1E3;k=h-e;a.s.H=k;C(l)})}(),function(){return a.G.stop()})}
455
+ function om(a,b){var c,d,e,f;return D(function(g){return 1==g.g?(c=Date.now()/1E3,d=!0,a.m=Om(a,{Ub:a.I,onError:function(h){Fm(a,h)},Jd:function(h){Pm(a,h)},onExpirationUpdated:function(h,k){Qm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.M&&(h=a.M,h.g&&h.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),(e=ee(a.i.variants,a.h.restrictions,a.$a))&&a.j&&Rm(a),f=Ce(a.i.variants),u(g,Bg(a.m,f,a.i.offlineSessionIds),2)):3!=g.g?
455
456
  u(g,a.m.Ec(b.mediaElement),3):u(g,Km(a,a.i),0)})}
456
- function pm(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Xc&&(b.startTime=a.Xc,a.Xc=null);d=b.mediaElement;e=b.uri;a.yb=e;a.K=new ek({Bd:function(){return d.playbackRate},Ic:function(){return d.defaultPlaybackRate},Ye:function(E){d.playbackRate=E},Tf:function(E){d.currentTime+=E}});f=function(){return Sm(a)};g=function(){return Tm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);wm(a,a.h);
457
- h=a.h.abrFactory;a.B&&a.lf==h||(a.lf=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Ke("AbrManager","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.Ya=new Te(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Za=a.h.preferredTextLanguage;a.Uc=a.h.preferredTextRole;a.Rc=a.h.preferForcedSubs;Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,F,H){a.j&&E!=a.j.l&&
458
- Vm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.B.setMediaElement(d);Qd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Wm(a);a.j.configure(a.h.streaming);a.l=Xm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Ym(a,E)}});a.dispatchEvent(tm("streaming"));k=null;(l=a.j.l)||(k=um(a));m=[];n=l||k;p=t([n.video,n.audio]);for(q=p.next();!q.done;q=p.next())(v=q.value)&&!v.segmentIndex&&
459
- m.push(v.createSegmentIndex());if(!(0<m.length)){y.D(2);break}return u(y,Promise.all(m),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(n);Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F=Zm(a,b.startTime);a.Wa=$m(a,b.Sd);w=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);an(a,w);if(l){y.D(4);break}Vm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(4);break}x=a.F.od();return u(y,bn(k,x),6);case 6:z=y.h,a.F.re(z);case 4:return a.F.qe(),
460
- B=a.Cb().find(function(E){return E.active}),B||((A=Ce(a.i.textStreams,a.Za,a.Uc,a.Rc)[0]||null)&&dm(a.s.h,A,!0),k&&(A?(k.audio&&cn(a,k.audio,A)&&(a.$=!0),a.$&&a.J.m.setTextVisibility(!0),dn(a)):a.$=!1),A&&(a.h.streaming.alwaysStreamText||a.Sb())&&Zk(a.j,A)),u(y,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),en(a)),ge(a.j?a.j.l:null,a.i),fn(a.i),Rm(a),gn(a),a.i.variants.some(function(E){return E.primary}),a.Vc=!0,a.C.sa(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Sd}),C(y)}})}
461
- function qm(a,b,c){var d,e,f,g,h,k,l;return D(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Om(a,{Ub:a.I,onError:function(n){Fm(a,n)},Jd:function(n){Pm(a,n)},onExpirationUpdated:function(n,p){Qm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=hh(g),k=xm[h],"application/x-mpegurl"==k&&Xc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
462
- primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Dd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,
463
- decodingInfos:[]},a.m.X=!0,u(m,Ag(a.m,[l],[]),2)):u(m,a.m.Ec(b.mediaElement),0)})}
464
- function rm(a,b,c){function d(){return Sm(a)}b.uri=c.uri;b.startTime=c.startTime;a.yb=b.uri;var e=b.mediaElement;a.F=new Sj(e);var f=!1;a.Oc.push(function(){f=!0});null!=b.startTime&&a.F.re(b.startTime);a.K=new ek({Bd:function(){return e.playbackRate},Ic:function(){return e.defaultPlaybackRate},Ye:function(k){e.playbackRate=k},Tf:function(k){e.currentTime+=k}});an(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return Tm(a)});
465
- "none"!=e.preload&&a.C.sa(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Sd});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"change",function(){return Rm(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":hn(a,k);break;case "chapters":Ym(a,k);break;default:Rm(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Rm(a)}),
466
- a.C.o(e.textTracks,"change",function(){return Rm(a)}));var g=hh(b.uri);e.src=Ek(a.U,b.uri,xm[g]);(Uc()||Tc("Web0S"))&&e.load();a.l=jn;a.dispatchEvent(tm("streaming"));var h=new Lc;Jj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.qe();h.resolve()});Jj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return D(function(l){if(1==l.g)return kn(a),k=ln(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):u(l,new Promise(function(m){a.C.sa(e.textTracks,"change",m);
467
- (new N(m)).R(1)}),2);if(f)return l.return();mn(a);C(l)})});e.error?h.reject(Em(a)):"none"==e.preload&&(Za('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.C.sa(e,"error",function(){h.reject(Em(a))});return(new df(h,function(){h.reject(new K(2,7,7001));return Promise.resolve()})).na(function(){a.Vc=
468
- !0})}function kn(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Qe(b,a.h.preferredVariantRole)}function mn(a){var b=a.h.preferredTextLanguage;""!=b&&a.Re(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
469
- function hn(a,b){if("metadata"==b.kind){b.mode="hidden";a.C.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,nn(a,e.startTime,e.endTime,e.type,e.value),a.H)a.H.onCueMetadataChange(e.value)});var c=(new N(function(){var d=on(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ca().R(.5);a.Oc.push(function(){c.stop()})}}
457
+ function pm(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Xc&&(b.startTime=a.Xc,a.Xc=null);d=b.mediaElement;e=b.uri;a.xb=e;a.K=new ek({Bd:function(){return d.playbackRate},Ic:function(){return d.defaultPlaybackRate},Xe:function(E){d.playbackRate=E},Sf:function(E){d.currentTime+=E}});f=function(){return Sm(a)};g=function(){return Tm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);wm(a,a.h);
458
+ h=a.h.abrFactory;a.B&&a.kf==h||(a.kf=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Le("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.Ya=new Ue(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Za=a.h.preferredTextLanguage;a.Uc=a.h.preferredTextRole;a.Rc=a.h.preferForcedSubs;Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,
459
+ F,H){a.j&&E!=a.j.l&&Vm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.B.setMediaElement(d);Rd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Wm(a);a.j.configure(a.h.streaming);a.l=Xm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Ym(a,E)}});a.dispatchEvent(tm("streaming"));k=null;(l=a.j.l)||(k=um(a));m=[];n=l||k;p=t([n.video,n.audio]);for(q=p.next();!q.done;q=p.next())(v=
460
+ q.value)&&!v.segmentIndex&&m.push(v.createSegmentIndex());if(!(0<m.length)){y.D(2);break}return u(y,Promise.all(m),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(n);Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F=Zm(a,b.startTime);a.Wa=$m(a,b.Sd);w=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);an(a,w);if(l){y.D(4);break}Vm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(4);break}x=a.F.nd();return u(y,bn(k,x),6);case 6:z=y.h,a.F.re(z);
461
+ case 4:return a.F.qe(),B=a.Bb().find(function(E){return E.active}),B||((A=De(a.i.textStreams,a.Za,a.Uc,a.Rc)[0]||null)&&dm(a.s.h,A,!0),k&&(A?(k.audio&&cn(a,k.audio,A)&&(a.$=!0),a.$&&a.J.m.setTextVisibility(!0),dn(a)):a.$=!1),A&&(a.h.streaming.alwaysStreamText||a.Sb())&&Zk(a.j,A)),u(y,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),en(a)),he(a.j?a.j.l:null,a.i),fn(a.i),Rm(a),gn(a),a.i.variants.some(function(E){return E.primary}),a.Vc=!0,a.C.ra(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-
462
+ c.Sd}),C(y)}})}
463
+ function qm(a,b,c){var d,e,f,g,h,k,l;return D(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Om(a,{Ub:a.I,onError:function(n){Fm(a,n)},Jd:function(n){Pm(a,n)},onExpirationUpdated:function(n,p){Qm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=ih(g),k=xm[h],"application/x-mpegurl"==k&&Xc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,
464
+ audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Dd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ha,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
465
+ a.m.X=!0,u(m,Bg(a.m,[l],[]),2)):u(m,a.m.Ec(b.mediaElement),0)})}
466
+ function rm(a,b,c){function d(){return Sm(a)}b.uri=c.uri;b.startTime=c.startTime;a.xb=b.uri;var e=b.mediaElement;a.F=new Tj(e);var f=!1;a.Oc.push(function(){f=!0});null!=b.startTime&&a.F.re(b.startTime);a.K=new ek({Bd:function(){return e.playbackRate},Ic:function(){return e.defaultPlaybackRate},Xe:function(k){e.playbackRate=k},Sf:function(k){e.currentTime+=k}});an(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return Tm(a)});
467
+ "none"!=e.preload&&a.C.ra(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Sd});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"change",function(){return Rm(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":hn(a,k);break;case "chapters":Ym(a,k);break;default:Rm(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Rm(a)}),
468
+ a.C.o(e.textTracks,"change",function(){return Rm(a)}));var g=ih(b.uri);g=xm[g];e.src=Ek(a.U,b.uri,g);(Uc()||Tc("Web0S"))&&e.load();"none"!=e.preload&&!e.autoplay&&Ed(g)&&Zc()&&e.load();a.l=jn;a.dispatchEvent(tm("streaming"));var h=new Lc;Kj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.qe();h.resolve()});Kj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return D(function(l){if(1==l.g)return kn(a),k=ln(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):
469
+ u(l,new Promise(function(m){a.C.ra(e.textTracks,"change",m);(new M(m)).R(1)}),2);if(f)return l.return();mn(a);C(l)})});e.error?h.reject(Em(a)):"none"==e.preload&&(Ya('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.C.ra(e,"error",function(){h.reject(Em(a))});return(new ef(h,function(){h.reject(new K(2,
470
+ 7,7001));return Promise.resolve()})).ma(function(){a.Vc=!0})}function kn(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Pe(b,a.h.preferredVariantRole)}function mn(a){var b=a.h.preferredTextLanguage;""!=b&&a.Qe(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
471
+ function hn(a,b){if("metadata"==b.kind){b.mode="hidden";a.C.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,nn(a,e.startTime,e.endTime,e.type,e.value),a.H)a.H.onCueMetadataChange(e.value)});var c=(new M(function(){var d=on(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ba().R(.5);a.Oc.push(function(){c.stop()})}}
470
472
  function Im(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())nn(a,f,g,"org.id3",k.value);if(a.H)a.H.onHlsTimedMetadata(e,f)}}function nn(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(tm("metadata",b))}
471
- function Ym(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new N(function(){b.mode="hidden"})).Ca().R(.5);a.Oc.push(function(){c.stop()})}}function Nm(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 Om(a,b){return new tg(b,a.h.drm.updateExpirationTime)}
472
- function hm(a){return new pf(function(b,c){a.B&&a.B.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(tm("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(tm("downloadfailed",b))})}
473
- function Zm(a,b){return new Tj(a.g,a.i,a.h.streaming,b,function(){a.Wa&&hk(a.Wa,!0);a.j&&a.j.cd();a.N&&pn(a)},function(c){return a.dispatchEvent(c)})}
474
- function $m(a,b){b=new nk(a.ra,a.T()||0<b);b.addEventListener("enter",function(d){Jm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Jm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Jm(a,"timelineregionenter",e),Jm(a,"timelineregionexit",e))});var c=new gk(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function an(a,b){a.N=new Xe;a.N.g=Ze;$e(a.N,b,Math.min(.5,b/2));Gm(a);a.Ld=(new N(function(){pn(a)})).ma(.25)}
475
- function pn(a){switch(a.l){case jn:if(a.g.ended)var b=!0;else{var c=Ki(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Xm:a:if(a.g.ended||hj(a.J))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.Bb();var d=Ki(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Mi(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ye:Ze;c.g=d;b!=d&&Gm(a)}function Hm(a,b,c,d){return new bj(a,b,c,d)}
476
- function Dm(a){return new sk({getBandwidthEstimate:function(){return a.B?a.B.getBandwidthEstimate():NaN},mb:function(){return a.mb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Oa:function(){return a.Oa()},ob:function(){return a.ob()},T:function(){return a.T()}},a.h.cmcd)}
477
- function Wm(a){return new Nk(a.i,{zd:function(){return a.F?a.F.od():0},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){tk(a.U,b,c)},V:a.J,Ub:a.I,onError:function(b){return Fm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},vh:function(){a.G&&a.G.update&&a.G.update()},Ke:function(b,c,d){a.F&&a.F.Uf();pn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(tm("segmentappended",b))},uh:function(b,c){(c=c.Ee)&&a.ea&&
478
- kk(a.ea,c,b)},zf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){c=new Xf(Gc(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Jg(d,"cenc",e);d=d.s}}else d=Promise.resolve();return d},wh:function(b,c,d){Im(a,b,c,d)}})}
479
- r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Ke("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=
473
+ function Ym(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new M(function(){b.mode="hidden"})).Ba().R(.5);a.Oc.push(function(){c.stop()})}}function Nm(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 Om(a,b){return new ug(b,a.h.drm.updateExpirationTime)}
474
+ function hm(a){return new qf(function(b,c){a.B&&a.B.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(tm("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(tm("downloadfailed",b))})}
475
+ function Zm(a,b){return new Uj(a.g,a.i,a.h.streaming,b,function(){a.Wa&&hk(a.Wa,!0);a.j&&a.j.bd();a.N&&pn(a)},function(c){return a.dispatchEvent(c)})}
476
+ function $m(a,b){b=new nk(a.qa,a.T()||0<b);b.addEventListener("enter",function(d){Jm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Jm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Jm(a,"timelineregionenter",e),Jm(a,"timelineregionexit",e))});var c=new gk(a.g);c.g.add(b);a.ba&&c.g.add(a.ba);return c}function an(a,b){a.N=new Ye;a.N.g=$e;af(a.N,b,Math.min(.5,b/2));Gm(a);a.Ld=(new M(function(){pn(a)})).ka(.25)}
477
+ function pn(a){switch(a.l){case jn:if(a.g.ended)var b=!0;else{var c=Li(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Xm:a:if(a.g.ended||ij(a.J))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.Ab();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.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ze:$e;c.g=d;b!=d&&Gm(a)}function Hm(a,b,c,d){return new cj(a,b,c,d)}
478
+ function Dm(a){return new sk({getBandwidthEstimate:function(){return a.B?a.B.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Na:function(){return a.Na()},mb:function(){return a.mb()},T:function(){return a.T()}},a.h.cmcd)}
479
+ function Wm(a){return new Nk(a.i,{zd:function(){return a.F?a.F.nd():0},getBandwidthEstimate:function(){return a.B.getBandwidthEstimate()},modifySegmentRequest:function(b,c){tk(a.U,b,c)},V:a.J,Ub:a.I,onError:function(b){return Fm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},wh:function(){a.G&&a.G.update&&a.G.update()},Je:function(b,c,d){a.F&&a.F.Tf();pn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(tm("segmentappended",b))},vh:function(b,c){(c=c.Ee)&&a.ba&&
480
+ kk(a.ba,c,b)},yf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){c=new Yf(Gc(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Kg(d,"cenc",e);d=d.m}}else d=Promise.resolve();return d},xh:function(b,c,d){Im(a,b,c,d)}})}
481
+ r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Le("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=
480
482
  .01));var c=Yl(this.h,a,gm(this));qn(this);return c};
481
- function qn(a){if(a.G){var b=lf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{rn(a,a.i)}catch(f){Fm(a,f)}a.B&&gn(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||sn(a)}a.I&&a.I.Ve(a.h.streaming.forceHTTPS);if(a.J&&(a.J.configure(a.h.mediaSource),a.J.J=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.nf!=b)){var c=b(),d=a.J,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
482
- e.destroy());d.g&&(d.g.j=c);a.nf=b;a.j&&(b=a.j,(c=b.j.get(Ib))&&Xk(b,c.stream,!0,0,!0))}a.B&&(a.B.configure(a.h.abr),a.h.abr.enabled?a.B.enable():a.B.disable(),en(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),$e(a.N,b,Math.min(.5,b/2)));a.i&&Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}r.getConfiguration=function(){var a=gm(this);Yl(a,this.h,gm(this));return a};
483
- r.Dg=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};r.Hh=function(){for(var a in this.h)delete this.h[a];Yl(this.h,gm(this),gm(this));qn(this)};r.we=function(){return this.l};r.Ug=function(){return this.g};r.Lc=function(){return this.I};r.ve=function(){return this.yb};
483
+ function qn(a){if(a.G){var b=mf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{rn(a,a.i)}catch(f){Fm(a,f)}a.B&&gn(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||sn(a)}a.I&&a.I.Ve(a.h.streaming.forceHTTPS);if(a.J&&(a.J.configure(a.h.mediaSource),a.J.J=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.mf!=b)){var c=b(),d=a.J,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
484
+ e.destroy());d.g&&(d.g.j=c);a.mf=b;a.j&&(b=a.j,(c=b.j.get(Ib))&&Xk(b,c.stream,!0,0,!0))}a.B&&(a.B.configure(a.h.abr),a.h.abr.enabled?a.B.enable():a.B.disable(),en(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),af(a.N,b,Math.min(.5,b/2)));a.i&&Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}r.getConfiguration=function(){var a=gm(this);Yl(a,this.h,gm(this));return a};
485
+ r.Dg=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.La().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.Ih=function(){for(var a in this.h)delete this.h[a];Yl(this.h,gm(this),gm(this));qn(this)};r.we=function(){return this.l};r.Vg=function(){return this.g};r.Lc=function(){return this.I};r.ve=function(){return this.xb};
484
486
  r.xd=function(){return this.H?this.H:null};r.T=function(){return this.i?this.i.presentationTimeline.T():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Qb=function(){return this.i?this.i.presentationTimeline.Qb():!1};r.kc=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};
485
- r.Ma=function(){if(!this.Vc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.hc(),end:a.pb()}}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}};r.gh=function(){this.T()&&(this.g.currentTime=this.Ma().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Kc=function(){return this.m?this.m.Kc():Infinity};
486
- r.yd=function(){return this.m?this.m.yd():{}};r.Tc=function(){return this.N?this.N.g==Ze:!1};r.ob=function(){return this.g?this.K?this.K.i:1:0};r.hf=function(a){var b=this;0==a?Za("A trick play rate of 0 is unsupported!"):(this.wa.gb(),this.g.paused&&this.g.play(),this.K.set(a),this.l==Xm&&(this.B.playbackRateChanged(a),Wk(this.j,1<Math.abs(a))),this.T()&&this.wa.o(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ma(),e=b.h.streaming.safeSeekOffset;0<a?c>=d.end&&b.ud():c<=d.start+e&&b.ud()}))};
487
- r.ud=function(){var a=this.K.Ic();this.l==jn&&this.K.set(a);this.l==Xm&&(this.K.set(a),this.B.playbackRateChanged(a),Wk(this.j,!1));this.wa.gb()};
488
- r.Oa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Ae(e)){var f=se(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 ze(g)}):[]};
489
- r.Cb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=te(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?ln(this).map(function(f){return xe(f)}):[]};r.Mg=function(){return this.i?this.i.imageStreams.map(function(a){return ue(a)}):[]};
490
- r.bh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F;return D(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(J){return J.id==a}))?d.segmentIndex?H.D(3):u(H,d.createSegmentIndex(),3):H.return(null):H.D(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;q=l/n;v=m*n;
491
- w=f.i-f.startTime;x=f.s||w/v;z=f.startTime;A=B=0;1<v&&(y=Math.floor((b-f.startTime)/x),z=f.startTime+y*x,B=y%m*p,A=Math.floor(y/m)*q);E=!1;if(F=f.m)E=!0,q=F.height,B=F.positionX,A=F.positionY,p=F.width;return H.return({imageHeight:l,imageWidth:k,height:q,positionX:B,positionY:A,startTime:z,duration:x,uris:f.Na(),width:p,sprite:E})}return H.return(null)})};
492
- r.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.s&&(dm(this.s.h,b,!1),Zk(this.j,b),tn(this),this.Za=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=ln(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ve(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";tn(this)}};
493
- r.Qd=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&&Za("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&&Ae(d)&&(Vm(this,d,!1,b,c),this.Ya=new Se(d),gn(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
494
- ve(c)==a.id){un(this,c);break}};r.Cg=function(){return vn(this.Oa())};r.$g=function(){return vn(this.Cb())};r.Bg=function(){return Array.from(wn(this.Oa()))};r.Zg=function(){return Array.from(wn(this.Cb()))};
495
- r.Qe=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.Ya=new Te(a,b||"",c,"");a=function(f,g){return f.video||g.video?f.video&&g.video?Math.abs((f.video.height||0)-(g.video.height||0))+Math.abs((f.video.width||0)-(g.video.width||0)):Infinity:0};b=this.j.l;var d=this.Ya.create(this.i.variants);c=null;d=t(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||a(c,b)>a(e,b))c=e;c?(a=se(c),this.Qd(a,!0)):sn(this)}else this.g&&this.g.audioTracks&&(a=Ce(this.Oa(),a,b||"",!1)[0])&&this.Qd(a)};
496
- r.Re=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Za=a,this.Uc=b||"",this.Rc=c,(a=Ce(this.i.textStreams,this.Za,this.Uc,this.Rc)[0]||null)&&a!=this.j.s&&(dm(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.Sb()))Zk(this.j,a),tn(this)}else(a=Ce(this.Cb(),a,b||"",c)[0])&&this.Se(a)};
497
- r.Kh=function(a){if(this.i&&this.F){for(var b=null,c=t(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Ya=new Te(b.language,"",0,a),sn(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&un(this,b)}};
498
- r.Sb=function(){var a=this.$;return this.J?this.J.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ln(this).some(function(b){return"showing"==b.mode}):a};r.Lf=function(){return this.g&&this.g.src&&this.g.textTracks?xn(this).map(function(a){return xe(a)}):[]};
487
+ r.La=function(){if(!this.Vc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.hc(),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}};r.hh=function(){this.T()&&(this.g.currentTime=this.La().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Kc=function(){return this.m?this.m.Kc():Infinity};
488
+ r.yd=function(){return this.m?this.m.yd():{}};r.Tc=function(){return this.N?this.N.g==$e:!1};r.mb=function(){return this.g?this.K?this.K.i:1:0};
489
+ r.gf=function(a){var b=this;0==a?Ya("A trick play rate of 0 is unsupported!"):(this.va.gb(),this.g.paused&&this.g.play(),this.K.set(a),this.l==Xm&&(this.B.playbackRateChanged(a),Wk(this.j,1<Math.abs(a))),this.T()&&this.va.o(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.La(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.td():Math.floor(c)<=Math.floor(d.start+e)&&b.td()}))};
490
+ r.td=function(){var a=this.K.Ic();this.l==jn&&this.K.set(a);this.l==Xm&&(this.K.set(a),this.B.playbackRateChanged(a),Wk(this.j,!1));this.va.gb()};
491
+ r.Na=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Be(e)){var f=te(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 Ae(g)}):[]};
492
+ r.Bb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ue(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?ln(this).map(function(f){return ye(f)}):[]};r.Mg=function(){return this.i?this.i.imageStreams.map(function(a){return ve(a)}):[]};
493
+ r.dh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F;return D(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(J){return J.id==a}))?d.segmentIndex?H.D(3):u(H,d.createSegmentIndex(),3):H.return(null):H.D(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;q=l/n;v=m*n;
494
+ w=f.j-f.startTime;x=f.B||w/v;z=f.startTime;A=B=0;1<v&&(y=Math.floor((b-f.startTime)/x),z=f.startTime+y*x,B=y%m*p,A=Math.floor(y/m)*q);E=!1;if(F=f.s)E=!0,q=F.height,B=F.positionX,A=F.positionY,p=F.width;return H.return({imageHeight:l,imageWidth:k,height:q,positionX:B,positionY:A,startTime:z,duration:x,uris:f.Ma(),width:p,sprite:E})}return H.return(null)})};
495
+ r.Re=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(dm(this.s.h,b,!1),Zk(this.j,b),tn(this),this.Za=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=ln(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,we(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";tn(this)}};
496
+ r.Qd=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&&Ya("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&&Be(d)&&(Vm(this,d,!1,b,c),this.Ya=new Te(d),gn(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
497
+ we(c)==a.id){un(this,c);break}};r.Cg=function(){return vn(this.Na())};r.ah=function(){return vn(this.Bb())};r.Bg=function(){return Array.from(wn(this.Na()))};r.$g=function(){return Array.from(wn(this.Bb()))};
498
+ r.Pe=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.Ya=new Ue(a,b||"",c,"");a=function(f,g){return f.video||g.video?f.video&&g.video?Math.abs((f.video.height||0)-(g.video.height||0))+Math.abs((f.video.width||0)-(g.video.width||0)):Infinity:0};b=this.j.l;var d=this.Ya.create(this.i.variants);c=null;d=t(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||a(c,b)>a(e,b))c=e;c?(a=te(c),this.Qd(a,!0)):sn(this)}else this.g&&this.g.audioTracks&&(a=De(this.Na(),a,b||"",!1)[0])&&this.Qd(a)};
499
+ r.Qe=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Za=a,this.Uc=b||"",this.Rc=c,(a=De(this.i.textStreams,this.Za,this.Uc,this.Rc)[0]||null)&&a!=this.j.s&&(dm(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.Sb()))Zk(this.j,a),tn(this)}else(a=De(this.Bb(),a,b||"",c)[0])&&this.Re(a)};
500
+ r.Lh=function(a){if(this.i&&this.F){for(var b=null,c=t(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Ya=new Ue(b.language,"",0,a),sn(this))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&un(this,b)}};
501
+ r.Sb=function(){var a=this.$;return this.J?this.J.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ln(this).some(function(b){return"showing"==b.mode}):a};r.Kf=function(){return this.g&&this.g.src&&this.g.textTracks?xn(this).map(function(a){return ye(a)}):[]};
499
502
  r.Fg=function(a){var b=Mb(a),c=xn(this).filter(function(h){return Mb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(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};
500
503
  function ln(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function on(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function xn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
501
- r.Rd=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Xm)this.J.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=Ce(this.i.textStreams,this.Za,this.Uc,this.Rc),0<a.length&&(Zk(this.j,a[0]),tn(this))):Vk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=ln(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}dn(this)}};
502
- r.Wg=function(){if(!this.T())return null;var a=this.xa.l,b=0;if(this.F)b=this.F.od();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
503
- r.Nf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.mb=function(){if(this.l==Xm)return this.J.mb();var a={total:[],audio:[],video:[],text:[]};this.l==jn&&(a.total=Ni(this.g.buffered));return a};
504
+ r.Rd=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Xm)this.J.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=De(this.i.textStreams,this.Za,this.Uc,this.Rc),0<a.length&&(Zk(this.j,a[0]),tn(this))):Vk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=ln(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}dn(this)}};
505
+ r.Xg=function(){if(!this.T())return null;var a=this.wa.l,b=0;if(this.F)b=this.F.nd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?(a=this.i.presentationTimeline,new Date(1E3*((a.F||a.i)+b))):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
506
+ r.Mf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.kb=function(){if(this.l==Xm)return this.J.kb();var a={total:[],audio:[],video:[],text:[]};this.l==jn&&(a.total=Oi(this.g.buffered));return a};
504
507
  r.getStats=function(){if(this.l!=Xm&&this.l!=jn)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Sm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.s;b=
505
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.N=this.F.uf(),this.s.P=this.F.vf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.K?c.K:NaN):c=NaN;this.s.B=c;if(this.l==Xm){if(c=this.j.l)this.s.F=(this.K?this.K.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.T()&&(c=this.Nf().valueOf()+
506
- 1E3*a.currentTime,this.s.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.I=this.i.presentationTimeline.g);c=this.B.getBandwidthEstimate();this.s.C=c}this.l==jn&&(c=this.s,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.s;a=e.s;c=e.l;b=e.F;d=e.K;var f=e.L,g=e.J,h=e.P,k=e.N,l=e.C,m=e.i,n=e.m,p=e.H,q=e.j,v=am(e.g,"playing"),w=am(e.g,"paused"),x=am(e.g,"buffering"),z=e.B,B=e.G,A=e.I,y=bm(e.g),E=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
508
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.N=this.F.tf(),this.s.P=this.F.uf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.M=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.K?c.K:NaN):c=NaN;this.s.B=c;if(this.l==Xm){if(c=this.j.l)this.s.F=(this.K?this.K.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.T()&&(c=this.Mf().valueOf()+
509
+ 1E3*a.currentTime,this.s.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.I=this.i.presentationTimeline.g);c=this.B.getBandwidthEstimate();this.s.C=c}this.l==jn&&(c=this.s,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.s;a=e.s;c=e.l;b=e.F;d=e.K;var f=e.M,g=e.J,h=e.P,k=e.N,l=e.C,m=e.i,n=e.m,p=e.H,q=e.j,v=am(e.g,"playing"),w=am(e.g,"paused"),x=am(e.g,"buffering"),z=e.B,B=e.G,A=e.I,y=bm(e.g),E=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
507
510
  id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:q,playTime:v,pauseTime:w,bufferingTime:x,licenseTime:z,liveLatency:B,maxSegmentDuration:A,stateHistory:y,switchHistory:E}};
508
- r.og=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:if(h.l!=Xm&&h.l!=jn)throw new K(1,7,7004);"subtitles"!=c&&"captions"!=c&&Za("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){y.D(2);break}return u(y,yn(h,a),3);case 3:d=y.h;case 2:k=[];if(h.H)try{k=h.H.getServerSideCuePoints()}catch(E){}if(h.l!=jn){y.D(4);break}g&&(c="forced");return u(y,zn(h,a,b,c,d,f||"",k),5);case 5:l=Mb(b);m=h.Cb();
509
- if(n=m.find(function(E){return Mb(E.language)==l&&E.label==(f||"")&&E.kind==c}))return Rm(h),y.return(n);throw new K(1,2,2012);case 4:p=Jb;q=h.i.presentationTimeline.getDuration();if(Infinity==q)throw new K(1,4,4033);if(!k.length){y.D(6);break}return u(y,An(h,a,h.I,h.h.streaming.retryParameters),7);case 7:v=y.h,w=Bn(h,v,d,k),x=new Blob([w],{type:"text/vtt"}),a=ej(x),d="text/vtt";case 6:z={id:h.qf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ck(0,q,[a]),mimeType:d||
510
- "",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!0};B=zd(z.mimeType,z.codecs);A=Fd(B);if(!A)throw new K(2,2,2014,d);h.i.textStreams.push(z);Rm(h);return y.return(te(z))}})};
511
- r.pg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:if(c.l!=Xm&&c.l!=jn)throw new K(1,7,7004);if(c.l==jn)throw new K(1,2,2016);if(b){A.D(2);break}return u(A,yn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new K(1,2,2017,a);d=Jb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new K(1,4,4045);return u(A,An(c,a,c.I,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Gd[b];if(!g)throw new K(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
512
- segmentEnd:e,vttOffset:0};l=Gc(f);m=h.parseMedia(l,k,a);n=[];p={};q=t(m);for(v=q.next();!v.done;p={Cc:p.Cc,Ib:p.Ib},v=q.next())p.Ib=v.value,p.Cc=null,w=function(y){return function(){null==y.Cc&&(y.Cc=Db([a],[y.Ib.payload]));return y.Cc||[]}}(p),x=new Gi(p.Ib.startTime,p.Ib.endTime,w,0,null,null,0,0,Infinity),p.Ib.payload.includes("#xywh")&&(z=p.Ib.payload.split("#xywh=")[1].split(","),4===z.length&&x.dg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],
513
- 10)})),n.push(x);B={id:c.qf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Dc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",external:!0};c.i.imageStreams.push(B);Rm(c);return A.return(ue(B))}})};
514
- r.ng=function(a,b,c){var d=this,e,f,g,h;return D(function(k){switch(k.g){case 1:if(d.l!=Xm&&d.l!=jn)throw new K(1,7,7004);if(c){k.D(2);break}return u(k,yn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.H)try{e=d.H.getServerSideCuePoints()}catch(l){}return u(k,zn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Lf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.C.sa(f,"load",l);d.C.sa(f,"error",function(){m(new K(1,2,2015))})}),6);case 6:return k.return(h);
515
- case 5:throw new K(1,2,2012);}})};function yn(a,b){var c,d;return D(function(e){switch(e.g){case 1:c=hh(b);if(d=Cn[c])return e.return(d);wa(e,2);return u(e,jh(b,a.I,a.h.streaming.retryParameters),4);case 4:d=e.h;za(e,3);break;case 2:Aa(e);case 3:if(d)return e.return(d);throw new K(1,2,2011,c);}})}
516
- function zn(a,b,c,d,e,f,g){var h,k,l,m;return D(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,An(a,b,a.I,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=Bn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ej(l),e="text/vtt");m=document.createElement("track");var p=a.U,q=b;try{if(p.g.enabled){var v=Fk(p);v.ot=Lk;v.su=!0;var w=Hk(v);var x=Ik(q,w)}else x=q}catch(z){$a("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),x=q}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
517
- a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function An(a,b,c,d){var e,f,g;return D(function(h){if(1==h.g){e=zf;f=tf([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&Dk(k,f,{ot:Lk,su:!0})}catch(l){$a("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
518
- function Bn(a,b,c,d){var e=Gd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Gc(b),b=c.parseMedia(b,a,null),Nl(b,d);throw new K(2,2,2014,c);}r.We=function(a,b){this.$a.width=a;this.$a.height=b};r.Ne=function(a){if(this.l==Xm){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=t(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Qc||d.La||d.ib||(d.Qc=!1,Uk(b,d,a));b=!0}}else b=!1;return b};
519
- r.Rg=function(){Za("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};r.Sg=function(){return this.Td};
520
- function gm(a){var b=Wl();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.Ne(d))}};b.textDisplayFactory=function(){return a.Hd?new El(a.g,a.Hd):new yl(a.g,"Shaka Player TextTrack")};return b}r.bf=function(a){this.Hd=a};
521
- function Lm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new dk;h={id:a.qf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
511
+ r.og=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:if(h.l!=Xm&&h.l!=jn)throw new K(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ya("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){y.D(2);break}return u(y,yn(h,a),3);case 3:d=y.h;case 2:k=[];if(h.H)try{k=h.H.getServerSideCuePoints()}catch(E){}if(h.l!=jn){y.D(4);break}g&&(c="forced");return u(y,zn(h,a,b,c,d,f||"",k),5);case 5:l=Mb(b);m=h.Bb();
512
+ if(n=m.find(function(E){return Mb(E.language)==l&&E.label==(f||"")&&E.kind==c}))return Rm(h),y.return(n);throw new K(1,2,2012);case 4:p=Jb;q=h.i.presentationTimeline.getDuration();if(Infinity==q)throw new K(1,4,4033);if(!k.length){y.D(6);break}return u(y,An(h,a,h.I,h.h.streaming.retryParameters),7);case 7:v=y.h,w=Bn(h,v,d,k),x=new Blob([w],{type:"text/vtt"}),a=fj(x),d="text/vtt";case 6:z={id:h.pf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ck(0,q,[a]),mimeType:d||
513
+ "",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ha,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!0};B=zd(z.mimeType,z.codecs);A=Gd(B);if(!A)throw new K(2,2,2014,d);h.i.textStreams.push(z);Rm(h);return y.return(ue(z))}})};
514
+ r.pg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:if(c.l!=Xm&&c.l!=jn)throw new K(1,7,7004);if(c.l==jn)throw new K(1,2,2016);if(b){A.D(2);break}return u(A,yn(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new K(1,2,2017,a);d=Jb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new K(1,4,4045);return u(A,An(c,a,c.I,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Hd[b];if(!g)throw new K(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
515
+ segmentEnd:e,vttOffset:0};l=Gc(f);m=h.parseMedia(l,k,a);n=[];p={};q=t(m);for(v=q.next();!v.done;p={Cc:p.Cc,Hb:p.Hb},v=q.next())p.Hb=v.value,p.Cc=null,w=function(y){return function(){null==y.Cc&&(y.Cc=Db([a],[y.Hb.payload]));return y.Cc||[]}}(p),x=new Hi(p.Hb.startTime,p.Hb.endTime,w,0,null,null,0,0,Infinity),p.Hb.payload.includes("#xywh")&&(z=p.Hb.payload.split("#xywh=")[1].split(","),4===z.length&&x.dg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],
516
+ 10)})),n.push(x);B={id:c.pf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ak(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Dc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",external:!0};c.i.imageStreams.push(B);Rm(c);return A.return(ve(B))}})};
517
+ r.ng=function(a,b,c){var d=this,e,f,g,h;return D(function(k){switch(k.g){case 1:if(d.l!=Xm&&d.l!=jn)throw new K(1,7,7004);if(c){k.D(2);break}return u(k,yn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.H)try{e=d.H.getServerSideCuePoints()}catch(l){}return u(k,zn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Kf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.C.ra(f,"load",l);d.C.ra(f,"error",function(){m(new K(1,2,2015))})}),6);case 6:return k.return(h);
518
+ case 5:throw new K(1,2,2012);}})};function yn(a,b){var c,d;return D(function(e){switch(e.g){case 1:c=ih(b);if(d=Cn[c])return e.return(d);xa(e,2);return u(e,kh(b,a.I,a.h.streaming.retryParameters),4);case 4:d=e.h;Aa(e,3);break;case 2:Ba(e);case 3:if(d)return e.return(d);throw new K(1,2,2011,c);}})}
519
+ function zn(a,b,c,d,e,f,g){var h,k,l,m;return D(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,An(a,b,a.I,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=Bn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=fj(l),e="text/vtt");m=document.createElement("track");var p=a.U,q=b;try{if(p.g.enabled){var v=Fk(p);v.ot=Lk;v.su=!0;var w=Hk(v);var x=Ik(q,w)}else x=q}catch(z){$a("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),x=q}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
520
+ a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function An(a,b,c,d){var e,f,g;return D(function(h){if(1==h.g){e=Af;f=uf([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&Dk(k,f,{ot:Lk,su:!0})}catch(l){$a("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
521
+ function Bn(a,b,c,d){var e=Hd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Gc(b),b=c.parseMedia(b,a,null),Nl(b,d);throw new K(2,2,2014,c);}r.We=function(a,b){this.$a.width=a;this.$a.height=b};r.Me=function(a){if(this.l==Xm){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=t(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Qc||d.Ka||d.hb||(d.Qc=!1,Uk(b,d,a));b=!0}}else b=!1;return b};
522
+ r.Sg=function(){Ya("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};r.Tg=function(){return this.Td};
523
+ function gm(a){var b=Wl();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.Me(d))}};b.textDisplayFactory=function(){return a.Hd?new El(a.g,a.Hd):new yl(a.g,"Shaka Player TextTrack")};return b}r.$e=function(a){this.Hd=a};
524
+ function Lm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new dk;h={id:a.pf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
522
525
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1};b.textStreams.push(h);c.add(g)}}function Km(a,b){return D(function(c){if(1==c.g)return u(c,Dn(a,b),2);rn(a,b);C(c)})}
523
- function Dn(a,b){var c;return D(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,ee(c,b),2);fn(b);C(d)})}function rn(a,b){if(a.l!=ym){de(b.variants,a.h.restrictions,a.$a)&&a.j&&Rm(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Mm(a,c.keySystem,e.video),Mm(a,c.keySystem,e.audio);En(a,b)}}
524
- function Mm(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Jg(a.m,e.initDataType,e.initData)}}}
526
+ function Dn(a,b){var c;return D(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,fe(c,b),2);fn(b);C(d)})}function rn(a,b){if(a.l!=ym){ee(b.variants,a.h.restrictions,a.$a)&&a.j&&Rm(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Mm(a,c.keySystem,e.video),Mm(a,c.keySystem,e.audio);En(a,b)}}
527
+ function Mm(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Kg(a.m,e.initDataType,e.initData)}}}
525
528
  function bn(a,b){var c,d,e,f,g;return D(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return D(function(q){if(1==q.g)return k?u(q,k.createSegmentIndex(),2):q.return(null);n=(m=k.segmentIndex.Nb(l))?m.next().value:null;if(!n)return q.return(null);p=n.startTime;return q.return(p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
526
- function Gm(a){var b=a.Tc();if(a.s&&a.N&&a.F){var c=a.K;c.j=b;fk(c);a.U&&(c=a.U,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Sm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(tm("buffering",b))}function Tm(a){var b=a.g.playbackRate;0!=b&&(a.K&&a.K.set(b),b=tm("ratechange"),a.dispatchEvent(b))}function Sm(a){if(a.s&&a.N){var b=a.s.g;a.N.g==Ze?$l(b,"buffering"):a.g.paused?$l(b,"paused"):a.g.ended?$l(b,"ended"):$l(b,"playing")}}
527
- function gn(a){try{En(a,a.i)}catch(c){return Fm(a,c),!1}var b=a.i.variants.filter(function(c){return Ae(c)});b=a.Ya.create(b);a.B.setVariants(Array.from(b.values()));return!0}function um(a){return gn(a)?a.B.chooseVariant():null}function sn(a){var b=um(a);b&&Vm(a,b,!0,!0,0)}
528
- function Vm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Yk(a.j,b,d,e,!0);else{var g=a.s.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Yk(a.j,b,d,e,void 0,c);d=null;f&&(d=se(f));b=se(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Yi(a.L,b),c=tm("adaptation",c),Fn(a,c)):Gn(a,d,b)}}
529
- function un(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=ze(c);b=ze(b);Gn(a,c,b)}function cn(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Mb(a.h.preferredTextLanguage);c=Mb(c.language);if(2==a.h.autoShowText)return Lb(c,d);if(3==a.h.autoShowText)return a=Mb(b.language),Lb(c,d)&&!Lb(a,c);Za("Invalid autoShowText setting!");return!1}function Rm(a){var b=tm("trackschanged");Fn(a,b)}
530
- function Gn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Yi(a.L,c);c=tm("variantchanged",b);Fn(a,c)}function tn(a){var b=tm("textchanged");Fn(a,b)}function dn(a){var b=tm("texttrackvisibility");Fn(a,b)}function en(a){var b=(new Map).set("newStatus",a.h.abr.enabled);Fn(a,tm("abrstatuschanged",b))}
531
- function Hn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||a.l!=Xm||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Oa().find(function(g){return g.active});for(var d=a.i,e=t(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);de(d.variants,a.h.restrictions,a.$a);b=um(a);if(!b)return!1;d=a.mb().video.reduce(function(g,h){return g+h.end-h.start},0);Vm(a,b,!1,!0,d);a.rf.R(c);return!0}
529
+ function Gm(a){var b=a.Tc();if(a.s&&a.N&&a.F){var c=a.K;c.j=b;fk(c);a.U&&(c=a.U,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Sm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(tm("buffering",b))}function Tm(a){var b=a.g.playbackRate;0!=b&&(a.K&&a.K.set(b),b=tm("ratechange"),a.dispatchEvent(b))}function Sm(a){if(a.s&&a.N){var b=a.s.g;a.N.g==$e?$l(b,"buffering"):a.g.paused?$l(b,"paused"):a.g.ended?$l(b,"ended"):$l(b,"playing")}}
530
+ function gn(a){try{En(a,a.i)}catch(c){return Fm(a,c),!1}var b=a.i.variants.filter(function(c){return Be(c)});b=a.Ya.create(b);a.B.setVariants(Array.from(b.values()));return!0}function um(a){return gn(a)?a.B.chooseVariant():null}function sn(a){var b=um(a);b&&Vm(a,b,!0,!0,0)}
531
+ function Vm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Yk(a.j,b,d,e,!0);else{var g=a.s.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Yk(a.j,b,d,e,void 0,c);d=null;f&&(d=te(f));b=te(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.M&&Zi(a.M,b),c=tm("adaptation",c),Fn(a,c)):Gn(a,d,b)}}
532
+ function un(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=Ae(c);b=Ae(b);Gn(a,c,b)}function cn(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Mb(a.h.preferredTextLanguage);c=Mb(c.language);if(2==a.h.autoShowText)return Lb(c,d);if(3==a.h.autoShowText)return a=Mb(b.language),Lb(c,d)&&!Lb(a,c);Ya("Invalid autoShowText setting!");return!1}function Rm(a){var b=tm("trackschanged");Fn(a,b)}
533
+ function Gn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.M&&Zi(a.M,c);c=tm("variantchanged",b);Fn(a,c)}function tn(a){var b=tm("textchanged");Fn(a,b)}function dn(a){var b=tm("texttrackvisibility");Fn(a,b)}function en(a){var b=(new Map).set("newStatus",a.h.abr.enabled);Fn(a,tm("abrstatuschanged",b))}
534
+ function Hn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||a.l!=Xm||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Na().find(function(g){return g.active});for(var d=a.i,e=t(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);ee(d.variants,a.h.restrictions,a.$a);b=um(a);if(!b)return!1;d=a.kb().video.reduce(function(g,h){return g+h.end-h.start},0);Vm(a,b,!1,!0,d);a.qf.R(c);return!0}
532
535
  function Fm(a,b){if(a.l!=ym)if(Hn(a,b))b.handled=!0;else{var c=tm("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function Jm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(tm(b,c))}
533
536
  function Em(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new K(2,3,3016,b,c,a.g.error.message)}
534
537
  function Pm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=t(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())if(l=l.value,(l=b[d?"00":l])||a.m.H)f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!In.includes(l)}h!=f.allowedByKeySystem&&
535
538
  (e=!0)}}}if(e&&(Rm(a),!gn(a)))return;(b=a.j.l)&&!b.allowedByKeySystem&&sn(a)}}function Qm(a,b,c){if(a.G&&a.G.onExpirationUpdated)a.G.onExpirationUpdated(b,c);b=tm("expirationupdated");a.dispatchEvent(b)}function Um(a,b,c){0<b&&(a.T()||a.eg(b));b=a.getDuration();c<b&&(a.T()||a.Ua(c))}
536
539
  function En(a,b){a=a.m?a.m.yd():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?In.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
537
- missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new K(2,4,4012,a);}function fn(a){if(!a.variants.some(Ae))throw new K(2,4,4032);}function Fn(a,b){D(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=ym&&a.dispatchEvent(b);C(c)})}function wn(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
540
+ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new K(2,4,4012,a);}function fn(a){if(!a.variants.some(Be))throw new K(2,4,4032);}function Fn(a,b){D(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=ym&&a.dispatchEvent(b);C(c)})}function wn(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
538
541
  function vn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Mb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
539
- h.push({language:l,role:m,label:n})}});return h}function Am(){return new K(2,7,7E3)}function sm(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function ql(){return{mediaElement:null,mimeType:null,startTime:null,Sd:NaN,uri:null}}function Bm(a){return new Promise(function(b,c){a.Vb=function(){return c(Am())};a.Id=function(){return b()};a.onError=function(d){return c(d)};a.Kd=function(){return c(Am())}})}G("shaka.Player",R);
540
- R.prototype.setVideoContainer=R.prototype.bf;R.prototype.getManifestParserFactory=R.prototype.Sg;R.prototype.getManifest=R.prototype.Rg;R.prototype.retryStreaming=R.prototype.Ne;R.prototype.setMaxHardwareResolution=R.prototype.We;R.prototype.addChaptersTrack=R.prototype.ng;R.prototype.addThumbnailsTrack=R.prototype.pg;R.prototype.addTextTrackAsync=R.prototype.og;R.prototype.getStats=R.prototype.getStats;R.prototype.getBufferedInfo=R.prototype.mb;R.prototype.getPresentationStartTimeAsDate=R.prototype.Nf;
541
- R.prototype.getPlayheadTimeAsDate=R.prototype.Wg;R.prototype.setTextTrackVisibility=R.prototype.Rd;R.prototype.getChapters=R.prototype.Fg;R.prototype.getChaptersTracks=R.prototype.Lf;R.prototype.isTextTrackVisible=R.prototype.Sb;R.prototype.selectVariantsByLabel=R.prototype.Kh;R.prototype.selectTextLanguage=R.prototype.Re;R.prototype.selectAudioLanguage=R.prototype.Qe;R.prototype.getTextLanguages=R.prototype.Zg;R.prototype.getAudioLanguages=R.prototype.Bg;R.prototype.getTextLanguagesAndRoles=R.prototype.$g;
542
- R.prototype.getAudioLanguagesAndRoles=R.prototype.Cg;R.prototype.selectVariantTrack=R.prototype.Qd;R.prototype.selectTextTrack=R.prototype.Se;R.prototype.getThumbnails=R.prototype.bh;R.prototype.getImageTracks=R.prototype.Mg;R.prototype.getTextTracks=R.prototype.Cb;R.prototype.getVariantTracks=R.prototype.Oa;R.prototype.cancelTrickPlay=R.prototype.ud;R.prototype.trickPlay=R.prototype.hf;R.prototype.getPlaybackRate=R.prototype.ob;R.prototype.isBuffering=R.prototype.Tc;R.prototype.getKeyStatuses=R.prototype.yd;
543
- R.prototype.getExpiration=R.prototype.Kc;R.prototype.drmInfo=R.prototype.drmInfo;R.prototype.keySystem=R.prototype.keySystem;R.prototype.goToLive=R.prototype.gh;R.prototype.seekRange=R.prototype.Ma;R.prototype.isAudioOnly=R.prototype.kc;R.prototype.isInProgress=R.prototype.Qb;R.prototype.isLive=R.prototype.T;R.prototype.getAdManager=R.prototype.xd;R.prototype.getAssetUri=R.prototype.ve;R.prototype.getNetworkingEngine=R.prototype.Lc;R.prototype.getMediaElement=R.prototype.Ug;
544
- R.prototype.getLoadMode=R.prototype.we;R.prototype.resetConfiguration=R.prototype.Hh;R.prototype.getBufferFullness=R.prototype.Dg;R.prototype.getConfiguration=R.prototype.getConfiguration;R.prototype.configure=R.prototype.configure;R.prototype.load=R.prototype.load;R.prototype.updateStartTime=R.prototype.Uh;R.prototype.unload=R.prototype.jf;R.prototype.detach=R.prototype.detach;R.prototype.attachCanvas=R.prototype.xf;R.prototype.attach=R.prototype.Ec;
545
- R.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return D(function(h){if(1==h.g)return b={},a?u(h,$g(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in gh)k[l]=!0;for(var m in ih)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Oc()?!!gh[n]:Pc(n);for(var p in l)k[p]=
546
- Oc()?!!ih[p]:Pc(l[p]);c=k;p='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ha(nj));
547
- k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Fd(l)?!0:dc(l)||td(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};R.isBrowserSupported=zm;R.setAdManagerFactory=function(a){im=a};R.registerSupportPlugin=function(a,b){Jn[a]=b};R.prototype.destroy=R.prototype.destroy;var ym=0,fm=1,Xm=2,jn=3;R.LoadMode={DESTROYED:ym,NOT_LOADED:fm,MEDIA_SOURCE:Xm,SRC_EQUALS:jn};R.version="v4.3.14";var Kn=["4","3"];
548
- Le=new function(a){this.g=a;this.i=Me;this.h=Ne}(new Je(Number(Kn[0]),Number(Kn[1])));
542
+ h.push({language:l,role:m,label:n})}});return h}function Am(){return new K(2,7,7E3)}function sm(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function ql(){return{mediaElement:null,mimeType:null,startTime:null,Sd:NaN,uri:null}}function Bm(a){return new Promise(function(b,c){a.Vb=function(){return c(Am())};a.Id=function(){return b()};a.onError=function(d){return c(d)};a.Kd=function(){return c(Am())}})}G("shaka.Player",S);
543
+ S.prototype.setVideoContainer=S.prototype.$e;S.prototype.getManifestParserFactory=S.prototype.Tg;S.prototype.getManifest=S.prototype.Sg;S.prototype.retryStreaming=S.prototype.Me;S.prototype.setMaxHardwareResolution=S.prototype.We;S.prototype.addChaptersTrack=S.prototype.ng;S.prototype.addThumbnailsTrack=S.prototype.pg;S.prototype.addTextTrackAsync=S.prototype.og;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.kb;S.prototype.getPresentationStartTimeAsDate=S.prototype.Mf;
544
+ S.prototype.getPlayheadTimeAsDate=S.prototype.Xg;S.prototype.setTextTrackVisibility=S.prototype.Rd;S.prototype.getChapters=S.prototype.Fg;S.prototype.getChaptersTracks=S.prototype.Kf;S.prototype.isTextTrackVisible=S.prototype.Sb;S.prototype.selectVariantsByLabel=S.prototype.Lh;S.prototype.selectTextLanguage=S.prototype.Qe;S.prototype.selectAudioLanguage=S.prototype.Pe;S.prototype.getTextLanguages=S.prototype.$g;S.prototype.getAudioLanguages=S.prototype.Bg;S.prototype.getTextLanguagesAndRoles=S.prototype.ah;
545
+ S.prototype.getAudioLanguagesAndRoles=S.prototype.Cg;S.prototype.selectVariantTrack=S.prototype.Qd;S.prototype.selectTextTrack=S.prototype.Re;S.prototype.getThumbnails=S.prototype.dh;S.prototype.getImageTracks=S.prototype.Mg;S.prototype.getTextTracks=S.prototype.Bb;S.prototype.getVariantTracks=S.prototype.Na;S.prototype.cancelTrickPlay=S.prototype.td;S.prototype.trickPlay=S.prototype.gf;S.prototype.getPlaybackRate=S.prototype.mb;S.prototype.isBuffering=S.prototype.Tc;S.prototype.getKeyStatuses=S.prototype.yd;
546
+ S.prototype.getExpiration=S.prototype.Kc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.hh;S.prototype.seekRange=S.prototype.La;S.prototype.isAudioOnly=S.prototype.kc;S.prototype.isInProgress=S.prototype.Qb;S.prototype.isLive=S.prototype.T;S.prototype.getAdManager=S.prototype.xd;S.prototype.getAssetUri=S.prototype.ve;S.prototype.getNetworkingEngine=S.prototype.Lc;S.prototype.getMediaElement=S.prototype.Vg;
547
+ S.prototype.getLoadMode=S.prototype.we;S.prototype.resetConfiguration=S.prototype.Ih;S.prototype.getBufferFullness=S.prototype.Dg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Vh;S.prototype.unload=S.prototype.hf;S.prototype.detach=S.prototype.detach;S.prototype.attachCanvas=S.prototype.wf;S.prototype.attach=S.prototype.Ec;
548
+ S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return D(function(h){if(1==h.g)return b={},a?u(h,ah(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in hh)k[l]=!0;for(var m in jh)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Oc()?!!hh[n]:Pc(n);for(var p in l)k[p]=
549
+ Oc()?!!jh[p]:Pc(l[p]);c=k;p='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ia(oj));
550
+ k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Gd(l)?!0:dc(l)||td(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=zm;S.setAdManagerFactory=function(a){im=a};S.registerSupportPlugin=function(a,b){Jn[a]=b};S.prototype.destroy=S.prototype.destroy;var ym=0,fm=1,Xm=2,jn=3;S.LoadMode={DESTROYED:ym,NOT_LOADED:fm,MEDIA_SOURCE:Xm,SRC_EQUALS:jn};S.version="v4.3.16";var Kn=["4","3"];
551
+ Me=new function(a){this.g=a;this.i=Ne;this.h=Oe}(new Ke(Number(Kn[0]),Number(Kn[1])));
549
552
  var In=["output-restricted","internal-error"],Jn={},im=null,xm={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"},Cn={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
550
- ssa:"text/x-ssa",ass:"text/x-ssa"};function Ln(){this.h=[];this.j=this.i=this.g=0};function Mn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.j=this.g.getVolume();this.l=new Cf;this.l.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=Mn.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
553
+ ssa:"text/x-ssa",ass:"text/x-ssa"};function Ln(){this.h=[];this.j=this.i=this.g=0};function Mn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.j=this.g.getVolume();this.l=new Df;this.l.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=Mn.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
551
554
  r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.g.getAdSkippableState()};r.skip=function(){return this.g.skip()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.resume()};r.getVolume=function(){return this.g.getVolume()};r.setVolume=function(a){return this.g.setVolume(a)};r.isMuted=function(){return 0==this.g.getVolume()};
552
555
  r.isLinear=function(){return this.h.isLinear()};r.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){a?(this.j=this.getVolume(),this.setVolume(0)):this.setVolume(this.j)};r.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
553
556
  r.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.h.getTitle()};r.getDescription=function(){return this.h.getDescription()};r.release=function(){this.g=this.h=null};G("shaka.ads.ClientSideAd",Mn);Mn.prototype.release=Mn.prototype.release;Mn.prototype.getDescription=Mn.prototype.getDescription;Mn.prototype.getTitle=Mn.prototype.getTitle;Mn.prototype.getPositionInSequence=Mn.prototype.getPositionInSequence;
554
557
  Mn.prototype.getSequenceLength=Mn.prototype.getSequenceLength;Mn.prototype.setMuted=Mn.prototype.setMuted;Mn.prototype.resize=Mn.prototype.resize;Mn.prototype.isLinear=Mn.prototype.isLinear;Mn.prototype.isMuted=Mn.prototype.isMuted;Mn.prototype.setVolume=Mn.prototype.setVolume;Mn.prototype.getVolume=Mn.prototype.getVolume;Mn.prototype.play=Mn.prototype.play;Mn.prototype.pause=Mn.prototype.pause;Mn.prototype.skip=Mn.prototype.skip;Mn.prototype.canSkipNow=Mn.prototype.canSkipNow;
555
- Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d){var e=this;this.s=a;this.i=b;this.C=!1;this.B=null;this.F=NaN;this.l=d;this.j=null;this.h=new Cf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.14");this.g=null;this.h.sa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){On(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
556
- function(f){Pn(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()});this.h.sa(this.i,"play",function(){e.C=!0})}Nn.prototype.stop=function(){this.g&&this.g.stop();this.s&&Dl(this.s)};Nn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Pn(a,b){b.getError();Qn(a,null);a.l(new I("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
558
+ Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d){var e=this;this.s=a;this.i=b;this.C=!1;this.B=null;this.F=NaN;this.l=d;this.j=null;this.h=new Df;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.16");this.g=null;this.h.ra(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){On(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
559
+ function(f){Pn(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()});this.h.ra(this.i,"play",function(){e.C=!0})}Nn.prototype.stop=function(){this.g&&this.g.stop();this.s&&Dl(this.s)};Nn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Pn(a,b){b.getError();Qn(a,null);a.l(new I("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
557
560
  function On(a,b){a.l(new I("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));a.g=b.getAdsManager(a.i);a.l(new I("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=t(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new I("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Rn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
558
- function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.C?a.g.start():a.h.sa(a.i,"play",
561
+ function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.C?a.g.start():a.h.ra(a.i,"play",
559
562
  function(){a.C=!0;a.g.start()})}catch(e){Qn(a,null)}}function Sn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
560
563
  function Rn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new I(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Pn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Tn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Tn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
561
564
  function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Qn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Qn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
562
565
  a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
563
566
  a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,
564
567
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
565
- function Tn(a,b){var c=b.getAd();c?(a.j=new Mn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new I("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.g.setVolume(0)):a.j.setVolume(a.i.volume))):Za("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
568
+ function Tn(a,b){var c=b.getAd();c?(a.j=new Mn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new I("ad-started",b)),a.j.isLinear()&&(a.s.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.g.setVolume(0)):a.j.setVolume(a.i.volume))):Ya("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
566
569
  function Qn(a,b){a.l(new I("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.s.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Un(a,b){this.i=a;this.h=null;this.g=b}r=Un.prototype;r.getDuration=function(){return this.h?this.h.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.i.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
567
570
  r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.g.currentTime+=this.getRemainingTime()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.play()};r.getVolume=function(){return this.g.volume};r.setVolume=function(a){this.g.volume=a};r.isMuted=function(){return this.g.muted};r.isLinear=function(){return!0};r.resize=function(){};r.setMuted=function(a){this.g.muted=a};
568
571
  r.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.i.getTitle()};r.getDescription=function(){return this.i.getDescription()};r.release=function(){this.g=this.h=this.i=null};G("shaka.ads.ServerSideAd",Un);Un.prototype.release=Un.prototype.release;Un.prototype.getDescription=Un.prototype.getDescription;Un.prototype.getTitle=Un.prototype.getTitle;
569
572
  Un.prototype.getPositionInSequence=Un.prototype.getPositionInSequence;Un.prototype.getSequenceLength=Un.prototype.getSequenceLength;Un.prototype.setMuted=Un.prototype.setMuted;Un.prototype.resize=Un.prototype.resize;Un.prototype.isLinear=Un.prototype.isLinear;Un.prototype.isMuted=Un.prototype.isMuted;Un.prototype.setVolume=Un.prototype.setVolume;Un.prototype.getVolume=Un.prototype.getVolume;Un.prototype.play=Un.prototype.play;Un.prototype.pause=Un.prototype.pause;Un.prototype.skip=Un.prototype.skip;
570
- Un.prototype.canSkipNow=Un.prototype.canSkipNow;Un.prototype.getTimeUntilSkippable=Un.prototype.getTimeUntilSkippable;Un.prototype.isSkippable=Un.prototype.isSkippable;Un.prototype.isPaused=Un.prototype.isPaused;Un.prototype.getRemainingTime=Un.prototype.getRemainingTime;Un.prototype.getMinSuggestedDuration=Un.prototype.getMinSuggestedDuration;Un.prototype.getDuration=Un.prototype.getDuration;function Vn(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.s=null;this.F="";this.G=[];this.h=new Cf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new I("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Wn(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
573
+ Un.prototype.canSkipNow=Un.prototype.canSkipNow;Un.prototype.getTimeUntilSkippable=Un.prototype.getTimeUntilSkippable;Un.prototype.isSkippable=Un.prototype.isSkippable;Un.prototype.isPaused=Un.prototype.isPaused;Un.prototype.getRemainingTime=Un.prototype.getRemainingTime;Un.prototype.getMinSuggestedDuration=Un.prototype.getMinSuggestedDuration;Un.prototype.getDuration=Un.prototype.getDuration;function Vn(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.s=null;this.F="";this.G=[];this.h=new Df;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new I("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Wn(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
571
574
  e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Un(f,e.l);e.C&&(e.m.h=e.C);e.i(new I("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
572
575
  var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new I("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new I("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new I("ad-third-quartile"))});
573
576
  this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new I("ad-complete"));e.i(new I("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new I("ad-skipped"));e.i(new I("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
574
577
  f;e.i(new I("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Vn.prototype.stop=function(){this.F="";this.s=null;this.G=[]};Vn.prototype.release=function(){this.stop();this.h&&this.h.release()};Vn.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
575
- function Wn(a,b){a.i(new I("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){ib.call(this);this.g=this.i=null;this.h=new Ln;this.j=navigator.language}ra(T,ib);r=T.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new K(2,10,1E4);this.i&&this.i.release();this.i=new Nn(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)})};
576
- r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);ib.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new I("ad-stopped"));this.h=new Ln};r.requestClientSideAds=function(a){if(!this.i)throw new K(1,10,10001);var b=this.i;b.F=Date.now()/1E3;b.m.requestAds(a)};
578
+ function Wn(a,b){a.i(new I("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){jb.call(this);this.g=this.i=null;this.h=new Ln;this.j=navigator.language}sa(T,jb);r=T.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new K(2,10,1E4);this.i&&this.i.release();this.i=new Nn(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)})};
579
+ r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);jb.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new I("ad-stopped"));this.h=new Ln};r.requestClientSideAds=function(a){if(!this.i)throw new K(1,10,10001);var b=this.i;b.F=Date.now()/1E3;b.m.requestAds(a)};
577
580
  r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new K(2,10,10002);this.g&&this.g.release();this.g=new Vn(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)})};
578
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new K(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.14";c=this.g;c.j?a=Promise.reject(new K(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
579
- (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new K(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.14";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new K(1,10,10003);return this.g.G};
581
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new K(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ya('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.16";c=this.g;c.j?a=Promise.reject(new K(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
582
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new K(1,10,10003);(a.mpt||a.mpv)&&Ya('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.16";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new K(1,10,10003);return this.g.G};
580
583
  r.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.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)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};G("shaka.ads.AdManager",T);
581
584
  T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
582
585
  T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
583
586
  T.AD_VOLUME_CHANGED="ad-volume-changed";T.AD_MUTED="ad-muted";T.AD_PAUSED="ad-paused";T.AD_RESUMED="ad-resumed";T.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";T.CUEPOINTS_CHANGED="ad-cue-points-changed";T.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";T.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";T.AD_CLICKED="ad-clicked";T.AD_PROGRESS="ad-progress";T.AD_BUFFERING="ad-buffering";T.AD_IMPRESSION="ad-impression";T.AD_DURATION_CHANGED="ad-duration-changed";T.AD_CLOSED="ad-closed";
584
587
  T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";im=function(){return new T};function Xn(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof I){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=t(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=t(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
585
- TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(Ni(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
588
+ TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(Oi(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
586
589
  function Yn(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Zn(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})}
587
590
  function Zn(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
588
591
  var $n="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ao="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),bo=["loop","playbackRate"],co=["pause","play"],eo={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
589
592
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},fo={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},go={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},ho=[["getConfiguration","configure"]],io=[["isTextTrackVisible","setTextTrackVisibility"]],jo="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
590
- ko=["attach","attachCanvas","detach","load","unload"];function lo(a,b,c,d,e,f,g){var h=this;this.I=a;this.N=g;this.j=new N(b);this.P=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.L="";this.s=null;this.F=function(){return mo(h)};this.G=function(k,l){k=Yn(l);switch(k.type){case "event":var m=k.targetName,n=Ua(k.event);h.B(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var p in m[n])k[p]=m[n][p]}h.C&&(h.P(),h.C=!1);break;case "asyncComplete":if(n=k.id,p=k.error,k=h.i[n],delete h.i[n],k)if(p){n=new K(p.severity,p.category,
591
- p.code);for(m in p)n[m]=p[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;no.add(this)}r=lo.prototype;r.destroy=function(){no.delete(this);oo(this);po&&qo(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.s=null;return Promise.resolve()};r.qa=function(){return this.h};r.Nd=function(){return this.L};
592
- r.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Ca();var a=new chrome.cast.SessionRequest(this.I,[],null,this.N,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())ro(d.value,b)},function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())d=d.value,so="available"==b,d.j.Ca()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});so&&this.j.R(to);(a=po)&&a.status!=chrome.cast.SessionStatus.STOPPED?
593
- ro(this,a):po=null}else window.__onGCastApiAvailable!==uo&&(vo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=uo)};r.Te=function(a){this.s=a;this.h&&wo(this,{type:"appData",appData:this.s})};r.cast=function(a){var b=this;return D(function(c){if(!b.m)throw new K(1,8,8E3);if(!so)throw new K(1,8,8001);if(b.h)throw new K(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return xo(b,a,d)},function(d){return yo(b,d)});return u(c,b.l,0)})};
594
- function zo(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return xo(a,b,c)},function(c){return yo(a,c)})}}r.dc=function(){if(this.h){oo(this);if(po){qo(this);try{po.stop(function(){},function(){})}catch(a){}po=null}mo(this)}};
595
- r.get=function(a,b){var c=this;if("video"==a){if(co.includes(b))return function(){return c.Wf.apply(c,[a,b].concat(ha(Ka.apply(0,arguments))))}}else if("player"==a){if(go[b]&&!this.get("player","isLive")())return function(){};if(jo.includes(b))return function(){return c.Wf.apply(c,[a,b].concat(ha(Ka.apply(0,arguments))))};if(ko.includes(b))return function(){return c.Eh.apply(c,[a,b].concat(ha(Ka.apply(0,arguments))))};if(eo[b]||fo[b])return function(){return c.g[a][b]}}return this.g[a][b]};
596
- r.set=function(a,b,c){this.g[a][b]=c;wo(this,{type:"set",targetName:a,property:b,value:c})};function xo(a,b,c){po=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);mo(a);wo(a,{type:"init",initState:b,appData:a.s});a.l.resolve()}function yo(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 K(2,8,c,b))}
597
- r.Wf=function(a,b){wo(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};r.Eh=function(a,b){var c=Ka.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{wo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function ro(a,b){var c=a.K();a.l=new Lc;a.C=!0;xo(a,c,b)}function qo(a){var b=po;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
598
- function mo(a){var b=po?"connected"==po.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};oo(a)}a.h=b;a.L=b?po.receiver.friendlyName:"";a.j.Ca()}function oo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new K(1,7,7E3))}}function wo(a,b){b=Xn(b);var c=po;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},cb)}catch(d){throw b=new K(2,8,8005,d),c=new I("error",(new Map).set("detail",b)),a.B("player",c),a.dc(),b;}}var to=.02,so=!1,po=null,vo=null,no=new Set;
599
- function uo(a){vo?window.__onGCastApiAvailable=vo:delete window.__onGCastApiAvailable;vo=null;if(a)for(var b=t(no),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Ao(a,b,c,d){d=void 0===d?!1:d;ib.call(this);var e=this;this.i=a;this.h=b;this.m=this.s=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new lo(c,function(){return Bo(e)},function(){return Co(e)},function(f,g){return Do(e,f,g)},function(){return Eo(e)},function(){return Fo(e)},d);Go(this)}ra(Ao,ib);r=Ao.prototype;
600
- r.destroy=function(a){a&&this.g.dc();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;ib.prototype.release.call(this);return Promise.all(a)};r.Db=function(){return this.l};r.fc=function(){return this.B};r.Af=function(){return this.g.m&&so};r.qa=function(){return this.g.qa()};r.Nd=function(){return this.g.Nd()};
601
- r.cast=function(){var a=this,b;return D(function(c){return 1==c.g?(b=Fo(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.jf(),0):c.return()})};r.Te=function(a){this.g.Te(a)};r.gg=function(){zo(this.g)};r.dc=function(){this.g.dc()};
602
- r.Df=function(a,b){b=void 0===b?!1:b;var c=this;return D(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.dc();return u(d,c.g.destroy(),2)}c.g=null;c.g=new lo(a,function(){return Bo(c)},function(){return Co(c)},function(e,f){return Do(c,e,f)},function(){return Eo(c)},function(){return Fo(c)},b);c.g.init();C(d)})};
603
- function Go(a){a.g.init();a.m=new Cf;for(var b=t($n),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Ua(f),a.j.dispatchEvent(f))});for(var d in Va)a.m.o(a.h,Va[d],function(f){a.g.qa()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.xc=e,Object.defineProperty(a.l,b.xc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Ho(a,f.xc)}}(b),set:function(f){return function(g){var h=f.xc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={xc:b.xc};a.B={};Io(a,
604
- function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Jo(a,f)}})});Ko(a);a.j=new ib;a.j.Md=a.l;a.s=new ib;a.s.Md=a.B}function Ko(a){var b=new Map;Io(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
605
- function Io(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
606
- function Fo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ve(),startTime:null};a.i.pause();for(var c=t(bo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(ho);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(io);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Bo(a){var b=new I("caststatuschanged");a.dispatchEvent(b)}
607
- function Co(a){var b=new I(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
608
- function Eo(a){for(var b=t(ho),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(bo);for(d=c.next();!d.done;d=c.next())d=
609
- d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(bo),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(io);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Rd(h);g&&a.h.Re(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new I("error",l);a.h.dispatchEvent(l)})}
610
- function Ho(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
611
- function Jo(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Lc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.xd()};
612
- if("setVideoContainer"==b)return function(c){return a.h.bf(c)};if(a.g.qa()){if("getManifest"==b||"drmInfo"==b)return function(){Za(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Za(b+"() does not work while casting!");return Promise.resolve()}}return a.g.qa()&&0==Object.keys(a.g.g.video).length&&(eo[b]||fo[b])||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}
613
- function Do(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}G("shaka.cast.CastProxy",Ao);Ao.prototype.changeReceiverId=Ao.prototype.Df;Ao.prototype.forceDisconnect=Ao.prototype.dc;Ao.prototype.suggestDisconnect=Ao.prototype.gg;Ao.prototype.setAppData=Ao.prototype.Te;Ao.prototype.cast=Ao.prototype.cast;Ao.prototype.receiverName=Ao.prototype.Nd;Ao.prototype.isCasting=Ao.prototype.qa;Ao.prototype.canCast=Ao.prototype.Af;Ao.prototype.getPlayer=Ao.prototype.fc;
614
- Ao.prototype.getVideo=Ao.prototype.Db;Ao.prototype.destroy=Ao.prototype.destroy;function Lo(a,b,c,d){ib.call(this);var e=this;this.g=a;this.h=b;this.j=new Cf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new N(function(){Mo(e)});No(this)}ra(Lo,ib);r=Lo.prototype;r.isConnected=function(){return this.H};r.jh=function(){return this.s};r.Nh=function(a){this.i=a};r.wg=function(){this.i=null};
615
- r.Oh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.Mh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.Lh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
616
- r.destroy=function(){var a=this,b,c;return D(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.s=!0,a.l=null,a.B=null,ib.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();C(d)})};
617
- function No(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Oo(a)};b.onSenderDisconnected=function(){return Oo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Po(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Po(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 Qo(a,
618
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Ro(a,e)};b.start();b=t($n);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return So(a,"video",e)});for(var d in Va)a.j.o(a.h,Va[d],function(e){return So(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.We(3840,2160):a.h.We(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.s=
619
- !1;To(a)});a.j.o(a.g,"playing",function(){a.s=!1;To(a)});a.j.o(a.g,"pause",function(){To(a)});a.j.o(a.h,"unloading",function(){a.s=!0;To(a)});a.j.o(a.g,"ended",function(){(new N(function(){a.g&&a.g.ended&&(a.s=!0,To(a))})).R(Uo)})}function Oo(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;To(a)}
620
- function To(a){var b;D(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new I("caststatuschanged");a.dispatchEvent(b);Vo(a)||Wo(a);C(c)})}
621
- function Xo(a,b,c){var d,e,f,g,h,k,l,m,n,p;D(function(q){switch(q.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,wa(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:za(q,3);break;case 5:return g=Aa(q),h=(new Map).set("detail",g),k=new I("error",h),a.h&&a.h.dispatchEvent(k),q.return();case 3:if(!a.h)return q.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],a.h[n](p);
622
- a.g.autoplay=f;b.manifest&&(a.g.play(),Wo(a));C(q)}})}function So(a,b,c){a.h&&(Mo(a),Po(a,{type:"event",targetName:b,event:c},a.l))}
623
- function Mo(a){a.I.R(Yo);for(var b={video:{},player:{}},c=t(ao),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.T())for(var e in go)0==a.m%go[e]&&(b.player[e]=a.h[e]());for(var f in eo)0==a.m%eo[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Po(a,{type:"update",update:b},a.l);for(var g in fo)0==a.m%fo[g]&&(b={player:{}},b.player[g]=a.h[g](),Po(a,{type:"update",update:b},a.l));a.F&&(a.m+=
624
- 1);Vo(a)}function Vo(a){return a.C&&(a.g.duration||a.h.T())?(Zo(a),a.C=!1,!0):!1}function Zo(a,b){var c={contentId:a.h.ve(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Wo(a,void 0===b?0:b,c)}
625
- function Ro(a,b){var c=Yn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;Xo(a,c.initState,c.appData);Mo(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
626
- "player"==d&&"load"==e&&(a.m=0,a.F=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return $o(a,g,f,null)},function(h){return $o(a,g,f,h)})}}
627
- function Qo(a,b){var c=Yn(b.data);switch(c.type){case "PLAY":a.g.play();Wo(a);break;case "PAUSE":a.g.pause();Wo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Wo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Wo(a));break;case "STOP":a.h.jf().then(function(){a.h&&Wo(a)});break;case "GET_STATUS":Zo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
628
- null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Wo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Zo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Po(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:Po(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
629
- function $o(a,b,c,d){a.h&&Po(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Po(a,b,c,d){a.H&&(a=Xn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Wo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?ap:a.h.Tc()?bp:a.g.paused?cp:dp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Po(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
630
- G("shaka.cast.CastReceiver",Lo);Lo.prototype.destroy=Lo.prototype.destroy;Lo.prototype.setContentArtist=Lo.prototype.Lh;Lo.prototype.setContentImage=Lo.prototype.Mh;Lo.prototype.setContentTitle=Lo.prototype.Oh;Lo.prototype.clearContentMetadata=Lo.prototype.wg;Lo.prototype.setContentMetadata=Lo.prototype.Nh;Lo.prototype.isIdle=Lo.prototype.jh;Lo.prototype.isConnected=Lo.prototype.isConnected;var Yo=.5,Uo=5,ap="IDLE",dp="PLAYING",bp="BUFFERING",cp="PAUSED";function ep(a,b,c){var d=fp(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 K(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Pe?(e=h.init||e,!1):!0}),f.length&&(a=gp(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
631
- t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Gf:g,uj:e,drmInfos:a,Kf:!0}}function hp(a,b,c,d){var e=ep(a,c,d);if(b.Kf){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.Kf=!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 K(2,4,4008);return e.Gf||b.Gf}
632
- function ip(a){var b=0,c=Kc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Gc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
633
- function jp(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function kp(a){a=ag(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=ld(a.textContent);a=ip(a).filter(function(b){return b.type===lp})[0];if(!a)return"";a=dd(a.value,!0);return(a=qg(a,"WRMHEADER"))?jp(a):""}
634
- function gp(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Pe];if(g){var h;if(h=ag(f.node,"urn:microsoft:playready","pro")){h=ld(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Yf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Pe)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
635
- 226,251,75]),m=new Uint8Array([]);k=[{initData:Yf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=mp.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function fp(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=np(c.value))&&b.push(c);return b}
636
- function np(a){var b=a.getAttribute("schemeIdUri"),c=dg(a,"urn:mpeg:cenc:2013","default_KID"),d=bg(a,"urn:mpeg:cenc:2013","pssh").map(fg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new K(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:ld(f),keyId:null}})}catch(f){throw new K(2,4,4007);}return{node:a,Pe:b,keyId:c,init:0<e.length?e:null}}
637
- var lp=1,mp=(new Map).set("com.widevine.alpha",function(a){return(a=ag(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",kp).set("com.microsoft.playready.recommendation",kp).set("com.microsoft.playready.software",kp).set("com.microsoft.playready.hardware",kp).set("org.w3.clearkey",function(a){return(a=ag(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function op(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=
593
+ ko=["attach","attachCanvas","detach","load","unload"];function lo(a,b,c,d,e,f,g){var h=this;this.I=a;this.M=g;this.l=new M(b);this.N=c;this.B=!1;this.C=d;this.H=e;this.P=f;this.h=this.m=!1;this.K="";this.s=null;this.F=function(){return mo(h)};this.G=function(k,l){k=Yn(l);switch(k.type){case "event":var m=k.targetName,n=Ta(k.event);h.C(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var p in m[n])k[p]=m[n][p]}h.B&&(h.N(),h.B=!1);break;case "asyncComplete":if(n=k.id,p=k.error,k=h.i[n],delete h.i[n],k)if(p){n=new K(p.severity,p.category,
594
+ p.code);for(m in p)n[m]=p[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.j=null;no.add(this)}r=lo.prototype;r.destroy=function(){no.delete(this);oo(this);po&&qo(this);this.l&&(this.l.stop(),this.l=null);this.H=this.C=null;this.h=this.m=!1;this.G=this.F=this.j=this.i=this.g=this.s=null;return Promise.resolve()};r.oa=function(){return this.h};r.Nd=function(){return this.K};
595
+ r.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ba();var a=new chrome.cast.SessionRequest(this.I,[],null,this.M,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(no),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Lc;d.B=!0;ro(d,e)}},function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())d=d.value,so="available"==b,d.l.Ba()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});so&&this.l.R(to);(a=po)&&
596
+ a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Lc,this.B=!0,ro(this,a)):po=null}else window.__onGCastApiAvailable!==uo&&(vo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=uo)};r.Se=function(a){this.s=a;this.h&&wo(this,{type:"appData",appData:this.s})};
597
+ r.cast=function(){var a=this;return D(function(b){if(!a.m)throw new K(1,8,8E3);if(!so)throw new K(1,8,8001);if(a.h)throw new K(1,8,8002);a.j=new Lc;chrome.cast.requestSession(function(c){return ro(a,c)},function(c){return xo(a,c)});return u(b,a.j,0)})};function yo(a){a.h&&chrome.cast.requestSession(function(b){return ro(a,b)},function(b){return xo(a,b)})}r.dc=function(){if(this.h){oo(this);if(po){qo(this);try{po.stop(function(){},function(){})}catch(a){}po=null}mo(this)}};
598
+ r.get=function(a,b){var c=this;if("video"==a){if(co.includes(b))return function(){return c.Vf.apply(c,[a,b].concat(ia(Ka.apply(0,arguments))))}}else if("player"==a){if(go[b]&&!this.get("player","isLive")())return function(){};if(jo.includes(b))return function(){return c.Vf.apply(c,[a,b].concat(ia(Ka.apply(0,arguments))))};if(ko.includes(b))return function(){return c.Fh.apply(c,[a,b].concat(ia(Ka.apply(0,arguments))))};if(eo[b]||fo[b])return function(){return c.g[a][b]}}return this.g[a][b]};
599
+ r.set=function(a,b,c){this.g[a][b]=c;wo(this,{type:"set",targetName:a,property:b,value:c})};function ro(a,b){var c=a.P();po=b;b.addUpdateListener(a.F);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);mo(a);wo(a,{type:"init",initState:c,appData:a.s});a.j.resolve()}function xo(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new K(2,8,c,b))}
600
+ r.Vf=function(a,b){wo(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};r.Fh=function(a,b){var c=Ka.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{wo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function qo(a){var b=po;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
601
+ function mo(a){var b=po?"connected"==po.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};oo(a)}a.h=b;a.K=b?po.receiver.friendlyName:"";a.l.Ba()}function oo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new K(1,7,7E3))}}function wo(a,b){b=Xn(b);var c=po;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},bb)}catch(d){throw b=new K(2,8,8005,d),c=new I("error",(new Map).set("detail",b)),a.C("player",c),a.dc(),b;}}var to=.02,so=!1,po=null,vo=null,no=new Set;
602
+ function uo(a){vo?window.__onGCastApiAvailable=vo:delete window.__onGCastApiAvailable;vo=null;if(a)for(var b=t(no),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function zo(a,b,c,d){d=void 0===d?!1:d;jb.call(this);var e=this;this.i=a;this.h=b;this.m=this.s=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new lo(c,function(){return Ao(e)},function(){return Bo(e)},function(f,g){return Co(e,f,g)},function(){return Do(e)},function(){return Eo(e)},d);Fo(this)}sa(zo,jb);r=zo.prototype;
603
+ r.destroy=function(a){a&&this.g.dc();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;jb.prototype.release.call(this);return Promise.all(a)};r.Cb=function(){return this.l};r.fc=function(){return this.B};r.zf=function(){return this.g.m&&so};r.oa=function(){return this.g.oa()};r.Nd=function(){return this.g.Nd()};
604
+ r.cast=function(){var a=this;return D(function(b){return 1==b.g?u(b,a.g.cast(),2):a.h?u(b,a.h.hf(),0):b.return()})};r.Se=function(a){this.g.Se(a)};r.gg=function(){yo(this.g)};r.dc=function(){this.g.dc()};
605
+ r.Cf=function(a,b){b=void 0===b?!1:b;var c=this;return D(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.dc();return u(d,c.g.destroy(),2)}c.g=null;c.g=new lo(a,function(){return Ao(c)},function(){return Bo(c)},function(e,f){return Co(c,e,f)},function(){return Do(c)},function(){return Eo(c)},b);c.g.init();C(d)})};
606
+ function Fo(a){a.g.init();a.m=new Df;for(var b=t($n),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.oa()||(f=Ta(f),a.j.dispatchEvent(f))});for(var d in Ua)a.m.o(a.h,Ua[d],function(f){a.g.oa()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.xc=e,Object.defineProperty(a.l,b.xc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Go(a,f.xc)}}(b),set:function(f){return function(g){var h=f.xc;a.g.oa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={xc:b.xc};a.B={};Ho(a,
607
+ function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Io(a,f)}})});Jo(a);a.j=new jb;a.j.Md=a.l;a.s=new jb;a.s.Md=a.B}function Jo(a){var b=new Map;Ho(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
608
+ function Ho(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
609
+ function Eo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ve(),startTime:null};a.i.pause();for(var c=t(bo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(ho);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(io);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Ao(a){var b=new I("caststatuschanged");a.dispatchEvent(b)}
610
+ function Bo(a){var b=new I(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
611
+ function Do(a){for(var b=t(ho),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(bo);for(d=c.next();!d.done;d=c.next())d=
612
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(bo),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(io);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Rd(h);g&&a.h.Qe(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new I("error",l);a.h.dispatchEvent(l)})}
613
+ function Go(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.oa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.oa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
614
+ function Io(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Lc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.xd()};
615
+ if("setVideoContainer"==b)return function(c){return a.h.$e(c)};if(a.g.oa()){if("getManifest"==b||"drmInfo"==b)return function(){Ya(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ya(b+"() does not work while casting!");return Promise.resolve()}}return a.g.oa()&&0==Object.keys(a.g.g.video).length&&(eo[b]||fo[b])||!a.g.oa()?a.h[b].bind(a.h):a.g.get("player",b)}
616
+ function Co(a,b,c){a.g.oa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}G("shaka.cast.CastProxy",zo);zo.prototype.changeReceiverId=zo.prototype.Cf;zo.prototype.forceDisconnect=zo.prototype.dc;zo.prototype.suggestDisconnect=zo.prototype.gg;zo.prototype.setAppData=zo.prototype.Se;zo.prototype.cast=zo.prototype.cast;zo.prototype.receiverName=zo.prototype.Nd;zo.prototype.isCasting=zo.prototype.oa;zo.prototype.canCast=zo.prototype.zf;zo.prototype.getPlayer=zo.prototype.fc;
617
+ zo.prototype.getVideo=zo.prototype.Cb;zo.prototype.destroy=zo.prototype.destroy;function Ko(a,b,c,d){jb.call(this);var e=this;this.g=a;this.h=b;this.j=new Df;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new M(function(){Lo(e)});Mo(this)}sa(Ko,jb);r=Ko.prototype;r.isConnected=function(){return this.H};r.kh=function(){return this.s};r.Oh=function(a){this.i=a};r.wg=function(){this.i=null};
618
+ r.Ph=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.Nh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.Mh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
619
+ r.destroy=function(){var a=this,b,c;return D(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.s=!0,a.l=null,a.B=null,jb.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();C(d)})};
620
+ function Mo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return No(a)};b.onSenderDisconnected=function(){return No(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Oo(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Oo(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 Po(a,
621
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Qo(a,e)};b.start();b=t($n);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Ro(a,"video",e)});for(var d in Ua)a.j.o(a.h,Ua[d],function(e){return Ro(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.We(3840,2160):a.h.We(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.s=
622
+ !1;So(a)});a.j.o(a.g,"playing",function(){a.s=!1;So(a)});a.j.o(a.g,"pause",function(){So(a)});a.j.o(a.h,"unloading",function(){a.s=!0;So(a)});a.j.o(a.g,"ended",function(){(new M(function(){a.g&&a.g.ended&&(a.s=!0,So(a))})).R(To)})}function No(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;So(a)}
623
+ function So(a){var b;D(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new I("caststatuschanged");a.dispatchEvent(b);Uo(a)||Vo(a);C(c)})}
624
+ function Wo(a,b,c){var d,e,f,g,h,k,l,m,n,p;D(function(q){switch(q.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,xa(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:Aa(q,3);break;case 5:return g=Ba(q),h=(new Map).set("detail",g),k=new I("error",h),a.h&&a.h.dispatchEvent(k),q.return();case 3:if(!a.h)return q.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],a.h[n](p);
625
+ a.g.autoplay=f;b.manifest&&(a.g.play(),Vo(a));C(q)}})}function Ro(a,b,c){a.h&&(Lo(a),Oo(a,{type:"event",targetName:b,event:c},a.l))}
626
+ function Lo(a){a.I.R(Xo);for(var b={video:{},player:{}},c=t(ao),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.T())for(var e in go)0==a.m%go[e]&&(b.player[e]=a.h[e]());for(var f in eo)0==a.m%eo[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Oo(a,{type:"update",update:b},a.l);for(var g in fo)0==a.m%fo[g]&&(b={player:{}},b.player[g]=a.h[g](),Oo(a,{type:"update",update:b},a.l));a.F&&(a.m+=
627
+ 1);Uo(a)}function Uo(a){return a.C&&(a.g.duration||a.h.T())?(Yo(a),a.C=!1,!0):!1}function Yo(a,b){var c={contentId:a.h.ve(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Vo(a,void 0===b?0:b,c)}
628
+ function Qo(a,b){var c=Yn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;Wo(a,c.initState,c.appData);Lo(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
629
+ "player"==d&&"load"==e&&(a.m=0,a.F=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return Zo(a,g,f,null)},function(h){return Zo(a,g,f,h)})}}
630
+ function Po(a,b){var c=Yn(b.data);switch(c.type){case "PLAY":a.g.play();Vo(a);break;case "PAUSE":a.g.pause();Vo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Vo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Vo(a));break;case "STOP":a.h.hf().then(function(){a.h&&Vo(a)});break;case "GET_STATUS":Yo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
631
+ null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Vo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Yo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Oo(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:Oo(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
632
+ function Zo(a,b,c,d){a.h&&Oo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Oo(a,b,c,d){a.H&&(a=Xn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Vo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?$o:a.h.Tc()?ap:a.g.paused?bp:cp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Oo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
633
+ G("shaka.cast.CastReceiver",Ko);Ko.prototype.destroy=Ko.prototype.destroy;Ko.prototype.setContentArtist=Ko.prototype.Mh;Ko.prototype.setContentImage=Ko.prototype.Nh;Ko.prototype.setContentTitle=Ko.prototype.Ph;Ko.prototype.clearContentMetadata=Ko.prototype.wg;Ko.prototype.setContentMetadata=Ko.prototype.Oh;Ko.prototype.isIdle=Ko.prototype.kh;Ko.prototype.isConnected=Ko.prototype.isConnected;var Xo=.5,To=5,$o="IDLE",cp="PLAYING",ap="BUFFERING",bp="PAUSED";function dp(a,b,c){var d=ep(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 K(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Oe?(e=h.init||e,!1):!0}),f.length&&(a=fp(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
634
+ t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Ff:g,vj:e,drmInfos:a,Jf:!0}}function gp(a,b,c,d){var e=dp(a,c,d);if(b.Jf){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.Jf=!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 K(2,4,4008);return e.Ff||b.Ff}
635
+ function hp(a){var b=0,c=Kc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Gc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
636
+ function ip(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function jp(a){a=bg(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=ld(a.textContent);a=hp(a).filter(function(b){return b.type===kp})[0];if(!a)return"";a=dd(a.value,!0);return(a=rg(a,"WRMHEADER"))?ip(a):""}
637
+ function fp(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Oe];if(g){var h;if(h=bg(f.node,"urn:microsoft:playready","pro")){h=ld(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Zf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Oe)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
638
+ 226,251,75]),m=new Uint8Array([]);k=[{initData:Zf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=lp.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function ep(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=mp(c.value))&&b.push(c);return b}
639
+ function mp(a){var b=a.getAttribute("schemeIdUri"),c=eg(a,"urn:mpeg:cenc:2013","default_KID"),d=cg(a,"urn:mpeg:cenc:2013","pssh").map(gg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new K(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:ld(f),keyId:null}})}catch(f){throw new K(2,4,4007);}return{node:a,Oe:b,keyId:c,init:0<e.length?e:null}}
640
+ var kp=1,lp=(new Map).set("com.widevine.alpha",function(a){return(a=bg(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",jp).set("com.microsoft.playready.recommendation",jp).set("com.microsoft.playready.software",jp).set("com.microsoft.playready.hardware",jp).set("org.w3.clearkey",function(a){return(a=bg(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function np(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=
638
641
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
639
- function pp(a,b){var c=qp(a,b,"timescale"),d=1;c&&(d=mg(c)||1);var e=qp(a,b,"duration");c=mg(e||"");"image"==a.M.contentType&&(c=og(e||""));c&&(c/=d);var f=qp(a,b,"startNumber");e=Number(qp(a,b,"presentationTimeOffset"))||0;var g=ng(f||"");if(null==f||null==g)g=1;f=rp(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=$f(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],n=f[l+1],p=hg(m,"t",ng),q=hg(m,"d",ng);m=hg(m,"r",lg);null!=p&&(p-=e);if(!q)break;p=null!=p?p:k;m=m||0;if(0>
640
- m)if(n){n=hg(n,"t",ng);if(null==n)break;else if(p>=n)break;m=Math.ceil((n-p)/q)-1}else{if(Infinity==a)break;else if(p/b>=a)break;m=Math.ceil((a*b-p)/q)-1}0<h.length&&p!=k&&(h[h.length-1].end=p/b);for(n=0;n<=m;++n)k=p+q,h.push({start:p/b,end:k/b,Sh:p}),p=k}b=h}return{timescale:d,Ba:c,sc:g,ub:e/d||0,kf:e,timeline:b}}function sp(a,b){return[b(a.M),b(a.Da),b(a.ua)].filter(Pd)}function qp(a,b,c){b=sp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}
641
- function rp(a,b,c){b=sp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=Zf(d.value,c));d=b.next());return a}
642
- function tp(a,b,c,d,e,f){for(var g=dg(a,"http://www.w3.org/1999/xlink","href"),h=dg(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return ef(new K(2,4,4028));if("onLoad"!=h)return ef(new K(2,4,4027));var m=Db([d],[g]);return e.request(0,tf(m,b)).na(function(n){n=sg(n.data,a.tagName);if(!n)return ef(new K(2,4,4001,g));
643
- for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=t(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return up(a,b,c,m[0],e,f+1)})}
644
- function up(a,b,c,d,e,f){f=void 0===f?0:f;if(dg(a,"http://www.w3.org/1999/xlink","href")){var g=tp(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return up(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==dg(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(up(k,b,c,d,e,f)));return jf(g).na(function(){return a})};function vp(a,b,c,d,e,f,g){var h,k=(new Nf).S("sidx",function(l){h=wp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new K(2,3,3004);}
645
- function wp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new K(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Fb(),m=g.reader.Fb();g.reader.skip(2);var n=g.reader.Le();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.O(),q=(p&2147483648)>>>31;p&=2147483647;var v=g.reader.O();g.reader.skip(4);if(1==q)throw new K(2,3,3006);h.push(new Gi(l/k+c,(l+v)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=v;a+=p}g.parser.stop();return h};function xp(a){this.h=Kc(a);this.g=new Kf(this.h,0)}xp.prototype.Aa=function(){return this.g.Aa()};
646
- function yp(a){var b=zp(a);if(7<b.length)throw new K(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=zp(a);a:{d=t(Ap);for(var e=d.next();!e.done;e=d.next())if(Ec(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new K(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Kc(a.h,a.g.oa(),b);a.g.skip(b);return new Bp(c,
647
- d)}function zp(a){var b=a.g.oa(),c=a.g.sb();if(0==c)throw new K(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Gc(a.h,b,c)}var Ap=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Bp(a,b){this.id=a;this.g=b}
648
- function Cp(a){if(8<a.g.byteLength)throw new K(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new K(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 Dp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new xp(a.g);for(var n=null,p=null;a.Aa();){var q=yp(a);if(187==q.id){var v=Ep(q);v&&(q=c*v.Th,v=b+v.Dh,null!=n&&m.push(new Gi(n+g,q+g,l,p,v-1,f,g,h,k)),n=q,p=v)}}null!=n&&m.push(new Gi(n+g,d+g,l,p,null,f,g,h,k));return m}
649
- function Ep(a){var b=new xp(a.g);a=yp(b);if(179!=a.id)throw new K(2,3,3013);a=Cp(a);b=yp(b);if(183!=b.id)throw new K(2,3,3012);b=new xp(b.g);for(var c=0;b.Aa();){var d=yp(b);if(241==d.id){c=Cp(d);break}}return{Th:a,Dh:c}};function Fp(a,b){b=rp(a,b,"Initialization");if(!b)return null;var c=a.M.Ra,d=b.getAttribute("sourceURL");d&&(c=Db(a.M.Ra,[d]));d=0;var e=null;if(b=hg(b,"range",kg))d=b.start,e=b.end;return new Ei(function(){return c},d,e,Gp(a))}
650
- function Hp(a,b){var c=Number(qp(a,Ip,"presentationTimeOffset"))||0,d=qp(a,Ip,"timescale"),e=1;d&&(e=mg(d)||1);var f=c/e||0,g=Fp(a,Ip);Jp(a,g);var h=mf(a);return{ec:function(){var k=rp(h,Ip,"RepresentationIndex");var l=h.M.Ra;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.M.Ra,[k]));k=Kp(h);return Lp(h,b,g,l,k.start,k.end,f)}}}
651
- function Lp(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,v,w,x,z,B,A,y,E;return D(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.zb||!a.Y.xe,l=a.Y.start,m=a.Y.duration,n=a.M.mimeType.split("/")[1],p=b,q=null,v=[p(d,e,f),"webm"==n?p(c.Na(),c.Va,c.Ea):null],p=null,u(F,Promise.all(v),2);w=F.h;x=w[0];z=w[1]||null;B=null;A=l-g;y=l;E=m?l+m:Infinity;if("mp4"==n)var H=vp(x,e,d,c,A,y,E);else{H=new xp(z);if(440786851!=yp(H).id)throw new K(2,3,3008);var J=yp(H);if(408125543!=J.id)throw new K(2,3,3009);H=J.g.byteOffset;
652
- J=new xp(J.g);for(var L=null;J.Aa();){var M=yp(J);if(357149030==M.id){L=M;break}}if(!L)throw new K(2,3,3010);L=new xp(L.g);M=1E6;for(J=null;L.Aa();){var S=yp(L);if(2807729==S.id)M=Cp(S);else if(17545==S.id)if(4==S.g.byteLength)J=S.g.getFloat32(0);else if(8==S.g.byteLength)J=S.g.getFloat64(0);else throw new K(2,3,3003);}if(null==J)throw new K(2,3,3011);L=M/1E9;J*=L;M=yp(new xp(x));if(475249515!=M.id)throw new K(2,3,3007);H=Dp(M,H,L,J,d,c,A,y,E)}B=H;h.pc(B);q=new Zj(B);k&&q.Ab(y,E,!0);return F.return(q)})}
653
- function Ip(a){return a.dd}function Kp(a){var b=rp(a,Ip,"RepresentationIndex");a=qp(a,Ip,"indexRange");a=kg(a||"");b&&(a=hg(b,"range",kg,a));return a}function Jp(a,b){Mp(a,b);if(!Kp(a))throw new K(2,4,4002);}function Mp(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new K(2,4,4006);if("webm"==c&&!b)throw new K(2,4,4005);}
654
- function Gp(a){var b=a.M;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.Gd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Np(a,b){var c=Fp(a,Op),d=Pp(a);if(!d.Ba&&!d.timeline&&1<d.mc.length)throw new K(2,4,4002);if(!d.Ba&&!a.Y.duration&&!d.timeline&&1==d.mc.length)throw new K(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new K(2,4,4002);var e=null,f=null;a.ua.id&&a.M.id&&(f=b[a.ua.id+","+a.M.id])&&(e=f.segmentIndex);var g=Qp(a.Y.start,a.Y.duration,a.M.Ra,d,c);b=!e;e?e.nc(g,a.presentationTimeline.eb()):e=new Zj(g);a.presentationTimeline.pc(g);a.zb&&a.Y.xe||e.Ab(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
655
- Infinity,b);f&&(f.segmentIndex=e);return{ec:function(){e&&0!=e.g.length||e.Wc(g);return Promise.resolve(e)}}}function Op(a){return a.Gb}function Pp(a){var b=Rp(a);a=pp(a,Op);var c=a.sc;0==c&&(c=1);var d=0;a.Ba?d=a.Ba*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Ba:a.Ba,startTime:d,sc:c,ub:a.ub,timeline:a.timeline,mc:b}}
656
- function Qp(a,b,c,d,e){var f=d.mc.length;d.timeline&&d.timeline.length!=d.mc.length&&(f=Math.min(d.timeline.length,d.mc.length));for(var g=a-d.ub,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={be:m.be},n++){var p=d.mc[n];m.be=Db(c,[p.rh]);var q=void 0;q=null!=d.Ba?l+d.Ba:d.timeline?d.timeline[n].end:l+b;k.push(new Gi(a+l,a+q,function(v){return function(){return v.be}}(m),p.start,p.end,e,g,a,h));l=q}return k}
657
- function Rp(a){return[a.M.Gb,a.Da.Gb,a.ua.Gb].filter(Pd).map(function(b){return $f(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Qf&&(a.Qf=!0);var c=b.getAttribute("media");b=hg(b,"mediaRange",kg,{start:0,end:null});return{rh:c,start:b.start,end:b.end}})};function Sp(a,b,c,d,e,f){var g=Tp(a),h=Up(a);Vp(h);var k=mf(a);if(h.Sc)return Mp(a,g),{ec:function(){var q=op(h.Sc,k.M.id,null,k.bandwidth||null,null);q=Db(k.M.Ra,[q]);return Lp(k,b,g,q,0,null,h.ub)}};if(h.Ba)return d||"image"===a.Da.contentType||(a.presentationTimeline.He(h.Ba),a.presentationTimeline.Ie(a.Y.start)),{ec:function(){return Wp(k,h,e,g,f)}};var l=null;d=d=null;a.ua.id&&a.M.id&&(d=a.ua.id+","+a.M.id,d=c[d])&&(l=d.segmentIndex);var m=Xp(k,h,g);c=a.Y.start;var n=a.Y.duration?a.Y.start+a.Y.duration:
658
- Infinity,p=!(a.zb&&a.Y.xe);l?(p&&(new Zj(m)).Ab(c,n,!0),l.nc(m,a.presentationTimeline.eb())):l=new Zj(m);a.presentationTimeline.pc(m);p&&l.Ab(c,n);d&&a.zb&&(d.segmentIndex=l);return{ec:function(){l&&0!=l.g.length||l.Wc(m);return Promise.resolve(l)}}}function Yp(a){return a.ed}function Up(a){var b=pp(a,Yp),c=qp(a,Yp,"media");a=qp(a,Yp,"index");return{Ba:b.Ba,timescale:b.timescale,sc:b.sc,ub:b.ub,kf:b.kf,timeline:b.timeline,Fe:c,Sc:a}}
659
- function Vp(a){var b=a.Sc?1:0;b+=a.timeline?1:0;b+=a.Ba?1:0;if(0==b)throw new K(2,4,4002);1!=b&&(a.Sc&&(a.timeline=null),a.Ba=null);if(!a.Sc&&!a.Fe)throw new K(2,4,4002);}
660
- function Wp(a,b,c,d,e){function f(L){var M=(L-q)*p,S=M+b.ub,X=M+l;M=X+p;var ka=Math.min(M,h());X=new Gi(X,ka,function(){var Q=op(w,z,L,x,S*v);return Db(B,[Q])},0,null,d,A,l,h());X.i=M;return X}function g(){var L=[Math.max(k.eb(),l),Math.min(k.Bb(),h())].map(function(M){return M-l});return[Math.ceil(L[0]/p),Math.ceil(L[1]/p)-1].map(function(M){return M+q})}function h(){var L=null!=m&&e[m]||n;return L?l+L:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.ua.id,n=a.Y.duration,p=b.Ba,q=b.sc,v=b.timescale,
661
- w=b.Fe,x=a.bandwidth||null,z=a.M.id,B=a.M.Ra,A=l-b.ub,y=g();a=a.zb?Math.max(y[0],y[1]-c+1):y[0];y=y[1];c=[];for(var E=a;E<=y;++E){var F=f(E);c.push(F)}var H=new Zj(c);c=k.Bb()<h();E=k.T();if(c||E){var J=Math.max(a,y+1);H.Ud(p,function(){var L=k.eb();H.Lb(L);var M=t(g());M.next();M=M.next().value;for(var S=[];J<=M;){var X=f(J);S.push(X);J++}return L>h()&&!S.length?null:S})}return Promise.resolve(H)}
662
- function Xp(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={ae:h.ae,fe:h.fe,je:h.je,Yd:h.Yd,le:h.le,Zd:h.Zd},k++){var l=b.timeline[k],m=l.start,n=l.Sh;l=l.end;h.je=k+b.sc;h.le=n+b.kf;h.fe=a.M.id;h.Yd=a.bandwidth||null;h.ae=b.Fe;h.Zd=a.M.Ra;g.push(new Gi(d+m,d+l,function(p){return function(){var q=op(p.ae,p.fe,p.je,p.Yd||null,p.le);return Db(p.Zd,[q]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
663
- function Tp(a){var b=qp(a,Yp,"initialization");if(!b)return null;var c=a.M.id,d=a.bandwidth||null,e=a.M.Ra;return new Ei(function(){var f=op(b,c,null,d,null);return Db(e,[f])},0,null,Gp(a))};function Zp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Zp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
664
- function $p(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka,Q,pa,Qa,Pa,jb,ab,Ra;return D(function(Ha){if(1==Ha.g){h=Jb;for(var sa=t(b),ma=sa.next();!ma.done;ma=sa.next()){ma=ma.value;for(var xa=[],fb=t(ma.rd),U=fb.next();!U.done;U=fb.next()){U=U.value;for(var Ya=!1,Pb=t(xa),Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.channelsCount==Y.channelsCount&&U.language==Y.language&&U.bandwidth==Y.bandwidth&&U.label==Y.label&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&hc(U.roles,
665
- Y.roles)&&U.audioSamplingRate==Y.audioSamplingRate&&U.primary==Y.primary&&(Ya=!0);Ya||xa.push(U)}ma.rd=xa}sa=t(b);for(ma=sa.next();!ma.done;ma=sa.next()){ma=ma.value;xa=[];fb=t(ma.Vd);for(U=fb.next();!U.done;U=fb.next()){U=U.value;Ya=!1;Pb=t(xa);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.width==Y.width&&U.frameRate==Y.frameRate&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&U.label==Y.label&&hc(U.roles,Y.roles)&&Jf(U.closedCaptions,Y.closedCaptions)&&U.bandwidth==Y.bandwidth&&(Ya=!0);
666
- Ya||xa.push(U)}ma.Vd=xa}sa=t(b);for(ma=sa.next();!ma.done;ma=sa.next()){ma=ma.value;xa=[];fb=t(ma.textStreams);for(U=fb.next();!U.done;U=fb.next()){U=U.value;Ya=!1;Pb=t(xa);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.language==Y.language&&U.label==Y.label&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&U.bandwidth==Y.bandwidth&&hc(U.roles,Y.roles)&&(Ya=!0);Ya||xa.push(U)}ma.textStreams=xa}sa=t(b);for(ma=sa.next();!ma.done;ma=sa.next()){ma=ma.value;xa=[];fb=t(ma.imageStreams);for(U=fb.next();!U.done;U=
667
- fb.next()){U=U.value;Ya=!1;Pb=t(xa);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.width==Y.width&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&(Ya=!0);Ya||xa.push(U)}ma.imageStreams=xa}if(!c&&1==b.length)return k=b[0],a.g=k.rd,a.h=k.Vd,a.j=k.textStreams,a.i=k.imageStreams,Ha.D(2);l=-1;for(m=0;m<b.length;m++)n=b[m],a.m.has(n.id)||(a.m.add(n.id),-1==l&&(l=m));if(-1==l)return Ha.return();sa=[];ma=[];xa=[];fb=[];U=t(b);for(Ya=U.next();!Ya.done;Ya=U.next())Ya=Ya.value,sa.push(Ya.rd),ma.push(Ya.Vd),
668
- xa.push(Ya.textStreams),fb.push(Ya.imageStreams);d=sa;e=ma;f=xa;g=fb;p=d;q=e;v=f;w=g;x=t(v);for(z=x.next();!z.done;z=x.next())B=z.value,B.push(aq(h.ia));A=t(w);for(y=A.next();!y.done;y=A.next())E=y.value,E.push(aq(h.Dc));return u(Ha,Promise.all([bq(a.g,p,l,cq,dq),bq(a.h,q,l,cq,dq),bq(a.j,v,l,cq,dq),bq(a.i,w,l,cq,dq)]),2)}F=0;H=[];if(a.h.length&&a.g.length)for(ka=t(a.g),Q=ka.next();!Q.done;Q=ka.next())for(pa=Q.value,Qa=t(a.h),Pa=Qa.next();!Pa.done;Pa=Qa.next())jb=Pa.value,ab=ch(pa.drmInfos,jb.drmInfos),
669
- pa.drmInfos.length&&jb.drmInfos.length&&!ab.length||(Ra=F++,H.push({id:Ra,language:pa.language,primary:pa.primary,audio:pa,video:jb,bandwidth:(pa.bandwidth||0)+(jb.bandwidth||0),drmInfos:ab,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(J=a.h.concat(a.g),L=t(J),M=L.next();!M.done;M=L.next())S=M.value,X=F++,H.push({id:X,language:S.language,primary:S.primary,audio:S.type==h.Kb?S:null,video:S.type==h.Ia?S:null,bandwidth:S.bandwidth||0,drmInfos:S.drmInfos,allowedByApplication:!0,
670
- allowedByKeySystem:!0,decodingInfos:[]});a.l=H;C(Ha)})}
671
- function eq(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S;return D(function(X){switch(X.g){case 1:b=Jb;if(1==a.length)return X.return(a[0]);c=a.map(function(ka){return ka.filter(function(Q){return Q.type==b.Kb})});d=a.map(function(ka){return ka.filter(function(Q){return Q.type==b.Ia})});e=a.map(function(ka){return ka.filter(function(Q){return Q.type==b.ia})});f=a.map(function(ka){return ka.filter(function(Q){return Q.type==b.Dc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,
672
- k.push(fq(b.ia));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(fq(b.Dc));return u(X,bq([],c,0,gq,hq),2);case 2:return p=X.h,u(X,bq([],d,0,gq,hq),3);case 3:return q=X.h,u(X,bq([],e,0,gq,hq),4);case 4:return v=X.h,u(X,bq([],f,0,gq,hq),5);case 5:w=X.h;x=0;if(q.length&&p.length)for(E=t(p),F=E.next();!F.done;F=E.next())for(H=F.value,J=t(q),L=J.next();!L.done;L=J.next())M=L.value,S=x++,M.variantIds.push(S),H.variantIds.push(S);else for(z=q.concat(p),B=t(z),A=B.next();!A.done;A=B.next())y=A.value,
642
+ function op(a,b){var c=pp(a,b,"timescale"),d=1;c&&(d=ng(c)||1);var e=pp(a,b,"duration");c=ng(e||"");"image"==a.L.contentType&&(c=pg(e||""));c&&(c/=d);var f=pp(a,b,"startNumber");e=Number(pp(a,b,"presentationTimeOffset"))||0;var g=og(f||"");if(null==f||null==g)g=1;f=qp(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=ag(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],n=f[l+1],p=ig(m,"t",og),q=ig(m,"d",og);m=ig(m,"r",mg);null!=p&&(p-=e);if(!q)break;p=null!=p?p:k;m=m||0;if(0>
643
+ m)if(n){n=ig(n,"t",og);if(null==n)break;else if(p>=n)break;m=Math.ceil((n-p)/q)-1}else{if(Infinity==a)break;else if(p/b>=a)break;m=Math.ceil((a*b-p)/q)-1}0<h.length&&p!=k&&(h[h.length-1].end=p/b);for(n=0;n<=m;++n)k=p+q,h.push({start:p/b,end:k/b,Th:p}),p=k}b=h}return{timescale:d,Aa:c,sc:g,sb:e/d||0,jf:e,timeline:b}}function rp(a,b){return[b(a.L),b(a.Ca),b(a.sa)].filter(Qd)}function pp(a,b,c){b=rp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}
644
+ function qp(a,b,c){b=rp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=$f(d.value,c));d=b.next());return a}
645
+ function sp(a,b,c,d,e,f){for(var g=eg(a,"http://www.w3.org/1999/xlink","href"),h=eg(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return ff(new K(2,4,4028));if("onLoad"!=h)return ff(new K(2,4,4027));var m=Db([d],[g]);return e.request(0,uf(m,b)).ma(function(n){n=tg(n.data,a.tagName);if(!n)return ff(new K(2,4,4001,g));
646
+ for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=t(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return tp(a,b,c,m[0],e,f+1)})}
647
+ function tp(a,b,c,d,e,f){f=void 0===f?0:f;if(eg(a,"http://www.w3.org/1999/xlink","href")){var g=sp(a,b,c,d,e,f);c&&(g=g.ma(void 0,function(){return tp(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==eg(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(tp(k,b,c,d,e,f)));return kf(g).ma(function(){return a})};function up(a,b,c,d,e,f,g){var h,k=(new Of).S("sidx",function(l){h=vp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new K(2,3,3004);}
648
+ function vp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.O();if(0==k)throw new K(2,3,3005);if(0==g.version){var l=g.reader.O();var m=g.reader.O()}else l=g.reader.Eb(),m=g.reader.Eb();g.reader.skip(2);var n=g.reader.Ke();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.O(),q=(p&2147483648)>>>31;p&=2147483647;var v=g.reader.O();g.reader.skip(4);if(1==q)throw new K(2,3,3006);h.push(new Hi(l/k+c,(l+v)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=v;a+=p}g.parser.stop();return h};function wp(a){this.h=Kc(a);this.g=new Lf(this.h,0)}wp.prototype.za=function(){return this.g.za()};
649
+ function xp(a){var b=yp(a);if(7<b.length)throw new K(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=yp(a);a:{d=t(zp);for(var e=d.next();!e.done;e=d.next())if(Ec(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.na();else{if(8==b.length&&b[1]&224)throw new K(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.na()+b<=a.h.byteLength?b:a.h.byteLength-a.g.na();d=Kc(a.h,a.g.na(),b);a.g.skip(b);return new Ap(c,
650
+ d)}function yp(a){var b=a.g.na(),c=a.g.rb();if(0==c)throw new K(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Gc(a.h,b,c)}var zp=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Ap(a,b){this.id=a;this.g=b}
651
+ function Bp(a){if(8<a.g.byteLength)throw new K(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new K(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 Cp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new wp(a.g);for(var n=null,p=null;a.za();){var q=xp(a);if(187==q.id){var v=Dp(q);v&&(q=c*v.Uh,v=b+v.Eh,null!=n&&m.push(new Hi(n+g,q+g,l,p,v-1,f,g,h,k)),n=q,p=v)}}null!=n&&m.push(new Hi(n+g,d+g,l,p,null,f,g,h,k));return m}
652
+ function Dp(a){var b=new wp(a.g);a=xp(b);if(179!=a.id)throw new K(2,3,3013);a=Bp(a);b=xp(b);if(183!=b.id)throw new K(2,3,3012);b=new wp(b.g);for(var c=0;b.za();){var d=xp(b);if(241==d.id){c=Bp(d);break}}return{Uh:a,Eh:c}};function Ep(a,b){b=qp(a,b,"Initialization");if(!b)return null;var c=a.L.Ra,d=b.getAttribute("sourceURL");d&&(c=Db(a.L.Ra,[d]));d=0;var e=null;if(b=ig(b,"range",lg))d=b.start,e=b.end;return new Fi(function(){return c},d,e,Fp(a))}
653
+ function Gp(a,b){var c=Number(pp(a,Hp,"presentationTimeOffset"))||0,d=pp(a,Hp,"timescale"),e=1;d&&(e=ng(d)||1);var f=c/e||0,g=Ep(a,Hp);Ip(a,g);var h=nf(a);return{ec:function(){var k=qp(h,Hp,"RepresentationIndex");var l=h.L.Ra;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Ra,[k]));k=Jp(h);return Kp(h,b,g,l,k.start,k.end,f)}}}
654
+ function Kp(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,v,w,x,z,B,A,y,E;return D(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.yb||!a.Y.xe,l=a.Y.start,m=a.Y.duration,n=a.L.mimeType.split("/")[1],p=b,q=null,v=[p(d,e,f),"webm"==n?p(c.Ma(),c.Va,c.Da):null],p=null,u(F,Promise.all(v),2);w=F.h;x=w[0];z=w[1]||null;B=null;A=l-g;y=l;E=m?l+m:Infinity;if("mp4"==n)var H=up(x,e,d,c,A,y,E);else{H=new wp(z);if(440786851!=xp(H).id)throw new K(2,3,3008);var J=xp(H);if(408125543!=J.id)throw new K(2,3,3009);H=J.g.byteOffset;
655
+ J=new wp(J.g);for(var N=null;J.za();){var L=xp(J);if(357149030==L.id){N=L;break}}if(!N)throw new K(2,3,3010);N=new wp(N.g);L=1E6;for(J=null;N.za();){var O=xp(N);if(2807729==O.id)L=Bp(O);else if(17545==O.id)if(4==O.g.byteLength)J=O.g.getFloat32(0);else if(8==O.g.byteLength)J=O.g.getFloat64(0);else throw new K(2,3,3003);}if(null==J)throw new K(2,3,3011);N=L/1E9;J*=N;L=xp(new wp(x));if(475249515!=L.id)throw new K(2,3,3007);H=Cp(L,H,N,J,d,c,A,y,E)}B=H;h.pc(B);q=new ak(B);k&&q.zb(y,E,!0);return F.return(q)})}
656
+ function Hp(a){return a.cd}function Jp(a){var b=qp(a,Hp,"RepresentationIndex");a=pp(a,Hp,"indexRange");a=lg(a||"");b&&(a=ig(b,"range",lg,a));return a}function Ip(a,b){Lp(a,b);if(!Jp(a))throw new K(2,4,4002);}function Lp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new K(2,4,4006);if("webm"==c&&!b)throw new K(2,4,4005);}
657
+ function Fp(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.Gd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Mp(a,b){var c=Ep(a,Np),d=Op(a);if(!d.Aa&&!d.timeline&&1<d.mc.length)throw new K(2,4,4002);if(!d.Aa&&!a.Y.duration&&!d.timeline&&1==d.mc.length)throw new K(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new K(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=Pp(a.Y.start,a.Y.duration,a.L.Ra,d,c);b=!e;e?e.nc(g,a.presentationTimeline.eb()):e=new ak(g);a.presentationTimeline.pc(g);a.yb&&a.Y.xe||e.zb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
658
+ Infinity,b);f&&(f.segmentIndex=e);return{ec:function(){e&&0!=e.g.length||e.Wc(g);return Promise.resolve(e)}}}function Np(a){return a.Fb}function Op(a){var b=Qp(a);a=op(a,Np);var c=a.sc;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,sc:c,sb:a.sb,timeline:a.timeline,mc:b}}
659
+ function Pp(a,b,c,d,e){var f=d.mc.length;d.timeline&&d.timeline.length!=d.mc.length&&(f=Math.min(d.timeline.length,d.mc.length));for(var g=a-d.sb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={be:m.be},n++){var p=d.mc[n];m.be=Db(c,[p.sh]);var q=void 0;q=null!=d.Aa?l+d.Aa:d.timeline?d.timeline[n].end:l+b;k.push(new Hi(a+l,a+q,function(v){return function(){return v.be}}(m),p.start,p.end,e,g,a,h));l=q}return k}
660
+ function Qp(a){return[a.L.Fb,a.Ca.Fb,a.sa.Fb].filter(Qd).map(function(b){return ag(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Pf&&(a.Pf=!0);var c=b.getAttribute("media");b=ig(b,"mediaRange",lg,{start:0,end:null});return{sh:c,start:b.start,end:b.end}})};function Rp(a,b,c,d,e,f){var g=Sp(a),h=Tp(a);Up(h);var k=nf(a);if(h.Sc)return Lp(a,g),{ec:function(){var q=np(h.Sc,k.L.id,null,k.bandwidth||null,null);q=Db(k.L.Ra,[q]);return Kp(k,b,g,q,0,null,h.sb)}};if(h.Aa)return d||"image"===a.Ca.contentType||(a.presentationTimeline.Ge(h.Aa),a.presentationTimeline.He(a.Y.start)),{ec:function(){return Vp(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=Wp(k,h,g);c=a.Y.start;var n=a.Y.duration?a.Y.start+a.Y.duration:
661
+ Infinity,p=!(a.yb&&a.Y.xe);l?(p&&(new ak(m)).zb(c,n,!0),l.nc(m,a.presentationTimeline.eb())):l=new ak(m);a.presentationTimeline.pc(m);p&&l.zb(c,n);d&&a.yb&&(d.segmentIndex=l);return{ec:function(){l&&0!=l.g.length||l.Wc(m);return Promise.resolve(l)}}}function Xp(a){return a.dd}function Tp(a){var b=op(a,Xp),c=pp(a,Xp,"media");a=pp(a,Xp,"index");return{Aa:b.Aa,timescale:b.timescale,sc:b.sc,sb:b.sb,jf:b.jf,timeline:b.timeline,Fe:c,Sc:a}}
662
+ function Up(a){var b=a.Sc?1:0;b+=a.timeline?1:0;b+=a.Aa?1:0;if(0==b)throw new K(2,4,4002);1!=b&&(a.Sc&&(a.timeline=null),a.Aa=null);if(!a.Sc&&!a.Fe)throw new K(2,4,4002);}
663
+ function Vp(a,b,c,d,e){function f(L){var O=(L-q)*p,X=O+b.sb,da=O+l;O=da+p;var R=Math.min(O,h());da=new Hi(da,R,function(){var na=np(w,z,L,x,X*v);return Db(B,[na])},0,null,d,A,l,h());da.j=O;return da}function g(){var L=[Math.max(k.eb(),l),Math.min(k.Ab(),h())].map(function(O){return O-l});L=[Math.ceil(L[0]/p),Math.ceil(L[1]/p)-1];a.L.Kb&&L[1]++;return L.map(function(O){return O+q})}function h(){var L=null!=m&&e[m]||n;return L?l+L:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.sa.id,n=a.Y.duration,
664
+ p=b.Aa,q=b.sc,v=b.timescale,w=b.Fe,x=a.bandwidth||null,z=a.L.id,B=a.L.Ra,A=l-b.sb,y=g();c=a.yb?Math.max(y[0],y[1]-c+1):y[0];y=y[1];for(var E=[],F=c;F<=y;++F){var H=f(F);E.push(H)}var J=new ak(E);E=k.Ab()<h();F=k.T();if(E||F){var N=Math.max(c,y+1);J.Ud(p,function(){var L=k.eb();J.Lb(L);var O=t(g());O.next();O=O.next().value;for(var X=[];N<=O;){var da=f(N);X.push(da);N++}return L>h()&&!X.length?null:X})}return Promise.resolve(J)}
665
+ function Wp(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={ae:h.ae,fe:h.fe,je:h.je,Yd:h.Yd,le:h.le,Zd:h.Zd},k++){var l=b.timeline[k],m=l.start,n=l.Th;l=l.end;h.je=k+b.sc;h.le=n+b.jf;h.fe=a.L.id;h.Yd=a.bandwidth||null;h.ae=b.Fe;h.Zd=a.L.Ra;g.push(new Hi(d+m,d+l,function(p){return function(){var q=np(p.ae,p.fe,p.je,p.Yd||null,p.le);return Db(p.Zd,[q]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
666
+ function Sp(a){var b=pp(a,Xp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Ra;return new Fi(function(){var f=np(b,c,null,d,null);return Db(e,[f])},0,null,Fp(a))};function Yp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Yp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
667
+ function Zp(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O,X,da,R,na,Pa,Qa,eb,Za,ib;return D(function(ra){if(1==ra.g){h=Jb;for(var ta=t(b),ma=ta.next();!ma.done;ma=ta.next()){ma=ma.value;for(var ya=[],fb=t(ma.qd),U=fb.next();!U.done;U=fb.next()){U=U.value;for(var Xa=!1,Pb=t(ya),Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.channelsCount==Y.channelsCount&&U.language==Y.language&&U.bandwidth==Y.bandwidth&&U.label==Y.label&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&hc(U.roles,
668
+ Y.roles)&&U.audioSamplingRate==Y.audioSamplingRate&&U.primary==Y.primary&&(Xa=!0);Xa||ya.push(U)}ma.qd=ya}ta=t(b);for(ma=ta.next();!ma.done;ma=ta.next()){ma=ma.value;ya=[];fb=t(ma.Vd);for(U=fb.next();!U.done;U=fb.next()){U=U.value;Xa=!1;Pb=t(ya);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.width==Y.width&&U.frameRate==Y.frameRate&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&U.label==Y.label&&hc(U.roles,Y.roles)&&Kf(U.closedCaptions,Y.closedCaptions)&&U.bandwidth==Y.bandwidth&&(Xa=!0);
669
+ Xa||ya.push(U)}ma.Vd=ya}ta=t(b);for(ma=ta.next();!ma.done;ma=ta.next()){ma=ma.value;ya=[];fb=t(ma.textStreams);for(U=fb.next();!U.done;U=fb.next()){U=U.value;Xa=!1;Pb=t(ya);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.language==Y.language&&U.label==Y.label&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&U.bandwidth==Y.bandwidth&&hc(U.roles,Y.roles)&&(Xa=!0);Xa||ya.push(U)}ma.textStreams=ya}ta=t(b);for(ma=ta.next();!ma.done;ma=ta.next()){ma=ma.value;ya=[];fb=t(ma.imageStreams);for(U=fb.next();!U.done;U=
670
+ fb.next()){U=U.value;Xa=!1;Pb=t(ya);for(Y=Pb.next();!Y.done;Y=Pb.next())Y=Y.value,U.id!=Y.id&&U.width==Y.width&&U.codecs==Y.codecs&&U.mimeType==Y.mimeType&&(Xa=!0);Xa||ya.push(U)}ma.imageStreams=ya}if(!c&&1==b.length)return k=b[0],a.g=k.qd,a.h=k.Vd,a.j=k.textStreams,a.i=k.imageStreams,ra.D(2);l=-1;for(m=0;m<b.length;m++)n=b[m],a.m.has(n.id)||(a.m.add(n.id),-1==l&&(l=m));if(-1==l)return ra.return();ta=[];ma=[];ya=[];fb=[];U=t(b);for(Xa=U.next();!Xa.done;Xa=U.next())Xa=Xa.value,ta.push(Xa.qd),ma.push(Xa.Vd),
671
+ ya.push(Xa.textStreams),fb.push(Xa.imageStreams);d=ta;e=ma;f=ya;g=fb;p=d;q=e;v=f;w=g;x=t(v);for(z=x.next();!z.done;z=x.next())B=z.value,B.push($p(h.ha));A=t(w);for(y=A.next();!y.done;y=A.next())E=y.value,E.push($p(h.Dc));return u(ra,Promise.all([aq(a.g,p,l,bq,cq),aq(a.h,q,l,bq,cq),aq(a.j,v,l,bq,cq),aq(a.i,w,l,bq,cq)]),2)}F=0;H=[];if(a.h.length&&a.g.length)for(da=t(a.g),R=da.next();!R.done;R=da.next())for(na=R.value,Pa=t(a.h),Qa=Pa.next();!Qa.done;Qa=Pa.next())eb=Qa.value,Za=dh(na.drmInfos,eb.drmInfos),
672
+ na.drmInfos.length&&eb.drmInfos.length&&!Za.length||(ib=F++,H.push({id:ib,language:na.language,primary:na.primary,audio:na,video:eb,bandwidth:(na.bandwidth||0)+(eb.bandwidth||0),drmInfos:Za,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(J=a.h.concat(a.g),N=t(J),L=N.next();!L.done;L=N.next())O=L.value,X=F++,H.push({id:X,language:O.language,primary:O.primary,audio:O.type==h.Jb?O:null,video:O.type==h.Ha?O:null,bandwidth:O.bandwidth||0,drmInfos:O.drmInfos,allowedByApplication:!0,
673
+ allowedByKeySystem:!0,decodingInfos:[]});a.l=H;C(ra)})}
674
+ function dq(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O;return D(function(X){switch(X.g){case 1:b=Jb;if(1==a.length)return X.return(a[0]);c=a.map(function(da){return da.filter(function(R){return R.type==b.Jb})});d=a.map(function(da){return da.filter(function(R){return R.type==b.Ha})});e=a.map(function(da){return da.filter(function(R){return R.type==b.ha})});f=a.map(function(da){return da.filter(function(R){return R.type==b.Dc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,
675
+ k.push(eq(b.ha));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(eq(b.Dc));return u(X,aq([],c,0,fq,gq),2);case 2:return p=X.h,u(X,aq([],d,0,fq,gq),3);case 3:return q=X.h,u(X,aq([],e,0,fq,gq),4);case 4:return v=X.h,u(X,aq([],f,0,fq,gq),5);case 5:w=X.h;x=0;if(q.length&&p.length)for(E=t(p),F=E.next();!F.done;F=E.next())for(H=F.value,J=t(q),N=J.next();!N.done;N=J.next())L=N.value,O=x++,L.variantIds.push(O),H.variantIds.push(O);else for(z=q.concat(p),B=t(z),A=B.next();!A.done;A=B.next())y=A.value,
673
676
  y.variantIds=[x++];return X.return(q.concat(p).concat(v).concat(w))}})}
674
- function bq(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L;return D(function(M){switch(M.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){M.D(4);break}m=l.value;return u(M,iq(m,b,c,e,g),5);case 5:n=M.h;if(!n)throw new K(2,4,4037);l=k.next();M.D(2);break;case 4:p=t(g);for(q=p.next();!q.done;q=p.next())for(v=q.value,w=t(v),x=w.next();!x.done;x=w.next())z=x.value,(B=jq(z,b,d,e,g))&&a.push(B);A=t(g);for(q=A.next();!q.done;q=
675
- A.next())for(y=q.value,E={},F=t(y),x=F.next();!x.done;E={xb:E.xb},x=F.next())if(E.xb=x.value,H=E.xb.type==f.ia&&!E.xb.language,J=E.xb.type==f.Dc&&!E.xb.tilesLayout,!H&&!J&&(L=a.some(function(S){return function(X){return X.mimeType==S.xb.mimeType&&Bd(X.codecs)==Bd(S.xb.codecs)}}(E))))throw new K(2,4,4037);return M.return(a)}})}function iq(a,b,c,d,e){return D(function(f){if(1==f.g)return kq(b,a),a.matchedStreams?a.segmentIndex?u(f,lq(a,c),2):f.D(2):f.return(!1);mq(a,c,d,e);return f.return(!0)})}
676
- function lq(a,b){var c,d,e,f,g,h,k;return D(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return u(l,Promise.all(c),2)}if(a.segmentIndex instanceof dk)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.l.push(k.segmentIndex);C(l)})}
677
- function jq(a,b,c,d,e){var f=c(a);kq(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return D(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new dk;return u(g,lq(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;mq(f,0,d,e);return f}function mq(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==Tb(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}}
678
- function cq(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
679
- function gq(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
680
- function dq(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ha(f),ha(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=ch(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new K(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
681
- (a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=cq(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),dq(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&dq(a.trickModeVideo,b)}
682
- function hq(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ha(a.keyIds),ha(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ha(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}}
683
- function kq(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:nq,video:nq,text:oq,image:pq}[e.type],g={audio:qq,video:rq,text:sq,image:tq}[e.type],h=null;d=t(d.value);for(var k=d.next();!k.done;k=d.next())k=k.value,!f(e,k)||h&&!g(e,h,k)||(h=k);e=h;if(!e)return;c.push(e)}b.matchedStreams=c}function nq(a,b){var c;!(c=b.mimeType!=a.mimeType||Bd(b.codecs)!=Bd(a.codecs))&&(c=a.drmInfos)&&(a=a.drmInfos,b=b.drmInfos,c=!(a.length&&b.length?0<ch(a,b).length:1));return c?!1:!0}
684
- function oq(a,b){return a.language?b.language?a.forced!==b.forced||0==Tb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function pq(a){return a.tilesLayout?!0:!1}
685
- function qq(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
686
- if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=uq(a.channelsCount,b.channelsCount,c.channelsCount);if(d==vq)return!0;if(d==wq)return!1;d=uq(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==vq?!0:d==wq?!1:a.bandwidth&&xq(a.bandwidth,b.bandwidth,c.bandwidth)==vq?!0:!1}
687
- function rq(a,b,c){if(a.id==c.id)return!0;var d=uq(a.width*a.height,b.width*b.height,c.width*c.height);if(d==vq)return!0;if(d==wq)return!1;if(a.frameRate){d=uq(a.frameRate,b.frameRate,c.frameRate);if(d==vq)return!0;if(d==wq)return!1}return a.bandwidth&&xq(a.bandwidth,b.bandwidth,c.bandwidth)==vq?!0:!1}
688
- function sq(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&
689
- b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function tq(a,b,c){return a.id==c.id?!0:uq(a.width*a.height,b.width*b.height,c.width*c.height)==vq?!0:!1}
690
- function fq(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
691
- function aq(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
692
- function uq(a,b,c){if(b==a&&a!=c)return wq;if(c==a&&a!=b)return vq;if(b>a){if(c<=a||c-a<b-a)return vq;if(c-a>b-a)return wq}else{if(c>a)return wq;if(a-c<a-b)return vq;if(a-c>a-b)return wq}return yq}function xq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?vq:b<a?wq:yq}var vq=1,yq=0,wq=-1;function zq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.L={};this.j=new Zp;this.G=0;this.J=new ac(5);this.H=new N(function(){Aq(a)});this.B=new nf;this.C=null;this.K=[];this.F=Infinity;this.s=!1}r=zq.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return D(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Bq(c),2);d=e.h;c.h&&Cq(c,d);if(!c.h)throw new K(2,7,7001);return e.return(c.i)})};
693
- r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.H&&(this.H.stop(),this.H=null);return this.B.destroy()};r.update=function(){var a=this,b;return D(function(c){if(1==c.g)return wa(c,2),u(c,Bq(a),4);if(2!=c.g)return za(c,0);b=Aa(c);if(!a.h||!b)return c.return();a.h.onError(b);C(c)})};r.onExpirationUpdated=function(){};
694
- r.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.T()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.Bb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.G=b.endTime-a,Cq(this,0))}}};
695
- function Bq(a){var b,c,d,e,f,g,h;return D(function(k){if(1==k.g)return b=tf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),of(a.B,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Dq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k.return(h)})}
696
- function Dq(a,b,c){var d,e,f,g,h;return D(function(k){if(1==k.g){d=sg(b,"MPD");if(!d)throw new K(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(Eq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=up(d,a.g.retryParameters,f,c,a.h.networkingEngine);of(a.B,g);return u(k,g.promise,2)}h=k.h;return k.return(Eq(a,h,c))})}
697
- function Eq(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka,Q,pa,Qa,Pa,jb,ab;return D(function(Ra){switch(Ra.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=$f(b,"Location").map(fg).filter(Pd);0<f.length&&(g=Db(e,f),e=a.m=g);h=$f(b,"BaseURL");k=h.map(fg);l=Db(e,k);m=0;h&&h.length&&(m=hg(h[0],"availabilityTimeOffset",og)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=hg(b,"minBufferTime",jg)||0);a.G=hg(b,"minimumUpdatePeriod",jg,-1);q=hg(b,"availabilityStartTime",ig);v=hg(b,
698
- "timeShiftBufferDepth",jg);w=a.g.dash.ignoreSuggestedPresentationDelay;x=null;w||(x=hg(b,"suggestedPresentationDelay",jg));z=a.g.dash.ignoreMaxSegmentDuration;B=null;z||(B=hg(b,"maxSegmentDuration",jg));A=b.getAttribute("type")||"static";if(a.i)for(y=a.i.presentationTimeline,E=t(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.Lb(y.eb());else J=a.g.defaultPresentationDelay||1.5*p,L=null!=x?x:J,y=new O(q,L,a.g.dash.autoCorrectDrift);y.fd("static"==A);(M=y.T())&&
699
- !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);y.$e(v);S=b.getAttribute("profiles")||"";X={zb:"static"!=A,presentationTimeline:y,ua:null,Y:null,Da:null,M:null,bandwidth:0,Qf:!1,cc:m,profiles:S.split(",")};ka=Fq(a,X,l,b);Q=ka.duration;pa=ka.periods;"static"!=A&&ka.If||y.Ua(Q||Infinity);a.F&&!a.s&&(Qa=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.s=a.h.isLowLatencyMode());a.s?y.Yf(a.F):a.F&&Za("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.");
700
- y.He(B||1);return u(Ra,$p(a.j,pa,X.zb),2);case 2:a.s&&(p=0);if(a.i){a.i.variants=a.j.l;Pa=a.j.j.slice();0<Pa.length&&(a.i.textStreams=Pa);a.i.imageStreams=a.j.i;a.h.filter(a.i);Ra.D(3);break}a.i={presentationTimeline:y,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:a.g.dash.sequenceMode};if(!y.ig()){Ra.D(4);break}jb=$f(b,"UTCTiming");return u(Ra,Gq(a,l,jb),5);case 5:ab=Ra.h;if(!a.h)return Ra.return();y.Zf(ab);case 4:y.De();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
701
- C(Ra)}})}
702
- function Fq(a,b,c,d){var e=hg(d,"mediaPresentationDuration",jg),f=[],g=0;d=$f(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=hg(k,"start",jg,g),n=k.id,p=hg(k,"duration",jg),q=null;if(l){var v=hg(l,"start",jg);null!=v&&(q=v-m)}else null!=e&&(q=e-m);null==q&&(q=p);if(!(null!==a.C&&null!==n&&null!==m&&m<a.C)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.C||m>a.C)&&(a.C=m);g=Hq(a,b,c,{start:m,duration:q,node:k,xe:null==q||!l});f.push(g);b.ua.id&&q&&(a.L[b.ua.id]=q);if(null==q){g=
703
- null;break}g=m+q}}a.K=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,If:!1}:{periods:f,duration:g,If:!0}}
704
- function Hq(a,b,c,d){b.ua=Iq(d.node,null,c);b.Y=d;b.ua.cc=b.cc;b.ua.id||(b.ua.id="__shaka_period_"+d.start);var e=$f(d.node,"EventStream");c=b.presentationTimeline.eb();e=t(e);for(var f=e.next();!f.done;f=e.next())Jq(a,d.start,d.duration,f.value,c);c=$f(d.node,"AdaptationSet").map(function(m){return Kq(a,b,m)}).filter(Pd);if(b.zb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Gh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new K(2,4,4018);
705
- }d=c.filter(function(m){return!m.gf});c=c.filter(function(m){return m.gf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.gf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={nd:h.nd},l=k.next())h.nd=l.value,h.nd.trickModeVideo=e.streams.find(function(m){return function(n){return Bd(m.nd.codecs)==Bd(n.codecs)}}(h))}}}c=Lq(a.g.disableAudio,d,"audio");e=Lq(a.g.disableVideo,d,"video");f=Lq(a.g.disableText,
706
- d,Ib);d=Lq(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new K(2,4,4004);return{id:b.ua.id,rd:c,Vd:e,textStreams:f,imageStreams:d}}function Lq(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,ha(e.streams));return d},[])}
707
- function Kq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Da=Iq(c,b.ua,null);var e=!1,f=$f(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Pd),h=void 0,k=b.Da.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
708
- l}}var n;m=$f(c,"EssentialProperty");f=null;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==q?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==q?n=d(parseInt(p.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=q&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=q&&(l=!0)}m=$f(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==
709
- p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),10)));m=$f(c,"Accessibility");var v=new Map;m=t(m);for(p=m.next();!p.done;p=m.next())if(q=p.value,p=q.getAttribute("schemeIdUri"),q=q.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=q){q=q.split(";");for(var w=t(q),x=w.next();!x.done;x=w.next()){var z=x.value,B=x=void 0;z.includes("=")?(z=z.split("="),x=z[0].startsWith("CC")?z[0]:"CC"+z[0],B=z[1]||"und"):(x="CC"+p,2==q.length?p+=2:p++,B=z);v.set(x,Mb(B))}}else v.set("CC1",
710
- "und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=q)for(q=t(q.split(";")),x=q.next();!x.done;x=q.next())x=x.value,z=w=void 0,x.includes("=")?(x=x.split("="),w="svc"+x[0],z=x[1].split(",")[0].split(":").pop()):(w="svc"+p,p++,z=x),v.set(w,Mb(z));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=q&&(g.push(q),"captions"==q&&(h="caption"));if(l)return null;l=$f(c,"ContentProtection");var A=ep(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),y=Mb(c.getAttribute("lang")||"und"),
711
- E=c.getAttribute("label");(l=$f(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(E=l.textContent));l=$f(c,"Representation");c=l.map(function(F){if(F=Mq(a,b,A,h,y,E,e,g,v,F))F.hdr=F.hdr||n;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.Da.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new K(2,4,4003);}if(!b.Da.contentType||"application"==b.Da.contentType)for(b.Da.contentType=Nq(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=
712
- b.Da.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=m.value,p=t(A.drmInfos),q=p.next();!q.done;q=p.next())q=q.value,q.keyIds=q.keyIds&&m.keyIds?new Set([].concat(ha(q.keyIds),ha(m.keyIds))):q.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Pd);return{id:b.Da.id||"__fake__"+a.I++,contentType:b.Da.contentType,language:y,vj:e,streams:c,drmInfos:A.drmInfos,gf:f,Gh:k}}
713
- function Mq(a,b,c,d,e,f,g,h,k,l){b.M=Iq(l,b.Da,null);a.F=Math.min(a.F,b.M.cc);if(!Oq(b.M))return null;var m=b.Y.start;b.bandwidth=hg(l,"bandwidth",mg)||0;var n=b.M.contentType,p=n==Ib||"application"==n;n="image"==n;try{var q=function(F,H,J){return Pq(a,F,H,J)};if(b.M.dd)var v=Hp(b,q);else if(b.M.Gb)v=Np(b,a.l);else if(b.M.ed)v=Sp(b,q,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.L);else{var w=b.M.Ra,x=b.Y.duration||0;v={ec:function(){return Promise.resolve(ck(m,x,w))}}}}catch(F){if((p||n)&&4002==F.code)return null;
714
- throw F;}q=$f(l,"ContentProtection");q=hp(q,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);q=new Set(q?[q]:[]);var z=!1;$f(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.getAttribute("schemeIdUri")&&"JOC"==F.getAttribute("value")})&&(z=!0);var B=!1;p&&(B=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var A;if(n&&((l=$f(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.getAttribute("schemeIdUri"))}))&&
715
- (A=l.getAttribute("value")),!A))return null;var y;l=b.M.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"))&&(y="PQ");l=b.M.id?b.ua.id+","+b.M.id:"";var E=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.M.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){E.segmentIndex&&(E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:b.M.codecs,
716
- frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:q,language:e,label:f,type:b.Da.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:B,channelsCount:b.M.Gd,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:z,closedCaptions:k,hdr:y,tilesLayout:A,matchedStreams:[],external:!1};E.createSegmentIndex=function(){var F;return D(function(H){if(1==
717
- H.g){if(E.segmentIndex)return H.D(0);F=E;return u(H,v.ec(),3)}F.segmentIndex=H.h;C(H)})};l&&b.zb&&!a.l[l]&&(a.l[l]=E);return E}function Aq(a){var b,c;D(function(d){switch(d.g){case 1:return b=0,wa(d,2),u(d,Bq(a),4);case 4:b=d.h;za(d,3);break;case 2:c=Aa(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();Cq(a,b);C(d)}})}function Cq(a,b){0>a.G||a.H.R(Math.max(3,a.G-b,bc(a.J)))}
718
- function Iq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Gd:null,audioSamplingRate:null,cc:0};c=c||b.Ra;var d=$f(a,"BaseURL"),e=d.map(fg),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=hg(a,"frameRate",pg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=$f(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=t(m);for(var p=m.next();!p.done;p=
719
- m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=$f(a,"AudioChannelConfiguration");m=Qq(m)||b.Gd;p=hg(a,"audioSamplingRate",ng)||b.audioSamplingRate;f||(f=Nq(g,h));var q=Zf(a,"SegmentBase"),v=Zf(a,"SegmentTemplate"),w=q?hg(q,"availabilityTimeOffset",og)||0:0,x=v?hg(v,"availabilityTimeOffset",og)||0:0;d=d&&d.length?hg(d[0],"availabilityTimeOffset",og)||0:0;d=b.cc+d+w+x;return{Ra:Db(c,e),dd:q||b.dd,Gb:Zf(a,"SegmentList")||b.Gb,ed:v||b.ed,width:hg(a,"width",ng)||b.width,height:hg(a,
720
- "height",ng)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),Gd:m,audioSamplingRate:p,cc:d}}
721
- function Qq(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
722
- 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 Oq(a){var b=a.dd?1:0;b+=a.Gb?1:0;b+=a.ed?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.dd&&(a.Gb=null),a.ed=null);return!0}
723
- function Rq(a,b,c,d){var e,f,g,h,k,l;return D(function(m){if(1==m.g)return e=Db(b,[c]),f=tf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),of(a.B,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=cd(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
724
- function Gq(a,b,c){var d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;wa(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.D(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.D(8);
725
- case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Za("NTP UTCTiming scheme is not supported");break;default:Za("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return u(n,Rq(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return u(n,Rq(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:za(n,
726
- 3);break;case 5:Aa(n);case 3:g=f.next();n.D(2);break;case 4:return Za("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
727
- function Jq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=hg(d,"timescale",ng)||1;d=t($f(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=hg(k,"presentationTime",ng)||0,m=hg(k,"duration",ng)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
728
- function Pq(a,b,c,d){var e,f,g,h,k;return D(function(l){if(1==l.g)return e=zf,f=Mk(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),of(a.B,h),u(l,h.promise,2);k=l.h;return l.return(k.data)})}function Nq(a,b){return Fd(zd(a,b))?Ib:a.split("/")[0]}G("shaka.dash.DashParser",zq);ih.mpd=function(){return new zq};gh["application/dash+xml"]=function(){return new zq};gh["video/vnd.mpeg.dash.mpd"]=function(){return new zq};function Sq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function Tq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Tq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
729
- Tq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function V(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Uq(a,b){a=a.getAttribute(b);if(!a)throw new K(2,4,4023,b);return a.value}function Vq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function Wq(a,b){this.name=a;this.value=b};function Xq(a,b){return a.filter(function(c){return c.name==b})}function Yq(a,b){return a.filter(function(c){return Uq(c,"TYPE")==b})}function Zq(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function $q(a,b){var c=0;c=void 0===c?0:c;return(a=Zq(a,b))?Number(a.value):c}function ar(a,b){return Db([a],[b])[0]};function br(a){this.h=a;this.g=0}function cr(a){dr(a,/[ \t]+/gm)}function dr(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function er(a){return a.g==a.h.length?null:(a=dr(a,/[^ \t\n]*/gm))?a[0]:null};function fr(){this.g=0}
730
- function gr(a,b,c){b=cd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new K(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=hr(a,g),--a.g,ir.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=hr(a,h);if(jr.includes(h.name)){if(1!=b)throw new K(2,4,4017);
731
- var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=hr(a,m),ir.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==V(m,"TYPE")?null!=V(m,"BYTERANGE-START")?null!=V(m,"BYTERANGE-LENGTH")&&k.push(m):k.push(m):"MAP"==V(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=ar(d,m.trim()),h&&g.push(h),e.push(new Vq(m,g,k)),g=[],k=[]);k.length&&
732
- (h&&g.push(h),e.push(new Vq("",g,k)));return new Sq(c,b,f,e)}f.push(h);"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Wq("URI",k)),e=!0)}}return new Sq(c,b,f)}function hr(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new K(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new br(d);var f;(f=dr(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=dr(d,g);)c.push(new Wq(f[1],f[2]||f[3])),cr(d)}return new Tq(a,b,c,e)}
733
- var ir="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),jr="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function kr(){}function lr(a){try{var b=mr(a);return gf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return ef(c)}}
734
- function mr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new K(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new K(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=ld(a):e=gd(a);return{data:e,contentType:c}}G("shaka.net.DataUriPlugin",kr);kr.parse=lr;qf("data",lr);function nr(){var a=this;this.g=this.j=null;this.wa=1;this.s=new Map;this.F=new Map;this.I=new Map;this.I.set("video",new Map);this.I.set("audio",new Map);this.I.set(Ib,new Map);this.I.set("image",new Map);this.ra=new Set;this.h=new Map;this.i=null;this.U="";this.va=new fr;this.Z=0;this.G=-1;this.K=Infinity;this.xa=!1;this.m=new N(function(){or(a)});this.X=pr;this.H=null;this.aa=0;this.L=Infinity;this.$=this.ea=0;this.J=new nf;this.B=new Map;this.C=new Map;this.P=new Map;this.N=new Map;this.l=!1}
735
- r=nr.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return D(function(e){return 1==e.g?(c.j=b,c.l=b.isLowLatencyMode(),u(e,qr(c,a),2)):3!=e.g?(d=e.h,c.U=d.uri,u(e,rr(c,d.data,a),3)):e.return(c.H)})};r.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.J&&(a.push(this.J.destroy()),this.J=null);this.g=this.j=null;this.ra.clear();this.H=null;this.h.clear();this.F.clear();this.C.clear();this.s.clear();this.P.clear();this.N.clear();return Promise.all(a)};
736
- r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return D(function(m){if(1==m.g){if(!sr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(tr(a,g));return u(m,Promise.all(b),2)}ur(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Pc});d.length&&!h&&(k=vr,wr(a,k.mg),l=d.map(function(n){return n.qb}),a.i.Ua(Math.min.apply(Math,ha(l))),a.j.updateDuration());h&&xr(a);
737
- C(m)})};function yr(a,b){return sr(a)?a.I.get(b.type):b.Fd}
738
- function tr(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){if(1==y.g)return c=b.pd,d=new pb(c),a.l&&b.td&&sb(d,new ub("_HLS_skip=YES")),u(y,qr(a,d.toString()),2);e=y.h;if(!b.stream.segmentIndex)return y.return();f=gr(a.va,e.data,e.uri);if(1!=f.type)throw new K(2,4,4017);g=Xq(f.g,"EXT-X-DEFINE");h=zr(a,g);k=b.stream;l=yr(a,b);m=Ar(f,k.mimeType);n=m.keyIds;p=m.drmInfos;q=function(E,F){return E.size===F.size&&[].concat(ha(E)).every(function(H){return F.has(H)})};q(k.keyIds,n)||(k.keyIds=
739
- n,k.drmInfos=p,a.j.newDrmInfo(k));v=Br(a,f,k.type,l,h);k.segmentIndex.nc(v,a.i.eb());v.length&&(w=$q(f.g,"EXT-X-MEDIA-SEQUENCE"),x=l.get(w),k.segmentIndex.Lb(x));z=v[0];b.Tb=z.startTime;B=v[v.length-1];b.qb=B.endTime;if(A=Zq(f.g,"EXT-X-ENDLIST"))b.Pc=!0;C(y)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};
740
- function Cr(a,b){for(var c=-1==a.G,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=yr(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.G=Math.max(a.G,k));e.ue=k;break}}}}if(!(0>a.G))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.G-c.ue),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),Dr(a,c,d)}
741
- function Er(a,b){if(Infinity==a.K){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.ba&&(a.K=Math.min(a.K,d.ba))}}b=a.K;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.ba)Xa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.gd,"Expect AV sync issues!");else for(Dr(a,c,f.ba-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.cf(b)}}}
742
- function Dr(a,b,c){b.Tb+=c;b.qb+=c;a=yr(a,b);b=t(a);for(var d=b.next();!d.done;d=b.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
743
- function rr(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka,Q,pa,Qa,Pa,jb;return D(function(ab){switch(ab.g){case 1:d=gr(a.va,b,a.U);e=Xq(d.g,"EXT-X-DEFINE");for(var Ra=t(e),Ha=Ra.next();!Ha.done;Ha=Ra.next()){var sa=Ha.value;Ha=V(sa,"NAME");sa=V(sa,"VALUE");Ha&&sa&&(a.s.has(Ha)||a.s.set(Ha,sa))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new pb(d.segments[0].i),J=H.Ka.split(".").pop(),(L=Fr[J])?F=L:"ts"!==J&&"mp4"!==J&&(Gr[J]?(L=
744
- Gr[J],M=a.g.hls.defaultAudioCodec,F=L+'; codecs="'+M+'"'):Hr[J]&&(L=Hr[J],S=a.g.hls.defaultVideoCodec,F=L+'; codecs="'+S+'"'))),X=F.split(";")[0],ka=X.split("/")[0],Q=Dd(F),pa=new Map,u(ab,Ir(a,d,c,c,Q,ka,"",!0,"Media Playlist",null,pa,null,!1,!1,X),5);k=Xq(d.g,"EXT-X-MEDIA");l=Xq(d.g,"EXT-X-STREAM-INF");m=Xq(d.g,"EXT-X-IMAGE-STREAM-INF");n=Xq(d.g,"EXT-X-SESSION-KEY");Ra=t(l);for(Ha=Ra.next();!Ha.done;Ha=Ra.next()){var ma=Ha.value;sa=V(ma,"AUDIO");Ha=V(ma,"VIDEO");var xa=V(ma,"SUBTITLES");ma=Jr(a,
745
- ma);if(xa){var fb=Gb(Ib,ma);a.C.set(xa,fb);gc(ma,fb)}sa&&(xa=Gb("audio",ma),xa||(xa=a.g.hls.defaultAudioCodec),a.C.set(sa,xa));Ha&&(sa=Gb("video",ma),sa||(sa=a.g.hls.defaultVideoCodec),a.C.set(Ha,sa))}p=Xq(d.g,"EXT-X-SESSION-DATA");q=t(p);for(v=q.next();!v.done;v=q.next())if(w=v.value,x=V(w,"DATA-ID"),z=V(w,"URI"),B=V(w,"LANGUAGE"),A=V(w,"VALUE"),y=(new Map).set("id",x),z&&y.set("uri",ar(a.U,z)),B&&y.set("language",B),A&&y.set("value",A),E=new I("sessiondata",y),a.j)a.j.onEvent(E);Kr(a,k);Ra=Yq(k,
746
- "CLOSED-CAPTIONS");Ra=t(Ra);for(Ha=Ra.next();!Ha.done;Ha=Ra.next())sa=Ha.value,xa=V(sa,"LANGUAGE"),Ha=Lr(sa),xa||(xa=V(sa,"NAME"))&&(Ha=xa),xa=Uq(sa,"GROUP-ID"),sa=Uq(sa,"INSTREAM-ID").replace("SERVICE","svc"),a.B.get(xa)||a.B.set(xa,new Map),a.B.get(xa).set(sa,Ha);f=Mr(a,l,n);g=Nr(a,k);return u(ab,Or(a,m),4);case 4:h=ab.h;ab.D(3);break;case 5:Qa=ab.h,a.h.set(c,Qa),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==ka?Qa.stream:null,video:"video"==ka?Qa.stream:null,bandwidth:0,
747
- allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.j)throw new K(2,7,7001);a.i=new O(null,0);a.i.fd(!0);1==d.type&&(sr(a)&&(Pr(a,d),Pa=a.Z,a.m.R(Pa)),jb=Array.from(a.h.values()),Qr(a,jb),xr(a));a.H={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.H);C(ab)}})}
748
- function xr(a){if(sr(a)){a.Z=a.L;if(a.X==Rr){var b=Sr(a);a.g.hls.useSafariBehaviorForLive&&(b=a.i.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.i.$e(b)}if(!a.i.B){b=Array.from(a.h.values()).filter(function(d){return d.stream.segmentIndex});b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,("audio"==c.type||"video"==c.type)&&(c=c.stream.segmentIndex.get(0))&&c.ba&&a.i.Xe(c.ba)}}else a.i.Ua(Tr(a));a.i.De()}
749
- function zr(a,b){var c=new Map;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=V(e,"NAME");var f=V(e,"VALUE");e=V(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.s.get(e))&&c.set(e,d)}return c}
750
- function Nr(a,b){var c=Yq(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Ur(a,g).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Uq(d.value,"GROUP-ID");if(d=a.C.get(e))if(e=a.F.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Vr(Ib,d)||Wr(Ib)}}return b.filter(function(g){return g})}
751
- function Or(a,b){var c,d;return D(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return D(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);wa(l,2);return u(l,Xr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=Aa(l);if(a.g.hls.ignoreImageStreamFailures)return l.return(null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e.return(d.filter(function(f){return f}))})}
752
- function Kr(a,b){b=b.filter(function(d){var e=V(d,"URI")||"";return"SUBTITLES"!=V(d,"TYPE")&&""!=e});b=t(b);for(var c=b.next();!c.done;c=b.next())Ur(a,c.value)}
753
- function Mr(a,b,c){var d=[],e=new Set;if(0<c.length){c=t(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Uq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=V(f,"KEYFORMAT")||"identity",f=(g=Yr[g])?g(f,""):null)){if(f.keyIds){g=t(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=V(k,"FRAME-RATE"),m=Number(V(k,"AVERAGE-BANDWIDTH"))||Number(Uq(k,"BANDWIDTH")),n=V(k,"RESOLUTION");n=t(n?n.split("x"):[null,null]);var p=n.next().value,q=n.next().value,
754
- v=V(k,"VIDEO-RANGE");k=Zr(a,k);n=k.audio;k=k.video;for(var w=t(k),x=w.next();!x.done;x=w.next())if(x=x.value.stream)x.width=Number(p)||void 0,x.height=Number(q)||void 0,x.frameRate=Number(l)||void 0,x.hdr=v||void 0;l=a.g.disableAudio;if(!n.length||l)n=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];n=t(n);for(p=n.next();!p.done;p=n.next())for(p=p.value,q=t(k),v=q.next();!v.done;v=q.next()){var z=v.value;if(v=p?p.stream:null)v.drmInfos=d,v.keyIds=e;if(w=z?z.stream:null)w.drmInfos=d,w.keyIds=
755
- e;x=p?p.stream.drmInfos:null;var B=z?z.stream.drmInfos:null;z=(z?z.gd:"")+" - "+(p?p.gd:"");v&&w&&x.length&&B.length&&!(0<ch(x,B).length)||a.ra.has(z)||(v={id:a.wa++,language:v?v.language:"und",primary:!!v&&v.primary||!!w&&w.primary,audio:v,video:w,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.ra.add(z))}return l}).reduce(Nd,[]);return b=b.filter(function(k){return null!=k})}
756
- function Zr(a,b){var c=Jr(a,b),d=V(b,"AUDIO"),e=V(b,"VIDEO"),f=d||e;f=f&&a.F.has(f)?a.F.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Uq(b,"URI"),h=d.audio.find(function(m){return m&&m.gd==g}),k=Gb("video",c),l=Gb("audio",c);l&&!k?(f="audio",e=0<d.audio.length):!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=$r(a,b,c,f),d[a.stream.type]=[a]);return d}
757
- function Jr(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);c=V(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Cd(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function Lr(a){a=V(a,"LANGUAGE")||"und";return Mb(a)}
758
- function Ur(a,b){var c=Uq(b,"GROUP-ID"),d="",e=Uq(b,"TYPE").toLowerCase();"subtitles"==e&&(e=Ib);var f=e;f==Ib?d=V(b,"CODECS")||"":c&&a.C.has(c)&&(d=a.C.get(c));e=as(Uq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);var g=Lr(b),h=V(b,"NAME"),k="YES"==V(b,"DEFAULT");var l="audio"==f?(l=V(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=V(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var n=V(b,"CHARACTERISTICS");b="YES"==V(b,"FORCED");d=bs(a,e,d,f,g,k,h,l,null,n,b,m);a.F.has(c)?a.F.get(c).push(d):
677
+ function aq(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N;return D(function(L){switch(L.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){L.D(4);break}m=l.value;return u(L,hq(m,b,c,e,g),5);case 5:n=L.h;if(!n)throw new K(2,4,4037);l=k.next();L.D(2);break;case 4:p=t(g);for(q=p.next();!q.done;q=p.next())for(v=q.value,w=t(v),x=w.next();!x.done;x=w.next())z=x.value,(B=iq(z,b,d,e,g))&&a.push(B);A=t(g);for(q=A.next();!q.done;q=
678
+ A.next())for(y=q.value,E={},F=t(y),x=F.next();!x.done;E={wb:E.wb},x=F.next())if(E.wb=x.value,H=E.wb.type==f.ha&&!E.wb.language,J=E.wb.type==f.Dc&&!E.wb.tilesLayout,!H&&!J&&(N=a.some(function(O){return function(X){return X.mimeType==O.wb.mimeType&&Bd(X.codecs)==Bd(O.wb.codecs)}}(E))))throw new K(2,4,4037);return L.return(a)}})}function hq(a,b,c,d,e){return D(function(f){if(1==f.g)return jq(b,a),a.matchedStreams?a.segmentIndex?u(f,kq(a,c),2):f.D(2):f.return(!1);lq(a,c,d,e);return f.return(!0)})}
679
+ function kq(a,b){var c,d,e,f,g,h,k;return D(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return u(l,Promise.all(c),2)}if(a.segmentIndex instanceof dk)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.i.push(k.segmentIndex);C(l)})}
680
+ function iq(a,b,c,d,e){var f=c(a);jq(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return D(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new dk;return u(g,kq(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;lq(f,0,d,e);return f}function lq(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==Tb(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}}
681
+ function bq(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
682
+ function fq(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
683
+ function cq(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=dh(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new K(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
684
+ (a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=bq(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),cq(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&cq(a.trickModeVideo,b)}
685
+ function gq(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;a.closedCaptions.set(c,d)}}
686
+ function jq(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=b,f={audio:mq,video:mq,text:nq,image:oq}[e.type],g={audio:pq,video:qq,text:rq,image:sq}[e.type],h=null;d=t(d.value);for(var k=d.next();!k.done;k=d.next())k=k.value,!f(e,k)||h&&!g(e,h,k)||(h=k);e=h;if(!e)return;c.push(e)}b.matchedStreams=c}function mq(a,b){var c;!(c=b.mimeType!=a.mimeType||Bd(b.codecs)!=Bd(a.codecs))&&(c=a.drmInfos)&&(a=a.drmInfos,b=b.drmInfos,c=!(a.length&&b.length?0<dh(a,b).length:1));return c?!1:!0}
687
+ function nq(a,b){return a.language?b.language?a.forced!==b.forced||0==Tb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function oq(a){return a.tilesLayout?!0:!1}
688
+ function pq(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
689
+ if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=tq(a.channelsCount,b.channelsCount,c.channelsCount);if(d==uq)return!0;if(d==vq)return!1;d=tq(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==uq?!0:d==vq?!1:a.bandwidth&&wq(a.bandwidth,b.bandwidth,c.bandwidth)==uq?!0:!1}
690
+ function qq(a,b,c){if(a.id==c.id)return!0;var d=tq(a.width*a.height,b.width*b.height,c.width*c.height);if(d==uq)return!0;if(d==vq)return!1;if(a.frameRate){d=tq(a.frameRate,b.frameRate,c.frameRate);if(d==uq)return!0;if(d==vq)return!1}return a.bandwidth&&wq(a.bandwidth,b.bandwidth,c.bandwidth)==uq?!0:!1}
691
+ function rq(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&
692
+ b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function sq(a,b,c){return a.id==c.id?!0:tq(a.width*a.height,b.width*b.height,c.width*c.height)==uq?!0:!1}
693
+ function eq(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
694
+ function $p(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ak([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
695
+ function tq(a,b,c){if(b==a&&a!=c)return vq;if(c==a&&a!=b)return uq;if(b>a){if(c<=a||c-a<b-a)return uq;if(c-a>b-a)return vq}else{if(c>a)return vq;if(a-c<a-b)return uq;if(a-c>a-b)return vq}return xq}function wq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?uq:b<a?vq:xq}var uq=1,xq=0,vq=-1;function yq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.M={};this.j=new Yp;this.G=0;this.J=new ac(5);this.H=new M(function(){zq(a)});this.B=new of;this.C=null;this.K=[];this.F=Infinity;this.s=!1}r=yq.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return D(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Aq(c),2);d=e.h;c.h&&Bq(c,d);if(!c.h)throw new K(2,7,7001);return e.return(c.i)})};
696
+ r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.H&&(this.H.stop(),this.H=null);return this.B.destroy()};r.update=function(){var a=this,b;return D(function(c){if(1==c.g)return xa(c,2),u(c,Aq(a),4);if(2!=c.g)return Aa(c,0);b=Ba(c);if(!a.h||!b)return c.return();a.h.onError(b);C(c)})};r.onExpirationUpdated=function(){};
697
+ r.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.T()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.Ab();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.G=b.endTime-a,Bq(this,0))}}};
698
+ function Aq(a){var b,c,d,e,f,g,h;return D(function(k){if(1==k.g)return b=uf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),pf(a.B,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Cq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k.return(h)})}
699
+ function Cq(a,b,c){var d,e,f,g,h;return D(function(k){if(1==k.g){d=tg(b,"MPD");if(!d)throw new K(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(Dq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=tp(d,a.g.retryParameters,f,c,a.h.networkingEngine);pf(a.B,g);return u(k,g.promise,2)}h=k.h;return k.return(Dq(a,h,c))})}
700
+ function Dq(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O,X,da,R,na,Pa,Qa,eb,Za,ib;return D(function(ra){switch(ra.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=ag(b,"Location").map(gg).filter(Qd);0<f.length&&(g=Db(e,f),e=a.m=g);h=ag(b,"BaseURL");k=h.map(gg);l=Db(e,k);m=0;h&&h.length&&(m=ig(h[0],"availabilityTimeOffset",pg)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=ig(b,"minBufferTime",kg)||0);a.G=ig(b,"minimumUpdatePeriod",kg,-1);q=ig(b,"availabilityStartTime",jg);v=
701
+ ig(b,"timeShiftBufferDepth",kg);w=a.g.dash.ignoreSuggestedPresentationDelay;x=null;w||(x=ig(b,"suggestedPresentationDelay",kg));z=a.g.dash.ignoreMaxSegmentDuration;B=null;z||(B=ig(b,"maxSegmentDuration",kg));A=b.getAttribute("type")||"static";if(a.i)for(y=a.i.presentationTimeline,E=t(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.Lb(y.eb());else J=a.g.defaultPresentationDelay||1.5*p,N=null!=x?x:J,y=new P(q,N,a.g.dash.autoCorrectDrift);y.ed("static"==A);
702
+ (L=y.T())&&!isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);y.Ze(v);O=b.getAttribute("profiles")||"";X={yb:"static"!=A,presentationTimeline:y,sa:null,Y:null,Ca:null,L:null,bandwidth:0,Pf:!1,Kb:m,profiles:O.split(",")};da=Eq(a,X,l,b);R=da.duration;na=da.periods;"static"!=A&&da.Hf||y.Ua(R||Infinity);a.F&&!a.s&&(Pa=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.s=a.h.isLowLatencyMode());a.s?y.Xf(a.F):a.F&&Ya("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.");
703
+ y.Ge(B||1);return u(ra,Zp(a.j,na,X.yb),2);case 2:a.s&&(p=0,Qa=null!=x?x:a.g.defaultPresentationDelay,y.Te(Qa));if(a.i){a.i.variants=a.j.l;eb=a.j.j.slice();0<eb.length&&(a.i.textStreams=eb);a.i.imageStreams=a.j.i;a.h.filter(a.i);ra.D(3);break}a.i={presentationTimeline:y,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:a.g.dash.sequenceMode};if(!y.ig()){ra.D(4);break}Za=ag(b,"UTCTiming");return u(ra,Fq(a,l,Za),5);case 5:ib=ra.h;if(!a.h)return ra.return();
704
+ y.Yf(ib);case 4:y.De();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),C(ra)}})}
705
+ function Eq(a,b,c,d){var e=ig(d,"mediaPresentationDuration",kg),f=[],g=0;d=ag(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=ig(k,"start",kg,g),n=k.id,p=ig(k,"duration",kg),q=null;if(l){var v=ig(l,"start",kg);null!=v&&(q=v-m)}else null!=e&&(q=e-m);null==q&&(q=p);if(!(null!==a.C&&null!==n&&null!==m&&m<a.C)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.C||m>a.C)&&(a.C=m);g=Gq(a,b,c,{start:m,duration:q,node:k,xe:null==q||!l});f.push(g);b.sa.id&&q&&(a.M[b.sa.id]=q);if(null==q){g=
706
+ null;break}g=m+q}}a.K=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,Hf:!1}:{periods:f,duration:g,Hf:!0}}
707
+ function Gq(a,b,c,d){b.sa=Hq(d.node,null,c);b.Y=d;b.sa.Kb=b.Kb;b.sa.id||(b.sa.id="__shaka_period_"+d.start);var e=ag(d.node,"EventStream");c=b.presentationTimeline.eb();e=t(e);for(var f=e.next();!f.done;f=e.next())Iq(a,d.start,d.duration,f.value,c);c=ag(d.node,"AdaptationSet").map(function(m){return Jq(a,b,m)}).filter(Qd);if(b.yb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Hh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new K(2,4,4018);
708
+ }d=c.filter(function(m){return!m.ef});c=c.filter(function(m){return m.ef});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ef.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={md:h.md},l=k.next())h.md=l.value,h.md.trickModeVideo=e.streams.find(function(m){return function(n){return Bd(m.md.codecs)==Bd(n.codecs)}}(h))}}}c=Kq(a.g.disableAudio,d,"audio");e=Kq(a.g.disableVideo,d,"video");f=Kq(a.g.disableText,
709
+ d,Ib);d=Kq(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new K(2,4,4004);return{id:b.sa.id,qd:c,Vd:e,textStreams:f,imageStreams:d}}function Kq(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,ia(e.streams));return d},[])}
710
+ function Jq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Ca=Hq(c,b.sa,null);var e=!1,f=ag(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Qd),h=void 0,k=b.Ca.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
711
+ l}}var n;m=ag(c,"EssentialProperty");f=null;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==q?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==q?n=d(parseInt(p.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=q&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=q&&(l=!0)}m=ag(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==
712
+ p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),10)));m=ag(c,"Accessibility");var v=new Map;m=t(m);for(p=m.next();!p.done;p=m.next())if(q=p.value,p=q.getAttribute("schemeIdUri"),q=q.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=q){q=q.split(";");for(var w=t(q),x=w.next();!x.done;x=w.next()){var z=x.value,B=x=void 0;z.includes("=")?(z=z.split("="),x=z[0].startsWith("CC")?z[0]:"CC"+z[0],B=z[1]||"und"):(x="CC"+p,2==q.length?p+=2:p++,B=z);v.set(x,Mb(B))}}else v.set("CC1",
713
+ "und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=q)for(q=t(q.split(";")),x=q.next();!x.done;x=q.next())x=x.value,z=w=void 0,x.includes("=")?(x=x.split("="),w="svc"+x[0],z=x[1].split(",")[0].split(":").pop()):(w="svc"+p,p++,z=x),v.set(w,Mb(z));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=q&&(g.push(q),"captions"==q&&(h="caption"));if(l)return null;l=ag(c,"ContentProtection");var A=dp(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),y=Mb(c.getAttribute("lang")||"und"),
714
+ E=c.getAttribute("label");(l=ag(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(E=l.textContent));l=ag(c,"Representation");c=l.map(function(F){if(F=Lq(a,b,A,h,y,E,e,g,v,F))F.hdr=F.hdr||n;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.Ca.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new K(2,4,4003);}if(!b.Ca.contentType||"application"==b.Ca.contentType)for(b.Ca.contentType=Mq(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=
715
+ b.Ca.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=m.value,p=t(A.drmInfos),q=p.next();!q.done;q=p.next())q=q.value,q.keyIds=q.keyIds&&m.keyIds?new Set([].concat(ia(q.keyIds),ia(m.keyIds))):q.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Qd);return{id:b.Ca.id||"__fake__"+a.I++,contentType:b.Ca.contentType,language:y,wj:e,streams:c,drmInfos:A.drmInfos,ef:f,Hh:k}}
716
+ function Lq(a,b,c,d,e,f,g,h,k,l){b.L=Hq(l,b.Ca,null);a.F=Math.min(a.F,b.L.Kb);if(!Nq(b.L))return null;var m=b.Y.start;b.bandwidth=ig(l,"bandwidth",ng)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var q=function(F,H,J){return Oq(a,F,H,J)};if(b.L.cd)var v=Gp(b,q);else if(b.L.Fb)v=Mp(b,a.l);else if(b.L.dd)v=Rp(b,q,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var w=b.L.Ra,x=b.Y.duration||0;v={ec:function(){return Promise.resolve(ck(m,x,w))}}}}catch(F){if((p||n)&&4002==F.code)return null;
717
+ throw F;}q=ag(l,"ContentProtection");q=gp(q,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);q=new Set(q?[q]:[]);var z=!1;ag(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.getAttribute("schemeIdUri")&&"JOC"==F.getAttribute("value")})&&(z=!0);var B=!1;p&&(B=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var A;if(n&&((l=ag(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.getAttribute("schemeIdUri"))}))&&
718
+ (A=l.getAttribute("value")),!A))return null;var y;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"))&&(y="PQ");l=b.L.id?b.sa.id+","+b.L.id:"";var E=l&&a.l[l]?a.l[l]:{id:a.I++,originalId:b.L.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){E.segmentIndex&&(E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,
719
+ 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:q,language:e,label:f,type:b.Ca.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:B,channelsCount:b.L.Gd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:z,closedCaptions:k,hdr:y,tilesLayout:A,matchedStreams:[],external:!1};E.createSegmentIndex=function(){var F;return D(function(H){if(1==
720
+ H.g){if(E.segmentIndex)return H.D(0);F=E;return u(H,v.ec(),3)}F.segmentIndex=H.h;C(H)})};l&&b.yb&&!a.l[l]&&(a.l[l]=E);return E}function zq(a){var b,c;D(function(d){switch(d.g){case 1:return b=0,xa(d,2),u(d,Aq(a),4);case 4:b=d.h;Aa(d,3);break;case 2:c=Ba(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();Bq(a,b);C(d)}})}function Bq(a,b){0>a.G||a.H.R(Math.max(3,a.G-b,bc(a.J)))}
721
+ function Hq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Gd:null,audioSamplingRate:null,Kb:0};c=c||b.Ra;var d=ag(a,"BaseURL"),e=d.map(gg),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=ig(a,"frameRate",qg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=ag(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=t(m);for(var p=m.next();!p.done;p=
722
+ m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=ag(a,"AudioChannelConfiguration");m=Pq(m)||b.Gd;p=ig(a,"audioSamplingRate",og)||b.audioSamplingRate;f||(f=Mq(g,h));var q=$f(a,"SegmentBase"),v=$f(a,"SegmentTemplate"),w=q?ig(q,"availabilityTimeOffset",pg)||0:0,x=v?ig(v,"availabilityTimeOffset",pg)||0:0;d=d&&d.length?ig(d[0],"availabilityTimeOffset",pg)||0:0;d=b.Kb+d+w+x;return{Ra:Db(c,e),cd:q||b.cd,Fb:$f(a,"SegmentList")||b.Fb,dd:v||b.dd,width:ig(a,"width",og)||b.width,height:ig(a,
723
+ "height",og)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),Gd:m,audioSamplingRate:p,Kb:d}}
724
+ function Pq(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
725
+ 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 Nq(a){var b=a.cd?1:0;b+=a.Fb?1:0;b+=a.dd?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.cd&&(a.Fb=null),a.dd=null);return!0}
726
+ function Qq(a,b,c,d){var e,f,g,h,k,l;return D(function(m){if(1==m.g)return e=Db(b,[c]),f=uf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),pf(a.B,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=cd(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
727
+ function Fq(a,b,c){var d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;xa(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.D(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.D(8);
728
+ case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ya("NTP UTCTiming scheme is not supported");break;default:Ya("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return u(n,Qq(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return u(n,Qq(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:Aa(n,
729
+ 3);break;case 5:Ba(n);case 3:g=f.next();n.D(2);break;case 4:return Ya("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
730
+ function Iq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=ig(d,"timescale",og)||1;d=t(ag(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=ig(k,"presentationTime",og)||0,m=ig(k,"duration",og)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
731
+ function Oq(a,b,c,d){var e,f,g,h,k;return D(function(l){if(1==l.g)return e=Af,f=Mk(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),pf(a.B,h),u(l,h.promise,2);k=l.h;return l.return(k.data)})}function Mq(a,b){return Gd(zd(a,b))?Ib:a.split("/")[0]}G("shaka.dash.DashParser",yq);jh.mpd=function(){return new yq};hh["application/dash+xml"]=function(){return new yq};hh["video/vnd.mpeg.dash.mpd"]=function(){return new yq};function Rq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function Sq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Sq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
732
+ Sq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function V(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Tq(a,b){a=a.getAttribute(b);if(!a)throw new K(2,4,4023,b);return a.value}function Uq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function Vq(a,b){this.name=a;this.value=b};function Wq(a,b){return a.filter(function(c){return c.name==b})}function Xq(a,b){return a.filter(function(c){return Tq(c,"TYPE")==b})}function Yq(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Zq(a,b){var c=0;c=void 0===c?0:c;return(a=Yq(a,b))?Number(a.value):c}function $q(a,b){return Db([a],[b])[0]};function ar(a){this.h=a;this.g=0}function br(a){cr(a,/[ \t]+/gm)}function cr(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function dr(a){return a.g==a.h.length?null:(a=cr(a,/[^ \t\n]*/gm))?a[0]:null};function er(){this.g=0}
733
+ function fr(a,b,c){b=cd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new K(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=gr(a,g),--a.g,hr.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=gr(a,h);if(ir.includes(h.name)){if(1!=b)throw new K(2,4,4017);
734
+ var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=gr(a,m),hr.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==V(m,"TYPE")?null!=V(m,"BYTERANGE-START")?null!=V(m,"BYTERANGE-LENGTH")&&k.push(m):k.push(m):"MAP"==V(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=$q(d,m.trim()),h&&g.push(h),e.push(new Uq(m,g,k)),g=[],k=[]);k.length&&
735
+ (h&&g.push(h),e.push(new Uq("",g,k)));return new Rq(c,b,f,e)}f.push(h);"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Vq("URI",k)),e=!0)}}return new Rq(c,b,f)}function gr(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new K(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new ar(d);var f;(f=cr(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=cr(d,g);)c.push(new Vq(f[1],f[2]||f[3])),br(d)}return new Sq(a,b,c,e)}
736
+ var hr="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),ir="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function jr(){}function kr(a){try{var b=lr(a);return hf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return ff(c)}}
737
+ function lr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new K(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new K(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=ld(a):e=gd(a);return{data:e,contentType:c}}G("shaka.net.DataUriPlugin",jr);jr.parse=kr;rf("data",kr);function mr(){var a=this;this.g=this.j=null;this.va=1;this.s=new Map;this.F=new Map;this.I=new Map;this.I.set("video",new Map);this.I.set("audio",new Map);this.I.set(Ib,new Map);this.I.set("image",new Map);this.qa=new Set;this.h=new Map;this.i=null;this.U="";this.ua=new er;this.Z=0;this.G=-1;this.K=Infinity;this.wa=!1;this.m=new M(function(){nr(a)});this.X=or;this.H=null;this.aa=0;this.M=Infinity;this.$=this.ba=0;this.J=new of;this.B=new Map;this.C=new Map;this.P=new Map;this.N=new Map;this.l=!1}
738
+ r=mr.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return D(function(e){return 1==e.g?(c.j=b,c.l=b.isLowLatencyMode(),u(e,pr(c,a),2)):3!=e.g?(d=e.h,c.U=d.uri,u(e,qr(c,d.data,a),3)):e.return(c.H)})};r.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.J&&(a.push(this.J.destroy()),this.J=null);this.g=this.j=null;this.qa.clear();this.H=null;this.h.clear();this.F.clear();this.C.clear();this.s.clear();this.P.clear();this.N.clear();return Promise.all(a)};
739
+ r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return D(function(m){if(1==m.g){if(!rr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(sr(a,g));return u(m,Promise.all(b),2)}tr(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Pc});d.length&&!h&&(k=ur,vr(a,k.mg),l=d.map(function(n){return n.pb}),a.i.Ua(Math.min.apply(Math,ia(l))),a.j.updateDuration());h&&wr(a);
740
+ C(m)})};function xr(a,b){return rr(a)?a.I.get(b.type):b.Fd}
741
+ function sr(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){if(1==y.g)return c=b.od,d=new pb(c),a.l&&b.sd&&sb(d,new ub("_HLS_skip=YES")),u(y,pr(a,d.toString()),2);e=y.h;if(!b.stream.segmentIndex)return y.return();f=fr(a.ua,e.data,e.uri);if(1!=f.type)throw new K(2,4,4017);g=Wq(f.g,"EXT-X-DEFINE");h=yr(a,g);k=b.stream;l=xr(a,b);m=zr(f,k.mimeType);n=m.keyIds;p=m.drmInfos;q=function(E,F){return E.size===F.size&&[].concat(ia(E)).every(function(H){return F.has(H)})};q(k.keyIds,n)||(k.keyIds=
742
+ n,k.drmInfos=p,a.j.newDrmInfo(k));v=Ar(a,f,k.type,l,h);k.segmentIndex.nc(v,a.i.eb());v.length&&(w=Zq(f.g,"EXT-X-MEDIA-SEQUENCE"),x=l.get(w),k.segmentIndex.Lb(x));z=v[0];b.Tb=z.startTime;B=v[v.length-1];b.pb=B.endTime;if(A=Yq(f.g,"EXT-X-ENDLIST"))b.Pc=!0;C(y)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};
743
+ function Br(a,b){for(var c=-1==a.G,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=xr(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.G=Math.max(a.G,k));e.ue=k;break}}}}if(!(0>a.G))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(e=a.G-c.ue,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),Cr(a,c,d)}
744
+ function Dr(a,b){if(Infinity==a.K){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.K=Math.min(a.K,d.g))}}b=a.K;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Wa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.fd,"Expect AV sync issues!");else for(Cr(a,c,f.g-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.bf(b)}}}
745
+ function Cr(a,b,c){b.Tb+=c;b.pb+=c;a=xr(a,b);b=t(a);for(var d=b.next();!d.done;d=b.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
746
+ function qr(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O,X,da,R,na,Pa,Qa,eb;return D(function(Za){switch(Za.g){case 1:d=fr(a.ua,b,a.U);e=Wq(d.g,"EXT-X-DEFINE");for(var ib=t(e),ra=ib.next();!ra.done;ra=ib.next()){var ta=ra.value;ra=V(ta,"NAME");ta=V(ta,"VALUE");ra&&ta&&(a.s.has(ra)||a.s.set(ra,ta))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new pb(d.segments[0].i),J=H.Ja.split(".").pop(),(N=Er[J])?F=N:"ts"!==J&&"mp4"!==J&&(Fr[J]?(N=
747
+ Fr[J],L=a.g.hls.defaultAudioCodec,F=N+'; codecs="'+L+'"'):Gr[J]&&(N=Gr[J],O=a.g.hls.defaultVideoCodec,F=N+'; codecs="'+O+'"'))),X=F.split(";")[0],da=X.split("/")[0],R=Dd(F),na=new Map,u(Za,Hr(a,d,c,c,R,da,"",!0,"Media Playlist",null,na,null,!1,!1,X),5);k=Wq(d.g,"EXT-X-MEDIA");l=Wq(d.g,"EXT-X-STREAM-INF");m=Wq(d.g,"EXT-X-IMAGE-STREAM-INF");n=Wq(d.g,"EXT-X-SESSION-KEY");ib=t(l);for(ra=ib.next();!ra.done;ra=ib.next()){var ma=ra.value;ta=V(ma,"AUDIO");ra=V(ma,"VIDEO");var ya=V(ma,"SUBTITLES");ma=Ir(a,
748
+ ma);if(ya){var fb=Gb(Ib,ma);a.C.set(ya,fb);gc(ma,fb)}ta&&(ya=Gb("audio",ma),ya||(ya=a.g.hls.defaultAudioCodec),a.C.set(ta,ya));ra&&(ta=Gb("video",ma),ta||(ta=a.g.hls.defaultVideoCodec),a.C.set(ra,ta))}p=Wq(d.g,"EXT-X-SESSION-DATA");q=t(p);for(v=q.next();!v.done;v=q.next())if(w=v.value,x=V(w,"DATA-ID"),z=V(w,"URI"),B=V(w,"LANGUAGE"),A=V(w,"VALUE"),y=(new Map).set("id",x),z&&y.set("uri",$q(a.U,z)),B&&y.set("language",B),A&&y.set("value",A),E=new I("sessiondata",y),a.j)a.j.onEvent(E);Jr(a,k);ib=Xq(k,
749
+ "CLOSED-CAPTIONS");ib=t(ib);for(ra=ib.next();!ra.done;ra=ib.next())ta=ra.value,ya=V(ta,"LANGUAGE"),ra=Kr(ta),ya||(ya=V(ta,"NAME"))&&(ra=ya),ya=Tq(ta,"GROUP-ID"),ta=Tq(ta,"INSTREAM-ID").replace("SERVICE","svc"),a.B.get(ya)||a.B.set(ya,new Map),a.B.get(ya).set(ta,ra);f=Lr(a,l,n);g=Mr(a,k);return u(Za,Nr(a,m),4);case 4:h=Za.h;Za.D(3);break;case 5:Pa=Za.h,a.h.set(c,Pa),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==da?Pa.stream:null,video:"video"==da?Pa.stream:null,bandwidth:0,
750
+ allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.j)throw new K(2,7,7001);a.i=new P(null,0);a.i.ed(!0);1==d.type&&(rr(a)&&(Or(a,d),Qa=a.Z,a.m.R(Qa)),eb=Array.from(a.h.values()),Pr(a,eb),wr(a));a.H={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.H);C(Za)}})}
751
+ function wr(a){if(rr(a)){a.Z=a.M;if(a.X==Qr){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.pb),c=Math.min(c,e.Tb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.i.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.i.Ze(b)}if(!a.i.B)for(b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
752
+ c.g&&a.i.$f(c.g)}else a.i.Ua(Rr(a));a.i.De()}function yr(a,b){var c=new Map;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=V(e,"NAME");var f=V(e,"VALUE");e=V(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.s.get(e))&&c.set(e,d)}return c}
753
+ function Mr(a,b){var c=Xq(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Sr(a,g).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Tq(d.value,"GROUP-ID");if(d=a.C.get(e))if(e=a.F.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Tr(Ib,d)||Ur(Ib)}}return b.filter(function(g){return g})}
754
+ function Nr(a,b){var c,d;return D(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return D(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);xa(l,2);return u(l,Vr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=Ba(l);if(a.g.hls.ignoreImageStreamFailures)return l.return(null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e.return(d.filter(function(f){return f}))})}
755
+ function Jr(a,b){b=b.filter(function(d){var e=V(d,"URI")||"";return"SUBTITLES"!=V(d,"TYPE")&&""!=e});b=t(b);for(var c=b.next();!c.done;c=b.next())Sr(a,c.value)}
756
+ function Lr(a,b,c){var d=[],e=new Set;if(0<c.length){c=t(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Tq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=V(f,"KEYFORMAT")||"identity",f=(g=Wr[g])?g(f,""):null)){if(f.keyIds){g=t(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=V(k,"FRAME-RATE"),m=Number(V(k,"AVERAGE-BANDWIDTH"))||Number(Tq(k,"BANDWIDTH")),n=V(k,"RESOLUTION");n=t(n?n.split("x"):[null,null]);var p=n.next().value,q=n.next().value,
757
+ v=V(k,"VIDEO-RANGE");k=Xr(a,k);n=k.audio;k=k.video;for(var w=t(k),x=w.next();!x.done;x=w.next())if(x=x.value.stream)x.width=Number(p)||void 0,x.height=Number(q)||void 0,x.frameRate=Number(l)||void 0,x.hdr=v||void 0;l=a.g.disableAudio;if(!n.length||l)n=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];n=t(n);for(p=n.next();!p.done;p=n.next())for(p=p.value,q=t(k),v=q.next();!v.done;v=q.next()){var z=v.value;if(v=p?p.stream:null)v.drmInfos=d,v.keyIds=e;if(w=z?z.stream:null)w.drmInfos=d,w.keyIds=
758
+ e;x=p?p.stream.drmInfos:null;var B=z?z.stream.drmInfos:null;z=(z?z.fd:"")+" - "+(p?p.fd:"");v&&w&&x.length&&B.length&&!(0<dh(x,B).length)||a.qa.has(z)||(v={id:a.va++,language:v?v.language:"und",primary:!!v&&v.primary||!!w&&w.primary,audio:v,video:w,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.qa.add(z))}return l}).reduce(Od,[]);return b=b.filter(function(k){return null!=k})}
759
+ function Xr(a,b){var c=Ir(a,b),d=V(b,"AUDIO"),e=V(b,"VIDEO"),f=d||e;f=f&&a.F.has(f)?a.F.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Tq(b,"URI"),h=d.audio.find(function(m){return m&&m.fd==g}),k=Gb("video",c),l=Gb("audio",c);l&&!k?(f="audio",e=0<d.audio.length):!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Yr(a,b,c,f),d[a.stream.type]=[a]);return d}
760
+ function Ir(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);c=V(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Cd(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function Kr(a){a=V(a,"LANGUAGE")||"und";return Mb(a)}
761
+ function Sr(a,b){var c=Tq(b,"GROUP-ID"),d="",e=Tq(b,"TYPE").toLowerCase();"subtitles"==e&&(e=Ib);var f=e;f==Ib?d=V(b,"CODECS")||"":c&&a.C.has(c)&&(d=a.C.get(c));e=Zr(Tq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);var g=Kr(b),h=V(b,"NAME"),k="YES"==V(b,"DEFAULT");var l="audio"==f?(l=V(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=V(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var n=V(b,"CHARACTERISTICS");b="YES"==V(b,"FORCED");d=$r(a,e,d,f,g,k,h,l,null,n,b,m);a.F.has(c)?a.F.get(c).push(d):
759
762
  a.F.set(c,[d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
760
- function Xr(a,b){var c,d,e,f,g,h,k,l,m,n;return D(function(p){if(1==p.g){c=as(Uq(b,"URI"),a.s);d=V(b,"CODECS","jpeg")||"";if(a.h.has(c))return p.return(a.h.get(c));e=Lr(b);f=V(b,"NAME");g=V(b,"CHARACTERISTICS");h=bs(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?p.return(a.h.get(c)):(k=V(b,"RESOLUTION"))?u(p,h.stream.createSegmentIndex(),3):p.D(2)}2!=p.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
761
- Number(m.split("x")[1]));if(n=V(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return p.return(h)})}function $r(a,b,c,d){var e=as(Uq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);a:{b=V(b,"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.B.get(b);break a}if(!b&&a.B.size)for(b=t(a.B.keys()).next();!b.done;){b=a.B.get(b.value);break a}}b=null}c=Fb(d,c);d=bs(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
762
- function bs(a,b,c,d,e,f,g,h,k,l,m,n){function p(B){var A,y,E,F,H,J,L,M,S,X,ka,Q,pa,Qa;return D(function(Pa){if(1==Pa.g)return u(Pa,qr(a,w.pd),2);if(3!=Pa.g){A=Pa.h;if(B.aborted)return Pa.return();y=A.uri;E=gr(a.va,A.data,y);F=sr(a);return u(Pa,Ir(a,E,b,y,c,d,e,f,g,h,k,l,m,n),3)}H=Pa.h;if(B.aborted)return Pa.return();J=H.stream;sr(a)&&!F&&Pr(a,E);w.pd=y;w.Tb=H.Tb;w.qb=H.qb;w.td=H.td;w.Pc=H.Pc;w.Fd=H.Fd;w.Ce=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;
763
- v.mimeType=J.mimeType;nj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.j.newDrmInfo(v);L=Jb;if(d==L.Ia||d==L.Kb)for(M=t(a.h.values()),S=M.next();!S.done;S=M.next())X=S.value,X.Ce||X.type!=d||(X.stream.mimeType=J.mimeType,nj.includes(X.stream.mimeType)&&(X.stream.codecs=""));d==L.ia&&(ka=J.segmentIndex.get(0))&&ka.g&&(v.mimeType="application/mp4");cs(a)&&(a.xa?Qr(a,[w]):(a.xa=!0,Q=Array.from(a.h.values()),pa=Q.filter(function(jb){return jb.stream.segmentIndex}),Qr(a,pa),xr(a),Qa=a.Z,0<Qa&&
764
- a.m.R(Qa)));C(Pa)})}var q=ar(a.U,b),v=ds(a,c,d,e,f,g,h,k,l,m,n);nj.includes(v.mimeType)&&(v.codecs="");var w={stream:v,type:d,gd:b,pd:q,Tb:0,qb:0,Fd:new Map,td:!1,Pc:!1,ue:-1,Ce:!1},x=null,z=new AbortController;v.createSegmentIndex=function(){if(x)return x;z=new AbortController;return x=new Promise(function(B){B(p(z.signal))})};v.closeSegmentIndex=function(){x&&!v.segmentIndex&&z.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);x=null};return w}
765
- function Tr(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.qb));return b}function Sr(a){var b=Infinity,c=Infinity;a=t(a.h.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.stream.segmentIndex&&"text"!=d.stream.type&&(b=Math.min(b,d.qb),c=Math.min(c,d.Tb));return b-c}
766
- function ur(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&ak(d.segmentIndex,function(e){c.push(e)});a.i.pc(c)}function Qr(a,b){if(!sr(a))for(var c=Tr(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Ab(0,c);c=t(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,nj.includes(e.mimeType)&&(e.codecs="");ur(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Cr(a,b):Er(a,b)}
767
- function cs(a){if(!a.H)return!1;var b=[],c=[];a=t(a.H.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
768
- function Ir(a,b,c,d,e,f,g,h,k,l,m,n,p,q,v){var w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka,Q;return D(function(pa){if(1==pa.g){if(1!=b.type)throw new K(2,4,4017);w=Xq(b.g,"EXT-X-DEFINE");x=zr(a,w);es(a,b);return v?pa.D(2):u(pa,fs(a,f,e,b,x),3)}2!=pa.g&&(v=pa.h);z=Ar(b,v);B=z.drmInfos;A=z.keyIds;y=z.encrypted;E=z.qg;if(y&&!B.length&&!E)throw new K(2,4,4026);F=sr(a)?a.I.get(f):new Map;H=a.l;J=Br(a,b,f,F,x);H!=a.l&&es(a,b);L=J[0].startTime;M=J[J.length-1].endTime;S=new Zj(J);ka=(X=Zq(b.g,"EXT-X-SERVER-CONTROL"))?
769
- null!=X.getAttribute("CAN-SKIP-UNTIL"):!1;Q=ds(a,e,f,g,h,k,l,m,n,p,q);Q.segmentIndex=S;Q.encrypted=y;Q.drmInfos=B;Q.keyIds=A;Q.mimeType=v;return pa.return({stream:Q,type:f,gd:c,pd:d,Tb:L,qb:M,td:ka,Pc:!1,ue:-1,Fd:F,Ce:!1})})}
770
- function ds(a,b,c,d,e,f,g,h,k,l,m){var n=Vr(c,b)||Wr(c),p=[];if(k){k=t(k.split(","));for(var q=k.next();!q.done;q=k.next())p.push(q.value)}k=void 0;c==Ib&&(k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle");p.length||"subtitle"!==k||p.push("subtitle");return{id:a.wa++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n,codecs:b,kind:k,encrypted:!1,drmInfos:[],
763
+ function Vr(a,b){var c,d,e,f,g,h,k,l,m,n;return D(function(p){if(1==p.g){c=Zr(Tq(b,"URI"),a.s);d=V(b,"CODECS","jpeg")||"";if(a.h.has(c))return p.return(a.h.get(c));e=Kr(b);f=V(b,"NAME");g=V(b,"CHARACTERISTICS");h=$r(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?p.return(a.h.get(c)):(k=V(b,"RESOLUTION"))?u(p,h.stream.createSegmentIndex(),3):p.D(2)}2!=p.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
764
+ Number(m.split("x")[1]));if(n=V(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return p.return(h)})}function Yr(a,b,c,d){var e=Zr(Tq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);a:{b=V(b,"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.B.get(b);break a}if(!b&&a.B.size)for(b=t(a.B.keys()).next();!b.done;){b=a.B.get(b.value);break a}}b=null}c=Fb(d,c);d=$r(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
765
+ function $r(a,b,c,d,e,f,g,h,k,l,m,n){function p(B){var A,y,E,F,H,J,N,L,O,X,da,R,na,Pa;return D(function(Qa){if(1==Qa.g)return u(Qa,pr(a,w.od),2);if(3!=Qa.g){A=Qa.h;if(B.aborted)return Qa.return();y=A.uri;E=fr(a.ua,A.data,y);F=rr(a);return u(Qa,Hr(a,E,b,y,c,d,e,f,g,h,k,l,m,n),3)}H=Qa.h;if(B.aborted)return Qa.return();J=H.stream;rr(a)&&!F&&Or(a,E);w.od=y;w.Tb=H.Tb;w.pb=H.pb;w.sd=H.sd;w.Pc=H.Pc;w.Fd=H.Fd;w.Ce=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;
766
+ v.mimeType=J.mimeType;oj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.j.newDrmInfo(v);N=Jb;if(d==N.Ha||d==N.Jb)for(L=t(a.h.values()),O=L.next();!O.done;O=L.next())X=O.value,X.Ce||X.type!=d||(X.stream.mimeType=J.mimeType,oj.includes(X.stream.mimeType)&&(X.stream.codecs=""));d==N.ha&&(da=J.segmentIndex.get(0))&&da.h&&(v.mimeType="application/mp4");as(a)&&(a.wa?Pr(a,[w]):(a.wa=!0,R=Array.from(a.h.values()),na=R.filter(function(eb){return eb.stream.segmentIndex}),Pr(a,na),wr(a),Pa=a.Z,0<Pa&&
767
+ a.m.R(Pa)));C(Qa)})}var q=$q(a.U,b),v=bs(a,c,d,e,f,g,h,k,l,m,n);oj.includes(v.mimeType)&&(v.codecs="");var w={stream:v,type:d,fd:b,od:q,Tb:0,pb:0,Fd:new Map,sd:!1,Pc:!1,ue:-1,Ce:!1},x=null,z=new AbortController;v.createSegmentIndex=function(){if(x)return x;z=new AbortController;return x=new Promise(function(B){B(p(z.signal))})};v.closeSegmentIndex=function(){x&&!v.segmentIndex&&z.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);x=null};return w}
768
+ function Rr(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.pb));return b}function tr(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.wd(function(e){c.push(e)});a.i.pc(c)}
769
+ function Pr(a,b){if(!rr(a))for(var c=Rr(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.zb(0,c);c=t(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,oj.includes(e.mimeType)&&(e.codecs="");tr(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Br(a,b):Dr(a,b)}
770
+ function as(a){if(!a.H)return!1;var b=[],c=[];a=t(a.H.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
771
+ function Hr(a,b,c,d,e,f,g,h,k,l,m,n,p,q,v){var w,x,z,B,A,y,E,F,H,J,N,L,O,X,da,R;return D(function(na){if(1==na.g){if(1!=b.type)throw new K(2,4,4017);w=Wq(b.g,"EXT-X-DEFINE");x=yr(a,w);cs(a,b);return v?na.D(2):u(na,ds(a,f,e,b,x),3)}2!=na.g&&(v=na.h);z=zr(b,v);B=z.drmInfos;A=z.keyIds;y=z.encrypted;E=z.qg;if(y&&!B.length&&!E)throw new K(2,4,4026);F=rr(a)?a.I.get(f):new Map;H=a.l;J=Ar(a,b,f,F,x);H!=a.l&&cs(a,b);N=J[0].startTime;L=J[J.length-1].endTime;O=new ak(J);da=(X=Yq(b.g,"EXT-X-SERVER-CONTROL"))?
772
+ null!=X.getAttribute("CAN-SKIP-UNTIL"):!1;R=bs(a,e,f,g,h,k,l,m,n,p,q);R.segmentIndex=O;R.encrypted=y;R.drmInfos=B;R.keyIds=A;R.mimeType=v;return na.return({stream:R,type:f,fd:c,od:d,Tb:N,pb:L,sd:da,Pc:!1,ue:-1,Fd:F,Ce:!1})})}
773
+ function bs(a,b,c,d,e,f,g,h,k,l,m){var n=Tr(c,b)||Ur(c),p=[];if(k){k=t(k.split(","));for(var q=k.next();!q.done;q=k.next())p.push(q.value)}k=void 0;c==Ib&&(k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle");p.length||"subtitle"!==k||p.push("subtitle");return{id:a.va++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n,codecs:b,kind:k,encrypted:!1,drmInfos:[],
771
774
  keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:null,spatialAudio:m,closedCaptions:h,hdr:void 0,tilesLayout:void 0,external:!1}}
772
- function Ar(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Xq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ha(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Uq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=V(g,"KEYFORMAT")||"identity",g=(h=Yr[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,qg:d}}
773
- function gs(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new K(2,4,4042);var d=0,e=V(b,"IV","");if(e){var f=md(e.substr(2));if(16!=f.byteLength)throw new K(2,4,4043);}else d=$q(c.g,"EXT-X-MEDIA-SEQUENCE");c=ar(c.h,Uq(b,"URI"));var g=tf([c],a.g.retryParameters);b=b.toString()+"-"+d;if(!a.N.has(b)){var h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,
774
- l,m;return D(function(n){if(1==n.g)return u(n,hs(a,g,6),2);if(3!=n.g){k=n.h;if(!k.data||16!=k.data.byteLength)throw new K(2,4,4044);l={name:"AES-CBC"};m=h;return u(n,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=n.h;h.fetchKey=void 0;C(n)})}};a.N.set(b,h)}return a.N.get(b)}
775
- function es(a,b){var c=Zq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Zq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)wr(a,pr);else{c?wr(a,Rr):wr(a,is);d=Zq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new K(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Zq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ea=Number(Uq(c,"PART-TARGET")),a.L=Math.min(a.ea,a.L),b=Zq(b.g,"EXT-X-SERVER-CONTROL"),a.$=b?Number(Uq(b,"PART-HOLD-BACK")):0):a.L=Math.min(d,a.L);a.aa=Math.max(d,a.aa)}}
776
- function Pr(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.$)b=a.$;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.aa*c}a.i.Xe(0);a.i.$f(b);a.i.fd(!1)}
777
- function js(a,b,c,d){var e=Zq(c,"EXT-X-MAP");if(!e)return null;var f=Uq(e,"URI");f=as(ar(b.h,f),d);d=[f,V(e,"BYTERANGE","")].join("-");if(!a.P.has(d)){var g=void 0,h=null;c=t(c);for(var k=c.next();!k.done;k=c.next())k=k.value,"EXT-X-KEY"==k.name?"AES-128"==Uq(k,"METHOD")&&k.id<e.id&&(g=gs(a,k,b)):"EXT-X-BYTERANGE"==k.name&&k.id<e.id&&(h=k);b=ks(f,e,h,g);a.P.set(d,b)}return a.P.get(d)}
778
- function ks(a,b,c,d){var e=0,f=null;b=V(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Ei(function(){return[a]},e,f,null,null,d)}
779
- function ls(a,b,c,d,e,f,g,h,k){var l=d.g,m=as(d.i,f),n=Zq(l,"EXTINF"),p=0;f=0;var q=null;d.h.length&&!a.l&&Za("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Zq(l,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=ig(w.value))}w=Hi;Zq(l,"EXT-X-GAP")&&(w=2);if(!n){if(0==d.h.length)throw new K(2,4,4024,
780
- "EXTINF");if(!a.l)return null}var x=[];if(a.l){p={};for(var z=0;z<d.h.length;p={ce:p.ce},z++){var B=d.h[z],A=0==z?c:x[x.length-1],y=0==z?e:A.endTime,E=Number(V(B,"DURATION"))||a.ea;if(E){E=y+E;var F=0,H=null;"EXT-X-PRELOAD-HINT"==B.name?F=(F=V(B,"BYTERANGE-START"))?Number(F):0:(F=V(B,"BYTERANGE"),H=t(ms(A,F)),F=H.next().value,H=H.next().value);if(A=V(B,"URI"))p.ce=ar(g,A),A=Hi,"YES"==V(B,"GAP")&&(A=2),y=new Gi(y,E,function(J){return function(){return[J.ce]}}(p),F,H,b,0,0,Infinity,[],"",null,null,
781
- A),"EXT-X-PRELOAD-HINT"==B.name&&y.Sf(),x.push(y)}}}if(n){a=Number(n.value.split(",")[0]);if(0==a)return null;p=e+a}else if(x.length)p=x[x.length-1].endTime;else return null;(a=Zq(l,"EXT-X-BYTERANGE"))?(q=t(ms(c,a.value)),f=q.next().value,q=q.next().value):x.length&&(f=x[0].Va,q=x[x.length-1].Ea);c="";a=null;"image"==h&&(c="1x1",h=Zq(l,"EXT-X-TILES"))&&(c=Uq(h,"LAYOUT"),(h=V(h,"DURATION"))&&(a=Number(h)));return new Gi(e,p,function(){return m.length?[m]:[]},f,q,b,0,0,Infinity,x,c,a,v,w,k)}
782
- function ms(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ea+1,d=c+b-1);return[c,d]}
783
- function Br(a,b,c,d,e){var f=b.segments,g=void 0,h=$q(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=$q(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Zq(b.g,"EXT-X-SKIP");l=l?Number(V(l,"SKIPPED-SEGMENTS")):0;var m=k+l,n=0;sr(a)&&d.has(m)&&(n=d.get(m));0===n&&a.X==Rr&&0<d.size&&!d.has(m)&&(n=a.i.eb());for(var p=[],q=null,v=0;v<f.length;v++){var w=f[v],x=0==v?n:q.endTime;m=k+l+v;Zq(w.g,"EXT-X-DISCONTINUITY")&&h++;var z=t(w.g);for(var B=z.next();!B.done;B=z.next())B=B.value,"EXT-X-KEY"==B.name&&("AES-128"==Uq(B,"METHOD")?g=
784
- gs(a,B,b):g=void 0);d.set(m,x);z=js(a,b,w.g,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());if(w=ls(a,z,q,w,x,e,b.h,c,g))q=w,w.j=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.G&&m<a.G||p.push(w)}if(b=p.some(function(A){return null!=A.ba}))for(c={},d=0;d<p.length;c={wc:c.wc,vc:c.vc,hd:c.hd,vb:c.vb,uc:c.uc},d++)if(c.vb=p[d],null==c.vb.ba)for(c.vc=0,c.wc=d,e=function(A){return function(){var y=p[A.wc];if(y){if(null!=y.ba)return y.ba+A.vc;A.vc-=y.endTime-
785
- y.startTime;A.wc+=1}return null}}(c),c.uc=0,c.hd=d,f=function(A){return function(){var y=p[A.hd];if(y){y!=A.vb&&(A.uc+=y.endTime-y.startTime);if(null!=y.ba)return y.ba+A.uc;--A.hd}return null}}(c);null==c.vb.ba;)c.vb.ba=f(),null==c.vb.ba&&(c.vb.ba=e());if(b)for(c=t(p),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.ba,e=t(e.h),f=e.next();!f.done;f=e.next())f=f.value,f.ba=d,d+=f.endTime-f.startTime;a=a.K;if(b&&Infinity!=a)for(b=t(p),d=b.next();!d.done;d=b.next())d.value.cf(a);return p}
786
- function as(a,b){if(!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new K(2,4,4039,e);}}return a}function Vr(a,b){if(a==Ib){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":null:"image/jpeg"}
787
- function Wr(a){return a==Ib?"text/vtt":ns[a].mp4}function fs(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,v;return D(function(w){if(1==w.g){f=zf;g=Math.trunc((d.segments.length-1)/2);h=as(d.segments[g].i,e);k=new pb(h);l=k.Ka.split(".").pop();m=ns[b];if((n=m[l])||(n=Fr[l])||(n=Vr(b,c)))return w.return(n);p=tf([h],a.g.retryParameters);p.method="HEAD";return u(w,hs(a,p,f),2)}q=w.h;return(v=q.headers["content-type"])?w.return(v.split(";")[0]):w.return(Wr(b))})}
788
- function qr(a,b){b=tf([b],a.g.retryParameters);a.j.modifyManifestRequest(b,{format:"h"});return hs(a,b,0)}function or(a){var b,c;D(function(d){if(1==d.g){if(!a.j)return d.return();wa(d,2);return u(d,a.update(),4)}if(2!=d.g)return sr(a)&&(b=a.Z,a.m.R(b)),za(d,0);c=Aa(d);if(!a.j)return d.return();c.severity=1;a.j.onError(c);a.m.R(.1);C(d)})}function sr(a){return a.X!=pr}function wr(a,b){a.X=b;a.i&&a.i.fd(!sr(a));sr(a)||a.m.stop()}
789
- function hs(a,b,c){if(!a.J)throw new K(2,7,7001);b=a.j.networkingEngine.request(c,b);of(a.J,b);return b.promise}G("shaka.hls.HlsParser",nr);
790
- var Fr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Gr={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},Hr={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},ns={audio:Gr,video:Hr,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
791
- 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"}},Yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new K(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new K(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Uq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
792
- b=Uq(a,"URI");b=mr(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=V(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Uq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Uq(a,"URI");a=mr(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Yf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
793
- Uq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},pr="VOD",is="EVENT",Rr="LIVE",vr={mg:pr,mi:is,kg:Rr};Tc("Tizen 3")||Tc("Tizen 2")||Vc()||(ih.m3u8=function(){return new nr},gh["application/x-mpegurl"]=function(){return new nr},gh["application/vnd.apple.mpegurl"]=function(){return new nr});function os(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=fd(b)}catch(g){}throw new K(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ps(){}function qs(a,b,c,d,e){var f=new rs;Hf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ss,h={Bf:!1,hg:!1};a=ts(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 df(a,function(){h.Bf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new N(function(){h.hg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
794
- function ts(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:return h=us,k=vs,p=n=0,q=Date.now(),wa(y,2),u(y,h(a,c),4);case 4:l=y.h;f(ws(l.headers));if("HEAD"==c.method){y.D(5);break}v=l.clone().body.getReader();x=(w=l.headers.get("Content-Length"))?parseInt(w,10):0;z=function(E){function F(){var H,J;return D(function(L){switch(L.g){case 1:return wa(L,2),u(L,v.read(),4);case 4:H=L.h;za(L,3);break;case 2:return Aa(L),L.return();case 3:if(H.done){L.D(5);break}n+=
795
- H.value.byteLength;if(!g){L.D(5);break}return u(L,g(H.value),5);case 5:J=Date.now();if(100<J-q||H.done)e(J-q,n-p,x-n),p=n,q=J;H.done?E.close():(E.enqueue(H.value),F());C(L)}})}F()};new k({start:z});return u(y,l.arrayBuffer(),6);case 6:m=y.h;case 5:za(y,3);break;case 2:B=Aa(y);if(d.Bf)throw new K(1,1,7001,a,b);if(d.hg)throw new K(1,1,1003,a,b);throw new K(1,1,1002,a,B,b);case 3:return A=ws(l.headers),y.return(os(A,m,l.status,a,l.url,b))}})}
796
- function ws(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function xs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}G("shaka.net.HttpFetchPlugin",ps);ps.isSupported=xs;ps.parse=qs;var us=window.fetch,ss=window.AbortController,vs=window.ReadableStream,rs=window.Headers;
797
- xs()&&(qf("http",qs,2,!0),qf("https",qs,2,!0),qf("blob",qs,2,!0));function ys(){}
798
- function zs(a,b,c,d,e){var f=new As,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 K(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=Bs(f);e(q);n=!0}};f.onload=function(){var q=Bs(f),v=f.response;try{var w=os(q,v,f.status,a,f.responseURL,c);l(w)}catch(x){m(x)}};f.onerror=function(q){m(new K(1,1,1002,a,q,
799
- c))};f.ontimeout=function(){m(new K(1,1,1003,a,c))};f.onprogress=function(q){var v=Date.now();if(100<v-g||q.lengthComputable&&q.loaded==q.total)d(v-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=v};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new df(k,function(){f.abort();return Promise.resolve()})}
800
- function Bs(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}G("shaka.net.HttpXHRPlugin",ys);ys.parse=zs;var As=window.XMLHttpRequest;qf("http",zs,1,!0);qf("https",zs,1,!0);qf("blob",zs,1,!0);function Cs(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Ds(a){return a.Na().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Va+":"+a.Ea}function Es(a,b){return Mk(a.g.Na(),a.g.Va,a.g.Ea,b.streaming.retryParameters)};function Fs(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Gs(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Fs.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 Hs(a){var b=this;this.s=a;this.j=new Map;this.i=new Af(function(){return Is(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Fs}Hs.prototype.destroy=function(){return this.i.destroy()};function Js(a,b,c){a.m=b;a.l=c}function Is(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
801
- function Ks(a,b,c,d,e,f){Bf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,q;return D(function(v){if(1==v.g)return u(v,Ls(a,c),2);h=v.h;if(a.i.g)throw new K(2,9,7001);if(e)for(m in k=Gc(h),l=new Xf(k),l.data)n=Number(m),p=l.data[n],q=l.g[n],a.l(p,q);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 Ms(a){return D(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
802
- function Ls(a,b){var c,d,e,f;return D(function(g){if(1==g.g)return c=zf,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;gc(a.h,e);return g.return(f.data)})};function Ns(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Lc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ns.prototype.abort=function(){var a=this;return D(function(b){if(1==b.g){try{a.i.abort()}catch(c){}wa(b,2);return u(b,a.g,4)}if(2!=b.g)return za(b,0);Aa(b);C(b)})};
803
- function Os(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return D(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return u(g,b(f.key,f.value,f),2)}f.continue();C(g)})}})}Ns.prototype.store=function(){return this.h};Ns.prototype.promise=function(){return this.g};function Ps(a){this.h=a;this.g=[]}Ps.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Qs(a,b){return Rs(a,b,"readwrite")}function Rs(a,b,c){c=a.h.transaction([b],c);var d=new Ns(c,b);a.g.push(d);d.promise().then(function(){gc(a.g,d)},function(){gc(a.g,d)});return d};function Ss(a,b,c){this.h=new Ps(a);this.i=b;this.g=c}r=Ss.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Ts(this.i)};r.removeSegments=function(a,b){return Us(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return D(function(d){if(1==d.g)return u(d,Vs(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Ef(e)}))})};r.addManifests=function(){return Ts(this.g)};
804
- r.updateManifest=function(){return Promise.reject(new K(2,9,9016,"Cannot modify values in "+this.g))};function Ws(a,b,c){a=Qs(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=Qs(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()};r.removeManifests=function(a,b){return Us(this,this.g,a,b)};
805
- r.getManifests=function(a){var b=this,c;return D(function(d){if(1==d.g)return u(d,Vs(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Gc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return D(function(d){return 1==d.g?(b=Rs(a.h,a.g,"readonly"),c=new Map,u(d,Os(b,function(e,f){var g;return D(function(h){if(1==h.g)return u(h,a.Gc(f),2);g=h.h;c.set(e,g);C(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};r.Ef=function(a){return a};r.Gc=function(a){return Promise.resolve(a)};
806
- function Ts(a){return Promise.reject(new K(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){if(1==m.g){d=Qs(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={md:g.md},k=h.next())l=k.value,g.md=e.add(l),g.md.onsuccess=function(n){return function(){f.push(n.md.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
807
- function Us(a,b,c,d){a=Qs(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={ld:e.ld},f=c.next())e.ld=f.value,b.delete(e.ld).onsuccess=function(g){return function(){return d(g.ld)}}(e);return a.promise()}
808
- function Vs(a,b,c){var d,e,f,g,h,k,l;return D(function(m){if(1==m.g){d=Rs(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={Bc:h.Bc,yc:h.yc},l=k.next())h.yc=l.value,h.Bc=e.get(h.yc),h.Bc.onsuccess=function(n){return function(){void 0==n.Bc.result&&g.push(n.yc);f[n.yc]=n.Bc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new K(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Xs(a){this.g=new Ps(a)}Xs.prototype.destroy=function(){return this.g.destroy()};Xs.prototype.getAll=function(){var a=this,b,c;return D(function(d){return 1==d.g?(b=Rs(a.g,"session-ids","readonly"),c=[],u(d,Os(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};Xs.prototype.add=function(a){var b=Qs(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
809
- Xs.prototype.remove=function(a){var b=this,c;return D(function(d){return 1==d.g?(c=Qs(b.g,"session-ids"),u(d,Os(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):u(d,c.promise(),0)})};function Ys(){this.g=new Map}Ys.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Ys.prototype.init=function(){var a=this;Zs.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
810
- function $s(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ta:d,ya:f},ya:e})})});if(b)return b;throw new K(2,9,9013,"Could not find a cell that supports add-operations");}function at(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ta:d,ya:f},e)})})}
811
- function bt(a,b,c){a=a.g.get(b);if(!a)throw new K(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new K(2,9,9013,"Could not find cell with name "+c);return b}function ct(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function dt(a){var b=Array.from(a.g.keys());if(!b.length)throw new K(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
812
- function et(a){var b,c,d;return D(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Zs,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ft(a,b){Zs.set(a,b)}G("shaka.offline.StorageMuxer",Ys);Ys.unregister=function(a){Zs.delete(a)};Ys.register=ft;Ys.prototype.destroy=Ys.prototype.destroy;var Zs=new Map;function gt(){Ss.apply(this,arguments)}ra(gt,Ss);gt.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return D(function(g){d=Qs(c.h,c.g);e=d.store();f=new Lc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new K(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
813
- gt.prototype.Gc=function(a){var b,c,d,e,f,g;return D(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=ht(a.periods[c],e),b.push(f);return u(h,eq(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
814
- function ht(a,b){it(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return jt(e,a.startTime,b)})}
815
- function jt(a,b,c){var d=a.initSegmentUri?kt(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=kt(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
816
- 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,external:!1}}gt.prototype.Ef=function(a){return{data:a.data}};function kt(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 K(2,9,9004,"Could not parse uri "+a);}
817
- function it(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
818
- f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function lt(){Ss.apply(this,arguments)}ra(lt,Ss);
819
- lt.prototype.Gc=function(a){var b,c,d,e,f,g;return D(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(mt(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,eq(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
775
+ function zr(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Wq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ia(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Tq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=V(g,"KEYFORMAT")||"identity",g=(h=Wr[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,qg:d}}
776
+ function es(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ya("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new K(2,4,4042);var d=0,e=V(b,"IV","");if(e){var f=md(e.substr(2));if(16!=f.byteLength)throw new K(2,4,4043);}else d=Zq(c.g,"EXT-X-MEDIA-SEQUENCE");c=$q(c.h,Tq(b,"URI"));var g=uf([c],a.g.retryParameters);b=b.toString()+"-"+d;if(!a.N.has(b)){var h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,
777
+ l,m;return D(function(n){if(1==n.g)return u(n,fs(a,g,6),2);if(3!=n.g){k=n.h;if(!k.data||16!=k.data.byteLength)throw new K(2,4,4044);l={name:"AES-CBC"};m=h;return u(n,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=n.h;h.fetchKey=void 0;C(n)})}};a.N.set(b,h)}return a.N.get(b)}
778
+ function cs(a,b){var c=Yq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Yq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)vr(a,or);else{c?vr(a,Qr):vr(a,gs);d=Yq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new K(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Yq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ba=Number(Tq(c,"PART-TARGET")),a.M=Math.min(a.ba,a.M),b=Yq(b.g,"EXT-X-SERVER-CONTROL"),a.$=b?Number(Tq(b,"PART-HOLD-BACK")):0):a.M=Math.min(d,a.M);a.aa=Math.max(d,a.aa)}}
779
+ function Or(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.$)b=a.$;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.aa*c}a.i.cg(0);a.i.Te(b);a.i.ed(!1)}
780
+ function hs(a,b,c,d){var e=Yq(c,"EXT-X-MAP");if(!e)return null;var f=Tq(e,"URI");f=Zr($q(b.h,f),d);d=[f,V(e,"BYTERANGE","")].join("-");if(!a.P.has(d)){var g=void 0,h=null;c=t(c);for(var k=c.next();!k.done;k=c.next())k=k.value,"EXT-X-KEY"==k.name?"AES-128"==Tq(k,"METHOD")&&k.id<e.id&&(g=es(a,k,b)):"EXT-X-BYTERANGE"==k.name&&k.id<e.id&&(h=k);b=is(f,e,h,g);a.P.set(d,b)}return a.P.get(d)}
781
+ function is(a,b,c,d){var e=0,f=null;b=V(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Fi(function(){return[a]},e,f,null,null,d)}
782
+ function js(a,b,c,d,e,f,g,h,k){var l=d.g,m=Zr(d.i,f),n=Yq(l,"EXTINF"),p=0;f=0;var q=null;d.h.length&&!a.l&&Ya("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Yq(l,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=jg(w.value))}w=Ii;Yq(l,"EXT-X-GAP")&&(w=2);if(!n){if(0==d.h.length)throw new K(2,4,4024,
783
+ "EXTINF");if(!a.l)return null}var x=[];if(a.l){p={};for(var z=0;z<d.h.length;p={ce:p.ce},z++){var B=d.h[z],A=0==z?c:x[x.length-1],y=0==z?e:A.endTime,E=Number(V(B,"DURATION"))||a.ba;if(E){E=y+E;var F=0,H=null;"EXT-X-PRELOAD-HINT"==B.name?F=(F=V(B,"BYTERANGE-START"))?Number(F):0:(F=V(B,"BYTERANGE"),H=t(ks(A,F)),F=H.next().value,H=H.next().value);if(A=V(B,"URI"))p.ce=$q(g,A),A=Ii,"YES"==V(B,"GAP")&&(A=2),y=new Hi(y,E,function(J){return function(){return[J.ce]}}(p),F,H,b,0,0,Infinity,[],"",null,null,
784
+ A),"EXT-X-PRELOAD-HINT"==B.name&&y.Rf(),x.push(y)}}}if(n){a=Number(n.value.split(",")[0]);if(0==a)return null;p=e+a}else if(x.length)p=x[x.length-1].endTime;else return null;(a=Yq(l,"EXT-X-BYTERANGE"))?(q=t(ks(c,a.value)),f=q.next().value,q=q.next().value):x.length&&(f=x[0].Va,q=x[x.length-1].Da);c="";a=null;"image"==h&&(c="1x1",h=Yq(l,"EXT-X-TILES"))&&(c=Tq(h,"LAYOUT"),(h=V(h,"DURATION"))&&(a=Number(h)));return new Hi(e,p,function(){return m.length?[m]:[]},f,q,b,0,0,Infinity,x,c,a,v,w,k)}
785
+ function ks(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Da+1,d=c+b-1);return[c,d]}
786
+ function Ar(a,b,c,d,e){var f=b.segments,g=void 0,h=Zq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Zq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Yq(b.g,"EXT-X-SKIP");l=l?Number(V(l,"SKIPPED-SEGMENTS")):0;var m=k+l,n=0;rr(a)&&d.has(m)&&(n=d.get(m));0===n&&a.X==Qr&&0<d.size&&!d.has(m)&&(n=a.i.eb());for(var p=[],q=null,v=0;v<f.length;v++){var w=f[v],x=0==v?n:q.endTime;m=k+l+v;Yq(w.g,"EXT-X-DISCONTINUITY")&&h++;var z=t(w.g);for(var B=z.next();!B.done;B=z.next())B=B.value,"EXT-X-KEY"==B.name&&("AES-128"==Tq(B,"METHOD")?g=
787
+ es(a,B,b):g=void 0);d.set(m,x);z=hs(a,b,w.g,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());if(w=js(a,z,q,w,x,e,b.h,c,g))q=w,w.l=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.G&&m<a.G||p.push(w)}if(b=p.some(function(A){return null!=A.g}))for(c={},d=0;d<p.length;c={wc:c.wc,vc:c.vc,gd:c.gd,ub:c.ub,uc:c.uc},d++)if(c.ub=p[d],null==c.ub.g)for(c.vc=0,c.wc=d,e=function(A){return function(){var y=p[A.wc];if(y){if(null!=y.g)return y.g+A.vc;A.vc-=y.endTime-y.startTime;
788
+ A.wc+=1}return null}}(c),c.uc=0,c.gd=d,f=function(A){return function(){var y=p[A.gd];if(y){y!=A.ub&&(A.uc+=y.endTime-y.startTime);if(null!=y.g)return y.g+A.uc;--A.gd}return null}}(c);null==c.ub.g;)c.ub.g=f(),null==c.ub.g&&(c.ub.g=e());if(b)for(c=t(p),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.K;if(b&&Infinity!=a)for(b=t(p),d=b.next();!d.done;d=b.next())d.value.bf(a);return p}
789
+ function Zr(a,b){if(!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new K(2,4,4039,e);}}return a}function Tr(a,b){if(a==Ib){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":null:"image/jpeg"}
790
+ function Ur(a){return a==Ib?"text/vtt":ls[a].mp4}function ds(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,v;return D(function(w){if(1==w.g){f=Af;g=Math.trunc((d.segments.length-1)/2);h=Zr(d.segments[g].i,e);k=new pb(h);l=k.Ja.split(".").pop();m=ls[b];if((n=m[l])||(n=Er[l])||(n=Tr(b,c)))return w.return(n);p=uf([h],a.g.retryParameters);p.method="HEAD";return u(w,fs(a,p,f),2)}q=w.h;return(v=q.headers["content-type"])?w.return(v.split(";")[0]):w.return(Ur(b))})}
791
+ function pr(a,b){b=uf([b],a.g.retryParameters);a.j.modifyManifestRequest(b,{format:"h"});return fs(a,b,0)}function nr(a){var b,c;D(function(d){if(1==d.g){if(!a.j)return d.return();xa(d,2);return u(d,a.update(),4)}if(2!=d.g)return rr(a)&&(b=a.Z,a.m.R(b)),Aa(d,0);c=Ba(d);if(!a.j)return d.return();c.severity=1;a.j.onError(c);a.m.R(.1);C(d)})}function rr(a){return a.X!=or}function vr(a,b){a.X=b;a.i&&a.i.ed(!rr(a));rr(a)||a.m.stop()}
792
+ function fs(a,b,c){if(!a.J)throw new K(2,7,7001);b=a.j.networkingEngine.request(c,b);pf(a.J,b);return b.promise}G("shaka.hls.HlsParser",mr);
793
+ var Er={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Fr={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},Gr={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},ls={audio:Fr,video:Gr,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
794
+ 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"}},Wr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new K(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new K(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Tq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
795
+ b=Tq(a,"URI");b=lr(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=V(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Tq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Tq(a,"URI");a=lr(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Zf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a,
796
+ b){if("video/mp2t"==b)throw new K(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new K(2,4,4041);a=Tq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},or="VOD",gs="EVENT",Qr="LIVE",ur={mg:or,ni:gs,kg:Qr};Tc("Tizen 3")||Tc("Tizen 2")||Vc()||(jh.m3u8=function(){return new mr},hh["application/x-mpegurl"]=function(){return new mr},hh["application/vnd.apple.mpegurl"]=function(){return new mr});function ms(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=fd(b)}catch(g){}throw new K(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ns(){}function os(a,b,c,d,e){var f=new ps;If(b.headers).forEach(function(l,m){f.append(m,l)});var g=new qs,h={Af:!1,hg:!1};a=rs(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 ef(a,function(){h.Af=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new M(function(){h.hg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
797
+ function rs(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:return h=ss,k=ts,p=n=0,q=Date.now(),xa(y,2),u(y,h(a,c),4);case 4:l=y.h;f(us(l.headers));if("HEAD"==c.method){y.D(5);break}v=l.clone().body.getReader();x=(w=l.headers.get("Content-Length"))?parseInt(w,10):0;z=function(E){function F(){var H,J;return D(function(N){switch(N.g){case 1:return xa(N,2),u(N,v.read(),4);case 4:H=N.h;Aa(N,3);break;case 2:return Ba(N),N.return();case 3:if(H.done){N.D(5);break}n+=
798
+ H.value.byteLength;if(!g){N.D(5);break}return u(N,g(H.value),5);case 5:J=Date.now();if(100<J-q||H.done)e(J-q,n-p,x-n),p=n,q=J;H.done?E.close():(E.enqueue(H.value),F());C(N)}})}F()};new k({start:z});return u(y,l.arrayBuffer(),6);case 6:m=y.h;case 5:Aa(y,3);break;case 2:B=Ba(y);if(d.Af)throw new K(1,1,7001,a,b);if(d.hg)throw new K(1,1,1003,a,b);throw new K(1,1,1002,a,B,b);case 3:return A=us(l.headers),y.return(ms(A,m,l.status,a,l.url,b))}})}
799
+ function us(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function vs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}G("shaka.net.HttpFetchPlugin",ns);ns.isSupported=vs;ns.parse=os;var ss=window.fetch,qs=window.AbortController,ts=window.ReadableStream,ps=window.Headers;
800
+ vs()&&(rf("http",os,2,!0),rf("https",os,2,!0),rf("blob",os,2,!0));function ws(){}
801
+ function xs(a,b,c,d,e){var f=new ys,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 K(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=zs(f);e(q);n=!0}};f.onload=function(){var q=zs(f),v=f.response;try{var w=ms(q,v,f.status,a,f.responseURL,c);l(w)}catch(x){m(x)}};f.onerror=function(q){m(new K(1,1,1002,a,q,
802
+ c))};f.ontimeout=function(){m(new K(1,1,1003,a,c))};f.onprogress=function(q){var v=Date.now();if(100<v-g||q.lengthComputable&&q.loaded==q.total)d(v-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=v};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new ef(k,function(){f.abort();return Promise.resolve()})}
803
+ function zs(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}G("shaka.net.HttpXHRPlugin",ws);ws.parse=xs;var ys=window.XMLHttpRequest;rf("http",xs,1,!0);rf("https",xs,1,!0);rf("blob",xs,1,!0);function As(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Bs(a){return a.Ma().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Va+":"+a.Da}function Cs(a,b){return Mk(a.g.Ma(),a.g.Va,a.g.Da,b.streaming.retryParameters)};function Ds(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Es(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Ds.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 Fs(a){var b=this;this.s=a;this.j=new Map;this.i=new Bf(function(){return Gs(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Ds}Fs.prototype.destroy=function(){return this.i.destroy()};function Hs(a,b,c){a.m=b;a.l=c}function Gs(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
804
+ function Is(a,b,c,d,e,f){Cf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,q;return D(function(v){if(1==v.g)return u(v,Js(a,c),2);h=v.h;if(a.i.g)throw new K(2,9,7001);if(e)for(m in k=Gc(h),l=new Yf(k),l.data)n=Number(m),p=l.data[n],q=l.g[n],a.l(p,q);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 Ks(a){return D(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
805
+ function Js(a,b){var c,d,e,f;return D(function(g){if(1==g.g)return c=Af,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;gc(a.h,e);return g.return(f.data)})};function Ls(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Lc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ls.prototype.abort=function(){var a=this;return D(function(b){if(1==b.g){try{a.i.abort()}catch(c){}xa(b,2);return u(b,a.g,4)}if(2!=b.g)return Aa(b,0);Ba(b);C(b)})};
806
+ function Ms(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return D(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return u(g,b(f.key,f.value,f),2)}f.continue();C(g)})}})}Ls.prototype.store=function(){return this.h};Ls.prototype.promise=function(){return this.g};function Ns(a){this.h=a;this.g=[]}Ns.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Os(a,b){return Ps(a,b,"readwrite")}function Ps(a,b,c){c=a.h.transaction([b],c);var d=new Ls(c,b);a.g.push(d);d.promise().then(function(){gc(a.g,d)},function(){gc(a.g,d)});return d};function Qs(a,b,c){this.h=new Ns(a);this.i=b;this.g=c}r=Qs.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Rs(this.i)};r.removeSegments=function(a,b){return Ss(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return D(function(d){if(1==d.g)return u(d,Ts(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Df(e)}))})};r.addManifests=function(){return Rs(this.g)};
807
+ r.updateManifest=function(){return Promise.reject(new K(2,9,9016,"Cannot modify values in "+this.g))};function Us(a,b,c){a=Os(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=Os(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()};r.removeManifests=function(a,b){return Ss(this,this.g,a,b)};
808
+ r.getManifests=function(a){var b=this,c;return D(function(d){if(1==d.g)return u(d,Ts(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Gc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return D(function(d){return 1==d.g?(b=Ps(a.h,a.g,"readonly"),c=new Map,u(d,Ms(b,function(e,f){var g;return D(function(h){if(1==h.g)return u(h,a.Gc(f),2);g=h.h;c.set(e,g);C(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};r.Df=function(a){return a};r.Gc=function(a){return Promise.resolve(a)};
809
+ function Rs(a){return Promise.reject(new K(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){if(1==m.g){d=Os(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={ld:g.ld},k=h.next())l=k.value,g.ld=e.add(l),g.ld.onsuccess=function(n){return function(){f.push(n.ld.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
810
+ function Ss(a,b,c,d){a=Os(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={kd:e.kd},f=c.next())e.kd=f.value,b.delete(e.kd).onsuccess=function(g){return function(){return d(g.kd)}}(e);return a.promise()}
811
+ function Ts(a,b,c){var d,e,f,g,h,k,l;return D(function(m){if(1==m.g){d=Ps(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={Bc:h.Bc,yc:h.yc},l=k.next())h.yc=l.value,h.Bc=e.get(h.yc),h.Bc.onsuccess=function(n){return function(){void 0==n.Bc.result&&g.push(n.yc);f[n.yc]=n.Bc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new K(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Vs(a){this.g=new Ns(a)}Vs.prototype.destroy=function(){return this.g.destroy()};Vs.prototype.getAll=function(){var a=this,b,c;return D(function(d){return 1==d.g?(b=Ps(a.g,"session-ids","readonly"),c=[],u(d,Ms(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};Vs.prototype.add=function(a){var b=Os(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
812
+ Vs.prototype.remove=function(a){var b=this,c;return D(function(d){return 1==d.g?(c=Os(b.g,"session-ids"),u(d,Ms(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):u(d,c.promise(),0)})};function Ws(){this.g=new Map}Ws.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Ws.prototype.init=function(){var a=this;Xs.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
813
+ function Ys(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ta:d,xa:f},xa:e})})});if(b)return b;throw new K(2,9,9013,"Could not find a cell that supports add-operations");}function Zs(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ta:d,xa:f},e)})})}
814
+ function $s(a,b,c){a=a.g.get(b);if(!a)throw new K(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new K(2,9,9013,"Could not find cell with name "+c);return b}function at(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function bt(a){var b=Array.from(a.g.keys());if(!b.length)throw new K(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
815
+ function ct(a){var b,c,d;return D(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Xs,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function dt(a,b){Xs.set(a,b)}G("shaka.offline.StorageMuxer",Ws);Ws.unregister=function(a){Xs.delete(a)};Ws.register=dt;Ws.prototype.destroy=Ws.prototype.destroy;var Xs=new Map;function et(){Qs.apply(this,arguments)}sa(et,Qs);et.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return D(function(g){d=Os(c.h,c.g);e=d.store();f=new Lc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new K(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
816
+ et.prototype.Gc=function(a){var b,c,d,e,f,g;return D(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=ft(a.periods[c],e),b.push(f);return u(h,dq(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
817
+ function ft(a,b){gt(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return ht(e,a.startTime,b)})}
818
+ function ht(a,b,c){var d=a.initSegmentUri?it(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=it(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
819
+ 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,external:!1}}et.prototype.Df=function(a){return{data:a.data}};function it(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 K(2,9,9004,"Could not parse uri "+a);}
820
+ function gt(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
821
+ f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function jt(){Qs.apply(this,arguments)}sa(jt,Qs);
822
+ jt.prototype.Gc=function(a){var b,c,d,e,f,g;return D(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(kt(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,dq(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
820
823
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
821
- function mt(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
822
- dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1}};function nt(){Ss.apply(this,arguments)}ra(nt,Ss);r=nt.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Ws(this,a,b)};r.Gc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function ot(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=ot.prototype;
823
- r.init=function(){var a=this,b=new Lc,c=!1,d=new N(function(){c=!0;b.reject(new K(2,9,9017))});d.R(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new gt(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new lt(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
824
- new lt(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new nt(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Xs(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new K(2,
824
+ function kt(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
825
+ dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1}};function lt(){Qs.apply(this,arguments)}sa(lt,Qs);r=lt.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Us(this,a,b)};r.Gc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function mt(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=mt.prototype;
826
+ r.init=function(){var a=this,b=new Lc,c=!1,d=new M(function(){c=!0;b.reject(new K(2,9,9017))});d.R(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new et(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new jt(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
827
+ new jt(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new lt(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Vs(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new K(2,
825
828
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};r.destroy=function(){var a=this;return D(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),C(b)}})};
826
829
  r.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};r.getEmeSessionCell=function(){return this.m};
827
- r.erase=function(){var a=this;return D(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,pt(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
828
- function pt(){var a=new Lc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new K(2,9,9001,b.error));c.preventDefault()};return a}ft("idb",function(){return Wc()||Sc()||!window.indexedDB?null:new ot});function qt(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}qt.prototype.Ta=function(){return this.i};qt.prototype.ya=function(){return this.h};qt.prototype.key=function(){return this.l};qt.prototype.toString=function(){return this.j};
829
- function rt(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new qt(b,c,d,Number(a[4])):null};function st(a,b){this.h=a;this.g=b}
830
- function tt(a,b){var c=new O(null,0);c.Ua(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=ut(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return vt(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return vt(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
830
+ r.erase=function(){var a=this;return D(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,nt(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
831
+ function nt(){var a=new Lc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new K(2,9,9001,b.error));c.preventDefault()};return a}dt("idb",function(){return Wc()||Sc()||!window.indexedDB?null:new mt});function ot(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}ot.prototype.Ta=function(){return this.i};ot.prototype.xa=function(){return this.h};ot.prototype.key=function(){return this.l};ot.prototype.toString=function(){return this.j};
832
+ function pt(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new ot(b,c,d,Number(a[4])):null};function qt(a,b){this.h=a;this.g=b}
833
+ function rt(a,b){var c=new P(null,0);c.Ua(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=st(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return tt(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return tt(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
831
834
  g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1}}
832
- function ut(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
833
- b.next())for(e=e.value,g=vt(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=vt(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
834
- function vt(a,b,c){var d=b.segments.map(function(e){return wt(a,e)});c.pc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
835
- roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,external:b.external}}function wt(a,b){var c=new qt("segment",a.h,a.g,b.dataKey);return new Gi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?xt(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
836
- function xt(a,b){var c=new qt("segment",a.h,a.g,b);return new Ei(function(){return[c.toString()]},0,null)};function yt(){this.g=null}r=yt.prototype;r.configure=function(){};
837
- r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:d=rt(a);c.g=d;if(null==d||"manifest"!=d.g)throw new K(2,1,9004,a);e=new Ys;ya(m);return u(m,e.init(),4);case 4:return u(m,bt(e,d.Ta(),d.ya()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new st(d.Ta(),d.ya()),l=tt(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return Ba(m),u(m,e.destroy(),7);case 7:Ca(m,0)}})};r.stop=function(){return Promise.resolve()};
835
+ function st(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
836
+ b.next())for(e=e.value,g=tt(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=tt(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
837
+ function tt(a,b,c){var d=b.segments.map(function(e){return ut(a,e)});c.pc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ak(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
838
+ roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,external:b.external}}function ut(a,b){var c=new ot("segment",a.h,a.g,b.dataKey);return new Hi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?vt(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
839
+ function vt(a,b){var c=new ot("segment",a.h,a.g,b);return new Fi(function(){return[c.toString()]},0,null)};function wt(){this.g=null}r=wt.prototype;r.configure=function(){};
840
+ r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:d=pt(a);c.g=d;if(null==d||"manifest"!=d.g)throw new K(2,1,9004,a);e=new Ws;za(m);return u(m,e.init(),4);case 4:return u(m,$s(e,d.Ta(),d.xa()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new qt(d.Ta(),d.xa()),l=rt(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return Ca(m),u(m,e.destroy(),7);case 7:Da(m,0)}})};r.stop=function(){return Promise.resolve()};
838
841
  r.update=function(){};
839
- r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return d=c.g,e=new Ys,wa(m,2,3),u(m,e.init(),5);case 5:return u(m,bt(e,d.Ta(),d.ya()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Ba(m),u(m,e.destroy(),10);case 10:Ca(m,0);break;case 2:Aa(m),m.D(3)}})};
840
- r.onInitialVariantChosen=function(){};gh["application/x-offline-manifest"]=function(){return new yt};function zt(){}function At(a){var b=rt(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=gf(a)):a=b&&"segment"==b.g?Bt(b.key(),b):ef(new K(2,1,9004,a));return a}
841
- function Bt(a,b){var c=new Ys;return gf(void 0).na(function(){return c.init()}).na(function(){return bt(c,b.Ta(),b.ya())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}G("shaka.offline.OfflineScheme",zt);zt.plugin=At;qf("offline",At);function Ct(a,b,c){var d,e,f,g,h,k;return D(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var q=!1,v=t(m),w=v.next();!w.done;w=v.next())if(w=w.value,Dt(w.info,p)){w.sessionIds.push(p.sessionId);q=!0;break}q||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Et(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
842
- function Et(a,b,c){var d,e;return D(function(f){switch(f.g){case 1:return d=new tg({Ub:b,onError:function(){},Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),wa(f,2),d.configure(a),u(f,Bg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:za(f,3);break;case 2:return Aa(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return D(function(h){if(1==
843
- h.g)return wa(h,2),u(h,Ng(d,g),4);if(2!=h.g)return e.push(g),za(h,0);Aa(h);C(h)})})),6);case 6:return u(f,d.destroy(),7);case 7:return f.return(e)}})}function Dt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&hc(a.audioCapabilities,b.audioCapabilities,c)&&hc(a.videoCapabilities,b.videoCapabilities,c)};function Ft(a,b,c){var d=b.presentationTimeline.getDuration();b=Gt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ht(a,b){var c=tt(new st(a.Ta(),a.ya()),b),d=b.appMetadata||{};c=Gt(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}}
844
- function Gt(a){var b=[],c=Be(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(se(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(te(c.value));return b};function It(){this.g={}}function Jt(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Kt(a,b){a.g[b.id]=b.bandwidth||2048}function Lt(a,b){a=a.g[b];null==a&&(a=0);return a};function Mt(a){var b=this;if(a&&a.constructor!=R)throw new K(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Lc()):(this.h=Wl(),this.g=new pf);this.i=[];this.j=[];var c=!a;this.l=new Af(function(){var d,e,f,g,h;return D(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Is(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
845
- case 4:b.h=null,b.g=null,C(k)}})})}function Nt(){if(Oc())a:{var a=t(Zs.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=Mt.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));return Yl(this.h,a)};r.getConfiguration=function(){var a=Wl();Yl(a,this.h,Wl());return a};r.Lc=function(){return this.g};
846
- r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Hs(this.g);this.j.push(f);b=Ot(this,a,b||{},function(){var g;return D(function(h){if(1==h.g)return u(h,fh(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new df(b,function(){return Is(f)});b.finally(function(){gc(d.j,f)});return Pt(this,b)};
847
- function Ot(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:return Qt(),h=g=null,k=new Ys,n=m=l=null,wa(y,2,3),u(y,d(),5);case 5:return g=y.h,u(y,Rt(a,b,g,e),6);case 6:p=y.h;St(a);q=!p.presentationTimeline.T()&&!p.presentationTimeline.Qb();if(!q)throw new K(2,9,9005,b);return u(y,Tt(a,p,function(E){n=n||E},e),7);case 7:h=y.h;St(a);if(n)throw n;return u(y,Ut(p,e),8);case 8:return u(y,k.init(),9);case 9:return St(a),u(y,$s(k),10);case 10:return l=y.h,St(a),v=Vt(h,
848
- p,b,c,e,f),w=v.oh,x=v.df,u(y,l.ya.addManifests([w]),11);case 11:z=y.h;St(a);m=z[0];St(a);if(n)throw n;return u(y,Wt(a,x,m,w,f,e,l.ya,p,h),12);case 12:return St(a),Xt(p,w,h,e),u(y,l.ya.updateManifest(m,w),13);case 13:return St(a),B=new qt("manifest",l.path.Ta,l.path.ya,m),y.return(Ht(B,w));case 3:return Ba(y),u(y,k.destroy(),14);case 14:if(!g){y.D(15);break}return u(y,g.stop(),15);case 15:if(!h){y.D(17);break}return u(y,h.destroy(),17);case 17:Ca(y,0);break;case 2:A=Aa(y);if(null==m){y.D(19);break}return u(y,
849
- Yt(m),19);case 19:throw n||A;}})}
850
- function Wt(a,b,c,d,e,f,g,h,k){var l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:l={};m=0;n=function(y,E){var F,H,J,L,M,S,X;return D(function(ka){if(1==ka.g){F={};H=t(y);for(J=H.next();!J.done;F={Jb:F.Jb},J=H.next())F.Jb=J.value,L=Es(F.Jb,f),M=F.Jb.i,S=F.Jb.h,X=function(Q){return function(pa){var Qa,Pa,jb;return D(function(ab){if(1==ab.g)return u(ab,g.addSegments([{data:pa}]),2);Qa=ab.h;St(a);Pa=Q.Jb.g;jb=Ds(Pa);l[jb]=Qa[0];m+=pa.byteLength;C(ab)})}}(F),Ks(e,F.Jb.groupId,L,M,S,X);return u(ka,
851
- Ms(e),2)}if(!E)return ka.D(0);St(a);Xt(h,d,k,f);return u(ka,g.updateManifest(c,d),0)})};p=!1;wa(A,2);if(!Zt(h)||!p||$t(h)){A.D(4);break}return u(A,n(b.filter(function(y){return y.h}),!0),5);case 5:return St(a),b=b.filter(function(y){return!y.h}),q=l,v=m,l={},m=0,u(A,au(g,c,d,q,v,function(){return St(a)}),6);case 6:St(a);case 4:if(p){A.D(7);break}return u(A,n(b,!1),8);case 8:return St(a),w=l,x=m,l={},m=0,u(A,au(g,c,d,w,x,function(){return St(a)}),9);case 9:St(a);case 7:za(A,0);break;case 2:return z=
852
- Aa(A),B=Object.values(l),u(A,g.removeSegments(B,function(){}),10);case 10:throw z;}})}function Yt(a){var b,c,d,e;return D(function(f){switch(f.g){case 1:return b=new Ys,u(f,b.init(),2);case 2:return u(f,$s(b),3);case 3:return c=f.h,d=new qt("manifest",c.path.Ta,c.path.ya,a),u(f,b.destroy(),4);case 4:return e=new Mt,u(f,e.remove(d.toString()),0)}})}
853
- function au(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,v,w,x;return D(function(z){switch(z.g){case 1:g=!1;wa(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())q=p.value,v=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=v&&(q.dataKey=v,q.pendingSegmentRefId=void 0),v=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=v&&(q.initSegmentKey=v,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
854
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(z,a.updateManifest(b,c),4);case 4:g=!0;f();za(z,0);break;case 2:return w=Aa(z),u(z,Yt(b),5);case 5:if(g){z.D(6);break}x=Object.values(d);return u(z,a.removeSegments(x,function(){}),6);case 6:throw w;}})}
855
- function Ut(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,L,M,S,X,ka,Q;return D(function(pa){switch(pa.g){case 1:return c={width:Infinity,height:Infinity},be(a,b.restrictions,c),u(pa,fe(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Qd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(se(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())q=p.value,
856
- d.push(te(q));v=t(a.imageStreams);for(w=v.next();!w.done;w=v.next())x=w.value,d.push(ue(x));return u(pa,b.offline.trackSelectionCallback(d),3);case 3:z=pa.h;B=a.presentationTimeline.getDuration();A=0;y=t(z);for(E=y.next();!E.done;E=y.next())F=E.value,H=F.bandwidth*B/8,A+=H;wa(pa,4);return u(pa,b.offline.downloadSizeCallback(A),6);case 6:J=pa.h;if(!J)throw new K(2,9,9014);za(pa,5);break;case 4:L=Aa(pa);if(L instanceof K)throw L;throw new K(2,9,9015);case 5:M=new Set;S=new Set;X=new Set;ka=t(z);for(E=
857
- ka.next();!E.done;E=ka.next())Q=E.value,"variant"==Q.type&&M.add(Q.id),"text"==Q.type&&S.add(Q.id),"image"==Q.type&&X.add(Q.id);a.variants=a.variants.filter(function(Qa){return M.has(Qa.id)});a.textStreams=a.textStreams.filter(function(Qa){return S.has(Qa.id)});a.imageStreams=a.imageStreams.filter(function(Qa){return X.has(Qa.id)});bu(a);C(pa)}})}
858
- function Vt(a,b,c,d,e,f){var g=Ft(c,b,d),h=e.offline.progressCallback;Js(f,function(q,v){g.size=v;h(g,q)},function(q,v){k&&e.offline.usePersistentLicense&&l==v&&Jg(a,"cenc",q)});var k=Zt(b)&&!$t(b),l=null;k&&(l=cu.get(a.g.keySystem));for(var m=new It,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Kt(m,p.value);p=t(b.variants);for(n=p.next();!n.done;n=p.next())Jt(m,n.value);m=du(f,m,b,e);f=m.streams;m=m.df;p=a.g;n=e.offline.usePersistentLicense;
859
- p&&n&&(p.initData=[]);return{oh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Kc(),streams:f,sessionIds:n?Sg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},df:m}}function Zt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
860
- function $t(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 Xt(a,b,c,d){b.expiration=c.Kc();c=Sg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Zt(a)&&d.offline.usePersistentLicense&&!c.length)throw new K(2,9,9007);}r.remove=function(a){return eu(this,fu(this,a))};
861
- function fu(a,b){var c,d,e,f,g,h;return D(function(k){switch(k.g){case 1:Qt();c=rt(b);if(null==c||"manifest"!=c.g)throw new K(2,9,9004,b);d=c;e=new Ys;ya(k);return u(k,e.init(),4);case 4:return u(k,bt(e,d.Ta(),d.ya()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([gu(a,h,e),hu(f,d,h)]),2);case 2:return Ba(k),u(k,e.destroy(),8);case 8:Ca(k,0)}})}
862
- function iu(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:zd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:zd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function gu(a,b,c){return D(function(d){return u(d,ju(a.g,a.h.drm,c,b),0)})}
863
- function hu(a,b,c){function d(){}var e=ku(c);Ht(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.Fh=function(){return eu(this,lu(this))};
864
- function lu(a){var b,c,d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:return Qt(),b=a.g,c=a.h.drm,d=new Ys,e=!1,ya(n),u(n,d.init(),4);case 4:f=[],ct(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,Ct(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return Ba(n),u(n,d.destroy(),11);case 11:Ca(n,3);break;case 3:return n.return(!e)}})}
865
- r.list=function(){return eu(this,mu())};function mu(){var a,b,c;return D(function(d){switch(d.g){case 1:return Qt(),a=[],b=new Ys,ya(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),at(b,function(e,f){c=c.then(function(){var g;return D(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Ht(new qt("manifest",e.Ta,e.ya,l),k);a.push(k)});C(h)})})}),u(d,c,2);case 2:return Ba(d),u(d,b.destroy(),6);case 6:Ca(d,3);break;case 3:return d.return(a)}})}
866
- function Rt(a,b,c,d){var e,f,g,h,k;return D(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},
867
- c.configure(d.manifest),St(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,St(a),k=nu(h),u(l,Promise.all(kb(k,function(m){return m.createSegmentIndex()})),3);St(a);if(e)throw e;return l.return(h)})}function Tt(a,b,c,d){var e;return D(function(f){return 1==f.g?(e=new tg({Ub:a.g,onError:c,Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,yg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?u(f,Lg(e),3):f.return(e)})}
868
- function du(a,b,c,d){var e=new Map,f=nu(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=ou(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),df:Array.from(e.values())}}
869
- function ou(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
870
- tilesLayout:d.tilesLayout,external:d.external},h=e.offline.numberOfParallelDownloads,k=0;pu(d,c.presentationTimeline.eb(),function(l){var m=Ds(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Lt(b,d.id)*p;p=Gs(a.g,p);f.set(m,new Cs(l,p,k,!1))}l.g&&(n=Ds(l.g),f.has(n)||(p=.5*Lt(b,d.id),p=Gs(a.g,p),f.set(n,new Cs(l.g,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,
871
- timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function pu(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 St(a){if(a.l.g)throw new K(2,9,7001);}function Qt(){if(!Nt())throw new K(2,9,9E3);}function eu(a,b){return D(function(c){if(1==c.g)return a.i.push(b),ya(c),u(c,b,4);if(2!=c.g)return c.return(c.h);Ba(c);gc(a.i,b);return Ca(c,0)})}
872
- function Pt(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){gc(a.i,c)})}function ku(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
873
- function ju(a,b,c,d){var e,f,g;return D(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=dt(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:iu(d,!1),videoCapabilities:iu(d,!0)}});return u(h,Ct(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
874
- function nu(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
875
- function bu(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}G("shaka.offline.Storage",Mt);Mt.deleteAll=function(){var a;return D(function(b){return 1==b.g?(a=new Ys,ya(b),u(b,et(a),2)):5!=b.g?(Ba(b),u(b,a.destroy(),5)):Ca(b,0)})};Mt.prototype.list=Mt.prototype.list;
876
- Mt.prototype.removeEmeSessions=Mt.prototype.Fh;Mt.prototype.remove=Mt.prototype.remove;Mt.prototype.store=Mt.prototype.store;Mt.prototype.getNetworkingEngine=Mt.prototype.Lc;Mt.prototype.getConfiguration=Mt.prototype.getConfiguration;Mt.prototype.configure=Mt.prototype.configure;Mt.prototype.destroy=Mt.prototype.destroy;Mt.support=Nt;
877
- var cu=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
878
- Jn.offline=Nt;function qu(){}function ru(){for(var a=t(su),b=a.next();!b.done;b=a.next()){b=b.value;try{b.sg()}catch(c){Za("Error installing polyfill!",c)}}}function tu(a,b){a={priority:b||0,sg:a};for(b=0;b<su.length;b++)if(su[b].priority<a.priority){su.splice(b,0,a);return}su.push(a)}G("shaka.polyfill",qu);qu.register=tu;qu.installAll=ru;var su=[];function uu(){this.g=new vu}function wu(){window.AbortController||(window.AbortController=uu,window.AbortSignal=vu)}uu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new I("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(uu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});qu.AbortController=uu;uu.install=wu;
879
- function vu(){ib.call(this);this.h=!1;this.g=void 0;this.onabort=null}ra(vu,ib);da.Object.defineProperties(vu.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});tu(wu);function xu(){}function yu(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())zu(b.value)}function zu(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)}})}qu.Aria=xu;xu.install=yu;tu(yu);function Au(){}function Bu(){Cu()}qu.EncryptionScheme=Au;Au.install=Bu;tu(Bu,-2);function Du(){}
880
- function Eu(){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}}),
881
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Fu);document.addEventListener("webkitfullscreenerror",Fu);document.addEventListener("mozfullscreenchange",Fu);document.addEventListener("mozfullscreenerror",Fu);document.addEventListener("MSFullscreenChange",Fu);document.addEventListener("MSFullscreenError",Fu)}}
882
- function Fu(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)}qu.Fullscreen=Du;Du.install=Eu;tu(Eu);function Gu(){}function Hu(){var a=!0;if(Xc()||Tc("PlayStation 5")||Yc()||Tc("Web0S")||Uc()||Wc()||Tc("PC=EOS")||Tc("Hisense")||Tc("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Iu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Ju)}
883
- function Ju(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Oc())return A.return(b);if(c){if(Wc())if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var y=c.contentType;c.width&&c.height&&(y+="; width="+c.width+"; height="+c.height);c.framerate&&(y+="; framerate="+c.framerate);"pq"===c.transferFunction&&
842
+ r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return d=c.g,e=new Ws,xa(m,2,3),u(m,e.init(),5);case 5:return u(m,$s(e,d.Ta(),d.xa()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Ca(m),u(m,e.destroy(),10);case 10:Da(m,0);break;case 2:Ba(m),m.D(3)}})};
843
+ r.onInitialVariantChosen=function(){};hh["application/x-offline-manifest"]=function(){return new wt};function xt(){}function yt(a){var b=pt(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=hf(a)):a=b&&"segment"==b.g?zt(b.key(),b):ff(new K(2,1,9004,a));return a}
844
+ function zt(a,b){var c=new Ws;return hf(void 0).ma(function(){return c.init()}).ma(function(){return $s(c,b.Ta(),b.xa())}).ma(function(d){return d.getSegments([b.key()])}).ma(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}G("shaka.offline.OfflineScheme",xt);xt.plugin=yt;rf("offline",yt);function At(a,b,c){var d,e,f,g,h,k;return D(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var q=!1,v=t(m),w=v.next();!w.done;w=v.next())if(w=w.value,Bt(w.info,p)){w.sessionIds.push(p.sessionId);q=!0;break}q||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Ct(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
845
+ function Ct(a,b,c){var d,e;return D(function(f){switch(f.g){case 1:return d=new ug({Ub:b,onError:function(){},Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),xa(f,2),d.configure(a),u(f,Cg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:Aa(f,3);break;case 2:return Ba(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return D(function(h){if(1==
846
+ h.g)return xa(h,2),u(h,Og(d,g),4);if(2!=h.g)return e.push(g),Aa(h,0);Ba(h);C(h)})})),6);case 6:return u(f,d.destroy(),7);case 7:return f.return(e)}})}function Bt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&hc(a.audioCapabilities,b.audioCapabilities,c)&&hc(a.videoCapabilities,b.videoCapabilities,c)};function Dt(a,b,c){var d=b.presentationTimeline.getDuration();b=Et(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ft(a,b){var c=rt(new qt(a.Ta(),a.xa()),b),d=b.appMetadata||{};c=Et(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}}
847
+ function Et(a){var b=[],c=Ce(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(te(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ue(c.value));return b};function Gt(){this.g={}}function Ht(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function It(a,b){a.g[b.id]=b.bandwidth||2048}function Jt(a,b){a=a.g[b];null==a&&(a=0);return a};function Kt(a){var b=this;if(a&&a.constructor!=S)throw new K(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Lc()):(this.h=Wl(),this.g=new qf);this.i=[];this.j=[];var c=!a;this.l=new Bf(function(){var d,e,f,g,h;return D(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Gs(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
848
+ case 4:b.h=null,b.g=null,C(k)}})})}function Lt(){if(Oc())a:{var a=t(Xs.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=Kt.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));return Yl(this.h,a)};r.getConfiguration=function(){var a=Wl();Yl(a,this.h,Wl());return a};r.Lc=function(){return this.g};
849
+ r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Fs(this.g);this.j.push(f);b=Mt(this,a,b||{},function(){var g;return D(function(h){if(1==h.g)return u(h,gh(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new ef(b,function(){return Gs(f)});b.finally(function(){gc(d.j,f)});return Nt(this,b)};
850
+ function Mt(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:return Ot(),h=g=null,k=new Ws,n=m=l=null,xa(y,2,3),u(y,d(),5);case 5:return g=y.h,u(y,Pt(a,b,g,e),6);case 6:p=y.h;Qt(a);q=!p.presentationTimeline.T()&&!p.presentationTimeline.Qb();if(!q)throw new K(2,9,9005,b);return u(y,Rt(a,p,function(E){n=n||E},e),7);case 7:h=y.h;Qt(a);if(n)throw n;return u(y,St(p,e),8);case 8:return u(y,k.init(),9);case 9:return Qt(a),u(y,Ys(k),10);case 10:return l=y.h,Qt(a),v=Tt(h,
851
+ p,b,c,e,f),w=v.ph,x=v.cf,u(y,l.xa.addManifests([w]),11);case 11:z=y.h;Qt(a);m=z[0];Qt(a);if(n)throw n;return u(y,Ut(a,x,m,w,f,e,l.xa,p,h),12);case 12:return Qt(a),Vt(p,w,h,e),u(y,l.xa.updateManifest(m,w),13);case 13:return Qt(a),B=new ot("manifest",l.path.Ta,l.path.xa,m),y.return(Ft(B,w));case 3:return Ca(y),u(y,k.destroy(),14);case 14:if(!g){y.D(15);break}return u(y,g.stop(),15);case 15:if(!h){y.D(17);break}return u(y,h.destroy(),17);case 17:Da(y,0);break;case 2:A=Ba(y);if(null==m){y.D(19);break}return u(y,
852
+ Wt(m),19);case 19:throw n||A;}})}
853
+ function Ut(a,b,c,d,e,f,g,h,k){var l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:l={};m=0;n=function(y,E){var F,H,J,N,L,O,X;return D(function(da){if(1==da.g){F={};H=t(y);for(J=H.next();!J.done;F={Ib:F.Ib},J=H.next())F.Ib=J.value,N=Cs(F.Ib,f),L=F.Ib.i,O=F.Ib.h,X=function(R){return function(na){var Pa,Qa,eb;return D(function(Za){if(1==Za.g)return u(Za,g.addSegments([{data:na}]),2);Pa=Za.h;Qt(a);Qa=R.Ib.g;eb=Bs(Qa);l[eb]=Pa[0];m+=na.byteLength;C(Za)})}}(F),Is(e,F.Ib.groupId,N,L,O,X);return u(da,
854
+ Ks(e),2)}if(!E)return da.D(0);Qt(a);Vt(h,d,k,f);return u(da,g.updateManifest(c,d),0)})};p=!1;xa(A,2);if(!Xt(h)||!p||Yt(h)){A.D(4);break}return u(A,n(b.filter(function(y){return y.h}),!0),5);case 5:return Qt(a),b=b.filter(function(y){return!y.h}),q=l,v=m,l={},m=0,u(A,Zt(g,c,d,q,v,function(){return Qt(a)}),6);case 6:Qt(a);case 4:if(p){A.D(7);break}return u(A,n(b,!1),8);case 8:return Qt(a),w=l,x=m,l={},m=0,u(A,Zt(g,c,d,w,x,function(){return Qt(a)}),9);case 9:Qt(a);case 7:Aa(A,0);break;case 2:return z=
855
+ Ba(A),B=Object.values(l),u(A,g.removeSegments(B,function(){}),10);case 10:throw z;}})}function Wt(a){var b,c,d,e;return D(function(f){switch(f.g){case 1:return b=new Ws,u(f,b.init(),2);case 2:return u(f,Ys(b),3);case 3:return c=f.h,d=new ot("manifest",c.path.Ta,c.path.xa,a),u(f,b.destroy(),4);case 4:return e=new Kt,u(f,e.remove(d.toString()),0)}})}
856
+ function Zt(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,v,w,x;return D(function(z){switch(z.g){case 1:g=!1;xa(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())q=p.value,v=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=v&&(q.dataKey=v,q.pendingSegmentRefId=void 0),v=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=v&&(q.initSegmentKey=v,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
857
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(z,a.updateManifest(b,c),4);case 4:g=!0;f();Aa(z,0);break;case 2:return w=Ba(z),u(z,Wt(b),5);case 5:if(g){z.D(6);break}x=Object.values(d);return u(z,a.removeSegments(x,function(){}),6);case 6:throw w;}})}
858
+ function St(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y,E,F,H,J,N,L,O,X,da,R;return D(function(na){switch(na.g){case 1:return c={width:Infinity,height:Infinity},ce(a,b.restrictions,c),u(na,ge(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Rd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(te(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())q=p.value,
859
+ d.push(ue(q));v=t(a.imageStreams);for(w=v.next();!w.done;w=v.next())x=w.value,d.push(ve(x));return u(na,b.offline.trackSelectionCallback(d),3);case 3:z=na.h;B=a.presentationTimeline.getDuration();A=0;y=t(z);for(E=y.next();!E.done;E=y.next())F=E.value,H=F.bandwidth*B/8,A+=H;xa(na,4);return u(na,b.offline.downloadSizeCallback(A),6);case 6:J=na.h;if(!J)throw new K(2,9,9014);Aa(na,5);break;case 4:N=Ba(na);if(N instanceof K)throw N;throw new K(2,9,9015);case 5:L=new Set;O=new Set;X=new Set;da=t(z);for(E=
860
+ da.next();!E.done;E=da.next())R=E.value,"variant"==R.type&&L.add(R.id),"text"==R.type&&O.add(R.id),"image"==R.type&&X.add(R.id);a.variants=a.variants.filter(function(Pa){return L.has(Pa.id)});a.textStreams=a.textStreams.filter(function(Pa){return O.has(Pa.id)});a.imageStreams=a.imageStreams.filter(function(Pa){return X.has(Pa.id)});$t(a);C(na)}})}
861
+ function Tt(a,b,c,d,e,f){var g=Dt(c,b,d),h=e.offline.progressCallback;Hs(f,function(q,v){g.size=v;h(g,q)},function(q,v){k&&e.offline.usePersistentLicense&&l==v&&Kg(a,"cenc",q)});var k=Xt(b)&&!Yt(b),l=null;k&&(l=au.get(a.g.keySystem));for(var m=new Gt,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())It(m,p.value);p=t(b.variants);for(n=p.next();!n.done;n=p.next())Ht(m,n.value);m=bu(f,m,b,e);f=m.streams;m=m.cf;p=a.g;n=e.offline.usePersistentLicense;
862
+ p&&n&&(p.initData=[]);return{ph:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Kc(),streams:f,sessionIds:n?Tg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},cf:m}}function Xt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
863
+ function Yt(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 Vt(a,b,c,d){b.expiration=c.Kc();c=Tg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Xt(a)&&d.offline.usePersistentLicense&&!c.length)throw new K(2,9,9007);}r.remove=function(a){return cu(this,du(this,a))};
864
+ function du(a,b){var c,d,e,f,g,h;return D(function(k){switch(k.g){case 1:Ot();c=pt(b);if(null==c||"manifest"!=c.g)throw new K(2,9,9004,b);d=c;e=new Ws;za(k);return u(k,e.init(),4);case 4:return u(k,$s(e,d.Ta(),d.xa()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([eu(a,h,e),fu(f,d,h)]),2);case 2:return Ca(k),u(k,e.destroy(),8);case 8:Da(k,0)}})}
865
+ function gu(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:zd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:zd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function eu(a,b,c){return D(function(d){return u(d,hu(a.g,a.h.drm,c,b),0)})}
866
+ function fu(a,b,c){function d(){}var e=iu(c);Ft(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.Gh=function(){return cu(this,ju(this))};
867
+ function ju(a){var b,c,d,e,f,g,h,k,l,m;return D(function(n){switch(n.g){case 1:return Ot(),b=a.g,c=a.h.drm,d=new Ws,e=!1,za(n),u(n,d.init(),4);case 4:f=[],at(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,At(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return Ca(n),u(n,d.destroy(),11);case 11:Da(n,3);break;case 3:return n.return(!e)}})}
868
+ r.list=function(){return cu(this,ku())};function ku(){var a,b,c;return D(function(d){switch(d.g){case 1:return Ot(),a=[],b=new Ws,za(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Zs(b,function(e,f){c=c.then(function(){var g;return D(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Ft(new ot("manifest",e.Ta,e.xa,l),k);a.push(k)});C(h)})})}),u(d,c,2);case 2:return Ca(d),u(d,b.destroy(),6);case 6:Da(d,3);break;case 3:return d.return(a)}})}
869
+ function Pt(a,b,c,d){var e,f,g,h,k;return D(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},
870
+ c.configure(d.manifest),Qt(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Qt(a),k=lu(h),u(l,Promise.all(kb(k,function(m){return m.createSegmentIndex()})),3);Qt(a);if(e)throw e;return l.return(h)})}function Rt(a,b,c,d){var e;return D(function(f){return 1==f.g?(e=new ug({Ub:a.g,onError:c,Jd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,zg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?u(f,Mg(e),3):f.return(e)})}
871
+ function bu(a,b,c,d){var e=new Map,f=lu(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=mu(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),cf:Array.from(e.values())}}
872
+ function mu(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
873
+ tilesLayout:d.tilesLayout,external:d.external},h=e.offline.numberOfParallelDownloads,k=0;nu(d,c.presentationTimeline.eb(),function(l){var m=Bs(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Jt(b,d.id)*p;p=Es(a.g,p);f.set(m,new As(l,p,k,!1))}l.h&&(n=Bs(l.h),f.has(n)||(p=.5*Jt(b,d.id),p=Es(a.g,p),f.set(n,new As(l.h,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,
874
+ timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function nu(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 Qt(a){if(a.l.g)throw new K(2,9,7001);}function Ot(){if(!Lt())throw new K(2,9,9E3);}function cu(a,b){return D(function(c){if(1==c.g)return a.i.push(b),za(c),u(c,b,4);if(2!=c.g)return c.return(c.h);Ca(c);gc(a.i,b);return Da(c,0)})}
875
+ function Nt(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){gc(a.i,c)})}function iu(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
876
+ function hu(a,b,c,d){var e,f,g;return D(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=bt(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:gu(d,!1),videoCapabilities:gu(d,!0)}});return u(h,At(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
877
+ function lu(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
878
+ function $t(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}G("shaka.offline.Storage",Kt);Kt.deleteAll=function(){var a;return D(function(b){return 1==b.g?(a=new Ws,za(b),u(b,ct(a),2)):5!=b.g?(Ca(b),u(b,a.destroy(),5)):Da(b,0)})};Kt.prototype.list=Kt.prototype.list;
879
+ Kt.prototype.removeEmeSessions=Kt.prototype.Gh;Kt.prototype.remove=Kt.prototype.remove;Kt.prototype.store=Kt.prototype.store;Kt.prototype.getNetworkingEngine=Kt.prototype.Lc;Kt.prototype.getConfiguration=Kt.prototype.getConfiguration;Kt.prototype.configure=Kt.prototype.configure;Kt.prototype.destroy=Kt.prototype.destroy;Kt.support=Lt;
880
+ var au=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
881
+ Jn.offline=Lt;function ou(){}function pu(){for(var a=t(qu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.sg()}catch(c){Ya("Error installing polyfill!",c)}}}function ru(a,b){a={priority:b||0,sg:a};for(b=0;b<qu.length;b++)if(qu[b].priority<a.priority){qu.splice(b,0,a);return}qu.push(a)}G("shaka.polyfill",ou);ou.register=ru;ou.installAll=pu;var qu=[];function su(){this.g=new tu}function uu(){window.AbortController||(window.AbortController=su,window.AbortSignal=tu)}su.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new I("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(su.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ou.AbortController=su;su.install=uu;
882
+ function tu(){jb.call(this);this.h=!1;this.g=void 0;this.onabort=null}sa(tu,jb);ea.Object.defineProperties(tu.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ru(uu);function vu(){}function wu(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())xu(b.value)}function xu(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)}})}ou.Aria=vu;vu.install=wu;ru(wu);function yu(){}function zu(){Au()}ou.EncryptionScheme=yu;yu.install=zu;ru(zu,-2);function Bu(){}
883
+ function Cu(){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}}),
884
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Du);document.addEventListener("webkitfullscreenerror",Du);document.addEventListener("mozfullscreenchange",Du);document.addEventListener("mozfullscreenerror",Du);document.addEventListener("MSFullscreenChange",Du);document.addEventListener("MSFullscreenError",Du)}}
885
+ function Du(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)}ou.Fullscreen=Bu;Bu.install=Cu;ru(Cu);function Eu(){}function Fu(){var a=!0;if(Xc()||Tc("PlayStation 5")||Yc()||Tc("Web0S")||Uc()||Wc()||Tc("PC=EOS")||Tc("Hisense")||Tc("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Gu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Hu)}
886
+ function Hu(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Oc())return A.return(b);if(c){if(Wc())if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var y=c.contentType;c.width&&c.height&&(y+="; width="+c.width+"; height="+c.height);c.framerate&&(y+="; framerate="+c.framerate);"pq"===c.transferFunction&&
884
887
  (y+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(y)}else e=dc(c.contentType);else Uc()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=dc(f)):e=dc(c.contentType);if(!e)return A.return(b)}if(d&&(Wc()&&d.spatialRendering?(h=d.contentType+"; spatialRendering=true",g=dc(h)):g=dc(d.contentType),!g))return A.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=Pc(k),
885
888
  !l)||d&&(m=d.contentType,n=Pc(m),!n))return A.return(b)}else return A.return(b);if(!a.keySystemConfiguration)return b.supported=!0,A.return(Promise.resolve(b));p=a.keySystemConfiguration;q=[];v=[];p.audio&&(w={robustness:p.audio.robustness||"",contentType:a.audio.contentType},Uc()&&a.audio.contentType.includes('codecs="ac-3"')&&(w={robustness:w.robustness,contentType:'audio/mp4; codecs="ec-3"'}),q.push(w));p.video&&(x={robustness:p.video.robustness||"",contentType:a.video.contentType},v.push(x));
886
- z={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};q.length&&(z.audioCapabilities=q);v.length&&(z.videoCapabilities=v);wa(A,3);return u(A,navigator.requestMediaKeySystemAccess(p.keySystem,[z]),5);case 5:B=A.h;za(A,4);break;case 3:Aa(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}qu.MediaCapabilities=Gu;Gu.install=Hu;var Iu=null;Gu.originalMcap=Iu;tu(Hu,-1);function Ku(){}function Lu(){var a=Zc();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Mu():a?12>=a?(Nu(),Ou()):15>=a&&Nu():Rc()?Pu():(Tc("Tizen 2")||Tc("Tizen 3")||Tc("Tizen 4"))&&Qu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Ru()}
887
- function Nu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}function Ou(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Pu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
888
- function Qu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Cd(b)[0]&&a(b)}}function Mu(){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)}}
889
- function Ru(){var a=MediaSource.isTypeSupported;Tc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}qu.MediaSource=Ku;Ku.install=Lu;tu(Lu);function Su(){}function Tu(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Uu():void 0!=window.orientation&&Vu())}function Uu(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
890
- function Vu(){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 Wu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new I("change");b.dispatchEvent(c)})}qu.Orientation=Su;Su.install=Tu;function Wu(){ib.call(this);this.type="";this.angle=0}ra(Wu,ib);
891
- Wu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
892
- Wu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};tu(Tu);function Xu(){}var Yu,Zu,$u,av,bv,cv;function dv(a,b){try{var c=new ev(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function fv(a){var b=this.mediaKeys;b&&b!=a&&gv(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?gv(a,this):Promise.resolve()}
893
- function hv(a){a=Gc(a.initData);if(Kc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=dd(a.subarray(4),!0);a=gd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Hc(a);this.dispatchEvent(b)}qu.PatchedMediaKeysApple=Xu;
894
- Xu.uninstall=function(){Yu&&(Yu=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Zu),HTMLMediaElement.prototype.setMediaKeys=$u,window.MediaKeys=av,window.MediaKeySystemAccess=bv,navigator.requestMediaKeySystemAccess=cv,Zu=cv=$u=bv=av=null,window.shakaMediaKeysPolyfill=!1)};
895
- Xu.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Yu=!0,Zu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),$u=HTMLMediaElement.prototype.setMediaKeys,av=window.MediaKeys,bv=window.MediaKeySystemAccess,cv=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=fv;window.MediaKeys=iv;window.MediaKeySystemAccess=ev;navigator.requestMediaKeySystemAccess=
896
- dv;window.shakaMediaKeysPolyfill=!0}};
897
- function ev(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
889
+ z={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};q.length&&(z.audioCapabilities=q);v.length&&(z.videoCapabilities=v);xa(A,3);return u(A,navigator.requestMediaKeySystemAccess(p.keySystem,[z]),5);case 5:B=A.h;Aa(A,4);break;case 3:Ba(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}ou.MediaCapabilities=Eu;Eu.install=Fu;var Gu=null;Eu.originalMcap=Gu;ru(Fu,-1);function Iu(){}function Ju(){var a=Zc();window.MediaSource&&(Wc()?Ku():a?12>=a?(Lu(),Mu()):15>=a&&Lu():Rc()?Ku():(Tc("Tizen 2")||Tc("Tizen 3")||Tc("Tizen 4"))&&Nu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Ou()}function Lu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}
890
+ function Mu(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Ku(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}function Nu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Cd(b)[0]&&a(b)}}
891
+ function Ou(){var a=MediaSource.isTypeSupported;Tc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}ou.MediaSource=Iu;Iu.install=Ju;ru(Ju);function Pu(){}function Qu(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Ru():void 0!=window.orientation&&Su())}function Ru(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
892
+ function Su(){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 Tu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new I("change");b.dispatchEvent(c)})}ou.Orientation=Pu;Pu.install=Qu;function Tu(){jb.call(this);this.type="";this.angle=0}sa(Tu,jb);
893
+ Tu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
894
+ Tu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};ru(Qu);function Uu(){}var Vu,Wu,Xu,Yu,Zu,$u;function av(a,b){try{var c=new bv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function cv(a){var b=this.mediaKeys;b&&b!=a&&dv(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?dv(a,this):Promise.resolve()}
895
+ function ev(a){a=Gc(a.initData);if(Kc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=dd(a.subarray(4),!0);a=gd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Hc(a);this.dispatchEvent(b)}ou.PatchedMediaKeysApple=Uu;
896
+ Uu.uninstall=function(){Vu&&(Vu=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Wu),HTMLMediaElement.prototype.setMediaKeys=Xu,window.MediaKeys=Yu,window.MediaKeySystemAccess=Zu,navigator.requestMediaKeySystemAccess=$u,Wu=$u=Xu=Zu=Yu=null,window.shakaMediaKeysPolyfill=!1)};
897
+ Uu.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Vu=!0,Wu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Xu=HTMLMediaElement.prototype.setMediaKeys,Yu=window.MediaKeys,Zu=window.MediaKeySystemAccess,$u=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=cv;window.MediaKeys=fv;window.MediaKeySystemAccess=bv;navigator.requestMediaKeySystemAccess=
898
+ av;window.shakaMediaKeysPolyfill=!0}};
899
+ function bv(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
898
900
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
899
- ev.prototype.createMediaKeys=function(){var a=new iv(this.keySystem);return Promise.resolve(a)};ev.prototype.getConfiguration=function(){return this.g};function iv(a){this.h=new WebKitMediaKeys(a);this.g=new Cf}iv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new jv(this.h,a)};iv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
900
- function gv(a,b){a.g.gb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",hv);try{return Jj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function jv(a){ib.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Cf;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new kv}ra(jv,ib);r=jv.prototype;
901
- r.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Gc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",Hc(e.message));e=new I("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(lv(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
902
- function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lv(c,"output-not-allowed");break;default:lv(c,"internal-error")}});lv(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
903
- r.update=function(a){this.g=new Lc;try{this.i.update(Gc(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.gb()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function lv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}
904
- function kv(){this.size=0;this.g=void 0}r=kv.prototype;r.ic=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function mv(){}function nv(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ov,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=pv,window.MediaKeys=qv,window.MediaKeySystemAccess=rv,window.shakaMediaKeysPolyfill=!0)}function ov(){return Promise.reject(Error("The key system specified is not supported."))}
905
- function pv(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}qu.PatchedMediaKeysNop=mv;mv.install=nv;function qv(){throw new TypeError("Illegal constructor.");}qv.prototype.createSession=function(){};qv.prototype.setServerCertificate=function(){};function rv(){this.keySystem="";throw new TypeError("Illegal constructor.");}rv.prototype.getConfiguration=function(){};rv.prototype.createMediaKeys=function(){};tu(nv,-10);function sv(){}
906
- function tv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)uv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=vv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=wv;window.MediaKeys=xv;window.MediaKeySystemAccess=yv;window.shakaMediaKeysPolyfill=!0}}
907
- function zv(a){var b=uv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function vv(a,b){try{var c=new yv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function wv(a){var b=this.mediaKeys;b&&b!=a&&Av(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Av(a,this);return Promise.resolve()}qu.PatchedMediaKeysWebkit=sv;sv.install=tv;
908
- function yv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
901
+ bv.prototype.createMediaKeys=function(){var a=new fv(this.keySystem);return Promise.resolve(a)};bv.prototype.getConfiguration=function(){return this.g};function fv(a){this.h=new WebKitMediaKeys(a);this.g=new Df}fv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new gv(this.h,a)};fv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
902
+ function dv(a,b){a.g.gb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",ev);try{return Kj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function gv(a){jb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Df;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new hv}sa(gv,jb);r=gv.prototype;
903
+ r.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Gc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",Hc(e.message));e=new I("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(iv(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
904
+ function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:iv(c,"output-not-allowed");break;default:iv(c,"internal-error")}});iv(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
905
+ r.update=function(a){this.g=new Lc;try{this.i.update(Gc(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.gb()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function iv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}
906
+ function hv(){this.size=0;this.g=void 0}r=hv.prototype;r.ic=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,eh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=eh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function jv(){}function kv(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=lv,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=mv,window.MediaKeys=nv,window.MediaKeySystemAccess=ov,window.shakaMediaKeysPolyfill=!0)}function lv(){return Promise.reject(Error("The key system specified is not supported."))}
907
+ function mv(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}ou.PatchedMediaKeysNop=jv;jv.install=kv;function nv(){throw new TypeError("Illegal constructor.");}nv.prototype.createSession=function(){};nv.prototype.setServerCertificate=function(){};function ov(){this.keySystem="";throw new TypeError("Illegal constructor.");}ov.prototype.getConfiguration=function(){};ov.prototype.createMediaKeys=function(){};ru(kv,-10);function pv(){}
908
+ function qv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)rv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=sv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=tv;window.MediaKeys=uv;window.MediaKeySystemAccess=vv;window.shakaMediaKeysPolyfill=!0}}
909
+ function wv(a){var b=rv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function sv(a,b){try{var c=new vv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function tv(a){var b=this.mediaKeys;b&&b!=a&&xv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&xv(a,this);return Promise.resolve()}ou.PatchedMediaKeysWebkit=pv;pv.install=qv;
910
+ function vv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
909
911
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
910
- d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}yv.prototype.createMediaKeys=function(){var a=new xv(this.g);return Promise.resolve(a)};yv.prototype.getConfiguration=function(){return this.h};function xv(a){this.l=a;this.h=null;this.g=new Cf;this.i=[];this.j=new Map}
911
- function Av(a,b){a.h=b;a.g.gb();var c=uv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Bv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new I("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Bv(a,d.sessionId))Cv(d,"usable"),
912
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Bv(a,d.sessionId);e&&e.handleError(d)}))}xv.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 Dv(b,this.l,a);this.i.push(a);return a};xv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
913
- function Bv(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 Dv(a,b,c){ib.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new Ev}ra(Dv,ib);r=Dv.prototype;
914
- r.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?Cv(this,"output-restricted"):1==b?Cv(this,"expired"):Cv(this,"internal-error"))};
915
- function Fv(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Gc(gd("LOAD_SESSION|"+c));else{var e=gd("PERSISTENT|");d=od(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=zv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new N(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
916
- function Gv(a,b,c){if(a.g)a.g.then(function(){return Gv(a,b,c)}).catch(function(){return Gv(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=cd(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=ld(e.keys[0].k);e=ld(e.keys[0].kid)}else d=Gc(c),e=null;var f=zv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
917
- function Cv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return Fv(this,b,null)};r.load=function(a){return"persistent-license"==this.l?Fv(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Lc;Gv(this,b,a);return b};
918
- r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=zv("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ev(){this.size=0;this.g=void 0}r=Ev.prototype;r.ic=function(){return this.g};
919
- r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var uv="";tu(tv);function Hv(){}function Iv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Jv,Object.defineProperty(a,"disablePictureInPicture",{get:Kv,set:Lv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Mv,document.addEventListener("webkitpresentationmodechanged",Nv,!0))}}
920
- function Nv(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
921
- function Jv(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Mv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
922
- function Kv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Lv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}qu.PiPWebkit=Hv;Hv.install=Iv;tu(Iv);function Ov(){}function Pv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Qv))}function Qv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}qu.RandomUUID=Ov;Ov.install=Pv;tu(Pv);function Rv(){}function Sv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Tv)}function Tv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}qu.StorageEstimate=Rv;Rv.install=Sv;tu(Sv);function Uv(){}function Vv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Wv})}function Wv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}qu.Symbol=Uv;Uv.install=Vv;tu(Vv);function Xv(){}function Yv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}qu.VideoPlayPromise=Xv;Xv.install=Yv;tu(Yv);function Zv(){}function $v(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Vc())&&(a.getVideoPlaybackQuality=aw)}}function aw(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}qu.VideoPlaybackQuality=Zv;Zv.install=$v;tu($v);function bw(){}function cw(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=dw;else if(6==b)a=ew;else{try{var c=!!dw(1,2,"")}catch(d){c=!1}c&&(a=dw)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function dw(a,b,c){return new window.TextTrackCue(a,b,c)}function ew(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}qu.VTTCue=bw;bw.install=cw;tu(cw);function fw(){}fw.prototype.parseInit=function(){};fw.prototype.setSequenceMode=function(){};fw.prototype.parseMedia=function(a,b){var c=null,d=[];a=cd(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=gw.exec(e))){var f=hw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};G("shaka.text.LrcTextParser",fw);fw.prototype.parseMedia=fw.prototype.parseMedia;
923
- fw.prototype.setSequenceMode=fw.prototype.setSequenceMode;fw.prototype.parseInit=fw.prototype.parseInit;var gw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,hw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Gd["application/x-subtitle-lrc"]=function(){return new fw};function iw(){}iw.prototype.parseInit=function(){};iw.prototype.setSequenceMode=function(){};
924
- iw.prototype.parseMedia=function(a,b,c){var d=cd(a);a=[];if(""==d)return a;var e=qg(d,"tt");if(!e)throw new K(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=eg(e,jw,"frameRate"),g=eg(e,jw,"subFrameRate"),h=eg(e,jw,"frameRateMultiplier"),k=eg(e,jw,"tickRate"),l=eg(e,jw,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=eg(e,kw,"extent");if("default"!=m&&"preserve"!=m)throw new K(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new lw(f,
925
- g,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])?cg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=t(e),q=p.next();!q.done;q=p.next()){var v=q.value;q=new lc;var w=v.getAttribute("xml:id");if(w){q.id=w;var x=null;n&&(x=mw.exec(n)||nw.exec(n));w=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,B=ow(v,h,"extent");if(B){var A=(z=mw.exec(B))||
926
- nw.exec(B);null!=A&&(q.width=Number(A[1]),q.height=Number(A[2]),z||(null!=w&&(q.width=100*q.width/w),null!=x&&(q.height=100*q.height/x)),q.widthUnits=z||null!=w?Bc:0,q.heightUnits=z||null!=x?Bc:0)}if(v=ow(v,h,"origin"))if(A=(z=mw.exec(v))||nw.exec(v),null!=A)q.viewportAnchorX=Number(A[1]),q.viewportAnchorY=Number(A[2]),z?B||(q.width=100-q.viewportAnchorX,q.widthUnits=Bc,q.height=100-q.viewportAnchorY,q.heightUnits=Bc):(null!=x&&(q.viewportAnchorY=100*q.viewportAnchorY/x),null!=w&&(q.viewportAnchorX=
927
- 100*q.viewportAnchorX/w)),q.viewportAnchorUnits=z||null!=w?Bc:0}else q=null;q&&k.push(q)}if($f(d,"p").length)throw new K(2,2,2001,"<p> can only be inside <div> in TTML");n=t($f(d,"div"));for(p=n.next();!p.done;p=n.next())if($f(p.value,"span").length)throw new K(2,2,2001,"<span> can only be inside <p> in TTML");if(b=pw(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
928
- function pw(a,b,c,d,e,f,g,h,k,l,m,n){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var v=null,w=t(qw),x=w.next();!x.done&&!(v=rw(q,"backgroundImage",d,"#",x.value)[0]);x=w.next());w=null;var z=eg(q,qw,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new pb(n),z=new pb(z),(x=x.resolve(z).toString())&&(w=x));if("p"==a.nodeName||v||w)m=!0;a=m;x="default"==(q.getAttribute("xml:space")||
929
- (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(E){return E.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var B=t(q.childNodes),A=B.next();!A.done;A=B.next())(A=pw(A.value,b,c,d,e,f,g,x,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!x))return null;B=sw(q,c);n=B.start;for(B=B.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)B=tw(p,c,n,B),n=B.start,B=
930
- B.end,p=p.parentNode;null==n&&(n=0);n+=b.periodStart;B=null==B?Infinity:B+b.periodStart;n=Math.max(n,b.segmentStart);B=Math.min(B,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,B=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),B=Math.max(B,c.endTime);if("br"==q.tagName)return e=new jc(n,B,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,x&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jc(n,B,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=rw(q,"region",f,"")[0];
931
- if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var y=k.getAttribute("xml:id");b.region=g.filter(function(E){return E.id==y})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=rw(l,"region",f,"")[0]);uw(b,q,g,v,w,e,a,0==h.length);return b}
932
- function uw(a,b,c,d,e,f,g,h){g=g||h;"rtl"==vw(b,c,f,"direction",g)&&(a.direction="rtl");h=vw(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=kc);(h=vw(b,c,f,"textAlign",!0))?(a.positionAlign=ww[h],a.lineAlign=xw[h],a.textAlign=vc[h.toUpperCase()]):a.textAlign=nc;if(h=vw(b,c,f,"displayAlign",!0))a.displayAlign=wc[h.toUpperCase()];if(h=vw(b,c,f,"color",g))a.color=h;if(h=vw(b,c,f,"backgroundColor",
933
- g))a.backgroundColor=h;if(h=vw(b,c,f,"border",g))a.border=h;if(h=vw(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=vw(b,c,f,"fontWeight",g))&&
934
- "bold"==h&&(a.fontWeight=700);h=vw(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=vw(b,c,f,"lineHeight",g))&&h.match(yw)&&(a.lineHeight=h);(h=vw(b,c,f,"fontSize",g))&&(h.match(yw)||h.match(zw))&&(a.fontSize=h);if(h=vw(b,c,f,"fontStyle",g))a.fontStyle=Ac[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=vw(b,
935
- c,f,"textOutline",g))d=d.split(" "),d[0].match(yw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(yw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=vw(b,c,f,"letterSpacing",g))&&d.match(yw)&&(a.letterSpacing=d);(d=vw(b,c,f,"linePadding",g))&&d.match(yw)&&(a.linePadding=d);if(g=vw(b,c,f,"opacity",g))a.opacity=parseFloat(g);(c=ow(c,f,"textDecoration"))&&Aw(a,c);(b=Bw(b,f,"textDecoration"))&&Aw(a,b)}
936
- function Aw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&gc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&gc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
937
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&gc(a.textDecoration,"overline")}}function vw(a,b,c,d,e){e=void 0===e?!0:e;return(a=Bw(a,c,d))?a:e?ow(b,c,d):null}function ow(a,b,c){if(!a)return null;var d=eg(a,kw,c);return d?d:Cw(a,b,c)}function Bw(a,b,c){var d=eg(a,kw,c);return d?d:Cw(a,b,c)}
938
- function Cw(a,b,c){a=rw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=dg(a[e],"urn:ebu:tt:style",c);f||(f=eg(a[e],kw,c));f||(f=Bw(a[e],b,c));f&&(d=f)}return d}
939
- function rw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?dg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function tw(a,b,c,d){a=sw(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
940
- function sw(a,b){var c=Dw(a.getAttribute("begin"),b),d=Dw(a.getAttribute("end"),b);a=Dw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
941
- function Dw(a,b){var c=null;if(Ew.test(a)){a=Ew.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(Fw.test(a))c=Gw(Fw,a);else if(Hw.test(a))c=Gw(Hw,a);else if(Iw.test(a))a=Iw.exec(a),c=Number(a[1])/b.frameRate;else if(Jw.test(a))a=Jw.exec(a),c=Number(a[1])/b.g;else if(Kw.test(a))c=Gw(Kw,a);else if(a)throw new K(2,2,2001,"Could not parse cue time range in TTML");return c}
942
- function Gw(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}G("shaka.text.TtmlTextParser",iw);iw.prototype.parseMedia=iw.prototype.parseMedia;iw.prototype.setSequenceMode=iw.prototype.setSequenceMode;iw.prototype.parseInit=iw.prototype.parseInit;
943
- function lw(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
944
- var mw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,zw=/^(\d{1,2}(?:\.\d+)?|100)%$/,yw=/^(\d+px|\d+em|\d*\.?\d+c)$/,nw=/^(\d+)px (\d+)px$/,Ew=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Fw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Hw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Iw=/^(\d*(?:\.\d*)?)f$/,Jw=/^(\d*(?:\.\d*)?)t$/,Kw=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),xw={left:qc,center:"center",right:"end",start:qc,
945
- end:"end"},ww={left:"line-left",center:"center",right:"line-right"},jw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],kw=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],qw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Gd["application/ttml+xml"]=function(){return new iw};function Lw(){this.g=new iw}Lw.prototype.parseInit=function(a){var b=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new K(2,2,2007);};Lw.prototype.setSequenceMode=function(){};Lw.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Nf).box("mdat",Wf(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new K(2,2,2007);return f};
946
- G("shaka.text.Mp4TtmlParser",Lw);Lw.prototype.parseMedia=Lw.prototype.parseMedia;Lw.prototype.setSequenceMode=Lw.prototype.setSequenceMode;Lw.prototype.parseInit=Lw.prototype.parseInit;Gd['application/mp4; codecs="stpp"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.ttml"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Lw};function Mw(){this.g=!1}Mw.prototype.parseInit=function(){};Mw.prototype.setSequenceMode=function(a){this.g=a};
947
- Mw.prototype.parseMedia=function(a,b){a=cd(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new K(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Nw(new br(d[1]));if(null==a)throw new K(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
948
- e/9E4-a}}b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new br(d);var f=new lc;er(d);cr(d);for(var g=er(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
949
- (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");cr(d);g=er(d)}b.push(f)}e=new Map;Ow(e);d=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
912
+ d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}vv.prototype.createMediaKeys=function(){var a=new uv(this.g);return Promise.resolve(a)};vv.prototype.getConfiguration=function(){return this.h};function uv(a){this.l=a;this.h=null;this.g=new Df;this.i=[];this.j=new Map}
913
+ function xv(a,b){a.h=b;a.g.gb();var c=rv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=yv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new I("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=yv(a,d.sessionId))zv(d,"usable"),
914
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=yv(a,d.sessionId);e&&e.handleError(d)}))}uv.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 Av(b,this.l,a);this.i.push(a);return a};uv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
915
+ function yv(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 Av(a,b,c){jb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new Bv}sa(Av,jb);r=Av.prototype;
916
+ r.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?zv(this,"output-restricted"):1==b?zv(this,"expired"):zv(this,"internal-error"))};
917
+ function Cv(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Gc(gd("LOAD_SESSION|"+c));else{var e=gd("PERSISTENT|");d=od(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=wv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new M(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
918
+ function Dv(a,b,c){if(a.g)a.g.then(function(){return Dv(a,b,c)}).catch(function(){return Dv(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=cd(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=ld(e.keys[0].k);e=ld(e.keys[0].kid)}else d=Gc(c),e=null;var f=wv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
919
+ function zv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return Cv(this,b,null)};r.load=function(a){return"persistent-license"==this.l?Cv(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Lc;Dv(this,b,a);return b};
920
+ r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=wv("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Bv(){this.size=0;this.g=void 0}r=Bv.prototype;r.ic=function(){return this.g};
921
+ r.forEach=function(a){this.g&&a(this.g,eh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=eh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var rv="";ru(qv);function Ev(){}function Fv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Gv,Object.defineProperty(a,"disablePictureInPicture",{get:Hv,set:Iv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Jv,document.addEventListener("webkitpresentationmodechanged",Kv,!0))}}
922
+ function Kv(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
923
+ function Gv(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Jv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
924
+ function Hv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Iv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}ou.PiPWebkit=Ev;Ev.install=Fv;ru(Fv);function Lv(){}function Mv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Nv))}function Nv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}ou.RandomUUID=Lv;Lv.install=Mv;ru(Mv);function Ov(){}function Pv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Qv})}function Qv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}ou.Symbol=Ov;Ov.install=Pv;ru(Pv);function Rv(){}function Sv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}ou.VideoPlayPromise=Rv;Rv.install=Sv;ru(Sv);function Tv(){}function Uv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Vc())&&(a.getVideoPlaybackQuality=Vv)}}function Vv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}ou.VideoPlaybackQuality=Tv;Tv.install=Uv;ru(Uv);function Wv(){}function Xv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Yv;else if(6==b)a=Zv;else{try{var c=!!Yv(1,2,"")}catch(d){c=!1}c&&(a=Yv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Yv(a,b,c){return new window.TextTrackCue(a,b,c)}function Zv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}ou.VTTCue=Wv;Wv.install=Xv;ru(Xv);function $v(){}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(){};$v.prototype.parseMedia=function(a,b){var c=null,d=[];a=cd(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=aw.exec(e))){var f=bw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};G("shaka.text.LrcTextParser",$v);$v.prototype.parseMedia=$v.prototype.parseMedia;
925
+ $v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;var aw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,bw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Hd["application/x-subtitle-lrc"]=function(){return new $v};function cw(){}cw.prototype.parseInit=function(){};cw.prototype.setSequenceMode=function(){};
926
+ cw.prototype.parseMedia=function(a,b,c){var d=cd(a);a=[];if(""==d)return a;var e=rg(d,"tt");if(!e)throw new K(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=fg(e,dw,"frameRate"),g=fg(e,dw,"subFrameRate"),h=fg(e,dw,"frameRateMultiplier"),k=fg(e,dw,"tickRate"),l=fg(e,dw,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=fg(e,ew,"extent");if("default"!=m&&"preserve"!=m)throw new K(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new fw(f,
927
+ g,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])?dg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=t(e),q=p.next();!q.done;q=p.next()){var v=q.value;q=new lc;var w=v.getAttribute("xml:id");if(w){q.id=w;var x=null;n&&(x=gw.exec(n)||hw.exec(n));w=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,B=iw(v,h,"extent");if(B){var A=(z=gw.exec(B))||
928
+ hw.exec(B);null!=A&&(q.width=Number(A[1]),q.height=Number(A[2]),z||(null!=w&&(q.width=100*q.width/w),null!=x&&(q.height=100*q.height/x)),q.widthUnits=z||null!=w?Bc:0,q.heightUnits=z||null!=x?Bc:0)}if(v=iw(v,h,"origin"))if(A=(z=gw.exec(v))||hw.exec(v),null!=A)q.viewportAnchorX=Number(A[1]),q.viewportAnchorY=Number(A[2]),z?B||(q.width=100-q.viewportAnchorX,q.widthUnits=Bc,q.height=100-q.viewportAnchorY,q.heightUnits=Bc):(null!=x&&(q.viewportAnchorY=100*q.viewportAnchorY/x),null!=w&&(q.viewportAnchorX=
929
+ 100*q.viewportAnchorX/w)),q.viewportAnchorUnits=z||null!=w?Bc:0}else q=null;q&&k.push(q)}if(ag(d,"p").length)throw new K(2,2,2001,"<p> can only be inside <div> in TTML");n=t(ag(d,"div"));for(p=n.next();!p.done;p=n.next())if(ag(p.value,"span").length)throw new K(2,2,2001,"<span> can only be inside <p> in TTML");if(b=jw(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
930
+ function jw(a,b,c,d,e,f,g,h,k,l,m,n){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var v=null,w=t(kw),x=w.next();!x.done&&!(v=lw(q,"backgroundImage",d,"#",x.value)[0]);x=w.next());w=null;var z=fg(q,kw,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new pb(n),z=new pb(z),(x=x.resolve(z).toString())&&(w=x));if("p"==a.nodeName||v||w)m=!0;a=m;x="default"==(q.getAttribute("xml:space")||
931
+ (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(E){return E.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var B=t(q.childNodes),A=B.next();!A.done;A=B.next())(A=jw(A.value,b,c,d,e,f,g,x,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!x))return null;B=mw(q,c);n=B.start;for(B=B.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)B=nw(p,c,n,B),n=B.start,B=
932
+ B.end,p=p.parentNode;null==n&&(n=0);n+=b.periodStart;B=null==B?Infinity:B+b.periodStart;n=Math.max(n,b.segmentStart);B=Math.min(B,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,B=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),B=Math.max(B,c.endTime);if("br"==q.tagName)return e=new jc(n,B,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,x&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jc(n,B,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=lw(q,"region",f,"")[0];
933
+ if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var y=k.getAttribute("xml:id");b.region=g.filter(function(E){return E.id==y})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=lw(l,"region",f,"")[0]);ow(b,q,g,v,w,e,a,0==h.length);return b}
934
+ function ow(a,b,c,d,e,f,g,h){g=g||h;"rtl"==pw(b,c,f,"direction",g)&&(a.direction="rtl");h=pw(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=kc);(h=pw(b,c,f,"textAlign",!0))?(a.positionAlign=qw[h],a.lineAlign=rw[h],a.textAlign=vc[h.toUpperCase()]):a.textAlign=nc;if(h=pw(b,c,f,"displayAlign",!0))a.displayAlign=wc[h.toUpperCase()];if(h=pw(b,c,f,"color",g))a.color=h;if(h=pw(b,c,f,"backgroundColor",
935
+ g))a.backgroundColor=h;if(h=pw(b,c,f,"border",g))a.border=h;if(h=pw(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=pw(b,c,f,"fontWeight",g))&&
936
+ "bold"==h&&(a.fontWeight=700);h=pw(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=pw(b,c,f,"lineHeight",g))&&h.match(sw)&&(a.lineHeight=h);(h=pw(b,c,f,"fontSize",g))&&(h.match(sw)||h.match(tw))&&(a.fontSize=h);if(h=pw(b,c,f,"fontStyle",g))a.fontStyle=Ac[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=pw(b,
937
+ c,f,"textOutline",g))d=d.split(" "),d[0].match(sw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(sw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=pw(b,c,f,"letterSpacing",g))&&d.match(sw)&&(a.letterSpacing=d);(d=pw(b,c,f,"linePadding",g))&&d.match(sw)&&(a.linePadding=d);if(g=pw(b,c,f,"opacity",g))a.opacity=parseFloat(g);(c=iw(c,f,"textDecoration"))&&uw(a,c);(b=vw(b,f,"textDecoration"))&&uw(a,b)}
938
+ function uw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&gc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&gc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
939
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&gc(a.textDecoration,"overline")}}function pw(a,b,c,d,e){e=void 0===e?!0:e;return(a=vw(a,c,d))?a:e?iw(b,c,d):null}function iw(a,b,c){if(!a)return null;var d=fg(a,ew,c);return d?d:ww(a,b,c)}function vw(a,b,c){var d=fg(a,ew,c);return d?d:ww(a,b,c)}
940
+ function ww(a,b,c){a=lw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=eg(a[e],"urn:ebu:tt:style",c);f||(f=fg(a[e],ew,c));f||(f=vw(a[e],b,c));f&&(d=f)}return d}
941
+ function lw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?eg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function nw(a,b,c,d){a=mw(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
942
+ function mw(a,b){var c=xw(a.getAttribute("begin"),b),d=xw(a.getAttribute("end"),b);a=xw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
943
+ function xw(a,b){var c=null;if(yw.test(a)){a=yw.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(zw.test(a))c=Aw(zw,a);else if(Bw.test(a))c=Aw(Bw,a);else if(Cw.test(a))a=Cw.exec(a),c=Number(a[1])/b.frameRate;else if(Dw.test(a))a=Dw.exec(a),c=Number(a[1])/b.g;else if(Ew.test(a))c=Aw(Ew,a);else if(a)throw new K(2,2,2001,"Could not parse cue time range in TTML");return c}
944
+ function Aw(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}G("shaka.text.TtmlTextParser",cw);cw.prototype.parseMedia=cw.prototype.parseMedia;cw.prototype.setSequenceMode=cw.prototype.setSequenceMode;cw.prototype.parseInit=cw.prototype.parseInit;
945
+ function fw(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
946
+ var gw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,tw=/^(\d{1,2}(?:\.\d+)?|100)%$/,sw=/^(\d+px|\d+em|\d*\.?\d+c)$/,hw=/^(\d+)px (\d+)px$/,yw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,zw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Bw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Cw=/^(\d*(?:\.\d*)?)f$/,Dw=/^(\d*(?:\.\d*)?)t$/,Ew=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),rw={left:qc,center:"center",right:"end",start:qc,
947
+ end:"end"},qw={left:"line-left",center:"center",right:"line-right"},dw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ew=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],kw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Hd["application/ttml+xml"]=function(){return new cw};function Fw(){this.g=new cw}Fw.prototype.parseInit=function(a){var b=!1;(new Of).box("moov",Tf).box("trak",Tf).box("mdia",Tf).box("minf",Tf).box("stbl",Tf).S("stsd",Vf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new K(2,2,2007);};Fw.prototype.setSequenceMode=function(){};Fw.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Of).box("mdat",Xf(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new K(2,2,2007);return f};
948
+ G("shaka.text.Mp4TtmlParser",Fw);Fw.prototype.parseMedia=Fw.prototype.parseMedia;Fw.prototype.setSequenceMode=Fw.prototype.setSequenceMode;Fw.prototype.parseInit=Fw.prototype.parseInit;Hd['application/mp4; codecs="stpp"']=function(){return new Fw};Hd['application/mp4; codecs="stpp.ttml"']=function(){return new Fw};Hd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Fw};Hd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Fw};function Gw(){this.g=!1}Gw.prototype.parseInit=function(){};Gw.prototype.setSequenceMode=function(a){this.g=a};
949
+ Gw.prototype.parseMedia=function(a,b){a=cd(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new K(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Hw(new ar(d[1]));if(null==a)throw new K(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
950
+ e/9E4-a}}b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new ar(d);var f=new lc;dr(d);br(d);for(var g=dr(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
951
+ (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");br(d);g=dr(d)}b.push(f)}e=new Map;Iw(e);d=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
950
952
  (g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new jc(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var q=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=q;break;case "color":m=!0;l.color=q;break;case "font-family":m=!0;l.fontFamily=q;break;case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==
951
953
  q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=tc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
952
- g=new br(f[0]);k=Nw(g);n=dr(g,/[ \t]+--\x3e[ \t]+/g);l=Nw(g);if(null==k||null==n||null==l)throw new K(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new jc(k,l,"");cr(g);for(k=er(g);k;)Pw(m,k,b),cr(g),k=er(g);Qw(f,m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};
953
- function Ow(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new jc(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new jc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
954
- function Qw(a,b,c){if(a.includes("<")){0===c.size&&Ow(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}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+
955
- 1:">"===a[e]&&0<f&&(f=a.substr(f,e-f),f.match(Rw)&&d.push(f),f=-1);d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",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]?
956
- (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=t(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=qg("<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=Sw(a);return}a=t(e);for(e=a.next();!e.done;e=a.next())Tw(e.value,b,d,c);b.nestedCues=d}else b.payload=
957
- Sw(a)}else b.payload=Sw(a)}function Uw(a,b){return a&&0<a.length?a:b}
958
- function Tw(a,b,c,d){var e=b.clone();e.nestedCues=[];e.payload="";e.line=null;e.region=new lc;e.position=null;e.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(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=Uw(h.backgroundColor,e.backgroundColor),e.color=Uw(h.color,e.color),e.fontFamily=Uw(h.fontFamily,
959
- e.fontFamily),e.fontSize=Uw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.textShadow=h.textShadow,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");break;case "div":if(g=a.getAttribute("time"))if(g=Nw(new br(g)))e.startTime=g}}if(gg(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=
960
- a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=Sw(a),c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Tw(a.value,e,c,d)}
961
- function Pw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=nc:a.textAlign=vc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
962
- "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Vw(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=xc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=pc,a.line=Number(c[1]),c[2]&&(a.lineAlign=xc[c[2].toUpperCase()])}function Vw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
963
- function Nw(a){a=dr(a,Rw);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 Sw(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||""}G("shaka.text.VttTextParser",Mw);Mw.prototype.parseMedia=Mw.prototype.parseMedia;
964
- Mw.prototype.setSequenceMode=Mw.prototype.setSequenceMode;Mw.prototype.parseInit=Mw.prototype.parseInit;var Rw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Gd["text/vtt"]=function(){return new Mw};Gd['text/vtt; codecs="vtt"']=function(){return new Mw};Gd['text/vtt; codecs="wvtt"']=function(){return new Mw};function Ww(){this.g=null}Ww.prototype.parseInit=function(a){var b=this,c=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).S("mdhd",function(d){d=ui(d.reader,d.version);b.g=d.timescale}).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new K(2,2,2008);if(!c)throw new K(2,2,2008);};Ww.prototype.setSequenceMode=function(){};
965
- Ww.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new K(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Nf).box("moof",Sf).box("traf",Sf).S("tfdt",function(A){g=!0;c=ti(A.reader,A.version).yf}).S("tfhd",function(A){l=si(A.reader,A.flags).Hf}).S("trun",function(A){h=!0;d=vi(A.reader,A.version,A.flags).Xf}).box("mdat",Wf(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new K(2,2,2008);a=c;for(var m=new Kf(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=p.value;
966
- var q=p.Oe||l,v=p.Pd?c+p.Pd:a;a=v+(q||0);var w=0;do{var x=m.O();w+=x;var z=m.O(),B=null;"vttc"==Rf(z)?8<x&&(B=m.Eb(x-8)):m.skip(x-8);q&&B&&(x=Xw(B,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(x))}while(p.sampleSize&&w<p.sampleSize)}return f.filter(Pd)};function Xw(a,b,c){var d,e,f;(new Nf).box("payl",Wf(function(g){d=cd(g)})).box("iden",Wf(function(g){e=cd(g)})).box("sttg",Wf(function(g){f=cd(g)})).parse(a);return d?Yw(d,e,f,b,c):null}
967
- function Yw(a,b,c,d,e){d=new jc(d,e,"");Qw(a,d,new Map);b&&(d.id=b);if(c)for(a=new br(c),b=er(a);b;)Pw(d,b,[]),cr(a),b=er(a);return d}G("shaka.text.Mp4VttParser",Ww);Ww.prototype.parseMedia=Ww.prototype.parseMedia;Ww.prototype.setSequenceMode=Ww.prototype.setSequenceMode;Ww.prototype.parseInit=Ww.prototype.parseInit;Gd['application/mp4; codecs="wvtt"']=function(){return new Ww};function Zw(){}Zw.prototype.parseInit=function(){};Zw.prototype.setSequenceMode=function(){};Zw.prototype.parseMedia=function(a){var b=cd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new br(c[0]),e=$w(d),f=dr(d,/,/g);d=$w(d);if(null==e||null==f||null==d)throw new K(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jc(e,d,c.slice(1).join("\n").trim()))}return a};
968
- function $w(a){a=dr(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)}G("shaka.text.SbvTextParser",Zw);Zw.prototype.parseMedia=Zw.prototype.parseMedia;Zw.prototype.setSequenceMode=Zw.prototype.setSequenceMode;Zw.prototype.parseInit=Zw.prototype.parseInit;Gd["text/x-subviewer"]=function(){return new Zw};function ax(){this.g=new Mw}ax.prototype.parseInit=function(){};ax.prototype.setSequenceMode=function(){};ax.prototype.parseMedia=function(a,b,c){a=cd(a);a=bx(a);a=Gc(gd(a));return this.g.parseMedia(a,b,c)};function bx(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}G("shaka.text.SrtTextParser",ax);
969
- ax.srt2webvtt=bx;ax.prototype.parseMedia=ax.prototype.parseMedia;ax.prototype.setSequenceMode=ax.prototype.setSequenceMode;ax.prototype.parseInit=ax.prototype.parseInit;Gd["text/srt"]=function(){return new ax};function cx(){}cx.prototype.parseInit=function(){};cx.prototype.setSequenceMode=function(){};
970
- cx.prototype.parseMedia=function(a){var b="",c="";a=cd(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=dx.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=ex.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(fx);else if("Style"==e){e=f.split(fx);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
971
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={ke:e.ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=ex.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(fx);else if("Dialogue"==f){g=g.split(fx);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=gx(f.Start);var k=gx(f.End);g=new jc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.ke}}(e)))&&hx(g,f);d.push(g)}return d};
972
- function hx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ix(c))a.color=c;if(c=b.BackColour)if(c=ix(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=rc;a.textAlign="start";break;case 2:a.displayAlign=rc;a.textAlign=nc;break;case 3:a.displayAlign=rc;a.textAlign="end";
954
+ g=new ar(f[0]);k=Hw(g);n=cr(g,/[ \t]+--\x3e[ \t]+/g);l=Hw(g);if(null==k||null==n||null==l)throw new K(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new jc(k,l,"");br(g);for(k=dr(g);k;)Jw(m,k,b),br(g),k=dr(g);Kw(f,m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};
955
+ function Iw(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new jc(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new jc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
956
+ function Kw(a,b,c){if(a.includes("<")){0===c.size&&Iw(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}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+
957
+ 1:">"===a[e]&&0<f&&(f=a.substr(f,e-f),f.match(Lw)&&d.push(f),f=-1);d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",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]?
958
+ (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=t(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=rg("<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=Mw(a);return}a=t(e);for(e=a.next();!e.done;e=a.next())Nw(e.value,b,d,c);b.nestedCues=d}else b.payload=
959
+ Mw(a)}else b.payload=Mw(a)}function Ow(a,b){return a&&0<a.length?a:b}
960
+ function Nw(a,b,c,d){var e=b.clone();e.nestedCues=[];e.payload="";e.line=null;e.region=new lc;e.position=null;e.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(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=Ow(h.backgroundColor,e.backgroundColor),e.color=Ow(h.color,e.color),e.fontFamily=Ow(h.fontFamily,
961
+ e.fontFamily),e.fontSize=Ow(h.fontSize,e.fontSize),e.textShadow=Ow(h.textShadow,e.textShadow),e.fontWeight=h.fontWeight,e.fontStyle=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");break;case "div":if(g=a.getAttribute("time"))if(g=Hw(new ar(g)))e.startTime=g}}if(hg(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=
962
+ d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=Mw(a),c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Nw(a.value,e,c,d)}
963
+ function Jw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=nc:a.textAlign=vc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
964
+ "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Pw(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=xc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=pc,a.line=Number(c[1]),c[2]&&(a.lineAlign=xc[c[2].toUpperCase()])}function Pw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
965
+ function Hw(a){a=cr(a,Lw);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 Mw(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||""}G("shaka.text.VttTextParser",Gw);Gw.prototype.parseMedia=Gw.prototype.parseMedia;
966
+ Gw.prototype.setSequenceMode=Gw.prototype.setSequenceMode;Gw.prototype.parseInit=Gw.prototype.parseInit;var Lw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Hd["text/vtt"]=function(){return new Gw};Hd['text/vtt; codecs="vtt"']=function(){return new Gw};Hd['text/vtt; codecs="wvtt"']=function(){return new Gw};function Qw(){this.g=null}Qw.prototype.parseInit=function(a){var b=this,c=!1;(new Of).box("moov",Tf).box("trak",Tf).box("mdia",Tf).S("mdhd",function(d){d=vi(d.reader,d.version);b.g=d.timescale}).box("minf",Tf).box("stbl",Tf).S("stsd",Vf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new K(2,2,2008);if(!c)throw new K(2,2,2008);};Qw.prototype.setSequenceMode=function(){};
967
+ Qw.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new K(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Of).box("moof",Tf).box("traf",Tf).S("tfdt",function(A){g=!0;c=ui(A.reader,A.version).xf}).S("tfhd",function(A){l=ti(A.reader,A.flags).Gf}).S("trun",function(A){h=!0;d=wi(A.reader,A.version,A.flags).Wf}).box("mdat",Xf(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new K(2,2,2008);a=c;for(var m=new Lf(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=p.value;
968
+ var q=p.Ne||l,v=p.Pd?c+p.Pd:a;a=v+(q||0);var w=0;do{var x=m.O();w+=x;var z=m.O(),B=null;"vttc"==Sf(z)?8<x&&(B=m.Db(x-8)):m.skip(x-8);q&&B&&(x=Rw(B,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(x))}while(p.sampleSize&&w<p.sampleSize)}return f.filter(Qd)};function Rw(a,b,c){var d,e,f;(new Of).box("payl",Xf(function(g){d=cd(g)})).box("iden",Xf(function(g){e=cd(g)})).box("sttg",Xf(function(g){f=cd(g)})).parse(a);return d?Sw(d,e,f,b,c):null}
969
+ function Sw(a,b,c,d,e){d=new jc(d,e,"");Kw(a,d,new Map);b&&(d.id=b);if(c)for(a=new ar(c),b=dr(a);b;)Jw(d,b,[]),br(a),b=dr(a);return d}G("shaka.text.Mp4VttParser",Qw);Qw.prototype.parseMedia=Qw.prototype.parseMedia;Qw.prototype.setSequenceMode=Qw.prototype.setSequenceMode;Qw.prototype.parseInit=Qw.prototype.parseInit;Hd['application/mp4; codecs="wvtt"']=function(){return new Qw};function Tw(){}Tw.prototype.parseInit=function(){};Tw.prototype.setSequenceMode=function(){};Tw.prototype.parseMedia=function(a){var b=cd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new ar(c[0]),e=Uw(d),f=cr(d,/,/g);d=Uw(d);if(null==e||null==f||null==d)throw new K(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jc(e,d,c.slice(1).join("\n").trim()))}return a};
970
+ function Uw(a){a=cr(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)}G("shaka.text.SbvTextParser",Tw);Tw.prototype.parseMedia=Tw.prototype.parseMedia;Tw.prototype.setSequenceMode=Tw.prototype.setSequenceMode;Tw.prototype.parseInit=Tw.prototype.parseInit;Hd["text/x-subviewer"]=function(){return new Tw};function Vw(){this.g=new Gw}Vw.prototype.parseInit=function(){};Vw.prototype.setSequenceMode=function(){};Vw.prototype.parseMedia=function(a,b,c){a=cd(a);a=Ww(a);a=Gc(gd(a));return this.g.parseMedia(a,b,c)};function Ww(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}G("shaka.text.SrtTextParser",Vw);
971
+ Vw.srt2webvtt=Ww;Vw.prototype.parseMedia=Vw.prototype.parseMedia;Vw.prototype.setSequenceMode=Vw.prototype.setSequenceMode;Vw.prototype.parseInit=Vw.prototype.parseInit;Hd["text/srt"]=function(){return new Vw};function Xw(){}Xw.prototype.parseInit=function(){};Xw.prototype.setSequenceMode=function(){};
972
+ Xw.prototype.parseMedia=function(a){var b="",c="";a=cd(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Yw.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Zw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split($w);else if("Style"==e){e=f.split($w);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
973
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={ke:e.ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Zw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split($w);else if("Dialogue"==f){g=g.split($w);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=ax(f.Start);var k=ax(f.End);g=new jc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.ke}}(e)))&&bx(g,f);d.push(g)}return d};
974
+ function bx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=cx(c))a.color=c;if(c=b.BackColour)if(c=cx(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=rc;a.textAlign="start";break;case 2:a.displayAlign=rc;a.textAlign=nc;break;case 3:a.displayAlign=rc;a.textAlign="end";
973
975
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=nc;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=nc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
974
- function ix(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function gx(a){a=jx.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}G("shaka.text.SsaTextParser",cx);cx.prototype.parseMedia=cx.prototype.parseMedia;cx.prototype.setSequenceMode=cx.prototype.setSequenceMode;cx.prototype.parseInit=cx.prototype.parseInit;
975
- var dx=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,ex=/^\s*([^:]+):\s*(.*)/,fx=/\s*,\s*/,jx=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Gd["text/x-ssa"]=function(){return new cx};/*
976
+ function cx(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function ax(a){a=dx.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}G("shaka.text.SsaTextParser",Xw);Xw.prototype.parseMedia=Xw.prototype.parseMedia;Xw.prototype.setSequenceMode=Xw.prototype.setSequenceMode;Xw.prototype.parseInit=Xw.prototype.parseInit;
977
+ var Yw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Zw=/^\s*([^:]+):\s*(.*)/,$w=/\s*,\s*/,dx=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Hd["text/x-ssa"]=function(){return new Xw};/*
976
978
  @license
977
979
  EME Encryption Scheme Polyfill
978
980
  Copyright 2019 Google LLC
979
981
  SPDX-License-Identifier: Apache-2.0
980
982
  */
981
- function kx(){}var lx;function mx(){lx?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(lx=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=nx):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
982
- function nx(a,b){var c=this,d;return D(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,lx.call(c,a,b),2);d=e.h;if(ox(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=lx,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=px;return e.return(px.call(c,
983
+ function ex(){}var fx;function gx(){fx?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(fx=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=hx):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
984
+ function hx(a,b){var c=this,d;return D(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,fx.call(c,a,b),2);d=e.h;if(ix(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=fx,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=jx;return e.return(jx.call(c,
983
985
  a,b))})}
984
- function px(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return D(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=qx(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=rx(h.videoCapabilities,d),l=rx(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
985
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,lx.call(c,a,e),2)}p=q.h;return q.return(new sx(p,d))})}function rx(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}G("EmeEncryptionSchemePolyfill",kx);kx.install=mx;function tx(){}var ux;
986
- function vx(){ux?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ux=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=wx):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
987
- function wx(a){var b=this,c,d,e;return D(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,ux.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&ox(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ux,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
988
- navigator.mediaCapabilities.decodingInfo=xx;if(d){f.D(3);break}e=c;return u(f,yx(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(xx.call(b,a))}})}
989
- function xx(a){var b=this,c,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=qx(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):u(m,ux.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
990
- new sx(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,yx(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
991
- function yx(a){var b,c;return D(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
992
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}G("McEncryptionSchemePolyfill",tx);tx.install=vx;function sx(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
993
- sx.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};sx.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
994
- function qx(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ox(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
995
- function zx(){}function Cu(){mx();vx()}G("EncryptionSchemePolyfills",zx);zx.install=Cu;"undefined"!==typeof module&&module.exports&&(module.exports=zx);/*
986
+ function jx(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return D(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=kx(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=lx(h.videoCapabilities,d),l=lx(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
987
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,fx.call(c,a,e),2)}p=q.h;return q.return(new mx(p,d))})}function lx(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}G("EmeEncryptionSchemePolyfill",ex);ex.install=gx;function nx(){}var ox;
988
+ function px(){ox?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ox=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=qx):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
989
+ function qx(a){var b=this,c,d,e;return D(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,ox.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&ix(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ox,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
990
+ navigator.mediaCapabilities.decodingInfo=rx;if(d){f.D(3);break}e=c;return u(f,sx(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(rx.call(b,a))}})}
991
+ function rx(a){var b=this,c,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=kx(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):u(m,ox.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
992
+ new mx(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,sx(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
993
+ function sx(a){var b,c;return D(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
994
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}G("McEncryptionSchemePolyfill",nx);nx.install=px;function mx(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
995
+ mx.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};mx.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
996
+ function kx(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ix(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
997
+ function tx(){}function Au(){gx();px()}G("EncryptionSchemePolyfills",tx);tx.install=Au;"undefined"!==typeof module&&module.exports&&(module.exports=tx);/*
996
998
  @license
997
999
  Copyright 2013 Ali Al Dallal
998
1000
 
@@ -1016,7 +1018,7 @@ function zx(){}function Cu(){mx();vx()}G("EncryptionSchemePolyfills",zx);zx.inst
1016
1018
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1017
1019
  SOFTWARE.
1018
1020
  */
1019
- for(var Ax={ach:{u:"Lwo",A:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",A:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic (Morocco)"},
1021
+ for(var ux={ach:{u:"Lwo",A:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",A:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic (Morocco)"},
1020
1022
  "ar-SA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",A:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",A:"Aymara"},az:{u:"Az\u0259rbaycan dili",A:"Azerbaijani"},"az-AZ":{u:"Az\u0259rbaycan dili",A:"Azerbaijani"},"be-BY":{u:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",A:"Belarusian"},bg:{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",A:"Bulgarian"},"bg-BG":{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1021
1023
  A:"Bulgarian"},bn:{u:"\u09ac\u09be\u0982\u09b2\u09be",A:"Bengali"},"bn-IN":{u:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",A:"Bengali (India)"},"bn-BD":{u:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",A:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",A:"Bosnian"},ca:{u:"Catal\u00e0",A:"Catalan"},"ca-ES":{u:"Catal\u00e0",A:"Catalan"},cak:{u:"Maya Kaqchikel",A:"Kaqchikel"},"ck-US":{u:"\u13e3\u13b3\u13a9 (tsalagi)",A:"Cherokee"},cs:{u:"\u010ce\u0161tina",
1022
1024
  A:"Czech"},"cs-CZ":{u:"\u010ce\u0161tina",A:"Czech"},cy:{u:"Cymraeg",A:"Welsh"},"cy-GB":{u:"Cymraeg",A:"Welsh"},da:{u:"Dansk",A:"Danish"},"da-DK":{u:"Dansk",A:"Danish"},de:{u:"Deutsch",A:"German"},"de-AT":{u:"Deutsch (\u00d6sterreich)",A:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",A:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",A:"German (Switzerland)"},dsb:{u:"Dolnoserb\u0161\u0107ina",A:"Lower Sorbian"},el:{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",A:"Greek"},"el-GR":{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -1037,184 +1039,184 @@ A:"Slovak"},"sk-SK":{u:"Sloven\u010dina (Slovakia)",A:"Slovak (Slovakia)"},sl:{u
1037
1039
  sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",A:"Tamil"},"ta-IN":{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",A:"Tamil"},te:{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",A:"Telugu"},"te-IN":{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",A:"Telugu"},tg:{u:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",A:"Tajik"},"tg-TJ":{u:"\u0442\u043e\u04b7\u0438\u043a\u04e3",A:"Tajik"},th:{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1038
1040
  A:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",A:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",A:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1039
1041
  A:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",A:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",A:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",A:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
1040
- A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},Bx=t(Object.keys(Ax)),Cx=Bx.next();!Cx.done;Cx=
1041
- Bx.next()){var Dx=Cx.value;Ax[Dx.toLowerCase()]=Ax[Dx]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Cf;this.localization=this.controls.wa;this.player=this.controls.fc();this.video=this.controls.Db();this.adManager=this.player.xd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1042
- W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};G("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Ex(a){return Fx(a,"shaka-back-to-overflow-button")}function Fx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Gx(a){a&&(a=Fx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Hx(){var a=P("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Ix(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1043
- function Jx(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Kx(a,b){W.call(this,a,b);var c=this;this.i=P("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=P("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new N(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Jx(e-d,!1)+" / "+Jx(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1044
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Ca();c.g.ma(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ca(),this.g.ma(.5))}ra(Kx,W);Kx.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};G("shaka.ui.AdCounter",Kx);function Lx(a,b){W.call(this,a,b);var c=this;this.g=P("div");this.g.classList.add("shaka-ad-position");Ix(this.g,!1);this.parent.appendChild(this.g);this.h=P("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Mx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Mx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Mx(c)});this.eventManager.o(this.adManager,
1045
- "ad-stopped",function(){c.h.textContent="";Ix(c.g,!1)});this.ad&&Mx(this)}ra(Lx,W);function Mx(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Ix(a.g,!0)}}G("shaka.ui.AdPosition",Lx);function Nx(a,b){W.call(this,a,b);var c=this;this.button=Cl();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1046
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Ox(c.controls):Px(c.controls)});this.ad&&(this.g(),this.h())}ra(Nx,W);Nx.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};
1047
- Nx.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};Nx.prototype.g=function(){};Nx.prototype.h=function(){};G("shaka.ui.PlayButton",Nx);function Qx(a,b){Nx.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(Qx,Nx);Qx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Qx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};G("shaka.ui.BigPlayButton",Qx);function Rx(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=P("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";Ix(c.g,!0)}else Ix(c.g,
1048
- !1)});this.eventManager.o(window,"click",function(){Ix(c.g,!1)});Sx(this)}ra(Rx,W);Rx.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Tx(a,b){Ux.set(a,b)}function Sx(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Ux.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}G("shaka.ui.ContextMenu",Rx);
1049
- Rx.registerElement=Tx;var Ux=new Map;function Vx(a,b,c,d){W.call(this,a,b);var e=this;this.container=P("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ha(c));this.g=!1;this.bar=document.createElement("input");this.l=new N(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ha(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1050
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Rb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Rb()&&(e.g=!0,Wx(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Wx(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Wx(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1051
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}ra(Vx,W);r=Vx.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};
1042
+ A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},vx=t(Object.keys(ux)),wx=vx.next();!wx.done;wx=
1043
+ vx.next()){var xx=wx.value;ux[xx.toLowerCase()]=ux[xx]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Df;this.localization=this.controls.va;this.player=this.controls.fc();this.video=this.controls.Cb();this.adManager=this.player.xd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1044
+ W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};G("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function yx(a){return zx(a,"shaka-back-to-overflow-button")}function zx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Ax(a){a&&(a=zx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Bx(){var a=Q("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Cx(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1045
+ function Dx(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Ex(a,b){W.call(this,a,b);var c=this;this.i=Q("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=Q("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new M(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Dx(e-d,!1)+" / "+Dx(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1046
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Ba();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ba(),this.g.ka(.5))}sa(Ex,W);Ex.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};G("shaka.ui.AdCounter",Ex);function Fx(a,b){W.call(this,a,b);var c=this;this.g=Q("div");this.g.classList.add("shaka-ad-position");Cx(this.g,!1);this.parent.appendChild(this.g);this.h=Q("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Gx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Gx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Gx(c)});this.eventManager.o(this.adManager,
1047
+ "ad-stopped",function(){c.h.textContent="";Cx(c.g,!1)});this.ad&&Gx(this)}sa(Fx,W);function Gx(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Cx(a.g,!0)}}G("shaka.ui.AdPosition",Fx);function Hx(a,b){W.call(this,a,b);var c=this;this.button=Cl();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1048
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Ix(c.controls):Jx(c.controls)});this.ad&&(this.g(),this.h())}sa(Hx,W);Hx.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};
1049
+ Hx.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};Hx.prototype.g=function(){};Hx.prototype.h=function(){};G("shaka.ui.PlayButton",Hx);function Kx(a,b){Hx.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}sa(Kx,Hx);Kx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Kx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};G("shaka.ui.BigPlayButton",Kx);function Lx(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=Q("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";Cx(c.g,!0)}else Cx(c.g,
1050
+ !1)});this.eventManager.o(window,"click",function(){Cx(c.g,!1)});Mx(this)}sa(Lx,W);Lx.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Nx(a,b){Ox.set(a,b)}function Mx(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Ox.get(c);d?a.i.push(d.create(a.g,a.controls)):Ya("Unrecognized context menu element:",c)}}G("shaka.ui.ContextMenu",Lx);
1051
+ Lx.registerElement=Nx;var Ox=new Map;function Px(a,b,c,d){W.call(this,a,b);var e=this;this.container=Q("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new M(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1052
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Rb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Rb()&&(e.g=!0,Qx(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Qx(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Qx(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1053
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}sa(Px,W);r=Px.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};
1052
1054
  r.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.R(.5)};r.getValue=function(){return parseFloat(this.bar.value)};r.setValue=function(a){this.g||(this.bar.value=a)};
1053
- function Wx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}G("shaka.ui.RangeElement",Vx);Vx.prototype.setValue=Vx.prototype.setValue;Vx.prototype.getValue=Vx.prototype.getValue;Vx.prototype.changeTo=Vx.prototype.changeTo;Vx.prototype.onChangeEnd=Vx.prototype.onChangeEnd;Vx.prototype.onChange=Vx.prototype.onChange;Vx.prototype.onChangeStart=Vx.prototype.onChangeStart;
1054
- Vx.prototype.setRange=Vx.prototype.setRange;function Xx(a,b){Vx.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=P("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 N(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.s=new N(function(){Yx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",
1055
- function(){return Zx(c)});this.eventManager.o(this.localization,"locale-changed",function(){return Zx(c)});this.eventManager.o(this.adManager,"ad-started",function(){$x(c)||Ix(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){$x(c)&&Ix(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;ay(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];ay(c)});this.setValue(this.video.currentTime);this.update();Zx(this);
1056
- this.ad&&Ix(this.container,!1)}ra(Xx,Vx);r=Xx.prototype;r.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Vx.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ze(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};r.onChangeEnd=function(){this.h.Ca();this.controls.Ze(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1057
- r.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);$x(this)?(Ix(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?
1058
- 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()+")")):Ix(this.container,!1)};
1059
- function Yx(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=t(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1060
- 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 ay(a){Yx(a);var b=a.player.Ma();b=b.end-b.start;a.player.T()&&5<b&&a.s.ma(1)}function $x(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 Zx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}G("shaka.ui.SeekBar",Xx);function by(){}
1061
- by.prototype.create=function(a,b){return new Xx(a,b)};Xx.Factory=by;function Z(a,b,c,d){ib.call(this);var e=this;this.P=!0;this.i=d;this.C=new Ao(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.$a=!0;this.s=this.C.Db();this.B=c;this.F=this.C.fc();this.ra=a;this.j=b;this.Ya=this.F.xd();this.l=this.m=null;this.X=!1;this.G=[];this.yb=[];this.bb=!1;this.Z=new N(function(){e.j.style.cursor="none";e.bb=!1;cy(e)});this.aa=new N(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new N(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())Ix(g.value,
1062
- !1)});this.xa=new N(function(){e.Rb()&&dy(e)});this.J=null;this.H=[];this.wa=ey();this.h=new Cf;this.configure(this.i);fy(this);this.ea=new Set;gy(this);this.xa.ma(.125);this.h.o(this.wa,"locale-changed",function(f){e.Ya.setLocale(f.locales[0])})}ra(Z,ib);r=Z.prototype;
1063
- r.destroy=function(){var a=this;return D(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.xa&&(a.xa.stop(),a.xa=null);hy(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ra){b.D(6);break}return u(b,a.ra.destroy(),7);case 7:a.ra=
1064
- null;case 6:a.F=null,a.B=null,a.s=null,a.wa=null,a.ea.clear(),ib.prototype.release.call(a),C(b)}})};function hy(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function iy(a,b){jy.set(a,b)}r.rg=function(a){this.$a=a;gy(this)};r.nh=function(){cy(this)};
1065
- r.configure=function(a){this.i=a;this.C.Df(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Wa&&(this.Wa=null);this.Za&&(this.Za=null);this.g?(Dl(this.g),hy(this)):(ky(this),ly(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");my(this);this.i.addBigPlayButton&&ny(this);this.i.customContextMenu&&(this.Za=new Rx(this.U,this),this.H.push(this.Za));this.$||oy(this);this.ab=P("div");this.ab.classList.add("shaka-server-side-ad-container");
1066
- this.g.appendChild(this.ab);py(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ha(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));qy(this);this.yb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));cy(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1067
- c)}};r.Ue=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");cy(this)};r.ag=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ue(!1)};r.getAd=function(){return this.m};r.Eg=function(){return this.C};r.Qg=function(){return this.wa};r.fh=function(){return this.j};r.Db=function(){return this.s};r.Pg=function(){return this.B};r.fc=function(){return this.F};r.Og=function(){return this.ra};
1068
- r.Jg=function(){return this.g};r.Yg=function(){return this.ab};r.Gg=function(){return this.N};r.Hg=function(){return this.i};r.lh=function(){return this.X};r.Ze=function(a){this.X=a};r.ih=function(){return this.$a};r.Mf=function(){return this.l?this.l.getValue():this.s.currentTime};r.cg=function(a){this.J=a};r.qd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};r.jc=function(){this.I.Ca()};
1055
+ function Qx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}G("shaka.ui.RangeElement",Px);Px.prototype.setValue=Px.prototype.setValue;Px.prototype.getValue=Px.prototype.getValue;Px.prototype.changeTo=Px.prototype.changeTo;Px.prototype.onChangeEnd=Px.prototype.onChangeEnd;Px.prototype.onChange=Px.prototype.onChange;Px.prototype.onChangeStart=Px.prototype.onChangeStart;
1056
+ Px.prototype.setRange=Px.prototype.setRange;function Rx(a,b){Px.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=Q("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 M(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.s=new M(function(){Sx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",
1057
+ function(){return Tx(c)});this.eventManager.o(this.localization,"locale-changed",function(){return Tx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Ux(c)||Cx(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Ux(c)&&Cx(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Vx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Vx(c)});this.setValue(this.video.currentTime);this.update();Tx(this);
1058
+ this.ad&&Cx(this.container,!1)}sa(Rx,Px);r=Rx.prototype;r.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Px.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ye(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};r.onChangeEnd=function(){this.h.Ba();this.controls.Ye(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1059
+ r.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.La(),g=f.end-f.start;this.setRange(f.start,f.end);Ux(this)?(Cx(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?
1060
+ 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()+")")):Cx(this.container,!1)};
1061
+ function Sx(a){if(a.i.length){for(var b=a.player.La(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1062
+ 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 Vx(a){Sx(a);var b=a.player.La();b=b.end-b.start;a.player.T()&&5<b&&a.s.ka(1)}function Ux(a){var b=a.player.La();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Tx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}G("shaka.ui.SeekBar",Rx);function Wx(){}
1063
+ Wx.prototype.create=function(a,b){return new Rx(a,b)};Rx.Factory=Wx;function Z(a,b,c,d){jb.call(this);var e=this;this.P=!0;this.i=d;this.C=new zo(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.$a=!0;this.s=this.C.Cb();this.B=c;this.F=this.C.fc();this.qa=a;this.j=b;this.Ya=this.F.xd();this.l=this.m=null;this.X=!1;this.G=[];this.xb=[];this.bb=!1;this.Z=new M(function(){e.j.style.cursor="none";e.bb=!1;Xx(e)});this.aa=new M(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new M(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())Cx(g.value,
1064
+ !1)});this.wa=new M(function(){e.Rb()&&Yx(e)});this.J=null;this.H=[];this.va=Zx();this.h=new Df;this.configure(this.i);$x(this);this.ba=new Set;ay(this);this.wa.ka(.125);this.h.o(this.va,"locale-changed",function(f){e.Ya.setLocale(f.locales[0])})}sa(Z,jb);r=Z.prototype;
1065
+ r.destroy=function(){var a=this;return D(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.wa&&(a.wa.stop(),a.wa=null);by(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.qa){b.D(6);break}return u(b,a.qa.destroy(),7);case 7:a.qa=
1066
+ null;case 6:a.F=null,a.B=null,a.s=null,a.va=null,a.ba.clear(),jb.prototype.release.call(a),C(b)}})};function by(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function cy(a,b){dy.set(a,b)}r.rg=function(a){this.$a=a;ay(this)};r.oh=function(){Xx(this)};
1067
+ r.configure=function(a){this.i=a;this.C.Cf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Wa&&(this.Wa=null);this.Za&&(this.Za=null);this.g?(Dl(this.g),by(this)):(ey(this),fy(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");gy(this);this.i.addBigPlayButton&&hy(this);this.i.customContextMenu&&(this.Za=new Lx(this.U,this),this.H.push(this.Za));this.$||iy(this);this.ab=Q("div");this.ab.classList.add("shaka-server-side-ad-container");
1068
+ this.g.appendChild(this.ab);jy(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"))));ky(this);this.xb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Xx(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1069
+ c)}};r.Ue=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Xx(this)};r.Zf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ue(!1)};r.getAd=function(){return this.m};r.Eg=function(){return this.C};r.Rg=function(){return this.va};r.gh=function(){return this.j};r.Cb=function(){return this.s};r.Qg=function(){return this.B};r.fc=function(){return this.F};r.Pg=function(){return this.qa};
1070
+ r.Jg=function(){return this.g};r.Zg=function(){return this.ab};r.Gg=function(){return this.N};r.Hg=function(){return this.i};r.mh=function(){return this.X};r.Ye=function(a){this.X=a};r.jh=function(){return this.$a};r.Lf=function(){return this.l?this.l.getValue():this.s.currentTime};r.ag=function(a){this.J=a};r.pd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};r.jc=function(){this.I.Ba()};
1069
1071
  r.Dd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};r.lc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1070
- function ry(a){var b,c;return D(function(d){switch(d.g){case 1:wa(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}wa(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:za(d,4,2);break;case 9:Aa(d,
1071
- 2);case 4:za(d,0);break;case 2:c=Aa(d),a.dispatchEvent(new I("error",(new Map).set("detail",c))),C(d)}})}function sy(a){var b;return D(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}r.ef=function(){var a=this;return D(function(b){return a.lc()?u(b,sy(a),0):u(b,ry(a),0)})};
1072
- r.fg=function(){Ix(this.K,!0);Ix(this.N,!0);this.g.setAttribute("ad-active","true")};r.Of=function(){Ix(this.K,!1);Ix(this.N,!1);this.g.removeAttribute("ad-active")};function Px(a){a.P&&a.s.duration&&(a.F.ud(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Ox(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1073
- function ky(a){a.g=P("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.s.duration&&(a.Rb()?a.J=Date.now():(ty(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){uy(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.Dd()&&a.ef()})}
1074
- function ny(a){var b=P("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.Wa=new Qx(b,a);a.H.push(a.Wa)}function my(a){var b=P("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function vy(a){a.K=P("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Ix(a.K,b);a.L.appendChild(a.K);b=new Lx(a.K,a);a.H.push(b);b=new Kx(a.K,a);a.H.push(b)}
1075
- function oy(a){a.$=P("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=P("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1072
+ function ly(a){var b,c;return D(function(d){switch(d.g){case 1:xa(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}xa(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:Aa(d,4,2);break;case 9:Ba(d,
1073
+ 2);case 4:Aa(d,0);break;case 2:c=Ba(d),a.dispatchEvent(new I("error",(new Map).set("detail",c))),C(d)}})}function my(a){var b;return D(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}r.df=function(){var a=this;return D(function(b){return a.lc()?u(b,my(a),0):u(b,ly(a),0)})};
1074
+ r.fg=function(){Cx(this.K,!0);Cx(this.N,!0);this.g.setAttribute("ad-active","true")};r.Nf=function(){Cx(this.K,!1);Cx(this.N,!1);this.g.removeAttribute("ad-active")};function Jx(a){a.P&&a.s.duration&&(a.F.td(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Ix(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1075
+ function ey(a){a.g=Q("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.s.duration&&(a.Rb()?a.J=Date.now():(ny(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){oy(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.Dd()&&a.df()})}
1076
+ function hy(a){var b=Q("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.Wa=new Kx(b,a);a.H.push(a.Wa)}function gy(a){var b=Q("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function py(a){a.K=Q("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Cx(a.K,b);a.M.appendChild(a.K);b=new Fx(a.K,a);a.H.push(b);b=new Ex(a.K,a);a.H.push(b)}
1077
+ function iy(a){a.$=Q("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=Q("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1076
1078
  "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1077
- function py(a){a.L=P("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.g.appendChild(a.L);a.h.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.jc()});vy(a);a.U=P("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.L.appendChild(a.U);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,jy.get(c)?
1078
- (c=jy.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function qy(a){if(a.i.addSeekBar)a.l=wy.create(a.L,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ly(a){a.N=P("div");a.N.classList.add("shaka-client-side-ad-container");Ix(a.N,!1);a.h.o(a.N,"click",function(){uy(a)});a.j.appendChild(a.N)}
1079
- function fy(a){a.h.o(a.F,"buffering",function(){a.P&&Ix(a.$,a.F.Tc())});a.P&&Ix(a.$,a.F.Tc());a.h.o(window,"keydown",function(b){xy(a,b)});a.h.o(window,"click",function(){return a.jc()});a.h.o(a,"submenuopen",function(){a.jc()});a.h.o(a.s,"play",function(){cy(a)});a.h.o(a.s,"pause",function(){cy(a)});a.h.o(a.j,"mousemove",function(b){ty(a,b)});a.h.o(a.j,"touchmove",function(b){ty(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ty(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.Ca()});
1080
- a.h.o(a.C,"caststatuschanged",function(){gy(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)&&ty(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),yy(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),yy(a,a.l.getValue()+c));break;case "Home":a.l&&
1081
- yy(a,a.F.Ma().start);break;case "End":a.l&&yy(a,a.F.Ma().end);break;case " ":e&&zy(a)}});a.h.o(a.j,"keyup",function(b){a.ea.delete(b.key)});a.h.o(a.Ya,"ad-started",function(b){a.m=b.ad;a.fg()});a.h.o(a.Ya,"ad-stopped",function(){a.m=null;a.Of()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return D(function(b){return u(b,Ay(a),0)})})}
1082
- function Ay(a){return D(function(b){return a.s&&0!=a.s.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.Dd()?screen.orientation.type.includes("landscape")&&!a.lc()?u(b,ry(a),0):screen.orientation.type.includes("portrait")&&a.lc()?u(b,sy(a),0):b.D(0):b.return()})}
1083
- function ty(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),cy(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.bb=!0,a.I.stop(),a.Rb()||(dy(a),cy(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function By(a){return window.matchMedia("hover: hover").matches?a.yb.some(function(b){return b.matches(":hover")}):!1}
1084
- function cy(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.bb||d||By(a)?(dy(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function uy(a){a.P&&(a.qd()?a.I.Ca():a.i.singleClickForPlayAndPause&&zy(a))}function zy(a){a.m&&a.m.isLinear()?Ox(a):Px(a)}
1085
- function gy(a){var b=a.C.qa();a.dispatchEvent(new I("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Rb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function yy(a,b){a.l.changeTo(b);a.Rb()&&dy(a)}
1086
- function dy(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new I("timeandseekrangeupdated"))}
1087
- function xy(a,b){a.ea.add(b.key);var c=a.qd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),cy(a),a.h.o(window,"mousedown",function(){a.h.tc(window,"mousedown")}));"Escape"==b.key&&a.I.Ca();c&&a.ea.has("Tab")&&Cy(a,b)}
1088
- function Cy(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ea.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1089
- function ey(){var a=new Wb("en");a.ka("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1079
+ function jy(a){a.M=Q("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.g.appendChild(a.M);a.h.o(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.jc()});py(a);a.U=Q("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.M.appendChild(a.U);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,dy.get(c)?
1080
+ (c=dy.get(c).create(a.U,a),a.H.push(c)):Ya("Unrecognized control panel element requested:",c)}function ky(a){if(a.i.addSeekBar)a.l=qy.create(a.M,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function fy(a){a.N=Q("div");a.N.classList.add("shaka-client-side-ad-container");Cx(a.N,!1);a.h.o(a.N,"click",function(){oy(a)});a.j.appendChild(a.N)}
1081
+ function $x(a){a.h.o(a.F,"buffering",function(){a.P&&Cx(a.$,a.F.Tc())});a.P&&Cx(a.$,a.F.Tc());a.h.o(window,"keydown",function(b){ry(a,b)});a.h.o(window,"click",function(){return a.jc()});a.h.o(a,"submenuopen",function(){a.jc()});a.h.o(a.s,"play",function(){Xx(a)});a.h.o(a.s,"pause",function(){Xx(a)});a.h.o(a.j,"mousemove",function(b){ny(a,b)});a.h.o(a.j,"touchmove",function(b){ny(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ny(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.Ba()});
1082
+ a.h.o(a.C,"caststatuschanged",function(){ay(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)&&ny(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),sy(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),sy(a,a.l.getValue()+c));break;case "Home":a.l&&
1083
+ sy(a,a.F.La().start);break;case "End":a.l&&sy(a,a.F.La().end);break;case " ":e&&ty(a)}});a.h.o(a.j,"keyup",function(b){a.ba.delete(b.key)});a.h.o(a.Ya,"ad-started",function(b){a.m=b.ad;a.fg()});a.h.o(a.Ya,"ad-stopped",function(){a.m=null;a.Nf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return D(function(b){return u(b,uy(a),0)})})}
1084
+ function uy(a){return D(function(b){return a.s&&0!=a.s.readyState&&!a.C.oa()&&a.i.enableFullscreenOnRotation&&a.Dd()?screen.orientation.type.includes("landscape")&&!a.lc()?u(b,ly(a),0):screen.orientation.type.includes("portrait")&&a.lc()?u(b,my(a),0):b.D(0):b.return()})}
1085
+ function ny(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Xx(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.bb=!0,a.I.stop(),a.Rb()||(Yx(a),Xx(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function vy(a){return window.matchMedia("hover: hover").matches?a.xb.some(function(b){return b.matches(":hover")}):!1}
1086
+ function Xx(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.bb||d||vy(a)?(Yx(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function oy(a){a.P&&(a.pd()?a.I.Ba():a.i.singleClickForPlayAndPause&&ty(a))}function ty(a){a.m&&a.m.isLinear()?Ix(a):Jx(a)}
1087
+ function ay(a){var b=a.C.oa();a.dispatchEvent(new I("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Rb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function sy(a,b){a.l.changeTo(b);a.Rb()&&Yx(a)}
1088
+ function Yx(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new I("timeandseekrangeupdated"))}
1089
+ function ry(a,b){a.ba.add(b.key);var c=a.pd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Xx(a),a.h.o(window,"mousedown",function(){a.h.tc(window,"mousedown")}));"Escape"==b.key&&a.I.Ba();c&&a.ba.has("Tab")&&wy(a,b)}
1090
+ function wy(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ba.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1091
+ function Zx(){var a=new Wb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1090
1092
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1091
1093
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1092
1094
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
1093
1095
  ["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
1094
- ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ka("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1096
+ ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ia("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1095
1097
  ["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
1096
1098
  ["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
1097
- a.ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1099
+ a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1098
1100
  ["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],
1099
- ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ka("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1101
+ ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ia("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1100
1102
  "Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],
1101
- ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ka("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1103
+ ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ia("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1102
1104
  ["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],
1103
1105
  ["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE",
1104
- "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1106
+ "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1105
1107
  ["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],
1106
- ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1108
+ ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1107
1109
  ["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],
1108
1110
  ["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND",
1109
- "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ka("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1111
+ "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ia("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1110
1112
  "Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],
1111
1113
  ["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],
1112
- ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ka("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1114
+ ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ia("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1113
1115
  "\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],
1114
1116
  ["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],
1115
- ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ka("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1117
+ ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ia("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1116
1118
  ["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],
1117
1119
  ["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],
1118
- ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ka("nl",new Map([["AD_DURATION",
1120
+ ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ia("nl",new Map([["AD_DURATION",
1119
1121
  "Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN",
1120
1122
  "Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],
1121
- ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ka("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1123
+ ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ia("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1122
1124
  ["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE",
1123
1125
  "Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE",
1124
- "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ka("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1126
+ "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ia("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1125
1127
  "Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],
1126
- ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ka("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1128
+ ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ia("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1127
1129
  ["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
1128
1130
  ["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
1129
1131
  ["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
1130
1132
  "\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
1131
1133
  "\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
1132
1134
  ["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
1133
- ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ka("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1135
+ ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ia("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1134
1136
  ["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1135
1137
  ["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1136
1138
  ["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1137
1139
  ["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
1138
1140
  ["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1139
- ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ka("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1141
+ ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ia("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1140
1142
  ["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
1141
- ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ka("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1143
+ ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ia("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1142
1144
  ["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
1143
1145
  ["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
1144
- ["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.ka("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1146
+ ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1145
1147
  ["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"],
1146
1148
  ["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"],
1147
- ["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.Cf(navigator.languages||[]);return a}G("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Rb;Z.prototype.hideAdUI=Z.prototype.Of;Z.prototype.showAdUI=Z.prototype.fg;
1148
- Z.prototype.toggleFullScreen=Z.prototype.ef;Z.prototype.isFullScreenEnabled=Z.prototype.lc;Z.prototype.isFullScreenSupported=Z.prototype.Dd;Z.prototype.hideSettingsMenus=Z.prototype.jc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.qd;Z.prototype.setLastTouchEventTime=Z.prototype.cg;Z.prototype.getDisplayTime=Z.prototype.Mf;Z.prototype.isCastAllowed=Z.prototype.ih;Z.prototype.setSeeking=Z.prototype.Ze;Z.prototype.isSeeking=Z.prototype.lh;Z.prototype.getConfig=Z.prototype.Hg;
1149
- Z.prototype.getClientSideAdContainer=Z.prototype.Gg;Z.prototype.getServerSideAdContainer=Z.prototype.Yg;Z.prototype.getControlsContainer=Z.prototype.Jg;Z.prototype.getLocalPlayer=Z.prototype.Og;Z.prototype.getPlayer=Z.prototype.fc;Z.prototype.getLocalVideo=Z.prototype.Pg;Z.prototype.getVideo=Z.prototype.Db;Z.prototype.getVideoContainer=Z.prototype.fh;Z.prototype.getLocalization=Z.prototype.Qg;Z.prototype.getCastProxy=Z.prototype.Eg;Z.prototype.getAd=Z.prototype.getAd;
1150
- Z.prototype.setEnabledNativeControls=Z.prototype.ag;Z.prototype.setEnabledShakaControls=Z.prototype.Ue;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.nh;Z.prototype.allowCast=Z.prototype.rg;Z.registerSeekBar=function(a){wy=a};Z.registerElement=iy;Z.prototype.destroy=Z.prototype.destroy;var jy=new Map,wy=new by;function Dy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Cl();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=P("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");
1151
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Ey(this);this.eventManager.o(this.localization,"locale-updated",function(){Fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fy(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Ix(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Ix(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Ix(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.cg(Date.now());
1152
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Gy(c)});Fy(this);this.ad&&this.ad.isLinear()&&Ix(this.g,!1)}ra(Dy,W);Dy.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Hy(a,b){Iy.set(a,b)}
1153
- function Ey(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Iy.get(c)?(c=Iy.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function Gy(a){if(a.controls.qd())a.controls.jc();else{Ix(a.h,!0);cy(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};mb(a.h.childNodes,b)&&nb(a.h.childNodes,b)[0].focus()}}function Fy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1154
- G("shaka.ui.OverflowMenu",Dy);Dy.registerElement=Hy;function Jy(){}Jy.prototype.create=function(a,b){return new Dy(a,b)};iy("overflow_menu",new Jy);var Iy=new Map;function Ky(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=P("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");a.appendChild(this.j);
1155
- this.i=P("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Ly(this);My(this);this.eventManager.o(this.localization,"locale-updated",function(){Ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ly(c)});this.eventManager.o(this.g,"click",function(){c.controls.Db().webkitShowPlaybackTargetPicker()});a=this.controls.Db();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1156
- c.player.we()==jn;Ix(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){My(c)})}ra(Ky,W);function My(a){var b=a.controls.Db();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Ly(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}G("shaka.ui.AirPlayButton",Ky);function Ny(){}Ny.prototype.create=function(a,b){return new Ky(a,b)};Hy("airplay",new Ny);
1157
- iy("airplay",new Ny);function Oy(a,b,c){this.i=a;this.h=Py(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ye()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.bf(b);b.ui=this;c.ui=this}r=Oy.prototype;r.destroy=function(){var a=this;return D(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;C(b)})};r.ye=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Xc()&&1<navigator.maxTouchPoints};
1158
- r.getConfiguration=function(){var a=Py(this);Pl(a,this.h,Py(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));Pl(this.h,a,Py(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new I("uiupdated"))};r.Ig=function(){return this.g};r.Ph=function(a){this.g.Ue(a)};
1159
- function Py(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",
1149
+ ["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.Bf(navigator.languages||[]);return a}G("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Rb;Z.prototype.hideAdUI=Z.prototype.Nf;Z.prototype.showAdUI=Z.prototype.fg;
1150
+ Z.prototype.toggleFullScreen=Z.prototype.df;Z.prototype.isFullScreenEnabled=Z.prototype.lc;Z.prototype.isFullScreenSupported=Z.prototype.Dd;Z.prototype.hideSettingsMenus=Z.prototype.jc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.pd;Z.prototype.setLastTouchEventTime=Z.prototype.ag;Z.prototype.getDisplayTime=Z.prototype.Lf;Z.prototype.isCastAllowed=Z.prototype.jh;Z.prototype.setSeeking=Z.prototype.Ye;Z.prototype.isSeeking=Z.prototype.mh;Z.prototype.getConfig=Z.prototype.Hg;
1151
+ Z.prototype.getClientSideAdContainer=Z.prototype.Gg;Z.prototype.getServerSideAdContainer=Z.prototype.Zg;Z.prototype.getControlsContainer=Z.prototype.Jg;Z.prototype.getLocalPlayer=Z.prototype.Pg;Z.prototype.getPlayer=Z.prototype.fc;Z.prototype.getLocalVideo=Z.prototype.Qg;Z.prototype.getVideo=Z.prototype.Cb;Z.prototype.getVideoContainer=Z.prototype.gh;Z.prototype.getLocalization=Z.prototype.Rg;Z.prototype.getCastProxy=Z.prototype.Eg;Z.prototype.getAd=Z.prototype.getAd;
1152
+ Z.prototype.setEnabledNativeControls=Z.prototype.Zf;Z.prototype.setEnabledShakaControls=Z.prototype.Ue;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.oh;Z.prototype.allowCast=Z.prototype.rg;Z.registerSeekBar=function(a){qy=a};Z.registerElement=cy;Z.prototype.destroy=Z.prototype.destroy;var dy=new Map,qy=new Wx;function xy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Cl();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=Q("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");
1153
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);yy(this);this.eventManager.o(this.localization,"locale-updated",function(){zy(c)});this.eventManager.o(this.localization,"locale-changed",function(){zy(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Cx(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Cx(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Cx(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.ag(Date.now());
1154
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Ay(c)});zy(this);this.ad&&this.ad.isLinear()&&Cx(this.g,!1)}sa(xy,W);xy.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function By(a,b){Cy.set(a,b)}
1155
+ function yy(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Cy.get(c)?(c=Cy.get(c),a.i.push(c.create(a.h,a.controls))):Ya("Unrecognized overflow menu element requested:",c)}function Ay(a){if(a.controls.pd())a.controls.jc();else{Cx(a.h,!0);Xx(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};mb(a.h.childNodes,b)&&nb(a.h.childNodes,b)[0].focus()}}function zy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1156
+ G("shaka.ui.OverflowMenu",xy);xy.registerElement=By;function Dy(){}Dy.prototype.create=function(a,b){return new xy(a,b)};cy("overflow_menu",new Dy);var Cy=new Map;function Ey(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=Q("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=Q("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=Q("span");a.appendChild(this.j);
1157
+ this.i=Q("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Fy(this);Gy(this);this.eventManager.o(this.localization,"locale-updated",function(){Fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fy(c)});this.eventManager.o(this.g,"click",function(){c.controls.Cb().webkitShowPlaybackTargetPicker()});a=this.controls.Cb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1158
+ c.player.we()==jn;Cx(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Gy(c)})}sa(Ey,W);function Gy(a){var b=a.controls.Cb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Fy(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}G("shaka.ui.AirPlayButton",Ey);function Hy(){}Hy.prototype.create=function(a,b){return new Ey(a,b)};By("airplay",new Hy);
1159
+ cy("airplay",new Hy);function Iy(a,b,c){this.i=a;this.h=Jy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ye()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.$e(b);b.ui=this;c.ui=this}r=Iy.prototype;r.destroy=function(){var a=this;return D(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;C(b)})};r.ye=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Xc()&&1<navigator.maxTouchPoints};
1160
+ r.getConfiguration=function(){var a=Jy(this);Pl(a,this.h,Jy(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));Pl(this.h,a,Jy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new I("uiupdated"))};r.Ig=function(){return this.g};r.Qh=function(a){this.g.Ue(a)};
1161
+ function Jy(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",
1160
1162
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},
1161
- trackLabelFormat:Qy,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ye()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1162
- function Ry(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y;return D(function(E){switch(E.g){case 1:ru();if(!zm())return Sy("shaka-ui-load-failed",Ty),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1163
- h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Uy(g,f,k)}E.D(2);break}p=t(a);q=p.next();case 4:if(q.done){E.D(2);break}v=q.value;if(v.ui){E.D(5);break}w=null;x=t(b);for(e=x.next();!e.done;e=x.next())if(z=e.value,z.parentElement==v){w=z;break}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),v.appendChild(w));
1164
- B=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(y=m.value,y.parentElement==v){B=y;break}B||(B=document.createElement("canvas"),B.classList.add("shaka-canvas-container"),v.appendChild(B));wa(E,7);return u(E,Uy(v,w,B),9);case 9:za(E,5);break;case 7:return Aa(E),Sy("shaka-ui-load-failed",Vy),E.return();case 5:q=p.next();E.D(4);break;case 2:Sy("shaka-ui-loaded"),C(E)}})}function Sy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1165
- function Uy(a,b,c){var d,e,f,g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:d=new R(b);e=new Oy(d,a,b);d.xf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1166
- b.controls&&e.g.ag(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){p.D(0);break}n=m.value;wa(p,5);return u(p,e.g.fc().load(n.getAttribute("src")),7);case 7:p.D(0);break;case 5:Aa(p);case 3:m=l.next(),p.D(2)}})}G("shaka.ui.Overlay",Oy);Oy.prototype.setEnabled=Oy.prototype.Ph;Oy.prototype.getControls=Oy.prototype.Ig;Oy.prototype.configure=Oy.prototype.configure;
1167
- Oy.prototype.getConfiguration=Oy.prototype.getConfiguration;Oy.prototype.isMobile=Oy.prototype.ye;Oy.prototype.destroy=Oy.prototype.destroy;var Qy=0;Oy.TrackLabelFormat={LANGUAGE:Qy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ty=0,Vy=1;Oy.FailReasonCode={NO_BROWSER_SUPPORT:Ty,PLAYER_FAILED_TO_LOAD:Vy};"complete"==document.readyState?D(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Ry();C(a)}):window.addEventListener("load",Ry);function Wy(a,b,c,d,e,f,g){function h(y,E,F){return F&&3==g?y+": "+F+": "+E:y+": "+E}function k(y){return"variant"==y.type?y.audioRoles?y.audioRoles.join(", "):void 0:y.roles.join(", ")}var l=a.find(function(y){return 1==y.active}),m=Ex(b);Dl(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l),l.label):"";n={};a=t(a);for(p=a.next();!p.done;n={jb:n.jb},p=a.next()){n.jb=
1168
- p.value;p=n.jb.language;var q=n.jb.forced,v=f.resolve($b.lg),w=k(n.jb),x=n.jb.label,z=h(p,w,x);if(!m.has(z)){m.add(z);var B=Cl();B.addEventListener("click",function(y){return function(){c(y.jb)}}(n));var A=P("span");B.appendChild(A);A.textContent=Xy(p,f);switch(g){case Qy:q&&(A.textContent+=" ("+v+")");break;case 1:w?A.textContent=w:(Za("Track #"+n.jb.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");q&&(A.textContent+=" ("+v+")");break;case 2:w&&(A.textContent+=
1169
- ": "+w);q&&(A.textContent+=" ("+v+")");break;case 3:x?A.textContent=x:(Za("Track #"+n.jb.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&z==l&&(B.appendChild(Hx()),A.classList.add("shaka-chosen-item"),B.ariaSelected="true",e.textContent=A.textContent);b.appendChild(B)}}}
1170
- function Xy(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=Sb(a);return a in Ax?Ax[a].u:c in Ax?Ax[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Yy(a,b,c){W.call(this,a,b);var d=this;Zy(this,c);$y(this);az(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new I("submenuopen")),Ix(d.menu,!0),Gx(d.menu)):Ix(d.menu,!1)})}ra(Yy,W);
1171
- function Zy(a,b){a.button=Cl();a.button.classList.add("shaka-overflow-button");a.icon=P("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=P("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=P("span");b.appendChild(a.nameSpan);a.currentSelection=P("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1172
- function $y(a){a.menu=P("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=Cl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.jc()});var b=P("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1173
- P("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function az(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Ix(a.parent,!0);mb(a.parent.childNodes,b)&&nb(a.parent.childNodes,b)[0].focus();cy(a.controls)}))}G("shaka.ui.SettingsMenu",Yy);function bz(a,b){Yy.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){cz(c)});this.eventManager.o(this.localization,"locale-changed",function(){cz(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Oa().length;Ix(c.button,d);dz(c)});this.eventManager.o(this.player,"variantchanged",
1174
- function(){dz(c)});cz(this);dz(this)}ra(bz,Yy);function dz(a){var b=a.player.Oa();Wy(b,a.menu,function(c){a.player.Qe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Gx(a.menu);a.controls.dispatchEvent(new I("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1175
- function cz(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")}G("shaka.ui.AudioLanguageSelection",bz);function ez(){}ez.prototype.create=function(a,b){return new bz(a,b)};Hy("language",new ez);iy("language",new ez);function fz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Cl();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=P("span");a.appendChild(this.l);this.j=P("span");this.j.classList.add("shaka-current-selection-span");
1176
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);gz(this);hz(this);this.eventManager.o(this.localization,"locale-updated",function(){gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){gz(c)});this.eventManager.o(this.g,"click",function(){iz(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){hz(c)})}ra(fz,W);
1177
- function iz(a){var b;D(function(c){if(1==c.g){if(a.h.qa())return a.h.gg(),c.D(0);wa(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,za(c,0);b=Aa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}function hz(a){var b=a.h.Af()&&a.controls.$a,c=a.h.qa();Ix(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");jz(a)}
1178
- function jz(a){a.j.textContent=a.h.qa()?a.h.Nd():a.localization.resolve("OFF")}function gz(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");jz(a)}G("shaka.ui.CastButton",fz);function kz(){}kz.prototype.create=function(a,b){return new fz(a,b)};Hy("cast",new kz);iy("cast",new kz);function lz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);mz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){mz(c)});this.eventManager.o(this.localization,"locale-changed",function(){mz(c)});
1179
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(lz,W);function mz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}G("shaka.ui.FastForwardButton",lz);function nz(){}nz.prototype.create=function(a,b){return new lz(a,b)};iy("fast_forward",new nz);function oz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Cl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");pz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);qz(this);this.eventManager.o(this.localization,"locale-updated",function(){qz(c)});this.eventManager.o(this.localization,"locale-changed",function(){qz(c)});this.eventManager.o(this.g,"click",function(){return D(function(d){return u(d,
1180
- c.controls.ef(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.lc()?"fullscreen_exit":"fullscreen";qz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){pz(c)});this.eventManager.o(this.h,"loadeddata",function(){pz(c)})}ra(oz,W);function pz(a){a.controls.Dd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function qz(a){a.g.ariaLabel=a.localization.resolve(a.controls.lc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1181
- G("shaka.ui.FullscreenButton",oz);function rz(){}rz.prototype.create=function(a,b){return new oz(a,b)};iy("fullscreen",new rz);function sz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=P("span");this.l.classList.add("shaka-current-selection-span");
1182
- a.appendChild(this.l);this.g.appendChild(a);tz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){tz(c)});this.eventManager.o(this.localization,"locale-changed",function(){tz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ca();c.h.ma(1)});this.m=this.video.loop;this.h=new N(function(){c.m!=c.video.loop&&(tz(c),c.m=c.video.loop)});this.h.ma(1)}ra(sz,W);sz.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1183
- function tz(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")}G("shaka.ui.LoopButton",sz);function uz(){}uz.prototype.create=function(a,b){return new sz(a,b)};Hy("loop",new uz);iy("loop",new uz);Tx("loop",new uz);function vz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);wz(this);xz(this);this.eventManager.o(this.localization,"locale-updated",function(){wz(c)});this.eventManager.o(this.localization,"locale-changed",function(){wz(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});
1184
- this.eventManager.o(this.video,"volumechange",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;wz(c);xz(c)})}ra(vz,W);function wz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1185
- function xz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}G("shaka.ui.MuteButton",vz);function yz(){}yz.prototype.create=function(a,b){return new vz(a,b)};iy("mute",new yz);function zz(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Cl();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1186
- P("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);Az(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Ix(this.g,!1);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(){Bz(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1187
- "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(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Ix(c.g,
1188
- !1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Ix(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Cz(c)})}ra(zz,W);function Bz(a){var b;D(function(c){if(1==c.g)return wa(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return za(c,0);b=Aa(c);a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}
1189
- function Az(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")}
1190
- function Cz(a){D(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Ix(a.g,!1),b.D(0);if(!a.player||!a.player.kc())return Ix(a.g,!0),b.D(0);Ix(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}G("shaka.ui.PipButton",zz);function Dz(){}Dz.prototype.create=function(a,b){return new zz(a,b)};Hy("picture_in_picture",new Dz);iy("picture_in_picture",new Dz);Tx("picture_in_picture",new Dz);function Ez(a,b){Yy.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(){Fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fz(c)});this.eventManager.o(this.player,"loaded",function(){Gz(c,c.player.ob())});this.eventManager.o(this.player,"ratechange",function(){Gz(c,
1191
- c.player.ob())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+"x",d]}));Fz(this);Hz(this);Gz(this,this.player.ob())}ra(Ez,Yy);function Fz(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")}
1192
- function Gz(a,b){var c=Fx(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(Hx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1193
- "x")}function Hz(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={zc:b.zc},d=c.next()){b.zc=d.value;d=Cl();var e=P("span");e.textContent=b.zc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.zc);a.video.defaultPlaybackRate=a.g.get(f.zc)}}(b));a.menu.appendChild(d)}Gx(a.menu)}G("shaka.ui.PlaybackRateSelection",Ez);function Iz(){}Iz.prototype.create=function(a,b){return new Ez(a,b)};Hy("playback_rate",new Iz);iy("playback_rate",new Iz);function Jz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-current-time");Kz(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.X,e=c.controls.Mf(),f=c.player.Ma(),g=f.end-f.start;c.player.T()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(Kz(c,"- "+Jx(e,g)),c.g.disabled=!1):(Kz(c,c.localization.resolve("LIVE")),
1194
- c.g.disabled=!0)):(d=3600<=g,e=Jx(Math.max(0,e-f.start),d),g&&(e+=" / "+Jx(g,d)),Kz(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"))})}ra(Jz,W);function Kz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}G("shaka.ui.PresentationTimeTracker",Jz);function Lz(){}Lz.prototype.create=function(a,b){return new Jz(a,b)};iy("time_and_duration",new Lz);function Mz(a,b){Yy.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(){Nz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Nz(c)});this.eventManager.o(this.player,"variantchanged",function(){Oz(c)});this.eventManager.o(this.player,"trackschanged",function(){Oz(c)});this.eventManager.o(this.player,
1195
- "abrstatuschanged",function(){Oz(c)});Oz(this)}ra(Mz,Yy);
1196
- function Oz(a){var b=[];a.player.we()!=jn&&(b=a.player.Oa());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(a.player.kc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.kc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Ex(a.menu);Dl(a.menu);
1197
- a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={bc:e.bc},g=f.next()){e.bc=g.value;g=Cl();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.bc;a.player.configure({abr:{enabled:!1}});a.player.Qd(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=P("span");h.textContent=a.player.kc()?Math.round(e.bc.bandwidth/1E3)+" kbits/s":e.bc.height+"p";g.appendChild(h);d||e.bc!=c||(g.ariaSelected=
1198
- "true",g.appendChild(Hx()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Cl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Oz(a)});a.g=P("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(Hx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=
1199
- a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);Gx(a.menu);a.controls.dispatchEvent(new I("resolutionselectionupdated"));Nz(a)}
1200
- function Nz(a){var b=a.player.kc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}G("shaka.ui.ResolutionSelection",Mz);function Pz(){}
1201
- Pz.prototype.create=function(a,b){return new Mz(a,b)};Hy("quality",new Pz);iy("quality",new Pz);function Qz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);Rz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Rz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Rz(c)});
1202
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(Qz,W);function Rz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}G("shaka.ui.RewindButton",Qz);function Sz(){}Sz.prototype.create=function(a,b){return new Qz(a,b)};iy("rewind",new Sz);function Tz(a,b){W.call(this,a,b);var c=this;this.j=P("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=P("div");this.h.classList.add("shaka-skip-ad-counter");Ix(this.h,!1);this.j.appendChild(this.h);this.g=Cl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Ix(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Uz(this);this.i=new N(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1203
- d:(c.i.stop(),Ix(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Uz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Uz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Vz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Ix(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Ix(c.g,!1);Ix(c.h,!1)});this.eventManager.o(this.g,
1204
- "click",function(){c.ad.skip()});this.ad&&Vz(this)}ra(Tz,W);Tz.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Uz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Vz(a){a.ad.isSkippable()&&(Ix(a.g,!0),Ix(a.h,!0),a.h.textContent="",a.i.Ca(),a.i.ma(.5))}G("shaka.ui.SkipAdButton",Tz);function Wz(a,b){Nx.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()}ra(Wz,Nx);Wz.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1205
- Wz.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};G("shaka.ui.SmallPlayButton",Wz);function Xz(){}Xz.prototype.create=function(a,b){return new Wz(a,b)};iy("play_pause",new Xz);function Yz(a,b){W.call(this,a,b);a=P("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}ra(Yz,W);G("shaka.ui.Spacer",Yz);function Zz(){}Zz.prototype.create=function(a,b){return new Yz(a,b)};iy("spacer",new Zz);function $z(a,b){function c(k){return Jx(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}W.call(this,a,b);var h=this;this.i=Cl();this.i.classList.add("shaka-statistics-button");this.j=P("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=P("label");a.classList.add("shaka-overflow-button-label");
1206
- this.s=P("span");a.appendChild(this.s);this.m=P("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=P("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1207
- this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new N(function(){h.h=h.player.getStats();for(var k=t(h.F),l=k.next();!l.done;l=
1208
- k.next())l=l.value,h.B[l].textContent=h.C[l](l)});aA(this);bA(this);this.eventManager.o(this.localization,"locale-updated",function(){aA(h)});this.eventManager.o(this.localization,"locale-changed",function(){aA(h)});this.eventManager.o(this.i,"click",function(){Ix(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ma(.1),Ix(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Ix(h.g,!1));aA(h)})}ra($z,W);
1209
- function aA(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1210
- function bA(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=P("div"),h=P("label");h.textContent=c+":";g.appendChild(h);h=P("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Za("Unrecognized statistic element:",c)}$z.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};G("shaka.ui.StatisticsButton",$z);function cA(){}
1211
- cA.prototype.create=function(a,b){return new $z(a,b)};Hy("statistics",new cA);Tx("statistics",new cA);function dA(a,b){Yy.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.Sb()?this.button.ariaPressed="true":this.button.ariaPressed="false";eA(this);this.eventManager.o(this.localization,"locale-updated",function(){fA(c);gA(c)});this.eventManager.o(this.localization,"locale-changed",function(){fA(c);gA(c)});this.eventManager.o(this.player,
1212
- "texttrackvisibility",function(){hA(c);gA(c)});this.eventManager.o(this.player,"textchanged",function(){gA(c)});this.eventManager.o(this.player,"trackschanged",function(){iA(c)});hA(this);fA(this);gA(this);iA(this)}ra(dA,Yy);function eA(a){var b=Cl();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Hx());a.g=P("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1213
- function hA(a){a.player.Sb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new I("captionselectionupdated"))}
1214
- function gA(a){var b=a.player.Cb();Wy(b,a.menu,function(c){return jA(a,c)},a.player.Sb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Cl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Rd(!1);gA(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Sb()||(b.ariaSelected="true",b.appendChild(Hx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1215
- a.currentSelection.textContent);Gx(a.menu);a.controls.dispatchEvent(new I("captionselectionupdated"))}function jA(a,b){return D(function(c){a.player.Se(b);return u(c,a.player.Rd(!0),0)})}function fA(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")}
1216
- function iA(a){var b=0<a.player.Cb().length;Ix(a.button,b);gA(a)}G("shaka.ui.TextSelection",dA);function kA(){}kA.prototype.create=function(a,b){return new dA(a,b)};Hy("captions",new kA);iy("captions",new kA);function lA(a,b){Vx.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return mA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return nA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return nA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return mA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return oA(c)});
1217
- this.eventManager.o(this.localization,"locale-changed",function(){return oA(c)});mA(this);oA(this);if(this.ad)this.onChange()}ra(lA,Vx);lA.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function mA(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);pA(a)}function nA(a){var b=a.ad.getVolume();a.setValue(100*b);pA(a)}
1218
- function pA(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function oA(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}G("shaka.ui.VolumeBar",lA);function qA(){}qA.prototype.create=function(a,b){return new lA(a,b)};iy("volume",new qA);}).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})();
1163
+ trackLabelFormat:Ky,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ye()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1164
+ function Ly(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y;return D(function(E){switch(E.g){case 1:pu();if(!zm())return My("shaka-ui-load-failed",Ny),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1165
+ h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Oy(g,f,k)}E.D(2);break}p=t(a);q=p.next();case 4:if(q.done){E.D(2);break}v=q.value;if(v.ui){E.D(5);break}w=null;x=t(b);for(e=x.next();!e.done;e=x.next())if(z=e.value,z.parentElement==v){w=z;break}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),v.appendChild(w));
1166
+ B=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(y=m.value,y.parentElement==v){B=y;break}B||(B=document.createElement("canvas"),B.classList.add("shaka-canvas-container"),v.appendChild(B));xa(E,7);return u(E,Oy(v,w,B),9);case 9:Aa(E,5);break;case 7:return Ba(E),My("shaka-ui-load-failed",Py),E.return();case 5:q=p.next();E.D(4);break;case 2:My("shaka-ui-loaded"),C(E)}})}function My(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1167
+ function Oy(a,b,c){var d,e,f,g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:d=new S(b);e=new Iy(d,a,b);d.wf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1168
+ b.controls&&e.g.Zf(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){p.D(0);break}n=m.value;xa(p,5);return u(p,e.g.fc().load(n.getAttribute("src")),7);case 7:p.D(0);break;case 5:Ba(p);case 3:m=l.next(),p.D(2)}})}G("shaka.ui.Overlay",Iy);Iy.prototype.setEnabled=Iy.prototype.Qh;Iy.prototype.getControls=Iy.prototype.Ig;Iy.prototype.configure=Iy.prototype.configure;
1169
+ Iy.prototype.getConfiguration=Iy.prototype.getConfiguration;Iy.prototype.isMobile=Iy.prototype.ye;Iy.prototype.destroy=Iy.prototype.destroy;var Ky=0;Iy.TrackLabelFormat={LANGUAGE:Ky,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ny=0,Py=1;Iy.FailReasonCode={NO_BROWSER_SUPPORT:Ny,PLAYER_FAILED_TO_LOAD:Py};"complete"==document.readyState?D(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Ly();C(a)}):window.addEventListener("load",Ly);function Qy(a,b,c,d,e,f,g){function h(y,E,F){return F&&3==g?y+": "+F+": "+E:y+": "+E}function k(y){return"variant"==y.type?y.audioRoles?y.audioRoles.join(", "):void 0:y.roles.join(", ")}var l=a.find(function(y){return 1==y.active}),m=yx(b);Dl(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l),l.label):"";n={};a=t(a);for(p=a.next();!p.done;n={ib:n.ib},p=a.next()){n.ib=
1170
+ p.value;p=n.ib.language;var q=n.ib.forced,v=f.resolve($b.lg),w=k(n.ib),x=n.ib.label,z=h(p,w,x);if(!m.has(z)){m.add(z);var B=Cl();B.addEventListener("click",function(y){return function(){c(y.ib)}}(n));var A=Q("span");B.appendChild(A);A.textContent=Ry(p,f);switch(g){case Ky:q&&(A.textContent+=" ("+v+")");break;case 1:w?A.textContent=w:(Ya("Track #"+n.ib.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");q&&(A.textContent+=" ("+v+")");break;case 2:w&&(A.textContent+=
1171
+ ": "+w);q&&(A.textContent+=" ("+v+")");break;case 3:x?A.textContent=x:(Ya("Track #"+n.ib.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&z==l&&(B.appendChild(Bx()),A.classList.add("shaka-chosen-item"),B.ariaSelected="true",e.textContent=A.textContent);b.appendChild(B)}}}
1172
+ function Ry(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=Sb(a);return a in ux?ux[a].u:c in ux?ux[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Sy(a,b,c){W.call(this,a,b);var d=this;Ty(this,c);Uy(this);Vy(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new I("submenuopen")),Cx(d.menu,!0),Ax(d.menu)):Cx(d.menu,!1)})}sa(Sy,W);
1173
+ function Ty(a,b){a.button=Cl();a.button.classList.add("shaka-overflow-button");a.icon=Q("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=Q("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=Q("span");b.appendChild(a.nameSpan);a.currentSelection=Q("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1174
+ function Uy(a){a.menu=Q("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=Cl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.jc()});var b=Q("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1175
+ Q("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Vy(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Cx(a.parent,!0);mb(a.parent.childNodes,b)&&nb(a.parent.childNodes,b)[0].focus();Xx(a.controls)}))}G("shaka.ui.SettingsMenu",Sy);function Wy(a,b){Sy.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){Xy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Xy(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Na().length;Cx(c.button,d);Yy(c)});this.eventManager.o(this.player,"variantchanged",
1176
+ function(){Yy(c)});Xy(this);Yy(this)}sa(Wy,Sy);function Yy(a){var b=a.player.Na();Qy(b,a.menu,function(c){a.player.Pe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Ax(a.menu);a.controls.dispatchEvent(new I("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1177
+ function Xy(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")}G("shaka.ui.AudioLanguageSelection",Wy);function Zy(){}Zy.prototype.create=function(a,b){return new Wy(a,b)};By("language",new Zy);cy("language",new Zy);function $y(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Cl();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=Q("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=Q("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=Q("span");a.appendChild(this.l);this.j=Q("span");this.j.classList.add("shaka-current-selection-span");
1178
+ a.appendChild(this.j);this.g.appendChild(a);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(){cz(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){bz(c)})}sa($y,W);
1179
+ function cz(a){var b;D(function(c){if(1==c.g){if(a.h.oa())return a.h.gg(),c.D(0);xa(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,Aa(c,0);b=Ba(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}function bz(a){var b=a.h.zf()&&a.controls.$a,c=a.h.oa();Cx(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");dz(a)}
1180
+ function dz(a){a.j.textContent=a.h.oa()?a.h.Nd():a.localization.resolve("OFF")}function az(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");dz(a)}G("shaka.ui.CastButton",$y);function ez(){}ez.prototype.create=function(a,b){return new $y(a,b)};By("cast",new ez);cy("cast",new ez);function fz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);gz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){gz(c)});
1181
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.mb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.gf(d);c.g.setAttribute("shaka-status",d+"x")}})}sa(fz,W);function gz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}G("shaka.ui.FastForwardButton",fz);function hz(){}hz.prototype.create=function(a,b){return new fz(a,b)};cy("fast_forward",new hz);function iz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Cl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");jz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);kz(this);this.eventManager.o(this.localization,"locale-updated",function(){kz(c)});this.eventManager.o(this.localization,"locale-changed",function(){kz(c)});this.eventManager.o(this.g,"click",function(){return D(function(d){return u(d,
1182
+ c.controls.df(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.lc()?"fullscreen_exit":"fullscreen";kz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){jz(c)});this.eventManager.o(this.h,"loadeddata",function(){jz(c)})}sa(iz,W);function jz(a){a.controls.Dd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function kz(a){a.g.ariaLabel=a.localization.resolve(a.controls.lc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1183
+ G("shaka.ui.FullscreenButton",iz);function lz(){}lz.prototype.create=function(a,b){return new iz(a,b)};cy("fullscreen",new lz);function mz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=Q("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=Q("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=Q("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=Q("span");this.l.classList.add("shaka-current-selection-span");
1184
+ a.appendChild(this.l);this.g.appendChild(a);nz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){nz(c)});this.eventManager.o(this.localization,"locale-changed",function(){nz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ba();c.h.ka(1)});this.m=this.video.loop;this.h=new M(function(){c.m!=c.video.loop&&(nz(c),c.m=c.video.loop)});this.h.ka(1)}sa(mz,W);mz.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1185
+ function nz(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")}G("shaka.ui.LoopButton",mz);function oz(){}oz.prototype.create=function(a,b){return new mz(a,b)};By("loop",new oz);cy("loop",new oz);Nx("loop",new oz);function pz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);qz(this);rz(this);this.eventManager.o(this.localization,"locale-updated",function(){qz(c)});this.eventManager.o(this.localization,"locale-changed",function(){qz(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});
1186
+ this.eventManager.o(this.video,"volumechange",function(){qz(c);rz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){qz(c);rz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){qz(c);rz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;qz(c);rz(c)})}sa(pz,W);function qz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1187
+ function rz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}G("shaka.ui.MuteButton",pz);function sz(){}sz.prototype.create=function(a,b){return new pz(a,b)};cy("mute",new sz);function tz(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Cl();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=Q("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=Q("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=Q("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1188
+ Q("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);uz(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Cx(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){uz(c)});this.eventManager.o(this.localization,"locale-changed",function(){uz(c)});this.eventManager.o(this.g,"click",function(){vz(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1189
+ "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(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Cx(c.g,
1190
+ !1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Cx(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){wz(c)})}sa(tz,W);function vz(a){var b;D(function(c){if(1==c.g)return xa(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return Aa(c,0);b=Ba(c);a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}
1191
+ function uz(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")}
1192
+ function wz(a){D(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Cx(a.g,!1),b.D(0);if(!a.player||!a.player.kc())return Cx(a.g,!0),b.D(0);Cx(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}G("shaka.ui.PipButton",tz);function xz(){}xz.prototype.create=function(a,b){return new tz(a,b)};By("picture_in_picture",new xz);cy("picture_in_picture",new xz);Nx("picture_in_picture",new xz);function yz(a,b){Sy.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(){zz(c)});this.eventManager.o(this.localization,"locale-changed",function(){zz(c)});this.eventManager.o(this.player,"loaded",function(){Az(c,c.player.mb())});this.eventManager.o(this.player,"ratechange",function(){Az(c,
1193
+ c.player.mb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+"x",d]}));zz(this);Bz(this);Az(this,this.player.mb())}sa(yz,Sy);function zz(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")}
1194
+ function Az(a,b){var c=zx(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(Bx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1195
+ "x")}function Bz(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={zc:b.zc},d=c.next()){b.zc=d.value;d=Cl();var e=Q("span");e.textContent=b.zc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.zc);a.video.defaultPlaybackRate=a.g.get(f.zc)}}(b));a.menu.appendChild(d)}Ax(a.menu)}G("shaka.ui.PlaybackRateSelection",yz);function Cz(){}Cz.prototype.create=function(a,b){return new yz(a,b)};By("playback_rate",new Cz);cy("playback_rate",new Cz);function Dz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-current-time");Ez(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.La().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Lf(),f=c.player.La(),g=f.end-f.start;c.player.T()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(Ez(c,"- "+Dx(e,g)),c.g.disabled=!1):(Ez(c,c.localization.resolve("LIVE")),
1196
+ c.g.disabled=!0)):(d=3600<=g,e=Dx(Math.max(0,e-f.start),d),g&&(e+=" / "+Dx(g,d)),Ez(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"))})}sa(Dz,W);function Ez(a,b){b!=a.g.textContent&&(a.g.textContent=b)}G("shaka.ui.PresentationTimeTracker",Dz);function Fz(){}Fz.prototype.create=function(a,b){return new Dz(a,b)};cy("time_and_duration",new Fz);function Gz(a,b){Sy.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(){Hz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Hz(c)});this.eventManager.o(this.player,"variantchanged",function(){Iz(c)});this.eventManager.o(this.player,"trackschanged",function(){Iz(c)});this.eventManager.o(this.player,
1197
+ "abrstatuschanged",function(){Iz(c)});Iz(this)}sa(Gz,Sy);
1198
+ function Iz(a){var b=[];a.player.we()!=jn&&(b=a.player.Na());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(a.player.kc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.kc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=yx(a.menu);Dl(a.menu);
1199
+ a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={cc:e.cc},g=f.next()){e.cc=g.value;g=Cl();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.cc;a.player.configure({abr:{enabled:!1}});a.player.Qd(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=Q("span");h.textContent=a.player.kc()?Math.round(e.cc.bandwidth/1E3)+" kbits/s":e.cc.height+"p";g.appendChild(h);d||e.cc!=c||(g.ariaSelected=
1200
+ "true",g.appendChild(Bx()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Cl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Iz(a)});a.g=Q("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(Bx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=
1201
+ a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);Ax(a.menu);a.controls.dispatchEvent(new I("resolutionselectionupdated"));Hz(a)}
1202
+ function Hz(a){var b=a.player.kc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}G("shaka.ui.ResolutionSelection",Gz);function Jz(){}
1203
+ Jz.prototype.create=function(a,b){return new Gz(a,b)};By("quality",new Jz);cy("quality",new Jz);function Kz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);Lz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Lz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Lz(c)});
1204
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.mb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.gf(d);c.g.setAttribute("shaka-status",d+"x")}})}sa(Kz,W);function Lz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}G("shaka.ui.RewindButton",Kz);function Mz(){}Mz.prototype.create=function(a,b){return new Kz(a,b)};cy("rewind",new Mz);function Nz(a,b){W.call(this,a,b);var c=this;this.j=Q("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=Q("div");this.h.classList.add("shaka-skip-ad-counter");Cx(this.h,!1);this.j.appendChild(this.h);this.g=Cl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Cx(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Oz(this);this.i=new M(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1205
+ d:(c.i.stop(),Cx(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Oz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Oz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Pz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Cx(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Cx(c.g,!1);Cx(c.h,!1)});this.eventManager.o(this.g,
1206
+ "click",function(){c.ad.skip()});this.ad&&Pz(this)}sa(Nz,W);Nz.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Oz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Pz(a){a.ad.isSkippable()&&(Cx(a.g,!0),Cx(a.h,!0),a.h.textContent="",a.i.Ba(),a.i.ka(.5))}G("shaka.ui.SkipAdButton",Nz);function Qz(a,b){Hx.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()}sa(Qz,Hx);Qz.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1207
+ Qz.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};G("shaka.ui.SmallPlayButton",Qz);function Rz(){}Rz.prototype.create=function(a,b){return new Qz(a,b)};cy("play_pause",new Rz);function Sz(a,b){W.call(this,a,b);a=Q("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}sa(Sz,W);G("shaka.ui.Spacer",Sz);function Tz(){}Tz.prototype.create=function(a,b){return new Sz(a,b)};cy("spacer",new Tz);function Uz(a,b){function c(k){return Dx(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}W.call(this,a,b);var h=this;this.i=Cl();this.i.classList.add("shaka-statistics-button");this.j=Q("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=Q("label");a.classList.add("shaka-overflow-button-label");
1208
+ this.s=Q("span");a.appendChild(this.s);this.m=Q("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=Q("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1209
+ this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new M(function(){h.h=h.player.getStats();for(var k=t(h.F),l=k.next();!l.done;l=
1210
+ k.next())l=l.value,h.B[l].textContent=h.C[l](l)});Vz(this);Wz(this);this.eventManager.o(this.localization,"locale-updated",function(){Vz(h)});this.eventManager.o(this.localization,"locale-changed",function(){Vz(h)});this.eventManager.o(this.i,"click",function(){Cx(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),Cx(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Cx(h.g,!1));Vz(h)})}sa(Uz,W);
1211
+ function Vz(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1212
+ function Wz(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=Q("div"),h=Q("label");h.textContent=c+":";g.appendChild(h);h=Q("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ya("Unrecognized statistic element:",c)}Uz.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};G("shaka.ui.StatisticsButton",Uz);function Xz(){}
1213
+ Xz.prototype.create=function(a,b){return new Uz(a,b)};By("statistics",new Xz);Nx("statistics",new Xz);function Yz(a,b){Sy.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.Sb()?this.button.ariaPressed="true":this.button.ariaPressed="false";Zz(this);this.eventManager.o(this.localization,"locale-updated",function(){$z(c);aA(c)});this.eventManager.o(this.localization,"locale-changed",function(){$z(c);aA(c)});this.eventManager.o(this.player,
1214
+ "texttrackvisibility",function(){bA(c);aA(c)});this.eventManager.o(this.player,"textchanged",function(){aA(c)});this.eventManager.o(this.player,"trackschanged",function(){cA(c)});bA(this);$z(this);aA(this);cA(this)}sa(Yz,Sy);function Zz(a){var b=Cl();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Bx());a.g=Q("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1215
+ function bA(a){a.player.Sb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new I("captionselectionupdated"))}
1216
+ function aA(a){var b=a.player.Bb();Qy(b,a.menu,function(c){return dA(a,c)},a.player.Sb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Cl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Rd(!1);aA(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Sb()||(b.ariaSelected="true",b.appendChild(Bx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1217
+ a.currentSelection.textContent);Ax(a.menu);a.controls.dispatchEvent(new I("captionselectionupdated"))}function dA(a,b){return D(function(c){a.player.Re(b);return u(c,a.player.Rd(!0),0)})}function $z(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")}
1218
+ function cA(a){var b=0<a.player.Bb().length;Cx(a.button,b);aA(a)}G("shaka.ui.TextSelection",Yz);function eA(){}eA.prototype.create=function(a,b){return new Yz(a,b)};By("captions",new eA);cy("captions",new eA);function fA(a,b){Px.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return gA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return hA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return hA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return gA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return iA(c)});
1219
+ this.eventManager.o(this.localization,"locale-changed",function(){return iA(c)});gA(this);iA(this);if(this.ad)this.onChange()}sa(fA,Px);fA.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function gA(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);jA(a)}function hA(a){var b=a.ad.getVolume();a.setValue(100*b);jA(a)}
1220
+ function jA(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function iA(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}G("shaka.ui.VolumeBar",fA);function kA(){}kA.prototype.create=function(a,b){return new fA(a,b)};cy("volume",new kA);}).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})();
1219
1221
 
1220
1222
  //# sourceMappingURL=shaka-player.ui.map