shaka-player 3.0.14 → 3.0.15

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 (82) hide show
  1. package/AUTHORS +2 -0
  2. package/CHANGELOG.md +39 -0
  3. package/CONTRIBUTORS +2 -0
  4. package/build/generateExterns.js +1 -1
  5. package/demo/common/assets.js +1 -1
  6. package/dist/controls.css +1 -1
  7. package/dist/demo.compiled.debug.js +1 -1
  8. package/dist/demo.compiled.js +1 -1
  9. package/dist/deps.js +1 -1
  10. package/dist/locales.js +34 -34
  11. package/dist/receiver.compiled.debug.js +1 -1
  12. package/dist/receiver.compiled.js +1 -1
  13. package/dist/shaka-player.compiled.d.ts +1 -1
  14. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  15. package/dist/shaka-player.compiled.debug.externs.js +1 -1
  16. package/dist/shaka-player.compiled.debug.js +181 -178
  17. package/dist/shaka-player.compiled.debug.map +3 -3
  18. package/dist/shaka-player.compiled.externs.js +1 -1
  19. package/dist/shaka-player.compiled.js +688 -686
  20. package/dist/shaka-player.compiled.map +3 -3
  21. package/dist/shaka-player.ui.d.ts +1 -1
  22. package/dist/shaka-player.ui.debug.d.ts +1 -1
  23. package/dist/shaka-player.ui.debug.externs.js +3 -3
  24. package/dist/shaka-player.ui.debug.js +169 -166
  25. package/dist/shaka-player.ui.debug.map +4 -4
  26. package/dist/shaka-player.ui.externs.js +3 -3
  27. package/dist/shaka-player.ui.js +815 -813
  28. package/dist/shaka-player.ui.map +4 -4
  29. package/docs/tutorials/fairplay.md +1 -1
  30. package/karma.conf.js +1 -0
  31. package/lib/ads/client_side_ad_manager.js +46 -86
  32. package/lib/ads/server_side_ad_manager.js +7 -10
  33. package/lib/cast/cast_proxy.js +3 -2
  34. package/lib/cast/cast_receiver.js +6 -2
  35. package/lib/cast/cast_sender.js +2 -2
  36. package/lib/dash/dash_parser.js +52 -0
  37. package/lib/dash/segment_list.js +1 -1
  38. package/lib/dash/segment_template.js +1 -1
  39. package/lib/hls/hls_parser.js +25 -10
  40. package/lib/media/drm_engine.js +7 -0
  41. package/lib/media/gap_jumping_controller.js +4 -2
  42. package/lib/media/streaming_engine.js +2 -1
  43. package/lib/net/networking_engine.js +2 -1
  44. package/lib/player.js +18 -17
  45. package/lib/polyfill/patchedmediakeys_apple.js +4 -4
  46. package/lib/polyfill/patchedmediakeys_ms.js +4 -4
  47. package/lib/polyfill/patchedmediakeys_webkit.js +4 -4
  48. package/lib/text/mp4_ttml_parser.js +3 -0
  49. package/lib/text/ttml_text_parser.js +5 -0
  50. package/lib/text/ui_text_displayer.js +6 -1
  51. package/lib/util/fake_event.js +53 -7
  52. package/lib/util/periods.js +4 -1
  53. package/package.json +1 -1
  54. package/test/cast/cast_proxy_unit.js +12 -6
  55. package/test/cast/cast_utils_unit.js +1 -1
  56. package/test/dash/dash_parser_manifest_unit.js +73 -0
  57. package/test/hls/hls_parser_unit.js +5 -1
  58. package/test/media/drm_engine_unit.js +43 -0
  59. package/test/player_integration.js +38 -0
  60. package/test/test/assets/3675/chunk-stream0-00001.m4s +0 -0
  61. package/test/test/assets/3675/chunk-stream0-00002.m4s +0 -0
  62. package/test/test/assets/3675/chunk-stream0-00003.m4s +0 -0
  63. package/test/test/assets/3675/chunk-stream0-00004.m4s +0 -0
  64. package/test/test/assets/3675/chunk-stream0-00005.m4s +0 -0
  65. package/test/test/assets/3675/chunk-stream0-00006.m4s +0 -0
  66. package/test/test/assets/3675/chunk-stream0-00007.m4s +0 -0
  67. package/test/test/assets/3675/dash_0.mpd +30 -0
  68. package/test/test/assets/3675/dash_1.mpd +30 -0
  69. package/test/test/assets/3675/dash_2.mpd +30 -0
  70. package/test/test/assets/3675/dash_3.mpd +30 -0
  71. package/test/test/assets/3675/dash_4.mpd +30 -0
  72. package/test/test/assets/3675/dash_5.mpd +26 -0
  73. package/test/test/assets/3675/init-stream0.m4s +0 -0
  74. package/test/test/util/fake_ad_manager.js +1 -1
  75. package/test/text/ttml_text_parser_unit.js +9 -0
  76. package/test/text/ui_text_displayer_unit.js +18 -0
  77. package/test/ui/localization_unit.js +15 -14
  78. package/ui/cast_button.js +2 -3
  79. package/ui/controls.js +4 -6
  80. package/ui/locales/ru.json +6 -6
  81. package/ui/localization.js +28 -51
  82. package/ui/pip_button.js +2 -3
@@ -16,756 +16,758 @@ ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(v
16
16
  function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
17
17
  if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
18
18
  function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.$g=b.prototype}function qa(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.u=0;this.D=this.i=null}function ra(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}qa.prototype.B=function(a){this.h=a};
19
- function sa(a,b){a.i={we:b,De:!0};a.g=a.u||a.j}qa.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function t(a,b,c){a.g=c;return{value:b}}qa.prototype.C=function(a){this.g=a};function x(a){a.g=0}function y(a,b,c){a.u=b;void 0!=c&&(a.j=c)}function ta(a){a.u=0;a.j=2}function ua(a,b){a.g=b;a.u=0}function D(a){a.u=0;var b=a.i.we;a.i=null;return b}function va(a){a.D=[a.i];a.u=0;a.j=0}
20
- function wa(a,b){var c=a.D.splice(0)[0];(c=a.i=a.i||c)?c.De?a.g=a.u||a.j:void 0!=c.C&&a.j<c.C?(a.g=c.C,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new qa;this.h=a}function ya(a,b){ra(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Aa(a)}
19
+ function sa(a,b){a.i={ye:b,Fe:!0};a.g=a.u||a.j}qa.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function t(a,b,c){a.g=c;return{value:b}}qa.prototype.C=function(a){this.g=a};function x(a){a.g=0}function y(a,b,c){a.u=b;void 0!=c&&(a.j=c)}function ta(a){a.u=0;a.j=2}function ua(a,b){a.g=b;a.u=0}function C(a){a.u=0;var b=a.i.ye;a.i=null;return b}function va(a){a.D=[a.i];a.u=0;a.j=0}
20
+ function wa(a,b){var c=a.D.splice(0)[0];(c=a.i=a.i||c)?c.Fe?a.g=a.u||a.j:void 0!=c.C&&a.j<c.C?(a.g=c.C,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new qa;this.h=a}function ya(a,b){ra(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Aa(a)}
21
21
  function za(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Aa(a)}a.g.l=null;d.call(a.g,f);return Aa(a)}
22
- function Aa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.De)throw b.we;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
22
+ function Aa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Fe)throw b.ye;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
23
  function Ba(a){this.next=function(b){ra(a.g);a.g.l?b=za(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Aa(a));return b};this["throw"]=function(b){ra(a.g);a.g.l?b=za(a,a.g.l["throw"],b,a.g.B):(sa(a.g,b),b=Aa(a));return b};this["return"]=function(b){return ya(a,b)};this[Symbol.iterator]=function(){return this}}function Ca(a,b){var c=new Ba(new xa(b));oa&&a.prototype&&oa(c,a.prototype);return c}
24
- function Da(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function G(a){return Da(new Ba(new xa(a)))}
24
+ function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function H(a){return Ea(new Ba(new xa(a)))}
25
25
  ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
26
26
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.K),reject:g(this.l)}};b.prototype.K=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.P(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.J(g):this.u(g)}};
27
- b.prototype.J=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.R(h,g):this.u(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.u=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.N();this.D()};b.prototype.N=function(){var g=this;e(function(){if(g.H()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.H=
27
+ b.prototype.J=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.S(h,g):this.u(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.u=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.N();this.D()};b.prototype.N=function(){var g=this;e(function(){if(g.H()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.H=
28
28
  function(){if(this.A)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.D=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
29
- b.prototype.P=function(g){var h=this.j();g.Tc(h.resolve,h.reject)};b.prototype.R=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(q,u){return"function"==typeof q?function(v){try{l(q(v))}catch(A){m(A)}}:u}var l,m,n=new b(function(q,u){l=q;m=u});this.Tc(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Tc=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).Tc(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(A){q[v]=A;u--;0==u&&l(q)}}var q=[],u=0;do q.push(void 0),u++,d(k.value).Tc(n(q.length-1),m),k=h.next();
31
- while(!k.done)})};return b});function Ea(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
- ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ea(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
- m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ea(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ea(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
- Ea(k,g)&&Ea(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ea(k,g)&&Ea(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- ea("Map",function(a){function b(){var h={};return h.eb=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.eb;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&&Ea(h.h,l))for(var n=0;n<m.length;n++){var q=m[n];if(k!==k&&q.key!==q.key||k===q.key)return{id:l,list:m,index:n,sa:q}}return{id:l,
36
- list:m,index:-1,sa:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.sa?l.sa.value=k:(l.sa={next:this.g,eb:this.g.eb,head:this.g,key:h,value:k},l.list.push(l.sa),this.g.eb.next=l.sa,this.g.eb=l.sa,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.sa&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.sa.eb.next=h.sa.next,h.sa.next.eb=h.sa.eb,
38
- h.sa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.eb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).sa};e.prototype.get=function(h){return(h=d(this,h).sa)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
- 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});
29
+ b.prototype.P=function(g){var h=this.j();g.Vc(h.resolve,h.reject)};b.prototype.S=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(q,u){return"function"==typeof q?function(v){try{l(q(v))}catch(A){m(A)}}:u}var l,m,n=new b(function(q,u){l=q;m=u});this.Vc(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Vc=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=r(g),m=l.next();!m.done;m=l.next())d(m.value).Vc(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(A){q[v]=A;u--;0==u&&l(q)}}var q=[],u=0;do q.push(void 0),u++,d(k.value).Vc(n(q.length-1),m),k=h.next();
31
+ while(!k.done)})};return b});function Fa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
+ ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Fa(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
+ m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Fa(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Fa(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
+ Fa(k,g)&&Fa(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Fa(k,g)&&Fa(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
+ ea("Map",function(a){function b(){var h={};return h.gb=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.gb;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&&Fa(h.h,l))for(var n=0;n<m.length;n++){var q=m[n];if(k!==k&&q.key!==q.key||k===q.key)return{id:l,list:m,index:n,va:q}}return{id:l,
36
+ list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,gb:this.g.gb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.gb.next=l.va,this.g.gb=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.gb.next=h.va.next,h.va.next.gb=h.va.gb,
38
+ h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.gb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
+ 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 Ga(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 Ga(this,function(b){return b})}});
40
40
  ea("Set",function(a){function b(c){this.g=new Map;if(c){c=r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
41
41
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;
42
- b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Fa(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 Fa(this,function(b){return b})}});
43
- ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});function Ha(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{ua:e,Ze:f}}return{ua:-1,Ze:void 0}}
44
- ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).ua}});ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ha(this,b,c).Ze}});
45
- function Ka(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=Ka(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
46
- ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});
47
- ea("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});var La="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ea(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||La});
48
- ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});var Ma=this||self;function J(a,b){var c=a.split("."),d=Ma;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
42
+ b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});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}});
43
+ function Ha(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{sa:e,bf:f}}return{sa:-1,bf:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).sa}});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;})})}});
44
+ ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ha(this,b,c).bf}});function Ia(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
45
+ ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=Ia(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
46
+ 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,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ia(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});
47
+ ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});var Ja="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)Fa(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Ja});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Fa(b,d)&&c.push(b[d]);return c}});var Ka=this||self;
48
+ function L(a,b){var c=a.split("."),d=Ka;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
49
49
  @license
50
50
  Shaka Player
51
51
  Copyright 2016 Google LLC
52
52
  SPDX-License-Identifier: Apache-2.0
53
53
  */
54
- function L(a,b){b=void 0===b?{}:b;for(var 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}L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};L.prototype.stopImmediatePropagation=function(){this.g=!0};
55
- L.prototype.stopPropagation=function(){};J("shaka.util.FakeEvent",L);function Oa(){}function Pa(){}function Qa(){}function Sa(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];Ta.has(a)||(Ta.add(a),Qa.apply(Oa,ia(c)))}function Ua(){}function Va(){}function Wa(){}var Ta=new Set;if(window.console&&window.console.log.bind){var Xa={},Ya=(Xa[1]=console.error.bind(console),Xa[2]=console.warn.bind(console),Xa[3]=console.info.bind(console),Xa[4]=console.log.bind(console),Xa[5]=console.debug.bind(console),Xa[6]=console.debug.bind(console),Xa);Qa=Ya[2];Pa=Ya[1]};function Za(){this.g={}}Za.prototype.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};Za.prototype.get=function(a){return(a=this.g[a])?a.slice():null};Za.prototype.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function $a(a,b){for(var c in a.g)b(c,a.g[c])}Za.prototype.size=function(){return Object.keys(this.g).length};function db(){this.Cd=new Za;this.Qc=this}db.prototype.addEventListener=function(a,b){this.Cd.push(a,b)};db.prototype.removeEventListener=function(a,b){this.Cd.remove(a,b)};db.prototype.dispatchEvent=function(a){var b=this.Cd.get(a.type)||[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Qc;a.currentTarget=this.Qc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};function eb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function fb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function gb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function hb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c}
56
- var kb=function jb(a){var c;return Ca(jb,function(d){1==d.g&&(c=0);if(3!=d.g)return c<a?t(d,c,3):d.C(0);c++;return d.C(2)})},mb=function lb(a){var c,d,e,f,g,h;return Ca(lb,function(k){1==k.g&&(c=-1,e=d=void 0,f=r(a),g=f.next());if(5!=k.g){if(g.done)return-1==c?k.C(0):t(k,{ua:c,$f:d,item:e,next:void 0},0);h=g.value;return 0<=c?t(k,{ua:c,item:e,$f:d,next:h},5):k.C(5)}c++;d=e;e=h;g=f.next();return k.C(2)})};/*
54
+ function M(a,b){if(b)if(b instanceof Map)for(var c=r(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
55
+ function La(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};L("shaka.util.FakeEvent",M);function Ma(){}function Na(){}function Oa(){}function Pa(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];Qa.has(a)||(Qa.add(a),Oa.apply(Ma,ia(c)))}function Ra(){}function Sa(){}function Ta(){}var Qa=new Set;if(window.console&&window.console.log.bind){var Ua={},Va=(Ua[1]=console.error.bind(console),Ua[2]=console.warn.bind(console),Ua[3]=console.info.bind(console),Ua[4]=console.log.bind(console),Ua[5]=console.debug.bind(console),Ua[6]=console.debug.bind(console),Ua);Oa=Va[2];Na=Va[1]};function Wa(){this.g={}}Wa.prototype.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};Wa.prototype.get=function(a){return(a=this.g[a])?a.slice():null};Wa.prototype.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function Xa(a,b){for(var c in a.g)b(c,a.g[c])}Wa.prototype.size=function(){return Object.keys(this.g).length};function $a(){this.Ed=new Wa;this.Sc=this}$a.prototype.addEventListener=function(a,b){this.Ed.push(a,b)};$a.prototype.removeEventListener=function(a,b){this.Ed.remove(a,b)};$a.prototype.dispatchEvent=function(a){var b=this.Ed.get(a.type)||[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Sc;a.currentTarget=this.Sc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};function ab(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function bb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function cb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function db(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c}
56
+ var fb=function eb(a){var c;return Ca(eb,function(d){1==d.g&&(c=0);if(3!=d.g)return c<a?t(d,c,3):d.C(0);c++;return d.C(2)})},hb=function gb(a){var c,d,e,f,g,h;return Ca(gb,function(k){1==k.g&&(c=-1,e=d=void 0,f=r(a),g=f.next());if(5!=k.g){if(g.done)return-1==c?k.C(0):t(k,{sa:c,ag:d,item:e,next:void 0},0);h=g.value;return 0<=c?t(k,{sa:c,item:e,ag:d,next:h},5):k.C(5)}c++;d=e;e=h;g=f.next();return k.C(2)})};/*
57
57
  @license
58
58
  Copyright 2008 The Closure Library Authors
59
59
  SPDX-License-Identifier: Apache-2.0
60
60
  */
61
- var nb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;/*
61
+ var ib=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;/*
62
62
  @license
63
63
  Copyright 2006 The Closure Library Authors
64
64
  SPDX-License-Identifier: Apache-2.0
65
65
  */
66
- function ob(a){var b;a instanceof ob?(pb(this,a.Pa),this.Jb=a.Jb,this.Sa=a.Sa,qb(this,a.cc),this.Ha=a.Ha,rb(this,a.g.clone()),this.wb=a.wb):a&&(b=String(a).match(nb))?(pb(this,b[1]||"",!0),this.Jb=sb(b[2]||""),this.Sa=sb(b[3]||"",!0),qb(this,b[4]),this.Ha=sb(b[5]||"",!0),rb(this,b[6]||"",!0),this.wb=sb(b[7]||"")):this.g=new tb(null)}p=ob.prototype;p.Pa="";p.Jb="";p.Sa="";p.cc=null;p.Ha="";p.wb="";
67
- p.toString=function(){var a=[],b=this.Pa;b&&a.push(ub(b,vb,!0),":");if(b=this.Sa){a.push("//");var c=this.Jb;c&&a.push(ub(c,vb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.cc;null!=b&&a.push(":",String(b))}if(b=this.Ha)this.Sa&&"/"!=b.charAt(0)&&a.push("/"),a.push(ub(b,"/"==b.charAt(0)?wb:xb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.wb)&&a.push("#",ub(b,yb));return a.join("")};
68
- p.resolve=function(a){var b=this.clone();"data"===b.Pa&&(b=new ob);var c=!!a.Pa;c?pb(b,a.Pa):c=!!a.Jb;c?b.Jb=a.Jb:c=!!a.Sa;c?b.Sa=a.Sa:c=null!=a.cc;var d=a.Ha;if(c)qb(b,a.cc);else if(c=!!a.Ha){if("/"!=d.charAt(0))if(this.Sa&&!this.Ha)d="/"+d;else{var e=b.Ha.lastIndexOf("/");-1!=e&&(d=b.Ha.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
69
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ha=d:c=""!==a.g.toString();c?rb(b,a.g.clone()):c=!!a.wb;c&&(b.wb=a.wb);return b};p.clone=function(){return new ob(this)};function pb(a,b,c){a.Pa=c?sb(b,!0):b;a.Pa&&(a.Pa=a.Pa.replace(/:$/,""))}function qb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.cc=b}else a.cc=null}function rb(a,b,c){b instanceof tb?a.g=b:(c||(b=ub(b,zb)),a.g=new tb(b))}
70
- function sb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function ub(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Ab),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ab(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var vb=/[#\/\?@]/g,xb=/[#\?:]/g,wb=/[#\?]/g,zb=/[#\?@]/g,yb=/#/g;function tb(a){this.g=a||null}p=tb.prototype;p.Ea=null;p.Vc=null;
71
- p.add=function(a,b){if(!this.Ea&&(this.Ea={},this.Vc=0,this.g))for(var c=this.g.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.g=null;(c=this.Ea.hasOwnProperty(a)&&this.Ea[a])||(this.Ea[a]=c=[]);c.push(b);this.Vc++;return this};
72
- p.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("&")};p.clone=function(){var a=new tb;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.Vc=this.Vc}return a};function Bb(a,b){this.g=a;this.h=b}Bb.prototype.toString=function(){return"v"+this.g+"."+this.h};function Cb(a,b){var c=new Bb(4,0),d=Db,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Eb(a,b,c,d){Qa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Fb(a,b,c,d){Pa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Db=null;function Gb(a,b){return a.concat(b)}function Hb(){}function Ib(a){return null!=a}function Jb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(Cb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){Cb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Kb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new ob(d)});return a.map(function(d){return new ob(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Gb,[]).map(function(d){return d.toString()})}function Lb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:b||[],keyIds:new Set}}
73
- var Mb={$a:"video",rb:"audio",xa:"text",Fg:"image",xg:"application"};function Nb(a,b){a=Ob(a);b=Ob(b);return a.split("-")[0]==b.split("-")[0]}function Pb(a,b){a=Ob(a);b=Ob(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Qb(a,b){a=Ob(a);b=Ob(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Ob(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Rb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Sb(a,b){a=Ob(a);b=Ob(b);return b==a?4:Pb(b,a)?3:Qb(b,a)?2:Pb(a,b)?1:0}
74
- function Tb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Rb.get(a)||a}function Ub(a){return a.language?Ob(a.language):a.audio&&a.audio.language?Ob(a.audio.language):a.video&&a.video.language?Ob(a.video.language):"und"}
75
- function Vb(a,b){for(var c=Ob(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Ob(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Pb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Qb(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Pb(c,f))return f;return null}
76
- var Rb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
66
+ function kb(a){var b;a instanceof kb?(lb(this,a.Ra),this.Lb=a.Lb,this.Ua=a.Ua,mb(this,a.ec),this.Ia=a.Ia,nb(this,a.g.clone()),this.yb=a.yb):a&&(b=String(a).match(ib))?(lb(this,b[1]||"",!0),this.Lb=ob(b[2]||""),this.Ua=ob(b[3]||"",!0),mb(this,b[4]),this.Ia=ob(b[5]||"",!0),nb(this,b[6]||"",!0),this.yb=ob(b[7]||"")):this.g=new pb(null)}p=kb.prototype;p.Ra="";p.Lb="";p.Ua="";p.ec=null;p.Ia="";p.yb="";
67
+ p.toString=function(){var a=[],b=this.Ra;b&&a.push(qb(b,rb,!0),":");if(b=this.Ua){a.push("//");var c=this.Lb;c&&a.push(qb(c,rb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ec;null!=b&&a.push(":",String(b))}if(b=this.Ia)this.Ua&&"/"!=b.charAt(0)&&a.push("/"),a.push(qb(b,"/"==b.charAt(0)?sb:tb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.yb)&&a.push("#",qb(b,ub));return a.join("")};
68
+ p.resolve=function(a){var b=this.clone();"data"===b.Ra&&(b=new kb);var c=!!a.Ra;c?lb(b,a.Ra):c=!!a.Lb;c?b.Lb=a.Lb:c=!!a.Ua;c?b.Ua=a.Ua:c=null!=a.ec;var d=a.Ia;if(c)mb(b,a.ec);else if(c=!!a.Ia){if("/"!=d.charAt(0))if(this.Ua&&!this.Ia)d="/"+d;else{var e=b.Ia.lastIndexOf("/");-1!=e&&(d=b.Ia.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(""):".."==
69
+ 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.Ia=d:c=""!==a.g.toString();c?nb(b,a.g.clone()):c=!!a.yb;c&&(b.yb=a.yb);return b};p.clone=function(){return new kb(this)};function lb(a,b,c){a.Ra=c?ob(b,!0):b;a.Ra&&(a.Ra=a.Ra.replace(/:$/,""))}function mb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ec=b}else a.ec=null}function nb(a,b,c){b instanceof pb?a.g=b:(c||(b=qb(b,vb)),a.g=new pb(b))}
70
+ function ob(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function qb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,wb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function wb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var rb=/[#\/\?@]/g,tb=/[#\?:]/g,sb=/[#\?]/g,vb=/[#\?@]/g,ub=/#/g;function pb(a){this.g=a||null}p=pb.prototype;p.Fa=null;p.Xc=null;
71
+ p.add=function(a,b){if(!this.Fa&&(this.Fa={},this.Xc=0,this.g))for(var c=this.g.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.g=null;(c=this.Fa.hasOwnProperty(a)&&this.Fa[a])||(this.Fa[a]=c=[]);c.push(b);this.Xc++;return this};
72
+ p.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("&")};p.clone=function(){var a=new pb;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.Xc=this.Xc}return a};function xb(a,b){this.g=a;this.h=b}xb.prototype.toString=function(){return"v"+this.g+"."+this.h};function yb(a,b){var c=new xb(4,0),d=zb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ab(a,b,c,d){Oa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Bb(a,b,c,d){Na([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var zb=null;function Cb(a,b){return a.concat(b)}function Db(){}function Eb(a){return null!=a}function Fb(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(yb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){yb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Gb(a,b){if(0==b.length)return a;var c=b.map(function(d){return new kb(d)});return a.map(function(d){return new kb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Cb,[]).map(function(d){return d.toString()})}function Hb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:b||[],keyIds:new Set}}
73
+ var Ib={bb:"video",tb:"audio",ya:"text",Gg:"image",yg:"application"};function Jb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}
74
+ function Rb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Pb.get(a)||a}function Sb(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"}
75
+ function Tb(a,b){for(var c=Mb(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}
76
+ var Pb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
77
77
  "cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
78
78
  "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",
79
79
  "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",
80
80
  "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",
81
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){this.l=Ob(a);this.j=new Map;this.h=new Set;this.i=new Map;this.g=new db}p=Wb.prototype;p.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};p.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c||void 0)};p.dispatchEvent=function(a){return this.g.dispatchEvent(a)};
82
- p.qe=function(a){var b=this;this.h.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.h.add(Ob(c.value));Xb(this);a=hb(this.h,function(d){return!b.i.has(d)});a.length&&this.g.dispatchEvent(new L("unknown-locales",{locales:a}));a=hb(this.h,function(d){return b.i.has(d)});this.g.dispatchEvent(new L("locale-changed",{locales:a.length?a:[this.l]}))};
83
- p.ea=function(a,b,c){a=Ob(a);void 0===c&&(c=Yb);var d=this.i.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.i.set(a,d);Xb(this);this.g.dispatchEvent(new L("locale-updated"));return this};p.ig=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.j.get(a);if(b)return b;a={locales:Array.from(this.h),missing:a};this.g.dispatchEvent(new L("unknown-localization",a));return""};
84
- function Xb(a){for(var b=a.i,c=a.l,d=a.h,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Ob:f.Ob},h=g.next()){f.Ob=h.value;e.add(f.Ob);e.add(Tb(f.Ob));h=hb(b.keys(),function(l){return function(m){var n=l.Ob,q=Tb(m),u=Tb(n);return m!=q&&n!=u&&q==u}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=hb(b.keys(),function(l){return function(m){return Tb(m)==l.Ob}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=
85
- b.get(h.value))&&c.push(h);c.reverse();a.j.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=r(a.h);for(h=c.next();!h.done;h=c.next())h=a.i.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d={locales:Array.from(d),missing:Array.from(e)},a.g.dispatchEvent(new L("missing-localizations",d)))}function Zb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}J("shaka.ui.Localization",Wb);Wb.prototype.resolve=Wb.prototype.resolve;
86
- Wb.prototype.resolveDictionary=Wb.prototype.ig;Wb.prototype.insert=Wb.prototype.ea;Wb.prototype.changeLocale=Wb.prototype.qe;Wb.prototype.dispatchEvent=Wb.prototype.dispatchEvent;Wb.prototype.removeEventListener=Wb.prototype.removeEventListener;Wb.prototype.addEventListener=Wb.prototype.addEventListener;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";
87
- Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";function $b(a){this.i=Math.exp(Math.log(.5)/a);this.h=this.g=0}function ac(a,b,c){var d=Math.pow(a.i,b);c=c*(1-d)+d*a.g;isNaN(c)||(a.g=c,a.h+=b)}function bc(a){return a.g/(1-Math.pow(a.i,a.h))};function cc(){this.h=new $b(2);this.i=new $b(5);this.g=0}cc.prototype.getBandwidthEstimate=function(a){return 128E3>this.g?a:Math.min(bc(this.h),bc(this.i))};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;for(var c=gc(a),d=gc(b),e=r(kb(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])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}
88
- 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,DataView)}function ic(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(fc(a),b,Math.min(b+Math.max(c,0),e)-b)}J("shaka.util.BufferUtils",dc);dc.toDataView=jc;dc.toUint8=gc;dc.toArrayBuffer=hc;dc.equal=ec;function M(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];this.severity=a;this.category=b;this.code=c;this.data=e;this.handled=!1}M.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};J("shaka.util.Error",M);M.Severity={RECOVERABLE:1,CRITICAL:2};M.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
89
- M.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,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,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,
81
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Ub(a){this.l=Mb(a);this.j=new Map;this.h=new Set;this.i=new Map;this.g=new $a}p=Ub.prototype;p.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};p.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c||void 0)};p.dispatchEvent=function(a){return this.g.dispatchEvent(a)};
82
+ p.se=function(a){var b=this;this.h.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.h.add(Mb(c.value));Vb(this);a=db(this.h,function(d){return!b.i.has(d)});a.length&&this.g.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=db(this.h,function(d){return b.i.has(d)});a=(new Map).set("locales",a.length?a:[this.l]);this.g.dispatchEvent(new M("locale-changed",a))};
83
+ p.ha=function(a,b,c){a=Mb(a);void 0===c&&(c=Wb);var d=this.i.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Wb||d.set(f,e)});this.i.set(a,d);Vb(this);this.g.dispatchEvent(new M("locale-updated"));return this};p.jg=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.j.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.h)).set("missing",a);this.g.dispatchEvent(new M("unknown-localization",a));return""};
84
+ function Vb(a){for(var b=a.i,c=a.l,d=a.h,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Qb:f.Qb},h=g.next()){f.Qb=h.value;e.add(f.Qb);e.add(Rb(f.Qb));h=db(b.keys(),function(l){return function(m){var n=l.Qb,q=Rb(m),u=Rb(n);return m!=q&&n!=u&&q==u}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=db(b.keys(),function(l){return function(m){return Rb(m)==l.Qb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=
85
+ b.get(h.value))&&c.push(h);c.reverse();a.j.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=r(a.h);for(h=c.next();!h.done;h=c.next())h=a.i.get(h.value)||new Map,Xb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.g.dispatchEvent(new M("missing-localizations",d)))}function Xb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}L("shaka.ui.Localization",Ub);
86
+ Ub.prototype.resolve=Ub.prototype.resolve;Ub.prototype.resolveDictionary=Ub.prototype.jg;Ub.prototype.insert=Ub.prototype.ha;Ub.prototype.changeLocale=Ub.prototype.se;Ub.prototype.dispatchEvent=Ub.prototype.dispatchEvent;Ub.prototype.removeEventListener=Ub.prototype.removeEventListener;Ub.prototype.addEventListener=Ub.prototype.addEventListener;var Wb=1;Ub.ConflictResolution={USE_OLD:0,USE_NEW:Wb};Ub.UNKNOWN_LOCALES="unknown-locales";Ub.UNKNOWN_LOCALIZATION="unknown-localization";
87
+ Ub.MISSING_LOCALIZATIONS="missing-localizations";Ub.LOCALE_CHANGED="locale-changed";Ub.LOCALE_UPDATED="locale-updated";function Yb(a){this.i=Math.exp(Math.log(.5)/a);this.h=this.g=0}function Zb(a,b,c){var d=Math.pow(a.i,b);c=c*(1-d)+d*a.g;isNaN(c)||(a.g=c,a.h+=b)}function $b(a){return a.g/(1-Math.pow(a.i,a.h))};function ac(){this.h=new Yb(2);this.i=new Yb(5);this.g=0}ac.prototype.getBandwidthEstimate=function(a){return 128E3>this.g?a:Math.min($b(this.h),$b(this.i))};function bc(){}function cc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(dc(a)==dc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=ec(a),d=ec(b),e=r(fb(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}function dc(a){return a instanceof ArrayBuffer?a:a.buffer}function fc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
88
+ function ec(a,b,c){c=void 0===c?Infinity:c;return gc(a,void 0===b?0:b,c,Uint8Array)}function hc(a,b,c){c=void 0===c?Infinity:c;return gc(a,void 0===b?0:b,c,DataView)}function gc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(dc(a),b,Math.min(b+Math.max(c,0),e)-b)}L("shaka.util.BufferUtils",bc);bc.toDataView=hc;bc.toUint8=ec;bc.toArrayBuffer=fc;bc.equal=cc;function N(a,b,c,d){for(var e=[],f=3;f<arguments.length;++f)e[f-3]=arguments[f];this.severity=a;this.category=b;this.code=c;this.data=e;this.handled=!1}N.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};L("shaka.util.Error",N);N.Severity={RECOVERABLE:1,CRITICAL:2};N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
89
+ N.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,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,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,
90
90
  EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,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,
91
91
  CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,
92
92
  HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,
93
93
  INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,
94
94
  SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,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,
95
- NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,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 kc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}kc.prototype.resolve=function(){};kc.prototype.reject=function(){};function lc(a){this.h=a;this.g=void 0}lc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function mc(){}function nc(a){if(!a)return"";a=gc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=oc(a);a=escape(a);try{return decodeURIComponent(a)}catch(b){throw new M(2,2,2004);}}function pc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new M(2,2,2004);var d=Math.floor(a.byteLength/2);c=new Uint16Array(d);a=jc(a);d=r(kb(d));for(var e=d.next();!e.done;e=d.next())e=e.value,c[e]=a.getUint16(2*e,b);return oc(c)}
96
- function qc(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 nc(c);if(254==c[0]&&255==c[1])return pc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return pc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return pc(a,!1);if(0==c[1]&&0==c[3])return pc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return nc(a);throw new M(2,2,2003);}
97
- function rc(a){a=encodeURIComponent(a);var b=unescape(a);a=new Uint8Array(b.length);b=r(mb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.ua]=c.item.charCodeAt(0);return hc(a)}function sc(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=r(mb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.ua,f.item.charCodeAt(0),b);return c}function oc(a){return tc.value()(a)}J("shaka.util.StringUtils",mc);mc.resetFromCharCode=function(){tc.g=void 0};mc.toUTF16=sc;mc.toUTF8=rc;
98
- mc.fromBytesAutoDetect=qc;mc.fromUTF16=pc;mc.fromUTF8=nc;var tc=new lc(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={hb:65536};0<b.hb;b={hb:b.hb},b.hb/=2)if(a(b.hb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.hb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.hb));return e}}(b);return null});function uc(){}function vc(a){a=oc(gc(a));return btoa(a)}function wc(a,b){b=void 0==b?!0:b;var c=vc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function xc(a){var b=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));a=new Uint8Array(b.length);b=r(mb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.ua]=c.item.charCodeAt(0);return a}
99
- function yc(a){var b=a.length/2,c=new Uint8Array(b);b=r(kb(b));for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=window.parseInt(a.substr(2*d,2),16);return c}function zc(a){var b=gc(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}
100
- function Ac(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];var d=0,e=r(b);for(c=e.next();!c.done;c=e.next())d+=c.value.byteLength;d=new Uint8Array(d);e=0;b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,d.set(gc(c),e),e+=c.byteLength;return d}J("shaka.util.Uint8ArrayUtils",uc);uc.concat=Ac;uc.toHex=zc;uc.fromHex=yc;uc.fromBase64=xc;uc.toBase64=wc;uc.toStandardBase64=vc;
101
- uc.equal=function(a,b){Cb("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead.");return ec(a,b)};function Bc(){var a=this;this.g=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.u=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.u.push(Ac(b.initSegment,b.data))});this.g.on("done",function(){var b={data:Ac.apply(uc,ia(a.u)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}Bc.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
102
- function Cc(a,b){if(!window.muxjs||"mp2t"!=a.toLowerCase().split(";")[0].split("/")[1])return!1;if(b)return MediaSource.isTypeSupported(Dc(b,a));var c=Dc("audio",a),d=Dc("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}
103
- function Dc(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function Ec(a,b){a.l=!0;a.h=new kc;a.u=[];a.j=[];a.i=[];var c=gc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new M(2,3,3018));return a.h};function Fc(a){this.h=a;this.g=null}Fc.prototype.U=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};Fc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function O(a){this.h=a;this.g=null}O.prototype.Aa=function(){this.stop();this.h();return this};O.prototype.U=function(a){var b=this;this.stop();this.g=(new Fc(function(){b.h()})).U(a);return this};O.prototype.ha=function(a){var b=this;this.stop();this.g=(new Fc(function(){b.g.U(a);b.h()})).U(a);return this};O.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};J("shaka.util.Timer",O);O.prototype.stop=O.prototype.stop;O.prototype.tickEvery=O.prototype.ha;O.prototype.tickAfter=O.prototype.U;
104
- O.prototype.tickNow=O.prototype.Aa;function Gc(a,b){var c=Hc();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.u=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}
105
- function Ic(a){var b,c;return G(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new M(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return t(d,new Promise(function(e){(new O(e)).U(c/1E3)}),2)}a.h*=a.u;x(d)})}function Hc(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};function Jc(a,b){this.promise=a;this.i=b;this.g=!1}function Kc(a){return new Jc(Promise.reject(a),function(){return Promise.resolve()})}function Lc(){var a=Promise.reject(new M(2,7,7001));a["catch"](function(){});return new Jc(a,function(){return Promise.resolve()})}function Mc(a){return new Jc(Promise.resolve(a),function(){return Promise.resolve()})}function Nc(a){return new Jc(a,function(){return a["catch"](function(){})})}Jc.prototype.abort=function(){this.g=!0;return this.i()};
106
- function Oc(a){return new Jc(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Jc.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
107
- Jc.prototype.ka=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Pc(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new kc,g=new M(2,7,7001);this.promise.then(c(!0),c(!1));return new Jc(f,function(){return d()})};
108
- function Pc(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}J("shaka.util.AbortableOperation",Jc);Jc.prototype.chain=Jc.prototype.ka;Jc.prototype["finally"]=Jc.prototype["finally"];Jc.all=Oc;Jc.prototype.abort=Jc.prototype.abort;Jc.notAbortable=Nc;Jc.completed=Mc;Jc.aborted=Lc;Jc.failed=Kc;function Qc(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function Rc(a){var b={},c;for(c in a)b[c]=a[c];return b};function Sc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Tc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function Uc(a,b,c){c||(c=Sc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={td:d.td},e=a.next()){d.td=e.value;e=b.findIndex(function(f){return function(g){return c(f.td,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
109
- function Vc(a,b,c){c||(c=Sc);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 Wc(){this.g=[]}function Xc(a,b){a.g.push(b["finally"](function(){Tc(a.g,b)}))}Wc.prototype.destroy=function(){for(var a=[],b=r(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise["catch"](function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Yc(a){db.call(this);this.i=!1;this.l=new Wc;this.g=new Set;this.h=new Set;this.j=a||null}pa(Yc,db);function Zc(a,b,c){c=c||$c;var d=ad[a];if(!d||c>=d.priority)ad[a]={priority:c,Zf:b}}p=Yc.prototype;p.ag=function(a){this.g.add(a)};p.sg=function(a){this.g["delete"](a)};p.gf=function(){this.g.clear()};p.cg=function(a){this.h.add(a)};p.ug=function(a){this.h["delete"](a)};p.hf=function(){this.h.clear()};
110
- function bd(a,b){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null}}p.destroy=function(){this.i=!0;this.g.clear();this.h.clear();return this.l.destroy()};
111
- p.request=function(a,b){var c=this,d=new cd;if(this.i){var e=Promise.reject(new M(2,7,7001));e["catch"](function(){});return new dd(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Qc(b.retryParameters):Hc();b.uris=Qc(b.uris);e=ed(this,a,b);var f=e.ka(function(){return fd(c,a,b,new Gc(b.retryParameters,!1),0,null,d)}),g=f.ka(function(n){return gd(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
112
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ka(function(n){var q=Date.now()-l,u=n.response;u.timeMs+=k;u.timeMs+=q;n.Of||!c.j||u.fromCache||a!=hd||c.j(u.timeMs,u.data.byteLength);return u},function(n){n&&(n.severity=2);throw n;});e=new dd(m.promise,function(){return m.abort()},d);Xc(this.l,e);return e};
113
- function ed(a,b,c){var d=Mc(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={xd:e.xd},f=a.next())e.xd=f.value,d=d.ka(function(g){return function(){c.body&&(c.body=hc(c.body));return g.xd(b,c)}}(e));return d.ka(void 0,function(g){if(g instanceof M&&7001==g.code)throw g;throw new M(2,1,1006,g);})}
114
- function fd(a,b,c,d,e,f,g){var h=new ob(c.uris[e]),k=h.Pa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),pb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=ad[k])?k.Zf:null;if(!m)return Kc(new M(2,1,1E3,h));var n;return Nc(Ic(d)).ka(function(){if(a.i)return Lc();n=Date.now();return m(c.uris[e],c,b,function(q,u,v){a.j&&b==hd&&(a.j(q,u),l=!0,g.g=v)})}).ka(function(q){void 0==q.timeMs&&(q.timeMs=Date.now()-n);return{response:q,Of:l}},function(q){if(a.i)return Lc();if(q instanceof M){if(7001==q.code)throw q;
115
- if(1010==q.code)throw f;if(1==q.severity){var u=new L("retry",{error:q});a.dispatchEvent(u);e=(e+1)%c.uris.length;return fd(a,b,c,d,e,q,g)}}throw q;})}
116
- function gd(a,b,c){var d=Mc(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={yd:e.yd},f=a.next())e.yd=f.value,d=d.ka(function(g){return function(){var h=c.response;h.data&&(h.data=hc(h.data));return g.yd(b,h)}}(e));return d.ka(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}J("shaka.net.NetworkingEngine",Yc);Yc.prototype.request=Yc.prototype.request;Yc.prototype.destroy=Yc.prototype.destroy;Yc.makeRequest=bd;
117
- Yc.defaultRetryParameters=function(){return Hc()};Yc.prototype.clearAllResponseFilters=Yc.prototype.hf;Yc.prototype.unregisterResponseFilter=Yc.prototype.ug;Yc.prototype.registerResponseFilter=Yc.prototype.cg;Yc.prototype.clearAllRequestFilters=Yc.prototype.gf;Yc.prototype.unregisterRequestFilter=Yc.prototype.sg;Yc.prototype.registerRequestFilter=Yc.prototype.ag;Yc.unregisterScheme=function(a){delete ad[a]};Yc.registerScheme=Zc;function cd(){this.g=0}Yc.NumBytesRemainingClass=cd;
118
- function dd(a,b,c){Jc.call(this,a,b);this.h=c}pa(dd,Jc);Yc.PendingRequest=dd;var hd=1;Yc.RequestType={MANIFEST:0,SEGMENT:hd,LICENSE:2,APP:3,TIMING:4};var $c=3;Yc.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:$c};var ad={};function id(a){this.g=!1;this.h=new kc;this.i=a}id.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 jd(a,b){if(a.g){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function kd(){this.g=new Za}p=kd.prototype;p.release=function(){this.Hb();this.g=null};p.m=function(a,b,c,d){this.g&&(a=new ld(a,b,c,d),this.g.push(b,a))};p.Fa=function(a,b,c,d){function e(g){f.Ia(a,b,e);c(g)}var f=this;this.m(a,b,e,d)};p.Ia=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ia(),this.g.remove(b,e))}};
119
- p.Hb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.Ia();this.g.g={}}};J("shaka.util.EventManager",kd);kd.prototype.removeAll=kd.prototype.Hb;kd.prototype.unlisten=kd.prototype.Ia;kd.prototype.listenOnce=kd.prototype.Fa;kd.prototype.listen=kd.prototype.m;kd.prototype.release=kd.prototype.release;function ld(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=md(a,d);this.target.addEventListener(b,c,this.g)}
120
- ld.prototype.Ia=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function md(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 nd(a)?b:b.capture||!1}
121
- function nd(a){var b=od;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}od=b}return b||!1}var od=void 0;function pd(){}function qd(a){a=qc(a);return(new ob(a)).Sa}function rd(a,b,c){function d(h){jc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(gc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new M(2,6,6015);var e;"string"==typeof b?e=sc(b,!0):e=b;a=qc(a);a=sc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}J("shaka.util.FairPlayUtils",pd);pd.initDataTransform=rd;pd.defaultGetContentId=qd;function sd(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function td(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function ud(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function vd(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function wd(a){var b=[a.mimeType];xd.forEach(function(c,d){var e=a[d];e&&b.push(c+'="'+e+'"')});return b.join(";")}function yd(a){a=a.split(".");var b=a[0];a.pop();return b}function zd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}
122
- var xd=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Ad(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Bd(a){return""!=Cd().canPlayType(a)}function Dd(){return Ed("Tizen")}function Fd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Dd()}function Gd(){if(!Fd())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 Ed(a){return(navigator.userAgent||"").includes(a)}
123
- function Cd(){if(Hd)return Hd;Id||(Id=new O(function(){Hd=null}));(Hd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Hd=document.createElement("video"));Id.U(1);return Hd}var Id=null,Hd=null;function Jd(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.B=new Set;this.g=this.u=null;this.N=!1;this.J=0;this.i=null;this.h=new kd;this.j=new Map;this.D=[];this.A=new kc;this.v=null;this.l=function(d){c.A.reject(d);a.onError(d)};this.aa=new Map;this.W=new Map;this.R=new O(function(){return Kd(c)});this.H=!1;this.K=[];this.P=!1;this.$=(new O(function(){Ld(c)})).ha(b);this.A["catch"](function(){});this.M=new id(function(){return Md(c)})}Jd.prototype.destroy=function(){return this.M.destroy()};
124
- function Md(a){return G(function(b){switch(b.g){case 1:return a.h.release(),a.h=null,a.A.reject(),a.$.stop(),a.$=null,a.R.stop(),a.R=null,t(b,Nd(a),2);case 2:if(!a.g){b.C(3);break}y(b,4);return t(b,a.g.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:D(b);case 5:a.g=null;case 3:a.i=null,a.B.clear(),a.u=null,a.D=[],a.v=null,a.l=function(){},a.G=null,x(b)}})}Jd.prototype.configure=function(a){this.v=a};function Od(a,b,c){a.D=[];a.H=c;return Pd(a,b)}
125
- function Qd(a,b,c){a.D=c;a.H=0<c.length;return Pd(a,b)}function Rd(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,initData:null,keyIds:null}];g.set(b,e);return Sd(a,g)}
126
- function Pd(a,b){var c=Td(a);if(c)for(var d=r(b),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=[c]),e.audio&&(e.audio.drmInfos=[c]);c=b.some(function(g){return g.video&&g.video.drmInfos.length||g.audio&&g.audio.drmInfos.length?!0:!1});c||(d=sd(a.v.servers),Wd(b,d));d=r(b);for(e=d.next();!e.done;e=d.next()){e=e.value;e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())Xd(f.value,sd(a.v.servers),sd(a.v.advanced||{}))}d=Yd(a,
127
- b);if(!d.size)return a.N=!0,Promise.resolve();d=Sd(a,d);return c?d:d["catch"](function(){})}
128
- Jd.prototype.nc=function(a){var b=this,c,d;return G(function(e){if(1==e.g){if(!b.u)return b.h.Fa(a,"encrypted",function(){b.l(new M(2,6,6010))}),e["return"]();b.g=a;b.h.Fa(b.g,"play",function(){for(var f=r(b.K),g=f.next();!g.done;g=f.next())Zd(b,g.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.g&&b.h.m(b.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Nd(b)});c=b.g.setMediaKeys(b.u);c=c["catch"](function(f){return Promise.reject(new M(2,6,6003,f.message))});
129
- return t(e,c,2)}jd(b.M);$d(b);b.i.initData.length||b.D.length||(d=function(f){return ae(b,f.initDataType,gc(f.initData))},b.h.m(b.g,"encrypted",d));x(e)})};function be(a){var b;return G(function(c){if(1==c.g){if(!(a.u&&a.i&&a.i.serverCertificate&&a.i.serverCertificate.length))return c.C(0);y(c,3);return t(c,a.u.setServerCertificate(a.i.serverCertificate),5)}if(3!=c.g)return ua(c,0);b=D(c);throw new M(2,6,6004,b.message);})}
130
- function ce(a,b){var c,d,e;return G(function(f){if(1==f.g)return t(f,de(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.j.get(c))e.Xa=new kc,d.push(e.Xa);d.push(c.remove());return t(f,Promise.all(d),3)}a.j["delete"](c);x(f)})}function $d(a){for(var b=(a.i?a.i.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,ae(a,d.initDataType,d.initData);c=r(a.D);for(d=c.next();!d.done;d=c.next())de(a,d.value);b.length||a.D.length||a.A.resolve();return a.A}
131
- function ae(a,b,c){var d=a.j.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(ec(c,e.value.initData)&&!Ed("Tizen 2"))return;ee(a,b,c)}function fe(a){return a?a.keySystem:""}function ge(a,b){if(navigator.userAgent.match(/Edge\//))return!0;b=b.toLowerCase();if(Dd()&&b.includes('codecs="ac-3"')){var c=b.replace("ac-3","ec-3");return a.B.has(b)||a.B.has(c)}return a.B.has(b)}function he(a){a=a.j.keys();a=eb(a,function(b){return b.sessionId});return Array.from(a)}
132
- Jd.prototype.sc=function(){var a=Infinity,b=this.j.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};
133
- function Yd(a,b){for(var c=new Set,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=r(c);for(e=d.next();!e.done;e=d.next())Xd(e.value,sd(a.v.servers),sd(a.v.advanced||{}));f=a.H?"required":"optional";var g=a.H?["persistent-license"]:["temporary"];d=new Map;c=r(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:["cenc"],audioCapabilities:[],videoCapabilities:[],
134
- distinctiveIdentifier:"optional",persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c=r(b);for(e=c.next();!e.done;e=c.next())for(e=e.value,f=r([e.audio,e.video]),e=f.next();!e.done;e=f.next())if(g=e.value){var h=ie(g),k=null;"ac-3"==g.codecs.toLowerCase()&&Dd()&&(k=ie(g,"ec-3"));var l=r(g.drmInfos);for(e=l.next();!e.done;e=l.next()){var m=e.value;e=d.get(m.keySystem);e.drmInfos.push(m);m.initData&&m.initData.length&&(e.initDataTypes=[].concat(ia(new Set(m.initData.map(function(q){return q.initDataType})))));
135
- m.distinctiveIdentifierRequired&&(e.distinctiveIdentifier="required");m.persistentStateRequired&&(e.persistentState="required");m="audio"==g.type?m.audioRobustness:m.videoRobustness;var n={robustness:m||"",contentType:h};"audio"==g.type?e.audioCapabilities.push(n):e.videoCapabilities.push(n);k&&(m={robustness:m||"",contentType:k},"audio"==g.type?e.audioCapabilities.push(m):e.videoCapabilities.push(m))}}return d}function ie(a,b){var c=vd(a.mimeType,b||a.codecs);return Cc(c)?Dc(a.type,c):c}
136
- function Sd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I,H;return G(function(K){switch(K.g){case 1:if(1==b.size&&b.has(""))throw new M(2,6,6E3);c=r(b.values());for(d=c.next();!d.done;d=c.next())e=d.value,0==e.audioCapabilities.length&&delete e.audioCapabilities,0==e.videoCapabilities.length&&delete e.videoCapabilities;g=r([!0,!1]);h=g.next();case 2:if(h.done){K.C(4);break}k=h.value;l=r(b.keys());m=l.next();case 5:if(m.done){K.C(7);break}n=m.value;q=b.get(n);u=q.drmInfos.some(function(N){return!!N.licenseServerUri});
137
- if(u!=k){K.C(6);break}y(K,8);return t(K,navigator.requestMediaKeySystemAccess(n,[q]),10);case 10:f=K.h;K.C(7);break;case 8:D(K);case 9:jd(a.M);case 6:m=l.next();K.C(5);break;case 7:if(f){K.C(4);break}h=g.next();K.C(2);break;case 4:if(!f)throw new M(2,6,6001);jd(a.M);y(K,11);a.B.clear();v=f.getConfiguration();A=v.audioCapabilities||[];w=v.videoCapabilities||[];z=r(A);for(C=z.next();!C.done;C=z.next())B=C.value,a.B.add(B.contentType.toLowerCase());E=r(w);for(C=E.next();!C.done;C=E.next())F=C.value,
138
- a.B.add(F.contentType.toLowerCase());a.i=je(f.keySystem,b.get(f.keySystem));if(!a.i.licenseServerUri)throw new M(2,6,6012,a.i.keySystem);return t(K,f.createMediaKeys(),13);case 13:return I=K.h,jd(a.M),a.u=I,a.N=!0,t(K,be(a),14);case 14:jd(a.M);ua(K,0);break;case 11:H=D(K);jd(a.M,H);a.i=null;a.B.clear();if(H instanceof M)throw H;throw new M(2,6,6002,H.message);}})}
139
- function Td(a){a=sd(a.v.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=yc(f),h=yc(e);g={kty:"oct",kid:wc(g,!1),k:wc(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:gc(rc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
95
+ NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,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 ic(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}ic.prototype.resolve=function(){};ic.prototype.reject=function(){};function jc(a){this.h=a;this.g=void 0}jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function kc(){}function lc(a){if(!a)return"";a=ec(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=mc(a);a=escape(a);try{return decodeURIComponent(a)}catch(b){throw new N(2,2,2004);}}function nc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new N(2,2,2004);var d=Math.floor(a.byteLength/2);c=new Uint16Array(d);a=hc(a);d=r(fb(d));for(var e=d.next();!e.done;e=d.next())e=e.value,c[e]=a.getUint16(2*e,b);return mc(c)}
96
+ function oc(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=ec(a);if(239==c[0]&&187==c[1]&&191==c[2])return lc(c);if(254==c[0]&&255==c[1])return nc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return nc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return nc(a,!1);if(0==c[1]&&0==c[3])return nc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return lc(a);throw new N(2,2,2003);}
97
+ function pc(a){a=encodeURIComponent(a);var b=unescape(a);a=new Uint8Array(b.length);b=r(hb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.sa]=c.item.charCodeAt(0);return fc(a)}function qc(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=r(hb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.sa,f.item.charCodeAt(0),b);return c}function mc(a){return rc.value()(a)}L("shaka.util.StringUtils",kc);kc.resetFromCharCode=function(){rc.g=void 0};kc.toUTF16=qc;kc.toUTF8=pc;
98
+ kc.fromBytesAutoDetect=oc;kc.fromUTF16=nc;kc.fromUTF8=lc;var rc=new jc(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={jb:65536};0<b.jb;b={jb:b.jb},b.jb/=2)if(a(b.jb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.jb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.jb));return e}}(b);return null});function sc(){}function tc(a){a=mc(ec(a));return btoa(a)}function uc(a,b){b=void 0==b?!0:b;var c=tc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function vc(a){var b=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));a=new Uint8Array(b.length);b=r(hb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.sa]=c.item.charCodeAt(0);return a}
99
+ function wc(a){var b=a.length/2,c=new Uint8Array(b);b=r(fb(b));for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=window.parseInt(a.substr(2*d,2),16);return c}function xc(a){var b=ec(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}
100
+ function yc(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];var d=0,e=r(b);for(c=e.next();!c.done;c=e.next())d+=c.value.byteLength;d=new Uint8Array(d);e=0;b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,d.set(ec(c),e),e+=c.byteLength;return d}L("shaka.util.Uint8ArrayUtils",sc);sc.concat=yc;sc.toHex=xc;sc.fromHex=wc;sc.fromBase64=vc;sc.toBase64=uc;sc.toStandardBase64=tc;
101
+ sc.equal=function(a,b){yb("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead.");return cc(a,b)};function zc(){var a=this;this.g=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.u=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.u.push(yc(b.initSegment,b.data))});this.g.on("done",function(){var b={data:yc.apply(sc,ia(a.u)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}zc.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
102
+ function Ac(a,b){if(!window.muxjs||"mp2t"!=a.toLowerCase().split(";")[0].split("/")[1])return!1;if(b)return MediaSource.isTypeSupported(Bc(b,a));var c=Bc("audio",a),d=Bc("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}
103
+ function Bc(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function Cc(a,b){a.l=!0;a.h=new ic;a.u=[];a.j=[];a.i=[];var c=ec(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new N(2,3,3018));return a.h};function Dc(a){this.h=a;this.g=null}Dc.prototype.V=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};Dc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function O(a){this.h=a;this.g=null}O.prototype.Ba=function(){this.stop();this.h();return this};O.prototype.V=function(a){var b=this;this.stop();this.g=(new Dc(function(){b.h()})).V(a);return this};O.prototype.ia=function(a){var b=this;this.stop();this.g=(new Dc(function(){b.g.V(a);b.h()})).V(a);return this};O.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",O);O.prototype.stop=O.prototype.stop;O.prototype.tickEvery=O.prototype.ia;O.prototype.tickAfter=O.prototype.V;
104
+ O.prototype.tickNow=O.prototype.Ba;function Ec(a,b){var c=Fc();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.u=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}
105
+ function Gc(a){var b,c;return H(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new N(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return t(d,new Promise(function(e){(new O(e)).V(c/1E3)}),2)}a.h*=a.u;x(d)})}function Fc(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};function Hc(a,b){this.promise=a;this.i=b;this.g=!1}function Ic(a){return new Hc(Promise.reject(a),function(){return Promise.resolve()})}function Jc(){var a=Promise.reject(new N(2,7,7001));a["catch"](function(){});return new Hc(a,function(){return Promise.resolve()})}function Kc(a){return new Hc(Promise.resolve(a),function(){return Promise.resolve()})}function Lc(a){return new Hc(a,function(){return a["catch"](function(){})})}Hc.prototype.abort=function(){this.g=!0;return this.i()};
106
+ function Mc(a){return new Hc(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Hc.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
107
+ Hc.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=Nc(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new ic,g=new N(2,7,7001);this.promise.then(c(!0),c(!1));return new Hc(f,function(){return d()})};
108
+ function Nc(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()}}}L("shaka.util.AbortableOperation",Hc);Hc.prototype.chain=Hc.prototype.ma;Hc.prototype["finally"]=Hc.prototype["finally"];Hc.all=Mc;Hc.prototype.abort=Hc.prototype.abort;Hc.notAbortable=Lc;Hc.completed=Kc;Hc.aborted=Jc;Hc.failed=Ic;function Oc(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function Pc(a){var b={},c;for(c in a)b[c]=a[c];return b};function Qc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Rc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function Sc(a,b,c){c||(c=Qc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={vd:d.vd},e=a.next()){d.vd=e.value;e=b.findIndex(function(f){return function(g){return c(f.vd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
109
+ function Tc(a,b,c){c||(c=Qc);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 Uc(){this.g=[]}function Vc(a,b){a.g.push(b["finally"](function(){Rc(a.g,b)}))}Uc.prototype.destroy=function(){for(var a=[],b=r(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise["catch"](function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Wc(a){$a.call(this);this.i=!1;this.l=new Uc;this.g=new Set;this.h=new Set;this.j=a||null}pa(Wc,$a);function Xc(a,b,c){c=c||Yc;var d=Zc[a];if(!d||c>=d.priority)Zc[a]={priority:c,$f:b}}p=Wc.prototype;p.cg=function(a){this.g.add(a)};p.ug=function(a){this.g["delete"](a)};p.jf=function(){this.g.clear()};p.dg=function(a){this.h.add(a)};p.vg=function(a){this.h["delete"](a)};p.kf=function(){this.h.clear()};
110
+ function $c(a,b){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null}}p.destroy=function(){this.i=!0;this.g.clear();this.h.clear();return this.l.destroy()};
111
+ p.request=function(a,b){var c=this,d=new bd;if(this.i){var e=Promise.reject(new N(2,7,7001));e["catch"](function(){});return new cd(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Oc(b.retryParameters):Fc();b.uris=Oc(b.uris);e=dd(this,a,b);var f=e.ma(function(){return ed(c,a,b,new Ec(b.retryParameters,!1),0,null,d)}),g=f.ma(function(n){return fd(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
112
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ma(function(n){var q=Date.now()-l,u=n.response;u.timeMs+=k;u.timeMs+=q;n.Qf||!c.j||u.fromCache||a!=gd||c.j(u.timeMs,u.data.byteLength);return u},function(n){n&&(n.severity=2);throw n;});e=new cd(m.promise,function(){return m.abort()},d);Vc(this.l,e);return e};
113
+ function dd(a,b,c){var d=Kc(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={zd:e.zd},f=a.next())e.zd=f.value,d=d.ma(function(g){return function(){c.body&&(c.body=fc(c.body));return g.zd(b,c)}}(e));return d.ma(void 0,function(g){if(g instanceof N&&7001==g.code)throw g;throw new N(2,1,1006,g);})}
114
+ function ed(a,b,c,d,e,f,g){var h=new kb(c.uris[e]),k=h.Ra,l=!1;k||(k=location.protocol,k=k.slice(0,-1),lb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=Zc[k])?k.$f:null;if(!m)return Ic(new N(2,1,1E3,h));var n;return Lc(Gc(d)).ma(function(){if(a.i)return Jc();n=Date.now();return m(c.uris[e],c,b,function(q,u,v){a.j&&b==gd&&(a.j(q,u),l=!0,g.g=v)})}).ma(function(q){void 0==q.timeMs&&(q.timeMs=Date.now()-n);return{response:q,Qf:l}},function(q){if(a.i)return Jc();if(q instanceof N){if(7001==q.code)throw q;
115
+ if(1010==q.code)throw f;if(1==q.severity){var u=(new Map).set("error",q);u=new M("retry",u);a.dispatchEvent(u);e=(e+1)%c.uris.length;return ed(a,b,c,d,e,q,g)}}throw q;})}
116
+ function fd(a,b,c){var d=Kc(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Bd:e.Bd},f=a.next())e.Bd=f.value,d=d.ma(function(g){return function(){var h=c.response;h.data&&(h.data=fc(h.data));return g.Bd(b,h)}}(e));return d.ma(function(){return c},function(g){var h=2;if(g instanceof N){if(7001==g.code)throw g;h=g.severity}throw new N(h,1,1007,g);})}L("shaka.net.NetworkingEngine",Wc);Wc.prototype.request=Wc.prototype.request;Wc.prototype.destroy=Wc.prototype.destroy;Wc.makeRequest=$c;
117
+ Wc.defaultRetryParameters=function(){return Fc()};Wc.prototype.clearAllResponseFilters=Wc.prototype.kf;Wc.prototype.unregisterResponseFilter=Wc.prototype.vg;Wc.prototype.registerResponseFilter=Wc.prototype.dg;Wc.prototype.clearAllRequestFilters=Wc.prototype.jf;Wc.prototype.unregisterRequestFilter=Wc.prototype.ug;Wc.prototype.registerRequestFilter=Wc.prototype.cg;Wc.unregisterScheme=function(a){delete Zc[a]};Wc.registerScheme=Xc;function bd(){this.g=0}Wc.NumBytesRemainingClass=bd;
118
+ function cd(a,b,c){Hc.call(this,a,b);this.h=c}pa(cd,Hc);Wc.PendingRequest=cd;var gd=1;Wc.RequestType={MANIFEST:0,SEGMENT:gd,LICENSE:2,APP:3,TIMING:4};var Yc=3;Wc.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Yc};var Zc={};function hd(a){this.g=!1;this.h=new ic;this.i=a}hd.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 id(a,b){if(a.g){if(b instanceof N&&7003==b.code)throw b;throw new N(2,7,7003,b);}};function jd(){this.g=new Wa}p=jd.prototype;p.release=function(){this.Jb();this.g=null};p.m=function(a,b,c,d){this.g&&(a=new kd(a,b,c,d),this.g.push(b,a))};p.Ga=function(a,b,c,d){function e(g){f.Ja(a,b,e);c(g)}var f=this;this.m(a,b,e,d)};p.Ja=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ja(),this.g.remove(b,e))}};
119
+ p.Jb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.Ja();this.g.g={}}};L("shaka.util.EventManager",jd);jd.prototype.removeAll=jd.prototype.Jb;jd.prototype.unlisten=jd.prototype.Ja;jd.prototype.listenOnce=jd.prototype.Ga;jd.prototype.listen=jd.prototype.m;jd.prototype.release=jd.prototype.release;function kd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=ld(a,d);this.target.addEventListener(b,c,this.g)}
120
+ kd.prototype.Ja=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function ld(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 md(a)?b:b.capture||!1}
121
+ function md(a){var b=nd;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}nd=b}return b||!1}var nd=void 0;function od(){}function pd(a){a=oc(a);return(new kb(a)).Ua}function qd(a,b,c){function d(h){hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new N(2,6,6015);var e;"string"==typeof b?e=qc(b,!0):e=b;a=oc(a);a=qc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}L("shaka.util.FairPlayUtils",od);od.initDataTransform=qd;od.defaultGetContentId=pd;function rd(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function sd(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function td(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function ud(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function vd(a){var b=[a.mimeType];wd.forEach(function(c,d){var e=a[d];e&&b.push(c+'="'+e+'"')});return b.join(";")}function xd(a){a=a.split(".");var b=a[0];a.pop();return b}function yd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}
122
+ var wd=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function zd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Ad(a){return""!=Bd().canPlayType(a)}function Cd(){return Dd("Tizen")}function Ed(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Cd()}function Fd(){if(!Ed())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 Dd(a){return(navigator.userAgent||"").includes(a)}
123
+ function Bd(){if(Gd)return Gd;Hd||(Hd=new O(function(){Gd=null}));(Gd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Gd=document.createElement("video"));Hd.V(1);return Gd}var Hd=null,Gd=null;function Id(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.B=new Set;this.g=this.u=null;this.N=!1;this.J=0;this.i=null;this.h=new jd;this.j=new Map;this.D=[];this.A=new ic;this.v=null;this.l=function(d){c.A.reject(d);a.onError(d)};this.ba=new Map;this.X=new Map;this.S=new O(function(){return Jd(c)});this.H=!1;this.K=[];this.P=!1;this.aa=(new O(function(){Kd(c)})).ia(b);this.A["catch"](function(){});this.M=new hd(function(){return Ld(c)})}Id.prototype.destroy=function(){return this.M.destroy()};
124
+ function Ld(a){return H(function(b){switch(b.g){case 1:return a.h.release(),a.h=null,a.A.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,t(b,Md(a),2);case 2:if(!a.g){b.C(3);break}y(b,4);return t(b,a.g.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:C(b);case 5:a.g=null;case 3:a.i=null,a.B.clear(),a.u=null,a.D=[],a.v=null,a.l=function(){},a.G=null,x(b)}})}Id.prototype.configure=function(a){this.v=a};function Nd(a,b,c){a.D=[];a.H=c;return Od(a,b)}
125
+ function Pd(a,b,c){a.D=c;a.H=0<c.length;return Od(a,b)}function Qd(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,initData:null,keyIds:null}];g.set(b,e);return Rd(a,g)}
126
+ function Od(a,b){var c=Sd(a);if(c)for(var d=r(b),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=[c]),e.audio&&(e.audio.drmInfos=[c]);c=b.some(function(g){return g.video&&g.video.drmInfos.length||g.audio&&g.audio.drmInfos.length?!0:!1});c||(d=rd(a.v.servers),Td(b,d));d=r(b);for(e=d.next();!e.done;e=d.next()){e=e.value;e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())Ud(f.value,rd(a.v.servers),rd(a.v.advanced||{}))}d=Vd(a,
127
+ b);if(!d.size)return a.N=!0,Promise.resolve();d=Rd(a,d);return c?d:d["catch"](function(){})}
128
+ Id.prototype.qc=function(a){var b=this,c,d;return H(function(e){if(1==e.g){if(!b.u)return b.h.Ga(a,"encrypted",function(){b.l(new N(2,6,6010))}),e["return"]();b.g=a;b.h.Ga(b.g,"play",function(){for(var f=r(b.K),g=f.next();!g.done;g=f.next())Xd(b,g.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.g&&b.h.m(b.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Md(b)});c=b.g.setMediaKeys(b.u);c=c["catch"](function(f){return Promise.reject(new N(2,6,6003,f.message))});
129
+ return t(e,c,2)}id(b.M);Yd(b);b.i.initData.length||b.D.length||(d=function(f){return Zd(b,f.initDataType,ec(f.initData))},b.h.m(b.g,"encrypted",d));x(e)})};function $d(a){var b;return H(function(c){if(1==c.g){if(!(a.u&&a.i&&a.i.serverCertificate&&a.i.serverCertificate.length))return c.C(0);y(c,3);return t(c,a.u.setServerCertificate(a.i.serverCertificate),5)}if(3!=c.g)return ua(c,0);b=C(c);throw new N(2,6,6004,b.message);})}
130
+ function ae(a,b){var c,d,e;return H(function(f){if(1==f.g)return t(f,be(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.j.get(c))e.Za=new ic,d.push(e.Za);d.push(c.remove());return t(f,Promise.all(d),3)}a.j["delete"](c);x(f)})}function Yd(a){for(var b=(a.i?a.i.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Zd(a,d.initDataType,d.initData);c=r(a.D);for(d=c.next();!d.done;d=c.next())be(a,d.value);b.length||a.D.length||a.A.resolve();return a.A}
131
+ function Zd(a,b,c){var d=a.j.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(cc(c,e.value.initData)&&!Dd("Tizen 2"))return;ce(a,b,c)}function de(a){return a?a.keySystem:""}function ee(a,b){if(navigator.userAgent.match(/Edge\//))return!0;b=b.toLowerCase();if(Cd()&&b.includes('codecs="ac-3"')){var c=b.replace("ac-3","ec-3");return a.B.has(b)||a.B.has(c)}return a.B.has(b)}function fe(a){a=a.j.keys();a=ab(a,function(b){return b.sessionId});return Array.from(a)}
132
+ Id.prototype.uc=function(){var a=Infinity,b=this.j.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};
133
+ function Vd(a,b){for(var c=new Set,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=r(c);for(e=d.next();!e.done;e=d.next())Ud(e.value,rd(a.v.servers),rd(a.v.advanced||{}));f=a.H?"required":"optional";var g=a.H?["persistent-license"]:["temporary"];d=new Map;c=r(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:["cenc"],audioCapabilities:[],videoCapabilities:[],
134
+ distinctiveIdentifier:"optional",persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c=r(b);for(e=c.next();!e.done;e=c.next())for(e=e.value,f=r([e.audio,e.video]),e=f.next();!e.done;e=f.next())if(g=e.value){var h=ge(g),k=null;"ac-3"==g.codecs.toLowerCase()&&Cd()&&(k=ge(g,"ec-3"));var l=r(g.drmInfos);for(e=l.next();!e.done;e=l.next()){var m=e.value;e=d.get(m.keySystem);e.drmInfos.push(m);m.initData&&m.initData.length&&(e.initDataTypes=[].concat(ia(new Set(m.initData.map(function(q){return q.initDataType})))));
135
+ m.distinctiveIdentifierRequired&&(e.distinctiveIdentifier="required");m.persistentStateRequired&&(e.persistentState="required");m="audio"==g.type?m.audioRobustness:m.videoRobustness;var n={robustness:m||"",contentType:h};"audio"==g.type?e.audioCapabilities.push(n):e.videoCapabilities.push(n);k&&(m={robustness:m||"",contentType:k},"audio"==g.type?e.audioCapabilities.push(m):e.videoCapabilities.push(m))}}return d}function ge(a,b){var c=ud(a.mimeType,b||a.codecs);return Ac(c)?Bc(a.type,c):c}
136
+ function Rd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G;return H(function(J){switch(J.g){case 1:if(1==b.size&&b.has(""))throw new N(2,6,6E3);c=r(b.values());for(d=c.next();!d.done;d=c.next())e=d.value,0==e.audioCapabilities.length&&delete e.audioCapabilities,0==e.videoCapabilities.length&&delete e.videoCapabilities;g=r([!0,!1]);h=g.next();case 2:if(h.done){J.C(4);break}k=h.value;l=r(b.keys());m=l.next();case 5:if(m.done){J.C(7);break}n=m.value;q=b.get(n);u=q.drmInfos.some(function(K){return!!K.licenseServerUri});
137
+ if(u!=k){J.C(6);break}y(J,8);return t(J,navigator.requestMediaKeySystemAccess(n,[q]),10);case 10:f=J.h;J.C(7);break;case 8:C(J);case 9:id(a.M);case 6:m=l.next();J.C(5);break;case 7:if(f){J.C(4);break}h=g.next();J.C(2);break;case 4:if(!f)throw new N(2,6,6001);id(a.M);y(J,11);a.B.clear();v=f.getConfiguration();A=v.audioCapabilities||[];w=v.videoCapabilities||[];z=r(A);for(D=z.next();!D.done;D=z.next())B=D.value,a.B.add(B.contentType.toLowerCase());E=r(w);for(D=E.next();!D.done;D=E.next())F=D.value,
138
+ a.B.add(F.contentType.toLowerCase());a.i=he(f.keySystem,b.get(f.keySystem));if(!a.i.licenseServerUri)throw new N(2,6,6012,a.i.keySystem);return t(J,f.createMediaKeys(),13);case 13:return I=J.h,id(a.M),a.u=I,a.N=!0,t(J,$d(a),14);case 14:id(a.M);ua(J,0);break;case 11:G=C(J);id(a.M,G);a.i=null;a.B.clear();if(G instanceof N)throw G;throw new N(2,6,6002,G.message);}})}
139
+ function Sd(a){a=rd(a.v.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=wc(f),h=wc(e);g={kty:"oct",kid:uc(g,!1),k:uc(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:ec(pc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
140
140
  initData:d,keyIds:new Set(c)}}
141
- function de(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.u.createSession("persistent-license")}catch(k){return d=new M(2,6,6005,k.message),a.l(d),h["return"](Promise.reject(d))}a.h.m(c,"message",function(k){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(k):Zd(a,k)});a.h.m(c,"keystatuseschange",function(k){return ke(a,k)});e={initData:null,loaded:!1,Qd:Infinity,Xa:null};a.j.set(c,e);y(h,2);return t(h,c.load(b),4);case 4:f=h.h;jd(a.M);if(!f)return a.j["delete"](c),
142
- a.l(new M(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;le(a)&&a.A.resolve();return h["return"](c);case 2:g=D(h),jd(a.M,g),a.j["delete"](c),a.l(new M(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
143
- function ee(a,b,c){try{var d=a.H?a.u.createSession("persistent-license"):a.u.createSession()}catch(e){a.l(new M(2,6,6005,e.message));return}a.h.m(d,"message",function(e){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(e):Zd(a,e)});a.h.m(d,"keystatuseschange",function(e){return ke(a,e)});a.j.set(d,{initData:c,loaded:!1,Qd:Infinity,Xa:null});try{c=a.v.initDataTransform(c,b,a.i)}catch(e){b=e;e instanceof M||(b=new M(2,6,6016,e));a.l(b);return}a.v.logLicenseExchange&&wc(c);d.generateRequest(b,
144
- c)["catch"](function(e){if(!a.M.g){a.j["delete"](d);var f=e.errorCode;if(f&&f.systemCode){var g=f.systemCode;0>g&&(g+=Math.pow(2,32));g="0x"+g.toString(16)}a.l(new M(2,6,6006,e.message,e,g))}})}function me(a,b,c){"skd"==b&&(b=c.serverCertificate,c=qd(a),a=rd(a,c,b));return a}
145
- function Zd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;G(function(w){switch(w.g){case 1:return c=b.target,a.v.logLicenseExchange&&wc(b.message),d=a.j.get(c),e=a.i.licenseServerUri,f=a.v.advanced[a.i.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=bd([e],a.v.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,"com.microsoft.playready"!=a.i.keySystem&&"com.chromecast.playready"!=a.i.keySystem||
146
- ne(g),h=Date.now(),y(w,2),l=a.G.$b.request(2,g),t(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=D(w),n=new M(2,6,6007,m),a.l(n),d&&d.Xa&&d.Xa.reject(n),w["return"]();case 3:if(a.M.g)return w["return"]();a.J+=(Date.now()-h)/1E3;a.v.logLicenseExchange&&wc(k.data);y(w,5);return t(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return q=D(w),u=new M(2,6,6008,q.message),a.l(u),d&&d.Xa&&d.Xa.reject(u),w["return"]();case 6:v=new L("drmsessionupdate"),a.G.onEvent(v),d&&(d.Xa&&d.Xa.resolve(),
147
- A=new O(function(){d.loaded=!0;le(a)&&a.A.resolve()}),A.U(oe)),x(w)}})}
148
- function ne(a){var b=pc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=xc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
149
- function ke(a,b){var c=b.target,d=a.j.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if("com.microsoft.playready"==a.i.keySystem&&16==h.byteLength&&(Ed("Trident/")||navigator.userAgent.match(/Edge?\//))){k=jc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"com.microsoft.playready"==a.i.keySystem&&"status-pending"==g&&(g="usable");"status-pending"!=g&&(d.loaded=!0);"expired"==g&&
150
- (e=!0);k=zc(h);a.aa.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.Xa&&(a.j["delete"](c),c.close()["catch"](function(){}));le(a)&&(a.A.resolve(),a.R.U(pe))}function Kd(a){var b=a.aa,c=a.W;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.l(new M(2,6,6014));a.G.ed(td(c))}
151
- function qe(){var a,b,c,d,e,f,g,h;return G(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,q;
152
- return G(function(u){switch(u.g){case 1:return y(u,2),t(u,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=u.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Ed("Tizen 3")&&(q=!1),f.set(l,{persistentState:q}),t(u,m.createMediaKeys(),5);case 5:ua(u,0);break;case 2:D(u),f.set(l,null),x(u)}})},h=a.map(function(l){return g(l)}),t(k,Promise.all(h),2)):k["return"](td(f))})}
153
- function re(a){var b;return G(function(c){if(1==c.g)return b=new Promise(function(d,e){(new O(e)).U(se)}),y(c,2),t(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);D(c);x(c)})}function Nd(a){var b;return G(function(c){b=Array.from(a.j.keys());a.j.clear();return t(c,Promise.all(b.map(function(d){return G(function(e){if(1==e.g)return y(e,2),t(e,re(d),4);if(2!=e.g)return ua(e,0);D(e);x(e)})})),0)})}
154
- function te(a,b){var c=b.audio,d=b.video;if(c&&c.encrypted){var e=ie(c);if(!ge(a,e))return!1}if(d&&d.encrypted&&(e=ie(d),!ge(a,e)))return!1;var f=fe(a.i);c=(d?d.drmInfos:[]).concat(c?c.drmInfos:[]);return 0==c.length||c.some(function(g){return g.keySystem==f})}
155
- function ue(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=r(b),g=f.next();!g.done;g=f.next())if(g=g.value,e.keySystem==g.keySystem){f=[];f=f.concat(e.initData||[]);f=f.concat(g.initData||[]);var h=e.keyIds&&g.keyIds?new Set([].concat(ia(e.keyIds),ia(g.keyIds))):e.keyIds||g.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||
156
- g.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||g.persistentStateRequired,videoRobustness:e.videoRobustness||g.videoRobustness,audioRobustness:e.audioRobustness||g.audioRobustness,serverCertificate:e.serverCertificate||g.serverCertificate,initData:f,keyIds:h});break}}return c}function Ld(a){a.j.forEach(function(b,c){var d=b.Qd,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Qd=e)})}
157
- function le(a){a=a.j.values();return fb(a,function(b){return b.loaded})}function Wd(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
158
- function je(a,b){var c=[],d=[],e=[],f=new Set;ve(b.drmInfos,c,d,e,f);return{keySystem:a,licenseServerUri:c[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:d[0],initData:e,keyIds:f}}
159
- function ve(a,b,c,d,e){var f={};a=r(a);for(var g=a.next();!g.done;f={Ja:f.Ja},g=a.next()){f.Ja=g.value;b.includes(f.Ja.licenseServerUri)||b.push(f.Ja.licenseServerUri);f.Ja.serverCertificate&&(c.some(function(l){return function(m){return ec(m,l.Ja.serverCertificate)}}(f))||c.push(f.Ja.serverCertificate));if(f.Ja.initData){g={};for(var h=r(f.Ja.initData),k=h.next();!k.done;g={Mc:g.Mc},k=h.next())g.Mc=k.value,d.some(function(l){return function(m){var n=l.Mc;return m.keyId&&m.keyId==n.keyId?!0:m.initDataType==
160
- n.initDataType&&ec(m.initData,n.initData)}}(g))||d.push(g.Mc)}if(f.Ja.keyIds)for(g=r(f.Ja.keyIds),h=g.next();!h.done;h=g.next())e.add(h.value)}}
161
- function Xd(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))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||
162
- (a.serverCertificate=c.serverCertificate);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var se=1,oe=5,pe=.5,we=new lc(function(){return hc(new Uint8Array([0]))});function xe(a,b){this.X=jc(a);this.g=b==ye;this.L=0}p=xe.prototype;p.Ta=function(){return this.L<this.X.byteLength};p.Gf=function(){return this.L};p.vf=function(){return this.X.byteLength};p.Na=function(){try{var a=this.X.getUint8(this.L);this.L+=1;return a}catch(b){throw ze();}};p.Gc=function(){try{var a=this.X.getUint16(this.L,this.g);this.L+=2;return a}catch(b){throw ze();}};p.S=function(){try{var a=this.X.getUint32(this.L,this.g);this.L+=4;return a}catch(b){throw ze();}};
163
- p.Me=function(){try{var a=this.X.getInt32(this.L,this.g);this.L+=4;return a}catch(b){throw ze();}};p.Gb=function(){try{if(this.g){var a=this.X.getUint32(this.L,!0);var b=this.X.getUint32(this.L+4,!0)}else b=this.X.getUint32(this.L,!1),a=this.X.getUint32(this.L+4,!1)}catch(c){throw ze();}if(2097151<b)throw new M(2,3,3001);this.L+=8;return b*Math.pow(2,32)+a};p.Fb=function(a){if(this.L+a>this.X.byteLength)throw ze();var b=gc(this.X,this.L,a);this.L+=a;return b};
164
- p.skip=function(a){if(this.L+a>this.X.byteLength)throw ze();this.L+=a};p.Oe=function(a){if(this.L<a)throw ze();this.L-=a};p.seek=function(a){if(0>a||a>this.X.byteLength)throw ze();this.L=a};p.Fc=function(){for(var a=this.L;this.Ta()&&0!=this.X.getUint8(this.L);)this.L+=1;a=gc(this.X,a,this.L-a);this.L+=1;return nc(a)};function ze(){return new M(2,3,3E3)}J("shaka.util.DataViewReader",xe);xe.prototype.readTerminatedString=xe.prototype.Fc;xe.prototype.seek=xe.prototype.seek;xe.prototype.rewind=xe.prototype.Oe;
165
- xe.prototype.skip=xe.prototype.skip;xe.prototype.readBytes=xe.prototype.Fb;xe.prototype.readUint64=xe.prototype.Gb;xe.prototype.readInt32=xe.prototype.Me;xe.prototype.readUint32=xe.prototype.S;xe.prototype.readUint16=xe.prototype.Gc;xe.prototype.readUint8=xe.prototype.Na;xe.prototype.getLength=xe.prototype.vf;xe.prototype.getPosition=xe.prototype.Gf;xe.prototype.hasMoreData=xe.prototype.Ta;var ye=1;xe.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:ye};function Ae(){this.i=[];this.h=[];this.g=!1}p=Ae.prototype;p.box=function(a,b){var c=Be(a);this.i[c]=Ce;this.h[c]=b;return this};p.ba=function(a,b){var c=Be(a);this.i[c]=De;this.h[c]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b){var c=new xe(a,0);for(this.g=!1;c.Ta()&&!this.g;)this.gd(0,c,b)};
166
- p.gd=function(a,b,c){var d=b.L,e=b.S(),f=b.S(),g=!1;switch(e){case 0:e=b.X.byteLength-d;break;case 1:e=b.Gb(),g=!0}var h=this.h[f];if(h){var k=null,l=null;this.i[f]==De&&(l=b.S(),k=l>>>24,l&=16777215);f=d+e;c&&f>b.X.byteLength&&(f=b.X.byteLength);f-=b.L;b=0<f?b.Fb(f):new Uint8Array(0);b=new xe(b,0);h({parser:this,partialOkay:c||!1,version:k,flags:l,reader:b,size:e,start:d+a,has64BitSize:g})}else b.skip(Math.min(d+e-b.L,b.X.byteLength-b.L))};
167
- function Ee(a){for(var b=Fe(a);a.reader.Ta()&&!a.parser.g;)a.parser.gd(a.start+b,a.reader,a.partialOkay)}function Ge(a){var b=Fe(a),c=a.reader.S();c=r(kb(c));for(var d=c.next();!d.done&&(a.parser.gd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d=c.next());}function He(a){return function(b){a(b.reader.Fb(b.reader.X.byteLength-b.reader.L))}}function Be(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}
168
- function Ie(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Fe(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}J("shaka.util.Mp4Parser",Ae);Ae.headerSize=Fe;Ae.typeToString=Ie;Ae.allData=He;Ae.sampleDescription=Ge;Ae.children=Ee;Ae.prototype.parseNext=Ae.prototype.gd;Ae.prototype.parse=Ae.prototype.parse;Ae.prototype.stop=Ae.prototype.stop;Ae.prototype.fullBox=Ae.prototype.ba;Ae.prototype.box=Ae.prototype.box;var Ce=0,De=1;function Je(a){function b(){d=!0}function c(l){f.push(l);Ee(l)}a=gc(a);var d=!1,e,f=[],g=[];(new Ae).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).ba("stsd",function(l){e=l;f.push(l);Ge(l)}).ba("encv",b).ba("enca",b).ba("avc1",function(l){g.push({box:l,Cc:1701733238})}).ba("avc3",function(l){g.push({box:l,Cc:1701733238})}).ba("ac-3",function(l){g.push({box:l,Cc:1701733217})}).ba("ec-3",function(l){g.push({box:l,Cc:1701733217})}).ba("mp4a",function(l){g.push({box:l,Cc:1701733217})}).parse(a);
169
- if(d)return a;if(0==g.length||!e)throw Wa(zc(a)),new M(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ke(a,e,k.box,f,k.Cc);return a}
170
- function Ke(a,b,c,d,e){var f=Le.value(),g=a.subarray(c.start,c.start+c.size),h=jc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=jc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Me(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Ed("Xbox One")?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,Me(e,d.start,d.size+k.byteLength);k=jc(e,b.start);b=Fe(b);
171
- a=k.getUint32(b);k.setUint32(b,a+1);return e}function Me(a,b,c){a=jc(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 Le=new lc(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 Ne(){this.g=new muxjs.mp4.CaptionParser;this.l=[];this.j={}}Ne.prototype.init=function(a){var b=muxjs.mp4.probe;a=gc(a);this.l=b.videoTrackIds(a);this.j=b.timescale(a);this.g.init()};Ne.prototype.i=function(a,b){var c=gc(a);(c=this.g.parse(c,this.l,this.j))&&c.captions&&b(c.captions);this.g.clearParsedCaptions()};Ne.prototype.h=function(){this.g.resetCaptionStream()};function Oe(){}Oe.prototype.init=function(){};Oe.prototype.i=function(){};Oe.prototype.h=function(){};function Pe(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Qe(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function Re(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Se(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}
172
- function Te(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;var c=navigator.userAgent.match(/Edge\//)||Ed("Trident/")||Dd()||Ed("CrKey")?.5:.1,d=Se(a).findIndex(function(e,f,g){return e.start>b&&(0==f||g[f-1].end-b<=c)});return 0<=d?d:null}function Se(a){if(!a)return[];for(var b=[],c=r(kb(a.length)),d=c.next();!d.done;d=c.next())d=d.value,b.push({start:a.start(d),end:a.end(d)});return b};function Ue(a,b,c){this.startTime=a;this.direction=Ve;this.endTime=b;this.payload=c;this.region=new We;this.position=null;this.positionAlign=Xe;this.size=0;this.textAlign=Ye;this.writingMode=Ze;this.lineInterpretation=$e;this.line=null;this.lineHeight="";this.lineAlign=af;this.displayAlign=bf;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=cf;this.fontStyle=df;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textDecoration=
173
- [];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=!1;this.cellResolution={columns:32,rows:15}}Ue.prototype.clone=function(){var a=new Ue(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
174
- function ef(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(!Vc(a.nestedCues,b.nestedCues,ef))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(!Vc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}J("shaka.text.Cue",Ue);var Xe="auto";
175
- Ue.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Xe};var Ye="center",ff={LEFT:"left",RIGHT:"right",CENTER:Ye,START:"start",END:"end"};Ue.textAlign=ff;var bf="after",gf={BEFORE:"before",CENTER:"center",AFTER:bf};Ue.displayAlign=gf;var Ve="ltr";Ue.direction={HORIZONTAL_LEFT_TO_RIGHT:Ve,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Ze="horizontal-tb";Ue.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Ze,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var $e=0;
176
- Ue.lineInterpretation={LINE_NUMBER:$e,PERCENTAGE:1};var af="start",hf={CENTER:"center",START:af,END:"end"};Ue.lineAlign=hf;var cf=400;Ue.fontWeight={NORMAL:cf,BOLD:700};var df="normal",jf={NORMAL:df,ITALIC:"italic",OBLIQUE:"oblique"};Ue.fontStyle=jf;Ue.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};
177
- function We(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=kf;this.scroll=lf}J("shaka.text.CueRegion",We);var kf=1;We.units={PX:0,PERCENTAGE:kf,LINES:2};var lf="";We.scrollMode={NONE:lf,UP:"up"};function mf(a){this.B=null;this.i=a;this.j=this.D=0;this.l=Infinity;this.h=this.g=null;this.A="";this.u=new Map}function nf(a){return of[a]||window.muxjs&&"application/cea-608"==a?!0:!1}mf.prototype.destroy=function(){this.i=this.B=null;this.u.clear();return Promise.resolve()};
178
- function pf(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g)return t(h,Promise.resolve(),2);if(!a.B||!a.i)return h["return"]();if(null==c||null==d)return a.B.parseInit(gc(b)),h["return"]();e={periodStart:a.D,segmentStart:c,segmentEnd:d};f=a.B.parseMedia(gc(b),e);g=f.filter(function(k){return k.startTime>=a.j&&k.startTime<a.l});a.i.append(g);null==a.g&&(a.g=Math.max(c,a.j));a.h=Math.min(d,a.l);x(h)})}
179
- mf.prototype.remove=function(a,b){var c=this;return G(function(d){if(1==d.g)return t(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));x(d)})};function qf(a,b,c){a.j=b;a.l=c}function sf(a,b,c){a.A=b;if(b=a.u.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
180
- function tf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.j&&k.startTime<a.l&&(k=new Ue(k.startTime,k.endTime,k.text),g.get(h).get(f).push(k),h==a.A&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.u.has(f)||a.u.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),
181
- a.u.get(f).set(h,k);a.g=null==a.g?Math.max(c,a.j):Math.min(a.g,Math.max(c,a.j));a.h=Math.max(a.h,Math.min(d,a.l))}J("shaka.text.TextEngine",mf);mf.prototype.destroy=mf.prototype.destroy;mf.unregisterParser=function(a){delete of[a]};mf.registerParser=function(a,b){of[a]=b};var of={};function uf(a,b,c,d){var e=this;this.g=a;this.u=c;this.j={};this.K={};this.i=null;this.N=d||function(){};this.l={};this.h=new kd;this.B={};this.D=b;this.H=new kc;this.A=vf(this,this.H);this.M=new id(function(){return wf(e)});this.J=""}function vf(a,b){var c=new MediaSource;a.h.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=xf(c);a.g.src=a.J;return c}function yf(a){var b=vd(a.mimeType,a.codecs),c=wd(a);return nf(b)||MediaSource.isTypeSupported(c)||Cc(b,a.type)}p=uf.prototype;
141
+ function be(a,b){var c,d,e,f,g;return H(function(h){switch(h.g){case 1:try{c=a.u.createSession("persistent-license")}catch(k){return d=new N(2,6,6005,k.message),a.l(d),h["return"](Promise.reject(d))}a.h.m(c,"message",function(k){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(k):Xd(a,k)});a.h.m(c,"keystatuseschange",function(k){return ie(a,k)});e={initData:null,loaded:!1,Sd:Infinity,Za:null};a.j.set(c,e);y(h,2);return t(h,c.load(b),4);case 4:f=h.h;id(a.M);if(!f)return a.j["delete"](c),
142
+ a.l(new N(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;je(a)&&a.A.resolve();return h["return"](c);case 2:g=C(h),id(a.M,g),a.j["delete"](c),a.l(new N(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
143
+ function ce(a,b,c){try{var d=a.H?a.u.createSession("persistent-license"):a.u.createSession()}catch(e){a.l(new N(2,6,6005,e.message));return}a.h.m(d,"message",function(e){a.g&&a.v.delayLicenseRequestUntilPlayed&&a.g.paused&&!a.P?a.K.push(e):Xd(a,e)});a.h.m(d,"keystatuseschange",function(e){return ie(a,e)});a.j.set(d,{initData:c,loaded:!1,Sd:Infinity,Za:null});try{c=a.v.initDataTransform(c,b,a.i)}catch(e){b=e;e instanceof N||(b=new N(2,6,6016,e));a.l(b);return}a.v.logLicenseExchange&&uc(c);d.generateRequest(b,
144
+ c)["catch"](function(e){if(!a.M.g){a.j["delete"](d);var f=e.errorCode;if(f&&f.systemCode){var g=f.systemCode;0>g&&(g+=Math.pow(2,32));g="0x"+g.toString(16)}a.l(new N(2,6,6006,e.message,e,g))}})}function ke(a,b,c){"skd"==b&&(b=c.serverCertificate,c=pd(a),a=qd(a,c,b));return a}
145
+ function Xd(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;H(function(w){switch(w.g){case 1:return c=b.target,a.v.logLicenseExchange&&uc(b.message),d=a.j.get(c),e=a.i.licenseServerUri,f=a.v.advanced[a.i.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=$c([e],a.v.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,"com.microsoft.playready"!=a.i.keySystem&&"com.chromecast.playready"!=a.i.keySystem||
146
+ le(g),h=Date.now(),y(w,2),l=a.G.bc.request(2,g),t(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=C(w),n=new N(2,6,6007,m),a.l(n),d&&d.Za&&d.Za.reject(n),w["return"]();case 3:if(a.M.g)return w["return"]();a.J+=(Date.now()-h)/1E3;a.v.logLicenseExchange&&uc(k.data);y(w,5);return t(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return q=C(w),u=new N(2,6,6008,q.message),a.l(u),d&&d.Za&&d.Za.reject(u),w["return"]();case 6:v=new M("drmsessionupdate"),a.G.onEvent(v),d&&(d.Za&&d.Za.resolve(),
147
+ A=new O(function(){d.loaded=!0;je(a)&&a.A.resolve()}),A.V(me)),x(w)}})}
148
+ function le(a){var b=nc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=vc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
149
+ function ie(a,b){var c=b.target,d=a.j.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if("com.microsoft.playready"==a.i.keySystem&&16==h.byteLength&&(Dd("Trident/")||navigator.userAgent.match(/Edge?\//))){k=hc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"com.microsoft.playready"==a.i.keySystem&&"status-pending"==g&&(g="usable");"status-pending"!=g&&(d.loaded=!0);"expired"==g&&
150
+ (e=!0);k=xc(h);a.ba.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.Za&&(a.j["delete"](c),c.close()["catch"](function(){}));je(a)&&(a.A.resolve(),a.S.V(ne))}function Jd(a){var b=a.ba,c=a.X;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.l(new N(2,6,6014));a.G.gd(sd(c))}
151
+ function oe(){var a,b,c,d,e,f,g,h;return H(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,q;
152
+ return H(function(u){switch(u.g){case 1:return y(u,2),t(u,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=u.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Dd("Tizen 3")&&(q=!1),f.set(l,{persistentState:q}),t(u,m.createMediaKeys(),5);case 5:ua(u,0);break;case 2:C(u),f.set(l,null),x(u)}})},h=a.map(function(l){return g(l)}),t(k,Promise.all(h),2)):k["return"](sd(f))})}
153
+ function pe(a){var b;return H(function(c){if(1==c.g)return b=new Promise(function(d,e){(new O(e)).V(qe)}),y(c,2),t(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);C(c);x(c)})}function Md(a){var b;return H(function(c){b=Array.from(a.j.keys());a.j.clear();return t(c,Promise.all(b.map(function(d){return H(function(e){if(1==e.g)return y(e,2),t(e,pe(d),4);if(2!=e.g)return ua(e,0);C(e);x(e)})})),0)})}
154
+ function re(a,b){var c=b.audio,d=b.video;if(c&&c.encrypted){var e=ge(c);if(!ee(a,e))return!1}if(d&&d.encrypted&&(e=ge(d),!ee(a,e)))return!1;var f=de(a.i);c=(d?d.drmInfos:[]).concat(c?c.drmInfos:[]);return 0==c.length||c.some(function(g){return g.keySystem==f})}
155
+ function se(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Qa:f.Qa},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Qa=[];f.Qa=f.Qa.concat(e.initData||[]);f.Qa=f.Qa.concat(h.initData||[]);f.Qa=f.Qa.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Qa.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
156
+ e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,initData:f.Qa,keyIds:g});break}}return c}
157
+ function Kd(a){a.j.forEach(function(b,c){var d=b.Sd,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Sd=e)})}function je(a){a=a.j.values();return bb(a,function(b){return b.loaded})}
158
+ function Td(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
159
+ function he(a,b){var c=[],d=[],e=[],f=new Set;te(b.drmInfos,c,d,e,f);return{keySystem:a,licenseServerUri:c[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:d[0],initData:e,keyIds:f}}
160
+ function te(a,b,c,d,e){var f={};a=r(a);for(var g=a.next();!g.done;f={Ka:f.Ka},g=a.next()){f.Ka=g.value;b.includes(f.Ka.licenseServerUri)||b.push(f.Ka.licenseServerUri);f.Ka.serverCertificate&&(c.some(function(l){return function(m){return cc(m,l.Ka.serverCertificate)}}(f))||c.push(f.Ka.serverCertificate));if(f.Ka.initData){g={};for(var h=r(f.Ka.initData),k=h.next();!k.done;g={Oc:g.Oc},k=h.next())g.Oc=k.value,d.some(function(l){return function(m){var n=l.Oc;return m.keyId&&m.keyId==n.keyId?!0:m.initDataType==
161
+ n.initDataType&&cc(m.initData,n.initData)}}(g))||d.push(g.Oc)}if(f.Ka.keyIds)for(g=r(f.Ka.keyIds),h=g.next();!h.done;h=g.next())e.add(h.value)}}
162
+ function Ud(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))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||
163
+ (a.serverCertificate=c.serverCertificate);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var qe=1,me=5,ne=.5,ue=new jc(function(){return fc(new Uint8Array([0]))});function ve(a,b){this.Y=hc(a);this.g=b==we;this.L=0}p=ve.prototype;p.Va=function(){return this.L<this.Y.byteLength};p.If=function(){return this.L};p.xf=function(){return this.Y.byteLength};p.Oa=function(){try{var a=this.Y.getUint8(this.L);this.L+=1;return a}catch(b){throw xe();}};p.Ic=function(){try{var a=this.Y.getUint16(this.L,this.g);this.L+=2;return a}catch(b){throw xe();}};p.T=function(){try{var a=this.Y.getUint32(this.L,this.g);this.L+=4;return a}catch(b){throw xe();}};
164
+ p.Oe=function(){try{var a=this.Y.getInt32(this.L,this.g);this.L+=4;return a}catch(b){throw xe();}};p.Ib=function(){try{if(this.g){var a=this.Y.getUint32(this.L,!0);var b=this.Y.getUint32(this.L+4,!0)}else b=this.Y.getUint32(this.L,!1),a=this.Y.getUint32(this.L+4,!1)}catch(c){throw xe();}if(2097151<b)throw new N(2,3,3001);this.L+=8;return b*Math.pow(2,32)+a};p.Hb=function(a){if(this.L+a>this.Y.byteLength)throw xe();var b=ec(this.Y,this.L,a);this.L+=a;return b};
165
+ p.skip=function(a){if(this.L+a>this.Y.byteLength)throw xe();this.L+=a};p.Qe=function(a){if(this.L<a)throw xe();this.L-=a};p.seek=function(a){if(0>a||a>this.Y.byteLength)throw xe();this.L=a};p.Hc=function(){for(var a=this.L;this.Va()&&0!=this.Y.getUint8(this.L);)this.L+=1;a=ec(this.Y,a,this.L-a);this.L+=1;return lc(a)};function xe(){return new N(2,3,3E3)}L("shaka.util.DataViewReader",ve);ve.prototype.readTerminatedString=ve.prototype.Hc;ve.prototype.seek=ve.prototype.seek;ve.prototype.rewind=ve.prototype.Qe;
166
+ ve.prototype.skip=ve.prototype.skip;ve.prototype.readBytes=ve.prototype.Hb;ve.prototype.readUint64=ve.prototype.Ib;ve.prototype.readInt32=ve.prototype.Oe;ve.prototype.readUint32=ve.prototype.T;ve.prototype.readUint16=ve.prototype.Ic;ve.prototype.readUint8=ve.prototype.Oa;ve.prototype.getLength=ve.prototype.xf;ve.prototype.getPosition=ve.prototype.If;ve.prototype.hasMoreData=ve.prototype.Va;var we=1;ve.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:we};function ye(){this.i=[];this.h=[];this.g=!1}p=ye.prototype;p.box=function(a,b){var c=ze(a);this.i[c]=Ae;this.h[c]=b;return this};p.ea=function(a,b){var c=ze(a);this.i[c]=Be;this.h[c]=b;return this};p.stop=function(){this.g=!0};p.parse=function(a,b){var c=new ve(a,0);for(this.g=!1;c.Va()&&!this.g;)this.jd(0,c,b)};
167
+ p.jd=function(a,b,c){var d=b.L,e=b.T(),f=b.T(),g=!1;switch(e){case 0:e=b.Y.byteLength-d;break;case 1:e=b.Ib(),g=!0}var h=this.h[f];if(h){var k=null,l=null;this.i[f]==Be&&(l=b.T(),k=l>>>24,l&=16777215);f=d+e;c&&f>b.Y.byteLength&&(f=b.Y.byteLength);f-=b.L;b=0<f?b.Hb(f):new Uint8Array(0);b=new ve(b,0);h({parser:this,partialOkay:c||!1,version:k,flags:l,reader:b,size:e,start:d+a,has64BitSize:g})}else b.skip(Math.min(d+e-b.L,b.Y.byteLength-b.L))};
168
+ function Ce(a){for(var b=De(a);a.reader.Va()&&!a.parser.g;)a.parser.jd(a.start+b,a.reader,a.partialOkay)}function Ee(a){var b=De(a),c=a.reader.T();c=r(fb(c));for(var d=c.next();!d.done&&(a.parser.jd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d=c.next());}function Fe(a){return function(b){a(b.reader.Hb(b.reader.Y.byteLength-b.reader.L))}}function ze(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}
169
+ function Ge(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function De(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",ye);ye.headerSize=De;ye.typeToString=Ge;ye.allData=Fe;ye.sampleDescription=Ee;ye.children=Ce;ye.prototype.parseNext=ye.prototype.jd;ye.prototype.parse=ye.prototype.parse;ye.prototype.stop=ye.prototype.stop;ye.prototype.fullBox=ye.prototype.ea;ye.prototype.box=ye.prototype.box;var Ae=0,Be=1;function He(a){function b(){d=!0}function c(l){f.push(l);Ce(l)}a=ec(a);var d=!1,e,f=[],g=[];(new ye).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).ea("stsd",function(l){e=l;f.push(l);Ee(l)}).ea("encv",b).ea("enca",b).ea("avc1",function(l){g.push({box:l,Ec:1701733238})}).ea("avc3",function(l){g.push({box:l,Ec:1701733238})}).ea("ac-3",function(l){g.push({box:l,Ec:1701733217})}).ea("ec-3",function(l){g.push({box:l,Ec:1701733217})}).ea("mp4a",function(l){g.push({box:l,Ec:1701733217})}).parse(a);
170
+ if(d)return a;if(0==g.length||!e)throw Ta(xc(a)),new N(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ie(a,e,k.box,f,k.Ec);return a}
171
+ function Ie(a,b,c,d,e){var f=Je.value(),g=a.subarray(c.start,c.start+c.size),h=hc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=hc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Ke(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Dd("Xbox One")?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,Ke(e,d.start,d.size+k.byteLength);k=hc(e,b.start);b=De(b);
172
+ a=k.getUint32(b);k.setUint32(b,a+1);return e}function Ke(a,b,c){a=hc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Je=new jc(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 Le(){this.g=new muxjs.mp4.CaptionParser;this.l=[];this.j={}}Le.prototype.init=function(a){var b=muxjs.mp4.probe;a=ec(a);this.l=b.videoTrackIds(a);this.j=b.timescale(a);this.g.init()};Le.prototype.i=function(a,b){var c=ec(a);(c=this.g.parse(c,this.l,this.j))&&c.captions&&b(c.captions);this.g.clearParsedCaptions()};Le.prototype.h=function(){this.g.resetCaptionStream()};function Me(){}Me.prototype.init=function(){};Me.prototype.i=function(){};Me.prototype.h=function(){};function Ne(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Oe(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function Pe(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Qe(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}
173
+ function Re(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;var c=navigator.userAgent.match(/Edge\//)||Dd("Trident/")||Cd()||Dd("CrKey")?.5:.1,d=Qe(a).findIndex(function(e,f,g){return e.start>b&&(0==f||g[f-1].end-b<=c)});return 0<=d?d:null}function Qe(a){if(!a)return[];for(var b=[],c=r(fb(a.length)),d=c.next();!d.done;d=c.next())d=d.value,b.push({start:a.start(d),end:a.end(d)});return b};function Se(a,b,c){this.startTime=a;this.direction=Te;this.endTime=b;this.payload=c;this.region=new Ue;this.position=null;this.positionAlign=Ve;this.size=0;this.textAlign=We;this.writingMode=Xe;this.lineInterpretation=Ye;this.line=null;this.lineHeight="";this.lineAlign=Ze;this.displayAlign=$e;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=af;this.fontStyle=bf;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textDecoration=
174
+ [];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=!1;this.cellResolution={columns:32,rows:15}}Se.prototype.clone=function(){var a=new Se(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
175
+ function cf(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(!Tc(a.nestedCues,b.nestedCues,cf))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(!Tc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}L("shaka.text.Cue",Se);var Ve="auto";
176
+ Se.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Ve};var We="center",df={LEFT:"left",RIGHT:"right",CENTER:We,START:"start",END:"end"};Se.textAlign=df;var $e="after",ef={BEFORE:"before",CENTER:"center",AFTER:$e};Se.displayAlign=ef;var Te="ltr";Se.direction={HORIZONTAL_LEFT_TO_RIGHT:Te,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Xe="horizontal-tb";Se.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Xe,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ye=0;
177
+ Se.lineInterpretation={LINE_NUMBER:Ye,PERCENTAGE:1};var Ze="start",ff={CENTER:"center",START:Ze,END:"end"};Se.lineAlign=ff;var af=400;Se.fontWeight={NORMAL:af,BOLD:700};var bf="normal",gf={NORMAL:bf,ITALIC:"italic",OBLIQUE:"oblique"};Se.fontStyle=gf;Se.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};
178
+ function Ue(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=hf;this.scroll=jf}L("shaka.text.CueRegion",Ue);var hf=1;Ue.units={PX:0,PERCENTAGE:hf,LINES:2};var jf="";Ue.scrollMode={NONE:jf,UP:"up"};function kf(a){this.B=null;this.i=a;this.j=this.D=0;this.l=Infinity;this.h=this.g=null;this.A="";this.u=new Map}function lf(a){return mf[a]||window.muxjs&&"application/cea-608"==a?!0:!1}kf.prototype.destroy=function(){this.i=this.B=null;this.u.clear();return Promise.resolve()};
179
+ function nf(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g)return t(h,Promise.resolve(),2);if(!a.B||!a.i)return h["return"]();if(null==c||null==d)return a.B.parseInit(ec(b)),h["return"]();e={periodStart:a.D,segmentStart:c,segmentEnd:d};f=a.B.parseMedia(ec(b),e);g=f.filter(function(k){return k.startTime>=a.j&&k.startTime<a.l});a.i.append(g);null==a.g&&(a.g=Math.max(c,a.j));a.h=Math.min(d,a.l);x(h)})}
180
+ kf.prototype.remove=function(a,b){var c=this;return H(function(d){if(1==d.g)return t(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));x(d)})};function pf(a,b,c){a.j=b;a.l=c}function qf(a,b,c){a.A=b;if(b=a.u.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
181
+ function rf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.j&&k.startTime<a.l&&(k=new Se(k.startTime,k.endTime,k.text),g.get(h).get(f).push(k),h==a.A&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.u.has(f)||a.u.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),
182
+ a.u.get(f).set(h,k);a.g=null==a.g?Math.max(c,a.j):Math.min(a.g,Math.max(c,a.j));a.h=Math.max(a.h,Math.min(d,a.l))}L("shaka.text.TextEngine",kf);kf.prototype.destroy=kf.prototype.destroy;kf.unregisterParser=function(a){delete mf[a]};kf.registerParser=function(a,b){mf[a]=b};var mf={};function sf(a,b,c,d){var e=this;this.g=a;this.u=c;this.j={};this.K={};this.i=null;this.N=d||function(){};this.l={};this.h=new jd;this.B={};this.D=b;this.H=new ic;this.A=tf(this,this.H);this.M=new hd(function(){return uf(e)});this.J=""}function tf(a,b){var c=new MediaSource;a.h.Ga(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=vf(c);a.g.src=a.J;return c}function wf(a){var b=ud(a.mimeType,a.codecs),c=vd(a);return lf(b)||MediaSource.isTypeSupported(c)||Ac(b,a.type)}p=sf.prototype;
182
183
  p.destroy=function(){return this.M.destroy()};
183
- function wf(a){var b,c,d,e,f,g,h,k;return G(function(l){if(1==l.g){b=[];for(c in a.l)for(d=a.l[c],e=d[0],a.l[c]=d.slice(0,1),e&&b.push(e.p["catch"](Hb)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new M(2,7,7003,void 0));a.i&&b.push(a.i.destroy());a.u&&b.push(a.u.destroy());for(k in a.B)b.push(a.B[k].destroy());return t(l,Promise.all(b),2)}a.h&&(a.h.release(),a.h=null);a.g&&(a.g.removeAttribute("src"),a.g.load(),a.g=null);a.A=null;a.i=null;a.u=null;a.j={};a.B={};a.D=null;a.l=
184
+ function uf(a){var b,c,d,e,f,g,h,k;return H(function(l){if(1==l.g){b=[];for(c in a.l)for(d=a.l[c],e=d[0],a.l[c]=d.slice(0,1),e&&b.push(e.p["catch"](Db)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new N(2,7,7003,void 0));a.i&&b.push(a.i.destroy());a.u&&b.push(a.u.destroy());for(k in a.B)b.push(a.B[k].destroy());return t(l,Promise.all(b),2)}a.h&&(a.h.release(),a.h=null);a.g&&(a.g.removeAttribute("src"),a.g.load(),a.g=null);a.A=null;a.i=null;a.u=null;a.j={};a.B={};a.D=null;a.l=
184
185
  {};x(l)})}
185
- p.init=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){if(1==m.g)return d=Mb,t(m,c.H,2);e={};f=r(a.keys());for(g=f.next();!g.done;e={Ba:e.Ba},g=f.next())e.Ba=g.value,h=a.get(e.Ba),k=vd(h.mimeType,h.codecs),e.Ba==d.xa?zf(c,k):(!b&&MediaSource.isTypeSupported(k)||!Cc(k,e.Ba)||(c.B[e.Ba]=new Bc,k=Dc(e.Ba,k)),l=c.A.addSourceBuffer(k),c.h.m(l,"error",function(n){return function(){c.l[n.Ba][0].p.reject(new M(2,3,3014,c.g.error?c.g.error.code:0))}}(e)),c.h.m(l,"updateend",function(n){return function(){return Af(c,n.Ba)}}(e)),
186
- c.j[e.Ba]=l,c.K[e.Ba]=k,c.l[e.Ba]=[]);x(m)})};function zf(a,b){a.i||(a.i=new mf(a.u));"application/cea-608"!=b&&(a.i.B=Jb(of[b]))}function Bf(a){return a.A?"ended"==a.A.readyState:!0}function Cf(a,b){if("text"==b)var c=a.i.g;else c=Df(a,b),c=!c||1==c.length&&1E-6>c.end(0)-c.start(0)?null:1==c.length&&0>c.start(0)?0:c.length?c.start(0):null;return c}function Ef(a,b){return"text"==b?a.i.h:Pe(Df(a,b))}
187
- function Ff(a,b,c){if("text"==b)return a=a.i,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Df(a,b);return Re(a,c)}p.Xc=function(){var a={total:Se(this.g.buffered),audio:Se(Df(this,"audio")),video:Se(Df(this,"video")),text:[]};if(this.i){var b=this.i.g,c=this.i.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Df(a,b){try{return a.j[b].buffered}catch(c){return null}}
188
- function Gf(a,b,c,d,e,f){var g,h,k,l,m;return G(function(n){if(1==n.g){g=Mb;if(b==g.xa)return t(n,pf(a.i,c,d,e),0);if(a.B[b])return t(n,Ec(a.B[b],c),10);if(f&&window.muxjs)return a.i||zf(a,"text/vtt"),null==d&&null==e?a.D.init(c):a.D.i(c,function(q){q.length&&tf(a.i,q,d,e,a.j[g.$a].timestampOffset)}),c=Hf(a,c,d,b),t(n,If(a,b,function(){a.j[b].appendBuffer(c)}),0);c=Hf(a,c,d,b);return t(n,If(a,b,function(){a.j[b].appendBuffer(c)}),0)}h=n.h;a.i||zf(a,"text/vtt");h.metadata&&(k=a.j[b].timestampOffset,
189
- a.N(h.metadata,k,e));h.captions&&h.captions.length&&(l=a.j[g.$a].timestampOffset,tf(a.i,h.captions,d,e,l));m=h.data;m=Hf(a,m,d,b);return t(n,If(a,b,function(){a.j[b].appendBuffer(m)}),0)})}function Jf(a,b){var c=Ef(a,"video")||0;sf(a.i,b,c)}function Kf(a){a.i&&sf(a.i,"",0)}p.remove=function(a,b,c){var d=this,e;return G(function(f){e=Mb;return a==e.xa?t(f,d.i.remove(b,c),0):t(f,If(d,a,function(){c<=b?Af(d,a):d.j[a].remove(b,c)}),0)})};
190
- function Lf(a,b){var c;return G(function(d){c=Mb;return b==c.xa?a.i?t(d,a.i.remove(0,Infinity),0):d["return"]():t(d,If(a,b,function(){var e=a.A.duration;0>=e?Af(a,b):a.j[b].remove(0,e)}),0)})}p.flush=function(a){var b=this,c;return G(function(d){c=Mb;return a==c.xa?d["return"]():t(d,If(b,a,function(){b.g.currentTime-=.001;Af(b,a)}),0)})};
191
- function Mf(a,b,c,d,e){var f;return G(function(g){f=Mb;return b==f.xa?(a.i.D=c,qf(a.i,d,e),g["return"]()):t(g,Promise.all([If(a,b,function(){var h=a.j[b].appendWindowStart,k=a.j[b].appendWindowEnd;a.j[b].abort();a.j[b].appendWindowStart=h;a.j[b].appendWindowEnd=k;Af(a,b)}),If(a,b,function(){var h=c;0>h&&(h+=.001);a.j[b].timestampOffset=h;Af(a,b)}),If(a,b,function(){a.j[b].appendWindowStart=0;a.j[b].appendWindowEnd=e;a.j[b].appendWindowStart=d;Af(a,b)})]),0)})}
192
- p.endOfStream=function(a){var b=this;return G(function(c){return t(c,Nf(b,function(){Bf(b)||(a?b.A.endOfStream(a):b.A.endOfStream())}),0)})};p.Wa=function(a){var b=this;return G(function(c){return t(c,Nf(b,function(){b.A.duration=a}),0)})};p.getDuration=function(){return this.A.duration};function Af(a,b){var c=a.l[b][0];c&&(c.p.resolve(),Of(a,b))}function If(a,b,c){jd(a.M);c={start:c,p:new kc};a.l[b].push(c);1==a.l[b].length&&Pf(a,b);return c.p}
193
- function Nf(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:jd(a.M);c=[];d={};for(e in a.j)d.jc=new kc,f={start:function(l){return function(){return l.jc.resolve()}}(d),p:d.jc},a.l[e].push(f),c.push(d.jc),1==a.l[e].length&&f.start(),d={jc:d.jc};y(k,2);return t(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=D(k),g;case 3:try{b()}catch(l){throw new M(2,3,3015,l);}finally{for(h in a.j)Of(a,h)}x(k)}})}function Of(a,b){a.l[b].shift();Pf(a,b)}
194
- function Pf(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new M(2,3,3017,b)):c.p.reject(new M(2,3,3015,d)),Of(a,b)}}function Hf(a,b,c,d){var e=a.g.mediaKeys;null==c&&e&&(Dd()||Ed("Xbox One"))&&"mp4"==a.K[d].split(";")[0].split("/")[1]&&(b=Je(b));return b}var xf=window.URL.createObjectURL;function Qf(a,b){var c=Rf(a.variants,b);c=Sf(c);c=Tf(c);var d=Uf(c);a.variants=a.variants.filter(function(e){return Vf(e)==d?!0:!1})}function Sf(a){var b=new Za;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Vf(c);b.push(d,c)}return b}
195
- function Tf(a){var b=0,c=new Map,d=a.size();$a(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new Za);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}function Uf(a){var b="",c=Infinity;$a(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}
196
- function Vf(a){var b="";a.video&&(b=yd(a.video.codecs));var c="";a.audio&&(c=yd(a.audio.codecs));return b+"-"+c}
197
- function Wf(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;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}
198
- function Xf(a,b,c){c.variants=c.variants.filter(function(d){if(a&&a.N&&!te(a,d))return!1;var e=d.audio;d=d.video;return e&&!yf(e)||d&&!yf(d)||Ed("Xbox One")&&d&&(d.width&&1920<d.width||d.height&&1080<d.height)&&d.codecs.includes("avc1.")||e&&b&&b.audio&&!Yf(e,b.audio)||d&&b&&b.video&&!Yf(d,b.video)?!1:!0});c.textStreams=c.textStreams.filter(function(d){return nf(vd(d.mimeType,d.codecs))})}function Yf(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
199
- function Zf(a){var b=a.audio,c=a.video,d=b?b.codecs:null,e=c?c.codecs:null,f=[];e&&f.push(e);d&&f.push(d);var g=[];c&&g.push(c.mimeType);b&&g.push(b.mimeType);g=g[0]||null;var h=[];b&&h.push(b.kind);c&&h.push(c.kind);h=h[0]||null;var k=new Set;if(b)for(var l=r(b.roles),m=l.next();!m.done;m=l.next())k.add(m.value);if(c)for(l=r(c.roles),m=l.next();!m.done;m=l.next())k.add(m.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:h,width:null,height:null,
186
+ p.init=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g)return d=Ib,t(m,c.H,2);e={};f=r(a.keys());for(g=f.next();!g.done;e={Ca:e.Ca},g=f.next())e.Ca=g.value,h=a.get(e.Ca),k=ud(h.mimeType,h.codecs),e.Ca==d.ya?xf(c,k):(!b&&MediaSource.isTypeSupported(k)||!Ac(k,e.Ca)||(c.B[e.Ca]=new zc,k=Bc(e.Ca,k)),l=c.A.addSourceBuffer(k),c.h.m(l,"error",function(n){return function(){c.l[n.Ca][0].p.reject(new N(2,3,3014,c.g.error?c.g.error.code:0))}}(e)),c.h.m(l,"updateend",function(n){return function(){return yf(c,n.Ca)}}(e)),
187
+ c.j[e.Ca]=l,c.K[e.Ca]=k,c.l[e.Ca]=[]);x(m)})};function xf(a,b){a.i||(a.i=new kf(a.u));"application/cea-608"!=b&&(a.i.B=Fb(mf[b]))}function zf(a){return a.A?"ended"==a.A.readyState:!0}function Af(a,b){if("text"==b)var c=a.i.g;else c=Bf(a,b),c=!c||1==c.length&&1E-6>c.end(0)-c.start(0)?null:1==c.length&&0>c.start(0)?0:c.length?c.start(0):null;return c}function Cf(a,b){return"text"==b?a.i.h:Ne(Bf(a,b))}
188
+ function Df(a,b,c){if("text"==b)return a=a.i,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Bf(a,b);return Pe(a,c)}p.Zc=function(){var a={total:Qe(this.g.buffered),audio:Qe(Bf(this,"audio")),video:Qe(Bf(this,"video")),text:[]};if(this.i){var b=this.i.g,c=this.i.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Bf(a,b){try{return a.j[b].buffered}catch(c){return null}}
189
+ function Ef(a,b,c,d,e,f){var g,h,k,l,m;return H(function(n){if(1==n.g){g=Ib;if(b==g.ya)return t(n,nf(a.i,c,d,e),0);if(a.B[b])return t(n,Cc(a.B[b],c),10);if(f&&window.muxjs)return a.i||xf(a,"text/vtt"),null==d&&null==e?a.D.init(c):a.D.i(c,function(q){q.length&&rf(a.i,q,d,e,a.j[g.bb].timestampOffset)}),c=Ff(a,c,d,b),t(n,Gf(a,b,function(){a.j[b].appendBuffer(c)}),0);c=Ff(a,c,d,b);return t(n,Gf(a,b,function(){a.j[b].appendBuffer(c)}),0)}h=n.h;a.i||xf(a,"text/vtt");h.metadata&&(k=a.j[b].timestampOffset,
190
+ a.N(h.metadata,k,e));h.captions&&h.captions.length&&(l=a.j[g.bb].timestampOffset,rf(a.i,h.captions,d,e,l));m=h.data;m=Ff(a,m,d,b);return t(n,Gf(a,b,function(){a.j[b].appendBuffer(m)}),0)})}function Hf(a,b){var c=Cf(a,"video")||0;qf(a.i,b,c)}function If(a){a.i&&qf(a.i,"",0)}p.remove=function(a,b,c){var d=this,e;return H(function(f){e=Ib;return a==e.ya?t(f,d.i.remove(b,c),0):t(f,Gf(d,a,function(){c<=b?yf(d,a):d.j[a].remove(b,c)}),0)})};
191
+ function Jf(a,b){var c;return H(function(d){c=Ib;return b==c.ya?a.i?t(d,a.i.remove(0,Infinity),0):d["return"]():t(d,Gf(a,b,function(){var e=a.A.duration;0>=e?yf(a,b):a.j[b].remove(0,e)}),0)})}p.flush=function(a){var b=this,c;return H(function(d){c=Ib;return a==c.ya?d["return"]():t(d,Gf(b,a,function(){b.g.currentTime-=.001;yf(b,a)}),0)})};
192
+ function Kf(a,b,c,d,e){var f;return H(function(g){f=Ib;return b==f.ya?(a.i.D=c,pf(a.i,d,e),g["return"]()):t(g,Promise.all([Gf(a,b,function(){var h=a.j[b].appendWindowStart,k=a.j[b].appendWindowEnd;a.j[b].abort();a.j[b].appendWindowStart=h;a.j[b].appendWindowEnd=k;yf(a,b)}),Gf(a,b,function(){var h=c;0>h&&(h+=.001);a.j[b].timestampOffset=h;yf(a,b)}),Gf(a,b,function(){a.j[b].appendWindowStart=0;a.j[b].appendWindowEnd=e;a.j[b].appendWindowStart=d;yf(a,b)})]),0)})}
193
+ p.endOfStream=function(a){var b=this;return H(function(c){return t(c,Lf(b,function(){zf(b)||(a?b.A.endOfStream(a):b.A.endOfStream())}),0)})};p.Ya=function(a){var b=this;return H(function(c){return t(c,Lf(b,function(){b.A.duration=a}),0)})};p.getDuration=function(){return this.A.duration};function yf(a,b){var c=a.l[b][0];c&&(c.p.resolve(),Mf(a,b))}function Gf(a,b,c){id(a.M);c={start:c,p:new ic};a.l[b].push(c);1==a.l[b].length&&Nf(a,b);return c.p}
194
+ function Lf(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:id(a.M);c=[];d={};for(e in a.j)d.lc=new ic,f={start:function(l){return function(){return l.lc.resolve()}}(d),p:d.lc},a.l[e].push(f),c.push(d.lc),1==a.l[e].length&&f.start(),d={lc:d.lc};y(k,2);return t(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=C(k),g;case 3:try{b()}catch(l){throw new N(2,3,3015,l);}finally{for(h in a.j)Mf(a,h)}x(k)}})}function Mf(a,b){a.l[b].shift();Nf(a,b)}
195
+ function Nf(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new N(2,3,3017,b)):c.p.reject(new N(2,3,3015,d)),Mf(a,b)}}function Ff(a,b,c,d){var e=a.g.mediaKeys;null==c&&e&&(Cd()||Dd("Xbox One"))&&"mp4"==a.K[d].split(";")[0].split("/")[1]&&(b=He(b));return b}var vf=window.URL.createObjectURL;function Of(a,b){var c=Pf(a.variants,b);c=Qf(c);c=Rf(c);var d=Sf(c);a.variants=a.variants.filter(function(e){return Tf(e)==d?!0:!1})}function Qf(a){var b=new Wa;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Tf(c);b.push(d,c)}return b}
196
+ function Rf(a){var b=0,c=new Map,d=a.size();Xa(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new Wa);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}function Sf(a){var b="",c=Infinity;Xa(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}
197
+ function Tf(a){var b="";a.video&&(b=xd(a.video.codecs));var c="";a.audio&&(c=xd(a.audio.codecs));return b+"-"+c}
198
+ function Uf(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;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}
199
+ function Vf(a,b,c){c.variants=c.variants.filter(function(d){if(a&&a.N&&!re(a,d))return!1;var e=d.audio;d=d.video;return e&&!wf(e)||d&&!wf(d)||Dd("Xbox One")&&d&&(d.width&&1920<d.width||d.height&&1080<d.height)&&d.codecs.includes("avc1.")||e&&b&&b.audio&&!Wf(e,b.audio)||d&&b&&b.video&&!Wf(d,b.video)?!1:!0});c.textStreams=c.textStreams.filter(function(d){return lf(ud(d.mimeType,d.codecs))})}function Wf(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
200
+ function Xf(a){var b=a.audio,c=a.video,d=b?b.codecs:null,e=c?c.codecs:null,f=[];e&&f.push(e);d&&f.push(d);var g=[];c&&g.push(c.mimeType);b&&g.push(b.mimeType);g=g[0]||null;var h=[];b&&h.push(b.kind);c&&h.push(c.kind);h=h[0]||null;var k=new Set;if(b)for(var l=r(b.roles),m=l.next();!m.done;m=l.next())k.add(m.value);if(c)for(l=r(c.roles),m=l.next();!m.done;m=l.next())k.add(m.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:h,width:null,height:null,
200
201
  frameRate:null,pixelAspectRatio:null,mimeType:g,codecs:f.join(", "),audioCodec:d,videoCodec:e,primary:a.primary,roles:Array.from(k),audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=
201
202
  c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.label=b.label,a.audioRoles=b.roles);return a}
202
- function $f(a){return{id:a.id,active:!1,type:"text",bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:a.mimeType,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:a.originalId}}
203
- function ag(a){a.__shaka_id||(a.__shaka_id=bg++);return a.__shaka_id}function cg(a){var b=dg(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]);return b}
204
- function dg(a){return{id:ag(a),active:!1,type:"",bandwidth:0,language:Ob(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}}
205
- function eg(a){return a.allowedByApplication&&a.allowedByKeySystem}function fg(a){return a.filter(function(b){return eg(b)})}
206
- function Rf(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
207
- function gg(a,b,c){var d=a,e=a.filter(function(h){return h.primary});e.length&&(d=e);var f=d.length?d[0].language:"";d=d.filter(function(h){return h.language==f});if(b){var g=Vb(Ob(b),a.map(function(h){return h.language}));g&&(d=a.filter(function(h){return Ob(h.language)==g}))}if(c){if(a=hg(d,c),a.length)return a}else if(a=d.filter(function(h){return 0==h.roles.length}),a.length)return a;a=d.map(function(h){return h.roles}).reduce(Gb,[]);return a.length?hg(d,a[0]):d}
208
- function hg(a,b){return a.filter(function(c){return c.roles.includes(b)})}var bg=0;function ig(){this.u=null;this.i=!1;this.h=new cc;this.g=[];this.l=1;this.A=!1;this.v=this.j=null}p=ig.prototype;p.stop=function(){this.u=null;this.i=!1;this.g=[];this.l=1;this.j=null};p.init=function(a){this.u=a};
209
- p.chooseVariant=function(){var a=jg(this.v.restrictions,this.g),b=this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);this.g.length&&!a.length&&(a=jg(null,this.g),a=[a[0]]);var c=a[0]||null;a=r(mb(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.item;var f=isNaN(this.l)?1:Math.abs(this.l);e=f*(e.next||{bandwidth:Infinity}).bandwidth/this.v.bandwidthUpgradeTarget;b>=f*d.bandwidth/this.v.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.j=Date.now();return c};
210
- p.enable=function(){this.i=!0};p.disable=function(){this.i=!1};p.segmentDownloaded=function(a,b){var c=this.h;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;ac(c.h,e,d);ac(c.i,e,d)}if(null!=this.j&&this.i)a:{if(!this.A){if(!(128E3<=this.h.g))break a;this.A=!0}else if(Date.now()-this.j<1E3*this.v.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);c&&this.u(c)}};p.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate)};
211
- p.setVariants=function(a){this.g=a};p.playbackRateChanged=function(a){this.l=a};p.configure=function(a){this.v=a};function jg(a,b){a&&(b=b.filter(function(c){return Wf(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}J("shaka.abr.SimpleAbrManager",ig);ig.prototype.configure=ig.prototype.configure;ig.prototype.playbackRateChanged=ig.prototype.playbackRateChanged;ig.prototype.setVariants=ig.prototype.setVariants;
212
- ig.prototype.getBandwidthEstimate=ig.prototype.getBandwidthEstimate;ig.prototype.segmentDownloaded=ig.prototype.segmentDownloaded;ig.prototype.disable=ig.prototype.disable;ig.prototype.enable=ig.prototype.enable;ig.prototype.chooseVariant=ig.prototype.chooseVariant;ig.prototype.init=ig.prototype.init;ig.prototype.stop=ig.prototype.stop;function kg(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=r(b),d=c.next();!d.done;d=c.next())this.add(d.value)}kg.prototype.add=function(a){return lg(this.h,a)?(this.g.add(a),!0):!1};function lg(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&&mg(c,d)&&ng(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(mg(c,d)&&ng(c.roles,d.roles)));return c?!1:!0}
213
- kg.prototype.values=function(){return this.g.values()};function mg(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(g){return yd(g)}),d=b.codecs.split(",").map(function(g){return yd(g)});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=r(kb(c.length)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}
214
- function ng(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=r(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function og(a){this.g=a;this.h=new pg(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}og.prototype.create=function(a){var b=this,c=a.filter(function(d){return lg(b.g,d)});return c.length?new kg(c[0],c):this.h.create(a)};function pg(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
215
- pg.prototype.create=function(a){var b=[];b=qg(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=rg(b,this.j);a.length&&(b=a);this.g&&(a=Rf(b,this.g),a.length&&(b=a));this.h&&(a=sg(b,this.h),a.length&&(b=a));a=new kg(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,lg(a.h,c)&&a.add(c);return a};function qg(a,b){var c=Ob(b),d=Vb(c,a.map(function(e){return Ub(e)}));return d?a.filter(function(e){return d==Ub(e)}):[]}
216
- function rg(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function sg(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function tg(){this.g=ug;this.h=(new Map).set(ug,2).set(vg,1)}function wg(a,b,c){a.h.set(ug,c).set(vg,b)}var vg=0,ug=1;function xg(){}function yg(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){if(d&&(e=zg[d.toLowerCase()]))return k["return"](e);if(f=Ag(a))if(g=Bg[f])return k["return"](g);return d?k.C(2):t(k,Cg(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=zg[d]))return k["return"](h);throw new M(2,4,4E3,a);})}
217
- function Cg(a,b,c){var d,e,f;return G(function(g){if(1==g.g)return d=bd([a],c),d.method="HEAD",t(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function Ag(a){a=(new ob(a)).Ha.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}J("shaka.media.ManifestParser",xg);xg.unregisterParserByMime=function(a){delete zg[a]};xg.registerParserByMime=function(a,b){zg[a]=b};
218
- xg.registerParserByExtension=function(a,b){Bg[a]=b};var zg={},Bg={};function Dg(a,b,c){this.La=a;this.h=b;this.g=c}Dg.prototype.wc=function(){return this.h};Dg.prototype.rc=function(){return this.g};function Eg(a,b){return a&&b?a.wc()==b.wc()&&a.rc()==b.rc()&&Vc(a.La(),b.La()):a==b}J("shaka.media.InitSegmentReference",Dg);Dg.prototype.getEndByte=Dg.prototype.rc;Dg.prototype.getStartByte=Dg.prototype.wc;
219
- function Fg(a,b,c,d,e,f,g,h,k){this.startTime=a;this.endTime=b;this.j=c;this.h=d;this.g=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k}p=Fg.prototype;p.La=function(){return this.j()};p.Jf=function(){return this.startTime};p.uf=function(){return this.endTime};p.wc=function(){return this.h};p.rc=function(){return this.g};J("shaka.media.SegmentReference",Fg);Fg.prototype.getEndByte=Fg.prototype.rc;Fg.prototype.getStartByte=Fg.prototype.wc;Fg.prototype.getEndTime=Fg.prototype.uf;
220
- Fg.prototype.getStartTime=Fg.prototype.Jf;Fg.prototype.getUris=Fg.prototype.La;function P(a,b,c){this.j=a;this.hd=b;this.u=this.l=Infinity;this.g=1;this.h=this.i=null;this.A=0;this.B=!0;this.D=0;this.H=void 0===c?!0:c}p=P.prototype;p.getDuration=function(){return this.l};p.Cf=function(){return this.g};p.Wa=function(a){this.l=a};p.Hf=function(){return this.j};p.Re=function(a){this.A=a};p.Jc=function(a){this.B=a};p.ae=function(a){this.u=a};p.og=function(a){this.hd=a};p.tf=function(){return this.hd};
221
- p.ac=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.Od(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.j&&this.H&&(this.j=(Date.now()+this.A)/1E3-this.h-this.g)}};p.Od=function(a){this.i=null==this.i?a:Math.min(this.i,a)};p.Nd=function(a){this.g=Math.max(this.g,a)};p.offset=function(a){null!=this.i&&(this.i+=a);null!=this.h&&(this.h+=a)};p.V=function(){return Infinity==this.l&&!this.B};
222
- p.Bb=function(){return Infinity!=this.l&&!this.B};p.cb=function(){return Math.max(this.D,this.mb()-this.u)};p.Ue=function(a){this.D=a};p.mb=function(){return this.V()||this.Bb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.j),this.l):this.h||this.l};p.vc=function(a){var b=Math.max(this.i,this.D);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.mb()-this.u+a,this.bb()))};p.Xb=function(){return this.vc(0)};
223
- p.bb=function(){return Math.max(0,this.mb()-(this.V()||this.Bb()?this.hd:0))};p.Ye=function(){return null==this.j||null!=this.h&&this.H?!1:!0};J("shaka.media.PresentationTimeline",P);P.prototype.usingPresentationStartTime=P.prototype.Ye;P.prototype.getSeekRangeEnd=P.prototype.bb;P.prototype.getSeekRangeStart=P.prototype.Xb;P.prototype.getSafeSeekRangeStart=P.prototype.vc;P.prototype.getSegmentAvailabilityEnd=P.prototype.mb;P.prototype.setUserSeekStart=P.prototype.Ue;
224
- P.prototype.getSegmentAvailabilityStart=P.prototype.cb;P.prototype.isInProgress=P.prototype.Bb;P.prototype.isLive=P.prototype.V;P.prototype.offset=P.prototype.offset;P.prototype.notifyMaxSegmentDuration=P.prototype.Nd;P.prototype.notifyMinSegmentStartTime=P.prototype.Od;P.prototype.notifySegments=P.prototype.ac;P.prototype.getDelay=P.prototype.tf;P.prototype.setDelay=P.prototype.og;P.prototype.setSegmentAvailabilityDuration=P.prototype.ae;P.prototype.setStatic=P.prototype.Jc;
225
- P.prototype.setClockOffset=P.prototype.Re;P.prototype.getPresentationStartTime=P.prototype.Hf;P.prototype.setDuration=P.prototype.Wa;P.prototype.getMaxSegmentDuration=P.prototype.Cf;P.prototype.getDuration=P.prototype.getDuration;function Gg(a,b){this.j=a;this.u=Hg(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}Gg.prototype.release=function(){this.j=null;this.i=function(){}};function Ig(a,b){a.i=b}function Jg(a){this.g=a}function Hg(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Se(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 Kg(a,b,c,d,e){var f=this;this.g=a;this.D=b;this.v=c;this.B=e;this.h=new kd;this.A=!1;this.H=a.readyState;this.j=!1;this.i=d;this.u=!1;this.h.m(a,"waiting",function(){return Lg(f)});this.l=(new O(function(){Lg(f)})).ha(.25)}Kg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.l&&(this.l.stop(),this.l=null);this.i&&(this.i.release(),this.i=null);this.g=this.D=this.B=null};Kg.prototype.Rd=function(){this.u=!0;Lg(this)};
226
- function Lg(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.A)return}else a.A=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.H&&(a.j=!1,a.H=a.g.readyState);var b;if(!(b=!a.i)){b=a.i;var c=b.j,d=Hg(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.l=f,b.g=e,b.u=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){var g=a.v.smallGapLimit;e=a.g.currentTime;b=a.g.buffered;c=Te(b,e);if(!(null==c||0==c&&!a.u||(d=b.start(c),
227
- d>=a.D.bb()))){f=d-e;g=f<=g;var h=!1;.001>f||(g||a.j||(a.j=!0,e=new L("largegap",{currentTime:e,gapSize:f}),e.cancelable=!0,a.B(e),a.v.jumpLargeGaps&&!e.defaultPrevented&&(h=!0)),!g&&!h)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Mg(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ng.value().get(b),c.Fa(a,b,d))}var Ng=new lc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Og(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.u=!1;this.h=new kd;this.i=new Pg(a);Mg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Qg(d,d.j)})}Og.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 Rg(a){return a.u?a.g.currentTime:a.j}function Sg(a,b){0<a.g.readyState?Tg(a.i,b):Mg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Qg(a,a.j)})}
228
- function Qg(a,b){.001>Math.abs(a.g.currentTime-b)?Ug(a):(a.h.Fa(a.g,"seeking",function(){Ug(a)}),Tg(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Ug(a){a.u=!0;a.h.m(a.g,"seeking",function(){return a.l()})}function Pg(a){var b=this;this.h=a;this.u=10;this.l=this.j=this.i=0;this.g=new O(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Pg.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
229
- function Tg(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.u;a.h.currentTime=b;a.g.ha(.1)};function Vg(a){function b(){null==c.i||0==c.i?c.j=!0:(c.h.Fa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.i))}var c=this;this.g=a;this.j=!1;this.i=null;this.h=new kd;Mg(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){b()})}Vg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.g=null};Vg.prototype.B=function(a){this.i=this.j?this.i:a};Vg.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0};Vg.prototype.H=function(){};
230
- function Wg(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.J=b.minBufferTime||0;this.v=c;this.D=e;this.A=null;this.j=new Kg(a,b.presentationTimeline,c,Xg(a,c),f);this.h=new Og(a,function(){a:{var h=g.j;h.A=!0;h.u=!1;h.j=!1;var k=Rg(g.h);h=Yg(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Sg(g.h,h);h=void 0;break a}g.D();h=void 0}return h},Zg(this,d));this.u=(new O(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Rg(g.h),k=g.g.Xb(),l=g.g.bb();3>l-k&&(k=
231
- l-3);h<k&&(h=Yg(g,h),g.i.currentTime=h)}})).ha(.25)}Wg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.u&&(this.u.stop(),this.u=null);this.i=this.h=this.g=this.v=null;this.D=function(){}};Wg.prototype.B=function(a){Sg(this.h,a)};Wg.prototype.l=function(){var a=Rg(this.h);return 0<this.i.readyState&&!this.i.paused?$g(this,a):a};
232
- function Zg(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.Xb():a.g.bb():0>b&&(b=a.g.bb()+b);return ah(a,$g(a,b))}Wg.prototype.H=function(){this.j.Rd()};function ah(a,b){var c=a.g.getDuration();return b>=c?c-a.v.durationBackoff:b}function Yg(a,b){var c=Math.max(a.J,a.v.rebufferingGoal),d=a.v.safeSeekOffset,e=a.g.Xb(),f=a.g.bb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.vc(c),k=a.g.vc(d);c=a.g.vc(c+d);return b>=g?ah(a,b):b>f?f:b<e?Qe(a.i.buffered,k)?k:c:b>=h||Qe(a.i.buffered,b)?b:c}
233
- function $g(a,b){var c=a.g.Xb();if(b<c)return c;c=a.g.bb();return b>c?c:b}function Xg(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new Gg(new Jg(a),b.stallThreshold);Ig(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function Q(a){this.g=a;this.h=null;this.i=0;this.j=!1}p=Q.prototype;p.destroy=function(){Cb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};p.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};p.Tf=function(){this.j=!0};
234
- p.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};p.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.j)for(var b=r(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};
235
- p.cd=function(a){!this.j&&a.length&&(this.g=this.g.filter(function(b){return b.startTime<a[0].startTime}),this.g.push.apply(this.g,ia(a)))};p.Zb=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.cd(a);this.vb(b)};p.vb=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}};
236
- p.kb=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 Fg(a.startTime,b,a.j,a.h,a.g,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd))}};
237
- p.nd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new O(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.ha(a))};Q.prototype[Symbol.iterator]=function(){return this.Vb(0)};Q.prototype.Vb=function(a){a=this.find(a);return null==a?null:new bh(this,a)};function ch(a,b,c){return new Q([new Fg(a,a+b,function(){return c},0,null,null,a,a,a+b)])}J("shaka.media.SegmentIndex",Q);Q.forSingleSegment=ch;Q.prototype.getIteratorForTime=Q.prototype.Vb;
238
- Q.prototype.updateEvery=Q.prototype.nd;Q.prototype.fit=Q.prototype.kb;Q.prototype.evict=Q.prototype.vb;Q.prototype.mergeAndEvict=Q.prototype.Zb;Q.prototype.merge=Q.prototype.cd;Q.prototype.offset=Q.prototype.offset;Q.prototype.get=Q.prototype.get;Q.prototype.find=Q.prototype.find;Q.prototype.markImmutable=Q.prototype.Tf;Q.prototype.release=Q.prototype.release;Q.prototype.destroy=Q.prototype.destroy;function bh(a,b){this.h=a;this.g=b}
239
- bh.prototype.seek=function(a){this.g=(a=this.h.Vb(a))?a.g:Number.MAX_VALUE;return this.next().value};bh.prototype.current=function(){return this.h.get(this.g-1)};bh.prototype.next=function(){var a=this.h.get(this.g++);return{value:a,done:!a}};J("shaka.media.SegmentIterator",bh);bh.prototype.next=bh.prototype.next;bh.prototype.current=bh.prototype.current;bh.prototype.seek=bh.prototype.seek;function dh(){Q.call(this,[]);this.l=[]}pa(dh,Q);p=dh.prototype;
240
- p.clone=function(){var a=new dh;a.l=this.l.slice();return a};p.release=function(){for(var a=r(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};p.find=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};p.get=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};p.offset=function(){};p.cd=function(){};
241
- p.vb=function(){};p.Zb=function(){};p.kb=function(){};p.nd=function(){};J("shaka.media.MetaSegmentIndex",dh);dh.prototype.updateEvery=dh.prototype.nd;dh.prototype.fit=dh.prototype.kb;dh.prototype.mergeAndEvict=dh.prototype.Zb;dh.prototype.evict=dh.prototype.vb;dh.prototype.merge=dh.prototype.cd;dh.prototype.offset=dh.prototype.offset;dh.prototype.get=dh.prototype.get;dh.prototype.find=dh.prototype.find;dh.prototype.release=dh.prototype.release;function eh(a){var b=this;this.g=a;this.j=!1;this.i=this.g.$c();this.h=new O(function(){b.g.He(.25*b.i)})}eh.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};eh.prototype.set=function(a){this.i=a;fh(this)};eh.prototype.Yc=function(){return this.g.Yc()};function fh(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.$c()!=b&&a.g.Zd(b);return}catch(c){}a.h.ha(.25);0!=a.g.$c()&&a.g.Zd(0)};function gh(a){var b=this;this.h=a;this.g=new Set;this.i=(new O(function(){hh(b,!1)})).ha(.25)}gh.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};
242
- function hh(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=a.h.currentTime,f=b,g=r(d.l.g),h=g.next();!h.done;h=g.next()){h=h.value;var k=d.j.get(h),l=e<h.startTime?ih:e>h.endTime?jh:kh;d.j.set(h,l);for(var m=r(d.u),n=m.next();!n.done;n=m.next())n=n.value,n.Mb==k&&n.Lb==l&&n.Ab(h,f)}}};function lh(a){var b=this;this.h=function(){};this.g=new Set;this.j=a;this.i=(new O(function(){for(var c=b.j(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&b.g["delete"](e)})).ha(2)}lh.prototype.release=function(){this.h=function(){};this.g.clear();this.i.stop()};function mh(a,b){a.h=b};function nh(a){var b=this;this.l=a;this.j=new Map;this.g=function(){};this.h=function(){};this.i=function(){};this.u=[{Mb:null,Lb:kh,Ab:function(c,d){return b.g(c,d)}},{Mb:ih,Lb:kh,Ab:function(c,d){return b.g(c,d)}},{Mb:jh,Lb:kh,Ab:function(c,d){return b.g(c,d)}},{Mb:kh,Lb:ih,Ab:function(c,d){return b.h(c,d)}},{Mb:kh,Lb:jh,Ab:function(c,d){return b.h(c,d)}},{Mb:ih,Lb:jh,Ab:function(c,d){return b.i(c,d)}},{Mb:jh,Lb:ih,Ab:function(c,d){return b.i(c,d)}}]}
243
- nh.prototype.release=function(){this.l=null;this.j.clear();this.g=function(){};this.h=function(){};this.i=function(){}};function oh(a,b,c,d){a.g=b;a.h=c;a.i=d}var ih=1,kh=2,jh=3;function ph(a,b,c,d){a=bd(a,d);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function qh(a,b){var c=this;this.G=b;this.F=a;this.v=null;this.j=1;this.i=this.h=null;this.g=new Map;this.u=!1;this.A=null;this.l=!1;this.M=new id(function(){return rh(c)})}qh.prototype.destroy=function(){return this.M.destroy()};function rh(a){var b,c,d,e;return G(function(f){if(1==f.g){b=[];c=r(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,sh(e),b.push(th(e));return t(f,Promise.all(b),2)}a.g.clear();a.G=null;a.F=null;a.v=null;x(f)})}
244
- qh.prototype.configure=function(a){this.v=a;this.A=new Gc({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0},!0)};qh.prototype.start=function(){var a=this;return G(function(b){if(1==b.g)return t(b,uh(a),2);jd(a.M);a.u=!0;x(b)})};
245
- function vh(a,b){var c,d,e,f,g,h;G(function(k){switch(k.g){case 1:return c=Mb,y(k,2),t(k,Lf(a.G.T,c.xa),4);case 4:ua(k,3);break;case 2:if(d=D(k),a.G)a.G.onError(d);case 3:e=vd(b.mimeType,b.codecs);zf(a.G.T,e);f=a.G.T.u;if(g=f.isTextVisible()||a.v.alwaysStreamText)h=wh(b),a.g.set(c.xa,h),xh(a,h,0);x(k)}})}function yh(a){var b=a.g.get("text");b&&(sh(b),th(b)["catch"](function(){}),a.g["delete"]("text"));a.i=null}
246
- function Bh(a,b){var c=a.g.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Ib&&(Ch(a,e,!1,0,!1),c.Ib=d)}else if(d=c.Ib)c.Ib=null,Ch(a,d,!0,0,!1)}}function Dh(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.h=b;a.u&&(b.video&&Ch(a,b.video,c,d,e),b.audio&&Ch(a,b.audio,c,d,e))}function Eh(a,b){a.i=b;a.u&&Ch(a,b,!0,0,!1)}
247
- function Ch(a,b,c,d,e){var f=a.g.get(b.type);f||"text"!=b.type?f&&(f.Ib&&(b.trickModeVideo?(f.Ib=b,b=b.trickModeVideo):f.Ib=null),f.stream!=b||e)&&("text"==b.type&&zf(a.G.T,vd(b.mimeType,b.codecs)),f.stream=b,f.na=null,c&&(f.pc?f.qd=!0:f.ob?(f.Kb=!0,f.Uc=d,f.qd=!0):(sh(f),Fh(a,f,!0,d)["catch"](function(g){if(a.G)a.G.onError(g)}))),Gh(a,f)["catch"](function(g){if(a.G)a.G.onError(g)})):vh(a,b)}
248
- function Gh(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.Ga)return e["return"]();c=b.stream;d=b.Ga;return c.segmentIndex?e.C(2):t(e,c.createSegmentIndex(),2)}if(b.Ga!=d||b.stream!=c)return e["return"]();var f=a.G.Zc();var g=Ef(a.G.T,b.type),h=b.stream.segmentIndex.find(b.Ma?b.Ma.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.g?k.g-k.h:null:null;k&&!h&&(h=(k.endTime-k.startTime)*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.g?k.g-k.h:null)||0),k=a.G.getBandwidthEstimate(),f=8*h/
249
- k<(g||0)-f-Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal)||b.Ga.h.g>h?!0:!1):f=!1;f&&b.Ga.abort();x(e)})}function Hh(a,b){b.pc||b.Kb||(b.ob?(b.Kb=!0,b.Uc=0):null==Cf(a.G.T,b.type)?null==b.gb&&xh(a,b,0):(sh(b),Fh(a,b,!1,0)["catch"](function(c){if(a.G)a.G.onError(c)})))}
250
- function uh(a){var b,c,d,e,f,g,h,k,l,m;return G(function(n){if(1==n.g){b=Mb;if(!a.h)throw new M(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.rb,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.$a,a.h.video),d.add(a.h.video));a.i&&(c.set(b.xa,a.i),d.add(a.i));e=a.G.T;f=a.v.forceTransmuxTS;return t(n,e.init(c,f),2)}jd(a.M);var q=a.F.presentationTimeline.getDuration();Infinity>q?a.G.T.Wa(q):a.G.T.Wa(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)||
251
- (m=wh(l),a.g.set(k,m),xh(a,m,0));x(n)})}function wh(a){return{stream:a,type:a.type,na:null,Ma:null,bd:null,Kd:null,Jd:null,Id:null,Ib:null,endOfStream:!1,ob:!1,gb:null,Kb:!1,Uc:0,qd:!1,pc:!1,Td:!1,yc:!1,Ga:null}}
252
- qh.prototype.Dc=function(a){var b=this,c,d,e,f,g;return G(function(h){switch(h.g){case 1:jd(b.M);if(a.ob||null==a.gb||a.pc)return h["return"]();a.gb=null;if(!a.Kb){h.C(2);break}return t(h,Fh(b,a,a.qd,a.Uc),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.C(4);break}c=a.stream;return t(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.gb&&xh(b,a,0),h["return"]();case 4:y(h,6);d=Ih(b,a);null!=d&&(xh(b,a,d),a.yc=!1);ua(h,7);break;case 6:return e=D(h),t(h,Jh(b,e),
253
- 8);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.u||!f.every(function(k){return k.endOfStream})){h.C(0);break}return t(h,b.G.T.endOfStream(),10);case 10:jd(b.M),g=b.G.T.getDuration(),0!=g&&g<b.F.presentationTimeline.getDuration()&&b.F.presentationTimeline.Wa(g),x(h)}})};
254
- function Ih(a,b){if(Kh(b))return Jf(a.G.T,b.stream.originalId||""),null;"text"==b.type&&Kf(a.G.T);var c=a.G.Zc(),d=b.Ma?b.Ma.endTime:c,e=Ff(a.G.T,b.type,c),f=Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal,a.v.bufferingGoal)*a.j;if(d>=a.F.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.g.get("text"))&&Kh(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return.5;e=Ef(a.G.T,b.type);e=Lh(a,b,c,e);if(!e||!Mh(a,e))return 1;f=Infinity;var g=Array.from(a.g.values());
255
- g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Kh(h)||h.na&&!h.na.current()||(f=Math.min(f,h.Ma?h.Ma.endTime:c));if(d>=f+a.F.presentationTimeline.g)return 1;Nh(a,b,c,e)["catch"](function(){});return null}
256
- function Lh(a,b,c,d){if(b.na)return b.na.current();if(b.Ma||d)return b.na=b.stream.segmentIndex.Vb(b.Ma?b.Ma.endTime:d),b.na&&b.na.next().value;b.na=b.stream.segmentIndex.Vb(Math.max(c-a.v.inaccurateManifestTolerance,0));d=b.na&&b.na.next().value;d&&Mh(a,d)||(b.na=b.stream.segmentIndex.Vb(c),d=b.na&&b.na.next().value);return d}function Mh(a,b){var c=a.F.presentationTimeline,d=c.mb();return b.endTime<c.cb()||b.startTime>d?!1:!0}
257
- function Nh(a,b,c,d){var e,f,g,h,k,l,m,n;return G(function(q){switch(q.g){case 1:return e=Mb,f=b.stream,g=b.na,b.ob=!0,y(q,2),t(q,Oh(a,b,d),4);case 4:jd(a.M);if(a.l)return q["return"]();h=Ph(a,b,d);return t(q,h,5);case 5:return k=q.h,jd(a.M),a.l?q["return"]():b.Kb?(b.ob=!1,xh(a,b,0),q["return"]()):t(q,Qh(a,b,c,f,d,k),6);case 6:jd(a.M);if(a.l)return q["return"]();b.Ma=d;g.next();b.ob=!1;b.Td=!1;l=a.G.T.Xc();m=l[b.type];JSON.stringify(m);b.Kb||a.G.Rd();xh(a,b,0);ua(q,0);break;case 2:n=D(q);jd(a.M,n);
258
- if(a.l)return q["return"]();b.ob=!1;if(7001==n.code)b.ob=!1,b.gb=null,xh(a,b,0),q.C(0);else if(b.type==e.xa&&a.v.ignoreTextStreamFailures)a.g["delete"](e.xa),q.C(0);else if(3017==n.code)Rh(a,b,n),q.C(0);else return b.yc=!0,n.severity=2,t(q,Jh(a,n),0)}})}function Rh(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.Td})){var d=Math.round(100*a.j);if(20<d)a.j-=.2;else if(4<d)a.j-=.04;else{b.yc=!0;a.l=!0;a.G.onError(c);return}b.Td=!0}xh(a,b,4)}
259
- function Oh(a,b,c){var d,e,f,g,h,k,l;return G(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Kd||e!=b.Jd||f!=b.Id)h=function(){var n;return G(function(q){if(1==q.g)return y(q,2),b.Jd=e,b.Id=f,b.Kd=g,t(q,Mf(a.G.T,b.type,g,e,f),4);if(2!=q.g)return ua(q,0);n=D(q);b.Jd=null;b.Id=null;b.Kd=null;throw n;})},d.push(h());!Eg(c.i,b.bd)&&(b.bd=c.i)&&(k=Ph(a,b,c.i),l=function(){var n,q,u;return G(function(v){switch(v.g){case 1:return y(v,2),t(v,k,4);
260
- case 4:return n=v.h,jd(a.M),q=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,t(v,Gf(a.G.T,b.type,n,null,null,q),5);case 5:ua(v,0);break;case 2:throw u=D(v),b.bd=null,u;}})},d.push(l()));return t(m,Promise.all(d),0)})}
261
- function Qh(a,b,c,d,e,f){var g;return G(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length&&(new Ae).ba("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Fc();var n=k.reader.Fc();var q=k.reader.S();var u=k.reader.S();var v=k.reader.S();var A=k.reader.S();var w=e.startTime+u/q}else q=k.reader.S(),w=k.reader.Gb()/q+e.timestampOffset,u=w-e.startTime,v=k.reader.S(),A=k.reader.S(),m=k.reader.Fc(),n=k.reader.Fc();
262
- k=k.reader.Fb(k.reader.X.byteLength-k.reader.L);l.includes(m)&&("urn:mpeg:dash:event:2012"==m?a.G.Yf():(l=new L(Sh,{detail:{startTime:w,endTime:w+v/q,schemeIdUri:m,value:n,timescale:q,presentationTimeDelta:u,eventDuration:v,id:A,messageData:k}}),a.G.onEvent(l)))}).parse(f),t(h,Th(a,b,c),2);if(3!=h.g)return jd(a.M),t(h,Gf(a.G.T,b.type,f,e.startTime,e.endTime,g),3);jd(a.M);x(h)})}
263
- function Th(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.v.bufferBehind,a.F.presentationTimeline.g);e=Cf(a.G.T,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():t(h,a.G.T.remove(b.type,e,e+g),2)}jd(a.M);x(h)})}function Kh(a){return a&&"text"==a.type&&"application/cea-608"==a.stream.mimeType}
264
- function Ph(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return d=hd,e=ph(c.La(),c.h,c.g,a.v.retryParameters),f=a.G.$b.request(d,e),b.Ga=f,t(h,f.promise,2);g=h.h;b.Ga=null;return h["return"](g.data)})}
265
- function Fh(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.Kb=!1,b.qd=!1,b.Uc=0,b.pc=!0,b.Ma=null,b.bd=null,b.na=null,d?(e=a.G.Zc(),f=a.G.T.getDuration(),t(g,a.G.T.remove(b.type,e+d,f),3)):t(g,Lf(a.G.T,b.type),4);if(3!=g.g)return jd(a.M),c?t(g,a.G.T.flush(b.type),3):g.C(3);jd(a.M);b.pc=!1;b.endOfStream=!1;xh(a,b,0);x(g)})}
266
- function xh(a,b,c){var d=b.type;if("text"!=d||a.g.has(d))b.gb=(new Fc(function(){var e;return G(function(f){if(1==f.g)return y(f,2),t(f,a.Dc(b),4);if(2!=f.g)return ua(f,0);e=D(f);if(a.G)a.G.onError(e);x(f)})})).U(c)}function sh(a){null!=a.gb&&(a.gb.stop(),a.gb=null)}function th(a){return G(function(b){return a.Ga?t(b,a.Ga.abort(),0):b.C(0)})}function Jh(a,b){return G(function(c){if(1==c.g)return t(c,Ic(a.A),2);jd(a.M);a.G.onError(b);b.handled||a.v.failureCallback(b);x(c)})};function Uh(a,b){var c=Vh(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.u=[];this.h=this.g=null;this.B=Promise.resolve().then(function(){return Wh(d)});this.M=new id(function(){return Xh(d)})}Uh.prototype.destroy=function(){return this.M.destroy()};function Xh(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Yh(a),t(e,a.B,2);a.g&&a.g.Ua.Eb();b=r(a.u);for(c=b.next();!c.done;c=b.next())d=c.value,d.Ua.Eb();a.g=null;a.u=[];a.j=null;x(e)})}
267
- function Zh(a,b){var c={bc:function(){},dd:function(){},Eb:function(){},onError:function(){},fd:function(){},Zg:function(){}};a.u.push({create:b,Ua:c});a.h&&a.h.abort();Yh(a);return c}
268
- function Wh(a){return G(function(b){if(a.M.g)b=b.C(0);else{if(0==a.u.length||a.g&&!a.g.zb)var c=!1;else{a.g&&(a.g.Ua.Eb(),a.g=null);c=a.u.shift();var d=c.create(a.l);d?(c.Ua.bc(),a.g={node:d.node,payload:d.payload,zb:d.zb,Ua:c.Ua}):c.Ua.fd();c=!0}c?c=Promise.resolve():a.g?c=$h(a):(a.j.Xf(a.i),a.A=new kc,c=a.A);b=t(b,c,1)}return b})}
269
- function $h(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Ef(a.i,a.l,a.g.node,a.g.payload),y(d,2),a.h=a.j.kf(a.i,a.l,a.g.payload),t(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Ua.dd(),a.g=null);ua(d,0);break;case 2:b=D(d);if(7001==b.code)a.g.Ua.Eb();else a.g.Ua.onError(b);a.g=null;a.h=null;c=a;return t(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,x(d)}})}function Yh(a){a.A&&(a.A.resolve(),a.A=null)};function ai(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}p=ai.prototype;p.remove=function(a,b){if(!this.g)return!1;bi(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
270
- p.append=function(a){function b(g){return g.spacer?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):g.payload}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):[];var e={};c=r(c);for(var f=c.next();!f.done;e={Nb:e.Nb},f=c.next())e.Nb=f.value,a.some(function(g){return function(h){return h.startTime==g.Nb.startTime&&h.endTime==g.Nb.endTime&&h.text==g.Nb.payload?!0:!1}}(e))||(f=ci(e.Nb))&&
271
- d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};p.destroy=function(){this.g&&(bi(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};p.isTextVisible=function(){return"showing"==this.g.mode};
203
+ function Yf(a){return{id:a.id,active:!1,type:"text",bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:a.mimeType,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:a.originalId}}
204
+ function Zf(a){a.__shaka_id||(a.__shaka_id=$f++);return a.__shaka_id}function ag(a){var b=bg(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]);return b}
205
+ function bg(a){return{id:Zf(a),active:!1,type:"",bandwidth:0,language:Mb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}}
206
+ function cg(a){return a.allowedByApplication&&a.allowedByKeySystem}function dg(a){return a.filter(function(b){return cg(b)})}
207
+ function Pf(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
208
+ function eg(a,b,c){var d=a,e=a.filter(function(h){return h.primary});e.length&&(d=e);var f=d.length?d[0].language:"";d=d.filter(function(h){return h.language==f});if(b){var g=Tb(Mb(b),a.map(function(h){return h.language}));g&&(d=a.filter(function(h){return Mb(h.language)==g}))}if(c){if(a=fg(d,c),a.length)return a}else if(a=d.filter(function(h){return 0==h.roles.length}),a.length)return a;a=d.map(function(h){return h.roles}).reduce(Cb,[]);return a.length?fg(d,a[0]):d}
209
+ function fg(a,b){return a.filter(function(c){return c.roles.includes(b)})}var $f=0;function gg(){this.u=null;this.i=!1;this.h=new ac;this.g=[];this.l=1;this.A=!1;this.v=this.j=null}p=gg.prototype;p.stop=function(){this.u=null;this.i=!1;this.g=[];this.l=1;this.j=null};p.init=function(a){this.u=a};
210
+ p.chooseVariant=function(){var a=hg(this.v.restrictions,this.g),b=this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);this.g.length&&!a.length&&(a=hg(null,this.g),a=[a[0]]);var c=a[0]||null;a=r(hb(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.item;var f=isNaN(this.l)?1:Math.abs(this.l);e=f*(e.next||{bandwidth:Infinity}).bandwidth/this.v.bandwidthUpgradeTarget;b>=f*d.bandwidth/this.v.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.j=Date.now();return c};
211
+ p.enable=function(){this.i=!0};p.disable=function(){this.i=!1};p.segmentDownloaded=function(a,b){var c=this.h;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;Zb(c.h,e,d);Zb(c.i,e,d)}if(null!=this.j&&this.i)a:{if(!this.A){if(!(128E3<=this.h.g))break a;this.A=!0}else if(Date.now()-this.j<1E3*this.v.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate);c&&this.u(c)}};p.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(this.v.defaultBandwidthEstimate)};
212
+ p.setVariants=function(a){this.g=a};p.playbackRateChanged=function(a){this.l=a};p.configure=function(a){this.v=a};function hg(a,b){a&&(b=b.filter(function(c){return Uf(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}L("shaka.abr.SimpleAbrManager",gg);gg.prototype.configure=gg.prototype.configure;gg.prototype.playbackRateChanged=gg.prototype.playbackRateChanged;gg.prototype.setVariants=gg.prototype.setVariants;
213
+ gg.prototype.getBandwidthEstimate=gg.prototype.getBandwidthEstimate;gg.prototype.segmentDownloaded=gg.prototype.segmentDownloaded;gg.prototype.disable=gg.prototype.disable;gg.prototype.enable=gg.prototype.enable;gg.prototype.chooseVariant=gg.prototype.chooseVariant;gg.prototype.init=gg.prototype.init;gg.prototype.stop=gg.prototype.stop;function ig(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=r(b),d=c.next();!d.done;d=c.next())this.add(d.value)}ig.prototype.add=function(a){return jg(this.h,a)?(this.g.add(a),!0):!1};function jg(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&&kg(c,d)&&lg(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(kg(c,d)&&lg(c.roles,d.roles)));return c?!1:!0}
214
+ ig.prototype.values=function(){return this.g.values()};function kg(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(g){return xd(g)}),d=b.codecs.split(",").map(function(g){return xd(g)});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=r(fb(c.length)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0}
215
+ function lg(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=r(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function mg(a){this.g=a;this.h=new ng(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}mg.prototype.create=function(a){var b=this,c=a.filter(function(d){return jg(b.g,d)});return c.length?new ig(c[0],c):this.h.create(a)};function ng(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
216
+ ng.prototype.create=function(a){var b=[];b=og(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=pg(b,this.j);a.length&&(b=a);this.g&&(a=Pf(b,this.g),a.length&&(b=a));this.h&&(a=qg(b,this.h),a.length&&(b=a));a=new ig(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,jg(a.h,c)&&a.add(c);return a};function og(a,b){var c=Mb(b),d=Tb(c,a.map(function(e){return Sb(e)}));return d?a.filter(function(e){return d==Sb(e)}):[]}
217
+ function pg(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function qg(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function rg(){this.g=sg;this.h=(new Map).set(sg,2).set(tg,1)}function ug(a,b,c){a.h.set(sg,c).set(tg,b)}var tg=0,sg=1;function vg(){}function wg(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){if(d&&(e=xg[d.toLowerCase()]))return k["return"](e);if(f=yg(a))if(g=zg[f])return k["return"](g);return d?k.C(2):t(k,Ag(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=xg[d]))return k["return"](h);throw new N(2,4,4E3,a);})}
218
+ function Ag(a,b,c){var d,e,f;return H(function(g){if(1==g.g)return d=$c([a],c),d.method="HEAD",t(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function yg(a){a=(new kb(a)).Ia.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}L("shaka.media.ManifestParser",vg);vg.unregisterParserByMime=function(a){delete xg[a]};vg.registerParserByMime=function(a,b){xg[a]=b};
219
+ vg.registerParserByExtension=function(a,b){zg[a]=b};var xg={},zg={};function Bg(a,b,c){this.Ma=a;this.h=b;this.g=c}Bg.prototype.yc=function(){return this.h};Bg.prototype.tc=function(){return this.g};function Cg(a,b){return a&&b?a.yc()==b.yc()&&a.tc()==b.tc()&&Tc(a.Ma(),b.Ma()):a==b}L("shaka.media.InitSegmentReference",Bg);Bg.prototype.getEndByte=Bg.prototype.tc;Bg.prototype.getStartByte=Bg.prototype.yc;
220
+ function Dg(a,b,c,d,e,f,g,h,k){this.startTime=a;this.endTime=b;this.j=c;this.h=d;this.g=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k}p=Dg.prototype;p.Ma=function(){return this.j()};p.Lf=function(){return this.startTime};p.wf=function(){return this.endTime};p.yc=function(){return this.h};p.tc=function(){return this.g};L("shaka.media.SegmentReference",Dg);Dg.prototype.getEndByte=Dg.prototype.tc;Dg.prototype.getStartByte=Dg.prototype.yc;Dg.prototype.getEndTime=Dg.prototype.wf;
221
+ Dg.prototype.getStartTime=Dg.prototype.Lf;Dg.prototype.getUris=Dg.prototype.Ma;function Q(a,b,c){this.j=a;this.kd=b;this.u=this.l=Infinity;this.g=1;this.h=this.i=null;this.A=0;this.B=!0;this.D=0;this.H=void 0===c?!0:c}p=Q.prototype;p.getDuration=function(){return this.l};p.Ef=function(){return this.g};p.Ya=function(a){this.l=a};p.Jf=function(){return this.j};p.Te=function(a){this.A=a};p.Lc=function(a){this.B=a};p.ce=function(a){this.u=a};p.pg=function(a){this.kd=a};p.vf=function(){return this.kd};
222
+ p.cc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.Qd(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.j&&this.H&&(this.j=(Date.now()+this.A)/1E3-this.h-this.g)}};p.Qd=function(a){this.i=null==this.i?a:Math.min(this.i,a)};p.Pd=function(a){this.g=Math.max(this.g,a)};p.offset=function(a){null!=this.i&&(this.i+=a);null!=this.h&&(this.h+=a)};p.W=function(){return Infinity==this.l&&!this.B};
223
+ p.Db=function(){return Infinity!=this.l&&!this.B};p.fb=function(){return Math.max(this.D,this.pb()-this.u)};p.We=function(a){this.D=a};p.pb=function(){return this.W()||this.Db()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.j),this.l):this.h||this.l};p.xc=function(a){var b=Math.max(this.i,this.D);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.pb()-this.u+a,this.eb()))};p.Zb=function(){return this.xc(0)};
224
+ p.eb=function(){return Math.max(0,this.pb()-(this.W()||this.Db()?this.kd:0))};p.$e=function(){return null==this.j||null!=this.h&&this.H?!1:!0};L("shaka.media.PresentationTimeline",Q);Q.prototype.usingPresentationStartTime=Q.prototype.$e;Q.prototype.getSeekRangeEnd=Q.prototype.eb;Q.prototype.getSeekRangeStart=Q.prototype.Zb;Q.prototype.getSafeSeekRangeStart=Q.prototype.xc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.pb;Q.prototype.setUserSeekStart=Q.prototype.We;
225
+ Q.prototype.getSegmentAvailabilityStart=Q.prototype.fb;Q.prototype.isInProgress=Q.prototype.Db;Q.prototype.isLive=Q.prototype.W;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.Pd;Q.prototype.notifyMinSegmentStartTime=Q.prototype.Qd;Q.prototype.notifySegments=Q.prototype.cc;Q.prototype.getDelay=Q.prototype.vf;Q.prototype.setDelay=Q.prototype.pg;Q.prototype.setSegmentAvailabilityDuration=Q.prototype.ce;Q.prototype.setStatic=Q.prototype.Lc;
226
+ Q.prototype.setClockOffset=Q.prototype.Te;Q.prototype.getPresentationStartTime=Q.prototype.Jf;Q.prototype.setDuration=Q.prototype.Ya;Q.prototype.getMaxSegmentDuration=Q.prototype.Ef;Q.prototype.getDuration=Q.prototype.getDuration;function Eg(a,b){this.j=a;this.u=Fg(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.A=b;this.i=function(){}}Eg.prototype.release=function(){this.j=null;this.i=function(){}};function Gg(a,b){a.i=b}function Hg(a){this.g=a}function Fg(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Qe(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 Ig(a,b,c,d,e){var f=this;this.g=a;this.D=b;this.v=c;this.B=e;this.h=new jd;this.A=!1;this.H=a.readyState;this.j=!1;this.i=d;this.u=!1;this.h.m(a,"waiting",function(){return Jg(f)});this.l=(new O(function(){Jg(f)})).ia(.25)}Ig.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.l&&(this.l.stop(),this.l=null);this.i&&(this.i.release(),this.i=null);this.g=this.D=this.B=null};Ig.prototype.Td=function(){this.u=!0;Jg(this)};
227
+ function Jg(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.A)return}else a.A=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.H&&(a.j=!1,a.H=a.g.readyState);var b;if(!(b=!a.i)){b=a.i;var c=b.j,d=Fg(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.l=f,b.g=e,b.u=d,b.h=!1;e=f-b.l;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){e=a.v.smallGapLimit;var g=a.g.currentTime;b=a.g.buffered;c=Re(b,g);if(!(null==c||0==c&&!a.u||(d=b.start(c),
228
+ d>=a.D.eb()))){var h=d-g;e=h<=e;f=!1;.001>h||(e||a.j||(a.j=!0,g=(new Map).set("currentTime",g).set("gapSize",h),g=new M("largegap",g),g.cancelable=!0,a.B(g),a.v.jumpLargeGaps&&!g.defaultPrevented&&(f=!0)),!e&&!f)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function Kg(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Lg.value().get(b),c.Ga(a,b,d))}var Lg=new jc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Mg(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.u=!1;this.h=new jd;this.i=new Ng(a);Kg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Og(d,d.j)})}Mg.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 Pg(a){return a.u?a.g.currentTime:a.j}function Qg(a,b){0<a.g.readyState?Rg(a.i,b):Kg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Og(a,a.j)})}
229
+ function Og(a,b){.001>Math.abs(a.g.currentTime-b)?Sg(a):(a.h.Ga(a.g,"seeking",function(){Sg(a)}),Rg(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Sg(a){a.u=!0;a.h.m(a.g,"seeking",function(){return a.l()})}function Ng(a){var b=this;this.h=a;this.u=10;this.l=this.j=this.i=0;this.g=new O(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ng.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
230
+ function Rg(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.u;a.h.currentTime=b;a.g.ia(.1)};function Tg(a){function b(){null==c.i||0==c.i?c.j=!0:(c.h.Ga(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.i))}var c=this;this.g=a;this.j=!1;this.i=null;this.h=new jd;Kg(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){b()})}Tg.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.g=null};Tg.prototype.B=function(a){this.i=this.j?this.i:a};Tg.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0};Tg.prototype.H=function(){};
231
+ function Ug(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.J=b.minBufferTime||0;this.v=c;this.D=e;this.A=null;this.j=new Ig(a,b.presentationTimeline,c,Vg(a,c),f);this.h=new Mg(a,function(){a:{var h=g.j;h.A=!0;h.u=!1;h.j=!1;var k=Pg(g.h);h=Wg(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Qg(g.h,h);h=void 0;break a}g.D();h=void 0}return h},Xg(this,d));this.u=(new O(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Pg(g.h),k=g.g.Zb(),l=g.g.eb();3>l-k&&(k=
232
+ l-3);h<k&&(h=Wg(g,h),g.i.currentTime=h)}})).ia(.25)}Ug.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.u&&(this.u.stop(),this.u=null);this.i=this.h=this.g=this.v=null;this.D=function(){}};Ug.prototype.B=function(a){Qg(this.h,a)};Ug.prototype.l=function(){var a=Pg(this.h);return 0<this.i.readyState&&!this.i.paused?Yg(this,a):a};
233
+ function Xg(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.Zb():a.g.eb():0>b&&(b=a.g.eb()+b);return Zg(a,Yg(a,b))}Ug.prototype.H=function(){this.j.Td()};function Zg(a,b){var c=a.g.getDuration();return b>=c?c-a.v.durationBackoff:b}function Wg(a,b){var c=Math.max(a.J,a.v.rebufferingGoal),d=a.v.safeSeekOffset,e=a.g.Zb(),f=a.g.eb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.xc(c),k=a.g.xc(d);c=a.g.xc(c+d);return b>=g?Zg(a,b):b>f?f:b<e?Oe(a.i.buffered,k)?k:c:b>=h||Oe(a.i.buffered,b)?b:c}
234
+ function Yg(a,b){var c=a.g.Zb();if(b<c)return c;c=a.g.eb();return b>c?c:b}function Vg(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new Eg(new Hg(a),b.stallThreshold);Gg(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function R(a){this.R=a;this.g=null;this.h=0;this.i=!1}p=R.prototype;p.destroy=function(){yb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};p.release=function(){this.i||(this.R=[],this.g&&this.g.stop(),this.g=null)};p.Vf=function(){this.i=!0};
235
+ p.find=function(a){for(var b=this.R.length-1,c=b;0<=c;--c){var d=this.R[c],e=c<b?this.R[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.R.length&&a<this.R[0].startTime?this.h:null};p.get=function(a){if(0==this.R.length)return null;a-=this.h;return 0>a||a>=this.R.length?null:this.R[a]};p.offset=function(a){if(!this.i)for(var b=r(this.R),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};
236
+ p.ed=function(a){!this.i&&a.length&&(this.R=this.R.filter(function(b){return b.startTime<a[0].startTime}),this.R.push.apply(this.R,ia(a)))};p.ac=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.R.length||d.endTime>c.R[0].startTime)});this.ed(a);this.xb(b)};p.xb=function(a){if(!this.i){var b=this.R.length;this.R=this.R.filter(function(c){return c.endTime>a});this.h+=b-this.R.length}};
237
+ p.ob=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.R.length;)if(this.R[this.R.length-1].startTime>=b)this.R.pop();else break;for(;this.R.length;)if(this.R[0].endTime<=a)this.R.shift(),c||this.h++;else break;0!=this.R.length&&(a=this.R[this.R.length-1],this.R[this.R.length-1]=new Dg(a.startTime,b,a.j,a.h,a.g,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd))}};
238
+ p.pd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new O(function(){var d=b();d?c.R.push.apply(c.R,ia(d)):(c.g.stop(),c.g=null)}),this.g.ia(a))};R.prototype[Symbol.iterator]=function(){return this.Xb(0)};R.prototype.Xb=function(a){a=this.find(a);return null==a?null:new $g(this,a)};function ah(a,b,c){return new R([new Dg(a,a+b,function(){return c},0,null,null,a,a,a+b)])}L("shaka.media.SegmentIndex",R);R.forSingleSegment=ah;R.prototype.getIteratorForTime=R.prototype.Xb;
239
+ R.prototype.updateEvery=R.prototype.pd;R.prototype.fit=R.prototype.ob;R.prototype.evict=R.prototype.xb;R.prototype.mergeAndEvict=R.prototype.ac;R.prototype.merge=R.prototype.ed;R.prototype.offset=R.prototype.offset;R.prototype.get=R.prototype.get;R.prototype.find=R.prototype.find;R.prototype.markImmutable=R.prototype.Vf;R.prototype.release=R.prototype.release;R.prototype.destroy=R.prototype.destroy;function $g(a,b){this.h=a;this.g=b}
240
+ $g.prototype.seek=function(a){this.g=(a=this.h.Xb(a))?a.g:Number.MAX_VALUE;return this.next().value};$g.prototype.current=function(){return this.h.get(this.g-1)};$g.prototype.next=function(){var a=this.h.get(this.g++);return{value:a,done:!a}};L("shaka.media.SegmentIterator",$g);$g.prototype.next=$g.prototype.next;$g.prototype.current=$g.prototype.current;$g.prototype.seek=$g.prototype.seek;function bh(){R.call(this,[]);this.j=[]}pa(bh,R);p=bh.prototype;
241
+ p.clone=function(){var a=new bh;a.j=this.j.slice();return a};p.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};p.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.R.length}return null};p.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.R.length}return null};p.offset=function(){};p.ed=function(){};
242
+ p.xb=function(){};p.ac=function(){};p.ob=function(){};p.pd=function(){};L("shaka.media.MetaSegmentIndex",bh);bh.prototype.updateEvery=bh.prototype.pd;bh.prototype.fit=bh.prototype.ob;bh.prototype.mergeAndEvict=bh.prototype.ac;bh.prototype.evict=bh.prototype.xb;bh.prototype.merge=bh.prototype.ed;bh.prototype.offset=bh.prototype.offset;bh.prototype.get=bh.prototype.get;bh.prototype.find=bh.prototype.find;bh.prototype.release=bh.prototype.release;function ch(a){var b=this;this.g=a;this.j=!1;this.i=this.g.cd();this.h=new O(function(){b.g.Je(.25*b.i)})}ch.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};ch.prototype.set=function(a){this.i=a;dh(this)};ch.prototype.$c=function(){return this.g.$c()};function dh(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.cd()!=b&&a.g.ae(b);return}catch(c){}a.h.ia(.25);0!=a.g.cd()&&a.g.ae(0)};function eh(a){var b=this;this.h=a;this.g=new Set;this.i=(new O(function(){fh(b,!1)})).ia(.25)}eh.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};
243
+ function fh(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=a.h.currentTime,f=b,g=r(d.l.g),h=g.next();!h.done;h=g.next()){h=h.value;var k=d.j.get(h),l=e<h.startTime?gh:e>h.endTime?hh:ih;d.j.set(h,l);for(var m=r(d.u),n=m.next();!n.done;n=m.next())n=n.value,n.Ob==k&&n.Nb==l&&n.Cb(h,f)}}};function jh(a){var b=this;this.h=function(){};this.g=new Set;this.j=a;this.i=(new O(function(){for(var c=b.j(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&b.g["delete"](e)})).ia(2)}jh.prototype.release=function(){this.h=function(){};this.g.clear();this.i.stop()};function kh(a,b){a.h=b};function lh(a){var b=this;this.l=a;this.j=new Map;this.g=function(){};this.h=function(){};this.i=function(){};this.u=[{Ob:null,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:gh,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:hh,Nb:ih,Cb:function(c,d){return b.g(c,d)}},{Ob:ih,Nb:gh,Cb:function(c,d){return b.h(c,d)}},{Ob:ih,Nb:hh,Cb:function(c,d){return b.h(c,d)}},{Ob:gh,Nb:hh,Cb:function(c,d){return b.i(c,d)}},{Ob:hh,Nb:gh,Cb:function(c,d){return b.i(c,d)}}]}
244
+ lh.prototype.release=function(){this.l=null;this.j.clear();this.g=function(){};this.h=function(){};this.i=function(){}};function mh(a,b,c,d){a.g=b;a.h=c;a.i=d}var gh=1,ih=2,hh=3;function nh(a,b,c,d){a=$c(a,d);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function oh(a,b){var c=this;this.G=b;this.F=a;this.v=null;this.j=1;this.i=this.h=null;this.g=new Map;this.u=!1;this.A=null;this.l=!1;this.M=new hd(function(){return ph(c)})}oh.prototype.destroy=function(){return this.M.destroy()};function ph(a){var b,c,d,e;return H(function(f){if(1==f.g){b=[];c=r(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,qh(e),b.push(rh(e));return t(f,Promise.all(b),2)}a.g.clear();a.G=null;a.F=null;a.v=null;x(f)})}
245
+ oh.prototype.configure=function(a){this.v=a;this.A=new Ec({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0},!0)};oh.prototype.start=function(){var a=this;return H(function(b){if(1==b.g)return t(b,sh(a),2);id(a.M);a.u=!0;x(b)})};
246
+ function th(a,b){var c,d,e,f,g,h;H(function(k){switch(k.g){case 1:return c=Ib,y(k,2),t(k,Jf(a.G.U,c.ya),4);case 4:ua(k,3);break;case 2:if(d=C(k),a.G)a.G.onError(d);case 3:e=ud(b.mimeType,b.codecs);xf(a.G.U,e);f=a.G.U.u;if(g=f.isTextVisible()||a.v.alwaysStreamText)h=uh(b),a.g.set(c.ya,h),vh(a,h,0);x(k)}})}function zh(a){var b=a.g.get("text");b&&(qh(b),rh(b)["catch"](function(){}),a.g["delete"]("text"));a.i=null}
247
+ function Ah(a,b){var c=a.g.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Kb&&(Bh(a,e,!1,0,!1),c.Kb=d)}else if(d=c.Kb)c.Kb=null,Bh(a,d,!0,0,!1)}}function Ch(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.h=b;a.u&&(b.video&&Bh(a,b.video,c,d,e),b.audio&&Bh(a,b.audio,c,d,e))}function Dh(a,b){a.i=b;a.u&&Bh(a,b,!0,0,!1)}
248
+ function Bh(a,b,c,d,e){var f=a.g.get(b.type);f||"text"!=b.type?f&&(f.Kb&&(b.trickModeVideo?(f.Kb=b,b=b.trickModeVideo):f.Kb=null),f.stream!=b||e)&&("text"==b.type&&xf(a.G.U,ud(b.mimeType,b.codecs)),f.stream=b,f.oa=null,c&&(f.rc?f.sd=!0:f.qb?(f.Mb=!0,f.Wc=d,f.sd=!0):(qh(f),Eh(a,f,!0,d)["catch"](function(g){if(a.G)a.G.onError(g)}))),Fh(a,f)["catch"](function(g){if(a.G)a.G.onError(g)})):th(a,b)}
249
+ function Fh(a,b){var c,d;return H(function(e){if(1==e.g){if(!b.Ha)return e["return"]();c=b.stream;d=b.Ha;return c.segmentIndex?e.C(2):t(e,c.createSegmentIndex(),2)}if(b.Ha!=d||b.stream!=c)return e["return"]();var f=a.G.bd();var g=Cf(a.G.U,b.type),h=b.stream.segmentIndex.find(b.Na?b.Na.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.g?k.g-k.h:null:null;k&&!h&&(h=(k.endTime-k.startTime)*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.g?k.g-k.h:null)||0),k=a.G.getBandwidthEstimate(),f=8*h/
250
+ k<(g||0)-f-Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal)||b.Ha.h.g>h?!0:!1):f=!1;f&&b.Ha.abort();x(e)})}function Gh(a,b){b.rc||b.Mb||(b.qb?(b.Mb=!0,b.Wc=0):null==Af(a.G.U,b.type)?null==b.ib&&vh(a,b,0):(qh(b),Eh(a,b,!1,0)["catch"](function(c){if(a.G)a.G.onError(c)})))}
251
+ function sh(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){if(1==n.g){b=Ib;if(!a.h)throw new N(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.tb,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.bb,a.h.video),d.add(a.h.video));a.i&&(c.set(b.ya,a.i),d.add(a.i));e=a.G.U;f=a.v.forceTransmuxTS;return t(n,e.init(c,f),2)}id(a.M);var q=a.F.presentationTimeline.getDuration();Infinity>q?a.G.U.Ya(q):a.G.U.Ya(Math.pow(2,32));g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)||
252
+ (m=uh(l),a.g.set(k,m),vh(a,m,0));x(n)})}function uh(a){return{stream:a,type:a.type,oa:null,Na:null,dd:null,Md:null,Ld:null,Kd:null,Kb:null,endOfStream:!1,qb:!1,ib:null,Mb:!1,Wc:0,sd:!1,rc:!1,Vd:!1,Ac:!1,Ha:null}}
253
+ oh.prototype.Fc=function(a){var b=this,c,d,e,f,g;return H(function(h){switch(h.g){case 1:id(b.M);if(a.qb||null==a.ib||a.rc)return h["return"]();a.ib=null;if(!a.Mb){h.C(2);break}return t(h,Eh(b,a,a.sd,a.Wc),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.C(4);break}c=a.stream;return t(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.ib&&vh(b,a,0),h["return"]();case 4:y(h,6);d=Hh(b,a);null!=d&&(vh(b,a,d),a.Ac=!1);ua(h,7);break;case 6:return e=C(h),t(h,Ih(b,e),
254
+ 8);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.u||!f.every(function(k){return k.endOfStream})){h.C(0);break}return t(h,b.G.U.endOfStream(),10);case 10:id(b.M),g=b.G.U.getDuration(),0!=g&&g<b.F.presentationTimeline.getDuration()&&b.F.presentationTimeline.Ya(g),x(h)}})};
255
+ function Hh(a,b){if(Jh(b))return Hf(a.G.U,b.stream.originalId||""),null;"text"==b.type&&If(a.G.U);var c=a.G.bd(),d=b.Na?b.Na.endTime:c,e=Df(a.G.U,b.type,c),f=Math.max(a.F.minBufferTime||0,a.v.rebufferingGoal,a.v.bufferingGoal)*a.j;if(d>=a.F.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.g.get("text"))&&Jh(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return.5;e=Cf(a.G.U,b.type);e=Kh(a,b,c,e);if(!e||!Lh(a,e))return 1;f=Infinity;var g=Array.from(a.g.values());
256
+ g=r(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Jh(h)||h.oa&&!h.oa.current()||(f=Math.min(f,h.Na?h.Na.endTime:c));if(d>=f+a.F.presentationTimeline.g)return 1;Mh(a,b,c,e)["catch"](function(){});return null}
257
+ function Kh(a,b,c,d){if(b.oa)return b.oa.current();if(b.Na||d)return b.oa=b.stream.segmentIndex.Xb(b.Na?b.Na.endTime:d),b.oa&&b.oa.next().value;b.oa=b.stream.segmentIndex.Xb(Math.max(c-a.v.inaccurateManifestTolerance,0));d=b.oa&&b.oa.next().value;d&&Lh(a,d)||(b.oa=b.stream.segmentIndex.Xb(c),d=b.oa&&b.oa.next().value);return d}function Lh(a,b){var c=a.F.presentationTimeline,d=c.pb();return b.endTime<c.fb()||b.startTime>d?!1:!0}
258
+ function Mh(a,b,c,d){var e,f,g,h,k,l,m,n;return H(function(q){switch(q.g){case 1:return e=Ib,f=b.stream,g=b.oa,b.qb=!0,y(q,2),t(q,Nh(a,b,d),4);case 4:id(a.M);if(a.l)return q["return"]();h=Oh(a,b,d);return t(q,h,5);case 5:return k=q.h,id(a.M),a.l?q["return"]():b.Mb?(b.qb=!1,vh(a,b,0),q["return"]()):t(q,Ph(a,b,c,f,d,k),6);case 6:id(a.M);if(a.l)return q["return"]();b.Na=d;g.next();b.qb=!1;b.Vd=!1;l=a.G.U.Zc();m=l[b.type];JSON.stringify(m);b.Mb||a.G.Td();vh(a,b,0);ua(q,0);break;case 2:n=C(q);id(a.M,n);
259
+ if(a.l)return q["return"]();b.qb=!1;if(7001==n.code)b.qb=!1,b.ib=null,vh(a,b,0),q.C(0);else if(b.type==e.ya&&a.v.ignoreTextStreamFailures)a.g["delete"](e.ya),q.C(0);else if(3017==n.code)Qh(a,b,n),q.C(0);else return b.Ac=!0,n.severity=2,t(q,Ih(a,n),0)}})}function Qh(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.Vd})){var d=Math.round(100*a.j);if(20<d)a.j-=.2;else if(4<d)a.j-=.04;else{b.Ac=!0;a.l=!0;a.G.onError(c);return}b.Vd=!0}vh(a,b,4)}
260
+ function Nh(a,b,c){var d,e,f,g,h,k,l;return H(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Md||e!=b.Ld||f!=b.Kd)h=function(){var n;return H(function(q){if(1==q.g)return y(q,2),b.Ld=e,b.Kd=f,b.Md=g,t(q,Kf(a.G.U,b.type,g,e,f),4);if(2!=q.g)return ua(q,0);n=C(q);b.Ld=null;b.Kd=null;b.Md=null;throw n;})},d.push(h());!Cg(c.i,b.dd)&&(b.dd=c.i)&&(k=Oh(a,b,c.i),l=function(){var n,q,u;return H(function(v){switch(v.g){case 1:return y(v,2),t(v,k,4);
261
+ case 4:return n=v.h,id(a.M),q=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,t(v,Ef(a.G.U,b.type,n,null,null,q),5);case 5:ua(v,0);break;case 2:throw u=C(v),b.dd=null,u;}})},d.push(l()));return t(m,Promise.all(d),0)})}
262
+ function Ph(a,b,c,d,e,f){var g;return H(function(h){if(1==h.g)return g=d.closedCaptions&&0<d.closedCaptions.size,null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length&&(new ye).ea("emsg",function(k){var l=d.emsgSchemeIdUris;if(0===k.version){var m=k.reader.Hc();var n=k.reader.Hc();var q=k.reader.T();var u=k.reader.T();var v=k.reader.T();var A=k.reader.T();var w=e.startTime+u/q}else q=k.reader.T(),w=k.reader.Ib()/q+e.timestampOffset,u=w-e.startTime,v=k.reader.T(),A=k.reader.T(),m=k.reader.Hc(),n=k.reader.Hc();
263
+ k=k.reader.Hb(k.reader.Y.byteLength-k.reader.L);l.includes(m)&&("urn:mpeg:dash:event:2012"==m?a.G.Zf():(l=(new Map).set("detail",{startTime:w,endTime:w+v/q,schemeIdUri:m,value:n,timescale:q,presentationTimeDelta:u,eventDuration:v,id:A,messageData:k}),l=new M(Rh,l),a.G.onEvent(l)))}).parse(f),t(h,Sh(a,b,c),2);if(3!=h.g)return id(a.M),t(h,Ef(a.G.U,b.type,f,e.startTime,e.endTime,g),3);id(a.M);x(h)})}
264
+ function Sh(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g){d=Math.max(a.v.bufferBehind,a.F.presentationTimeline.g);e=Af(a.G.U,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():t(h,a.G.U.remove(b.type,e,e+g),2)}id(a.M);x(h)})}function Jh(a){return a&&"text"==a.type&&"application/cea-608"==a.stream.mimeType}
265
+ function Oh(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g)return d=gd,e=nh(c.Ma(),c.h,c.g,a.v.retryParameters),f=a.G.bc.request(d,e),b.Ha=f,t(h,f.promise,2);g=h.h;b.Ha=null;return h["return"](g.data)})}
266
+ function Eh(a,b,c,d){var e,f;return H(function(g){if(1==g.g)return b.Mb=!1,b.sd=!1,b.Wc=0,b.rc=!0,b.Na=null,b.dd=null,b.oa=null,d?(e=a.G.bd(),f=a.G.U.getDuration(),t(g,a.G.U.remove(b.type,e+d,f),3)):t(g,Jf(a.G.U,b.type),4);if(3!=g.g)return id(a.M),c?t(g,a.G.U.flush(b.type),3):g.C(3);id(a.M);b.rc=!1;b.endOfStream=!1;vh(a,b,0);x(g)})}
267
+ function vh(a,b,c){var d=b.type;if("text"!=d||a.g.has(d))b.ib=(new Dc(function(){var e;return H(function(f){if(1==f.g)return y(f,2),t(f,a.Fc(b),4);if(2!=f.g)return ua(f,0);e=C(f);if(a.G)a.G.onError(e);x(f)})})).V(c)}function qh(a){null!=a.ib&&(a.ib.stop(),a.ib=null)}function rh(a){return H(function(b){return a.Ha?t(b,a.Ha.abort(),0):b.C(0)})}function Ih(a,b){return H(function(c){if(1==c.g)return t(c,Gc(a.A),2);id(a.M);a.G.onError(b);b.handled||a.v.failureCallback(b);x(c)})};function Th(a,b){var c=Uh(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.u=[];this.h=this.g=null;this.B=Promise.resolve().then(function(){return Vh(d)});this.M=new hd(function(){return Wh(d)})}Th.prototype.destroy=function(){return this.M.destroy()};function Wh(a){var b,c,d;return H(function(e){if(1==e.g)return a.h&&a.h.abort(),Xh(a),t(e,a.B,2);a.g&&a.g.Wa.Gb();b=r(a.u);for(c=b.next();!c.done;c=b.next())d=c.value,d.Wa.Gb();a.g=null;a.u=[];a.j=null;x(e)})}
268
+ function Yh(a,b){var c={dc:function(){},fd:function(){},Gb:function(){},onError:function(){},hd:function(){},Zg:function(){}};a.u.push({create:b,Wa:c});a.h&&a.h.abort();Xh(a);return c}
269
+ function Vh(a){return H(function(b){if(a.M.g)b=b.C(0);else{if(0==a.u.length||a.g&&!a.g.Bb)var c=!1;else{a.g&&(a.g.Wa.Gb(),a.g=null);c=a.u.shift();var d=c.create(a.l);d?(c.Wa.dc(),a.g={node:d.node,payload:d.payload,Bb:d.Bb,Wa:c.Wa}):c.Wa.hd();c=!0}c?c=Promise.resolve():a.g?c=Zh(a):(a.j.Yf(a.i),a.A=new ic,c=a.A);b=t(b,c,1)}return b})}
270
+ function Zh(a){var b,c;return H(function(d){switch(d.g){case 1:return a.i=a.j.Gf(a.i,a.l,a.g.node,a.g.payload),y(d,2),a.h=a.j.mf(a.i,a.l,a.g.payload),t(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Wa.fd(),a.g=null);ua(d,0);break;case 2:b=C(d);if(7001==b.code)a.g.Wa.Gb();else a.g.Wa.onError(b);a.g=null;a.h=null;c=a;return t(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,x(d)}})}function Xh(a){a.A&&(a.A.resolve(),a.A=null)};function $h(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}p=$h.prototype;p.remove=function(a,b){if(!this.g)return!1;ai(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
271
+ p.append=function(a){function b(g){return g.spacer?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):g.payload}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):[];var e={};c=r(c);for(var f=c.next();!f.done;e={Pb:e.Pb},f=c.next())e.Pb=f.value,a.some(function(g){return function(h){return h.startTime==g.Pb.startTime&&h.endTime==g.Pb.endTime&&h.text==g.Pb.payload?!0:!1}}(e))||(f=bi(e.Pb))&&
272
+ d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=r(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};p.destroy=function(){this.g&&(ai(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};p.isTextVisible=function(){return"showing"==this.g.mode};
272
273
  p.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
273
- function ci(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}
274
- function bi(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}J("shaka.text.SimpleTextDisplayer",ai);ai.prototype.setTextVisibility=ai.prototype.setTextVisibility;ai.prototype.isTextVisible=ai.prototype.isTextVisible;ai.prototype.destroy=ai.prototype.destroy;ai.prototype.append=ai.prototype.append;ai.prototype.remove=ai.prototype.remove;function di(){}function R(a){return document.createElement(a)}function ei(){return document.createElement("button")}function fi(a){for(;a.firstChild;)a.removeChild(a.firstChild)}J("shaka.util.Dom",di);di.removeAllChildren=fi;function gi(a,b){var c=this;this.B=!1;this.l=[];this.g=a;this.A=b;this.i=R("div");this.i.classList.add("shaka-text-container");this.i.style.textAlign="center";this.i.style.display="flex";this.i.style.flexDirection="column";this.i.style.alignItems="center";this.i.style.justifyContent="flex-end";this.A.appendChild(this.i);this.D=(new O(function(){hi(c)})).ha(.25);this.j=new Map;this.h=new kd;this.h.m(document,"fullscreenchange",function(){hi(c,!0)});this.u=null;"ResizeObserver"in window&&(this.u=new ResizeObserver(function(){hi(c,
275
- !0)}),this.u.observe(this.i))}p=gi.prototype;p.append=function(a){var b=[].concat(ia(this.l)),c={};a=r(a);for(var d=a.next();!d.done;c={Kc:c.Kc},d=a.next())c.Kc=d.value,b.some(function(e){return function(f){return ef(f,e.Kc)}}(c))||this.l.push(c.Kc);hi(this)};p.destroy=function(){this.A.removeChild(this.i);this.i=null;this.B=!1;this.l=[];this.D&&this.D.stop();this.j.clear();this.h&&(this.h.release(),this.h=null);this.u&&(this.u.disconnect(),this.u=null)};
276
- p.remove=function(a,b){if(!this.i)return!1;this.l=this.l.filter(function(c){return c.startTime<a||c.endTime>=b});hi(this);return!0};p.isTextVisible=function(){return this.B};p.setTextVisibility=function(a){this.B=a};
277
- function hi(a,b){function c(h){return a.l.includes(h)&&a.B&&h.startTime<=d&&h.endTime>d}b=void 0===b?!1:b;for(var d=a.g.currentTime,e=r(a.j.keys()),f=e.next();!f.done;f=e.next())if(f=f.value,!c(f)||b){var g=a.j.get(f);a.i.removeChild(g);a.j["delete"](f)}e=new Set(a.j.values());f=r(Array.from(a.i.childNodes));for(g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||a.i.removeChild(g);e=a.l.filter(function(h){return c(h)&&!a.j.has(h)}).sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:
278
- h.endTime-k.endTime});e=r(e);for(f=e.next();!f.done;f=e.next())ii(a,a.i,f.value)}function ji(a,b,c,d){var e=R("span");d&&e.classList.add("shaka-nested-cue");ki(a,e,c,!0);b.appendChild(e);return e}function ii(a,b,c){if(c.nestedCues.length){var d=R("p");d.style.width="100%";ki(a,d,c,!1);for(var e=0;e<c.nestedCues.length;e++)ji(a,d,c.nestedCues[e],!0);b.appendChild(d);a.j.set(c,d)}else a.j.set(c,ji(a,b,c,!1))}
279
- function ki(a,b,c,d){var e=b.style,f=0==c.nestedCues.length;c.spacer?(e.flexBasis="100%",e.height="0"):(e.whiteSpace="pre-line",b.textContent=c.payload,f&&(e.backgroundColor=c.backgroundColor),e.border=c.border,e.color=c.color,e.direction=c.direction,e.opacity=c.opacity,e.paddingLeft=li(c.linePadding,c,a.A),e.paddingRight=li(c.linePadding,c,a.A),c.backgroundImage&&(e.backgroundImage="url('"+c.backgroundImage+"')",e.backgroundRepeat="no-repeat",e.backgroundSize="contain",e.backgroundPosition="center",
280
- ""==c.backgroundColor&&(e.backgroundColor="transparent")),c.backgroundImage&&c.region&&(b=c.region.widthUnits==kf?"%":"px",e.height=c.region.height+(c.region.heightUnits==kf?"%":"px"),e.width=c.region.width+b),e.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end",f?e.display="inline-block":(e.display="flex",e.flexDirection="row",e.flexWrap="wrap",e.margin="0",e.alignItems=e.justifyContent,e.justifyContent="center"),d&&(e.maxWidth="100%"),e.fontFamily=
281
- c.fontFamily,e.fontWeight=c.fontWeight.toString(),e.fontStyle=c.fontStyle,e.letterSpacing=c.letterSpacing,e.fontSize=li(c.fontSize,c,a.A),c.line?1==c.lineInterpretation&&(e.position="absolute",c.writingMode==Ze?c.lineAlign==af?e.top=c.line+"%":"end"==c.lineAlign&&(e.bottom=c.line+"%"):"vertical-lr"==c.writingMode?c.lineAlign==af?e.left=c.line+"%":"end"==c.lineAlign&&(e.right=c.line+"%"):c.lineAlign==af?e.right=c.line+"%":"end"==c.lineAlign&&(e.left=c.line+"%")):c.region&&c.region.id&&!f&&(a=c.region.widthUnits==
282
- kf?"%":"px",d=c.region.viewportAnchorUnits==kf?"%":"px",e.height=c.region.height+(c.region.heightUnits==kf?"%":"px"),e.width=c.region.width+a,e.position="absolute",e.top=c.region.viewportAnchorY+d,e.left=c.region.viewportAnchorX+d),e.lineHeight=c.lineHeight,c.position&&(c.writingMode==Ze?e.paddingLeft=c.position:e.paddingTop=c.position),"line-left"==c.positionAlign?e.cssFloat="left":"line-right"==c.positionAlign&&(e.cssFloat="right"),e.textAlign=c.textAlign,e.textDecoration=c.textDecoration.join(" "),
283
- e.writingMode=c.writingMode,"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||(e.webkitWritingMode=c.writingMode),c.size&&(c.writingMode==Ze?e.width=c.size+"%":e.height=c.size+"%"))}
284
- function li(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),rg:d[2]}:null;if(!d)return a;var e=d.value;switch(d.rg){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}J("shaka.text.UITextDisplayer",gi);gi.prototype.setTextVisibility=gi.prototype.setTextVisibility;gi.prototype.isTextVisible=gi.prototype.isTextVisible;gi.prototype.remove=gi.prototype.remove;
285
- gi.prototype.destroy=gi.prototype.destroy;gi.prototype.append=gi.prototype.append;function mi(){}
286
- function ni(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]=Qc(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Qc(l)),k=ni(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?(Pa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Qa("Unexpected number of arguments for "+k),a[h]=b[h]):(Pa("Invalid config, unrecognized key "+
287
- k),g=!1)}return g}function oi(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}J("shaka.util.ConfigUtils",mi);mi.convertToConfigObject=oi;mi.mergeConfigObjects=ni;function pi(){}
288
- function qi(){var a=1E6,b=Infinity;navigator.connection&&(navigator.connection.downlink&&(a=1E6*navigator.connection.downlink),navigator.connection.saveData&&(b=360));var c={retryParameters:Hc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:me,logLicenseExchange:!1,updateExpirationTime:1},d={retryParameters:Hc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,
289
- ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},e={retryParameters:Hc(),failureCallback:function(h){return[h]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,
290
- stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};if(Ed("Web0S")||Dd()||Ed("CrKey"))e.stallSkip=0;var f={trackSelectionCallback:function(h){return G(function(k){return k["return"](h)})},progressCallback:function(h,k){return[h,k]},usePersistentLicense:!0},g={drm:c,manifest:d,streaming:e,offline:f,abrFactory:function(){return new ig},abr:{enabled:!0,defaultBandwidthEstimate:a,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,
274
+ function bi(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}
275
+ function ai(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}L("shaka.text.SimpleTextDisplayer",$h);$h.prototype.setTextVisibility=$h.prototype.setTextVisibility;$h.prototype.isTextVisible=$h.prototype.isTextVisible;$h.prototype.destroy=$h.prototype.destroy;$h.prototype.append=$h.prototype.append;$h.prototype.remove=$h.prototype.remove;function ci(){}function S(a){return document.createElement(a)}function di(){return document.createElement("button")}function ei(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",ci);ci.removeAllChildren=ei;function fi(a,b){var c=this;this.B=!1;this.j=[];this.g=a;this.A=b;this.i=S("div");this.i.classList.add("shaka-text-container");this.i.style.textAlign="center";this.i.style.display="flex";this.i.style.flexDirection="column";this.i.style.alignItems="center";this.i.style.justifyContent="flex-end";this.A.appendChild(this.i);this.D=(new O(function(){gi(c)})).ia(.25);this.l=new Map;this.h=new jd;this.h.m(document,"fullscreenchange",function(){gi(c,!0)});this.u=null;"ResizeObserver"in window&&(this.u=new ResizeObserver(function(){gi(c,
276
+ !0)}),this.u.observe(this.i))}p=fi.prototype;p.append=function(a){var b=[].concat(ia(this.j)),c={};a=r(a);for(var d=a.next();!d.done;c={Mc:c.Mc},d=a.next())c.Mc=d.value,b.some(function(e){return function(f){return cf(f,e.Mc)}}(c))||this.j.push(c.Mc);gi(this)};p.destroy=function(){this.A.removeChild(this.i);this.i=null;this.B=!1;this.j=[];this.D&&this.D.stop();this.l.clear();this.h&&(this.h.release(),this.h=null);this.u&&(this.u.disconnect(),this.u=null)};
277
+ p.remove=function(a,b){if(!this.i)return!1;var c=this.j.length;this.j=this.j.filter(function(d){return d.startTime<a||d.endTime>=b});gi(this,c>this.j.length);return!0};p.isTextVisible=function(){return this.B};p.setTextVisibility=function(a){this.B=a};
278
+ function gi(a,b){function c(h){return a.j.includes(h)&&a.B&&h.startTime<=d&&h.endTime>d}b=void 0===b?!1:b;for(var d=a.g.currentTime,e=r(a.l.keys()),f=e.next();!f.done;f=e.next())if(f=f.value,!c(f)||b){var g=a.l.get(f);a.i.removeChild(g);a.l["delete"](f)}e=new Set(a.l.values());f=r(Array.from(a.i.childNodes));for(g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||a.i.removeChild(g);e=a.j.filter(function(h){return c(h)&&!a.l.has(h)}).sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:
279
+ h.endTime-k.endTime});e=r(e);for(f=e.next();!f.done;f=e.next())hi(a,a.i,f.value)}function ii(a,b,c,d){var e=S("span");d&&e.classList.add("shaka-nested-cue");ji(a,e,c,!0);b.appendChild(e);return e}function hi(a,b,c){if(c.nestedCues.length){var d=S("p");d.style.width="100%";ji(a,d,c,!1);for(var e=0;e<c.nestedCues.length;e++)ii(a,d,c.nestedCues[e],!0);b.appendChild(d);a.l.set(c,d)}else a.l.set(c,ii(a,b,c,!1))}
280
+ function ji(a,b,c,d){var e=b.style,f=0==c.nestedCues.length;c.spacer?(e.flexBasis="100%",e.height="0"):(e.whiteSpace="pre-line",b.textContent=c.payload,f&&(e.backgroundColor=c.backgroundColor),e.border=c.border,e.color=c.color,e.direction=c.direction,e.opacity=c.opacity,e.paddingLeft=ki(c.linePadding,c,a.A),e.paddingRight=ki(c.linePadding,c,a.A),c.backgroundImage&&(e.backgroundImage="url('"+c.backgroundImage+"')",e.backgroundRepeat="no-repeat",e.backgroundSize="contain",e.backgroundPosition="center",
281
+ ""==c.backgroundColor&&(e.backgroundColor="transparent")),c.backgroundImage&&c.region&&(b=c.region.widthUnits==hf?"%":"px",e.height=c.region.height+(c.region.heightUnits==hf?"%":"px"),e.width=c.region.width+b),e.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end",f?e.display="inline-block":(e.display="flex",e.flexDirection="row",e.flexWrap="wrap",e.margin="0",e.alignItems=e.justifyContent,e.justifyContent="center"),d&&(e.maxWidth="100%"),e.fontFamily=
282
+ c.fontFamily,e.fontWeight=c.fontWeight.toString(),e.fontStyle=c.fontStyle,e.letterSpacing=c.letterSpacing,e.fontSize=ki(c.fontSize,c,a.A),c.line?1==c.lineInterpretation&&(e.position="absolute",c.writingMode==Xe?c.lineAlign==Ze?e.top=c.line+"%":"end"==c.lineAlign&&(e.bottom=c.line+"%"):"vertical-lr"==c.writingMode?c.lineAlign==Ze?e.left=c.line+"%":"end"==c.lineAlign&&(e.right=c.line+"%"):c.lineAlign==Ze?e.right=c.line+"%":"end"==c.lineAlign&&(e.left=c.line+"%")):c.region&&c.region.id&&!f&&(a=c.region.widthUnits==
283
+ hf?"%":"px",d=c.region.viewportAnchorUnits==hf?"%":"px",e.height=c.region.height+(c.region.heightUnits==hf?"%":"px"),e.width=c.region.width+a,e.position="absolute",e.top=c.region.viewportAnchorY+d,e.left=c.region.viewportAnchorX+d),e.lineHeight=c.lineHeight,c.position&&(c.writingMode==Xe?e.paddingLeft=c.position:e.paddingTop=c.position),"line-left"==c.positionAlign?e.cssFloat="left":"line-right"==c.positionAlign&&(e.cssFloat="right"),e.textAlign=c.textAlign,e.textDecoration=c.textDecoration.join(" "),
284
+ e.writingMode=c.writingMode,"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||(e.webkitWritingMode=c.writingMode),c.size&&(c.writingMode==Xe?e.width=c.size+"%":e.height=c.size+"%"))}
285
+ function ki(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),sg:d[2]}:null;if(!d)return a;var e=d.value;switch(d.sg){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}L("shaka.text.UITextDisplayer",fi);fi.prototype.setTextVisibility=fi.prototype.setTextVisibility;fi.prototype.isTextVisible=fi.prototype.isTextVisible;fi.prototype.remove=fi.prototype.remove;
286
+ fi.prototype.destroy=fi.prototype.destroy;fi.prototype.append=fi.prototype.append;function li(){}
287
+ function mi(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]=Oc(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Oc(l)),k=mi(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?(Na("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Oa("Unexpected number of arguments for "+k),a[h]=b[h]):(Na("Invalid config, unrecognized key "+
288
+ k),g=!1)}return g}function ni(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}L("shaka.util.ConfigUtils",li);li.convertToConfigObject=ni;li.mergeConfigObjects=mi;function oi(){}
289
+ function pi(){var a=1E6,b=Infinity;navigator.connection&&(navigator.connection.downlink&&(a=1E6*navigator.connection.downlink),navigator.connection.saveData&&(b=360));var c={retryParameters:Fc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ke,logLicenseExchange:!1,updateExpirationTime:1},d={retryParameters:Fc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,
290
+ ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},e={retryParameters:Fc(),failureCallback:function(h){return[h]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,
291
+ stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};if(Dd("Web0S")||Cd()||Dd("CrKey"))e.stallSkip=0;var f={trackSelectionCallback:function(h){return H(function(k){return k["return"](h)})},progressCallback:function(h,k){return[h,k]},usePersistentLicense:!0},g={drm:c,manifest:d,streaming:e,offline:f,abrFactory:function(){return new gg},abr:{enabled:!0,defaultBandwidthEstimate:a,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,
291
292
  minHeight:0,maxHeight:b,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null}};
292
- f.trackSelectionCallback=function(h){return G(function(k){return k["return"](ri(h,g.preferredAudioLanguage))})};return g}function si(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return ni(a,b,c||qi(),d,"")}
293
- function ri(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Vb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Ob(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
294
- 2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,"text"==g.type&&c.push(g);return c}J("shaka.util.PlayerConfiguration",pi);pi.mergeConfigObjects=si;function ti(){this.g=null;this.h=[]}function ui(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 vi(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
295
- function wi(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function xi(){this.i=this.h=null;this.g=[]}function yi(a,b,c){a.h!=b&&(a.h=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}))}function zi(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 Ai(){this.u=this.A=this.J=this.D=this.l=this.i=this.H=this.j=this.K=this.N=this.P=this.B=this.R=NaN;this.h=new ti;this.g=new xi};function T(a,b){db.call(this);var c=this;this.u=Bi;this.Ya=this.g=null;this.W=!1;this.h=new kd;this.sb=this.A=this.Qa=this.F=this.ib=this.B=this.i=this.jb=this.J=this.Za=this.H=this.ra=this.D=this.K=this.l=this.Y=null;this.Ie=1E9;this.v=Ci(this);this.Fd={width:Infinity,height:Infinity};this.j=null;this.aa=new pg(this.v.preferredAudioLanguage,this.v.preferredVariantRole,this.v.preferredAudioChannelCount);this.ia=this.v.preferredTextLanguage;this.Ra=this.v.preferredTextRole;this.qb=[];b&&b(this);this.Y=
296
- Di(this);this.N=null;Ei&&(this.N=Jb(Ei));this.h.m(window,"online",function(){c.Ud()});this.Da={name:"detach"};this.ab={name:"attach"};this.R={name:"unload"};this.Hd={name:"manifest-parser"};this.Ed={name:"manifest"};this.qa={name:"media-source"};this.tb={name:"drm-engine"};this.P={name:"load"};this.Ld={name:"src-equals-drm-engine"};this.Ca={name:"src-equals"};var d=new Map;d.set(this.ab,function(e,f){return Nc(Fi(c,e,f))});d.set(this.Da,function(e){e.I&&(c.h.Ia(e.I,"error"),e.I=null);c.N&&c.N.release();
297
- c.g=null;e=Promise.resolve();return Nc(e)});d.set(this.R,function(e){return Nc(Gi(c,e))});d.set(this.qa,function(e){e=Hi(c,e);return Nc(e)});d.set(this.Hd,function(e,f){var g=Ii(c,e,f);return Nc(g)});d.set(this.Ed,function(e){return Ji(c,e)});d.set(this.tb,function(e){e=Ki(c,e);return Nc(e)});d.set(this.P,function(e,f){return Nc(Li(c,e,f))});d.set(this.Ld,function(e,f){var g=Mi(c,e,f);return Nc(g)});d.set(this.Ca,function(e,f){return Ni(c,e,f)});this.$=new Uh(this.Da,{Ef:function(e,f,g,h){var k=null;
298
- e==c.Da&&(k=g==c.Da?c.Da:c.ab);e==c.ab&&(k=g==c.Da||f.I!=h.I?c.Da:g==c.ab?c.ab:g==c.qa||g==c.P?c.qa:g==c.Ca?c.Ld:null);e==c.qa&&(k=g==c.P&&f.I==h.I?c.Hd:c.R);e==c.Hd&&(k=Oi(c.P,c.Ed,c.R,g,f,h));e==c.Ed&&(k=Oi(c.P,c.tb,c.R,g,f,h));e==c.tb&&(k=Oi(c.P,c.P,c.R,g,f,h));e==c.Ld&&(k=g==c.Ca&&f.I==h.I?c.Ca:c.R);if(e==c.P||e==c.Ca)k=c.R;e==c.R&&(k=h.I&&f.I==h.I?c.ab:c.Da);return k},kf:function(e,f,g){c.dispatchEvent(Pi(Qi,{state:e.name}));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==
299
- f.g?t(f,Gi(c,e),2):f["return"](e.I?c.ab:c.Da)})},Xf:function(e){c.dispatchEvent(Pi(Ri,{state:e.name}))}});a&&this.nc(a,!0)}pa(T,db);function Pi(a,b){return new L(a,b)}p=T.prototype;
300
- p.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.u==Si)return c["return"]();a.u=Si;b=Zh(a.$,function(){return{node:a.Da,payload:Vh(),zb:!1}});return t(c,new Promise(function(d){b.bc=function(){};b.dd=function(){d()};b.Eb=function(){d()};b.onError=function(){d()};b.fd=function(){d()}}),2);case 2:return t(c,a.$.destroy(),3);case 3:a.h&&(a.h.release(),a.h=null);a.sb=null;a.A=null;a.v=null;a.j=null;a.Ya=null;if(!a.Y){c.C(0);break}return t(c,a.Y.destroy(),5);case 5:a.Y=null,
301
- x(c)}})};function Ti(){if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach))return!1;var a=Gd();return a&&12>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Ad()?!0:Bd("application/x-mpegurl")}
302
- p.nc=function(a,b){b=void 0===b?!0:b;if(this.u==Si)return Promise.reject(Ui());var c=Vh();c.I=a;Ad()||(b=!1);var d=b?this.qa:this.ab,e=Zh(this.$,function(){return{node:d,payload:c,zb:!1}});e.bc=function(){};return Vi(e)};p.detach=function(){var a=this;if(this.u==Si)return Promise.reject(Ui());var b=Zh(this.$,function(){return{node:a.Da,payload:Vh(),zb:!1}});b.bc=function(){};return Vi(b)};
303
- p.ke=function(a){var b=this;a=void 0===a?!0:a;if(this.u==Si)return Promise.reject(Ui());Ad()||(a=!1);var c=Vh(),d=Zh(this.$,function(e){var f=e.I&&a?b.qa:e.I?b.ab:b.Da;c.I=e.I;return{node:f,payload:c,zb:!1}});d.bc=function(){};return Vi(d)};
304
- p.load=function(a,b,c){var d=this;if(this.u==Si)return Promise.reject(Ui());this.dispatchEvent(Pi(Wi));var e=Vh();e.uri=a;e.ee=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Xi(this,e)?this.Ca:this.P,g=Zh(this.$,function(h){if(null==h.I)return null;e.I=h.I;return{node:f,payload:e,zb:!0}});this.j=new Ai;g.bc=function(){};return new Promise(function(h,k){g.fd=function(){return k(new M(2,7,7002))};g.dd=function(){h();d.dispatchEvent(Pi(Yi))};g.Eb=function(){return k(Ui())};g.onError=
293
+ f.trackSelectionCallback=function(h){return H(function(k){return k["return"](qi(h,g.preferredAudioLanguage))})};return g}function ri(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return mi(a,b,c||pi(),d,"")}
294
+ function qi(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Tb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
295
+ 2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,"text"==g.type&&c.push(g);return c}L("shaka.util.PlayerConfiguration",oi);oi.mergeConfigObjects=ri;function si(){this.g=null;this.h=[]}function ti(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 ui(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
296
+ function vi(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function wi(){this.i=this.h=null;this.g=[]}function xi(a,b,c){a.h!=b&&(a.h=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}))}function yi(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 zi(){this.u=this.A=this.J=this.D=this.l=this.i=this.H=this.j=this.K=this.N=this.P=this.B=this.S=NaN;this.h=new si;this.g=new wi};function U(a,b){$a.call(this);var c=this;this.u=Ai;this.$a=this.g=null;this.X=!1;this.h=new jd;this.ub=this.A=this.Sa=this.F=this.kb=this.B=this.i=this.mb=this.J=this.ab=this.H=this.ua=this.D=this.K=this.l=this.Z=null;this.Ke=1E9;this.v=Bi(this);this.Hd={width:Infinity,height:Infinity};this.j=null;this.ba=new ng(this.v.preferredAudioLanguage,this.v.preferredVariantRole,this.v.preferredAudioChannelCount);this.ka=this.v.preferredTextLanguage;this.Ta=this.v.preferredTextRole;this.sb=[];b&&b(this);this.Z=
297
+ Ci(this);this.N=null;Di&&(this.N=Fb(Di));this.h.m(window,"online",function(){c.Wd()});this.Ea={name:"detach"};this.cb={name:"attach"};this.S={name:"unload"};this.Jd={name:"manifest-parser"};this.Gd={name:"manifest"};this.ra={name:"media-source"};this.vb={name:"drm-engine"};this.P={name:"load"};this.Nd={name:"src-equals-drm-engine"};this.Da={name:"src-equals"};var d=new Map;d.set(this.cb,function(e,f){return Lc(Ei(c,e,f))});d.set(this.Ea,function(e){e.I&&(c.h.Ja(e.I,"error"),e.I=null);c.N&&c.N.release();
298
+ c.g=null;e=Promise.resolve();return Lc(e)});d.set(this.S,function(e){return Lc(Fi(c,e))});d.set(this.ra,function(e){e=Gi(c,e);return Lc(e)});d.set(this.Jd,function(e,f){var g=Hi(c,e,f);return Lc(g)});d.set(this.Gd,function(e){return Ii(c,e)});d.set(this.vb,function(e){e=Ji(c,e);return Lc(e)});d.set(this.P,function(e,f){return Lc(Ki(c,e,f))});d.set(this.Nd,function(e,f){var g=Li(c,e,f);return Lc(g)});d.set(this.Da,function(e,f){return Mi(c,e,f)});this.aa=new Th(this.Ea,{Gf:function(e,f,g,h){var k=
299
+ null;e==c.Ea&&(k=g==c.Ea?c.Ea:c.cb);e==c.cb&&(k=g==c.Ea||f.I!=h.I?c.Ea:g==c.cb?c.cb:g==c.ra||g==c.P?c.ra:g==c.Da?c.Nd:null);e==c.ra&&(k=g==c.P&&f.I==h.I?c.Jd:c.S);e==c.Jd&&(k=Ni(c.P,c.Gd,c.S,g,f,h));e==c.Gd&&(k=Ni(c.P,c.vb,c.S,g,f,h));e==c.vb&&(k=Ni(c.P,c.P,c.S,g,f,h));e==c.Nd&&(k=g==c.Da&&f.I==h.I?c.Da:c.S);if(e==c.P||e==c.Da)k=c.S;e==c.S&&(k=h.I&&f.I==h.I?c.cb:c.Ea);return k},mf:function(e,f,g){c.dispatchEvent(Oi(Pi,(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return H(function(f){return 1==
300
+ f.g?t(f,Fi(c,e),2):f["return"](e.I?c.cb:c.Ea)})},Yf:function(e){c.dispatchEvent(Oi(Qi,(new Map).set("state",e.name)))}});a&&this.qc(a,!0)}pa(U,$a);function Oi(a,b){return new M(a,b)}p=U.prototype;
301
+ p.destroy=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(a.u==Ri)return c["return"]();a.u=Ri;b=Yh(a.aa,function(){return{node:a.Ea,payload:Uh(),Bb:!1}});return t(c,new Promise(function(d){b.dc=function(){};b.fd=function(){d()};b.Gb=function(){d()};b.onError=function(){d()};b.hd=function(){d()}}),2);case 2:return t(c,a.aa.destroy(),3);case 3:a.h&&(a.h.release(),a.h=null);a.ub=null;a.A=null;a.v=null;a.j=null;a.$a=null;if(!a.Z){c.C(0);break}return t(c,a.Z.destroy(),5);case 5:a.Z=
302
+ null,x(c)}})};function Si(){if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach))return!1;var a=Fd();return a&&12>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:zd()?!0:Ad("application/x-mpegurl")}
303
+ p.qc=function(a,b){b=void 0===b?!0:b;if(this.u==Ri)return Promise.reject(Ti());var c=Uh();c.I=a;zd()||(b=!1);var d=b?this.ra:this.cb,e=Yh(this.aa,function(){return{node:d,payload:c,Bb:!1}});e.dc=function(){};return Ui(e)};p.detach=function(){var a=this;if(this.u==Ri)return Promise.reject(Ti());var b=Yh(this.aa,function(){return{node:a.Ea,payload:Uh(),Bb:!1}});b.dc=function(){};return Ui(b)};
304
+ p.me=function(a){var b=this;a=void 0===a?!0:a;if(this.u==Ri)return Promise.reject(Ti());zd()||(a=!1);var c=Uh(),d=Yh(this.aa,function(e){var f=e.I&&a?b.ra:e.I?b.cb:b.Ea;c.I=e.I;return{node:f,payload:c,Bb:!1}});d.dc=function(){};return Ui(d)};
305
+ p.load=function(a,b,c){var d=this;if(this.u==Ri)return Promise.reject(Ti());this.dispatchEvent(Oi(Vi));var e=Uh();e.uri=a;e.ge=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Wi(this,e)?this.Da:this.P,g=Yh(this.aa,function(h){if(null==h.I)return null;e.I=h.I;return{node:f,payload:e,Bb:!0}});this.j=new zi;g.dc=function(){};return new Promise(function(h,k){g.hd=function(){return k(new N(2,7,7002))};g.fd=function(){h();d.dispatchEvent(Oi(Xi))};g.Gb=function(){return k(Ti())};g.onError=
305
306
  function(l){return k(l)}})};
306
- function Xi(a,b){if(!Ad())return!0;var c=b.mimeType,d=b.uri||"";c||(c={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",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[Ag(d)]);return c?""==(b.I||Cd()).canPlayType(c)?!1:Ad()&&(c in zg||Ag(d)in Bg)?Fd()&&a.v.streaming.useNativeHlsOnSafari:!0:!1}
307
- function Fi(a,b,c){null==b.I&&(b.I=c.I,a.h.m(b.I,"error",function(){var d=Zi(a);d&&$i(a,d)}));a.g=b.I;return Promise.resolve()}
308
- function Gi(a,b){var c,d,e,f,g,h,k,l,m;return G(function(n){switch(n.g){case 1:return a.u!=Si&&(a.u=Bi),c=a.qb.map(function(q){return q()}),a.qb=[],t(n,Promise.all(c),2);case 2:a.dispatchEvent(Pi(aj));b.mimeType=null;b.startTime=null;b.uri=null;b.I&&(a.h.Ia(b.I,"loadedmetadata"),a.h.Ia(b.I,"playing"),a.h.Ia(b.I,"pause"),a.h.Ia(b.I,"ended"),a.h.Ia(b.I,"ratechange"));a.ra&&(a.ra.release(),a.ra=null);a.Za&&(a.Za.stop(),a.Za=null);if(!a.B){n.C(3);break}return t(n,a.B.stop(),4);case 4:a.B=null,a.ib=null;
309
- case 3:if(!a.A){n.C(5);break}return t(n,a.A.stop(),5);case 5:if(!a.i){n.C(7);break}return t(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.H&&(a.H.release(),a.H=null);a.D&&(a.D.release(),a.D=null);if(!a.K){n.C(9);break}return t(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.N)a.N.onAssetUnload();if(!b.I||!b.I.src){n.C(11);break}return t(n,new Promise(function(q){return(new O(q)).U(.1)}),12);case 12:b.I.removeAttribute("src"),b.I.load();case 11:if(!a.l){n.C(13);break}return t(n,a.l.destroy(),14);case 14:a.l=
310
- null;case 13:a.Qa=null;a.J=null;if(a.F){d=r(a.F.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.F.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.F=null;a.j=new Ai;a.Rb=null;bj(a);x(n)}})}
311
- function Hi(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=window.muxjs?new Ne:new Oe,d=a.v.textDisplayFactory,e=Jb(d),a.Rb=d,f=cj(b.I,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,q=l,u=r(m.frames),v=u.next();!v.done;v=u.next())dj(a,n,q,"ID3",v.value);if(a.N)a.N.onHlsTimedMetadata(m,n)}}),t(g,f.H,2);a.K=f;x(g)})}
312
- function Ii(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.Y,a.Qa=d,f=a,t(h,yg(d,e,a.v.manifest.retryParameters,b.mimeType),2);f.ib=h.h;a.B=Jb(a.ib);g=Qc(a.v.manifest);c.I&&"AUDIO"===c.I.nodeName&&(g.disableVideo=!0);a.B.configure(g);x(h)})}
313
- function Ji(a,b){var c=b.uri,d=a.Y;a.jb=new lh(function(){return a.Oa()});mh(a.jb,function(g){ej(a,fj,g);if(a.N)a.N.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return G(function(h){return h["return"](a.Sb(g))})},makeTextStreamsForClosedCaptions:function(g){return gj(a,g)},onTimelineRegionAdded:function(g){var h=a.jb;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=
314
- l;break a}k=null}null==k&&(h.g.add(g),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return $i(a,g)}},f=Date.now()/1E3;return new Jc(function(){var g,h,k,l;return G(function(m){if(1==m.g)return g=a,t(m,a.B.start(c,e),2);g.F=m.h;h=Pi(hj);a.dispatchEvent(h);if(0==a.F.variants.length)throw new M(2,4,4036);ij(a.F);k=Date.now()/1E3;l=k-f;a.j.H=l;x(m)})}(),function(){return a.B.stop()})}
315
- function Ki(a,b){var c,d;return G(function(e){if(1==e.g)return c=Date.now()/1E3,d=!0,a.l=jj(a,{$b:a.Y,onError:function(f){$i(a,f)},ed:function(f){kj(a,f)},onExpirationUpdated:function(f,g){lj(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==mj&&d&&(d=!1,a.j.i=Date.now()/1E3-c)}}),a.l.configure(a.v.drm),t(e,Qd(a.l,a.F.variants,a.F.offlineSessionIds),2);if(3!=e.g)return t(e,a.l.nc(b.I),3);a.Sb(a.F);x(e)})}
316
- function Li(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v;return G(function(A){switch(A.g){case 1:b.startTime=c.startTime;d=b.I;e=b.uri;a.Qa=e;a.H=new eh({$c:function(){return b.I.playbackRate},Yc:function(){return b.I.defaultPlaybackRate},Zd:function(w){b.I.playbackRate=w},He:function(w){b.I.currentTime+=w}});f=function(){return nj(a)};g=function(){return oj(a)};a.h.m(d,"playing",f);a.h.m(d,"pause",f);a.h.m(d,"ended",f);a.h.m(d,"ratechange",g);h=a.v.abrFactory;a.A&&a.sb==h||(a.sb=h,a.A=Jb(h),"function"!=typeof a.A.playbackRateChanged&&
317
- (Cb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.A.playbackRateChanged=function(){}),a.A.configure(a.v.abr));a.aa=new pg(a.v.preferredAudioLanguage,a.v.preferredVariantRole,a.v.preferredAudioChannelCount);a.ia=a.v.preferredTextLanguage;a.Ra=a.v.preferredTextRole;pj(a.F.presentationTimeline,a.v.playRangeStart,a.v.playRangeEnd);a.A.init(function(w,z,C){z=void 0===z?!1:z;C=void 0===C?0:C;a.i&&w!=a.i.h&&(yi(a.j.g,w,!0),Dh(a.i,w,z,C),qj(a))});a.D=rj(a,b.startTime);a.ra=
318
- sj(a);k=Math.max(a.F.minBufferTime,a.v.streaming.rebufferingGoal);tj(a,k);Qf(a.F,a.v.preferredAudioChannelCount);a.i=uj(a);a.i.configure(a.v.streaming);a.u=vj;a.dispatchEvent(Pi(wj));l=null;if(m=a.yb().find(function(w){return w.active})){A.C(2);break}l=xj(a)?a.A.chooseVariant():null;yi(a.j.g,l,!0);Dh(a.i,l,!1,0);if(!a.v.streaming.startAtSegmentBoundary){A.C(3);break}n=a.D.l();return t(A,yj(l,n),4);case 4:q=A.h,a.D.B(q);case 3:qj(a);case 2:return u=a.xb().find(function(w){return w.active}),u||((v=
319
- gg(a.F.textStreams,a.ia,a.Ra)[0]||null)&&zi(a.j.g,v,!0),l&&(v?(l.audio&&zj(a,l.audio,v)&&(a.W=!0),a.W&&a.K.u.setTextVisibility(!0),Aj(a)):a.W=!1),v&&(a.v.streaming.alwaysStreamText||a.Db())&&Eh(a.i,v)),t(A,a.i.start(),5);case 5:a.v.abr.enabled&&(a.A.enable(),Bj(a)),a.Sb(a.F),Cj(a),xj(a),a.F.variants.some(function(w){return w.primary}),a.h.Fa(d,"loadedmetadata",function(){a.j.j=Date.now()/1E3-c.ee}),x(A)}})}
320
- function Mi(a,b,c){var d,e,f,g;return G(function(h){return 1==h.g?(d=Mb,e=Date.now()/1E3,f=!0,a.l=jj(a,{$b:a.Y,onError:function(k){$i(a,k)},ed:function(k){kj(a,k)},onExpirationUpdated:function(k,l){lj(a,k,l)},onEvent:function(k){a.dispatchEvent(k);k.type==mj&&f&&(f=!1,a.j.i=Date.now()/1E3-e)}}),a.l.configure(a.v.drm),g={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:
321
- "video/mp4",codecs:c.mimeType?zd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.$a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0},t(h,Qd(a.l,[g],[]),2)):t(h,a.l.nc(b.I),0)})}
322
- function Ni(a,b,c){function d(){return nj(a)}b.uri=c.uri;b.startTime=c.startTime;a.Qa=b.uri;a.D=new Vg(b.I);null!=b.startTime&&a.D.B(b.startTime);a.H=new eh({$c:function(){return b.I.playbackRate},Yc:function(){return b.I.defaultPlaybackRate},Zd:function(g){b.I.playbackRate=g},He:function(g){b.I.currentTime+=g}});tj(a,a.v.streaming.rebufferingGoal);a.h.m(b.I,"playing",d);a.h.m(b.I,"pause",d);a.h.m(b.I,"ended",d);a.h.m(b.I,"ratechange",function(){return oj(a)});"none"!=a.g.preload&&a.h.Fa(a.g,"loadedmetadata",
323
- function(){a.j.j=Date.now()/1E3-c.ee});a.g.audioTracks&&(a.h.m(a.g.audioTracks,"addtrack",function(){return Cj(a)}),a.h.m(a.g.audioTracks,"removetrack",function(){return Cj(a)}),a.h.m(a.g.audioTracks,"change",function(){return Cj(a)}));a.g.textTracks&&(a.h.m(a.g.textTracks,"addtrack",function(g){Cj(a);Dj(a,g)}),a.h.m(a.g.textTracks,"removetrack",function(){return Cj(a)}),a.h.m(a.g.textTracks,"change",function(){return Cj(a)}));b.I.src=b.uri;(Dd()||Ed("Web0S"))&&b.I.load();a.u=Ej;a.dispatchEvent(Pi(wj));
324
- var e=new kc;Mg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){e.resolve()});var f=!1;a.qb.push(function(){f=!0});Mg(a.g,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){var g;return G(function(h){if(1==h.g){if(f)return h["return"]();Fj(a);g=Gj(a);return g.find(function(k){return"disabled"!=k.mode})?h.C(2):t(h,new Promise(function(k){a.h.Fa(a.g.textTracks,"change",k);(new O(k)).U(1)}),2)}if(f)return h["return"]();Hj(a);x(h)})});a.g.error?e.reject(Zi(a)):"none"==a.g.preload&&(Qa('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.'),
325
- e.resolve());a.h.Fa(a.g,"error",function(){e.reject(Zi(a))});return new Jc(e,function(){e.reject(new M(2,7,7001));return Promise.resolve()})}function Fj(a){var b=a.v.preferredAudioLanguage;if(""!=b){a.ld(b);var c=a.v.preferredVariantRole;""!=c&&a.ld(b,c)}}function Hj(a){var b=a.v.preferredTextLanguage;if(""!=b){a.md(b);var c=a.v.preferredTextRole;""!=c&&a.md(b,c)}}
326
- function Dj(a,b){var c=b.track;"metadata"==c.kind&&(c.mode="hidden",a.h.m(c,"cuechange",function(){if(c.activeCues)for(var d=r(c.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,dj(a,e.startTime,e.endTime,e.type,e.value),a.N)a.N.onCueMetadataChange(e.value)}),(new O(function(){var d=Ij(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Aa().U(.5))}function dj(a,b,c,d,e){a.dispatchEvent(Pi(Jj,{startTime:b,endTime:c,Yg:d,payload:e}))}
327
- function ij(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 jj(a,b){return new Jd(b,a.v.drm.updateExpirationTime)}function Di(a){return new Yc(function(b,c){a.A&&a.A.segmentDownloaded(b,c)})}
328
- function rj(a,b){return new Wg(a.g,a.F,a.v.streaming,b,function(){a.ra&&hh(a.ra,!0);if(a.i)for(var c=a.i,d=c.G.Zc(),e=c.v.smallGapLimit,f=r(c.g.keys()),g=f.next();!g.done;g=f.next()){g=g.value;var h=c.g.get(g);h.na=null;var k=c.G.T;"text"==g?(k=k.i,k=null==k.g||null==k.h?!1:d>=k.g&&d<k.h):(k=Df(k,g),k=Qe(k,d,e));k||(null!=Ef(c.G.T,g)&&Hh(c,h),h.Ga&&(h.Ga.abort(),h.Ga=null),"text"===g&&c.G.T.D.h())}a.J&&Kj(a)},function(c){return a.dispatchEvent(c)})}
329
- function sj(a){var b=new nh(a.jb);oh(b,function(d){ej(a,Lj,d)},function(d){ej(a,Mj,d)},function(d,e){e||(ej(a,Lj,d),ej(a,Mj,d))});var c=new gh(a.g);c.g.add(b);return c}function tj(a,b){a.J=new tg;a.J.g=vg;wg(a.J,b,Math.min(.5,b/2));bj(a);a.Za=(new O(function(){Kj(a)})).ha(.25)}
330
- function Kj(a){switch(a.u){case Ej:if(a.g.ended)var b=!0;else{var c=Pe(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case vj:a:if(a.g.ended||Bf(a.K))b=!0;else{if(a.F.presentationTimeline.V()){c=a.F.presentationTimeline.mb();var d=Pe(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Re(a.g.buffered,a.g.currentTime);c=a.J;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?ug:vg;c.g=d;b!=d&&bj(a)}function cj(a,b,c,d){return new uf(a,b,c,d)}
331
- function uj(a){return new qh(a.F,{Zc:function(){return a.D.l()},getBandwidthEstimate:function(){return a.A.getBandwidthEstimate()},T:a.K,$b:a.Y,onError:function(b){return $i(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Yf:function(){a.B&&a.B.update&&a.B.update()},Rd:function(){a.D&&a.D.H();Kj(a)}})}
332
- p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=oi(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(Cb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);var c=si(this.v,a,Ci(this));Nj(this);return c};
333
- function Nj(a){if(a.B){var b=Qc(a.v.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.B.configure(b)}a.l&&a.l.configure(a.v.drm);if(a.i){a.i.configure(a.v.streaming);try{a.Sb(a.F)}catch(f){$i(a,f)}a.A&&xj(a);b=a.i.h;!b||b.allowedByApplication&&b.allowedByKeySystem||Oj(a)}if(a.K&&(b=a.v.textDisplayFactory,a.Rb!=b)){var c=Jb(b),d=a.K,e=d.u;d.u=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.i&&(d.i.i=c);a.Rb=b;a.i&&(b=a.i,(c=b.g.get("text"))&&Ch(b,c.stream,!0,0,!0))}a.A&&(a.A.configure(a.v.abr),
334
- a.v.abr.enabled?a.A.enable():a.A.disable(),Bj(a));a.J&&(b=a.v.streaming.rebufferingGoal,a.F&&(b=Math.max(b,a.F.minBufferTime)),wg(a.J,b,Math.min(.5,b/2)))}p.getConfiguration=function(){var a=Ci(this);si(a,this.v,Ci(this));return a};p.hg=function(){for(var a in this.v)delete this.v[a];si(this.v,Ci(this),Ci(this));Nj(this)};p.wf=function(){return this.u};p.Df=function(){return this.g};p.tc=function(){return this.Y};p.Dd=function(){return this.Qa};
335
- p.Wc=function(){Sa("getAdManager","Shaka Player's ad features are currently in BETA and are NOT yet covered by semantic versioning compatibility guarantees. The API may change at any time!");return this.N};p.V=function(){return this.F?this.F.presentationTimeline.V():this.g&&this.g.src?Infinity==this.g.duration:!1};p.Bb=function(){return this.F?this.F.presentationTimeline.Bb():!1};
336
- p.Ce=function(){if(this.F){var a=this.F.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};p.Oa=function(){if(this.F){var a=this.F.presentationTimeline;return{start:a.Xb(),end:a.bb()}}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}};p.keySystem=function(){return fe(this.drmInfo())};p.drmInfo=function(){return this.l?this.l.i:null};
337
- p.sc=function(){return this.l?this.l.sc():Infinity};p.Bc=function(){return this.J?this.J.g==vg:!1};p.uc=function(){return this.g?this.H?this.H.i:1:0};p.je=function(a){0==a?Qa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(a),this.u==vj&&(this.A.playbackRateChanged(a),Bh(this.i,1<Math.abs(a))))};p.oe=function(){var a=this.H.Yc();this.u==Ej&&this.H.set(a);this.u==vj&&(this.H.set(a),this.A.playbackRateChanged(a),Bh(this.i,!1))};
338
- p.yb=function(){if(this.F){for(var a=this.i?this.i.h:null,b=[],c=0,d=r(this.F.variants),e=d.next();!e.done;e=d.next())if(e=e.value,eg(e)){var f=Zf(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 cg(g)}):[]};
339
- p.xb=function(){if(this.F){for(var a=this.i?this.i.i:null,b=[],c=r(this.F.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=$f(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Gj(this).map(function(f){var g=dg(f);g.active="disabled"!=f.mode;g.type="text";g.originalTextId=f.id;"captions"==f.kind&&(g.mimeType="application/cea-608");f.kind&&(g.roles=[f.kind]);return g}):[]};
340
- p.Qe=function(a){if(this.F&&this.i){var b=this.F.textStreams.find(function(d){return d.id==a.id});b&&b!=this.i.i&&(zi(this.j.g,b,!1),Eh(this.i,b),Pj(this),this.ia=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Gj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ag(c)==a.id?c.mode=this.W?"showing":"hidden":c.mode="disabled";Pj(this)}};
341
- p.Vd=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.F&&this.i){this.v.abr.enabled&&Qa("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.F.variants.find(function(e){return e.id==a.id});d&&eg(d)&&(d==this.i.h?b&&Dh(this.i,d,b,c,!0):(yi(this.j.g,d,!1),Dh(this.i,d,b,c),Qj(this),this.aa=new og(d),xj(this)))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);
342
- b=c.find(function(e){return e.enabled});c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,ag(d)==a.id&&(d.enabled=!0,d.id!==b.id&&(b.enabled=!1));Qj(this)}};p.mf=function(){return Rj(this.yb())};p.Mf=function(){return Rj(this.xb())};p.lf=function(){return Array.from(Sj(this.yb()))};p.Lf=function(){return Array.from(Sj(this.xb()))};
343
- p.ld=function(a,b){if(this.F&&this.D){this.aa=new pg(a,b||"",0,"");if(!this.v.abr.enabled){var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.i.h,e=this.aa.create(this.F.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;if(f){c=Zf(f);this.Vd(c,!0);return}}Oj(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
344
- c=Ob(a);f=d=null;e=r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=cg(g);Ob(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?(f.enabled=!0,Qj(this)):d&&(d.enabled=!0,Qj(this))}};
345
- p.md=function(a,b){if(this.F&&this.D){this.ia=a;this.Ra=b||"";var c=gg(this.F.textStreams,this.ia,this.Ra)[0]||null;c&&c!=this.i.i&&(zi(this.j.g,c,!1),this.v.streaming.alwaysStreamText||this.Db())&&(Eh(this.i,c),Pj(this))}else{var d=Ob(a);(c=this.xb().find(function(e){return Ob(e.language)==d&&(!b||e.roles.includes(b))}))&&this.Qe(c)}};
346
- p.jg=function(a){if(this.F&&this.D){for(var b=null,c=r(this.F.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.aa=new pg(b.language,"",0,a),Oj(this))}};p.Db=function(){var a=this.W;return this.K?this.K.u.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Gj(this).some(function(b){return"showing"==b.mode}):a};
347
- function Gj(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Ij(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}
348
- p.be=function(a){a=!!a;if(this.W!=a){this.W=a;if(this.u==vj)this.K.u.setTextVisibility(a),this.v.streaming.alwaysStreamText||(a?this.i.i||(a=gg(this.F.textStreams,this.ia,this.Ra),0<a.length&&(Eh(this.i,a[0]),Pj(this))):yh(this.i));else if(this.g&&this.g.src&&this.g.textTracks){var b=Gj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Aj(this)}};
349
- p.Ff=function(){if(!this.V())return null;var a=this.$.l,b=0;if(this.D)b=this.D.l();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.F?new Date(1E3*(this.F.presentationTimeline.j+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
350
- p.ze=function(){if(!this.V())return null;if(this.F)return new Date(1E3*this.F.presentationTimeline.j);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Xc=function(){if(this.u==vj)return this.K.Xc();var a={total:[],audio:[],video:[],text:[]};this.u==Ej&&(a.total=Se(this.g.buffered));return a};
351
- p.getStats=function(){if(this.u!=vj&&this.u!=Ej)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};nj(this);var a=this.g;if(a.getVideoPlaybackQuality){a=a.getVideoPlaybackQuality();var b=this.j,c=Number(a.totalVideoFrames);b.P=Number(a.droppedVideoFrames);
352
- b.N=c;this.j.K=Number(a.corruptedVideoFrames)}this.l?(a=this.l,a=a.J?a.J:NaN):a=NaN;this.j.l=a;if(this.u==vj){if(a=this.i.h)this.j.A=(this.H?this.H.i:1)*a.bandwidth;a&&a.video&&(b=this.j,c=a.video.height||NaN,b.R=a.video.width||NaN,b.B=c);this.V()&&(a=this.ze().valueOf()+1E3*this.Oa().end,this.j.D=(Date.now()-a)/1E3);this.F&&this.F.presentationTimeline&&(this.j.J=this.F.presentationTimeline.g);a=this.A.getBandwidthEstimate();this.j.u=a}var d=this.j;a=d.R;b=d.B;c=d.A;var e=d.N,f=d.P,g=d.K,h=d.u,k=
353
- d.j,l=d.H,m=d.i,n=vi(d.h,"playing"),q=vi(d.h,"paused"),u=vi(d.h,"buffering"),v=d.l,A=d.D,w=d.J,z=wi(d.h),C=[];d=r(d.g.g);for(var B=d.next();!B.done;B=d.next())B=B.value,C.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,height:b,streamBandwidth:c,decodedFrames:e,droppedFrames:f,corruptedFrames:g,estimatedBandwidth:h,loadLatency:k,manifestTimeSeconds:l,drmTimeSeconds:m,playTime:n,pauseTime:q,bufferingTime:u,licenseTime:v,liveLatency:A,
354
- maxSegmentDuration:w,stateHistory:z,switchHistory:C}};
355
- p.addTextTrack=function(a,b,c,d,e,f){if(this.u==Ej)throw Error("State error!");if(this.u!=vj)throw Error("State error!");var g=this.F.presentationTimeline.getDuration();if(Infinity==g)throw new M(1,4,4033);a={id:this.Ie++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ch(0,g,[a]),mimeType:d,codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,
356
- audioSamplingRate:null,closedCaptions:null};this.F.textStreams.push(a);Cj(this);return $f(a)};p.Yd=function(a,b){this.Fd.width=a;this.Fd.height=b};p.Ud=function(){if(this.u==vj){var a=this.i;if(a.M.g)a=!1;else if(a.l)a=!1;else{for(var b=r(a.g.values()),c=b.next();!c.done;c=b.next())c=c.value,c.yc&&(c.yc=!1,xh(a,c,.1));a=!0}}else a=!1;return a};
357
- p.Af=function(){Qa("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.F};p.Bf=function(){return this.ib};
358
- function Ci(a){var b=qi();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.V()&&d.includes(c.code)&&(c.severity=1,a.Ud())};b.textDisplayFactory=function(){return a.Ya?new gi(a.g,a.Ya):new ai(a.g)};return b}p.ce=function(a){this.Ya=a};
359
- function gj(a,b){for(var c=new Set,d=r(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"==e.mimeType&&c.add(e.originalId);d=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=new dh;h={id:a.Ie++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:h,mimeType:"application/cea-608",codecs:"",kind:"caption",encrypted:!1,
307
+ function Wi(a,b){if(!zd())return!0;var c=b.mimeType,d=b.uri||"";c||(c={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"}[yg(d)]);return c?""==(b.I||Bd()).canPlayType(c)?!1:zd()&&(c in xg||yg(d)in zg)?Ed()&&a.v.streaming.useNativeHlsOnSafari:!0:
308
+ !1}function Ei(a,b,c){null==b.I&&(b.I=c.I,a.h.m(b.I,"error",function(){var d=Yi(a);d&&Zi(a,d)}));a.g=b.I;return Promise.resolve()}
309
+ function Fi(a,b){var c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return a.u!=Ri&&(a.u=Ai),c=a.sb.map(function(q){return q()}),a.sb=[],t(n,Promise.all(c),2);case 2:a.dispatchEvent(Oi($i));b.mimeType=null;b.startTime=null;b.uri=null;b.I&&(a.h.Ja(b.I,"loadedmetadata"),a.h.Ja(b.I,"playing"),a.h.Ja(b.I,"pause"),a.h.Ja(b.I,"ended"),a.h.Ja(b.I,"ratechange"));a.ua&&(a.ua.release(),a.ua=null);a.ab&&(a.ab.stop(),a.ab=null);if(!a.B){n.C(3);break}return t(n,a.B.stop(),4);case 4:a.B=null,a.kb=null;
310
+ case 3:if(!a.A){n.C(5);break}return t(n,a.A.stop(),5);case 5:if(!a.i){n.C(7);break}return t(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.H&&(a.H.release(),a.H=null);a.D&&(a.D.release(),a.D=null);if(!a.K){n.C(9);break}return t(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.N)a.N.onAssetUnload();if(!b.I||!b.I.src){n.C(11);break}return t(n,new Promise(function(q){return(new O(q)).V(.1)}),12);case 12:b.I.removeAttribute("src"),b.I.load();case 11:if(!a.l){n.C(13);break}return t(n,a.l.destroy(),14);case 14:a.l=
311
+ null;case 13:a.Sa=null;a.J=null;if(a.F){d=r(a.F.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.F.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.F=null;a.j=new zi;a.Tb=null;aj(a);x(n)}})}
312
+ function Gi(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=window.muxjs?new Le:new Me,d=a.v.textDisplayFactory,e=Fb(d),a.Tb=d,f=bj(b.I,c,e,function(h,k,l){h=r(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,q=l,u=r(m.frames),v=u.next();!v.done;v=u.next())cj(a,n,q,"ID3",v.value);if(a.N)a.N.onHlsTimedMetadata(m,n)}}),t(g,f.H,2);a.K=f;x(g)})}
313
+ function Hi(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.Z,a.Sa=d,f=a,t(h,wg(d,e,a.v.manifest.retryParameters,b.mimeType),2);f.kb=h.h;a.B=Fb(a.kb);g=Oc(a.v.manifest);c.I&&"AUDIO"===c.I.nodeName&&(g.disableVideo=!0);a.B.configure(g);x(h)})}
314
+ function Ii(a,b){var c=b.uri,d=a.Z;a.mb=new jh(function(){return a.Pa()});kh(a.mb,function(g){dj(a,ej,g);if(a.N)a.N.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return H(function(h){return h["return"](a.Ub(g))})},makeTextStreamsForClosedCaptions:function(g){return fj(a,g)},onTimelineRegionAdded:function(g){var h=a.mb;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=
315
+ l;break a}k=null}null==k&&(h.g.add(g),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Zi(a,g)}},f=Date.now()/1E3;return new Hc(function(){var g,h,k,l;return H(function(m){if(1==m.g)return g=a,t(m,a.B.start(c,e),2);g.F=m.h;h=Oi(gj);a.dispatchEvent(h);if(0==a.F.variants.length)throw new N(2,4,4036);hj(a.F);k=Date.now()/1E3;l=k-f;a.j.H=l;x(m)})}(),function(){return a.B.stop()})}
316
+ function Ji(a,b){var c,d;return H(function(e){if(1==e.g)return c=Date.now()/1E3,d=!0,a.l=ij(a,{bc:a.Z,onError:function(f){Zi(a,f)},gd:function(f){jj(a,f)},onExpirationUpdated:function(f,g){kj(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==lj&&d&&(d=!1,a.j.i=Date.now()/1E3-c)}}),a.l.configure(a.v.drm),t(e,Pd(a.l,a.F.variants,a.F.offlineSessionIds),2);if(3!=e.g)return t(e,a.l.qc(b.I),3);a.Ub(a.F);x(e)})}
317
+ function Ki(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v;return H(function(A){switch(A.g){case 1:b.startTime=c.startTime;d=b.I;e=b.uri;a.Sa=e;a.H=new ch({cd:function(){return b.I.playbackRate},$c:function(){return b.I.defaultPlaybackRate},ae:function(w){b.I.playbackRate=w},Je:function(w){b.I.currentTime+=w}});f=function(){return mj(a)};g=function(){return nj(a)};a.h.m(d,"playing",f);a.h.m(d,"pause",f);a.h.m(d,"ended",f);a.h.m(d,"ratechange",g);h=a.v.abrFactory;a.A&&a.ub==h||(a.ub=h,a.A=Fb(h),"function"!=typeof a.A.playbackRateChanged&&
318
+ (yb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.A.playbackRateChanged=function(){}),a.A.configure(a.v.abr));a.ba=new ng(a.v.preferredAudioLanguage,a.v.preferredVariantRole,a.v.preferredAudioChannelCount);a.ka=a.v.preferredTextLanguage;a.Ta=a.v.preferredTextRole;oj(a.F.presentationTimeline,a.v.playRangeStart,a.v.playRangeEnd);a.A.init(function(w,z,D){z=void 0===z?!1:z;D=void 0===D?0:D;a.i&&w!=a.i.h&&(xi(a.j.g,w,!0),Ch(a.i,w,z,D),pj(a))});a.D=qj(a,b.startTime);a.ua=
319
+ rj(a);k=Math.max(a.F.minBufferTime,a.v.streaming.rebufferingGoal);sj(a,k);Of(a.F,a.v.preferredAudioChannelCount);a.i=tj(a);a.i.configure(a.v.streaming);a.u=uj;a.dispatchEvent(Oi(vj));l=null;if(m=a.Ab().find(function(w){return w.active})){A.C(2);break}l=wj(a)?a.A.chooseVariant():null;xi(a.j.g,l,!0);Ch(a.i,l,!1,0);if(!a.v.streaming.startAtSegmentBoundary){A.C(3);break}n=a.D.l();return t(A,xj(l,n),4);case 4:q=A.h,a.D.B(q);case 3:pj(a);case 2:return u=a.zb().find(function(w){return w.active}),u||((v=
320
+ eg(a.F.textStreams,a.ka,a.Ta)[0]||null)&&yi(a.j.g,v,!0),l&&(v?(l.audio&&yj(a,l.audio,v)&&(a.X=!0),a.X&&a.K.u.setTextVisibility(!0),zj(a)):a.X=!1),v&&(a.v.streaming.alwaysStreamText||a.Fb())&&Dh(a.i,v)),t(A,a.i.start(),5);case 5:a.v.abr.enabled&&(a.A.enable(),Aj(a)),a.Ub(a.F),Bj(a),wj(a),a.F.variants.some(function(w){return w.primary}),a.h.Ga(d,"loadedmetadata",function(){a.j.j=Date.now()/1E3-c.ge}),x(A)}})}
321
+ function Li(a,b,c){var d,e,f,g;return H(function(h){return 1==h.g?(d=Ib,e=Date.now()/1E3,f=!0,a.l=ij(a,{bc:a.Z,onError:function(k){Zi(a,k)},gd:function(k){jj(a,k)},onExpirationUpdated:function(k,l){kj(a,k,l)},onEvent:function(k){a.dispatchEvent(k);k.type==lj&&f&&(f=!1,a.j.i=Date.now()/1E3-e)}}),a.l.configure(a.v.drm),g={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:
322
+ "video/mp4",codecs:c.mimeType?yd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.bb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0},t(h,Pd(a.l,[g],[]),2)):t(h,a.l.qc(b.I),0)})}
323
+ function Mi(a,b,c){function d(){return mj(a)}b.uri=c.uri;b.startTime=c.startTime;a.Sa=b.uri;a.D=new Tg(b.I);null!=b.startTime&&a.D.B(b.startTime);a.H=new ch({cd:function(){return b.I.playbackRate},$c:function(){return b.I.defaultPlaybackRate},ae:function(g){b.I.playbackRate=g},Je:function(g){b.I.currentTime+=g}});sj(a,a.v.streaming.rebufferingGoal);a.h.m(b.I,"playing",d);a.h.m(b.I,"pause",d);a.h.m(b.I,"ended",d);a.h.m(b.I,"ratechange",function(){return nj(a)});"none"!=a.g.preload&&a.h.Ga(a.g,"loadedmetadata",
324
+ function(){a.j.j=Date.now()/1E3-c.ge});a.g.audioTracks&&(a.h.m(a.g.audioTracks,"addtrack",function(){return Bj(a)}),a.h.m(a.g.audioTracks,"removetrack",function(){return Bj(a)}),a.h.m(a.g.audioTracks,"change",function(){return Bj(a)}));a.g.textTracks&&(a.h.m(a.g.textTracks,"addtrack",function(g){Bj(a);Cj(a,g)}),a.h.m(a.g.textTracks,"removetrack",function(){return Bj(a)}),a.h.m(a.g.textTracks,"change",function(){return Bj(a)}));b.I.src=b.uri;(Cd()||Dd("Web0S"))&&b.I.load();a.u=Dj;a.dispatchEvent(Oi(vj));
325
+ var e=new ic;Kg(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){e.resolve()});var f=!1;a.sb.push(function(){f=!0});Kg(a.g,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){var g;return H(function(h){if(1==h.g){if(f)return h["return"]();Ej(a);g=Fj(a);return g.find(function(k){return"disabled"!=k.mode})?h.C(2):t(h,new Promise(function(k){a.h.Ga(a.g.textTracks,"change",k);(new O(k)).V(1)}),2)}if(f)return h["return"]();Gj(a);x(h)})});a.g.error?e.reject(Yi(a)):"none"==a.g.preload&&(Oa('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.'),
326
+ e.resolve());a.h.Ga(a.g,"error",function(){e.reject(Yi(a))});return new Hc(e,function(){e.reject(new N(2,7,7001));return Promise.resolve()})}function Ej(a){var b=a.v.preferredAudioLanguage;if(""!=b){a.nd(b);var c=a.v.preferredVariantRole;""!=c&&a.nd(b,c)}}function Gj(a){var b=a.v.preferredTextLanguage;if(""!=b){a.od(b);var c=a.v.preferredTextRole;""!=c&&a.od(b,c)}}
327
+ function Cj(a,b){var c=b.track;"metadata"==c.kind&&(c.mode="hidden",a.h.m(c,"cuechange",function(){if(c.activeCues)for(var d=r(c.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,cj(a,e.startTime,e.endTime,e.type,e.value),a.N)a.N.onCueMetadataChange(e.value)}),(new O(function(){var d=Hj(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ba().V(.5))}
328
+ function cj(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Oi(Ij,b))}function hj(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 ij(a,b){return new Id(b,a.v.drm.updateExpirationTime)}function Ci(a){return new Wc(function(b,c){a.A&&a.A.segmentDownloaded(b,c)})}
329
+ function qj(a,b){return new Ug(a.g,a.F,a.v.streaming,b,function(){a.ua&&fh(a.ua,!0);if(a.i)for(var c=a.i,d=c.G.bd(),e=c.v.smallGapLimit,f=r(c.g.keys()),g=f.next();!g.done;g=f.next()){g=g.value;var h=c.g.get(g);h.oa=null;var k=c.G.U;"text"==g?(k=k.i,k=null==k.g||null==k.h?!1:d>=k.g&&d<k.h):(k=Bf(k,g),k=Oe(k,d,e));k||(null!=Cf(c.G.U,g)&&Gh(c,h),h.Ha&&(h.Ha.abort(),h.Ha=null),"text"===g&&c.G.U.D.h())}a.J&&Jj(a)},function(c){return a.dispatchEvent(c)})}
330
+ function rj(a){var b=new lh(a.mb);mh(b,function(d){dj(a,Kj,d)},function(d){dj(a,Lj,d)},function(d,e){e||(dj(a,Kj,d),dj(a,Lj,d))});var c=new eh(a.g);c.g.add(b);return c}function sj(a,b){a.J=new rg;a.J.g=tg;ug(a.J,b,Math.min(.5,b/2));aj(a);a.ab=(new O(function(){Jj(a)})).ia(.25)}
331
+ function Jj(a){switch(a.u){case Dj:if(a.g.ended)var b=!0;else{var c=Ne(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case uj:a:if(a.g.ended||zf(a.K))b=!0;else{if(a.F.presentationTimeline.W()){c=a.F.presentationTimeline.pb();var d=Ne(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Pe(a.g.buffered,a.g.currentTime);c=a.J;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?sg:tg;c.g=d;b!=d&&aj(a)}function bj(a,b,c,d){return new sf(a,b,c,d)}
332
+ function tj(a){return new oh(a.F,{bd:function(){return a.D.l()},getBandwidthEstimate:function(){return a.A.getBandwidthEstimate()},U:a.K,bc:a.Z,onError:function(b){return Zi(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Zf:function(){a.B&&a.B.update&&a.B.update()},Td:function(){a.D&&a.D.H();Jj(a)}})}
333
+ p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(yb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);var c=ri(this.v,a,Bi(this));Mj(this);return c};
334
+ function Mj(a){if(a.B){var b=Oc(a.v.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.B.configure(b)}a.l&&a.l.configure(a.v.drm);if(a.i){a.i.configure(a.v.streaming);try{a.Ub(a.F)}catch(f){Zi(a,f)}a.A&&wj(a);b=a.i.h;!b||b.allowedByApplication&&b.allowedByKeySystem||Nj(a)}if(a.K&&(b=a.v.textDisplayFactory,a.Tb!=b)){var c=Fb(b),d=a.K,e=d.u;d.u=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.i&&(d.i.i=c);a.Tb=b;a.i&&(b=a.i,(c=b.g.get("text"))&&Bh(b,c.stream,!0,0,!0))}a.A&&(a.A.configure(a.v.abr),
335
+ a.v.abr.enabled?a.A.enable():a.A.disable(),Aj(a));a.J&&(b=a.v.streaming.rebufferingGoal,a.F&&(b=Math.max(b,a.F.minBufferTime)),ug(a.J,b,Math.min(.5,b/2)))}p.getConfiguration=function(){var a=Bi(this);ri(a,this.v,Bi(this));return a};p.ig=function(){for(var a in this.v)delete this.v[a];ri(this.v,Bi(this),Bi(this));Mj(this)};p.yf=function(){return this.u};p.Ff=function(){return this.g};p.vc=function(){return this.Z};p.Fd=function(){return this.Sa};
336
+ p.Yc=function(){Pa("getAdManager","Shaka Player's ad features are currently in BETA and are NOT yet covered by semantic versioning compatibility guarantees. The API may change at any time!");return this.N};p.W=function(){return this.F?this.F.presentationTimeline.W():this.g&&this.g.src?Infinity==this.g.duration:!1};p.Db=function(){return this.F?this.F.presentationTimeline.Db():!1};
337
+ p.Ee=function(){if(this.F){var a=this.F.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};p.Pa=function(){if(this.F){var a=this.F.presentationTimeline;return{start:a.Zb(),end:a.eb()}}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}};p.keySystem=function(){return de(this.drmInfo())};p.drmInfo=function(){return this.l?this.l.i:null};
338
+ p.uc=function(){return this.l?this.l.uc():Infinity};p.Dc=function(){return this.J?this.J.g==tg:!1};p.wc=function(){return this.g?this.H?this.H.i:1:0};p.le=function(a){0==a?Oa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(a),this.u==uj&&(this.A.playbackRateChanged(a),Ah(this.i,1<Math.abs(a))))};p.qe=function(){var a=this.H.$c();this.u==Dj&&this.H.set(a);this.u==uj&&(this.H.set(a),this.A.playbackRateChanged(a),Ah(this.i,!1))};
339
+ p.Ab=function(){if(this.F){for(var a=this.i?this.i.h:null,b=[],c=0,d=r(this.F.variants),e=d.next();!e.done;e=d.next())if(e=e.value,cg(e)){var f=Xf(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 ag(g)}):[]};
340
+ p.zb=function(){if(this.F){for(var a=this.i?this.i.i:null,b=[],c=r(this.F.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Yf(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Fj(this).map(function(f){var g=bg(f);g.active="disabled"!=f.mode;g.type="text";g.originalTextId=f.id;"captions"==f.kind&&(g.mimeType="application/cea-608");f.kind&&(g.roles=[f.kind]);return g}):[]};
341
+ p.Se=function(a){if(this.F&&this.i){var b=this.F.textStreams.find(function(d){return d.id==a.id});b&&b!=this.i.i&&(yi(this.j.g,b,!1),Dh(this.i,b),Oj(this),this.ka=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Fj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Zf(c)==a.id?c.mode=this.X?"showing":"hidden":c.mode="disabled";Oj(this)}};
342
+ p.Xd=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.F&&this.i){this.v.abr.enabled&&Oa("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.F.variants.find(function(e){return e.id==a.id});d&&cg(d)&&(d==this.i.h?b&&Ch(this.i,d,b,c,!0):(xi(this.j.g,d,!1),Ch(this.i,d,b,c),Pj(this),this.ba=new mg(d),wj(this)))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);
343
+ b=c.find(function(e){return e.enabled});c=r(c);for(d=c.next();!d.done;d=c.next())d=d.value,Zf(d)==a.id&&(d.enabled=!0,d.id!==b.id&&(b.enabled=!1));Pj(this)}};p.pf=function(){return Qj(this.Ab())};p.Of=function(){return Qj(this.zb())};p.nf=function(){return Array.from(Rj(this.Ab()))};p.Nf=function(){return Array.from(Rj(this.zb()))};
344
+ p.nd=function(a,b){if(this.F&&this.D){this.ba=new ng(a,b||"",0,"");if(!this.v.abr.enabled){var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.i.h,e=this.ba.create(this.F.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;if(f){c=Xf(f);this.Xd(c,!0);return}}Nj(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
345
+ c=Mb(a);f=d=null;e=r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=ag(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?(f.enabled=!0,Pj(this)):d&&(d.enabled=!0,Pj(this))}};
346
+ p.od=function(a,b){if(this.F&&this.D){this.ka=a;this.Ta=b||"";var c=eg(this.F.textStreams,this.ka,this.Ta)[0]||null;c&&c!=this.i.i&&(yi(this.j.g,c,!1),this.v.streaming.alwaysStreamText||this.Fb())&&(Dh(this.i,c),Oj(this))}else{var d=Mb(a);(c=this.zb().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))}))&&this.Se(c)}};
347
+ p.kg=function(a){if(this.F&&this.D){for(var b=null,c=r(this.F.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ba=new ng(b.language,"",0,a),Nj(this))}};p.Fb=function(){var a=this.X;return this.K?this.K.u.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Fj(this).some(function(b){return"showing"==b.mode}):a};
348
+ function Fj(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Hj(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}
349
+ p.ee=function(a){a=!!a;if(this.X!=a){this.X=a;if(this.u==uj)this.K.u.setTextVisibility(a),this.v.streaming.alwaysStreamText||(a?this.i.i||(a=eg(this.F.textStreams,this.ka,this.Ta),0<a.length&&(Dh(this.i,a[0]),Oj(this))):zh(this.i));else if(this.g&&this.g.src&&this.g.textTracks){var b=Fj(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}zj(this)}};
350
+ p.Hf=function(){if(!this.W())return null;var a=this.aa.l,b=0;if(this.D)b=this.D.l();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.F?new Date(1E3*(this.F.presentationTimeline.j+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
351
+ p.Be=function(){if(!this.W())return null;if(this.F)return new Date(1E3*this.F.presentationTimeline.j);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};p.Zc=function(){if(this.u==uj)return this.K.Zc();var a={total:[],audio:[],video:[],text:[]};this.u==Dj&&(a.total=Qe(this.g.buffered));return a};
352
+ p.getStats=function(){if(this.u!=uj&&this.u!=Dj)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};mj(this);var a=this.g;if(a.getVideoPlaybackQuality){a=a.getVideoPlaybackQuality();var b=this.j,c=Number(a.totalVideoFrames);b.P=Number(a.droppedVideoFrames);
353
+ b.N=c;this.j.K=Number(a.corruptedVideoFrames)}this.l?(a=this.l,a=a.J?a.J:NaN):a=NaN;this.j.l=a;if(this.u==uj){if(a=this.i.h)this.j.A=(this.H?this.H.i:1)*a.bandwidth;a&&a.video&&(b=this.j,c=a.video.height||NaN,b.S=a.video.width||NaN,b.B=c);this.W()&&(a=this.Be().valueOf()+1E3*this.Pa().end,this.j.D=(Date.now()-a)/1E3);this.F&&this.F.presentationTimeline&&(this.j.J=this.F.presentationTimeline.g);a=this.A.getBandwidthEstimate();this.j.u=a}var d=this.j;a=d.S;b=d.B;c=d.A;var e=d.N,f=d.P,g=d.K,h=d.u,k=
354
+ d.j,l=d.H,m=d.i,n=ui(d.h,"playing"),q=ui(d.h,"paused"),u=ui(d.h,"buffering"),v=d.l,A=d.D,w=d.J,z=vi(d.h),D=[];d=r(d.g.g);for(var B=d.next();!B.done;B=d.next())B=B.value,D.push({timestamp:B.timestamp,id:B.id,type:B.type,fromAdaptation:B.fromAdaptation,bandwidth:B.bandwidth});return{width:a,height:b,streamBandwidth:c,decodedFrames:e,droppedFrames:f,corruptedFrames:g,estimatedBandwidth:h,loadLatency:k,manifestTimeSeconds:l,drmTimeSeconds:m,playTime:n,pauseTime:q,bufferingTime:u,licenseTime:v,liveLatency:A,
355
+ maxSegmentDuration:w,stateHistory:z,switchHistory:D}};
356
+ p.addTextTrack=function(a,b,c,d,e,f){if(this.u==Dj)throw Error("State error!");if(this.u!=uj)throw Error("State error!");var g=this.F.presentationTimeline.getDuration();if(Infinity==g)throw new N(1,4,4033);a={id:this.Ke++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:ah(0,g,[a]),mimeType:d,codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,
357
+ audioSamplingRate:null,closedCaptions:null};this.F.textStreams.push(a);Bj(this);return Yf(a)};p.$d=function(a,b){this.Hd.width=a;this.Hd.height=b};p.Wd=function(){if(this.u==uj){var a=this.i;if(a.M.g)a=!1;else if(a.l)a=!1;else{for(var b=r(a.g.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Ac&&(c.Ac=!1,vh(a,c,.1));a=!0}}else a=!1;return a};
358
+ p.Cf=function(){Oa("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.F};p.Df=function(){return this.kb};
359
+ function Bi(a){var b=pi();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.W()&&d.includes(c.code)&&(c.severity=1,a.Wd())};b.textDisplayFactory=function(){return a.$a?new fi(a.g,a.$a):new $h(a.g)};return b}p.fe=function(a){this.$a=a};
360
+ function fj(a,b){for(var c=new Set,d=r(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"==e.mimeType&&c.add(e.originalId);d=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=new bh;h={id:a.Ke++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:h,mimeType:"application/cea-608",codecs:"",kind:"caption",encrypted:!1,
360
361
  drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,channelsCount:null,audioSamplingRate:null,closedCaptions:null};b.textStreams.push(h);c.add(g)}}
361
- p.Sb=function(a){Xf(this.l,this.i?this.i.h:null,a);if(!a.variants.some(eg))throw new M(2,4,4032);for(var b=this.v.restrictions,c=this.Fd,d=!1,e=r(a.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.allowedByApplication;f.allowedByApplication=Wf(f,b,c);g!=f.allowedByApplication&&(d=!0)}d&&this.i&&Cj(this);if((b=this.l?this.l.i:null)&&this.l.u)for(c=r(a.variants),d=c.next();!d.done;d=c.next())for(d=d.value,d=r((d.video?d.video.drmInfos:[]).concat(d.audio?d.audio.drmInfos:[])),e=d.next();!e.done;e=
362
- d.next())if(e=e.value,e.keySystem==b.keySystem)for(e=r(e.initData||[]),f=e.next();!f.done;f=e.next())f=f.value,ae(this.l,f.initDataType,f.initData);Tj(this,a)};
363
- function yj(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n;return G(function(q){if(1==q.g)return k?t(q,k.createSegmentIndex(),2):q["return"](null);m=k.segmentIndex[Symbol.iterator]().seek(l);if(!m)return q["return"](null);n=m.startTime;return q["return"](n)})},t(h,e(c,b),2);if(3!=h.g)return f=h.h,t(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)})}
364
- function bj(a){var b=a.Bc();if(a.j&&a.J&&a.D){var c=a.H;c.j=b;fh(c);nj(a)}a.dispatchEvent(Pi(Uj,{buffering:b}))}function oj(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Pi(Vj),a.dispatchEvent(b))}function nj(a){if(a.j&&a.J){var b=a.j.h;a.J.g==vg?ui(b,"buffering"):a.g.paused?ui(b,"paused"):a.g.ended?ui(b,"ended"):ui(b,"playing")}}
365
- function xj(a){try{Tj(a,a.F)}catch(c){return $i(a,c),!1}var b=a.F.variants.filter(function(c){return eg(c)});b=a.aa.create(b);a.A.setVariants(Array.from(b.values()));return!0}function Oj(a){var b;if(b=xj(a)?a.A.chooseVariant():null){if(b==a.i.h)return;yi(a.j.g,b,!0);Dh(a.i,b,!0,0);Qj(a)}qj(a)}function zj(a,b,c){a=Ob(a.v.preferredTextLanguage);b=Ob(b.language);c=Ob(c.language);return Nb(c,a)&&!Nb(b,c)}function qj(a){var b=Pi(Wj);Xj(a,b)}function Cj(a){var b=Pi(Yj);Xj(a,b)}
366
- function Qj(a){var b=Pi(Zj);Xj(a,b)}function Pj(a){var b=Pi(ak);Xj(a,b)}function Aj(a){var b=Pi(bk);Xj(a,b)}function Bj(a){var b=Pi(ck,{Wf:a.v.abr.enabled});Xj(a,b)}function $i(a,b){if(a.u!=Si){var c=Pi(dk,{detail:b});a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function ej(a,b,c){a.dispatchEvent(Pi(b,{detail:{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement}}))}
367
- function Zi(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new M(2,3,3016,b,c,a.g.error.message)}
368
- function kj(a,b){if(a.i){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.F.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!ek.includes(l)}h!=f.allowedByKeySystem&&
369
- (e=!0)}}}e&&xj(a);(d=a.i.h)&&!d.allowedByKeySystem&&Oj(a);e&&Cj(a)}}function lj(a,b,c){if(a.B&&a.B.onExpirationUpdated)a.B.onExpirationUpdated(b,c);b=Pi(fk);a.dispatchEvent(b)}function pj(a,b,c){0<b&&(a.V()||a.Ue(b));b=a.getDuration();c<b&&(a.V()||a.Wa(c))}
370
- function Tj(a,b){var c=a.l?td(a.l.W):{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var q=n.next();!q.done;q=n.next()){q=q.value;var u=c[d?"00":q];u?ek.includes(u)&&h.add(u):g.add(q)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
371
- missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new M(2,4,4012,c);}function Xj(a,b){G(function(c){if(1==c.g)return t(c,Promise.resolve(),2);a.u!=Si&&a.dispatchEvent(b);x(c)})}function Sj(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Ob(c.language)):b.add("und");return b}
372
- function Rj(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c="und";var e=[];d.language&&(c=Ob(d.language));"variant"==d.type?e=d.audioRoles:e=d.roles;e&&e.length||(e=[""]);b.has(c)||b.set(c,new Set);d=r(e);for(e=d.next();!e.done;e=d.next())e=e.value,b.get(c).add(e)}var f=[];b.forEach(function(g,h){for(var k=r(g),l=k.next();!l.done;l=k.next())f.push({language:h,role:l.value})});return f}function Ui(){return new M(2,7,7E3)}
373
- function Oi(a,b,c,d,e,f){return d==a&&e.I==f.I&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Vh(){return{I:null,mimeType:null,startTime:null,ee:NaN,uri:null}}function Vi(a){return new Promise(function(b,c){a.Eb=function(){return c(Ui())};a.dd=function(){return b()};a.onError=function(d){return c(d)};a.fd=function(){return c(Ui())}})}J("shaka.Player",T);T.prototype.setVideoContainer=T.prototype.ce;T.prototype.getManifestParserFactory=T.prototype.Bf;T.prototype.getManifest=T.prototype.Af;
374
- T.prototype.retryStreaming=T.prototype.Ud;T.prototype.setMaxHardwareResolution=T.prototype.Yd;T.prototype.addTextTrack=T.prototype.addTextTrack;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.Xc;T.prototype.getPresentationStartTimeAsDate=T.prototype.ze;T.prototype.getPlayheadTimeAsDate=T.prototype.Ff;T.prototype.setTextTrackVisibility=T.prototype.be;T.prototype.isTextTrackVisible=T.prototype.Db;T.prototype.selectVariantsByLabel=T.prototype.jg;
375
- T.prototype.selectTextLanguage=T.prototype.md;T.prototype.selectAudioLanguage=T.prototype.ld;T.prototype.getTextLanguages=T.prototype.Lf;T.prototype.getAudioLanguages=T.prototype.lf;T.prototype.getTextLanguagesAndRoles=T.prototype.Mf;T.prototype.getAudioLanguagesAndRoles=T.prototype.mf;T.prototype.selectVariantTrack=T.prototype.Vd;T.prototype.selectTextTrack=T.prototype.Qe;T.prototype.getTextTracks=T.prototype.xb;T.prototype.getVariantTracks=T.prototype.yb;T.prototype.cancelTrickPlay=T.prototype.oe;
376
- T.prototype.trickPlay=T.prototype.je;T.prototype.getPlaybackRate=T.prototype.uc;T.prototype.isBuffering=T.prototype.Bc;T.prototype.getExpiration=T.prototype.sc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.seekRange=T.prototype.Oa;T.prototype.isAudioOnly=T.prototype.Ce;T.prototype.isInProgress=T.prototype.Bb;T.prototype.isLive=T.prototype.V;T.prototype.getAdManager=T.prototype.Wc;T.prototype.getAssetUri=T.prototype.Dd;
377
- T.prototype.getNetworkingEngine=T.prototype.tc;T.prototype.getMediaElement=T.prototype.Df;T.prototype.getLoadMode=T.prototype.wf;T.prototype.resetConfiguration=T.prototype.hg;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.unload=T.prototype.ke;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.nc;
378
- T.probeSupport=function(){var a,b,c,d,e,f;return G(function(g){if(1==g.g)return t(g,qe(),2);a=g.h;var h={};if(Ad()){for(var k in zg)h[k]=!0;for(var l in Bg)h[l]=!0}k={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};l=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,h[m]=Ad()?!!zg[m]:Bd(m);for(var n in k)h[n]=Ad()?!!Bg[n]:Bd(k[n]);b=h;h={};n=r('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","));
379
- for(k=n.next();!k.done;k=n.next())k=k.value,h[k]=Ad()?nf(k)?!0:MediaSource.isTypeSupported(k)||Cc(k):Bd(k),l=k.split(";")[0],h[l]=h[l]||h[k];c=h;d={manifest:b,media:c,drm:a};e=gk;for(f in e)d[f]=e[f]();return g["return"](d)})};T.isBrowserSupported=Ti;T.setAdManagerFactory=function(a){Ei=a};T.registerSupportPlugin=function(a,b){gk[a]=b};T.prototype.destroy=T.prototype.destroy;
380
- var ck="abrstatuschanged",Wj="adaptation",Uj="buffering",mj="drmsessionupdate",Sh="emsg",dk="error",fk="expirationupdated",Yi="loaded",Wi="loading",hj="manifestparsed",Jj="metadata",Qi="onstatechange",Ri="onstateidle",Vj="ratechange",wj="streaming",ak="textchanged",bk="texttrackvisibility",fj="timelineregionadded",Lj="timelineregionenter",Mj="timelineregionexit",Yj="trackschanged",aj="unloading",Zj="variantchanged",hk={yg:ck,zg:Wj,Ag:Uj,Bg:mj,Dg:Sh,Error:dk,Eg:fk,Gg:"largegap",Hg:Yi,Ig:Wi,Jg:hj,Metadata:Jj,
381
- Kg:Qi,Lg:Ri,Mg:Vj,Ng:wj,Og:ak,Pg:bk,Qg:fj,Rg:Lj,Sg:Mj,Tg:Yj,Ug:aj,Vg:Zj},Si=0,Bi=1,vj=2,Ej=3;T.LoadMode={DESTROYED:Si,NOT_LOADED:Bi,MEDIA_SOURCE:vj,SRC_EQUALS:Ej};T.version="v3.0.14";var ik=["3","0"];Db=new function(a){this.g=a;this.i=Eb;this.h=Fb}(new Bb(Number(ik[0]),Number(ik[1])));var ek=["output-restricted","internal-error"],gk={},Ei=null;function jk(){this.h=[];this.j=this.i=this.g=0};function V(a,b){var c=this;this.i=a;this.g=b;this.j=!1;this.l=this.g.getVolume();this.h=new kd;this.h.m(this.g,google.ima.AdEvent.Type.PAUSED,function(){c.j=!0});this.h.m(this.g,google.ima.AdEvent.Type.RESUMED,function(){c.j=!1})}p=V.prototype;p.getDuration=function(){return this.i.getDuration()};p.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.g.getRemainingTime()};p.isPaused=function(){return this.j};
362
+ p.Ub=function(a){Vf(this.l,this.i?this.i.h:null,a);if(!a.variants.some(cg))throw new N(2,4,4032);for(var b=this.v.restrictions,c=this.Hd,d=!1,e=r(a.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.allowedByApplication;f.allowedByApplication=Uf(f,b,c);g!=f.allowedByApplication&&(d=!0)}d&&this.i&&Bj(this);if((b=this.l?this.l.i:null)&&this.l.u)for(c=r(a.variants),d=c.next();!d.done;d=c.next())for(d=d.value,d=r((d.video?d.video.drmInfos:[]).concat(d.audio?d.audio.drmInfos:[])),e=d.next();!e.done;e=
363
+ d.next())if(e=e.value,e.keySystem==b.keySystem)for(e=r(e.initData||[]),f=e.next();!f.done;f=e.next())f=f.value,Zd(this.l,f.initDataType,f.initData);Sj(this,a)};
364
+ function xj(a,b){var c,d,e,f,g;return H(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n;return H(function(q){if(1==q.g)return k?t(q,k.createSegmentIndex(),2):q["return"](null);m=k.segmentIndex[Symbol.iterator]().seek(l);if(!m)return q["return"](null);n=m.startTime;return q["return"](n)})},t(h,e(c,b),2);if(3!=h.g)return f=h.h,t(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)})}
365
+ function aj(a){var b=a.Dc();if(a.j&&a.J&&a.D){var c=a.H;c.j=b;dh(c);mj(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Oi(Tj,b))}function nj(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Oi(Uj),a.dispatchEvent(b))}function mj(a){if(a.j&&a.J){var b=a.j.h;a.J.g==tg?ti(b,"buffering"):a.g.paused?ti(b,"paused"):a.g.ended?ti(b,"ended"):ti(b,"playing")}}
366
+ function wj(a){try{Sj(a,a.F)}catch(c){return Zi(a,c),!1}var b=a.F.variants.filter(function(c){return cg(c)});b=a.ba.create(b);a.A.setVariants(Array.from(b.values()));return!0}function Nj(a){var b;if(b=wj(a)?a.A.chooseVariant():null){if(b==a.i.h)return;xi(a.j.g,b,!0);Ch(a.i,b,!0,0);Pj(a)}pj(a)}function yj(a,b,c){a=Mb(a.v.preferredTextLanguage);b=Mb(b.language);c=Mb(c.language);return Jb(c,a)&&!Jb(b,c)}function pj(a){var b=Oi(Vj);Wj(a,b)}function Bj(a){var b=Oi(Xj);Wj(a,b)}
367
+ function Pj(a){var b=Oi(Yj);Wj(a,b)}function Oj(a){var b=Oi(Zj);Wj(a,b)}function zj(a){var b=Oi(ak);Wj(a,b)}function Aj(a){var b=(new Map).set("newStatus",a.v.abr.enabled);Wj(a,Oi(bk,b))}function Zi(a,b){if(a.u!=Ri){var c=Oi(ck,(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function dj(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(Oi(b,c))}
368
+ function Yi(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 N(2,3,3016,b,c,a.g.error.message)}
369
+ function jj(a,b){if(a.i){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.F.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!dk.includes(l)}h!=f.allowedByKeySystem&&
370
+ (e=!0)}}}e&&wj(a);(d=a.i.h)&&!d.allowedByKeySystem&&Nj(a);e&&Bj(a)}}function kj(a,b,c){if(a.B&&a.B.onExpirationUpdated)a.B.onExpirationUpdated(b,c);b=Oi(ek);a.dispatchEvent(b)}function oj(a,b,c){0<b&&(a.W()||a.We(b));b=a.getDuration();c<b&&(a.W()||a.Ya(c))}
371
+ function Sj(a,b){var c=a.l?sd(a.l.X):{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var q=n.next();!q.done;q=n.next()){q=q.value;var u=c[d?"00":q];u?dk.includes(u)&&h.add(u):g.add(q)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
372
+ missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new N(2,4,4012,c);}function Wj(a,b){H(function(c){if(1==c.g)return t(c,Promise.resolve(),2);a.u!=Ri&&a.dispatchEvent(b);x(c)})}function Rj(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
373
+ function Qj(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c="und";var e=[];d.language&&(c=Mb(d.language));"variant"==d.type?e=d.audioRoles:e=d.roles;e&&e.length||(e=[""]);b.has(c)||b.set(c,new Set);d=r(e);for(e=d.next();!e.done;e=d.next())e=e.value,b.get(c).add(e)}var f=[];b.forEach(function(g,h){for(var k=r(g),l=k.next();!l.done;l=k.next())f.push({language:h,role:l.value})});return f}function Ti(){return new N(2,7,7E3)}
374
+ function Ni(a,b,c,d,e,f){return d==a&&e.I==f.I&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Uh(){return{I:null,mimeType:null,startTime:null,ge:NaN,uri:null}}function Ui(a){return new Promise(function(b,c){a.Gb=function(){return c(Ti())};a.fd=function(){return b()};a.onError=function(d){return c(d)};a.hd=function(){return c(Ti())}})}L("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.fe;U.prototype.getManifestParserFactory=U.prototype.Df;U.prototype.getManifest=U.prototype.Cf;
375
+ U.prototype.retryStreaming=U.prototype.Wd;U.prototype.setMaxHardwareResolution=U.prototype.$d;U.prototype.addTextTrack=U.prototype.addTextTrack;U.prototype.getStats=U.prototype.getStats;U.prototype.getBufferedInfo=U.prototype.Zc;U.prototype.getPresentationStartTimeAsDate=U.prototype.Be;U.prototype.getPlayheadTimeAsDate=U.prototype.Hf;U.prototype.setTextTrackVisibility=U.prototype.ee;U.prototype.isTextTrackVisible=U.prototype.Fb;U.prototype.selectVariantsByLabel=U.prototype.kg;
376
+ U.prototype.selectTextLanguage=U.prototype.od;U.prototype.selectAudioLanguage=U.prototype.nd;U.prototype.getTextLanguages=U.prototype.Nf;U.prototype.getAudioLanguages=U.prototype.nf;U.prototype.getTextLanguagesAndRoles=U.prototype.Of;U.prototype.getAudioLanguagesAndRoles=U.prototype.pf;U.prototype.selectVariantTrack=U.prototype.Xd;U.prototype.selectTextTrack=U.prototype.Se;U.prototype.getTextTracks=U.prototype.zb;U.prototype.getVariantTracks=U.prototype.Ab;U.prototype.cancelTrickPlay=U.prototype.qe;
377
+ U.prototype.trickPlay=U.prototype.le;U.prototype.getPlaybackRate=U.prototype.wc;U.prototype.isBuffering=U.prototype.Dc;U.prototype.getExpiration=U.prototype.uc;U.prototype.drmInfo=U.prototype.drmInfo;U.prototype.keySystem=U.prototype.keySystem;U.prototype.seekRange=U.prototype.Pa;U.prototype.isAudioOnly=U.prototype.Ee;U.prototype.isInProgress=U.prototype.Db;U.prototype.isLive=U.prototype.W;U.prototype.getAdManager=U.prototype.Yc;U.prototype.getAssetUri=U.prototype.Fd;
378
+ U.prototype.getNetworkingEngine=U.prototype.vc;U.prototype.getMediaElement=U.prototype.Ff;U.prototype.getLoadMode=U.prototype.yf;U.prototype.resetConfiguration=U.prototype.ig;U.prototype.getConfiguration=U.prototype.getConfiguration;U.prototype.configure=U.prototype.configure;U.prototype.load=U.prototype.load;U.prototype.unload=U.prototype.me;U.prototype.detach=U.prototype.detach;U.prototype.attach=U.prototype.qc;
379
+ U.probeSupport=function(){var a,b,c,d,e,f;return H(function(g){if(1==g.g)return t(g,oe(),2);a=g.h;var h={};if(zd()){for(var k in xg)h[k]=!0;for(var l in zg)h[l]=!0}k={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};l=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,h[m]=zd()?!!xg[m]:Ad(m);for(var n in k)h[n]=zd()?!!zg[n]:Ad(k[n]);b=h;h={};n=r('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","));
380
+ for(k=n.next();!k.done;k=n.next())k=k.value,h[k]=zd()?lf(k)?!0:MediaSource.isTypeSupported(k)||Ac(k):Ad(k),l=k.split(";")[0],h[l]=h[l]||h[k];c=h;d={manifest:b,media:c,drm:a};e=fk;for(f in e)d[f]=e[f]();return g["return"](d)})};U.isBrowserSupported=Si;U.setAdManagerFactory=function(a){Di=a};U.registerSupportPlugin=function(a,b){fk[a]=b};U.prototype.destroy=U.prototype.destroy;
381
+ var bk="abrstatuschanged",Vj="adaptation",Tj="buffering",lj="drmsessionupdate",Rh="emsg",ck="error",ek="expirationupdated",Xi="loaded",Vi="loading",gj="manifestparsed",Ij="metadata",Pi="onstatechange",Qi="onstateidle",Uj="ratechange",vj="streaming",Zj="textchanged",ak="texttrackvisibility",ej="timelineregionadded",Kj="timelineregionenter",Lj="timelineregionexit",Xj="trackschanged",$i="unloading",Yj="variantchanged",gk={zg:bk,Ag:Vj,Bg:Tj,Cg:lj,Eg:Rh,Error:ck,Fg:ek,Hg:"largegap",Ig:Xi,Jg:Vi,Kg:gj,Metadata:Ij,
382
+ Lg:Pi,Mg:Qi,Ng:Uj,Og:vj,Pg:Zj,Qg:ak,Rg:ej,Sg:Kj,Tg:Lj,Ug:Xj,Vg:$i,Wg:Yj},Ri=0,Ai=1,uj=2,Dj=3;U.LoadMode={DESTROYED:Ri,NOT_LOADED:Ai,MEDIA_SOURCE:uj,SRC_EQUALS:Dj};U.version="v3.0.15";var hk=["3","0"];zb=new function(a){this.g=a;this.i=Ab;this.h=Bb}(new xb(Number(hk[0]),Number(hk[1])));var dk=["output-restricted","internal-error"],fk={},Di=null;function ik(){this.h=[];this.j=this.i=this.g=0};function V(a,b){var c=this;this.i=a;this.g=b;this.j=!1;this.l=this.g.getVolume();this.h=new jd;this.h.m(this.g,google.ima.AdEvent.Type.PAUSED,function(){c.j=!0});this.h.m(this.g,google.ima.AdEvent.Type.RESUMED,function(){c.j=!1})}p=V.prototype;p.getDuration=function(){return this.i.getDuration()};p.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.g.getRemainingTime()};p.isPaused=function(){return this.j};
382
383
  p.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.g.getAdSkippableState()};p.skip=function(){return this.g.skip()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.resume()};p.getVolume=function(){return this.g.getVolume()};p.setVolume=function(a){return this.g.setVolume(a)};p.isMuted=function(){return 0==this.g.getVolume()};
383
- p.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.i=null};J("shaka.ads.ClientSideAd",V);
384
+ p.resize=function(a,b){this.g.resize(a,b,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};p.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.i=null};L("shaka.ads.ClientSideAd",V);
384
385
  V.prototype.release=V.prototype.release;V.prototype.getPositionInSequence=V.prototype.getPositionInSequence;V.prototype.getSequenceLength=V.prototype.getSequenceLength;V.prototype.setMuted=V.prototype.setMuted;V.prototype.resize=V.prototype.resize;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.play=V.prototype.play;V.prototype.pause=V.prototype.pause;V.prototype.skip=V.prototype.skip;
385
- V.prototype.canSkipNow=V.prototype.canSkipNow;V.prototype.getTimeUntilSkippable=V.prototype.getTimeUntilSkippable;V.prototype.isSkippable=V.prototype.isSkippable;V.prototype.isPaused=V.prototype.isPaused;V.prototype.getRemainingTime=V.prototype.getRemainingTime;V.prototype.getMinSuggestedDuration=V.prototype.getMinSuggestedDuration;V.prototype.getDuration=V.prototype.getDuration;function kk(a,b,c,d){var e=this;this.u=a;this.g=b;this.B=null;this.D=NaN;this.j=d;this.A=null;this.h=new kd;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.u,this.g);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v3.0.14");this.i=null;this.h.Fa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){lk(e,f)});this.h.m(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,
386
- function(f){mk(e,f)});this.g.onended=function(){e.l.contentComplete()}}kk.prototype.stop=function(){this.i&&this.i.stop();this.u&&fi(this.u)};kk.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.i&&this.i.destroy();this.l.destroy()};function mk(a,b){b.getError();nk(a,null);a.j(new L("ad-cue-points-changed",{cuepoints:[]}))}
387
- function lk(a,b){a.j(new L("ads-loaded",{loadTime:Date.now()/1E3-a.D}));a.i=b.getAdsManager(a.g);a.j(new L("ima-ad-manager-loaded",{imaAdManager:a.i}));var c=a.i.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push(new ok(e.value));a.j(new L("ad-cue-points-changed",{cuepoints:d}))}pk(a);try{a.i.init(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.m(a.g,"loadeddata",function(){a.i.resize(a.g.offsetWidth,
388
- a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.g)),a.i.start()}catch(f){nk(a,null)}}
389
- function pk(a){a.h.m(a.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(b){mk(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(b){qk(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.STARTED,function(b){qk(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(b){a.j(new L("ad-first-quartile",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.MIDPOINT,function(b){a.j(new L("ad-midpoint",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.THIRD_QUARTILE,function(b){a.j(new L("ad-third-quartile",
390
- {originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.COMPLETE,function(b){a.j(new L("ad-complete",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(b){nk(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(b){nk(a,b)});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPED,function(b){a.j(new L("ad-skipped",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(b){a.j(new L("ad-volume-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_MUTED,
391
- function(b){a.j(new L("ad-muted",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.PAUSED,function(b){a.A.j=!0;a.j(new L("ad-paused",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.RESUMED,function(b){a.A.j=!1;a.j(new L("ad-resumed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(b){a.j(new L("ad-skip-state-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.CLICK,function(b){a.j(new L("ad-clicked",{originalEvent:b}))});a.h.m(a.i,
392
- google.ima.AdEvent.Type.AD_PROGRESS,function(b){a.j(new L("ad-progress",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_BUFFERING,function(b){a.j(new L("ad-buffering",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.IMPRESSION,function(b){a.j(new L("ad-impression",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(b){a.j(new L("ad-duration-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.USER_CLOSE,function(b){a.j(new L("ad-closed",{originalEvent:b}))});
393
- a.h.m(a.i,google.ima.AdEvent.Type.LOADED,function(b){a.j(new L("ad-loaded",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(b){a.j(new L("all-ads-completed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(b){a.j(new L("ad-linear-changed",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_METADATA,function(b){a.j(new L("ad-metadata",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.LOG,function(b){a.j(new L("ad-recoverable-error",
394
- {originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(b){a.j(new L("ad-break-ready",{originalEvent:b}))});a.h.m(a.i,google.ima.AdEvent.Type.INTERACTION,function(b){a.j(new L("ad-interaction",{originalEvent:b}))})}function qk(a,b){var c=b.getAd();a.A=new V(c,a.i);a.j(new L("ad-started",{ad:a.A,sdkAdObject:c,originalEvent:b}));a.u.setAttribute("ad-active","true");a.g.pause()}
395
- function nk(a,b){a.j(new L("ad-stopped",{originalEvent:b}));a.u.removeAttribute("ad-active");a.g.play()};function rk(a,b){this.i=a;this.h=null;this.g=b}p=rk.prototype;p.getDuration=function(){return this.h?this.h.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.i.isSkippable()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
386
+ V.prototype.canSkipNow=V.prototype.canSkipNow;V.prototype.getTimeUntilSkippable=V.prototype.getTimeUntilSkippable;V.prototype.isSkippable=V.prototype.isSkippable;V.prototype.isPaused=V.prototype.isPaused;V.prototype.getRemainingTime=V.prototype.getRemainingTime;V.prototype.getMinSuggestedDuration=V.prototype.getMinSuggestedDuration;V.prototype.getDuration=V.prototype.getDuration;function jk(a,b,c,d){var e=this;this.u=a;this.g=b;this.B=null;this.D=NaN;this.j=d;this.A=null;this.h=new jd;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.u,this.g);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v3.0.15");this.i=null;this.h.Ga(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){kk(e,f)});this.h.m(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,
387
+ function(f){lk(e,f)});this.g.onended=function(){e.l.contentComplete()}}jk.prototype.stop=function(){this.i&&this.i.stop();this.u&&ei(this.u)};jk.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.i&&this.i.destroy();this.l.destroy()};function lk(a,b){b.getError();mk(a,null);a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
388
+ function kk(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.D)));a.i=b.getAdsManager(a.g);a.j(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.i)));var c=a.i.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push(new nk(e.value));a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}ok(a);try{a.i.init(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),
389
+ a.h.m(a.g,"loadeddata",function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.i.resize(a.g.offsetWidth,a.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.g)),a.i.start()}catch(f){mk(a,null)}}
390
+ function ok(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.j(new M(d,e))}a.h.m(a.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){lk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){pk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.STARTED,function(c){pk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.m(a.i,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.m(a.i,google.ima.AdEvent.Type.THIRD_QUARTILE,
391
+ function(c){b(c,"ad-third-quartile")});a.h.m(a.i,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.m(a.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){mk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){mk(a,c)});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.m(a.i,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
392
+ a.h.m(a.i,google.ima.AdEvent.Type.PAUSED,function(c){a.A.j=!0;b(c,"ad-paused")});a.h.m(a.i,google.ima.AdEvent.Type.RESUMED,function(c){a.A.j=!1;b(c,"ad-resumed")});a.h.m(a.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){b(c,"ad-skip-state-changed")});a.h.m(a.i,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.m(a.i,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.m(a.i,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});a.h.m(a.i,
393
+ google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.m(a.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.m(a.i,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.m(a.i,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.m(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.m(a.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.m(a.i,google.ima.AdEvent.Type.AD_METADATA,
394
+ function(c){b(c,"ad-metadata")});a.h.m(a.i,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.m(a.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.m(a.i,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}function pk(a,b){var c=b.getAd();a.A=new V(c,a.i);c=(new Map).set("ad",a.A).set("sdkAdObject",c).set("originalEvent",b);a.j(new M("ad-started",c));a.u.setAttribute("ad-active","true");a.g.pause()}
395
+ function mk(a,b){a.j(new M("ad-stopped",(new Map).set("originalEvent",b)));a.u.removeAttribute("ad-active");a.g.play()};function qk(a,b){this.i=a;this.h=null;this.g=b}p=qk.prototype;p.getDuration=function(){return this.h?this.h.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.i.isSkippable()};p.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
396
396
  p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};
397
- p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.h=this.i=null};J("shaka.ads.ServerSideAd",rk);rk.prototype.release=rk.prototype.release;rk.prototype.getPositionInSequence=rk.prototype.getPositionInSequence;rk.prototype.getSequenceLength=rk.prototype.getSequenceLength;rk.prototype.setMuted=rk.prototype.setMuted;rk.prototype.resize=rk.prototype.resize;rk.prototype.isMuted=rk.prototype.isMuted;
398
- rk.prototype.setVolume=rk.prototype.setVolume;rk.prototype.getVolume=rk.prototype.getVolume;rk.prototype.play=rk.prototype.play;rk.prototype.pause=rk.prototype.pause;rk.prototype.skip=rk.prototype.skip;rk.prototype.canSkipNow=rk.prototype.canSkipNow;rk.prototype.getTimeUntilSkippable=rk.prototype.getTimeUntilSkippable;rk.prototype.isSkippable=rk.prototype.isSkippable;rk.prototype.isPaused=rk.prototype.isPaused;rk.prototype.getRemainingTime=rk.prototype.getRemainingTime;
399
- rk.prototype.getMinSuggestedDuration=rk.prototype.getMinSuggestedDuration;rk.prototype.getDuration=rk.prototype.getDuration;function sk(a,b,c,d){var e=this;this.B=a;this.g=b;this.l=null;this.K=NaN;this.j=d;this.J=!1;this.D=this.u=this.A=null;this.H="";this.h=new kd;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.i=new google.ima.dai.api.StreamManager(this.g,this.B,a);this.j(new L("ima-stream-manager-loaded",{imaStreamManager:this.i}));this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){tk(e,f)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.H.length?e.l.resolve(e.H):
400
- e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.u=new rk(f,e.g);e.D&&(e.u.h=e.D);e.j(new L("ad-started",{ad:e.u}));e.B.setAttribute("ad-active","true")});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");var f=e.g.currentTime;
401
- e.A&&e.A>f&&(e.g.currentTime=e.A,e.A=null)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.D=f.getStreamData().adProgressData;e.u&&(e.u.h=e.D)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new L("ad-first-quartile"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.j(new L("ad-midpoint"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.j(new L("ad-third-quartile"))});
402
- this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.j(new L("ad-complete"));e.j(new L("ad-stopped"));e.B.removeAttribute("ad-active");e.u=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.j(new L("ad-skipped"));e.j(new L("ad-stopped"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=r(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push(new ok(h.start,h.end));e.j(new L("ad-cue-points-changed",
403
- {cuepoints:f}))})}sk.prototype.stop=function(){this.H="";this.A=null};sk.prototype.release=function(){this.stop();this.h&&this.h.release()};sk.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.i.onTimedMetadata(b)}};
404
- function tk(a,b){a.j(new L("ads-loaded",{loadTime:Date.now()/1E3-a.K}));var c=b.getStreamData().url;a.l.resolve(c);a.l=null;a.J||a.h.m(a.g,"seeked",function(){var d=a.g.currentTime;if(0!=d){a.i.streamTimeForContentTime(d);var e=a.i.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.g.currentTime=e.start)}})};function W(){db.call(this);this.g=this.h=null;this.j=new jk;this.i=navigator.language}pa(W,db);p=W.prototype;p.setLocale=function(a){this.i=a};p.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new M(2,10,1E4);this.h&&this.h.release();this.h=new kk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
405
- p.release=function(){this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null)};p.onAssetUnload=function(){this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new L("ad-stopped"));this.j=new jk};p.requestClientSideAds=function(a){if(!this.h)throw new M(1,10,10001);var b=this.h;b.D=Date.now()/1E3;b.l.requestAds(a)};
406
- p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new M(2,10,10002);this.g&&this.g.release();this.g=new sk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
407
- p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Qa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v3.0.14";c=this.g;var d=b;c.l?c=Promise.reject(new M(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
408
- (c.J=!0),c.l=new kc,c.i.requestStream(a),c.H=d||"",c.K=Date.now()/1E3,c=c.l);return c};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Qa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v3.0.14";this.g.i.replaceAdTagParameters(a)};
409
- p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.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.i.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.i.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};J("shaka.ads.AdManager",W);
397
+ p.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};p.release=function(){this.g=this.h=this.i=null};L("shaka.ads.ServerSideAd",qk);qk.prototype.release=qk.prototype.release;qk.prototype.getPositionInSequence=qk.prototype.getPositionInSequence;qk.prototype.getSequenceLength=qk.prototype.getSequenceLength;qk.prototype.setMuted=qk.prototype.setMuted;qk.prototype.resize=qk.prototype.resize;qk.prototype.isMuted=qk.prototype.isMuted;
398
+ qk.prototype.setVolume=qk.prototype.setVolume;qk.prototype.getVolume=qk.prototype.getVolume;qk.prototype.play=qk.prototype.play;qk.prototype.pause=qk.prototype.pause;qk.prototype.skip=qk.prototype.skip;qk.prototype.canSkipNow=qk.prototype.canSkipNow;qk.prototype.getTimeUntilSkippable=qk.prototype.getTimeUntilSkippable;qk.prototype.isSkippable=qk.prototype.isSkippable;qk.prototype.isPaused=qk.prototype.isPaused;qk.prototype.getRemainingTime=qk.prototype.getRemainingTime;
399
+ qk.prototype.getMinSuggestedDuration=qk.prototype.getMinSuggestedDuration;qk.prototype.getDuration=qk.prototype.getDuration;function rk(a,b,c,d){var e=this;this.B=a;this.g=b;this.l=null;this.K=NaN;this.j=d;this.J=!1;this.D=this.u=this.A=null;this.H="";this.h=new jd;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.i=new google.ima.dai.api.StreamManager(this.g,this.B,a);this.j(new M("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.i)));this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){sk(e,f)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.H.length?e.l.resolve(e.H):
400
+ e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.u=new qk(f,e.g);e.D&&(e.u.h=e.D);e.j(new M("ad-started",(new Map).set("ad",e.u)));e.B.setAttribute("ad-active","true")});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
401
+ var f=e.g.currentTime;e.A&&e.A>f&&(e.g.currentTime=e.A,e.A=null)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.D=f.getStreamData().adProgressData;e.u&&(e.u.h=e.D)});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new M("ad-first-quartile"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.j(new M("ad-midpoint"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.j(new M("ad-third-quartile"))});
402
+ this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.j(new M("ad-complete"));e.j(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.u=null});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.j(new M("ad-skipped"));e.j(new M("ad-stopped"))});this.h.m(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=r(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push(new nk(h.start,h.end));e.j(new M("ad-cue-points-changed",
403
+ (new Map).set("cuepoints",f)))})}rk.prototype.stop=function(){this.H="";this.A=null};rk.prototype.release=function(){this.stop();this.h&&this.h.release()};rk.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.i.onTimedMetadata(b)}};
404
+ function sk(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.K)));var c=b.getStreamData().url;a.l.resolve(c);a.l=null;a.J||a.h.m(a.g,"seeked",function(){var d=a.g.currentTime;if(0!=d){a.i.streamTimeForContentTime(d);var e=a.i.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.g.currentTime=e.start)}})};function W(){$a.call(this);this.g=this.h=null;this.j=new ik;this.i=navigator.language}pa(W,$a);p=W.prototype;p.setLocale=function(a){this.i=a};p.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new N(2,10,1E4);this.h&&this.h.release();this.h=new jk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
405
+ p.release=function(){this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null)};p.onAssetUnload=function(){this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.j=new ik};p.requestClientSideAds=function(a){if(!this.h)throw new N(1,10,10001);var b=this.h;b.D=Date.now()/1E3;b.l.requestAds(a)};
406
+ p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new N(2,10,10002);this.g&&this.g.release();this.g=new rk(a,b,this.i,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.j.h.push(d.loadTime);break;case "ad-started":c.j.g++;break;case "ad-complete":c.j.i++;break;case "ad-skipped":c.j.j++}c.dispatchEvent(d)})};
407
+ p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new N(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Oa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v3.0.15";c=this.g;var d=b;c.l?c=Promise.reject(new N(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
408
+ (c.J=!0),c.l=new ic,c.i.requestStream(a),c.H=d||"",c.K=Date.now()/1E3,c=c.l);return c};p.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new N(1,10,10003);(a.mpt||a.mpv)&&Oa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v3.0.15";this.g.i.replaceAdTagParameters(a)};
409
+ p.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};p.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.i.processMetadata(b,c,a.startTime)}};p.onHlsTimedMetadata=function(a,b){this.g&&this.g.i.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};L("shaka.ads.AdManager",W);
410
410
  W.prototype.onCueMetadataChange=W.prototype.onCueMetadataChange;W.prototype.onHlsTimedMetadata=W.prototype.onHlsTimedMetadata;W.prototype.onDashTimedMetadata=W.prototype.onDashTimedMetadata;W.prototype.getStats=W.prototype.getStats;W.prototype.replaceServerSideAdTagParameters=W.prototype.replaceServerSideAdTagParameters;W.prototype.requestServerSideStream=W.prototype.requestServerSideStream;W.prototype.initServerSide=W.prototype.initServerSide;W.prototype.requestClientSideAds=W.prototype.requestClientSideAds;
411
- W.prototype.onAssetUnload=W.prototype.onAssetUnload;W.prototype.release=W.prototype.release;W.prototype.initClientSide=W.prototype.initClientSide;W.prototype.setLocale=W.prototype.setLocale;function ok(a,b){this.start=a;this.end=void 0===b?null:b}W.ADS_LOADED="ads-loaded";W.AD_STARTED="ad-started";W.AD_FIRST_QUARTILE="ad-first-quartile";W.AD_MIDPOINT="ad-midpoint";W.AD_THIRD_QUARTILE="ad-third-quartile";W.AD_COMPLETE="ad-complete";W.AD_STOPPED="ad-stopped";W.AD_SKIPPED="ad-skipped";
411
+ W.prototype.onAssetUnload=W.prototype.onAssetUnload;W.prototype.release=W.prototype.release;W.prototype.initClientSide=W.prototype.initClientSide;W.prototype.setLocale=W.prototype.setLocale;function nk(a,b){this.start=a;this.end=void 0===b?null:b}W.ADS_LOADED="ads-loaded";W.AD_STARTED="ad-started";W.AD_FIRST_QUARTILE="ad-first-quartile";W.AD_MIDPOINT="ad-midpoint";W.AD_THIRD_QUARTILE="ad-third-quartile";W.AD_COMPLETE="ad-complete";W.AD_STOPPED="ad-stopped";W.AD_SKIPPED="ad-skipped";
412
412
  W.AD_VOLUME_CHANGED="ad-volume-changed";W.AD_MUTED="ad-muted";W.AD_PAUSED="ad-paused";W.AD_RESUMED="ad-resumed";W.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";W.CUEPOINTS_CHANGED="ad-cue-points-changed";W.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";W.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";W.AD_CLICKED="ad-clicked";W.AD_PROGRESS="ad-progress";W.AD_BUFFERING="ad-buffering";W.AD_IMPRESSION="ad-impression";W.AD_DURATION_CHANGED="ad-duration-changed";W.AD_CLOSED="ad-closed";
413
- W.AD_LOADED="ad-loaded";W.ALL_ADS_COMPLETED="all-ads-completed";W.AD_LINEAR_CHANGED="ad-linear-changed";W.AD_METADATA="ad-metadata";W.AD_RECOVERABLE_ERROR="ad-recoverable-error";W.AD_BREAK_READY="ad-break-ready";W.AD_INTERACTION="ad-interaction";Ei=function(){return new W};function uk(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof L){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=r(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=r(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
414
- TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Se(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
415
- function vk(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=wk(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
416
- function wk(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
417
- var xk="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),yk="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),zk=["loop","playbackRate"],Ak=["pause","play"],Bk={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,isAudioOnly:10,
418
- isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Ck={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Dk=[["getConfiguration","configure"]],Ek=[["isTextTrackVisible","setTextTrackVisibility"]],Fk="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay".split(" "),Gk=["attach","detach","load",
419
- "unload"];function Hk(a,b,c,d,e,f){var g=this;this.N=a;this.j=new O(b);this.$=c;this.D=!1;this.B=d;this.K=e;this.R=f;this.h=this.u=!1;this.W="";this.A=null;this.H=function(){return Ik(g)};this.J=function(h,k){var l=vk(k);switch(l.type){case "event":var m=l.targetName;l=l.event;l=new L(l.type,l);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var q in m[n])l[q]=m[n][q]}g.D&&(g.$(),g.D=!1);break;case "asyncComplete":if(n=l.id,l=l.error,q=g.i[n],delete g.i[n],q)if(l){n=new M(l.severity,
420
- l.category,l.code);for(m in l)n[m]=l[m];q.reject(n)}else q.resolve()}};this.g={video:{},player:{}};this.P=0;this.i={};this.l=null;Jk.add(this)}p=Hk.prototype;p.destroy=function(){Jk["delete"](this);Kk(this);Lk&&Mk(this);this.j&&(this.j.stop(),this.j=null);this.K=this.B=null;this.h=this.u=!1;this.J=this.H=this.l=this.i=this.g=this.A=null;return Promise.resolve()};p.ma=function(){return this.h};p.jd=function(){return this.W};
421
- p.init=function(){if(this.N.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.u=!0;this.j.Aa();var a=new chrome.cast.SessionRequest(this.N);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Jk),d=c.next();!d.done;d=c.next())Nk(d.value,b)},function(b){for(var c=r(Jk),d=c.next();!d.done;d=c.next())d=d.value,Ok="available"==b,d.j.Aa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Ok&&this.j.U(Pk);(a=Lk)&&a.status!=chrome.cast.SessionStatus.STOPPED?Nk(this,
422
- a):Lk=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=Qk),window.__onGCastApiAvailable!=Qk&&Qa("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};p.Wd=function(a){this.A=a;this.h&&Rk(this,{type:"appData",appData:this.A})};
423
- p.cast=function(a){var b=this;return G(function(c){if(!b.u)throw new M(1,8,8E3);if(!Ok)throw new M(1,8,8001);if(b.h)throw new M(1,8,8002);b.l=new kc;chrome.cast.requestSession(function(d){return Sk(b,a,d)},function(d){return Tk(b,d)});return t(c,b.l,0)})};function Uk(a){if(a.h){var b=a.R();chrome.cast.requestSession(function(c){return Sk(a,b,c)},function(c){return Tk(a,c)})}}p.Tb=function(){if(this.h){Kk(this);if(Lk){Mk(this);try{Lk.stop(function(){},function(){})}catch(a){}Lk=null}Ik(this)}};
424
- p.get=function(a,b){var c=this;if("video"==a){if(Ak.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Ne.apply(c,[a,b].concat(ia(e)))}}else if("player"==a){if(Ck[b]&&!this.get("player","isLive")())return function(){};if(Fk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Ne.apply(c,[a,b].concat(ia(e)))};if(Gk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.eg.apply(c,
425
- [a,b].concat(ia(e)))};if(Bk[b])return function(){return c.g[a][b]}}return this.g[a][b]};p.set=function(a,b,c){this.g[a][b]=c;Rk(this,{type:"set",targetName:a,property:b,value:c})};function Sk(a,b,c){Lk=c;c.addUpdateListener(a.H);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.J);Ik(a);Rk(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}
426
- function Tk(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new M(2,8,c,b))}p.Ne=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];Rk(this,{type:"call",targetName:a,methodName:b,args:d})};p.eg=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=new kc;var f=this.P.toString();this.P++;this.i[f]=e;try{Rk(this,{type:"asyncCall",targetName:a,methodName:b,args:d,id:f})}catch(g){e.reject(g)}return e};
427
- function Nk(a,b){var c=a.R();a.l=new kc;a.D=!0;Sk(a,c,b)}function Mk(a){var b=Lk;b.removeUpdateListener(a.H);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.J)}function Ik(a){var b=Lk?"connected"==Lk.status:!1;if(a.h&&!b){a.K();for(var c in a.g)a.g[c]={};Kk(a)}a.h=b;a.W=b?Lk.receiver.friendlyName:"";a.j.Aa()}function Kk(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new M(1,7,7E3))}}
428
- function Rk(a,b){var c=uk(b),d=Lk;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Ua)}catch(e){throw c=new M(2,8,8005,e),d=new L("error",{detail:c}),a.B("player",d),a.Tb(),c;}}var Pk=.02,Ok=!1,Lk=null,Jk=new Set;function Qk(a){if(a){a=r(Jk);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function Vk(a,b,c){db.call(this);var d=this;this.j=a;this.i=b;this.h=this.A=this.l=this.B=this.u=null;this.H=c;this.D=new Map;this.g=new Hk(c,function(){return Wk(d)},function(){return Xk(d)},function(e,f){return Yk(d,e,f)},function(){return Zk(d)},function(){return $k(d)});al(this)}pa(Vk,db);p=Vk.prototype;
429
- p.destroy=function(a){a&&this.g.Tb();this.h&&(this.h.release(),this.h=null);a=[];this.i&&(a.push(this.i.destroy()),this.i=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.u=this.j=null;return Promise.all(a)};p.xc=function(){return this.u};p.Wb=function(){return this.B};p.me=function(){return this.g.u&&Ok};p.ma=function(){return this.g.ma()};p.jd=function(){return this.g.jd()};
430
- p.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=$k(a),t(c,a.g.cast(b),2)):a.i?t(c,a.i.ke(),0):c["return"]()})};p.Wd=function(a){this.g.Wd(a)};p.We=function(){Uk(this.g)};p.Tb=function(){this.g.Tb()};
431
- p.re=function(a){var b=this;return G(function(c){if(1==c.g){if(a==b.H)return c["return"]();b.H=a;b.g.Tb();return t(c,b.g.destroy(),2)}b.g=null;b.g=new Hk(a,function(){return Wk(b)},function(){return Xk(b)},function(d,e){return Yk(b,d,e)},function(){return Zk(b)},function(){return $k(b)});b.g.init();x(c)})};
432
- function al(a){a.g.init();a.h=new kd;for(var b=r(xk),c=b.next();!c.done;c=b.next())a.h.m(a.j,c.value,function(f){a.g.ma()||(f=new L(f.type,f),a.l.dispatchEvent(f))});for(var d in hk)a.h.m(a.i,hk[d],function(f){a.g.ma()||a.A.dispatchEvent(f)});a.u={};b={};for(var e in a.j)b.ec=e,Object.defineProperty(a.u,b.ec,{configurable:!1,enumerable:!0,get:function(f){return function(){return bl(a,f.ec)}}(b),set:function(f){return function(g){var h=f.ec;a.g.ma()?a.g.set("video",h,g):a.j[h]=g}}(b)}),b={ec:b.ec};
433
- a.B={};cl(a,function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return dl(a,f)}})});el(a);a.l=new db;a.l.Qc=a.u;a.A=new db;a.A.Qc=a.B}function el(a){var b=new Map;cl(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.D.set(c,e):a.D.set(e,c)}else b.set(d,c)})}
434
- function cl(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.i,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
435
- function $k(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.i.Dd(),startTime:null};a.j.pause();for(var c=r(zk),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.j[d];a.j.ended||(b.startTime=a.j.currentTime);c=r(Dk);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.i[e[0]]();b.player[d]=e}c=r(Ek);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.i[e[0]](),b.playerAfterLoad[d]=e;return b}function Wk(a){var b=new L("caststatuschanged");a.dispatchEvent(b)}
436
- function Xk(a){var b=new L(a.u.paused?"pause":"play");a.l.dispatchEvent(b)}
437
- function Zk(a){for(var b=r(Dk),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.i[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.j.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.j.autoplay=!1,b=a.i.load(e,d));var g={};c=r(zk);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.j){for(var h=r(zk),k=h.next();!k.done;k=h.next())k=k.value,a.j[k]=g[k];h=r(Ek);for(k=
438
- h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.i[k](l)}a.j.autoplay=f;e&&a.j.play()}},function(h){h=new L(dk,{detail:h});a.i.dispatchEvent(h)})}
439
- function bl(a,b){if("addEventListener"==b)return function(d,e,f){return a.l.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.l.removeEventListener(d,e,f)};if(a.g.ma()&&0==Object.keys(a.g.g.video).length){var c=a.j[b];if("function"!=typeof c)return c}return a.g.ma()?a.g.get("video",b):(c=a.j[b],"function"==typeof c&&(c=c.bind(a.j)),c)}
440
- function dl(a,b){a.D.has(b)&&(b=a.D.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.u};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.i.tc()};if("getAdManager"==b)return function(){return a.i.Wc()};if("setVideoContainer"==b)return function(c){return a.i.ce(c)};
441
- if(a.g.ma()){if("getManifest"==b||"drmInfo"==b)return function(){Qa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Qa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.ma()&&0==Object.keys(a.g.g.video).length&&Bk[b]||!a.g.ma()?a.i[b].bind(a.i):a.g.get("player",b)}function Yk(a,b,c){a.g.ma()&&("video"==b?a.l.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}J("shaka.cast.CastProxy",Vk);Vk.prototype.changeReceiverId=Vk.prototype.re;
442
- Vk.prototype.forceDisconnect=Vk.prototype.Tb;Vk.prototype.suggestDisconnect=Vk.prototype.We;Vk.prototype.setAppData=Vk.prototype.Wd;Vk.prototype.cast=Vk.prototype.cast;Vk.prototype.receiverName=Vk.prototype.jd;Vk.prototype.isCasting=Vk.prototype.ma;Vk.prototype.canCast=Vk.prototype.me;Vk.prototype.getPlayer=Vk.prototype.Wb;Vk.prototype.getVideo=Vk.prototype.xc;Vk.prototype.destroy=Vk.prototype.destroy;function fl(a,b,c,d){db.call(this);var e=this;this.g=a;this.i=b;this.h=new kd;this.P={video:a,player:b};this.J=c||function(){};this.R=d||function(f){return f};this.j=null;this.K=!1;this.A=!0;this.u=0;this.H=!1;this.D=!0;this.B=this.l=null;this.N=new O(function(){gl(e)});hl(this)}pa(fl,db);p=fl.prototype;p.isConnected=function(){return this.K};p.Qf=function(){return this.A};p.mg=function(a){this.j=a};p.jf=function(){this.j=null};
443
- p.ng=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.title=a};p.lg=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.images=[{url:a}]};p.kg=function(a){this.j||(this.j={});this.j.artist=a;this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
444
- p.destroy=function(){var a=this,b,c;return G(function(d){if(1==d.g)return a.h&&(a.h.release(),a.h=null),b=[],a.i&&(b.push(a.i.destroy()),a.i=null),a.N&&(a.N.stop(),a.N=null),a.g=null,a.P=null,a.J=null,a.K=!1,a.A=!0,a.l=null,a.B=null,t(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();x(d)})};
445
- function hl(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return il(a)};b.onSenderDisconnected=function(){return il(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&jl(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);jl(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 kl(a,
446
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return ll(a,e)};b.start();b=r(xk);for(var c=b.next();!c.done;c=b.next())a.h.m(a.g,c.value,function(e){return ml(a,"video",e)});for(var d in hk)a.h.m(a.i,hk[d],function(e){return ml(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.i.Yd(3840,2160):a.i.Yd(1920,1080);a.h.m(a.g,"loadeddata",function(){a.H=!0});a.h.m(a.i,"loading",function(){a.A=
447
- !1;nl(a)});a.h.m(a.g,"playing",function(){a.A=!1;nl(a)});a.h.m(a.g,"pause",function(){nl(a)});a.h.m(a.i,"unloading",function(){a.A=!0;nl(a)});a.h.m(a.g,"ended",function(){(new O(function(){a.g&&a.g.ended&&(a.A=!0,nl(a))})).U(ol)})}function il(a){a.u=0;a.D=!0;a.K=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;nl(a)}
448
- function nl(a){var b;G(function(c){if(1==c.g)return t(c,Promise.resolve(),2);if(!a.i)return c["return"]();b=new L("caststatuschanged");a.dispatchEvent(b);pl(a)||ql(a);x(c)})}
449
- function rl(a,b,c){var d,e,f,g,h,k,l,m,n,q;G(function(u){switch(u.g){case 1:for(d in b.player)e=b.player[d],a.i[d](e);a.J(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,y(u,5),t(u,a.i.load(b.manifest,b.startTime),7)):t(u,Promise.resolve(),3);case 7:ua(u,3);break;case 5:return g=D(u),h=dk,k=new L(h,{detail:g}),a.i.dispatchEvent(k),u["return"]();case 3:if(!a.i)return u["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)q=b.playerAfterLoad[n],a.i[n](q);a.g.autoplay=f;
450
- b.manifest&&(a.g.play(),ql(a));x(u)}})}function ml(a,b,c){a.i&&(gl(a),jl(a,{type:"event",targetName:b,event:c},a.l))}
451
- function gl(a){a.N.U(sl);for(var b={video:{},player:{}},c=r(yk),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.i.V())for(var e in Ck)0==a.u%Ck[e]&&(b.player[e]=a.i[e]());for(var f in Bk)0==a.u%Bk[f]&&(b.player[f]=a.i[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.H&&(a.u+=1);jl(a,{type:"update",update:b},a.l);pl(a)}function pl(a){return a.D&&(a.g.duration||a.i.V())?(tl(a),a.D=!1,!0):!1}
452
- function tl(a,b){var c={contentId:a.i.Dd(),streamType:a.i.V()?"LIVE":"BUFFERED",contentType:""};a.i.V()||(c.duration=a.g.duration);a.j&&(c.metadata=a.j);ql(a,void 0===b?0:b,c)}
453
- function ll(a,b){var c=vk(b.data);switch(c.type){case "init":a.u=0;a.H=!1;a.D=!0;rl(a,c.initState,c.appData);gl(a);break;case "appData":a.J(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.P[d][e]=c;break;case "call":d=a.P[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
454
- c.methodName;"player"==d&&"load"==e&&(a.u=0,a.H=!1);var g=c.id,h=b.senderId;f=a.P[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.D=!0}));c.then(function(){return ul(a,h,g,null)},function(k){return ul(a,h,g,k)})}}
455
- function kl(a,b){var c=vk(b.data);switch(c.type){case "PLAY":a.g.play();ql(a);break;case "PAUSE":a.g.pause();ql(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),ql(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),ql(a));break;case "STOP":a.i.ke().then(function(){a.i&&ql(a)});break;case "GET_STATUS":tl(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
456
- null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||ql(a);break;case "LOAD":a.u=0;a.H=!1;a.D=!1;d=c.media;e=c.currentTime;f=a.R(d.contentId);g=c.autoplay||!0;a.J(d.customData);g&&(a.g.autoplay=!0);a.i.load(f,e).then(function(){a.i&&tl(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");jl(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:jl(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
457
- function ul(a,b,c,d){a.i&&jl(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function jl(a,b,c,d){a.K&&(a=uk(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function ql(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?vl:a.i.Bc()?wl:a.g.paused?xl:yl,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);jl(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
458
- J("shaka.cast.CastReceiver",fl);fl.prototype.destroy=fl.prototype.destroy;fl.prototype.setContentArtist=fl.prototype.kg;fl.prototype.setContentImage=fl.prototype.lg;fl.prototype.setContentTitle=fl.prototype.ng;fl.prototype.clearContentMetadata=fl.prototype.jf;fl.prototype.setContentMetadata=fl.prototype.mg;fl.prototype.isIdle=fl.prototype.Qf;fl.prototype.isConnected=fl.prototype.isConnected;var sl=.5,ol=5,vl="IDLE",yl="PLAYING",wl="BUFFERING",xl="PAUSED";function zl(a){var b=this;this.g=[];this.h=[];this.data=[];(new Ae).box("moov",Ee).ba("pssh",function(c){if(!(1<c.version)){var d=gc(c.reader.X,-12,c.size);b.data.push(d);b.g.push(zc(c.reader.Fb(16)));if(0<c.version){d=c.reader.S();d=r(kb(d));for(var e=d.next();!e.done;e=d.next())e=zc(c.reader.Fb(16)),b.h.push(e)}}}).parse(a)}
459
- function Al(a){if(!a)return a;var b=new zl(a);if(1>=b.data.length)return a;a=[];var c={};b=r(b.data);for(var d=b.next();!d.done;c={Lc:c.Lc},d=b.next())c.Lc=d.value,a.some(function(e){return function(f){return ec(f,e.Lc)}}(c))||a.push(c.Lc);return Ac.apply(uc,ia(a))};function Bl(a,b){var c=Cl(a,b);return 1!=c.length?null:c[0]}function Dl(a,b,c){a=El(a,b,c);return 1!=a.length?null:a[0]}function Cl(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName==b})}function El(a,b,c){return Array.from(a.childNodes).filter(function(d){return d instanceof Element&&d.localName==c&&d.namespaceURI==b})}function Fl(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}
460
- function Gl(a){return Array.from(a.childNodes).every(function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null}function Hl(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 Il(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:Math.floor(a/1E3)}
461
- function Jl(a){if(!a)return null;a=/^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}function Kl(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}
462
- function Ll(a){a=Number(a);return 0===a%1?a:null}function Ml(a){a=Number(a);return 0===a%1&&0<a?a:null}function Nl(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Ol(a){var b;a=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(a)?null:a}function Pl(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,"text/xml")}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d}
463
- function Ql(a,b){try{var c=nc(a);return Pl(c,b)}catch(d){return null}};function Rl(a,b){var c=Sl(a),d=null,e=[],f=[],g=new Set(c.map(function(k){return k.keyId}));g["delete"](null);if(1<g.size)throw new M(2,4,4010);b||(f=c.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Pe?(d=k.init||d,!1):!0}),f.length&&(e=Tl(d,f),0==e.length&&(e=[Lb("",d)])));if(c.length&&(b||!f.length))for(e=[],c=r(Ul.values()),f=c.next();!f.done;f=c.next())f=f.value,"org.w3.clearkey"!=f&&e.push(Lb(f,d));if(g=Array.from(g)[0]||null)for(c=r(e),f=c.next();!f.done;f=c.next()){f=r(f.value.initData);
464
- for(var h=f.next();!h.done;h=f.next())h.value.keyId=g}return{ue:g,Wg:d,drmInfos:e,xe:!0}}function Vl(a,b,c){var d=Rl(a,c);if(b.xe){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==d.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=d.drmInfos;b.xe=!1}else if(0<d.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(e){return d.drmInfos.some(function(f){return f.keySystem==e.keySystem})}),0==b.drmInfos.length))throw new M(2,4,4008);return d.ue||b.ue}
465
- function Wl(a){var b=0,c=jc(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}
466
- function Xl(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
467
- function Tl(a,b){for(var c=[],d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=Ul.get(e.Pe);if(f){var g;if(g=Dl(e.node,"urn:microsoft:playready","pro")){g=xc(g.textContent);var h=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),k=g.length,l=h.length+16+k,m=new Uint8Array(l),n=jc(m),q=0;n.setUint32(q,l);q+=4;n.setUint32(q,1886614376);q+=4;n.setUint32(q,0);q+=4;m.set(h,q);q+=h.length;n.setUint32(q,k);q+=4;m.set(g,q);g=[{initData:m,initDataType:"cenc",keyId:e.keyId}]}else g=
468
- null;g=Lb(f,e.init||a||g);if(f=Yl.get(f))g.licenseServerUri=f(e);c.push(g)}}return c}function Sl(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Zl(c.value))&&b.push(c);return b}
469
- function Zl(a){var b=a.getAttribute("schemeIdUri"),c=Fl(a,"urn:mpeg:cenc:2013","default_KID"),d=El(a,"urn:mpeg:cenc:2013","pssh").map(Gl);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new M(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:xc(f),keyId:null}})}catch(f){throw new M(2,4,4007);}return{node:a,Pe:b,keyId:c,init:0<e.length?e:null}}
470
- var Ul=(new Map).set("urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b","org.w3.clearkey").set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine.alpha").set("urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb","com.adobe.primetime"),Yl=(new Map).set("com.widevine.alpha",function(a){return(a=Dl(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||
471
- "":""}).set("com.microsoft.playready",function(a){a=Dl(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=xc(a.textContent);a=Wl(a).filter(function(b){return 1===b.type})[0];if(!a)return"";a=pc(a.value,!0);return(a=Pl(a,"WRMHEADER"))?Xl(a):""});function $l(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=
413
+ W.AD_LOADED="ad-loaded";W.ALL_ADS_COMPLETED="all-ads-completed";W.AD_LINEAR_CHANGED="ad-linear-changed";W.AD_METADATA="ad-metadata";W.AD_RECOVERABLE_ERROR="ad-recoverable-error";W.AD_BREAK_READY="ad-break-ready";W.AD_INTERACTION="ad-interaction";Di=function(){return new W};function tk(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof M){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=r(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=r(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
414
+ TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Qe(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
415
+ function uk(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=vk(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
416
+ function vk(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
417
+ var wk="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),xk="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),yk=["loop","playbackRate"],zk=["pause","play"],Ak={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,isAudioOnly:10,
418
+ isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Bk={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Ck=[["getConfiguration","configure"]],Dk=[["isTextTrackVisible","setTextTrackVisibility"]],Ek="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay".split(" "),Fk=["attach","detach","load",
419
+ "unload"];function Gk(a,b,c,d,e,f){var g=this;this.N=a;this.j=new O(b);this.aa=c;this.D=!1;this.B=d;this.K=e;this.S=f;this.h=this.u=!1;this.X="";this.A=null;this.H=function(){return Hk(g)};this.J=function(h,k){var l=uk(k);switch(l.type){case "event":var m=l.targetName;l=La(l.event);g.B(m,l);break;case "update":m=l.update;for(var n in m){l=g.g[n]||{};for(var q in m[n])l[q]=m[n][q]}g.D&&(g.aa(),g.D=!1);break;case "asyncComplete":if(n=l.id,l=l.error,q=g.i[n],delete g.i[n],q)if(l){n=new N(l.severity,l.category,
420
+ l.code);for(m in l)n[m]=l[m];q.reject(n)}else q.resolve()}};this.g={video:{},player:{}};this.P=0;this.i={};this.l=null;Ik.add(this)}p=Gk.prototype;p.destroy=function(){Ik["delete"](this);Jk(this);Kk&&Lk(this);this.j&&(this.j.stop(),this.j=null);this.K=this.B=null;this.h=this.u=!1;this.J=this.H=this.l=this.i=this.g=this.A=null;return Promise.resolve()};p.na=function(){return this.h};p.ld=function(){return this.X};
421
+ p.init=function(){if(this.N.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.u=!0;this.j.Ba();var a=new chrome.cast.SessionRequest(this.N);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Ik),d=c.next();!d.done;d=c.next())Mk(d.value,b)},function(b){for(var c=r(Ik),d=c.next();!d.done;d=c.next())d=d.value,Nk="available"==b,d.j.Ba()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Nk&&this.j.V(Ok);(a=Kk)&&a.status!=chrome.cast.SessionStatus.STOPPED?Mk(this,
422
+ a):Kk=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=Pk),window.__onGCastApiAvailable!=Pk&&Oa("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};p.Yd=function(a){this.A=a;this.h&&Qk(this,{type:"appData",appData:this.A})};
423
+ p.cast=function(a){var b=this;return H(function(c){if(!b.u)throw new N(1,8,8E3);if(!Nk)throw new N(1,8,8001);if(b.h)throw new N(1,8,8002);b.l=new ic;chrome.cast.requestSession(function(d){return Rk(b,a,d)},function(d){return Sk(b,d)});return t(c,b.l,0)})};function Tk(a){if(a.h){var b=a.S();chrome.cast.requestSession(function(c){return Rk(a,b,c)},function(c){return Sk(a,c)})}}p.Vb=function(){if(this.h){Jk(this);if(Kk){Lk(this);try{Kk.stop(function(){},function(){})}catch(a){}Kk=null}Hk(this)}};
424
+ p.get=function(a,b){var c=this;if("video"==a){if(zk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Pe.apply(c,[a,b].concat(ia(e)))}}else if("player"==a){if(Bk[b]&&!this.get("player","isLive")())return function(){};if(Ek.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.Pe.apply(c,[a,b].concat(ia(e)))};if(Fk.includes(b))return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];return c.fg.apply(c,
425
+ [a,b].concat(ia(e)))};if(Ak[b])return function(){return c.g[a][b]}}return this.g[a][b]};p.set=function(a,b,c){this.g[a][b]=c;Qk(this,{type:"set",targetName:a,property:b,value:c})};function Rk(a,b,c){Kk=c;c.addUpdateListener(a.H);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.J);Hk(a);Qk(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}
426
+ function Sk(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 N(2,8,c,b))}p.Pe=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];Qk(this,{type:"call",targetName:a,methodName:b,args:d})};p.fg=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];e=new ic;var f=this.P.toString();this.P++;this.i[f]=e;try{Qk(this,{type:"asyncCall",targetName:a,methodName:b,args:d,id:f})}catch(g){e.reject(g)}return e};
427
+ function Mk(a,b){var c=a.S();a.l=new ic;a.D=!0;Rk(a,c,b)}function Lk(a){var b=Kk;b.removeUpdateListener(a.H);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.J)}function Hk(a){var b=Kk?"connected"==Kk.status:!1;if(a.h&&!b){a.K();for(var c in a.g)a.g[c]={};Jk(a)}a.h=b;a.X=b?Kk.receiver.friendlyName:"";a.j.Ba()}function Jk(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new N(1,7,7E3))}}
428
+ function Qk(a,b){var c=tk(b),d=Kk;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Ra)}catch(e){throw c=new N(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.Vb(),c;}}var Ok=.02,Nk=!1,Kk=null,Ik=new Set;function Pk(a){if(a){a=r(Ik);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function Uk(a,b,c){$a.call(this);var d=this;this.j=a;this.i=b;this.h=this.A=this.l=this.B=this.u=null;this.H=c;this.D=new Map;this.g=new Gk(c,function(){return Vk(d)},function(){return Wk(d)},function(e,f){return Xk(d,e,f)},function(){return Yk(d)},function(){return Zk(d)});$k(this)}pa(Uk,$a);p=Uk.prototype;
429
+ p.destroy=function(a){a&&this.g.Vb();this.h&&(this.h.release(),this.h=null);a=[];this.i&&(a.push(this.i.destroy()),this.i=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.u=this.j=null;return Promise.all(a)};p.zc=function(){return this.u};p.Yb=function(){return this.B};p.pe=function(){return this.g.u&&Nk};p.na=function(){return this.g.na()};p.ld=function(){return this.g.ld()};
430
+ p.cast=function(){var a=this,b;return H(function(c){return 1==c.g?(b=Zk(a),t(c,a.g.cast(b),2)):a.i?t(c,a.i.me(),0):c["return"]()})};p.Yd=function(a){this.g.Yd(a)};p.Ye=function(){Tk(this.g)};p.Vb=function(){this.g.Vb()};
431
+ p.ue=function(a){var b=this;return H(function(c){if(1==c.g){if(a==b.H)return c["return"]();b.H=a;b.g.Vb();return t(c,b.g.destroy(),2)}b.g=null;b.g=new Gk(a,function(){return Vk(b)},function(){return Wk(b)},function(d,e){return Xk(b,d,e)},function(){return Yk(b)},function(){return Zk(b)});b.g.init();x(c)})};
432
+ function $k(a){a.g.init();a.h=new jd;for(var b=r(wk),c=b.next();!c.done;c=b.next())a.h.m(a.j,c.value,function(f){a.g.na()||(f=La(f),a.l.dispatchEvent(f))});for(var d in gk)a.h.m(a.i,gk[d],function(f){a.g.na()||a.A.dispatchEvent(f)});a.u={};b={};for(var e in a.j)b.hc=e,Object.defineProperty(a.u,b.hc,{configurable:!1,enumerable:!0,get:function(f){return function(){return al(a,f.hc)}}(b),set:function(f){return function(g){var h=f.hc;a.g.na()?a.g.set("video",h,g):a.j[h]=g}}(b)}),b={hc:b.hc};a.B={};bl(a,
433
+ function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return cl(a,f)}})});dl(a);a.l=new $a;a.l.Sc=a.u;a.A=new $a;a.A.Sc=a.B}function dl(a){var b=new Map;bl(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.D.set(c,e):a.D.set(e,c)}else b.set(d,c)})}
434
+ function bl(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.i,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
435
+ function Zk(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.i.Fd(),startTime:null};a.j.pause();for(var c=r(yk),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.j[d];a.j.ended||(b.startTime=a.j.currentTime);c=r(Ck);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.i[e[0]]();b.player[d]=e}c=r(Dk);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.i[e[0]](),b.playerAfterLoad[d]=e;return b}function Vk(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
436
+ function Wk(a){var b=new M(a.u.paused?"pause":"play");a.l.dispatchEvent(b)}
437
+ function Yk(a){for(var b=r(Ck),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.i[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.j.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.j.autoplay=!1,b=a.i.load(e,d));var g={};c=r(yk);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.j){for(var h=r(yk),k=h.next();!k.done;k=h.next())k=k.value,a.j[k]=g[k];h=r(Dk);for(k=
438
+ h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.i[k](l)}a.j.autoplay=f;e&&a.j.play()}},function(h){h=(new Map).set("detail",h);h=new M(ck,h);a.i.dispatchEvent(h)})}
439
+ function al(a,b){if("addEventListener"==b)return function(d,e,f){return a.l.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.l.removeEventListener(d,e,f)};if(a.g.na()&&0==Object.keys(a.g.g.video).length){var c=a.j[b];if("function"!=typeof c)return c}return a.g.na()?a.g.get("video",b):(c=a.j[b],"function"==typeof c&&(c=c.bind(a.j)),c)}
440
+ function cl(a,b){a.D.has(b)&&(b=a.D.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.u};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.i.vc()};if("getAdManager"==b)return function(){return a.i.Yc()};if("setVideoContainer"==b)return function(c){return a.i.fe(c)};
441
+ if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){Oa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Oa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.na()&&0==Object.keys(a.g.g.video).length&&Ak[b]||!a.g.na()?a.i[b].bind(a.i):a.g.get("player",b)}function Xk(a,b,c){a.g.na()&&("video"==b?a.l.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}L("shaka.cast.CastProxy",Uk);Uk.prototype.changeReceiverId=Uk.prototype.ue;
442
+ Uk.prototype.forceDisconnect=Uk.prototype.Vb;Uk.prototype.suggestDisconnect=Uk.prototype.Ye;Uk.prototype.setAppData=Uk.prototype.Yd;Uk.prototype.cast=Uk.prototype.cast;Uk.prototype.receiverName=Uk.prototype.ld;Uk.prototype.isCasting=Uk.prototype.na;Uk.prototype.canCast=Uk.prototype.pe;Uk.prototype.getPlayer=Uk.prototype.Yb;Uk.prototype.getVideo=Uk.prototype.zc;Uk.prototype.destroy=Uk.prototype.destroy;function el(a,b,c,d){$a.call(this);var e=this;this.g=a;this.i=b;this.h=new jd;this.P={video:a,player:b};this.J=c||function(){};this.S=d||function(f){return f};this.j=null;this.K=!1;this.A=!0;this.u=0;this.H=!1;this.D=!0;this.B=this.l=null;this.N=new O(function(){fl(e)});gl(this)}pa(el,$a);p=el.prototype;p.isConnected=function(){return this.K};p.Sf=function(){return this.A};p.ng=function(a){this.j=a};p.lf=function(){this.j=null};
443
+ p.og=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.title=a};p.mg=function(a){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC});this.j.images=[{url:a}]};p.lg=function(a){this.j||(this.j={});this.j.artist=a;this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
444
+ p.destroy=function(){var a=this,b,c;return H(function(d){if(1==d.g)return a.h&&(a.h.release(),a.h=null),b=[],a.i&&(b.push(a.i.destroy()),a.i=null),a.N&&(a.N.stop(),a.N=null),a.g=null,a.P=null,a.J=null,a.K=!1,a.A=!0,a.l=null,a.B=null,t(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();x(d)})};
445
+ function gl(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return hl(a)};b.onSenderDisconnected=function(){return hl(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&il(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);il(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 jl(a,
446
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return kl(a,e)};b.start();b=r(wk);for(var c=b.next();!c.done;c=b.next())a.h.m(a.g,c.value,function(e){return ll(a,"video",e)});for(var d in gk)a.h.m(a.i,gk[d],function(e){return ll(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.i.$d(3840,2160):a.i.$d(1920,1080);a.h.m(a.g,"loadeddata",function(){a.H=!0});a.h.m(a.i,"loading",function(){a.A=
447
+ !1;ml(a)});a.h.m(a.g,"playing",function(){a.A=!1;ml(a)});a.h.m(a.g,"pause",function(){ml(a)});a.h.m(a.i,"unloading",function(){a.A=!0;ml(a)});a.h.m(a.g,"ended",function(){(new O(function(){a.g&&a.g.ended&&(a.A=!0,ml(a))})).V(nl)})}function hl(a){a.u=0;a.D=!0;a.K=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;ml(a)}
448
+ function ml(a){var b;H(function(c){if(1==c.g)return t(c,Promise.resolve(),2);if(!a.i)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);ol(a)||pl(a);x(c)})}
449
+ function ql(a,b,c){var d,e,f,g,h,k,l,m,n,q,u;H(function(v){switch(v.g){case 1:for(d in b.player)e=b.player[d],a.i[d](e);a.J(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,y(v,5),t(v,a.i.load(b.manifest,b.startTime),7)):t(v,Promise.resolve(),3);case 7:ua(v,3);break;case 5:return g=C(v),h=ck,k=(new Map).set("detail",g),l=new M(h,k),a.i&&a.i.dispatchEvent(l),v["return"]();case 3:if(!a.i)return v["return"]();for(m in b.video)n=b.video[m],a.g[m]=n;for(q in b.playerAfterLoad)u=b.playerAfterLoad[q],
450
+ a.i[q](u);a.g.autoplay=f;b.manifest&&(a.g.play(),pl(a));x(v)}})}function ll(a,b,c){a.i&&(fl(a),il(a,{type:"event",targetName:b,event:c},a.l))}
451
+ function fl(a){a.N.V(rl);for(var b={video:{},player:{}},c=r(xk),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.i.W())for(var e in Bk)0==a.u%Bk[e]&&(b.player[e]=a.i[e]());for(var f in Ak)0==a.u%Ak[f]&&(b.player[f]=a.i[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.H&&(a.u+=1);il(a,{type:"update",update:b},a.l);ol(a)}function ol(a){return a.D&&(a.g.duration||a.i.W())?(sl(a),a.D=!1,!0):!1}
452
+ function sl(a,b){var c={contentId:a.i.Fd(),streamType:a.i.W()?"LIVE":"BUFFERED",contentType:""};a.i.W()||(c.duration=a.g.duration);a.j&&(c.metadata=a.j);pl(a,void 0===b?0:b,c)}
453
+ function kl(a,b){var c=uk(b.data);switch(c.type){case "init":a.u=0;a.H=!1;a.D=!0;ql(a,c.initState,c.appData);fl(a);break;case "appData":a.J(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.P[d][e]=c;break;case "call":d=a.P[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
454
+ c.methodName;"player"==d&&"load"==e&&(a.u=0,a.H=!1);var g=c.id,h=b.senderId;f=a.P[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.D=!0}));c.then(function(){return tl(a,h,g,null)},function(k){return tl(a,h,g,k)})}}
455
+ function jl(a,b){var c=uk(b.data);switch(c.type){case "PLAY":a.g.play();pl(a);break;case "PAUSE":a.g.pause();pl(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),pl(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),pl(a));break;case "STOP":a.i.me().then(function(){a.i&&pl(a)});break;case "GET_STATUS":sl(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
456
+ null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||pl(a);break;case "LOAD":a.u=0;a.H=!1;a.D=!1;d=c.media;e=c.currentTime;f=a.S(d.contentId);g=c.autoplay||!0;a.J(d.customData);g&&(a.g.autoplay=!0);a.i.load(f,e).then(function(){a.i&&sl(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");il(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:il(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
457
+ function tl(a,b,c,d){a.i&&il(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function il(a,b,c,d){a.K&&(a=tk(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function pl(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?ul:a.i.Dc()?vl:a.g.paused?wl:xl,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);il(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
458
+ L("shaka.cast.CastReceiver",el);el.prototype.destroy=el.prototype.destroy;el.prototype.setContentArtist=el.prototype.lg;el.prototype.setContentImage=el.prototype.mg;el.prototype.setContentTitle=el.prototype.og;el.prototype.clearContentMetadata=el.prototype.lf;el.prototype.setContentMetadata=el.prototype.ng;el.prototype.isIdle=el.prototype.Sf;el.prototype.isConnected=el.prototype.isConnected;var rl=.5,nl=5,ul="IDLE",xl="PLAYING",vl="BUFFERING",wl="PAUSED";function yl(a){var b=this;this.g=[];this.h=[];this.data=[];(new ye).box("moov",Ce).ea("pssh",function(c){if(!(1<c.version)){var d=ec(c.reader.Y,-12,c.size);b.data.push(d);b.g.push(xc(c.reader.Hb(16)));if(0<c.version){d=c.reader.T();d=r(fb(d));for(var e=d.next();!e.done;e=d.next())e=xc(c.reader.Hb(16)),b.h.push(e)}}}).parse(a)}
459
+ function zl(a){if(!a)return a;var b=new yl(a);if(1>=b.data.length)return a;a=[];var c={};b=r(b.data);for(var d=b.next();!d.done;c={Nc:c.Nc},d=b.next())c.Nc=d.value,a.some(function(e){return function(f){return cc(f,e.Nc)}}(c))||a.push(c.Nc);return yc.apply(sc,ia(a))};function Al(a,b){var c=Bl(a,b);return 1!=c.length?null:c[0]}function Cl(a,b,c){a=Dl(a,b,c);return 1!=a.length?null:a[0]}function Bl(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName==b})}function Dl(a,b,c){return Array.from(a.childNodes).filter(function(d){return d instanceof Element&&d.localName==c&&d.namespaceURI==b})}function El(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}
460
+ function Fl(a){return Array.from(a.childNodes).every(function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null}function Gl(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 Hl(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:Math.floor(a/1E3)}
461
+ function Il(a){if(!a)return null;a=/^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}function Jl(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}
462
+ function Kl(a){a=Number(a);return 0===a%1?a:null}function Ll(a){a=Number(a);return 0===a%1&&0<a?a:null}function Ml(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Nl(a){var b;a=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(a)?null:a}function Ol(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,"text/xml")}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d}
463
+ function Pl(a,b){try{var c=lc(a);return Ol(c,b)}catch(d){return null}};function Ql(a,b){var c=Rl(a),d=null,e=[],f=[],g=new Set(c.map(function(k){return k.keyId}));g["delete"](null);if(1<g.size)throw new N(2,4,4010);b||(f=c.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Re?(d=k.init||d,!1):!0}),f.length&&(e=Sl(d,f),0==e.length&&(e=[Hb("",d)])));if(c.length&&(b||!f.length))for(e=[],c=r(Tl.values()),f=c.next();!f.done;f=c.next())f=f.value,"org.w3.clearkey"!=f&&e.push(Hb(f,d));if(g=Array.from(g)[0]||null)for(c=r(e),f=c.next();!f.done;f=c.next()){f=r(f.value.initData);
464
+ for(var h=f.next();!h.done;h=f.next())h.value.keyId=g}return{we:g,Xg:d,drmInfos:e,ze:!0}}function Ul(a,b,c){var d=Ql(a,c);if(b.ze){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==d.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=d.drmInfos;b.ze=!1}else if(0<d.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(e){return d.drmInfos.some(function(f){return f.keySystem==e.keySystem})}),0==b.drmInfos.length))throw new N(2,4,4008);return d.we||b.we}
465
+ function Vl(a){var b=0,c=hc(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
466
+ function Wl(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
467
+ function Sl(a,b){for(var c=[],d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=Tl.get(e.Re);if(f){var g;if(g=Cl(e.node,"urn:microsoft:playready","pro")){g=vc(g.textContent);var h=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),k=g.length,l=h.length+16+k,m=new Uint8Array(l),n=hc(m),q=0;n.setUint32(q,l);q+=4;n.setUint32(q,1886614376);q+=4;n.setUint32(q,0);q+=4;m.set(h,q);q+=h.length;n.setUint32(q,k);q+=4;m.set(g,q);g=[{initData:m,initDataType:"cenc",keyId:e.keyId}]}else g=
468
+ null;g=Hb(f,e.init||a||g);if(f=Xl.get(f))g.licenseServerUri=f(e);c.push(g)}}return c}function Rl(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Yl(c.value))&&b.push(c);return b}
469
+ function Yl(a){var b=a.getAttribute("schemeIdUri"),c=El(a,"urn:mpeg:cenc:2013","default_KID"),d=Dl(a,"urn:mpeg:cenc:2013","pssh").map(Fl);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new N(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:vc(f),keyId:null}})}catch(f){throw new N(2,4,4007);}return{node:a,Re:b,keyId:c,init:0<e.length?e:null}}
470
+ var Tl=(new Map).set("urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b","org.w3.clearkey").set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine.alpha").set("urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95","com.microsoft.playready").set("urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb","com.adobe.primetime"),Xl=(new Map).set("com.widevine.alpha",function(a){return(a=Cl(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||
471
+ "":""}).set("com.microsoft.playready",function(a){a=Cl(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=vc(a.textContent);a=Vl(a).filter(function(b){return 1===b.type})[0];if(!a)return"";a=nc(a.value,!0);return(a=Ol(a,"WRMHEADER"))?Wl(a):""});function Zl(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=
472
472
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
473
- function am(a,b){var c=bm(a,b,"timescale"),d=1;c&&(d=Ml(c)||1);c=bm(a,b,"duration");(c=Ml(c||""))&&(c/=d);var e=bm(a,b,"startNumber"),f=Number(bm(a,b,"presentationTimeOffset"))||0,g=Nl(e||"");if(null==e||null==g)g=1;var h=cm(a,b,"SegmentTimeline");e=null;if(h){e=d;var k=a.Z.duration||Infinity,l=Cl(h,"S");h=[];var m=-f;l=r(mb(l));for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=n.item,u=n.next,v=Hl(q,"t",Nl);n=Hl(q,"d",Nl);var A=Hl(q,"r",Ll);null!=v&&(v-=f);if(!n)break;q=null!=v?v:m;v=A||0;if(0>
474
- v)if(u){u=Hl(u,"t",Nl);if(null==u)break;else if(q>=u)break;v=Math.ceil((u-q)/n)-1}else{if(Infinity==k)break;else if(q/e>=k)break;v=Math.ceil((k*e-q)/n)-1}0<h.length&&q!=m&&(h[h.length-1].end=q/e);u=r(kb(v+1));for(v=u.next();!v.done;v=u.next())m=q+n,h.push({start:q/e,end:m/e,vg:q}),q=m}e=h}return{timescale:d,wa:c,dc:g,fb:f/d||0,le:f,timeline:e}}function bm(a,b,c){return[b(a.O),b(a.ya),b(a.va)].filter(Ib).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
475
- function cm(a,b,c){return[b(a.O),b(a.ya),b(a.va)].filter(Ib).map(function(d){return Bl(d,c)}).reduce(function(d,e){return d||e})}
476
- function dm(a,b,c,d,e,f){for(var g=Fl(a,"http://www.w3.org/1999/xlink","href"),h=Fl(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Kc(new M(2,4,4028));if("onLoad"!=h)return Kc(new M(2,4,4027));var m=Kb([d],[g]);return e.request(0,bd(m,b)).ka(function(n){n=Ql(n.data,a.tagName);if(!n)return Kc(new M(2,4,4001,g));
477
- for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=r(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return em(a,b,c,m[0],e,f+1)})}
478
- function em(a,b,c,d,e,f){f=void 0===f?0:f;if(Fl(a,"http://www.w3.org/1999/xlink","href")){var g=dm(a,b,c,d,e,f);c&&(g=g.ka(void 0,function(){return em(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Fl(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(em(k,b,c,d,e,f)));return Oc(g).ka(function(){return a})};function fm(a,b,c,d,e,f,g){var h,k=(new Ae).ba("sidx",function(l){h=gm(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new M(2,3,3004);}
479
- function gm(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.S();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.S();var m=g.reader.S()}else l=g.reader.Gb(),m=g.reader.Gb();g.reader.skip(2);var n=g.reader.Gc();a=a+g.size+m;n=r(kb(n));for(m=n.next();!m.done;m=n.next()){var q=g.reader.S();m=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.S();g.reader.skip(4);if(1==m)throw new M(2,3,3006);h.push(new Fg(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();
480
- return h};function hm(a){this.h=jc(a);this.g=new xe(this.h,0)}hm.prototype.Ta=function(){return this.g.Ta()};
481
- function im(a){var b=jm(a);if(7<b.length)throw new M(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=jm(a);a:{d=r(km);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.L;else{if(8==b.length&&b[1]&224)throw new M(2,3,3001);d=0;e=r(mb(b));for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.item;d=0==f.ua?g&(1<<8-b.length)-1:256*d+g}b=d}b=a.g.L+b<=a.h.byteLength?b:a.h.byteLength-a.g.L;d=jc(a.h,a.g.L,
482
- b);a.g.skip(b);return new lm(c,d)}function jm(a){var b=a.g.L,c=a.g.Na();if(0==c)throw new M(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return gc(a.h,b,c)}var km=[[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 lm(a,b){this.id=a;this.g=b}
483
- function mm(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(2,3,3001);for(var b=0,c=r(kb(a.g.byteLength)),d=c.next();!d.done;d=c.next())d=a.g.getUint8(d.value),b=256*b+d;return b};function nm(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new hm(a.g);for(var n=null,q=null;a.Ta();){var u=im(a);if(187==u.id){var v=om(u);v&&(u=c*v.wg,v=b+v.dg,null!=n&&m.push(new Fg(n+g,u+g,l,q,v-1,f,g,h,k)),n=u,q=v)}}null!=n&&m.push(new Fg(n+g,d+g,l,q,null,f,g,h,k));return m}
484
- function om(a){var b=new hm(a.g);a=im(b);if(179!=a.id)throw new M(2,3,3013);a=mm(a);b=im(b);if(183!=b.id)throw new M(2,3,3012);b=new hm(b.g);for(var c=0;b.Ta();){var d=im(b);if(241==d.id){c=mm(d);break}}return{wg:a,dg:c}};function pm(a,b){var c=cm(a,b,"Initialization");if(!c)return null;var d=a.O.Ka,e=c.getAttribute("sourceURL");e&&(d=Kb(a.O.Ka,[e]));e=0;var f=null;if(c=Hl(c,"range",Kl))e=c.start,f=c.end;return new Dg(function(){return d},e,f)}
485
- function qm(a,b){var c=Number(bm(a,rm,"presentationTimeOffset"))||0,d=bm(a,rm,"timescale"),e=1;d&&(e=Ml(d)||1);var f=c/e||0,g=pm(a,rm);sm(a,g);var h=Rc(a);return{Ub:function(){var k=cm(h,rm,"RepresentationIndex"),l=h.O.Ka;k&&(k=k.getAttribute("sourceURL"))&&(l=Kb(h.O.Ka,[k]));k=tm(h);return um(h,b,g,l,k.start,k.end,f)}}}
486
- function um(a,b,c,d,e,f,g){var h,k,l,m,n,q,u,v,A,w,z,C,B,E,F;return G(function(I){var H;if(1==I.g)return h=a.presentationTimeline,k=!a.ub||!a.Z.Ee,l=a.Z.start,m=a.Z.duration,n=a.O.mimeType.split("/")[1],q=b,u=null,v=[q(d,e,f),"webm"==n?q(c.La(),c.h,c.g):null],q=null,t(I,Promise.all(v),2);A=I.h;w=A[0];z=A[1]||null;C=null;B=l-g;E=l;F=m?l+m:Infinity;if("mp4"==n)var K=fm(w,e,d,c,B,E,F);else{K=new hm(z);if(440786851!=im(K).id)throw new M(2,3,3008);var N=im(K);if(408125543!=N.id)throw new M(2,3,3009);K=
487
- N.g.byteOffset;N=new hm(N.g);for(H=null;N.Ta();){var U=im(N);if(357149030==U.id){H=U;break}}if(!H)throw new M(2,3,3010);H=new hm(H.g);U=1E6;for(N=null;H.Ta();){var S=im(H);if(2807729==S.id)U=mm(S);else if(17545==S.id)if(4==S.g.byteLength)N=S.g.getFloat32(0);else if(8==S.g.byteLength)N=S.g.getFloat64(0);else throw new M(2,3,3003);}if(null==N)throw new M(2,3,3011);H=U/1E9;H={qg:H,duration:N*H};N=H.qg;H=H.duration;U=im(new hm(w));if(475249515!=U.id)throw new M(2,3,3007);K=nm(U,K,N,H,d,c,B,E,F)}C=K;h.ac(C);
488
- u=new Q(C);k&&u.kb(E,F,!0);return I["return"](u)})}function rm(a){return a.Hc}function tm(a){var b=cm(a,rm,"RepresentationIndex");a=bm(a,rm,"indexRange");a=Kl(a||"");b&&(a=Hl(b,"range",Kl,a));return a}function sm(a,b){vm(a,b);if(!tm(a))throw new M(2,4,4002);}function vm(a,b){var c=a.O.mimeType.split("/")[1];if("text"!=a.O.contentType&&"mp4"!=c&&"webm"!=c)throw new M(2,4,4006);if("webm"==c&&!b)throw new M(2,4,4005);};function wm(a,b){var c=pm(a,xm),d=ym(a);if(!d.wa&&!d.timeline&&1<d.Yb.length)throw new M(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.Yb.length)throw new M(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new M(2,4,4002);var e=null,f=null;a.va.id&&a.O.id&&(f=a.va.id+","+a.O.id,e=b[f]);c=zm(a.Z.start,a.Z.duration,a.O.Ka,d,c);d=!e;e?e.Zb(c,a.presentationTimeline.cb()):(a.presentationTimeline.ac(c),e=new Q(c),f&&a.ub&&(b[f]=e));a.ub&&a.Z.Ee||e.kb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
489
- Infinity,d);return{Ub:function(){return Promise.resolve(e)}}}function xm(a){return a.pb}function ym(a){var b=Am(a);a=am(a,xm);var c=a.dc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,dc:c,fb:a.fb,timeline:a.timeline,Yb:b}}
490
- function zm(a,b,c,d,e){var f=d.Yb.length;d.timeline&&d.timeline.length!=d.Yb.length&&(f=Math.min(d.timeline.length,d.Yb.length));var g=a-d.fb,h=b?a+b:Infinity,k=[],l=d.startTime,m={};f=r(kb(f));for(var n=f.next();!n.done;m={vd:m.vd},n=f.next()){n=n.value;var q=d.Yb[n];m.vd=Kb(c,[q.Vf]);var u=void 0;u=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new Fg(a+l,a+u,function(v){return function(){return v.vd}}(m),q.start,q.end,e,g,a,h));l=u}return k}
491
- function Am(a){return[a.O.pb,a.ya.pb,a.va.pb].filter(Ib).map(function(b){return Cl(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Be&&(a.Be=!0);var c=b.getAttribute("media");b=Hl(b,"mediaRange",Kl,{start:0,end:null});return{Vf:c,start:b.start,end:b.end}})};function Bm(a,b,c,d,e,f){var g=Cm(a),h=Dm(a);Em(h);var k=Rc(a);if(h.Ac)return vm(a,g),{Ub:function(){var v=$l(h.Ac,k.O.id,null,k.bandwidth||null,null);v=Kb(k.O.Ka,[v]);return um(k,b,g,v,0,null,h.fb)}};if(h.wa)return d||(a.presentationTimeline.Nd(h.wa),a.presentationTimeline.Od(a.Z.start)),{Ub:function(){return Fm(k,h,e,g,f)}};var l=null;d=null;a.va.id&&a.O.id&&(d=a.va.id+","+a.O.id,l=c[d]);var m=Gm(k,h,g),n=a.Z.start,q=a.Z.duration?a.Z.start+a.Z.duration:Infinity,u=Infinity!=q;l?(u&&(new Q(m)).kb(n,
492
- q,!0),l.Zb(m,a.presentationTimeline.cb())):(a.presentationTimeline.ac(m),l=new Q(m),d&&a.ub&&(c[d]=l));u&&l.kb(n,q);return{Ub:function(){return Promise.resolve(l)}}}function Hm(a){return a.Ic}function Dm(a){var b=am(a,Hm),c=bm(a,Hm,"media");a=bm(a,Hm,"index");return{wa:b.wa,timescale:b.timescale,dc:b.dc,fb:b.fb,le:b.le,timeline:b.timeline,Md:c,Ac:a}}
493
- function Em(a){var b=a.Ac?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new M(2,4,4002);1!=b&&(a.Ac&&(a.timeline=null),a.wa=null);if(!a.Ac&&!a.Md)throw new M(2,4,4002);}
494
- function Fm(a,b,c,d,e){function f(N){var U=(N-u)*q,S=U+b.fb;U+=l;var Ia=Math.min(U+q,h());return new Fg(U,Ia,function(){var ha=$l(A,z,N,w,S*v);return Kb(C,[ha])},0,null,d,B,l,h())}function g(){var N=[Math.max(k.cb(),l),Math.min(k.mb(),h())].map(function(U){return U-l});return[Math.ceil(N[0]/q),Math.ceil(N[1]/q)-1].map(function(U){return U+u})}function h(){var N=null!=m&&e[m]||n;return N?l+N:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.va.id,n=a.Z.duration,q=b.wa,u=b.dc,v=b.timescale,A=b.Md,
495
- w=a.bandwidth||null,z=a.O.id,C=a.O.Ka,B=l-b.fb,E=g();a=a.ub?Math.max(E[0],E[1]-c+1):E[0];E=E[1];c=[];for(var F=a;F<=E;++F){var I=f(F);c.push(I)}var H=new Q(c);c=k.mb()<h();F=k.V();if(c||F){var K=Math.max(a,E+1);H.nd(q,function(){var N=k.cb();H.vb(N);var U=r(g());U.next();U=U.next().value;for(var S=[];K<=U;){var Ia=f(K);S.push(Ia);K++}return N>h()&&!S.length?null:S})}return Promise.resolve(H)}
496
- function Gm(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.fb;e=e?d+e:Infinity;for(var g=[],h={},k=r(mb(b.timeline)),l=k.next();!l.done;h={ud:h.ud,wd:h.wd,zd:h.zd,rd:h.rd,Bd:h.Bd,sd:h.sd},l=k.next()){l=l.value;var m=l.item,n=m.start,q=m.vg;m=m.end;h.zd=l.ua+b.dc;h.Bd=q+b.le;h.wd=a.O.id;h.rd=a.bandwidth||null;h.ud=b.Md;h.sd=a.O.Ka;g.push(new Fg(d+n,d+m,function(u){return function(){var v=$l(u.ud,u.wd,u.zd,u.rd||null,u.Bd);return Kb(u.sd,[v]).map(function(A){return A.toString()})}}(h),0,null,c,f,d,e))}return g}
497
- function Cm(a){var b=bm(a,Hm,"initialization");if(!b)return null;var c=a.O.id,d=a.bandwidth||null,e=a.O.Ka;return new Dg(function(){var f=$l(b,c,null,d,null);return Kb(e,[f])},0,null)};function Im(){this.j=[];this.g=[];this.h=[];this.i=[];this.l=new Set}Im.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.i=[];this.j=[]};
498
- function Jm(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I,H,K,N,U,S,Ia,ha,Na,ab,Ra;return G(function(Ja){switch(Ja.g){case 1:d=Mb;Km(b);Lm(b);Mm(b);if(!c&&1==b.length){e=b[0];a.g=e.Sc;a.h=e.pd;a.i=e.textStreams;Ja.C(2);break}f=-1;g=r(mb(b));for(h=g.next();!h.done;h=g.next())l=k=h.value,m=l.ua,n=l.item,a.l.has(n.id)||(a.l.add(n.id),-1==f&&(f=m));if(-1==f)return Ja["return"]();q=b.map(function(Ga){return Ga.Sc});u=b.map(function(Ga){return Ga.pd});v=b.map(function(Ga){return Ga.textStreams});A=
499
- r(v);for(w=A.next();!w.done;w=A.next())z=w.value,z.push(Nm());return t(Ja,Om(a.g,q,f,Pm,Qm),3);case 3:return t(Ja,Om(a.h,u,f,Pm,Qm),4);case 4:return t(Ja,Om(a.i,v,f,Pm,Qm),2);case 2:C=0;B=[];if(a.h.length&&a.g.length)for(N=r(a.g),U=N.next();!U.done;U=N.next())for(S=U.value,Ia=r(a.h),ha=Ia.next();!ha.done;ha=Ia.next())Na=ha.value,ab=ue(S.drmInfos,Na.drmInfos),S.drmInfos.length&&Na.drmInfos.length&&!ab.length||(Ra=C++,B.push({id:Ra,language:S.language,primary:S.primary,audio:S,video:Na,bandwidth:(S.bandwidth||
500
- 0)+(Na.bandwidth||0),drmInfos:ab,allowedByApplication:!0,allowedByKeySystem:!0}));else for(E=a.h.concat(a.g),F=r(E),I=F.next();!I.done;I=F.next())H=I.value,K=C++,B.push({id:K,language:H.language,primary:H.primary,audio:H.type==d.rb?H:null,video:H.type==d.$a?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0});a.j=B;x(Ja)}})}
501
- function Km(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Sc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Uc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Sc=c}}
502
- function Mm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Uc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
503
- function Lm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.pd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&Uc(e.roles,h.roles)&&ud(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.pd=c}}
504
- function Vm(a){var b,c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I;return G(function(H){switch(H.g){case 1:b=Mb;if(1==a.length)return H["return"](a[0]);c=a.map(function(K){return K.filter(function(N){return N.type==b.rb})});d=a.map(function(K){return K.filter(function(N){return N.type==b.$a})});e=a.map(function(K){return K.filter(function(N){return N.type==b.xa})});f=r(e);for(g=f.next();!g.done;g=f.next())h=g.value,h.push({id:0,originalId:"",primary:!1,type:"text",mimeType:"",codecs:"",language:"",label:null,
505
- width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null});return t(H,Om([],c,0,Wm,Xm),2);case 2:return k=H.h,t(H,Om([],d,0,Wm,Xm),3);case 3:return l=H.h,t(H,Om([],e,0,Wm,Xm),4);case 4:m=H.h;n=0;if(l.length&&k.length)for(w=r(k),z=w.next();!z.done;z=w.next())for(C=z.value,B=r(l),E=B.next();!E.done;E=B.next())F=E.value,I=n++,F.variantIds.push(I),C.variantIds.push(I);else for(q=l.concat(k),u=r(q),v=u.next();!v.done;v=
506
- u.next())A=v.value,A.variantIds=[n++];return H["return"](l.concat(k).concat(m))}})}
507
- function Om(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I,H,K,N,U,S,Ia;return G(function(ha){switch(ha.g){case 1:f=Mb;g=[];h=r(mb(b));for(k=h.next();!k.done;k=h.next())m=l=k.value,n=m.ua,q=m.item,n>=c?g.push(new Set(q)):g.push(new Set);u=r(a);v=u.next();case 2:if(v.done){ha.C(4);break}A=v.value;return t(ha,Ym(A,b,c,e,g),5);case 5:w=ha.h;if(!w)throw new M(2,4,4037);v=u.next();ha.C(2);break;case 4:z=r(g),C=z.next();case 6:if(C.done){ha.C(8);break}B=C.value;E=r(B);F=E.next();case 9:if(F.done){C=
508
- z.next();ha.C(6);break}I=F.value;return t(ha,Zm(I,b,d,e,g),12);case 12:(H=ha.h)&&a.push(H);F=E.next();ha.C(9);break;case 8:K=r(g);for(C=K.next();!C.done;C=K.next())for(N=C.value,U={},S=r(N),F=S.next();!F.done;U={Pb:U.Pb},F=S.next())if(U.Pb=F.value,U.Pb.type!=f.xa||U.Pb.language)if(Ia=a.some(function(Na){return function(ab){return ab.mimeType==Na.Pb.mimeType&&yd(ab.codecs)==yd(Na.Pb.codecs)}}(U)))throw new M(2,4,4037);return ha["return"](a)}})}
509
- function Ym(a,b,c,d,e){var f;return G(function(g){if(1==g.g)return(f=$m(b,a))?t(g,an(f),2):g["return"](!1);bn(a,f,c,d,e);return g["return"](!0)})}function an(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push(c.createSegmentIndex()),c.trickModeVideo&&!c.trickModeVideo.segmentIndex&&b.push(c.trickModeVideo.createSegmentIndex());return Promise.all(b)}
510
- function Zm(a,b,c,d,e){var f,g;return G(function(h){if(1==h.g)return f=c(a),(g=$m(b,f))?f.createSegmentIndex?t(h,an(g),2):h.C(2):h["return"](null);bn(f,g,0,d,e);return h["return"](f)})}function bn(a,b,c,d,e){b=r(mb(b));for(var f=b.next();!f.done;f=b.next()){var g=f.value;f=g.ua;g=g.item;if(f>=c){d(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&e[f]["delete"](g)}}}
511
- function Pm(a){a=Object.assign({},a);a.originalId=null;a.createSegmentIndex=function(){return Promise.resolve()};a.segmentIndex=new dh;a.emsgSchemeIdUris=[];a.keyIds=new Set;a.closedCaptions=null;a.trickModeVideo=null;return a}function Wm(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
512
- function Qm(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))));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");c=ue(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new M(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
513
- (a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}a.segmentIndex.l.push(b.segmentIndex);b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Pm(b.trickModeVideo),a.trickModeVideo.segmentIndex=a.segmentIndex.clone()),Qm(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Qm(a.trickModeVideo,b)}
514
- function Xm(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
515
- function $m(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:cn,video:cn,text:dn}[f.type],h={audio:en,video:fn,text:gn}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return null;c.push(f)}return c}function cn(a,b){var c;if(!(c=b.mimeType!=a.mimeType||yd(b.codecs)!=yd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<ue(c,d).length:1)}return c?!1:!0}
516
- function dn(a,b){return a.language?b.language?0==Sb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}
517
- function en(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
518
- d=hn(a.channelsCount,b.channelsCount,c.channelsCount);if(d==jn)return!0;if(d==kn)return!1;d=hn(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==jn?!0:d==kn?!1:a.bandwidth&&ln(a.bandwidth,b.bandwidth,c.bandwidth)==jn?!0:!1}
519
- function fn(a,b,c){if(a.id==c.id)return!0;var d=hn(a.width*a.height,b.width*b.height,c.width*c.height);if(d==jn)return!0;if(d==kn)return!1;if(a.frameRate){d=hn(a.frameRate,b.frameRate,c.frameRate);if(d==jn)return!0;if(d==kn)return!1}return a.bandwidth&&ln(a.bandwidth,b.bandwidth,c.bandwidth)==jn?!0:!1}
520
- function gn(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
521
- a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Nm(){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Q([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null}}
522
- function hn(a,b,c){if(b==a&&a!=c)return kn;if(c==a&&a!=b)return jn;if(b>a){if(c<=a||c-a<b-a)return jn;if(c-a>b-a)return kn}else{if(c>a)return kn;if(a-c<a-b)return jn;if(a-c>a-b)return kn}return mn}function ln(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?jn:b<a?kn:mn}var jn=1,mn=0,kn=-1;function nn(){var a=this;this.G=this.v=null;this.h=[];this.F=null;this.A=1;this.j={};this.D={};this.g=new Im;this.u=0;this.B=new $b(5);this.l=new O(function(){a.Dc()});this.i=new Wc}p=nn.prototype;p.configure=function(a){this.v=a};p.start=function(a,b){var c=this,d;return G(function(e){if(1==e.g)return c.h=[a],c.G=b,t(e,on(c),2);d=e.h;c.G&&pn(c,d);if(!c.G)throw new M(2,7,7001);return e["return"](c.F)})};
523
- p.stop=function(){for(var a=r(Object.values(this.j)),b=a.next();!b.done;b=a.next())b.value.release();this.g&&this.g.release();this.v=this.G=null;this.h=[];this.F=null;this.j={};this.g=null;null!=this.l&&(this.l.stop(),this.l=null);return this.i.destroy()};p.update=function(){var a=this,b;return G(function(c){if(1==c.g)return y(c,2),t(c,on(a),4);if(2!=c.g)return ua(c,0);b=D(c);if(!a.G||!b)return c["return"]();a.G.onError(b);x(c)})};p.onExpirationUpdated=function(){};
524
- function on(a){var b,c,d,e,f,g,h;return G(function(k){if(1==k.g)return b=bd(a.h,a.v.retryParameters),c=a.G.networkingEngine,d=Date.now(),e=c.request(0,b),Xc(a.i,e),t(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.G)return k["return"](0);f.uri&&!a.h.includes(f.uri)&&a.h.unshift(f.uri);return t(k,qn(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;ac(a.B,1,h);return k["return"](h)})}
525
- function qn(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Ql(b,"MPD");if(!d)throw new M(2,4,4001,c);e=a.v.dash.xlinkFailGracefully;f=em(d,a.v.retryParameters,e,c,a.G.networkingEngine);Xc(a.i,f);return t(h,f.promise,2)}g=h.h;return h["return"](rn(a,g,c))})}
526
- function rn(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I,H,K,N,U,S,Ia;return G(function(ha){switch(ha.g){case 1:d=[c];e=Cl(b,"Location").map(Gl).filter(Ib);0<e.length&&(f=Kb(d,e),d=a.h=f);g=Cl(b,"BaseURL").map(Gl);h=Kb(d,g);k=a.v.dash.ignoreMinBufferTime;l=0;k||(l=Hl(b,"minBufferTime",Jl)||0);a.u=Hl(b,"minimumUpdatePeriod",Jl,-1);m=Hl(b,"availabilityStartTime",Il);n=Hl(b,"timeShiftBufferDepth",Jl);q=a.v.dash.ignoreSuggestedPresentationDelay;u=null;q||(u=Hl(b,"suggestedPresentationDelay",Jl));
527
- v=Hl(b,"maxSegmentDuration",Jl);A=b.getAttribute("type")||"static";if(a.F)for(w=a.F.presentationTimeline,z=r(Object.values(a.j)),C=z.next();!C.done;C=z.next())B=C.value,B.vb(w.cb());else E=a.v.defaultPresentationDelay||1.5*l,F=null!=u?u:E,w=new P(m,F,a.v.dash.autoCorrectDrift);I={ub:"static"!=A,presentationTimeline:w,va:null,Z:null,ya:null,O:null,bandwidth:0,Be:!1};var Na=Hl(b,"mediaPresentationDuration",Jl),ab=[],Ra=0,Ja=Cl(b,"Period");Ja=r(mb(Ja));for(var Ga=Ja.next();!Ga.done;Ga=Ja.next()){var ib=
528
- Ga.value;Ga=ib.item;ib=ib.next;Ra=Hl(Ga,"start",Jl,Ra);var Ud=Hl(Ga,"duration",Jl),bb=null;if(ib){var Vd=Hl(ib,"start",Jl);null!=Vd&&(bb=Vd-Ra)}else null!=Na&&(bb=Na-Ra);null==bb&&(bb=Ud);Ga=sn(a,I,h,{start:Ra,duration:bb,node:Ga,Ee:null==bb||!ib});ab.push(Ga);I.va.id&&bb&&(a.D[I.va.id]=bb);if(null==bb){Ra=null;break}Ra+=bb}H=null!=Na?{periods:ab,duration:Na,ve:!1}:{periods:ab,duration:Ra,ve:!0};K=H.duration;N=H.periods;w.Jc("static"==A);"static"!=A&&H.ve||w.Wa(K||Infinity);(U=w.V())&&!isNaN(a.v.availabilityWindowOverride)&&
529
- (n=a.v.availabilityWindowOverride);null==n&&(n=Infinity);w.ae(n);w.Nd(v||1);return t(ha,Jm(a.g,N,I.ub),2);case 2:if(a.F){a.F.variants=a.g.j;a.F.textStreams=a.g.i;ha.C(3);break}a.F={presentationTimeline:w,variants:a.g.j,textStreams:a.g.i,offlineSessionIds:[],minBufferTime:l||0};if(!w.Ye()){ha.C(3);break}S=Cl(b,"UTCTiming");return t(ha,tn(a,h,S),5);case 5:Ia=ha.h;if(!a.G)return ha["return"]();w.Re(Ia);case 3:return a.G.makeTextStreamsForClosedCaptions(a.F),t(ha,a.G.filter(a.F),0)}})}
530
- function sn(a,b,c,d){b.va=un(d.node,null,c);b.Z=d;b.va.id||(b.va.id="__shaka_period_"+d.start);c=Cl(d.node,"EventStream");c=r(c);for(var e=c.next();!e.done;e=c.next())vn(a,d.start,d.duration,e.value);c=Cl(d.node,"AdaptationSet").map(function(m){return wn(a,b,m)}).filter(Ib);if(b.ub){d=[];e=r(c);for(var f=e.next();!f.done;f=e.next()){f=r(f.value.gg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new M(2,4,4018);}d=c.filter(function(m){return!m.ie});c=c.filter(function(m){return m.ie});
531
- c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ie.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={Pc:h.Pc},l=k.next())h.Pc=l.value,h.Pc.trickModeVideo=e.streams.find(function(m){return function(n){return yd(m.Pc.codecs)==yd(n.codecs)}}(h))}}}e=a.v.disableAudio?[]:xn(d,"audio");f=a.v.disableVideo?[]:xn(d,"video");c=a.v.disableText?[]:xn(d,"text");if(!f.length&&!e.length)throw new M(2,4,4004);d=[];
532
- e=r(e);for(g=e.next();!g.done;g=e.next())d.push.apply(d,ia(g.value.streams));e=[];f=r(f);for(g=f.next();!g.done;g=f.next())e.push.apply(e,ia(g.value.streams));f=[];c=r(c);for(g=c.next();!g.done;g=c.next())f.push.apply(f,ia(g.value.streams));return{id:b.va.id,Sc:d,pd:e,textStreams:f}}function xn(a,b){return a.filter(function(c){return c.contentType==b})}
533
- function wn(a,b,c){b.ya=un(c,b.va,null);if("image"==b.ya.contentType)return null;var d=!1,e=Cl(c,"Role"),f=e.map(function(B){return B.getAttribute("value")}).filter(Ib),g=void 0,h="text"==b.ya.contentType;h&&(g="subtitle");e=r(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var l=k.getAttribute("schemeIdUri");if(null==l||"urn:mpeg:dash:role:2011"==l)switch(k=k.getAttribute("value"),k){case "main":d=!0;break;case "caption":case "subtitle":g=k}}l=Cl(c,"EssentialProperty");e=null;k=!1;l=r(l);for(var m=
534
- l.next();!m.done;m=l.next())m=m.value,"http://dashif.org/guidelines/trickmode"==m.getAttribute("schemeIdUri")?e=m.getAttribute("value"):k=!0;l=Cl(c,"Accessibility");var n=new Map;l=r(l);for(m=l.next();!m.done;m=l.next()){var q=m.value;m=q.getAttribute("schemeIdUri");q=q.getAttribute("value");if("urn:scte:dash:cc:cea-608:2015"==m||"urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=q){q=r(q.split(";"));for(var u=q.next();!u.done;u=q.next()){var v=u.value,A=u=void 0;v.includes("=")?(v=v.split("="),u=v[0].startsWith("CC")?
535
- v[0]:"CC"+v[0],A=v[1].split(",")[0].split(":").pop()):(u="CC"+m,m+=2,A=v);n.set(u,Ob(A))}}else n.set("CC1","und");else"urn:mpeg:dash:role:2011"==m&&null!=q&&(f.push(q),"captions"==q&&(g="caption"))}if(k)return null;k=Cl(c,"ContentProtection");var w=Rl(k,a.v.dash.ignoreDrmInfo),z=Ob(c.getAttribute("lang")||"und"),C=c.getAttribute("label");(k=Cl(c,"Label"))&&k.length&&(k=k[0],k.textContent&&(C=k.textContent));k=Cl(c,"Representation");c=k.map(function(B){return yn(a,b,w,g,z,C,d,f,n,B)}).filter(function(B){return!!B});
536
- if(0==c.length){if(a.v.dash.ignoreEmptyAdaptationSet||h)return null;throw new M(2,4,4003);}if(!b.ya.contentType||"application"==b.ya.contentType)for(b.ya.contentType=zn(c[0].mimeType,c[0].codecs),h=r(c),l=h.next();!l.done;l=h.next())l.value.type=b.ya.contentType;h=r(c);for(l=h.next();!l.done;l=h.next())for(l=l.value,m=r(w.drmInfos),q=m.next();!q.done;q=m.next())q=q.value,q.keyIds=q.keyIds&&l.keyIds?new Set([].concat(ia(q.keyIds),ia(l.keyIds))):q.keyIds||l.keyIds;h=k.map(function(B){return B.getAttribute("id")}).filter(Ib);
537
- return{id:b.ya.id||"__fake__"+a.A++,contentType:b.ya.contentType,language:z,Xg:d,streams:c,drmInfos:w.drmInfos,ie:e,gg:h}}
538
- function yn(a,b,c,d,e,f,g,h,k,l){b.O=un(l,b.ya,null);if(!An(b.O))return null;var m=b.Z.start;b.bandwidth=Hl(l,"bandwidth",Ml)||0;var n=b.O.contentType;n="text"==n||"application"==n;try{var q=function(z,C,B){return Bn(a,z,C,B)};if(b.O.Hc)var u=qm(b,q);else if(b.O.pb)u=wm(b,a.j);else if(b.O.Ic)u=Bm(b,q,a.j,!!a.F,a.v.dash.initialSegmentLimit,a.D);else{var v=b.O.Ka,A=b.Z.duration||0;u={Ub:function(){return Promise.resolve(ch(m,A,v))}}}}catch(z){if(n&&4002==z.code)return null;throw z;}n=Cl(l,"ContentProtection");
539
- n=Vl(n,c,a.v.dash.ignoreDrmInfo);n=new Set(n?[n]:[]);Cl(l,"SupplementalProperty").some(function(z){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==z.getAttribute("schemeIdUri")&&"JOC"==z.getAttribute("value")})&&(b.O.mimeType="audio/eac3-joc");var w={id:a.A++,originalId:b.O.id,createSegmentIndex:function(){var z;return G(function(C){if(1==C.g){if(w.segmentIndex)return C.C(0);z=w;return t(C,u.Ub(),3)}z.segmentIndex=C.h;x(C)})},segmentIndex:null,mimeType:b.O.mimeType,codecs:b.O.codecs,frameRate:b.O.frameRate,
540
- pixelAspectRatio:b.O.pixelAspectRatio,bandwidth:b.bandwidth,width:b.O.width,height:b.O.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,label:f,type:b.ya.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.O.emsgSchemeIdUris,roles:h,channelsCount:b.O.Pd,audioSamplingRate:b.O.audioSamplingRate,closedCaptions:k};return w}
541
- p.Dc=function(){var a=this,b,c;return G(function(d){switch(d.g){case 1:return b=0,y(d,2),t(d,on(a),4);case 4:b=d.h;ua(d,3);break;case 2:c=D(d),a.G&&(c.severity=1,a.G.onError(c));case 3:if(!a.G)return d["return"]();pn(a,b);x(d)}})};function pn(a,b){0>a.u||a.l.U(Math.max(3,a.u-b,bc(a.B)))}
542
- function un(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Pd:null,audioSamplingRate:null};c=c||b.Ka;var d=Cl(a,"BaseURL").map(Gl),e=a.getAttribute("contentType")||b.contentType,f=a.getAttribute("mimeType")||b.mimeType,g=a.getAttribute("codecs")||b.codecs,h=Hl(a,"frameRate",Ol)||b.frameRate,k=a.getAttribute("sar")||b.pixelAspectRatio,l=Cl(a,"InbandEventStream"),m=b.emsgSchemeIdUris.slice();l=r(l);for(var n=l.next();!n.done;n=l.next())n=
543
- n.value.getAttribute("schemeIdUri"),m.includes(n)||m.push(n);l=Cl(a,"AudioChannelConfiguration");l=Cn(l)||b.Pd;n=Hl(a,"audioSamplingRate",Nl)||b.audioSamplingRate;e||(e=zn(f,g));return{Ka:Kb(c,d),Hc:Bl(a,"SegmentBase")||b.Hc,pb:Bl(a,"SegmentList")||b.pb,Ic:Bl(a,"SegmentTemplate")||b.Ic,width:Hl(a,"width",Nl)||b.width,height:Hl(a,"height",Nl)||b.height,contentType:e,mimeType:f,codecs:g,frameRate:h,pixelAspectRatio:k,emsgSchemeIdUris:m,id:a.getAttribute("id"),Pd:l,audioSamplingRate:n}}
544
- function Cn(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":if(b=
545
- parseInt(c,16)){for(a=0;b;)b&1&&++a,b>>=1;return a}}}return null}function An(a){var b=a.Hc?1:0;b+=a.pb?1:0;b+=a.Ic?1:0;if(0==b)return"text"==a.contentType||"application"==a.contentType?!0:!1;1!=b&&(a.Hc&&(a.pb=null),a.Ic=null);return!0}
546
- function Dn(a,b,c,d){var e,f,g,h,k,l;return G(function(m){if(1==m.g)return e=Kb(b,[c]),f=bd(e,a.v.retryParameters),f.method=d,g=a.G.networkingEngine.request(4,f),Xc(a.i,g),t(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=nc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
547
- function tn(a,b,c){var d,e,f,g,h,k,l,m;return G(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.getAttribute("schemeIdUri"),value:q.getAttribute("value")}}),e=a.v.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.C(4);break}h=g.value;y(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.C(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.C(8);
548
- 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":Qa("NTP UTCTiming scheme is not supported");break;default:Qa("Unrecognized scheme in UTCTiming element",k)}n.C(9);break;case 7:return t(n,Dn(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return t(n,Dn(a,b,l,"GET"),11);case 11:return n["return"](n.h);
549
- case 9:ua(n,3);break;case 5:D(n);case 3:g=f.next();n.C(2);break;case 4:return Qa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
550
- function vn(a,b,c,d){var e=d.getAttribute("schemeIdUri")||"",f=d.getAttribute("value")||"",g=Hl(d,"timescale",Nl)||1;d=r(Cl(d,"Event"));for(var h=d.next();!h.done;h=d.next()){h=h.value;var k=Hl(h,"presentationTime",Nl)||0,l=Hl(h,"duration",Nl)||0;k=k/g+b;l=k+l/g;null!=c&&(k=Math.min(k,b+c),l=Math.min(l,b+c));h={schemeIdUri:e,value:f,startTime:k,endTime:l,id:h.getAttribute("id")||"",eventElement:h};a.G.onTimelineRegionAdded(h)}}
551
- function Bn(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=hd,f=ph(b,c,d,a.v.retryParameters),g=a.G.networkingEngine,h=g.request(e,f),Xc(a.i,h),t(l,h.promise,2);k=l.h;return l["return"](k.data)})}function zn(a,b){return nf(vd(a,b))?"text":a.split("/")[0]}J("shaka.dash.DashParser",nn);Bg.mpd=function(){return new nn};zg["application/dash+xml"]=function(){return new nn};zg["video/vnd.mpeg.dash.mpd"]=function(){return new nn};function En(a,b,c,d){this.g=a;this.type=b;this.oa=c;this.segments=d||null}function Fn(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Fn.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};
552
- Fn.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Gn(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Hn(a,b){var c=a.getAttribute(b);if(!c)throw new M(2,4,4023,b);return c.value}function In(a,b){this.oa=b;this.g=a}function Jn(a,b){this.name=a;this.value=b};function Kn(a,b){return a.filter(function(c){return c.name==b})}function Ln(a,b){return a.filter(function(c){return Hn(c,"TYPE")==b})}function Mn(a,b){var c=Kn(a,b);return c.length?c[0]:null}function Nn(a,b,c){c=void 0===c?0:c;return(a=Mn(a,b))?Number(a.value):c};function On(a){this.h=a;this.g=0}function Pn(a){Qn(a,/[ \t]+/gm)}function Qn(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function Rn(a){return a.g==a.h.length?null:(a=Qn(a,/[^ \t\n]*/gm))?a[0]:null};function Sn(){this.g=0}
553
- function Tn(a,b,c){b=nc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new M(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Un(a.g++,g),--a.g,Vn.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;g=r(mb(d));for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=k.ua;var l=k.item;k=k.next;if(/^#(?!EXT)/m.test(l)||e)e=!1;else{l=Un(a.g++,
554
- l);if(Wn.includes(l.name)){if(1!=b)throw new M(2,4,4017);l=d.splice(h,d.length-h);d=c;e=[];g=[];h=null;l=r(l);for(k=l.next();!k.done;k=l.next())k=k.value,/^(#EXT)/.test(k)?(k=Un(a.g++,k),Vn.includes(k.name)?f.push(k):"EXT-X-MAP"==k.name?h=k:g.push(k)):/^#(?!EXT)/m.test(k)||(k=Kb([d],[k.trim()])[0],h&&g.push(h),e.push(new In(k,g)),g=[]);return new En(c,b,f,e)}f.push(l);"EXT-X-STREAM-INF"==l.name&&(l.g.push(new Jn("URI",k)),e=!0)}}return new En(c,b,f)}
555
- function Un(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new M(2,4,4016,b);var d=c[1],e=c[2];c=[];var f;if(e){e=new On(e);var g;(g=Qn(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=Qn(e,h);)c.push(new Jn(g[1],g[2]||g[3]))}return new Fn(a,d,c,f)}var Vn="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST".split(" "),Wn="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Xn(){}function Yn(a){try{var b=Zn(a);return Mc({uri:a,Ke:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Kc(c)}}function Zn(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=xc(a):e=rc(a);return{data:e,contentType:c}}
556
- J("shaka.net.DataUriPlugin",Xn);Xn.parse=Yn;Zc("data",Yn);function $n(){var a=this;this.v=this.G=null;this.qa=1;this.A=new Map;this.l=new Map;this.ia=new Set;this.h=new Map;this.g=null;this.P="";this.K=new Sn;this.aa=0;this.u=new O(function(){a.Dc()});this.i=ao;this.F=null;this.R=0;this.W=Infinity;this.B=new Wc;this.$=[];this.H=new Map;this.ra=!1;this.j=new Map;this.J=null;this.N=new Map;this.D=new Map}p=$n.prototype;p.configure=function(a){this.v=a};
557
- p.start=function(a,b){var c=this,d,e;return G(function(f){if(1==f.g)return c.G=b,t(f,bo(c,bd([a],c.v.retryParameters),0),2);if(3!=f.g)return d=f.h,c.P=d.uri,t(f,co(c,d.data),3);e=c.aa;0<e&&c.u.U(e);return f["return"](c.F)})};p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.B&&(a.push(this.B.destroy()),this.B=null);this.v=this.G=null;this.ia.clear();this.F=null;this.h.clear();this.l.clear();this.j.clear();this.A.clear();return Promise.all(a)};
558
- p.update=function(){var a=this,b,c,d;return G(function(e){if(1==e.g){if(a.i==ao)return e["return"]();b=[];a.J=null;c=Array.from(a.h.values());return c.length?t(e,eo(a,c[0]),2):e.C(2)}for(d=1;d<c.length;d++)b.push(eo(a,c[d]));return t(e,Promise.all(b),0)})};
559
- function eo(a,b){var c,d,e,f,g,h,k,l,m,n;return G(function(q){if(1==q.g)return c=fo,d=b.cf,t(q,bo(a,bd([d],a.v.retryParameters),0),2);if(3!=q.g){e=q.h;f=Tn(a.K,e.data,e.uri);if(1!=f.type)throw new M(2,4,4017);g=Kn(f.oa,"EXT-X-DEFINE");h=go(a,g);k=b.stream;return t(q,ho(a,b.od,f,k.mimeType,b.Fe,h),3)}l=q.h;k.segmentIndex.Zb(l,a.g.cb());l.length&&k.segmentIndex.vb(l[0].startTime);m=l[l.length-1];if(n=Mn(f.oa,"EXT-X-ENDLIST"))io(a,c.bf),a.g.Wa(m.endTime);x(q)})}p.onExpirationUpdated=function(){};
560
- function co(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w;return G(function(z){switch(z.g){case 1:c=Tn(a.K,b,a.P);if(0!=c.type)throw new M(2,4,4022);d=Kn(c.oa,"EXT-X-DEFINE");for(var C=r(d),B=C.next();!B.done;B=C.next()){var E=B.value;B=Gn(E,"NAME");E=Gn(E,"VALUE");B&&E&&(a.A.has(B)||a.A.set(B,E))}e=Kn(c.oa,"EXT-X-MEDIA");f=Kn(c.oa,"EXT-X-STREAM-INF");C=r(f);for(B=C.next();!B.done;B=C.next()){var F=B.value;E=Gn(F,"AUDIO");B=Gn(F,"VIDEO");var I=Gn(F,"SUBTITLES");F=jo(a,F);if(I){var H=ko("text",F);a.j.set(I,
561
- H);Tc(F,H)}E&&(I=lo("audio",F),a.j.set(E,I));B&&(E=lo("video",F),a.j.set(B,E))}return t(z,mo(a,e),2);case 2:C=Ln(e,"CLOSED-CAPTIONS");C=r(C);for(B=C.next();!B.done;B=C.next())I=B.value,B=no(I),E=Hn(I,"GROUP-ID"),I=Hn(I,"INSTREAM-ID"),a.H.get(E)||a.H.set(E,new Map),a.H.get(E).set(I,B);return t(z,oo(a,f),3);case 3:return g=z.h,t(z,po(a,e),4);case 4:h=z.h;if(!a.G)throw new M(2,7,7001);if(a.ra&&0==g.length)throw new M(2,4,4034);l=k=Infinity;m=r(a.h.values());for(n=m.next();!n.done;n=m.next())q=n.value,
562
- k=Math.min(k,q.Ge),"text"!=q.stream.type&&(l=Math.min(l,q.Uf-q.Ge));a.i!=ao?(a.g=new P(0,a.v.defaultPresentationDelay||3*a.R),a.g.Jc(!1)):(a.g=new P(null,0),a.g.Jc(!0));qo(a);if(a.i!=ao)a.aa=a.W,u=fo,a.i==u.$e&&(v=a.g.hd,isNaN(a.v.availabilityWindowOverride)||(v=a.v.availabilityWindowOverride),a.g.ae(v));else for(a.g.Wa(l),a.g.offset(-k),A=r(a.h.values()),n=A.next();!n.done;n=A.next())w=n.value,w.stream.segmentIndex.offset(-k),w.stream.segmentIndex.kb(0,l);a.F={presentationTimeline:a.g,variants:g,
563
- textStreams:h,offlineSessionIds:[],minBufferTime:0};a.G.makeTextStreamsForClosedCaptions(a.F);return t(z,a.G.filter(a.F),0)}})}function go(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=Gn(f,"NAME");var g=Gn(f,"VALUE");f=Gn(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
564
- function po(a,b){var c,d,e,f,g,h,k,l,m,n,q,u;return G(function(v){if(1==v.g)return c=Ln(b,"SUBTITLES"),d=c.map(function(A){var w,z,C;return G(function(B){if(1==B.g){if(w=a.v.disableText)return B["return"](null);y(B,2);return t(B,ro(a,A),4)}if(2!=B.g)return z=B.h,B["return"](z.stream);C=D(B);if(a.v.hls.ignoreTextStreamFailures)return B["return"](null);throw C;})}),t(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Hn(h,"GROUP-ID"),l=a.j.get(k))if(m=a.l.get(k))for(n=
565
- r(m),q=n.next();!q.done;q=n.next())u=q.value,u.stream.codecs=l;return v["return"](e.filter(function(A){return A}))})}function mo(a,b){var c;return G(function(d){if(1==d.g)return b=b.filter(function(e){var f=Gn(e,"URI")||"";return"SUBTITLES"!=Gn(e,"TYPE")&&""!=f}),b.length?t(d,ro(a,b[0]),2):d.C(2);c=b.slice(1).map(function(e){return ro(a,e)});return t(d,Promise.all(c),0)})}
566
- function oo(a,b){var c,d,e;return G(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,q,u;return G(function(v){if(1==v.g)return h=Gn(g,"FRAME-RATE"),k=Number(Gn(g,"AVERAGE-BANDWIDTH"))||Number(Hn(g,"BANDWIDTH")),l=Gn(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,q=m.next().value,t(v,so(a,g),2);if(u=v.h){for(var A=v["return"],w=u.audio,z=u.video,C=r(z),B=C.next();!B.done;B=C.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(q)||void 0,B.frameRate=
567
- Number(h)||void 0;C=a.v.disableAudio;if(!w.length||C)w=[null];C=a.v.disableVideo;if(!z.length||C)z=[null];C=[];w=r(w);for(B=w.next();!B.done;B=w.next()){B=B.value;for(var E=r(z),F=E.next();!F.done;F=E.next()){var I=F.value;F=B?B.stream:null;var H=I?I.stream:null,K=B?B.stream.drmInfos:null,N=I?I.stream.drmInfos:null;I=(I?I.od:"")+" - "+(B?B.od:"");F&&H&&K.length&&N.length&&!(0<ue(K,N).length)||a.ia.has(I)||(F={id:a.qa++,language:F?F.language:"und",primary:!!F&&F.primary||!!H&&H.primary,audio:F,video:H,
568
- bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0},C.push(F),a.ia.add(I))}}v=A.call(v,C)}else v=v["return"]([]);return v})}),t(f,Promise.all(c),2);d=f.h;e=d.reduce(Gb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
569
- function so(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;return G(function(w){if(1==w.g)return c=Mb,d=jo(a,b),e=Gn(b,"AUDIO"),f=Gn(b,"VIDEO"),h=(g=e||f)&&a.l.has(g)?a.l.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=Hn(b,"URI"),q=k.audio.find(function(z){return z&&z.od==n}),u=ko(c.$a,d),(v=ko(c.rb,d))&&!u?l=c.rb:!h.length&&v&&u?(l=c.$a,d=[[u,v].join()]):k.audio.length&&q?(l=c.rb,m=!0):l=k.video.length?c.rb:c.$a,m?w.C(2):t(w,to(a,b,d,l),3);2!=w.g&&(A=w.h);if(A)k[A.stream.type]=[A];else if(null===A)return w["return"](null);
570
- uo(k);return w["return"](k)})}function jo(a,b){var c=[];a.v.disableVideo||c.push("avc1.42E01E");a.v.disableAudio||c.push("mp4a.40.2");var d=Gn(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=yd(f);c.has(g)||(e.push(f),c.add(g))}return e}function no(a){a=Gn(a,"LANGUAGE")||"und";return Ob(a)}
571
- function uo(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}
572
- function ro(a,b){var c,d,e,f,g,h,k,l,m,n,q;return G(function(u){if(1==u.g){c=Hn(b,"GROUP-ID");d="";var v=Hn(b,"TYPE").toLowerCase();"subtitles"==v&&(v="text");e=v;"text"!=e&&c&&a.j.has(c)&&(d=a.j.get(c));f=vo(Hn(b,"URI"),a.A);if(a.h.has(f))return u["return"](a.h.get(f));g=no(b);h=Gn(b,"NAME");k=b.getAttribute("DEFAULT");l="YES"==k;"audio"==e?v=(v=Gn(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;n=Gn(b,"CHARACTERISTICS");return t(u,wo(a,f,d,e,g,l,h,m,null,n),2)}q=u.h;a.l.has(c)?a.l.get(c).push(q):
473
+ function $l(a,b){var c=am(a,b,"timescale"),d=1;c&&(d=Ll(c)||1);c=am(a,b,"duration");(c=Ll(c||""))&&(c/=d);var e=am(a,b,"startNumber"),f=Number(am(a,b,"presentationTimeOffset"))||0,g=Ml(e||"");if(null==e||null==g)g=1;var h=bm(a,b,"SegmentTimeline");e=null;if(h){e=d;var k=a.$.duration||Infinity,l=Bl(h,"S");h=[];var m=-f;l=r(hb(l));for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=n.item,u=n.next,v=Gl(q,"t",Ml);n=Gl(q,"d",Ml);var A=Gl(q,"r",Kl);null!=v&&(v-=f);if(!n)break;q=null!=v?v:m;v=A||0;if(0>
474
+ v)if(u){u=Gl(u,"t",Ml);if(null==u)break;else if(q>=u)break;v=Math.ceil((u-q)/n)-1}else{if(Infinity==k)break;else if(q/e>=k)break;v=Math.ceil((k*e-q)/n)-1}0<h.length&&q!=m&&(h[h.length-1].end=q/e);u=r(fb(v+1));for(v=u.next();!v.done;v=u.next())m=q+n,h.push({start:q/e,end:m/e,wg:q}),q=m}e=h}return{timescale:d,xa:c,fc:g,hb:f/d||0,oe:f,timeline:e}}function am(a,b,c){return[b(a.O),b(a.za),b(a.wa)].filter(Eb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
475
+ function bm(a,b,c){return[b(a.O),b(a.za),b(a.wa)].filter(Eb).map(function(d){return Al(d,c)}).reduce(function(d,e){return d||e})}
476
+ function cm(a,b,c,d,e,f){for(var g=El(a,"http://www.w3.org/1999/xlink","href"),h=El(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Ic(new N(2,4,4028));if("onLoad"!=h)return Ic(new N(2,4,4027));var m=Gb([d],[g]);return e.request(0,$c(m,b)).ma(function(n){n=Pl(n.data,a.tagName);if(!n)return Ic(new N(2,4,4001,g));
477
+ for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=r(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return dm(a,b,c,m[0],e,f+1)})}
478
+ function dm(a,b,c,d,e,f){f=void 0===f?0:f;if(El(a,"http://www.w3.org/1999/xlink","href")){var g=cm(a,b,c,d,e,f);c&&(g=g.ma(void 0,function(){return dm(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==El(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(dm(k,b,c,d,e,f)));return Mc(g).ma(function(){return a})};function em(a,b,c,d,e,f,g){var h,k=(new ye).ea("sidx",function(l){h=fm(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new N(2,3,3004);}
479
+ function fm(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new N(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.Ib(),m=g.reader.Ib();g.reader.skip(2);var n=g.reader.Ic();a=a+g.size+m;n=r(fb(n));for(m=n.next();!m.done;m=n.next()){var q=g.reader.T();m=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==m)throw new N(2,3,3006);h.push(new Dg(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();
480
+ return h};function gm(a){this.h=hc(a);this.g=new ve(this.h,0)}gm.prototype.Va=function(){return this.g.Va()};
481
+ function hm(a){var b=im(a);if(7<b.length)throw new N(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=im(a);a:{d=r(jm);for(var e=d.next();!e.done;e=d.next())if(cc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.L;else{if(8==b.length&&b[1]&224)throw new N(2,3,3001);d=0;e=r(hb(b));for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.item;d=0==f.sa?g&(1<<8-b.length)-1:256*d+g}b=d}b=a.g.L+b<=a.h.byteLength?b:a.h.byteLength-a.g.L;d=hc(a.h,a.g.L,
482
+ b);a.g.skip(b);return new km(c,d)}function im(a){var b=a.g.L,c=a.g.Oa();if(0==c)throw new N(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return ec(a.h,b,c)}var jm=[[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 km(a,b){this.id=a;this.g=b}
483
+ function lm(a){if(8<a.g.byteLength)throw new N(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new N(2,3,3001);for(var b=0,c=r(fb(a.g.byteLength)),d=c.next();!d.done;d=c.next())d=a.g.getUint8(d.value),b=256*b+d;return b};function mm(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new gm(a.g);for(var n=null,q=null;a.Va();){var u=hm(a);if(187==u.id){var v=nm(u);v&&(u=c*v.xg,v=b+v.eg,null!=n&&m.push(new Dg(n+g,u+g,l,q,v-1,f,g,h,k)),n=u,q=v)}}null!=n&&m.push(new Dg(n+g,d+g,l,q,null,f,g,h,k));return m}
484
+ function nm(a){var b=new gm(a.g);a=hm(b);if(179!=a.id)throw new N(2,3,3013);a=lm(a);b=hm(b);if(183!=b.id)throw new N(2,3,3012);b=new gm(b.g);for(var c=0;b.Va();){var d=hm(b);if(241==d.id){c=lm(d);break}}return{xg:a,eg:c}};function om(a,b){var c=bm(a,b,"Initialization");if(!c)return null;var d=a.O.La,e=c.getAttribute("sourceURL");e&&(d=Gb(a.O.La,[e]));e=0;var f=null;if(c=Gl(c,"range",Jl))e=c.start,f=c.end;return new Bg(function(){return d},e,f)}
485
+ function pm(a,b){var c=Number(am(a,qm,"presentationTimeOffset"))||0,d=am(a,qm,"timescale"),e=1;d&&(e=Ll(d)||1);var f=c/e||0,g=om(a,qm);rm(a,g);var h=Pc(a);return{Wb:function(){var k=bm(h,qm,"RepresentationIndex"),l=h.O.La;k&&(k=k.getAttribute("sourceURL"))&&(l=Gb(h.O.La,[k]));k=sm(h);return tm(h,b,g,l,k.start,k.end,f)}}}
486
+ function tm(a,b,c,d,e,f,g){var h,k,l,m,n,q,u,v,A,w,z,D,B,E,F;return H(function(I){var G;if(1==I.g)return h=a.presentationTimeline,k=!a.wb||!a.$.Ge,l=a.$.start,m=a.$.duration,n=a.O.mimeType.split("/")[1],q=b,u=null,v=[q(d,e,f),"webm"==n?q(c.Ma(),c.h,c.g):null],q=null,t(I,Promise.all(v),2);A=I.h;w=A[0];z=A[1]||null;D=null;B=l-g;E=l;F=m?l+m:Infinity;if("mp4"==n)var J=em(w,e,d,c,B,E,F);else{J=new gm(z);if(440786851!=hm(J).id)throw new N(2,3,3008);var K=hm(J);if(408125543!=K.id)throw new N(2,3,3009);J=
487
+ K.g.byteOffset;K=new gm(K.g);for(G=null;K.Va();){var P=hm(K);if(357149030==P.id){G=P;break}}if(!G)throw new N(2,3,3010);G=new gm(G.g);P=1E6;for(K=null;G.Va();){var T=hm(G);if(2807729==T.id)P=lm(T);else if(17545==T.id)if(4==T.g.byteLength)K=T.g.getFloat32(0);else if(8==T.g.byteLength)K=T.g.getFloat64(0);else throw new N(2,3,3003);}if(null==K)throw new N(2,3,3011);G=P/1E9;G={rg:G,duration:K*G};K=G.rg;G=G.duration;P=hm(new gm(w));if(475249515!=P.id)throw new N(2,3,3007);J=mm(P,J,K,G,d,c,B,E,F)}D=J;h.cc(D);
488
+ u=new R(D);k&&u.ob(E,F,!0);return I["return"](u)})}function qm(a){return a.Jc}function sm(a){var b=bm(a,qm,"RepresentationIndex");a=am(a,qm,"indexRange");a=Jl(a||"");b&&(a=Gl(b,"range",Jl,a));return a}function rm(a,b){um(a,b);if(!sm(a))throw new N(2,4,4002);}function um(a,b){var c=a.O.mimeType.split("/")[1];if("text"!=a.O.contentType&&"mp4"!=c&&"webm"!=c)throw new N(2,4,4006);if("webm"==c&&!b)throw new N(2,4,4005);};function vm(a,b){var c=om(a,wm),d=xm(a);if(!d.xa&&!d.timeline&&1<d.$b.length)throw new N(2,4,4002);if(!d.xa&&!a.$.duration&&!d.timeline&&1==d.$b.length)throw new N(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new N(2,4,4002);var e=null,f=null;a.wa.id&&a.O.id&&(f=a.wa.id+","+a.O.id,e=b[f]);c=ym(a.$.start,a.$.duration,a.O.La,d,c);d=!e;e?e.ac(c,a.presentationTimeline.fb()):(e=new R(c),f&&a.wb&&(b[f]=e));a.presentationTimeline.cc(c);a.wb&&a.$.Ge||e.ob(a.$.start,a.$.duration?a.$.start+a.$.duration:
489
+ Infinity,d);return{Wb:function(){return Promise.resolve(e)}}}function wm(a){return a.rb}function xm(a){var b=zm(a);a=$l(a,wm);var c=a.fc;0==c&&(c=1);var d=0;a.xa?d=a.xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{xa:a.xa,startTime:d,fc:c,hb:a.hb,timeline:a.timeline,$b:b}}
490
+ function ym(a,b,c,d,e){var f=d.$b.length;d.timeline&&d.timeline.length!=d.$b.length&&(f=Math.min(d.timeline.length,d.$b.length));var g=a-d.hb,h=b?a+b:Infinity,k=[],l=d.startTime,m={};f=r(fb(f));for(var n=f.next();!n.done;m={xd:m.xd},n=f.next()){n=n.value;var q=d.$b[n];m.xd=Gb(c,[q.Xf]);var u=void 0;u=null!=d.xa?l+d.xa:d.timeline?d.timeline[n].end:l+b;k.push(new Dg(a+l,a+u,function(v){return function(){return v.xd}}(m),q.start,q.end,e,g,a,h));l=u}return k}
491
+ function zm(a){return[a.O.rb,a.za.rb,a.wa.rb].filter(Eb).map(function(b){return Bl(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.De&&(a.De=!0);var c=b.getAttribute("media");b=Gl(b,"mediaRange",Jl,{start:0,end:null});return{Xf:c,start:b.start,end:b.end}})};function Am(a,b,c,d,e,f){var g=Bm(a),h=Cm(a);Dm(h);var k=Pc(a);if(h.Cc)return um(a,g),{Wb:function(){var v=Zl(h.Cc,k.O.id,null,k.bandwidth||null,null);v=Gb(k.O.La,[v]);return tm(k,b,g,v,0,null,h.hb)}};if(h.xa)return d||(a.presentationTimeline.Pd(h.xa),a.presentationTimeline.Qd(a.$.start)),{Wb:function(){return Em(k,h,e,g,f)}};var l=null;d=null;a.wa.id&&a.O.id&&(d=a.wa.id+","+a.O.id,l=c[d]);var m=Fm(k,h,g),n=a.$.start,q=a.$.duration?a.$.start+a.$.duration:Infinity,u=Infinity!=q;l?(u&&(new R(m)).ob(n,
492
+ q,!0),l.ac(m,a.presentationTimeline.fb())):(l=new R(m),d&&a.wb&&(c[d]=l));a.presentationTimeline.cc(m);u&&l.ob(n,q);return{Wb:function(){return Promise.resolve(l)}}}function Gm(a){return a.Kc}function Cm(a){var b=$l(a,Gm),c=am(a,Gm,"media");a=am(a,Gm,"index");return{xa:b.xa,timescale:b.timescale,fc:b.fc,hb:b.hb,oe:b.oe,timeline:b.timeline,Od:c,Cc:a}}
493
+ function Dm(a){var b=a.Cc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new N(2,4,4002);1!=b&&(a.Cc&&(a.timeline=null),a.xa=null);if(!a.Cc&&!a.Od)throw new N(2,4,4002);}
494
+ function Em(a,b,c,d,e){function f(K){var P=(K-u)*q,T=P+b.hb;P+=l;var Da=Math.min(P+q,h());return new Dg(P,Da,function(){var ha=Zl(A,z,K,w,T*v);return Gb(D,[ha])},0,null,d,B,l,h())}function g(){var K=[Math.max(k.fb(),l),Math.min(k.pb(),h())].map(function(P){return P-l});return[Math.ceil(K[0]/q),Math.ceil(K[1]/q)-1].map(function(P){return P+u})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.$.start,m=a.wa.id,n=a.$.duration,q=b.xa,u=b.fc,v=b.timescale,A=b.Od,
495
+ w=a.bandwidth||null,z=a.O.id,D=a.O.La,B=l-b.hb,E=g();a=a.wb?Math.max(E[0],E[1]-c+1):E[0];E=E[1];c=[];for(var F=a;F<=E;++F){var I=f(F);c.push(I)}var G=new R(c);c=k.pb()<h();F=k.W();if(c||F){var J=Math.max(a,E+1);G.pd(q,function(){var K=k.fb();G.xb(K);var P=r(g());P.next();P=P.next().value;for(var T=[];J<=P;){var Da=f(J);T.push(Da);J++}return K>h()&&!T.length?null:T})}return Promise.resolve(G)}
496
+ function Fm(a,b,c){var d=a.$.start,e=a.$.duration,f=d-b.hb;e=e?d+e:Infinity;for(var g=[],h={},k=r(hb(b.timeline)),l=k.next();!l.done;h={wd:h.wd,yd:h.yd,Cd:h.Cd,td:h.td,Dd:h.Dd,ud:h.ud},l=k.next()){l=l.value;var m=l.item,n=m.start,q=m.wg;m=m.end;h.Cd=l.sa+b.fc;h.Dd=q+b.oe;h.yd=a.O.id;h.td=a.bandwidth||null;h.wd=b.Od;h.ud=a.O.La;g.push(new Dg(d+n,d+m,function(u){return function(){var v=Zl(u.wd,u.yd,u.Cd,u.td||null,u.Dd);return Gb(u.ud,[v]).map(function(A){return A.toString()})}}(h),0,null,c,f,d,e))}return g}
497
+ function Bm(a){var b=am(a,Gm,"initialization");if(!b)return null;var c=a.O.id,d=a.bandwidth||null,e=a.O.La;return new Bg(function(){var f=Zl(b,c,null,d,null);return Gb(e,[f])},0,null)};function Hm(){this.j=[];this.g=[];this.h=[];this.i=[];this.l=new Set}Hm.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.i=[];this.j=[]};
498
+ function Im(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da,ha,jb,Kb,ad;return H(function(Ya){switch(Ya.g){case 1:d=Ib;Jm(b);Km(b);Lm(b);if(!c&&1==b.length){e=b[0];a.g=e.Uc;a.h=e.rd;a.i=e.textStreams;Ya.C(2);break}f=-1;g=r(hb(b));for(h=g.next();!h.done;h=g.next())l=k=h.value,m=l.sa,n=l.item,a.l.has(n.id)||(a.l.add(n.id),-1==f&&(f=m));if(-1==f)return Ya["return"]();q=b.map(function(Lb){return Lb.Uc});u=b.map(function(Lb){return Lb.rd});v=b.map(function(Lb){return Lb.textStreams});A=
499
+ r(v);for(w=A.next();!w.done;w=A.next())z=w.value,z.push(Mm());return t(Ya,Nm(a.g,q,f,Om,Pm),3);case 3:return t(Ya,Nm(a.h,u,f,Om,Pm),4);case 4:return t(Ya,Nm(a.i,v,f,Om,Pm),2);case 2:D=0;B=[];if(a.h.length&&a.g.length)for(K=r(a.g),P=K.next();!P.done;P=K.next())for(T=P.value,Da=r(a.h),ha=Da.next();!ha.done;ha=Da.next())jb=ha.value,Kb=se(T.drmInfos,jb.drmInfos),T.drmInfos.length&&jb.drmInfos.length&&!Kb.length||(ad=D++,B.push({id:ad,language:T.language,primary:T.primary,audio:T,video:jb,bandwidth:(T.bandwidth||
500
+ 0)+(jb.bandwidth||0),drmInfos:Kb,allowedByApplication:!0,allowedByKeySystem:!0}));else for(E=a.h.concat(a.g),F=r(E),I=F.next();!I.done;I=F.next())G=I.value,J=D++,B.push({id:J,language:G.language,primary:G.primary,audio:G.type==d.tb?G:null,video:G.type==d.bb?G:null,bandwidth:G.bandwidth||0,drmInfos:G.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0});a.j=B;x(Ya)}})}
501
+ function Jm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Uc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Sc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Uc=c}}
502
+ function Lm(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&Sc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
503
+ function Km(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.rd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&Sc(e.roles,h.roles)&&td(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.rd=c}}
504
+ function Wm(a){var b,c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I;return H(function(G){switch(G.g){case 1:b=Ib;if(1==a.length)return G["return"](a[0]);c=a.map(function(J){return J.filter(function(K){return K.type==b.tb})});d=a.map(function(J){return J.filter(function(K){return K.type==b.bb})});e=a.map(function(J){return J.filter(function(K){return K.type==b.ya})});f=r(e);for(g=f.next();!g.done;g=f.next())h=g.value,h.push({id:0,originalId:"",primary:!1,type:"text",mimeType:"",codecs:"",language:"",label:null,
505
+ width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null});return t(G,Nm([],c,0,Xm,Ym),2);case 2:return k=G.h,t(G,Nm([],d,0,Xm,Ym),3);case 3:return l=G.h,t(G,Nm([],e,0,Xm,Ym),4);case 4:m=G.h;n=0;if(l.length&&k.length)for(w=r(k),z=w.next();!z.done;z=w.next())for(D=z.value,B=r(l),E=B.next();!E.done;E=B.next())F=E.value,I=n++,F.variantIds.push(I),D.variantIds.push(I);else for(q=l.concat(k),u=r(q),v=u.next();!v.done;v=
506
+ u.next())A=v.value,A.variantIds=[n++];return G["return"](l.concat(k).concat(m))}})}
507
+ function Nm(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da;return H(function(ha){switch(ha.g){case 1:f=Ib;g=[];h=r(hb(b));for(k=h.next();!k.done;k=h.next())m=l=k.value,n=m.sa,q=m.item,n>=c?g.push(new Set(q)):g.push(new Set);u=r(a);v=u.next();case 2:if(v.done){ha.C(4);break}A=v.value;return t(ha,Zm(A,b,c,e,g),5);case 5:w=ha.h;if(!w)throw new N(2,4,4037);v=u.next();ha.C(2);break;case 4:z=r(g),D=z.next();case 6:if(D.done){ha.C(8);break}B=D.value;E=r(B);F=E.next();case 9:if(F.done){D=
508
+ z.next();ha.C(6);break}I=F.value;return t(ha,$m(I,b,d,e,g),12);case 12:(G=ha.h)&&a.push(G);F=E.next();ha.C(9);break;case 8:J=r(g);for(D=J.next();!D.done;D=J.next())for(K=D.value,P={},T=r(K),F=T.next();!F.done;P={Rb:P.Rb},F=T.next())if(P.Rb=F.value,P.Rb.type!=f.ya||P.Rb.language)if(Da=a.some(function(jb){return function(Kb){return Kb.mimeType==jb.Rb.mimeType&&xd(Kb.codecs)==xd(jb.Rb.codecs)}}(P)))throw new N(2,4,4037);return ha["return"](a)}})}
509
+ function Zm(a,b,c,d,e){var f;return H(function(g){if(1==g.g)return(f=an(b,a))?t(g,bn(f),2):g["return"](!1);cn(a,f,c,d,e);return g["return"](!0)})}function bn(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push(c.createSegmentIndex()),c.trickModeVideo&&!c.trickModeVideo.segmentIndex&&b.push(c.trickModeVideo.createSegmentIndex());return Promise.all(b)}
510
+ function $m(a,b,c,d,e){var f,g;return H(function(h){if(1==h.g)return f=c(a),(g=an(b,f))?f.createSegmentIndex?t(h,bn(g),2):h.C(2):h["return"](null);cn(f,g,0,d,e);return h["return"](f)})}function cn(a,b,c,d,e){b=r(hb(b));for(var f=b.next();!f.done;f=b.next()){var g=f.value;f=g.sa;g=g.item;if(f>=c){d(a,g);var h=!0;"audio"==a.type&&0==Qb(a.language,g.language)&&(h=!1);h&&e[f]["delete"](g)}}}
511
+ function Om(a){a=Object.assign({},a);a.originalId=null;a.createSegmentIndex=function(){return Promise.resolve()};a.segmentIndex=new bh;a.emsgSchemeIdUris=[];a.keyIds=new Set;a.closedCaptions=null;a.trickModeVideo=null;return a}function Xm(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
512
+ function Pm(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))));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");c=se(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new N(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
513
+ (a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}a.segmentIndex.j.push(b.segmentIndex);b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Om(b.trickModeVideo),a.trickModeVideo.segmentIndex=a.segmentIndex.clone()),Pm(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Pm(a.trickModeVideo,b)}
514
+ function Ym(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
515
+ function an(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:dn,video:dn,text:en}[f.type],h={audio:fn,video:gn,text:hn}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return null;c.push(f)}return c}function dn(a,b){var c;if(!(c=b.mimeType!=a.mimeType||xd(b.codecs)!=xd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<se(c,d).length:1)}return c?!1:!0}
516
+ function en(a,b){return a.language?b.language?0==Qb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}
517
+ function fn(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
518
+ d=jn(a.channelsCount,b.channelsCount,c.channelsCount);if(d==kn)return!0;if(d==ln)return!1;d=jn(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==kn?!0:d==ln?!1:a.bandwidth&&mn(a.bandwidth,b.bandwidth,c.bandwidth)==kn?!0:!1}
519
+ function gn(a,b,c){if(a.id==c.id)return!0;var d=jn(a.width*a.height,b.width*b.height,c.width*c.height);if(d==kn)return!0;if(d==ln)return!1;if(a.frameRate){d=jn(a.frameRate,b.frameRate,c.frameRate);if(d==kn)return!0;if(d==ln)return!1}return a.bandwidth&&mn(a.bandwidth,b.bandwidth,c.bandwidth)==kn?!0:!1}
520
+ function hn(a,b,c){if(a.id==c.id)return!0;var d=Qb(a.language,b.language),e=Qb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
521
+ a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Mm(){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new R([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null}}
522
+ function jn(a,b,c){if(b==a&&a!=c)return ln;if(c==a&&a!=b)return kn;if(b>a){if(c<=a||c-a<b-a)return kn;if(c-a>b-a)return ln}else{if(c>a)return ln;if(a-c<a-b)return kn;if(a-c>a-b)return ln}return nn}function mn(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?kn:b<a?ln:nn}var kn=1,nn=0,ln=-1;function on(){var a=this;this.G=this.v=null;this.h=[];this.F=null;this.B=1;this.l={};this.J={};this.g=new Hm;this.A=0;this.D=new Yb(5);this.u=new O(function(){a.Fc()});this.i=new Uc;this.j=null;this.H=[]}p=on.prototype;p.configure=function(a){this.v=a};p.start=function(a,b){var c=this,d;return H(function(e){if(1==e.g)return c.h=[a],c.G=b,t(e,pn(c),2);d=e.h;c.G&&qn(c,d);if(!c.G)throw new N(2,7,7001);return e["return"](c.F)})};
523
+ p.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b.value.release();this.g&&this.g.release();this.v=this.G=null;this.h=[];this.F=null;this.l={};this.g=null;null!=this.u&&(this.u.stop(),this.u=null);return this.i.destroy()};p.update=function(){var a=this,b;return H(function(c){if(1==c.g)return y(c,2),t(c,pn(a),4);if(2!=c.g)return ua(c,0);b=C(c);if(!a.G||!b)return c["return"]();a.G.onError(b);x(c)})};p.onExpirationUpdated=function(){};
524
+ function pn(a){var b,c,d,e,f,g,h;return H(function(k){if(1==k.g)return b=$c(a.h,a.v.retryParameters),c=a.G.networkingEngine,d=Date.now(),e=c.request(0,b),Vc(a.i,e),t(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.G)return k["return"](0);f.uri&&!a.h.includes(f.uri)&&a.h.unshift(f.uri);return t(k,rn(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;Zb(a.D,1,h);return k["return"](h)})}
525
+ function rn(a,b,c){var d,e,f,g;return H(function(h){if(1==h.g){d=Pl(b,"MPD");if(!d)throw new N(2,4,4001,c);e=a.v.dash.xlinkFailGracefully;f=dm(d,a.v.retryParameters,e,c,a.G.networkingEngine);Vc(a.i,f);return t(h,f.promise,2)}g=h.h;return h["return"](sn(a,g,c))})}
526
+ function sn(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da;return H(function(ha){switch(ha.g){case 1:d=[c];e=Bl(b,"Location").map(Fl).filter(Eb);0<e.length&&(f=Gb(d,e),d=a.h=f);g=Bl(b,"BaseURL").map(Fl);h=Gb(d,g);k=a.v.dash.ignoreMinBufferTime;l=0;k||(l=Gl(b,"minBufferTime",Il)||0);a.A=Gl(b,"minimumUpdatePeriod",Il,-1);m=Gl(b,"availabilityStartTime",Hl);n=Gl(b,"timeShiftBufferDepth",Il);q=a.v.dash.ignoreSuggestedPresentationDelay;u=null;q||(u=Gl(b,"suggestedPresentationDelay",Il));
527
+ v=Gl(b,"maxSegmentDuration",Il);A=b.getAttribute("type")||"static";if(a.F)for(w=a.F.presentationTimeline,z=r(Object.values(a.l)),D=z.next();!D.done;D=z.next())B=D.value,B.xb(w.fb());else E=a.v.defaultPresentationDelay||1.5*l,F=null!=u?u:E,w=new Q(m,F,a.v.dash.autoCorrectDrift);I={wb:"static"!=A,presentationTimeline:w,wa:null,$:null,za:null,O:null,bandwidth:0,De:!1};G=tn(a,I,h,b);J=G.duration;K=G.periods;w.Lc("static"==A);"static"!=A&&G.xe||w.Ya(J||Infinity);(P=w.W())&&!isNaN(a.v.availabilityWindowOverride)&&
528
+ (n=a.v.availabilityWindowOverride);null==n&&(n=Infinity);w.ce(n);w.Pd(v||1);return t(ha,Im(a.g,K,I.wb),2);case 2:if(a.F){a.F.variants=a.g.j;a.F.textStreams=a.g.i.slice();ha.C(3);break}a.F={presentationTimeline:w,variants:a.g.j,textStreams:a.g.i.slice(),offlineSessionIds:[],minBufferTime:l||0};if(!w.$e()){ha.C(3);break}T=Bl(b,"UTCTiming");return t(ha,un(a,h,T),5);case 5:Da=ha.h;if(!a.G)return ha["return"]();w.Te(Da);case 3:return a.G.makeTextStreamsForClosedCaptions(a.F),t(ha,a.G.filter(a.F),0)}})}
529
+ function tn(a,b,c,d){var e=Gl(d,"mediaPresentationDuration",Il),f=[],g=0;d=Bl(d,"Period");for(var h=r(hb(d)),k=h.next();!k.done;k=h.next()){var l=k.value;k=l.sa;var m=l.item,n=l.next;l=Gl(m,"start",Il,g);var q=m.id,u=Gl(m,"duration",Il),v=null;if(n){var A=Gl(n,"start",Il);null!=A&&(v=A-l)}else null!=e&&(v=e-l);null==v&&(v=u);if(!(null!==a.j&&null!==q&&null!==l&&l<a.j)||a.H.includes(q)||k+1==d.length){null!==l&&(null===a.j||l>a.j)&&(a.j=l);g=vn(a,b,c,{start:l,duration:v,node:m,Ge:null==v||!n});f.push(g);
530
+ b.wa.id&&v&&(a.J[b.wa.id]=v);if(null==v){g=null;break}g=l+v}}a.H=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,xe:!1}:{periods:f,duration:g,xe:!0}}
531
+ function vn(a,b,c,d){b.wa=wn(d.node,null,c);b.$=d;b.wa.id||(b.wa.id="__shaka_period_"+d.start);c=Bl(d.node,"EventStream");c=r(c);for(var e=c.next();!e.done;e=c.next())xn(a,d.start,d.duration,e.value);c=Bl(d.node,"AdaptationSet").map(function(m){return yn(a,b,m)}).filter(Eb);if(b.wb){d=[];e=r(c);for(var f=e.next();!f.done;f=e.next()){f=r(f.value.hg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new N(2,4,4018);}d=c.filter(function(m){return!m.ke});c=c.filter(function(m){return m.ke});
532
+ c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.ke.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={Rc:h.Rc},l=k.next())h.Rc=l.value,h.Rc.trickModeVideo=e.streams.find(function(m){return function(n){return xd(m.Rc.codecs)==xd(n.codecs)}}(h))}}}e=a.v.disableAudio?[]:zn(d,"audio");f=a.v.disableVideo?[]:zn(d,"video");c=a.v.disableText?[]:zn(d,"text");if(!f.length&&!e.length)throw new N(2,4,4004);d=[];
533
+ e=r(e);for(g=e.next();!g.done;g=e.next())d.push.apply(d,ia(g.value.streams));e=[];f=r(f);for(g=f.next();!g.done;g=f.next())e.push.apply(e,ia(g.value.streams));f=[];c=r(c);for(g=c.next();!g.done;g=c.next())f.push.apply(f,ia(g.value.streams));return{id:b.wa.id,Uc:d,rd:e,textStreams:f}}function zn(a,b){return a.filter(function(c){return c.contentType==b})}
534
+ function yn(a,b,c){b.za=wn(c,b.wa,null);if("image"==b.za.contentType)return null;var d=!1,e=Bl(c,"Role"),f=e.map(function(B){return B.getAttribute("value")}).filter(Eb),g=void 0,h="text"==b.za.contentType;h&&(g="subtitle");e=r(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var l=k.getAttribute("schemeIdUri");if(null==l||"urn:mpeg:dash:role:2011"==l)switch(k=k.getAttribute("value"),k){case "main":d=!0;break;case "caption":case "subtitle":g=k}}l=Bl(c,"EssentialProperty");e=null;k=!1;l=r(l);for(var m=
535
+ l.next();!m.done;m=l.next())m=m.value,"http://dashif.org/guidelines/trickmode"==m.getAttribute("schemeIdUri")?e=m.getAttribute("value"):k=!0;l=Bl(c,"Accessibility");var n=new Map;l=r(l);for(m=l.next();!m.done;m=l.next()){var q=m.value;m=q.getAttribute("schemeIdUri");q=q.getAttribute("value");if("urn:scte:dash:cc:cea-608:2015"==m||"urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=q){q=r(q.split(";"));for(var u=q.next();!u.done;u=q.next()){var v=u.value,A=u=void 0;v.includes("=")?(v=v.split("="),u=v[0].startsWith("CC")?
536
+ v[0]:"CC"+v[0],A=v[1].split(",")[0].split(":").pop()):(u="CC"+m,m+=2,A=v);n.set(u,Mb(A))}}else n.set("CC1","und");else"urn:mpeg:dash:role:2011"==m&&null!=q&&(f.push(q),"captions"==q&&(g="caption"))}if(k)return null;k=Bl(c,"ContentProtection");var w=Ql(k,a.v.dash.ignoreDrmInfo),z=Mb(c.getAttribute("lang")||"und"),D=c.getAttribute("label");(k=Bl(c,"Label"))&&k.length&&(k=k[0],k.textContent&&(D=k.textContent));k=Bl(c,"Representation");c=k.map(function(B){return An(a,b,w,g,z,D,d,f,n,B)}).filter(function(B){return!!B});
537
+ if(0==c.length){if(a.v.dash.ignoreEmptyAdaptationSet||h)return null;throw new N(2,4,4003);}if(!b.za.contentType||"application"==b.za.contentType)for(b.za.contentType=Bn(c[0].mimeType,c[0].codecs),h=r(c),l=h.next();!l.done;l=h.next())l.value.type=b.za.contentType;h=r(c);for(l=h.next();!l.done;l=h.next())for(l=l.value,m=r(w.drmInfos),q=m.next();!q.done;q=m.next())q=q.value,q.keyIds=q.keyIds&&l.keyIds?new Set([].concat(ia(q.keyIds),ia(l.keyIds))):q.keyIds||l.keyIds;h=k.map(function(B){return B.getAttribute("id")}).filter(Eb);
538
+ return{id:b.za.id||"__fake__"+a.B++,contentType:b.za.contentType,language:z,Yg:d,streams:c,drmInfos:w.drmInfos,ke:e,hg:h}}
539
+ function An(a,b,c,d,e,f,g,h,k,l){b.O=wn(l,b.za,null);if(!Cn(b.O))return null;var m=b.$.start;b.bandwidth=Gl(l,"bandwidth",Ll)||0;var n=b.O.contentType;n="text"==n||"application"==n;try{var q=function(z,D,B){return Dn(a,z,D,B)};if(b.O.Jc)var u=pm(b,q);else if(b.O.rb)u=vm(b,a.l);else if(b.O.Kc)u=Am(b,q,a.l,!!a.F,a.v.dash.initialSegmentLimit,a.J);else{var v=b.O.La,A=b.$.duration||0;u={Wb:function(){return Promise.resolve(ah(m,A,v))}}}}catch(z){if(n&&4002==z.code)return null;throw z;}n=Bl(l,"ContentProtection");
540
+ n=Ul(n,c,a.v.dash.ignoreDrmInfo);n=new Set(n?[n]:[]);Bl(l,"SupplementalProperty").some(function(z){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==z.getAttribute("schemeIdUri")&&"JOC"==z.getAttribute("value")})&&(b.O.mimeType="audio/eac3-joc");var w={id:a.B++,originalId:b.O.id,createSegmentIndex:function(){var z;return H(function(D){if(1==D.g){if(w.segmentIndex)return D.C(0);z=w;return t(D,u.Wb(),3)}z.segmentIndex=D.h;x(D)})},segmentIndex:null,mimeType:b.O.mimeType,codecs:b.O.codecs,frameRate:b.O.frameRate,
541
+ pixelAspectRatio:b.O.pixelAspectRatio,bandwidth:b.bandwidth,width:b.O.width,height:b.O.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.O.emsgSchemeIdUris,roles:h,channelsCount:b.O.Rd,audioSamplingRate:b.O.audioSamplingRate,closedCaptions:k};return w}
542
+ p.Fc=function(){var a=this,b,c;return H(function(d){switch(d.g){case 1:return b=0,y(d,2),t(d,pn(a),4);case 4:b=d.h;ua(d,3);break;case 2:c=C(d),a.G&&(c.severity=1,a.G.onError(c));case 3:if(!a.G)return d["return"]();qn(a,b);x(d)}})};function qn(a,b){0>a.A||a.u.V(Math.max(3,a.A-b,$b(a.D)))}
543
+ function wn(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Rd:null,audioSamplingRate:null};c=c||b.La;var d=Bl(a,"BaseURL").map(Fl),e=a.getAttribute("contentType")||b.contentType,f=a.getAttribute("mimeType")||b.mimeType,g=a.getAttribute("codecs")||b.codecs,h=Gl(a,"frameRate",Nl)||b.frameRate,k=a.getAttribute("sar")||b.pixelAspectRatio,l=Bl(a,"InbandEventStream"),m=b.emsgSchemeIdUris.slice();l=r(l);for(var n=l.next();!n.done;n=l.next())n=
544
+ n.value.getAttribute("schemeIdUri"),m.includes(n)||m.push(n);l=Bl(a,"AudioChannelConfiguration");l=En(l)||b.Rd;n=Gl(a,"audioSamplingRate",Ml)||b.audioSamplingRate;e||(e=Bn(f,g));return{La:Gb(c,d),Jc:Al(a,"SegmentBase")||b.Jc,rb:Al(a,"SegmentList")||b.rb,Kc:Al(a,"SegmentTemplate")||b.Kc,width:Gl(a,"width",Ml)||b.width,height:Gl(a,"height",Ml)||b.height,contentType:e,mimeType:f,codecs:g,frameRate:h,pixelAspectRatio:k,emsgSchemeIdUris:m,id:a.getAttribute("id"),Rd:l,audioSamplingRate:n}}
545
+ function En(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":if(b=
546
+ parseInt(c,16)){for(a=0;b;)b&1&&++a,b>>=1;return a}}}return null}function Cn(a){var b=a.Jc?1:0;b+=a.rb?1:0;b+=a.Kc?1:0;if(0==b)return"text"==a.contentType||"application"==a.contentType?!0:!1;1!=b&&(a.Jc&&(a.rb=null),a.Kc=null);return!0}
547
+ function Fn(a,b,c,d){var e,f,g,h,k,l;return H(function(m){if(1==m.g)return e=Gb(b,[c]),f=$c(e,a.v.retryParameters),f.method=d,g=a.G.networkingEngine.request(4,f),Vc(a.i,g),t(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=lc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
548
+ function un(a,b,c){var d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.getAttribute("schemeIdUri"),value:q.getAttribute("value")}}),e=a.v.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.C(4);break}h=g.value;y(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.C(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.C(8);
549
+ 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":Oa("NTP UTCTiming scheme is not supported");break;default:Oa("Unrecognized scheme in UTCTiming element",k)}n.C(9);break;case 7:return t(n,Fn(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return t(n,Fn(a,b,l,"GET"),11);case 11:return n["return"](n.h);
550
+ case 9:ua(n,3);break;case 5:C(n);case 3:g=f.next();n.C(2);break;case 4:return Oa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
551
+ function xn(a,b,c,d){var e=d.getAttribute("schemeIdUri")||"",f=d.getAttribute("value")||"",g=Gl(d,"timescale",Ml)||1;d=r(Bl(d,"Event"));for(var h=d.next();!h.done;h=d.next()){h=h.value;var k=Gl(h,"presentationTime",Ml)||0,l=Gl(h,"duration",Ml)||0;k=k/g+b;l=k+l/g;null!=c&&(k=Math.min(k,b+c),l=Math.min(l,b+c));h={schemeIdUri:e,value:f,startTime:k,endTime:l,id:h.getAttribute("id")||"",eventElement:h};a.G.onTimelineRegionAdded(h)}}
552
+ function Dn(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=gd,f=nh(b,c,d,a.v.retryParameters),g=a.G.networkingEngine,h=g.request(e,f),Vc(a.i,h),t(l,h.promise,2);k=l.h;return l["return"](k.data)})}function Bn(a,b){return lf(ud(a,b))?"text":a.split("/")[0]}L("shaka.dash.DashParser",on);zg.mpd=function(){return new on};xg["application/dash+xml"]=function(){return new on};xg["video/vnd.mpeg.dash.mpd"]=function(){return new on};function Gn(a,b,c,d){this.g=a;this.type=b;this.qa=c;this.segments=d||null}function Hn(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Hn.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};
553
+ Hn.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function In(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Jn(a,b){var c=a.getAttribute(b);if(!c)throw new N(2,4,4023,b);return c.value}function Kn(a,b){this.qa=b;this.g=a}function Ln(a,b){this.name=a;this.value=b};function Mn(a,b){return a.filter(function(c){return c.name==b})}function Nn(a,b){return a.filter(function(c){return Jn(c,"TYPE")==b})}function On(a,b){var c=Mn(a,b);return c.length?c[0]:null}function Pn(a,b,c){c=void 0===c?0:c;return(a=On(a,b))?Number(a.value):c};function Qn(a){this.h=a;this.g=0}function Rn(a){Sn(a,/[ \t]+/gm)}function Sn(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function Tn(a){return a.g==a.h.length?null:(a=Sn(a,/[^ \t\n]*/gm))?a[0]:null};function Un(){this.g=0}
554
+ function Vn(a,b,c){b=lc(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 N(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Wn(a.g++,g),--a.g,Xn.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;g=r(hb(d));for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=k.sa;var l=k.item;k=k.next;if(/^#(?!EXT)/m.test(l)||e)e=!1;else{l=Wn(a.g++,
555
+ l);if(Yn.includes(l.name)){if(1!=b)throw new N(2,4,4017);l=d.splice(h,d.length-h);d=c;e=[];g=[];h=null;l=r(l);for(k=l.next();!k.done;k=l.next())k=k.value,/^(#EXT)/.test(k)?(k=Wn(a.g++,k),Xn.includes(k.name)?f.push(k):"EXT-X-MAP"==k.name?h=k:g.push(k)):/^#(?!EXT)/m.test(k)||(k=Gb([d],[k.trim()])[0],h&&g.push(h),e.push(new Kn(k,g)),g=[]);return new Gn(c,b,f,e)}f.push(l);"EXT-X-STREAM-INF"==l.name&&(l.g.push(new Ln("URI",k)),e=!0)}}return new Gn(c,b,f)}
556
+ function Wn(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new N(2,4,4016,b);var d=c[1],e=c[2];c=[];var f;if(e){e=new Qn(e);var g;(g=Sn(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=Sn(e,h);)c.push(new Ln(g[1],g[2]||g[3]))}return new Hn(a,d,c,f)}var Xn="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST".split(" "),Yn="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Zn(){}function $n(a){try{var b=ao(a);return Kc({uri:a,Me:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ic(c)}}function ao(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new N(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new N(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=vc(a):e=pc(a);return{data:e,contentType:c}}
557
+ L("shaka.net.DataUriPlugin",Zn);Zn.parse=$n;Xc("data",$n);function bo(){var a=this;this.v=this.G=null;this.ra=1;this.A=new Map;this.l=new Map;this.ka=new Set;this.h=new Map;this.g=null;this.S="";this.N=new Un;this.ba=0;this.u=new O(function(){a.Fc()});this.i=co;this.F=null;this.X=0;this.aa=Infinity;this.B=new Uc;this.K=[];this.H=new Map;this.ua=!1;this.j=new Map;this.J=null;this.P=new Map;this.D=new Map}p=bo.prototype;p.configure=function(a){this.v=a};
558
+ p.start=function(a,b){var c=this,d,e;return H(function(f){if(1==f.g)return c.G=b,t(f,eo(c,$c([a],c.v.retryParameters),0),2);if(3!=f.g)return d=f.h,c.S=d.uri,t(f,fo(c,d.data),3);e=c.ba;0<e&&c.u.V(e);return f["return"](c.F)})};p.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.B&&(a.push(this.B.destroy()),this.B=null);this.v=this.G=null;this.ka.clear();this.F=null;this.h.clear();this.l.clear();this.j.clear();this.A.clear();return Promise.all(a)};
559
+ p.update=function(){var a=this,b,c,d;return H(function(e){if(1==e.g){if(a.i==co)return e["return"]();b=[];a.J=null;c=Array.from(a.h.values());return c.length?t(e,go(a,c[0]),2):e.C(2)}for(d=1;d<c.length;d++)b.push(go(a,c[d]));return t(e,Promise.all(b),0)})};
560
+ function go(a,b){var c,d,e,f,g,h,k,l,m,n;return H(function(q){if(1==q.g)return c=ho,d=b.ef,t(q,eo(a,$c([d],a.v.retryParameters),0),2);if(3!=q.g){e=q.h;f=Vn(a.N,e.data,e.uri);if(1!=f.type)throw new N(2,4,4017);g=Mn(f.qa,"EXT-X-DEFINE");h=io(a,g);k=b.stream;return t(q,jo(a,b.qd,f,k.mimeType,b.He,h),3)}l=q.h;k.segmentIndex.ac(l,a.g.fb());l.length&&k.segmentIndex.xb(l[0].startTime);m=l[l.length-1];if(n=On(f.qa,"EXT-X-ENDLIST"))ko(a,c.df),a.g.Ya(m.endTime);x(q)})}p.onExpirationUpdated=function(){};
561
+ function fo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K;return H(function(P){switch(P.g){case 1:c=Vn(a.N,b,a.S);if(0!=c.type)throw new N(2,4,4022);d=Mn(c.qa,"EXT-X-DEFINE");lo(a,d);e=Mn(c.qa,"EXT-X-MEDIA");f=Mn(c.qa,"EXT-X-STREAM-INF");mo(a,f);return t(P,no(a,e),2);case 2:return oo(a,e),t(P,po(a,f),3);case 3:return g=P.h,t(P,qo(a,e),4);case 4:h=P.h;if(!a.G)throw new N(2,7,7001);if(a.ua&&0==g.length)throw new N(2,4,4034);l=k=Infinity;m=r(a.h.values());for(n=m.next();!n.done;n=m.next())q=
562
+ n.value,k=Math.min(k,q.Ie),"text"!=q.stream.type&&(l=Math.min(l,q.Wf-q.Ie));a.i!=co?(a.g=new Q(0,a.v.defaultPresentationDelay||3*a.X),a.g.Lc(!1)):(a.g=new Q(null,0),a.g.Lc(!0));ro(a);if(a.i!=co)a.ba=a.aa,u=ho,a.i==u.cf&&(v=a.g.kd,isNaN(a.v.availabilityWindowOverride)||(v=a.v.availabilityWindowOverride),a.g.ce(v));else for(a.g.Ya(l),a.g.offset(-k),A=r(a.h.values()),n=A.next();!n.done;n=A.next())w=n.value,w.stream.segmentIndex.offset(-k),w.stream.segmentIndex.ob(0,l);a.K=[];z=[];D=r(g);for(B=D.next();!B.done;B=
563
+ D.next())for(E=B.value,F=r([E.video,E.audio]),I=F.next();!I.done;I=F.next())(G=I.value)&&z.push(G);return t(P,Promise.all(z.map(function(T){return H(function(Da){return t(Da,T.createSegmentIndex(),0)})})),5);case 5:J=r(z);for(I=J.next();!I.done;I=J.next())K=I.value,a.K.push(K.segmentIndex.R);ro(a);a.F={presentationTimeline:a.g,variants:g,textStreams:h,offlineSessionIds:[],minBufferTime:0};a.G.makeTextStreamsForClosedCaptions(a.F);return t(P,a.G.filter(a.F),0)}})}
564
+ function lo(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=In(e,"NAME");e=In(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}function io(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=In(f,"NAME");var g=In(f,"VALUE");f=In(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
565
+ function mo(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=In(e,"AUDIO");d=In(e,"VIDEO");var g=In(e,"SUBTITLES");e=so(a,e);if(g){var h=to("text",e);a.j.set(g,h);Rc(e,h)}f&&(g=uo("audio",e),a.j.set(f,g));d&&(f=uo("video",e),a.j.set(d,f))}}
566
+ function qo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return c=Nn(b,"SUBTITLES"),d=c.map(function(A){var w,z,D;return H(function(B){if(1==B.g){if(w=a.v.disableText)return B["return"](null);y(B,2);return t(B,vo(a,A),4)}if(2!=B.g)return z=B.h,B["return"](z.stream);D=C(B);if(a.v.hls.ignoreTextStreamFailures)return B["return"](null);throw D;})}),t(v,Promise.all(d),2);e=v.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=Jn(h,"GROUP-ID"),l=a.j.get(k))if(m=a.l.get(k))for(n=
567
+ r(m),q=n.next();!q.done;q=n.next())u=q.value,u.stream.codecs=l;return v["return"](e.filter(function(A){return A}))})}function no(a,b){var c;return H(function(d){if(1==d.g)return b=b.filter(function(e){var f=In(e,"URI")||"";return"SUBTITLES"!=In(e,"TYPE")&&""!=f}),b.length?t(d,vo(a,b[0]),2):d.C(2);c=b.slice(1).map(function(e){return vo(a,e)});return t(d,Promise.all(c),0)})}
568
+ function po(a,b){var c,d,e;return H(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return h=In(g,"FRAME-RATE"),k=Number(In(g,"AVERAGE-BANDWIDTH"))||Number(Jn(g,"BANDWIDTH")),l=In(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,q=m.next().value,t(v,wo(a,g),2);if(u=v.h){for(var A=v["return"],w=u.audio,z=u.video,D=r(z),B=D.next();!B.done;B=D.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(q)||void 0,B.frameRate=
569
+ Number(h)||void 0;D=a.v.disableAudio;if(!w.length||D)w=[null];D=a.v.disableVideo;if(!z.length||D)z=[null];D=[];w=r(w);for(B=w.next();!B.done;B=w.next()){B=B.value;for(var E=r(z),F=E.next();!F.done;F=E.next()){var I=F.value;F=B?B.stream:null;var G=I?I.stream:null,J=B?B.stream.drmInfos:null,K=I?I.stream.drmInfos:null;I=(I?I.qd:"")+" - "+(B?B.qd:"");F&&G&&J.length&&K.length&&!(0<se(J,K).length)||a.ka.has(I)||(F={id:a.ra++,language:F?F.language:"und",primary:!!F&&F.primary||!!G&&G.primary,audio:F,video:G,
570
+ bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0},D.push(F),a.ka.add(I))}}v=A.call(v,D)}else v=v["return"]([]);return v})}),t(f,Promise.all(c),2);d=f.h;e=d.reduce(Cb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
571
+ function wo(a,b){var c,d,e,f,g,h,k,l,m,n,q,u,v,A;return H(function(w){if(1==w.g)return c=Ib,d=so(a,b),e=In(b,"AUDIO"),f=In(b,"VIDEO"),h=(g=e||f)&&a.l.has(g)?a.l.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=Jn(b,"URI"),q=k.audio.find(function(z){return z&&z.qd==n}),u=to(c.bb,d),(v=to(c.tb,d))&&!u?l=c.tb:!h.length&&v&&u?(l=c.bb,d=[[u,v].join()]):k.audio.length&&q?(l=c.tb,m=!0):l=k.video.length?c.tb:c.bb,m?w.C(2):t(w,xo(a,b,d,l),3);2!=w.g&&(A=w.h);if(A)k[A.stream.type]=[A];else if(null===A)return w["return"](null);
572
+ yo(k);return w["return"](k)})}function so(a,b){var c=[];a.v.disableVideo||c.push("avc1.42E01E");a.v.disableAudio||c.push("mp4a.40.2");var d=In(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=xd(f);c.has(g)||(e.push(f),c.add(g))}return e}function zo(a){a=In(a,"LANGUAGE")||"und";return Mb(a)}
573
+ function yo(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function oo(a,b){var c=Nn(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=zo(e);var f=Jn(e,"GROUP-ID");e=Jn(e,"INSTREAM-ID");a.H.get(f)||a.H.set(f,new Map);a.H.get(f).set(e,d)}}
574
+ function vo(a,b){var c,d,e,f,g,h,k,l,m,n,q;return H(function(u){if(1==u.g){c=Jn(b,"GROUP-ID");d="";var v=Jn(b,"TYPE").toLowerCase();"subtitles"==v&&(v="text");e=v;"text"!=e&&c&&a.j.has(c)&&(d=a.j.get(c));f=Ao(Jn(b,"URI"),a.A);if(a.h.has(f))return u["return"](a.h.get(f));g=zo(b);h=In(b,"NAME");k=In(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=In(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;n=In(b,"CHARACTERISTICS");return t(u,Bo(a,f,d,e,g,l,h,m,null,n),2)}q=u.h;a.l.has(c)?a.l.get(c).push(q):
573
575
  a.l.set(c,[q]);if(null==q)return u["return"](null);if(a.h.has(f))return u["return"](a.h.get(f));a.h.set(f,q);return u["return"](q)})}
574
- function to(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){e=vo(Hn(b,"URI"),a.A);if(a.h.has(e))return k["return"](a.h.get(e));var l=Gn(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.H.get(l):null;g=lo(d,c);return t(k,wo(a,e,g,d,"und",!1,null,null,f,null),2)}h=k.h;if(null==h)return k["return"](null);if(a.h.has(e))return k["return"](a.h.get(e));a.h.set(e,h);return k["return"](h)})}
575
- function wo(a,b,c,d,e,f,g,h,k,l){var m,n,q,u,v,A,w,z,C,B,E,F,I,H,K,N,U,S,Ia,ha,Na,ab,Ra,Ja,Ga,ib,Ud,bb,Vd,Rm,Sm,zh,Ah,rf,Tm,Um;return G(function(cb){switch(cb.g){case 1:return m=Kb([a.P],[b])[0],t(cb,bo(a,bd([m],a.v.retryParameters),0),2);case 2:n=cb.h;m=n.uri;q=Tn(a.K,n.data,m);if(1!=q.type)throw new M(2,4,4017);u=[];if(q.segments)for(v=r(q.segments),A=v.next();!A.done;A=v.next())w=A.value,z=Kn(w.oa,"EXT-X-KEY"),u.push.apply(u,ia(z));C=!1;B=[];E=new Set;F=r(u);for(I=F.next();!I.done;I=F.next())if(H=
576
- I.value,K=Hn(H,"METHOD"),"NONE"!=K){C=!0;if("AES-128"==K)return a.ra=!0,cb["return"](null);N=Hn(H,"KEYFORMAT");if(S=(U=xo[N])?U(H):null){if(S.keyIds)for(Ia=r(S.keyIds),ha=Ia.next();!ha.done;ha=Ia.next())Na=ha.value,E.add(Na);B.push(S)}}if(C&&!B.length)throw new M(2,4,4026);ab=Kn(q.oa,"EXT-X-DEFINE");Ra=go(a,ab);yo(a,q);return t(cb,zo(a,d,c,q,Ra),3);case 3:return Ja=cb.h,Ao.includes(Ja)&&(c=""),Ga=new Map,y(cb,4),t(cb,ho(a,b,q,Ja,Ga,Ra),6);case 6:ib=cb.h;ua(cb,5);break;case 4:Ud=D(cb);if(4035==Ud.code)return Qa("Skipping unsupported HLS stream",
577
- Ja,b),cb["return"](null);throw Ud;case 5:bb=ib[0].startTime;Vd=ib[ib.length-1].endTime;Rm=new Q(ib);Sm="text"==d?"subtitle":void 0;zh=[];if(l)for(Ah=r(l.split(",")),rf=Ah.next();!rf.done;rf=Ah.next())Tm=rf.value,zh.push(Tm);Um={id:a.qa++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Rm,mimeType:Ja,codecs:c,kind:Sm,encrypted:C,drmInfos:B,keyIds:E,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,
578
- width:void 0,height:void 0,bandwidth:void 0,roles:zh,channelsCount:h,audioSamplingRate:null,closedCaptions:k};return cb["return"]({stream:Um,od:b,cf:m,Ge:bb,Uf:Vd,Fe:Ga})}})}function yo(a,b){var c=Mn(b.oa,"EXT-X-PLAYLIST-TYPE"),d=Mn(b.oa,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;d?io(a,ao):(c?io(a,Bo):io(a,Co),d=Do(b.oa,"EXT-X-TARGETDURATION"),d=Number(d.value),a.R=Math.max(d,a.R),a.W=Math.min(d,a.W))}
579
- function Eo(a,b,c,d){c=Mn(c,"EXT-X-MAP");if(!c)return null;var e=Hn(c,"URI");d=vo(Kb([b],[e])[0],d);b=[d,Gn(c,"BYTERANGE","")].join("-");a.N.has(b)||(c=Fo(d,c),a.N.set(b,c));return a.N.get(b)}function Fo(a,b){var c=0,d=null,e=Gn(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new Dg(function(){return[a]},c,d)}
580
- function Go(a,b,c,d,e,f){var g=c.oa,h=vo(c.g,f);c=Do(g,"EXTINF").value.split(",");c=d+Number(c[0]);f=0;var k=null;if(g=Mn(g,"EXT-X-BYTERANGE"))f=g.value.split("@"),g=Number(f[0]),f=f[1]?Number(f[1]):b.g+1,k=f+g-1;return new Fg(d,c,function(){return[h]},f,k,a,e,0,Infinity)}function qo(a){if(a.g){for(var b=r(a.$),c=b.next();!c.done;c=b.next())a.g.ac(c.value);a.$=[]}}
581
- function ho(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w,z,C,B,E,F,I,H,K,N,U;return G(function(S){switch(S.g){case 1:g=c.segments;k=Nn(c.oa,"EXT-X-MEDIA-SEQUENCE",0);if(a.i!=ao&&e.has(k)){l=e.get(k);S.C(2);break}if(null!=a.J){S.C(3);break}h=Eo(a,c.g,g[0].oa,f);m=a;return t(S,Ho(a,b,h,d,k,!1,g[0],f),4);case 4:m.J=S.h;case 3:l=a.J;case 2:n=g[0].g,Va(n.split("/").pop()),q=Nn(c.oa,"EXT-X-DISCONTINUITY-SEQUENCE"),u=a.D.get(q)||0,v=[],A=function(Ia){return mb(Ia)},w=r(A(g)),z=w.next();case 5:if(z.done){S.C(7);
582
- break}B=C=z.value;E=B.ua;F=B.item;I=v[v.length-1];H=0==E?l:I.endTime;K=k+E;e.set(K,H);h=Eo(a,c.g,F.oa,f);N=Mn(F.oa,"EXT-X-DISCONTINUITY");if(!N){S.C(8);break}q++;return t(S,Io(a,q,b,h,d,K,F,f,H),9);case 9:u=S.h;case 8:U=Go(h,I,F,H,u,f);v.push(U);z=w.next();S.C(5);break;case 7:return a.$.push(v),qo(a),S["return"](v)}})}
583
- function Io(a,b,c,d,e,f,g,h,k){var l,m;return G(function(n){if(1==n.g)return l=0,a.D.has(b)?(l=a.D.get(b),n.C(2)):t(n,Ho(a,c,d,e,f,!0,g,h),3);2!=n.g&&(m=n.h,l=k-m,a.D.set(b,l));return n["return"](l)})}
584
- function Jo(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:c=hd;d=ph(b.La(),b.h,b.g,a.v.retryParameters);if(a.v.hls.useFullSegmentsForStartTime)return k["return"](bo(a,d,c));e=ph(b.La(),b.h,b.h+2048-1,a.v.retryParameters);y(k,2);return t(k,bo(a,e,c),4);case 4:return f=k.h,k["return"](f);case 2:g=D(k);if(7001==g.code)throw g;Qa("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",
585
- e.uris[0]);return t(k,bo(a,d,c),5);case 5:return h=k.h,k["return"](h)}})}
586
- function Ho(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A;return G(function(w){switch(w.g){case 1:k=Go(c,null,g,0,0,h);if(a.F&&!f&&(l=a.h.get(b),m=l.Fe.get(e),void 0!=m))return w["return"](m);d=d.toLowerCase();if(Ao.includes(d))throw Qa("Raw formats are not yet supported. Skipping "+d),new M(1,4,4035);if("video/webm"==d)throw Qa("WebM in HLS is not yet supported. Skipping."),new M(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){w.C(2);break}n=[Jo(a,k)];c&&n.push(Jo(a,c));return t(w,Promise.all(n),3);case 3:return q=
587
- w.h,u=q[0],v=q[1]||q[0],w["return"](Ko(b,u.uri,u.data,v.data));case 2:if("video/mp2t"!=d){w.C(4);break}return t(w,Jo(a,k),5);case 5:return A=w.h,w["return"](Lo(b,A.uri,A.data));case 4:throw new M(2,4,4030,b);}})}
588
- function Ko(a,b,c,d){var e=0;(new Ae).box("moov",Ee).box("trak",Ee).box("mdia",Ee).ba("mdhd",function(h){h.reader.skip(0==h.version?8:16);e=h.reader.S();h.parser.stop()}).parse(d,!0);if(!e)throw new M(2,4,4030,a,b);var f=0,g=!1;(new Ae).box("moof",Ee).box("traf",Ee).ba("tfdt",function(h){f=(0==h.version?h.reader.S():h.reader.Gb())/e;g=!0;h.parser.stop()}).parse(c,!0);if(!g)throw new M(2,4,4030,a,b);return f}
589
- function Lo(a,b,c){function d(){f.seek(g+188);h=f.Na();71!=h&&(f.seek(g+192),h=f.Na());71!=h&&(f.seek(g+204),h=f.Na());71!=h&&e();f.Oe(1)}function e(){throw new M(2,4,4030,a,b);}var f=new xe(c,0),g=0,h=0;for(c=Math.min(f.X.byteLength-188,940);;){g=f.L;h=f.Na();if(71!=h){if(0<c){--c;continue}e()}c=0;var k=f.Gc();if(8191==(k&8191))d();else if(k&16384)if(k=(f.Na()&48)>>4,0!=k&&2!=k||e(),3==k&&(k=f.Na(),f.skip(k)),1!=f.S()>>8)d();else{f.skip(3);c=f.Na()>>6;0!=c&&1!=c||e();0==f.Na()&&e();c=f.Na();k=f.Gc();
590
- var l=f.Gc();return(1073741824*((c&14)>>1)+((k&65534)<<14|(l&65534)>>1))/9E4}else d()}}function lo(a,b){if(1==b.length)return b[0];var c=ko(a,b);if(null!=c)return c;throw new M(2,4,4025,b);}function ko(a,b){for(var c=r(Mo[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return"text"==a?"":null}
591
- function vo(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new M(2,4,4039,f);}}return c}
592
- function zo(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A;return G(function(w){if(1==w.g){f=Mb;g=hd;h=vo(d.segments[0].g,e);k=new ob(h);l=k.Ha.split(".").pop();m=No[b];if(n=m[l])return w["return"](n);if(b==f.xa)return c&&"vtt"!=c&&"wvtt"!=c?w["return"]("application/mp4"):w["return"]("text/vtt");q=bd([h],a.v.retryParameters);q.method="HEAD";return t(w,bo(a,q,g),2)}u=w.h;v=u.headers["content-type"];return v?w["return"](v.split(";")[0]):(A=m.mp4,w["return"](A))})}
593
- function Do(a,b){var c=Mn(a,b);if(!c)throw new M(2,4,4024,b);return c}p.Dc=function(){var a=this,b,c;return G(function(d){if(1==d.g){if(!a.G)return d["return"]();y(d,2);return t(d,a.update(),4)}if(2!=d.g)return b=a.aa,a.u.U(b),ua(d,0);c=D(d);if(!a.G)return d["return"]();c.severity=1;a.G.onError(c);a.u.U(.1);x(d)})};function io(a,b){a.i=b;a.g&&a.g.Jc(a.i==ao);a.i!=ao||a.u.stop()}function bo(a,b,c){if(!a.B)throw new M(2,7,7001);b=a.G.networkingEngine.request(c,b);Xc(a.B,b);return b.promise}
594
- J("shaka.hls.HlsParser",$n);
595
- var Mo={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]},Ao=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],No={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",
596
- cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"}},xo={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Hn(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Hn(a,"URI");b=Zn(b);b=gc(b.data);b=Lb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Gn(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);
597
- return b}},ao="VOD",Co="EVENT",Bo="LIVE",fo={bf:ao,Cg:Co,$e:Bo};Bg.m3u8=function(){return new $n};zg["application/x-mpegurl"]=function(){return new $n};zg["application/vnd.apple.mpegurl"]=function(){return new $n};function Oo(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Ke:d,data:b,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=qc(b)}catch(g){}throw new M(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Po(){}function Qo(a,b,c,d){var e=new Ro;sd(b.headers).forEach(function(k,l){e.append(l,k)});var f=new So,g={pe:!1,Xe:!1};a=To(a,c,{body:b.body||void 0,headers:e,method:b.method,signal:f.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},g,d);a=new Jc(a,function(){g.pe=!0;f.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var h=new O(function(){g.Xe=!0;f.abort()});h.U(b/1E3);a["finally"](function(){h.stop()})}return a}
598
- function To(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,C;return G(function(B){switch(B.g){case 1:return f=Uo,g=Vo,m=l=0,n=Date.now(),y(B,2),t(B,f(a,c),4);case 4:return h=B.h,q=h.clone().body.getReader(),v=(u=h.headers.get("Content-Length"))?parseInt(u,10):0,A=function(E){function F(){var I,H;return G(function(K){switch(K.g){case 1:return y(K,2),t(K,q.read(),4);case 4:I=K.h;ua(K,3);break;case 2:return D(K),K["return"]();case 3:I.done||(l+=I.value.byteLength);H=Date.now();if(100<H-n||I.done)e(H-n,l-m,
599
- v-l),m=l,n=H;I.done?E.close():(E.enqueue(I.value),F());x(K)}})}F()},new g({start:A}),t(B,h.arrayBuffer(),5);case 5:k=B.h;ua(B,3);break;case 2:w=D(B);if(d.pe)throw new M(1,1,7001,a,b);if(d.Xe)throw new M(1,1,1003,a,b);throw new M(1,1,1002,a,w,b);case 3:return z={},C=h.headers,C.forEach(function(E,F){z[F.trim()]=E}),B["return"](Oo(z,k,h.status,a,h.url,b))}})}
600
- function Wo(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",Po);Po.isSupported=Wo;Po.parse=Qo;var Uo=window.fetch,So=window.AbortController,Vo=window.ReadableStream,Ro=window.Headers;Wo()&&(Zc("http",Qo,2),Zc("https",Qo,2));function Xo(){}
601
- function Yo(a,b,c,d){var e=new Zo,f=Date.now(),g=0,h=new Promise(function(k,l){e.open(b.method,a,!0);e.responseType="arraybuffer";e.timeout=b.retryParameters.timeout;e.withCredentials=b.allowCrossSiteCredentials;e.onabort=function(){l(new M(1,1,7001,a,c))};e.onload=function(n){n=n.target;var q=n.getAllResponseHeaders().trim().split("\r\n"),u={};q=r(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var A=Oo(u,n.response,n.status,a,n.responseURL,
602
- c);k(A)}catch(w){l(w)}};e.onerror=function(n){l(new M(1,1,1002,a,n,c))};e.ontimeout=function(){l(new M(1,1,1003,a,c))};e.onprogress=function(n){var q=Date.now();if(100<q-f||n.lengthComputable&&n.loaded==n.total)d(q-f,n.loaded-g,n.total-n.loaded),g=n.loaded,f=q};for(var m in b.headers)e.setRequestHeader(m.toLowerCase(),b.headers[m]);e.send(b.body)});return new Jc(h,function(){e.abort();return Promise.resolve()})}J("shaka.net.HttpXHRPlugin",Xo);Xo.parse=Yo;var Zo=window.XMLHttpRequest;
603
- Zc("http",Yo,1);Zc("https",Yo,1);function $o(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function ap(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}$o.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 bp(a){var b=this;this.Y=a;this.g=new Map;this.M=new id(function(){return cp(b)["catch"](function(){})});this.h=[];this.Le=function(){};this.Je=function(){};this.mc=new $o}bp.prototype.destroy=function(){return this.M.destroy()};function dp(a,b,c){a.Le=b;a.Je=c}function cp(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
604
- function ep(a,b,c,d,e,f){jd(a.M);var g=ap(a.mc,d);d=(a.g.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,u;return G(function(v){if(1==v.g)return t(v,fp(a,c),2);h=v.h;if(a.M.g)throw new M(2,9,7001);if(e)for(m in k=gc(h),l=new zl(k),l.data)n=Number(m),q=l.data[n],u=l.g[n],a.Je(q,u);a.mc.close(g,h.byteLength);var A=a.mc;a.Le(0==A.i?0:A.j/A.i,a.mc.h);return v["return"](f(h))})});a.g.set(b,d);return d}
605
- function gp(a,b,c){jd(a.M);var d=(a.g.get(b)||Promise.resolve()).then(function(){return G(function(e){return t(e,c(),0)})});a.g.set(b,d)}function hp(a){return G(function(b){return 1==b.g?t(b,Promise.all(a.g.values()),2):b["return"](a.mc.h)})}function fp(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=hd,d=a.Y.request(c,b),e=function(){return d.abort()},a.h.push(e),t(g,d.promise,2);f=g.h;Tc(a.h,e);return g["return"](f.data)})};function ip(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new kc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}ip.prototype.abort=function(){var a=this;return G(function(b){if(1==b.g){try{a.i.abort()}catch(c){}y(b,2);return t(b,a.g,4)}if(2!=b.g)return ua(b,0);D(b);x(b)})};
606
- function jp(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return t(g,b(f.key,f.value,f),2)}f["continue"]();x(g)})}})}ip.prototype.store=function(){return this.h};ip.prototype.promise=function(){return this.g};function kp(a){this.h=a;this.g=[]}kp.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function lp(a,b){return mp(a,b,"readwrite")}function mp(a,b,c){c=a.h.transaction([b],c);var d=new ip(c,b);a.g.push(d);d.promise().then(function(){Tc(a.g,d)},function(){Tc(a.g,d)});return d};function np(a,b,c){this.g=new kp(a);this.i=b;this.h=c}p=np.prototype;p.destroy=function(){return this.g.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return op(this.i)};p.removeSegments=function(a,b){return pp(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return t(d,qp(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.se(e)}))})};p.addManifests=function(){return op(this.h)};
607
- p.updateManifestExpiration=function(a,b){var c=lp(this.g,this.h),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return pp(this,this.h,a,b)};p.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return t(d,qp(b,b.h,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.qc(e)})))})};
608
- p.getAllManifests=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=mp(a.g,a.h,"readonly"),c=new Map,t(d,jp(b,function(e,f){var g;return G(function(h){if(1==h.g)return t(h,a.qc(f),2);g=h.h;c.set(e,g);x(h)})}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};p.se=function(a){return a};p.qc=function(a){return Promise.resolve(a)};function op(a){return Promise.reject(new M(2,9,9011,"Cannot add new value to "+a))}
609
- p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){d=lp(c.g,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Oc:g.Oc},k=h.next())l=k.value,g.Oc=e.add(l),g.Oc.onsuccess=function(n){return function(){f.push(n.Oc.result)}}(g);return t(m,d.promise(),2)}return m["return"](f)})};
610
- function pp(a,b,c,d){a=lp(a.g,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Nc:e.Nc},f=c.next())e.Nc=f.value,b["delete"](e.Nc).onsuccess=function(g){return function(){return d(g.Nc)}}(e);return a.promise()}
611
- function qp(a,b,c){var d,e,f,g,h,k,l;return G(function(m){if(1==m.g){d=mp(a.g,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={kc:h.kc,fc:h.fc},l=k.next())h.fc=l.value,h.kc=e.get(h.fc),h.kc.onsuccess=function(n){return function(){void 0==n.kc.result&&g.push(n.fc);f[n.fc]=n.kc.result}}(h);return t(m,d.promise(),2)}if(g.length)throw new M(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function rp(a){this.g=new kp(a)}rp.prototype.destroy=function(){return this.g.destroy()};rp.prototype.getAll=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=mp(a.g,"session-ids","readonly"),c=[],t(d,jp(b,function(e,f){c.push(f)}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};rp.prototype.add=function(a){var b=lp(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
612
- rp.prototype.remove=function(a){var b=this,c;return G(function(d){return 1==d.g?(c=lp(b.g,"session-ids"),t(d,jp(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):t(d,c.promise(),0)})};function sp(){this.g=new Map}sp.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};sp.prototype.init=function(){var a=this;tp.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
613
- function up(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Va:d,za:f},za:e})})});if(b)return b;throw new M(2,9,9013,"Could not find a cell that supports add-operations");}function vp(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Va:d,za:f},e)})})}
614
- function wp(a,b,c){a=a.g.get(b);if(!a)throw new M(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new M(2,9,9013,"Could not find cell with name "+c);return b}function xp(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function yp(a){var b=Array.from(a.g.keys());if(!b.length)throw new M(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
615
- function zp(a){var b,c,d;return G(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=tp,d.forEach(function(f){(f=f())&&b.push(f)})),t(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.C(0):t(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Ap(a,b){tp.set(a,b)}J("shaka.offline.StorageMuxer",sp);sp.unregister=function(a){tp["delete"](a)};sp.register=Ap;sp.prototype.destroy=sp.prototype.destroy;var tp=new Map;function Bp(){np.apply(this,arguments)}pa(Bp,np);Bp.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return G(function(g){d=lp(c.g,c.h);e=d.store();f=new kc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new M(2,9,9012,"Could not find values for "+a))};return t(g,Promise.all([d.promise(),f]),0)})};
616
- Bp.prototype.qc=function(a){var b,c,d,e,f,g;return G(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=Cp(a.periods[c],e),b.push(f);return t(h,Vm(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})})};
617
- function Cp(a,b){Dp(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Ep(e,a.startTime,b)})}
618
- function Ep(a,b,c){var d=a.initSegmentUri?Fp(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,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=Fp(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,
619
- initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}}Bp.prototype.se=function(a){return{data:a.data}};function Fp(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new M(2,9,9004,"Could not parse uri "+a);}
620
- function Dp(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
621
- f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Gp(){np.apply(this,arguments)}pa(Gp,np);
622
- Gp.prototype.qc=function(a){var b,c,d,e,f,g;return G(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Hp(n,k.startTime,k.startTime+e));f=l;b.push(f)}return t(h,Vm(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
576
+ function xo(a,b,c,d){var e,f,g,h;return H(function(k){if(1==k.g){e=Ao(Jn(b,"URI"),a.A);if(a.h.has(e))return k["return"](a.h.get(e));var l=In(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.H.get(l):null;g=uo(d,c);return t(k,Bo(a,e,g,d,"und",!1,null,null,f,null),2)}h=k.h;if(null==h)return k["return"](null);if(a.h.has(e))return k["return"](a.h.get(e));a.h.set(e,h);return k["return"](h)})}
577
+ function Bo(a,b,c,d,e,f,g,h,k,l){var m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P,T,Da,ha,jb,Kb,ad,Ya,Lb,Wd,wh,Qm,Rm,Sm,Tm,xh,yh,of,Um,Vm;return H(function(Za){switch(Za.g){case 1:return m=Gb([a.S],[b])[0],t(Za,eo(a,$c([m],a.v.retryParameters),0),2);case 2:n=Za.h;m=n.uri;q=Vn(a.N,n.data,m);if(1!=q.type)throw new N(2,4,4017);u=[];if(q.segments)for(v=r(q.segments),A=v.next();!A.done;A=v.next())w=A.value,z=Mn(w.qa,"EXT-X-KEY"),u.push.apply(u,ia(z));D=!1;B=[];E=new Set;F=r(u);for(I=F.next();!I.done;I=F.next())if(G=
578
+ I.value,J=Jn(G,"METHOD"),"NONE"!=J){D=!0;if("AES-128"==J)return a.ua=!0,Za["return"](null);K=Jn(G,"KEYFORMAT");if(T=(P=Co[K])?P(G):null){if(T.keyIds)for(Da=r(T.keyIds),ha=Da.next();!ha.done;ha=Da.next())jb=ha.value,E.add(jb);B.push(T)}}if(D&&!B.length)throw new N(2,4,4026);Kb=Mn(q.qa,"EXT-X-DEFINE");ad=io(a,Kb);Do(a,q);return t(Za,Eo(a,d,c,q,ad),3);case 3:return Ya=Za.h,Fo.includes(Ya)&&(c=""),Lb=new Map,y(Za,4),t(Za,jo(a,b,q,Ya,Lb,ad),6);case 6:Wd=Za.h;ua(Za,5);break;case 4:wh=C(Za);if(4035==wh.code)return Oa("Skipping unsupported HLS stream",
579
+ Ya,b),Za["return"](null);throw wh;case 5:Qm=Wd[0].startTime;Rm=Wd[Wd.length-1].endTime;Sm=new R(Wd);Tm="text"==d?"subtitle":void 0;xh=[];if(l)for(yh=r(l.split(",")),of=yh.next();!of.done;of=yh.next())Um=of.value,xh.push(Um);Vm={id:a.ra++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Sm,mimeType:Ya,codecs:c,kind:Tm,encrypted:D,drmInfos:B,keyIds:E,language:e,label:g,type:d,primary:f,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,
580
+ width:void 0,height:void 0,bandwidth:void 0,roles:xh,channelsCount:h,audioSamplingRate:null,closedCaptions:k};return Za["return"]({stream:Vm,qd:b,ef:m,Ie:Qm,Wf:Rm,He:Lb})}})}function Do(a,b){var c=On(b.qa,"EXT-X-PLAYLIST-TYPE"),d=On(b.qa,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;d?ko(a,co):(c?ko(a,Go):ko(a,Ho),d=Io(b.qa,"EXT-X-TARGETDURATION"),d=Number(d.value),a.X=Math.max(d,a.X),a.aa=Math.min(d,a.aa))}
581
+ function Jo(a,b,c,d){c=On(c,"EXT-X-MAP");if(!c)return null;var e=Jn(c,"URI");d=Ao(Gb([b],[e])[0],d);b=[d,In(c,"BYTERANGE","")].join("-");a.P.has(b)||(c=Ko(d,c),a.P.set(b,c));return a.P.get(b)}function Ko(a,b){var c=0,d=null,e=In(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new Bg(function(){return[a]},c,d)}
582
+ function Lo(a,b,c,d,e,f){var g=c.qa,h=Ao(c.g,f);c=Io(g,"EXTINF").value.split(",");c=d+Number(c[0]);f=0;var k=null;if(g=On(g,"EXT-X-BYTERANGE"))f=g.value.split("@"),g=Number(f[0]),f=f[1]?Number(f[1]):b.g+1,k=f+g-1;return new Dg(d,c,function(){return[h]},f,k,a,e,0,Infinity)}function ro(a){if(a.g){for(var b=r(a.K),c=b.next();!c.done;c=b.next())a.g.cc(c.value);a.K=[]}}
583
+ function jo(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w,z,D,B,E,F,I,G,J,K,P;return H(function(T){switch(T.g){case 1:g=c.segments;k=Pn(c.qa,"EXT-X-MEDIA-SEQUENCE",0);if(a.i!=co&&e.has(k)){l=e.get(k);T.C(2);break}if(null!=a.J){T.C(3);break}h=Jo(a,c.g,g[0].qa,f);m=a;return t(T,Mo(a,b,h,d,k,!1,g[0],f),4);case 4:m.J=T.h;case 3:l=a.J;case 2:n=g[0].g,Sa(n.split("/").pop()),q=Pn(c.qa,"EXT-X-DISCONTINUITY-SEQUENCE"),u=a.D.get(q)||0,v=[],A=function(Da){return hb(Da)},w=r(A(g)),z=w.next();case 5:if(z.done){T.C(7);
584
+ break}B=D=z.value;E=B.sa;F=B.item;I=v[v.length-1];G=0==E?l:I.endTime;J=k+E;e.set(J,G);h=Jo(a,c.g,F.qa,f);K=On(F.qa,"EXT-X-DISCONTINUITY");if(!K){T.C(8);break}q++;return t(T,No(a,q,b,h,d,J,F,f,G),9);case 9:u=T.h;case 8:P=Lo(h,I,F,G,u,f);v.push(P);z=w.next();T.C(5);break;case 7:return T["return"](v)}})}
585
+ function No(a,b,c,d,e,f,g,h,k){var l,m;return H(function(n){if(1==n.g)return l=0,a.D.has(b)?(l=a.D.get(b),n.C(2)):t(n,Mo(a,c,d,e,f,!0,g,h),3);2!=n.g&&(m=n.h,l=k-m,a.D.set(b,l));return n["return"](l)})}
586
+ function Oo(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:c=gd;d=nh(b.Ma(),b.h,b.g,a.v.retryParameters);if(a.v.hls.useFullSegmentsForStartTime)return k["return"](eo(a,d,c));e=nh(b.Ma(),b.h,b.h+2048-1,a.v.retryParameters);y(k,2);return t(k,eo(a,e,c),4);case 4:return f=k.h,k["return"](f);case 2:g=C(k);if(7001==g.code)throw g;Oa("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",
587
+ e.uris[0]);return t(k,eo(a,d,c),5);case 5:return h=k.h,k["return"](h)}})}
588
+ function Mo(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A;return H(function(w){switch(w.g){case 1:k=Lo(c,null,g,0,0,h);if(a.F&&!f&&(l=a.h.get(b),m=l.He.get(e),void 0!=m))return w["return"](m);d=d.toLowerCase();if(Fo.includes(d))throw Oa("Raw formats are not yet supported. Skipping "+d),new N(1,4,4035);if("video/webm"==d)throw Oa("WebM in HLS is not yet supported. Skipping."),new N(1,4,4035);if("video/mp4"!=d&&"audio/mp4"!=d){w.C(2);break}n=[Oo(a,k)];c&&n.push(Oo(a,c));return t(w,Promise.all(n),3);case 3:return q=
589
+ w.h,u=q[0],v=q[1]||q[0],w["return"](Po(b,u.uri,u.data,v.data));case 2:if("video/mp2t"!=d){w.C(4);break}return t(w,Oo(a,k),5);case 5:return A=w.h,w["return"](Qo(b,A.uri,A.data));case 4:throw new N(2,4,4030,b);}})}
590
+ function Po(a,b,c,d){var e=0;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).ea("mdhd",function(h){h.reader.skip(0==h.version?8:16);e=h.reader.T();h.parser.stop()}).parse(d,!0);if(!e)throw new N(2,4,4030,a,b);var f=0,g=!1;(new ye).box("moof",Ce).box("traf",Ce).ea("tfdt",function(h){f=(0==h.version?h.reader.T():h.reader.Ib())/e;g=!0;h.parser.stop()}).parse(c,!0);if(!g)throw new N(2,4,4030,a,b);return f}
591
+ function Qo(a,b,c){function d(){f.seek(g+188);h=f.Oa();71!=h&&(f.seek(g+192),h=f.Oa());71!=h&&(f.seek(g+204),h=f.Oa());71!=h&&e();f.Qe(1)}function e(){throw new N(2,4,4030,a,b);}var f=new ve(c,0),g=0,h=0;for(c=Math.min(f.Y.byteLength-188,940);;){g=f.L;h=f.Oa();if(71!=h){if(0<c){--c;continue}e()}c=0;var k=f.Ic();if(8191==(k&8191))d();else if(k&16384)if(k=(f.Oa()&48)>>4,0!=k&&2!=k||e(),3==k&&(k=f.Oa(),f.skip(k)),1!=f.T()>>8)d();else{f.skip(3);c=f.Oa()>>6;0!=c&&1!=c||e();0==f.Oa()&&e();c=f.Oa();k=f.Ic();
592
+ var l=f.Ic();return(1073741824*((c&14)>>1)+((k&65534)<<14|(l&65534)>>1))/9E4}else d()}}function uo(a,b){if(1==b.length)return b[0];var c=to(a,b);if(null!=c)return c;throw new N(2,4,4025,b);}function to(a,b){for(var c=r(Ro[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return"text"==a?"":null}
593
+ function Ao(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new N(2,4,4039,f);}}return c}
594
+ function Eo(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A;return H(function(w){if(1==w.g){f=Ib;g=gd;h=Ao(d.segments[0].g,e);k=new kb(h);l=k.Ia.split(".").pop();m=So[b];if(n=m[l])return w["return"](n);if(b==f.ya)return c&&"vtt"!=c&&"wvtt"!=c?w["return"]("application/mp4"):w["return"]("text/vtt");q=$c([h],a.v.retryParameters);q.method="HEAD";return t(w,eo(a,q,g),2)}u=w.h;v=u.headers["content-type"];return v?w["return"](v.split(";")[0]):(A=m.mp4,w["return"](A))})}
595
+ function Io(a,b){var c=On(a,b);if(!c)throw new N(2,4,4024,b);return c}p.Fc=function(){var a=this,b,c;return H(function(d){if(1==d.g){if(!a.G)return d["return"]();y(d,2);return t(d,a.update(),4)}if(2!=d.g)return b=a.ba,a.u.V(b),ua(d,0);c=C(d);if(!a.G)return d["return"]();c.severity=1;a.G.onError(c);a.u.V(.1);x(d)})};function ko(a,b){a.i=b;a.g&&a.g.Lc(a.i==co);a.i!=co||a.u.stop()}function eo(a,b,c){if(!a.B)throw new N(2,7,7001);b=a.G.networkingEngine.request(c,b);Vc(a.B,b);return b.promise}
596
+ L("shaka.hls.HlsParser",bo);
597
+ var Ro={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]},Fo=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],So={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",
598
+ cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"}},Co={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Jn(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=Jn(a,"URI");b=ao(b);b=ec(b.data);b=Hb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=In(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);
599
+ return b}},co="VOD",Ho="EVENT",Go="LIVE",ho={df:co,Dg:Ho,cf:Go};zg.m3u8=function(){return new bo};xg["application/x-mpegurl"]=function(){return new bo};xg["application/vnd.apple.mpegurl"]=function(){return new bo};function To(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Me:d,data:b,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=oc(b)}catch(g){}throw new N(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Uo(){}function Vo(a,b,c,d){var e=new Wo;rd(b.headers).forEach(function(k,l){e.append(l,k)});var f=new Xo,g={re:!1,Ze:!1};a=Yo(a,c,{body:b.body||void 0,headers:e,method:b.method,signal:f.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},g,d);a=new Hc(a,function(){g.re=!0;f.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var h=new O(function(){g.Ze=!0;f.abort()});h.V(b/1E3);a["finally"](function(){h.stop()})}return a}
600
+ function Yo(a,b,c,d,e){var f,g,h,k,l,m,n,q,u,v,A,w,z,D;return H(function(B){switch(B.g){case 1:return f=Zo,g=$o,m=l=0,n=Date.now(),y(B,2),t(B,f(a,c),4);case 4:return h=B.h,q=h.clone().body.getReader(),v=(u=h.headers.get("Content-Length"))?parseInt(u,10):0,A=function(E){function F(){var I,G;return H(function(J){switch(J.g){case 1:return y(J,2),t(J,q.read(),4);case 4:I=J.h;ua(J,3);break;case 2:return C(J),J["return"]();case 3:I.done||(l+=I.value.byteLength);G=Date.now();if(100<G-n||I.done)e(G-n,l-m,
601
+ v-l),m=l,n=G;I.done?E.close():(E.enqueue(I.value),F());x(J)}})}F()},new g({start:A}),t(B,h.arrayBuffer(),5);case 5:k=B.h;ua(B,3);break;case 2:w=C(B);if(d.re)throw new N(1,1,7001,a,b);if(d.Ze)throw new N(1,1,1003,a,b);throw new N(1,1,1002,a,w,b);case 3:return z={},D=h.headers,D.forEach(function(E,F){z[F.trim()]=E}),B["return"](To(z,k,h.status,a,h.url,b))}})}
602
+ function ap(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",Uo);Uo.isSupported=ap;Uo.parse=Vo;var Zo=window.fetch,Xo=window.AbortController,$o=window.ReadableStream,Wo=window.Headers;ap()&&(Xc("http",Vo,2),Xc("https",Vo,2));function bp(){}
603
+ function cp(a,b,c,d){var e=new dp,f=Date.now(),g=0,h=new Promise(function(k,l){e.open(b.method,a,!0);e.responseType="arraybuffer";e.timeout=b.retryParameters.timeout;e.withCredentials=b.allowCrossSiteCredentials;e.onabort=function(){l(new N(1,1,7001,a,c))};e.onload=function(n){n=n.target;var q=n.getAllResponseHeaders().trim().split("\r\n"),u={};q=r(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var A=To(u,n.response,n.status,a,n.responseURL,
604
+ c);k(A)}catch(w){l(w)}};e.onerror=function(n){l(new N(1,1,1002,a,n,c))};e.ontimeout=function(){l(new N(1,1,1003,a,c))};e.onprogress=function(n){var q=Date.now();if(100<q-f||n.lengthComputable&&n.loaded==n.total)d(q-f,n.loaded-g,n.total-n.loaded),g=n.loaded,f=q};for(var m in b.headers)e.setRequestHeader(m.toLowerCase(),b.headers[m]);e.send(b.body)});return new Hc(h,function(){e.abort();return Promise.resolve()})}L("shaka.net.HttpXHRPlugin",bp);bp.parse=cp;var dp=window.XMLHttpRequest;
605
+ Xc("http",cp,1);Xc("https",cp,1);function ep(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function fp(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}ep.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 gp(a){var b=this;this.Z=a;this.g=new Map;this.M=new hd(function(){return hp(b)["catch"](function(){})});this.h=[];this.Ne=function(){};this.Le=function(){};this.pc=new ep}gp.prototype.destroy=function(){return this.M.destroy()};function ip(a,b,c){a.Ne=b;a.Le=c}function hp(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
606
+ function jp(a,b,c,d,e,f){id(a.M);var g=fp(a.pc,d);d=(a.g.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,u;return H(function(v){if(1==v.g)return t(v,kp(a,c),2);h=v.h;if(a.M.g)throw new N(2,9,7001);if(e)for(m in k=ec(h),l=new yl(k),l.data)n=Number(m),q=l.data[n],u=l.g[n],a.Le(q,u);a.pc.close(g,h.byteLength);var A=a.pc;a.Ne(0==A.i?0:A.j/A.i,a.pc.h);return v["return"](f(h))})});a.g.set(b,d);return d}
607
+ function lp(a,b,c){id(a.M);var d=(a.g.get(b)||Promise.resolve()).then(function(){return H(function(e){return t(e,c(),0)})});a.g.set(b,d)}function mp(a){return H(function(b){return 1==b.g?t(b,Promise.all(a.g.values()),2):b["return"](a.pc.h)})}function kp(a,b){var c,d,e,f;return H(function(g){if(1==g.g)return c=gd,d=a.Z.request(c,b),e=function(){return d.abort()},a.h.push(e),t(g,d.promise,2);f=g.h;Rc(a.h,e);return g["return"](f.data)})};function np(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new ic;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}np.prototype.abort=function(){var a=this;return H(function(b){if(1==b.g){try{a.i.abort()}catch(c){}y(b,2);return t(b,a.g,4)}if(2!=b.g)return ua(b,0);C(b);x(b)})};
608
+ function op(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return H(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return t(g,b(f.key,f.value,f),2)}f["continue"]();x(g)})}})}np.prototype.store=function(){return this.h};np.prototype.promise=function(){return this.g};function pp(a){this.h=a;this.g=[]}pp.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function qp(a,b){return rp(a,b,"readwrite")}function rp(a,b,c){c=a.h.transaction([b],c);var d=new np(c,b);a.g.push(d);d.promise().then(function(){Rc(a.g,d)},function(){Rc(a.g,d)});return d};function sp(a,b,c){this.g=new pp(a);this.i=b;this.h=c}p=sp.prototype;p.destroy=function(){return this.g.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return tp(this.i)};p.removeSegments=function(a,b){return up(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return H(function(d){if(1==d.g)return t(d,vp(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.ve(e)}))})};p.addManifests=function(){return tp(this.h)};
609
+ p.updateManifestExpiration=function(a,b){var c=qp(this.g,this.h),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return up(this,this.h,a,b)};p.getManifests=function(a){var b=this,c;return H(function(d){if(1==d.g)return t(d,vp(b,b.h,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.sc(e)})))})};
610
+ p.getAllManifests=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=rp(a.g,a.h,"readonly"),c=new Map,t(d,op(b,function(e,f){var g;return H(function(h){if(1==h.g)return t(h,a.sc(f),2);g=h.h;c.set(e,g);x(h)})}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};p.ve=function(a){return a};p.sc=function(a){return Promise.resolve(a)};function tp(a){return Promise.reject(new N(2,9,9011,"Cannot add new value to "+a))}
611
+ p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=qp(c.g,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={Qc:g.Qc},k=h.next())l=k.value,g.Qc=e.add(l),g.Qc.onsuccess=function(n){return function(){f.push(n.Qc.result)}}(g);return t(m,d.promise(),2)}return m["return"](f)})};
612
+ function up(a,b,c,d){a=qp(a.g,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={Pc:e.Pc},f=c.next())e.Pc=f.value,b["delete"](e.Pc).onsuccess=function(g){return function(){return d(g.Pc)}}(e);return a.promise()}
613
+ function vp(a,b,c){var d,e,f,g,h,k,l;return H(function(m){if(1==m.g){d=rp(a.g,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={mc:h.mc,ic:h.ic},l=k.next())h.ic=l.value,h.mc=e.get(h.ic),h.mc.onsuccess=function(n){return function(){void 0==n.mc.result&&g.push(n.ic);f[n.ic]=n.mc.result}}(h);return t(m,d.promise(),2)}if(g.length)throw new N(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function wp(a){this.g=new pp(a)}wp.prototype.destroy=function(){return this.g.destroy()};wp.prototype.getAll=function(){var a=this,b,c;return H(function(d){return 1==d.g?(b=rp(a.g,"session-ids","readonly"),c=[],t(d,op(b,function(e,f){c.push(f)}),2)):3!=d.g?t(d,b.promise(),3):d["return"](c)})};wp.prototype.add=function(a){var b=qp(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
614
+ wp.prototype.remove=function(a){var b=this,c;return H(function(d){return 1==d.g?(c=qp(b.g,"session-ids"),t(d,op(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):t(d,c.promise(),0)})};function xp(){this.g=new Map}xp.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};xp.prototype.init=function(){var a=this;yp.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
615
+ function zp(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Xa:d,Aa:f},Aa:e})})});if(b)return b;throw new N(2,9,9013,"Could not find a cell that supports add-operations");}function Ap(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Xa:d,Aa:f},e)})})}
616
+ function Bp(a,b,c){a=a.g.get(b);if(!a)throw new N(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new N(2,9,9013,"Could not find cell with name "+c);return b}function Cp(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Dp(a){var b=Array.from(a.g.keys());if(!b.length)throw new N(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
617
+ function Ep(a){var b,c,d;return H(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=yp,d.forEach(function(f){(f=f())&&b.push(f)})),t(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.C(0):t(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Fp(a,b){yp.set(a,b)}L("shaka.offline.StorageMuxer",xp);xp.unregister=function(a){yp["delete"](a)};xp.register=Fp;xp.prototype.destroy=xp.prototype.destroy;var yp=new Map;function Gp(){sp.apply(this,arguments)}pa(Gp,sp);Gp.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return H(function(g){d=qp(c.g,c.h);e=d.store();f=new ic;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new N(2,9,9012,"Could not find values for "+a))};return t(g,Promise.all([d.promise(),f]),0)})};
618
+ Gp.prototype.sc=function(a){var b,c,d,e,f,g;return H(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=Hp(a.periods[c],e),b.push(f);return t(h,Wm(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})})};
619
+ function Hp(a,b){Ip(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return Jp(e,a.startTime,b)})}
620
+ function Jp(a,b,c){var d=a.initSegmentUri?Kp(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,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=Kp(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,
621
+ initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}}Gp.prototype.ve=function(a){return{data:a.data}};function Kp(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 N(2,9,9004,"Could not parse uri "+a);}
622
+ function Ip(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
623
+ f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function Lp(){sp.apply(this,arguments)}pa(Lp,sp);
624
+ Lp.prototype.sc=function(a){var b,c,d,e,f,g;return H(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Mp(n,k.startTime,k.startTime+e));f=l;b.push(f)}return t(h,Wm(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
623
625
  a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g})})};
624
- function Hp(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,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,
625
- dataKey:d.dataKey}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}};function Ip(){np.apply(this,arguments)}pa(Ip,np);Ip.prototype.hasFixedKeySpace=function(){return!1};Ip.prototype.addSegments=function(a){return this.add(this.i,a)};Ip.prototype.addManifests=function(a){return this.add(this.h,a)};Ip.prototype.qc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Jp(){this.u=this.j=this.i=this.h=this.g=this.l=null}p=Jp.prototype;
626
- p.init=function(){var a=this,b=new kc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new Bp(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new Gp(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new Gp(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
627
- e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Ip(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new rp(d):null;a.u=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=r(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new M(2,9,9001,c.error));d.preventDefault()};return b};
628
- p.destroy=function(){var a=this;return G(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:if(!a.u){b.C(10);break}return t(b,a.u.destroy(),10);case 10:a.l&&a.l.close(),x(b)}})};
626
+ function Mp(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,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,
627
+ dataKey:d.dataKey}}),variantIds:a.variantIds,roles:[],audioSamplingRate:null,channelsCount:null,closedCaptions:null}};function Np(){sp.apply(this,arguments)}pa(Np,sp);Np.prototype.hasFixedKeySpace=function(){return!1};Np.prototype.addSegments=function(a){return this.add(this.i,a)};Np.prototype.addManifests=function(a){return this.add(this.h,a)};Np.prototype.sc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Op(){this.u=this.j=this.i=this.h=this.g=this.l=null}p=Op.prototype;
628
+ p.init=function(){var a=this,b=new ic,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new Gp(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new Lp(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new Lp(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
629
+ e=e.contains("manifest-v5")&&e.contains("segment-v5")?new Np(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new wp(d):null;a.u=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=r(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new N(2,9,9001,c.error));d.preventDefault()};return b};
630
+ p.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:if(!a.u){b.C(10);break}return t(b,a.u.destroy(),10);case 10:a.l&&a.l.close(),x(b)}})};
629
631
  p.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};p.getEmeSessionCell=function(){return this.u};
630
- p.erase=function(){var a=this;return G(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),t(b,Kp(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,t(b,a.init(),0)}})};
631
- function Kp(){var a=new kc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new M(2,9,9001,b.error));c.preventDefault()};return a}Ap("idb",function(){return Ed("CrKey")||!window.indexedDB?null:new Jp});function Lp(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Lp.prototype.Va=function(){return this.i};Lp.prototype.za=function(){return this.h};Lp.prototype.key=function(){return this.l};Lp.prototype.toString=function(){return this.j};
632
- function Mp(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 Lp(b,c,d,Number(a[4])):null};function Np(a,b){this.h=a;this.g=b}
633
- function Op(a,b){var c=new P(null,0);c.Wa(b.duration);var d=b.streams.filter(function(k){return"audio"==k.type}),e=b.streams.filter(function(k){return"video"==k.type});d=Pp(a,d,e,c);e=b.streams.filter(function(k){return"text"==k.type}).map(function(k){return Qp(a,k,c)});var f=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var g=r(d.values()),h=g.next();!h.done;h=g.next())h=h.value,h.audio&&h.audio.encrypted&&(h.audio.drmInfos=f),h.video&&h.video.encrypted&&(h.video.drmInfos=f);return{presentationTimeline:c,
632
+ p.erase=function(){var a=this;return H(function(b){switch(b.g){case 1:if(!a.g){b.C(2);break}return t(b,a.g.destroy(),2);case 2:if(!a.h){b.C(4);break}return t(b,a.h.destroy(),4);case 4:if(!a.i){b.C(6);break}return t(b,a.i.destroy(),6);case 6:if(!a.j){b.C(8);break}return t(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),t(b,Pp(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,t(b,a.init(),0)}})};
633
+ function Pp(){var a=new ic,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new N(2,9,9001,b.error));c.preventDefault()};return a}Fp("idb",function(){return Dd("CrKey")||!window.indexedDB?null:new Op});function Qp(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Qp.prototype.Xa=function(){return this.i};Qp.prototype.Aa=function(){return this.h};Qp.prototype.key=function(){return this.l};Qp.prototype.toString=function(){return this.j};
634
+ function Rp(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 Qp(b,c,d,Number(a[4])):null};function Sp(a,b){this.h=a;this.g=b}
635
+ function Tp(a,b){var c=new Q(null,0);c.Ya(b.duration);var d=b.streams.filter(function(k){return"audio"==k.type}),e=b.streams.filter(function(k){return"video"==k.type});d=Up(a,d,e,c);e=b.streams.filter(function(k){return"text"==k.type}).map(function(k){return Vp(a,k,c)});var f=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var g=r(d.values()),h=g.next();!h.done;h=g.next())h=h.value,h.audio&&h.audio.encrypted&&(h.audio.drmInfos=f),h.video&&h.video.encrypted&&(h.video.drmInfos=f);return{presentationTimeline:c,
634
636
  minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e}}
635
- function Pp(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0});b=r(b);for(e=b.next();!e.done;e=b.next())for(e=e.value,
636
- g=Qp(a,e,d),h=r(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Qp(a,e,d),g=r(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
637
- function Qp(a,b,c){var d=b.segments.map(function(e){return Rp(a,e)});c.ac(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Q(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,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,
638
- roles:b.roles,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,closedCaptions:b.closedCaptions}}function Rp(a,b){var c=new Lp("segment",a.h,a.g,b.dataKey);return new Fg(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Sp(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd)}function Sp(a,b){var c=new Lp("segment",a.h,a.g,b);return new Dg(function(){return[c.toString()]},0,null)};function Tp(){this.g=null}p=Tp.prototype;p.configure=function(){};
639
- p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:d=Mp(a);c.g=d;if(null==d||"manifest"!=d.g)throw new M(2,1,9004,a);e=new sp;ta(m);return t(m,e.init(),4);case 4:return t(m,wp(e,d.Va(),d.za()),5);case 5:return f=m.h,t(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Np(d.Va(),d.za()),l=Op(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return va(m),t(m,e.destroy(),7);case 7:wa(m,0)}})};p.stop=function(){return Promise.resolve()};
640
- p.update=function(){};p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new sp,y(m,2,3),t(m,e.init(),5);case 5:return t(m,wp(e,d.Va(),d.za()),6);case 6:return f=m.h,t(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.C(3);break}return t(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),t(m,e.destroy(),10);case 10:wa(m,0);break;case 2:D(m),m.C(3)}})};
641
- zg["application/x-offline-manifest"]=function(){return new Tp};function Up(){}function Vp(a){var b=Mp(a);b&&"manifest"==b.g?(a={uri:a,Ke:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Mc(a)):a=b&&"segment"==b.g?Wp(b.key(),b):Kc(new M(2,1,9004,a));return a}
642
- function Wp(a,b){var c=new sp;return Mc(void 0).ka(function(){return c.init()}).ka(function(){return wp(c,b.Va(),b.za())}).ka(function(d){return d.getSegments([b.key()])}).ka(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}J("shaka.offline.OfflineScheme",Up);Up.plugin=Vp;Zc("offline",Vp);function Xp(a,b,c){var d,e,f,g,h,k;return G(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var u=!1,v=r(m),A=v.next();!A.done;A=v.next())if(A=A.value,Yp(A.info,q)){A.sessionIds.push(q.sessionId);u=!0;break}u||m.push({info:q,sessionIds:[q.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.C(4);break}g=f.value;h=Zp(a,b,g);return t(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.C(2);break;case 4:return l["return"](d)}})}
643
- function Zp(a,b,c){var d,e;return G(function(f){switch(f.g){case 1:return d=new Jd({$b:b,onError:function(){},ed:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),y(f,2),d.configure(a),t(f,Rd(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return D(f),t(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return y(f,6),t(f,be(d),8);case 8:ua(f,7);break;case 6:return D(f),t(f,d.destroy(),
644
- 9);case 9:return f["return"]([]);case 7:return e=[],t(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return y(h,2),t(h,ce(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);D(h);x(h)})})),10);case 10:return t(f,d.destroy(),11);case 11:return f["return"](e)}})}
645
- function Yp(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Uc(a.audioCapabilities,b.audioCapabilities,c)&&Uc(a.videoCapabilities,b.videoCapabilities,c)};function $p(a,b,c){var d=b.presentationTimeline.getDuration();b=aq(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c}}function bq(a,b){var c=Op(new Np(a.Va(),a.za()),b),d=b.appMetadata||{};c=aq(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d}}
646
- function aq(a){var b=[],c=fg(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(Zf(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push($f(c.value));return b};function cq(){this.g={}}function dq(a,b,c){c=c.endTime-c.startTime;return eq(a,b)*c}function eq(a,b){var c=a.g[b];null==c&&(c=0);return c};function fq(a,b,c){a.variants=a.variants.filter(function(d){return Wf(d,b,c)})}function gq(a){a.variants=a.variants.filter(function(b){var c=!0;b.audio&&(c=c&&yf(b.audio));b.video&&(c=c&&yf(b.video));return c})}function hq(a,b){a.variants=a.variants.filter(function(c){return te(b,c)})};function iq(a){var b=this;if(a&&a.constructor!=T)throw new M(2,9,9008);this.Y=this.v=null;a?(this.v=a.v,this.Y=a.tc()):(this.v=qi(),this.Y=new Yc);this.kd=[];this.Ec=[];this.Sd=[];var c=!a;this.M=new id(function(){var d,e,f,g,h;return G(function(k){switch(k.g){case 1:return t(k,Promise.all(b.Sd.map(function(l){return cp(l)})),2);case 2:d=function(){};e=[];f=r(b.Ec);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return t(k,Promise.all(e),3);case 3:if(!c){k.C(4);break}return t(k,b.Y.destroy(),
647
- 4);case 4:b.v=null,b.Y=null,x(k)}})})}function jq(){if(Ad())a:{var a=r(tp.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}p=iq.prototype;p.destroy=function(){return this.M.destroy()};
648
- p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=oi(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(Cb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);return si(this.v,a)};p.getConfiguration=function(){var a=qi();si(a,this.v,qi());return a};p.tc=function(){return this.Y};
649
- p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new bp(this.Y);this.Sd.push(f);b=kq(this,a,b||{},function(){var h;return G(function(k){if(1==k.g)return t(k,yg(a,d.Y,e.manifest.retryParameters,c||null),2);h=k.h;return k["return"](Jb(h))})},e,f);var g=new Jc(b,function(){return cp(f)});g["finally"](function(){Tc(d.Sd,f)});g.then=function(h){Cb("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead.");
650
- return g.promise.then(h)};return lq(this,g)};p.Kf=function(){Cb("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported.");return!1};
651
- function kq(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w;return G(function(z){switch(z.g){case 1:return mq(),h=g=null,k=new sp,m=l=null,y(z,2,3),t(z,d(),5);case 5:return g=z.h,t(z,nq(a,b,g,e),6);case 6:n=z.h;oq(a);q=!n.presentationTimeline.V()&&!n.presentationTimeline.Bb();if(!q)throw new M(2,9,9005,b);return t(z,pq(a,n,function(C){m=m||C},e),7);case 7:h=z.h;oq(a);if(m)throw m;return t(z,a.Sb(n,h,e),8);case 8:return t(z,k.init(),9);case 9:return oq(a),t(z,up(k),10);case 10:return l=z.h,oq(a),t(z,qq(a,l.za,
652
- h,n,b,c,e,f),11);case 11:u=z.h;oq(a);if(m)throw m;return t(z,l.za.addManifests([u]),12);case 12:return v=z.h,oq(a),A=new Lp("manifest",l.path.Va,l.path.za,v[0]),z["return"](bq(A,u));case 3:return va(z),a.kd=[],t(z,k.destroy(),13);case 13:if(!g){z.C(14);break}return t(z,g.stop(),14);case 14:if(!h){z.C(16);break}return t(z,h.destroy(),16);case 16:wa(z,0);break;case 2:w=D(z);if(!l){z.C(18);break}return t(z,l.za.removeSegments(a.kd,function(){}),18);case 18:throw m||w;}})}
653
- p.Sb=function(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z;return G(function(C){if(1==C.g){d={width:Infinity,height:Infinity};fq(a,c.restrictions,d);gq(a);hq(a,b);e=[];f=c.preferredAudioChannelCount;Qf(a,f);g=r(a.variants);for(h=g.next();!h.done;h=g.next())k=h.value,e.push(Zf(k));l=r(a.textStreams);for(m=l.next();!m.done;m=l.next())n=m.value,e.push($f(n));return t(C,c.offline.trackSelectionCallback(e),2)}q=C.h;u=new Set;v=new Set;A=r(q);for(w=A.next();!w.done;w=A.next())z=w.value,"variant"==z.type&&u.add(z.id),
654
- "text"==z.type&&v.add(z.id);a.variants=a.variants.filter(function(B){return u.has(B.id)});a.textStreams=a.textStreams.filter(function(B){return v.has(B.id)});rq(a);x(C)})};
655
- function qq(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A,w,z,C,B;return G(function(E){switch(E.g){case 1:return k=$p(e,d,f),l=g.offline.progressCallback,m=function(F,I){k.size=I;l(k,F)},n=function(F,I){v&&g.offline.usePersistentLicense&&A==I&&ae(c,"cenc",F)},dp(h,m,n),q=d.variants.some(function(F){var I=F.audio&&F.audio.encrypted;return F.video&&F.video.encrypted||I}),u=d.variants.some(function(F){return(F.video?F.video.drmInfos:[]).concat(F.audio?F.audio.drmInfos:[]).some(function(I){return I.initData&&
656
- I.initData.length})}),v=q&&!u,A=null,v&&(w=c.i,A=sq.get(w.keySystem)),ta(E),C=z=tq(a,h,b,c,d,e,f,g),t(E,hp(h),4);case 4:C.size=E.h;z.expiration=c.sc();B=he(c);z.sessionIds=g.offline.usePersistentLicense?B:[];if(q&&g.offline.usePersistentLicense&&!B.length)throw new M(2,9,9007);return E["return"](z);case 2:return va(E),t(E,h.destroy(),5);case 5:wa(E,0)}})}p.remove=function(a){return uq(this,vq(this,a))};
657
- function vq(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:mq();c=Mp(b);if(null==c||"manifest"!=c.g)throw new M(2,9,9004,b);d=c;e=new sp;ta(k);return t(k,e.init(),4);case 4:return t(k,wp(e,d.Va(),d.za()),5);case 5:return f=k.h,t(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],t(k,Promise.all([wq(a,h,e),xq(f,d,h)]),2);case 2:return va(k),t(k,e.destroy(),8);case 8:wa(k,0)}})}
658
- function yq(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:vd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:vd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function wq(a,b,c){return G(function(d){return t(d,zq(a.Y,a.v.drm,c,b),0)})}
659
- function xq(a,b,c){function d(){}var e=Aq(c);bq(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.fg=function(){return uq(this,Bq(this))};
660
- function Bq(a){var b,c,d,e,f,g,h,k,l,m;return G(function(n){switch(n.g){case 1:return mq(),b=a.Y,c=a.v.drm,d=new sp,e=!1,ta(n),t(n,d.init(),4);case 4:f=[],xp(d,function(q){return f.push(q)}),g=r(f),h=g.next();case 5:if(h.done){n.C(2);break}k=h.value;return t(n,k.getAll(),8);case 8:return l=n.h,t(n,Xp(c,b,l),9);case 9:return m=n.h,t(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.C(5);break;case 2:return va(n),t(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n["return"](!e)}})}
661
- p.list=function(){return uq(this,Cq())};function Cq(){var a,b,c;return G(function(d){switch(d.g){case 1:return mq(),a=[],b=new sp,ta(d),t(d,b.init(),4);case 4:return c=Promise.resolve(),vp(b,function(e,f){c=c.then(function(){var g;return G(function(h){if(1==h.g)return t(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=bq(new Lp("manifest",e.Va,e.za,l),k);a.push(m)});x(h)})})}),t(d,c,2);case 2:return va(d),t(d,b.destroy(),6);case 6:wa(d,3);break;case 3:return d["return"](a)}})}
662
- function nq(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=null,f=a.Y,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m}},c.configure(d.manifest),oq(a),t(l,c.start(b,g),2);if(3!=l.g)return h=l.h,oq(a),k=Dq(h),t(l,Promise.all(eb(k,function(m){return m.createSegmentIndex()})),3);oq(a);if(e)throw e;return l["return"](h)})}
663
- function pq(a,b,c,d){var e;return G(function(f){switch(f.g){case 1:return e=new Jd({$b:a.Y,onError:c,ed:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),t(f,Od(e,b.variants,d.offline.usePersistentLicense),2);case 2:return t(f,be(e),3);case 3:return t(f,$d(e),4);case 4:return f["return"](e)}})}
664
- function tq(a,b,c,d,e,f,g,h){for(var k=new cq,l=r(e.variants),m=l.next();!m.done;m=l.next()){var n=k;m=m.value;var q=m.audio,u=m.video;q&&!u&&(n.g[q.id]=q.bandwidth||m.bandwidth);!q&&u&&(n.g[u.id]=u.bandwidth||m.bandwidth);if(q&&u){var v=q.bandwidth||393216,A=u.bandwidth||m.bandwidth-v;0>=A&&(A=m.bandwidth);n.g[q.id]=v;n.g[u.id]=A}}l=r(e.textStreams);for(n=l.next();!n.done;n=l.next())k.g[n.value.id]=52;n=new Map;n.set(null,Promise.resolve(null));m=new Map;q=Dq(e);l=new Map;q=r(q);for(u=q.next();!u.done;u=
665
- q.next())u=u.value,v=Eq(a,b,c,k,e,u,h,n,m),l.set(u.id,v);a=r(e.variants);for(m=a.next();!m.done;m=a.next())b=m.value,b.audio&&l.get(b.audio.id).variantIds.push(b.id),b.video&&l.get(b.video.id).variantIds.push(b.id);a=Array.from(l.values());h=h.offline.usePersistentLicense;(b=d.i)&&h&&(b.initData=[]);return{creationTime:Date.now(),originalManifestUri:f,duration:e.presentationTimeline.getDuration(),size:0,expiration:d.sc(),streams:a,sessionIds:h?he(d):[],drmInfo:b,appMetadata:g}}
666
- function Eq(a,b,c,d,e,f,g,h,k){var l={id:f.id,originalId:f.originalId,primary:f.primary,type:f.type,mimeType:f.mimeType,codecs:f.codecs,frameRate:f.frameRate,pixelAspectRatio:f.pixelAspectRatio,kind:f.kind,language:f.language,label:f.label,width:f.width||null,height:f.height||null,encrypted:f.encrypted,keyIds:f.keyIds,segments:[],variantIds:[],roles:f.roles,channelsCount:f.channelsCount,audioSamplingRate:f.audioSamplingRate,closedCaptions:f.closedCaptions},m=f.id;Fq(f,e.presentationTimeline.cb(),
667
- function(n){var q=Gq(a,b,m,f.id,c,d,n.i,g,h),u=Hq(a,b,m,f.id,c,d,n,g,k);gp(b,m,function(){var v,A;return G(function(w){if(1==w.g)return t(w,q,2);if(3!=w.g)return v=w.h,t(w,u,3);A=w.h;l.segments.push({initSegmentKey:v,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,dataKey:A});x(w)})})});return l}
668
- function Gq(a,b,c,d,e,f,g,h,k){if(k.has(g))return k.get(g);h=ph(g.La(),g.h,g.g,h.streaming.retryParameters);b=ep(b,c,h,.5*eq(f,d),!0,function(l){var m;return G(function(n){if(1==n.g)return t(n,e.addSegments([{data:l}]),2);m=n.h;a.kd.push(m[0]);return n["return"](m[0])})});k.set(g,b);return b}
669
- function Hq(a,b,c,d,e,f,g,h,k){var l=[g.La()[0],g.h,g.g].join("-");if(k.has(l))return k.get(l);h=ph(g.La(),g.h,g.g,h.streaming.retryParameters);b=ep(b,c,h,dq(f,d,g),!1,function(m){var n;return G(function(q){if(1==q.g)return t(q,e.addSegments([{data:m}]),2);n=q.h;a.kd.push(n[0]);return q["return"](n[0])})});k.set(l,b);return b}function Fq(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 oq(a){if(a.M.g)throw new M(2,9,7001);}
670
- function mq(){if(!jq())throw new M(2,9,9E3);}function uq(a,b){return G(function(c){if(1==c.g)return a.Ec.push(b),ta(c),t(c,b,4);if(2!=c.g)return c["return"](c.h);va(c);Tc(a.Ec,b);return wa(c,0)})}function lq(a,b){var c=b.promise;a.Ec.push(c);return b["finally"](function(){Tc(a.Ec,c)})}
671
- function Aq(a){var b=[];a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.push(d.initSegmentKey),b.push(d.dataKey)}return b}
672
- function zq(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=yp(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:yq(d,!1),videoCapabilities:yq(d,!0)}});return t(h,Xp(b,a,f),2)}return 3!=h.g?(g=h.h,t(h,e.remove(g),3)):t(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
673
- function Dq(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);a=r(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
674
- function rq(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}J("shaka.offline.Storage",iq);iq.deleteAll=function(){var a;return G(function(b){return 1==b.g?(a=new sp,ta(b),t(b,zp(a),2)):5!=b.g?(va(b),t(b,a.destroy(),5)):wa(b,0)})};iq.prototype.list=iq.prototype.list;
675
- iq.prototype.removeEmeSessions=iq.prototype.fg;iq.prototype.remove=iq.prototype.remove;iq.prototype.getStoreInProgress=iq.prototype.Kf;iq.prototype.store=iq.prototype.store;iq.prototype.getNetworkingEngine=iq.prototype.tc;iq.prototype.getConfiguration=iq.prototype.getConfiguration;iq.prototype.configure=iq.prototype.configure;iq.prototype.destroy=iq.prototype.destroy;iq.support=jq;
676
- var sq=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");gk.offline=jq;function Iq(){}function Jq(){for(var a=r(Kq),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ef()}catch(c){Qa("Error installing polyfill!",c)}}}function Lq(a,b){for(var c={priority:b||0,ef:a},d=r(mb(Kq)),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.ua;if(e.item.priority<c.priority){Kq.splice(f,0,c);return}}Kq.push(c)}J("shaka.polyfill",Iq);Iq.register=Lq;Iq.installAll=Jq;var Kq=[];function Mq(){}function Nq(){Oq()}Iq.EncryptionScheme=Mq;Mq.install=Nq;Lq(Nq,-1);function Pq(){}
677
- function Qq(){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}}),
678
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Rq);document.addEventListener("webkitfullscreenerror",Rq);document.addEventListener("mozfullscreenchange",Rq);document.addEventListener("mozfullscreenerror",Rq);document.addEventListener("MSFullscreenChange",Rq);document.addEventListener("MSFullscreenError",Rq)}}
679
- function Rq(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if("function"===typeof Event)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Iq.Fullscreen=Pq;Pq.install=Qq;Lq(Qq);function Sq(a,b,c){if("input"==a)switch(this.type){case "range":a="change"}HTMLInputElement.prototype.originalAddEventListener.call(this,a,b,c)}Lq(function(){Ed("Trident/")&&!HTMLInputElement.prototype.originalAddEventListener&&(HTMLInputElement.prototype.originalAddEventListener=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Sq)});Lq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});function Tq(){}function Uq(){}Iq.MathRound=Tq;Tq.install=Uq;Lq(Uq);function Vq(){}function Wq(){var a=Gd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Xq():a?(Yq(),12>=a?(Zq(),$q()):Zq()):(Ed("Tizen 2")||Ed("Tizen 3")||Ed("Tizen 4"))&&ar())}function Zq(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=a.apply(this,c);c.abort=function(){};return c}}
680
- function $q(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Yq(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"==b.split(/ *; */)[0].split("/")[1].toLowerCase()?!1:a(b)}}function ar(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=yd(b)&&a(b)}}
681
- function Xq(){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)}}Iq.MediaSource=Vq;Vq.install=Wq;Lq(Wq);function br(){}function cr(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=dr,window.MediaKeys=er,window.MediaKeySystemAccess=fr,navigator.requestMediaKeySystemAccess=gr)}function gr(a,b){try{var c=new fr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
682
- function dr(a){var b=this.mediaKeys;b&&b!=a&&hr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?hr(a,this):Promise.resolve()}function ir(a){a=gc(a.initData);if(jc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=pc(a.subarray(4),!0);a=rc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=hc(a);this.dispatchEvent(b)}Iq.PatchedMediaKeysApple=br;br.install=cr;
683
- function fr(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
637
+ function Up(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0});b=r(b);for(e=b.next();!e.done;e=b.next())for(e=e.value,
638
+ g=Vp(a,e,d),h=r(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Vp(a,e,d),g=r(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
639
+ function Vp(a,b,c){var d=b.segments.map(function(e){return Wp(a,e)});c.cc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new R(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,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,
640
+ roles:b.roles,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,closedCaptions:b.closedCaptions}}function Wp(a,b){var c=new Qp("segment",a.h,a.g,b.dataKey);return new Dg(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Xp(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd)}function Xp(a,b){var c=new Qp("segment",a.h,a.g,b);return new Bg(function(){return[c.toString()]},0,null)};function Yp(){this.g=null}p=Yp.prototype;p.configure=function(){};
641
+ p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:d=Rp(a);c.g=d;if(null==d||"manifest"!=d.g)throw new N(2,1,9004,a);e=new xp;ta(m);return t(m,e.init(),4);case 4:return t(m,Bp(e,d.Xa(),d.Aa()),5);case 5:return f=m.h,t(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Sp(d.Xa(),d.Aa()),l=Tp(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return va(m),t(m,e.destroy(),7);case 7:wa(m,0)}})};p.stop=function(){return Promise.resolve()};
642
+ p.update=function(){};p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:return d=c.g,e=new xp,y(m,2,3),t(m,e.init(),5);case 5:return t(m,Bp(e,d.Xa(),d.Aa()),6);case 6:return f=m.h,t(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.C(3);break}return t(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),t(m,e.destroy(),10);case 10:wa(m,0);break;case 2:C(m),m.C(3)}})};
643
+ xg["application/x-offline-manifest"]=function(){return new Yp};function Zp(){}function $p(a){var b=Rp(a);b&&"manifest"==b.g?(a={uri:a,Me:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Kc(a)):a=b&&"segment"==b.g?aq(b.key(),b):Ic(new N(2,1,9004,a));return a}
644
+ function aq(a,b){var c=new xp;return Kc(void 0).ma(function(){return c.init()}).ma(function(){return Bp(c,b.Xa(),b.Aa())}).ma(function(d){return d.getSegments([b.key()])}).ma(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Zp);Zp.plugin=$p;Xc("offline",$p);function bq(a,b,c){var d,e,f,g,h,k;return H(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var u=!1,v=r(m),A=v.next();!A.done;A=v.next())if(A=A.value,cq(A.info,q)){A.sessionIds.push(q.sessionId);u=!0;break}u||m.push({info:q,sessionIds:[q.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.C(4);break}g=f.value;h=dq(a,b,g);return t(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.C(2);break;case 4:return l["return"](d)}})}
645
+ function dq(a,b,c){var d,e;return H(function(f){switch(f.g){case 1:return d=new Id({bc:b,onError:function(){},gd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),y(f,2),d.configure(a),t(f,Qd(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return C(f),t(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return y(f,6),t(f,$d(d),8);case 8:ua(f,7);break;case 6:return C(f),t(f,d.destroy(),
646
+ 9);case 9:return f["return"]([]);case 7:return e=[],t(f,Promise.all(c.sessionIds.map(function(g){return H(function(h){if(1==h.g)return y(h,2),t(h,ae(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);C(h);x(h)})})),10);case 10:return t(f,d.destroy(),11);case 11:return f["return"](e)}})}
647
+ function cq(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Sc(a.audioCapabilities,b.audioCapabilities,c)&&Sc(a.videoCapabilities,b.videoCapabilities,c)};function eq(a,b,c){var d=b.presentationTimeline.getDuration();b=fq(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c}}function gq(a,b){var c=Tp(new Sp(a.Xa(),a.Aa()),b),d=b.appMetadata||{};c=fq(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d}}
648
+ function fq(a){var b=[],c=dg(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(Xf(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Yf(c.value));return b};function hq(){this.g={}}function iq(a,b,c){c=c.endTime-c.startTime;return jq(a,b)*c}function jq(a,b){var c=a.g[b];null==c&&(c=0);return c};function kq(a,b,c){a.variants=a.variants.filter(function(d){return Uf(d,b,c)})}function lq(a){a.variants=a.variants.filter(function(b){var c=!0;b.audio&&(c=c&&wf(b.audio));b.video&&(c=c&&wf(b.video));return c})}function mq(a,b){a.variants=a.variants.filter(function(c){return re(b,c)})};function nq(a){var b=this;if(a&&a.constructor!=U)throw new N(2,9,9008);this.Z=this.v=null;a?(this.v=a.v,this.Z=a.vc()):(this.v=pi(),this.Z=new Wc);this.md=[];this.Gc=[];this.Ud=[];var c=!a;this.M=new hd(function(){var d,e,f,g,h;return H(function(k){switch(k.g){case 1:return t(k,Promise.all(b.Ud.map(function(l){return hp(l)})),2);case 2:d=function(){};e=[];f=r(b.Gc);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return t(k,Promise.all(e),3);case 3:if(!c){k.C(4);break}return t(k,b.Z.destroy(),
649
+ 4);case 4:b.v=null,b.Z=null,x(k)}})})}function oq(){if(zd())a:{var a=r(yp.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}p=nq.prototype;p.destroy=function(){return this.M.destroy()};
650
+ p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));a.manifest&&a.manifest.dash&&"defaultPresentationDelay"in a.manifest.dash&&(yb("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),a.manifest.defaultPresentationDelay=a.manifest.dash.defaultPresentationDelay,delete a.manifest.dash.defaultPresentationDelay);return ri(this.v,a)};p.getConfiguration=function(){var a=pi();ri(a,this.v,pi());return a};p.vc=function(){return this.Z};
651
+ p.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new gp(this.Z);this.Ud.push(f);b=pq(this,a,b||{},function(){var h;return H(function(k){if(1==k.g)return t(k,wg(a,d.Z,e.manifest.retryParameters,c||null),2);h=k.h;return k["return"](Fb(h))})},e,f);var g=new Hc(b,function(){return hp(f)});g["finally"](function(){Rc(d.Ud,f)});g.then=function(h){yb("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead.");
652
+ return g.promise.then(h)};return qq(this,g)};p.Mf=function(){yb("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported.");return!1};
653
+ function pq(a,b,c,d,e,f){var g,h,k,l,m,n,q,u,v,A,w;return H(function(z){switch(z.g){case 1:return rq(),h=g=null,k=new xp,m=l=null,y(z,2,3),t(z,d(),5);case 5:return g=z.h,t(z,sq(a,b,g,e),6);case 6:n=z.h;tq(a);q=!n.presentationTimeline.W()&&!n.presentationTimeline.Db();if(!q)throw new N(2,9,9005,b);return t(z,uq(a,n,function(D){m=m||D},e),7);case 7:h=z.h;tq(a);if(m)throw m;return t(z,a.Ub(n,h,e),8);case 8:return t(z,k.init(),9);case 9:return tq(a),t(z,zp(k),10);case 10:return l=z.h,tq(a),t(z,vq(a,l.Aa,
654
+ h,n,b,c,e,f),11);case 11:u=z.h;tq(a);if(m)throw m;return t(z,l.Aa.addManifests([u]),12);case 12:return v=z.h,tq(a),A=new Qp("manifest",l.path.Xa,l.path.Aa,v[0]),z["return"](gq(A,u));case 3:return va(z),a.md=[],t(z,k.destroy(),13);case 13:if(!g){z.C(14);break}return t(z,g.stop(),14);case 14:if(!h){z.C(16);break}return t(z,h.destroy(),16);case 16:wa(z,0);break;case 2:w=C(z);if(!l){z.C(18);break}return t(z,l.Aa.removeSegments(a.md,function(){}),18);case 18:throw m||w;}})}
655
+ p.Ub=function(a,b,c){var d,e,f,g,h,k,l,m,n,q,u,v,A,w,z;return H(function(D){if(1==D.g){d={width:Infinity,height:Infinity};kq(a,c.restrictions,d);lq(a);mq(a,b);e=[];f=c.preferredAudioChannelCount;Of(a,f);g=r(a.variants);for(h=g.next();!h.done;h=g.next())k=h.value,e.push(Xf(k));l=r(a.textStreams);for(m=l.next();!m.done;m=l.next())n=m.value,e.push(Yf(n));return t(D,c.offline.trackSelectionCallback(e),2)}q=D.h;u=new Set;v=new Set;A=r(q);for(w=A.next();!w.done;w=A.next())z=w.value,"variant"==z.type&&u.add(z.id),
656
+ "text"==z.type&&v.add(z.id);a.variants=a.variants.filter(function(B){return u.has(B.id)});a.textStreams=a.textStreams.filter(function(B){return v.has(B.id)});wq(a);x(D)})};
657
+ function vq(a,b,c,d,e,f,g,h){var k,l,m,n,q,u,v,A,w,z,D,B;return H(function(E){switch(E.g){case 1:return k=eq(e,d,f),l=g.offline.progressCallback,m=function(F,I){k.size=I;l(k,F)},n=function(F,I){v&&g.offline.usePersistentLicense&&A==I&&Zd(c,"cenc",F)},ip(h,m,n),q=d.variants.some(function(F){var I=F.audio&&F.audio.encrypted;return F.video&&F.video.encrypted||I}),u=d.variants.some(function(F){return(F.video?F.video.drmInfos:[]).concat(F.audio?F.audio.drmInfos:[]).some(function(I){return I.initData&&
658
+ I.initData.length})}),v=q&&!u,A=null,v&&(w=c.i,A=xq.get(w.keySystem)),ta(E),D=z=yq(a,h,b,c,d,e,f,g),t(E,mp(h),4);case 4:D.size=E.h;z.expiration=c.uc();B=fe(c);z.sessionIds=g.offline.usePersistentLicense?B:[];if(q&&g.offline.usePersistentLicense&&!B.length)throw new N(2,9,9007);return E["return"](z);case 2:return va(E),t(E,h.destroy(),5);case 5:wa(E,0)}})}p.remove=function(a){return zq(this,Aq(this,a))};
659
+ function Aq(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:rq();c=Rp(b);if(null==c||"manifest"!=c.g)throw new N(2,9,9004,b);d=c;e=new xp;ta(k);return t(k,e.init(),4);case 4:return t(k,Bp(e,d.Xa(),d.Aa()),5);case 5:return f=k.h,t(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],t(k,Promise.all([Bq(a,h,e),Cq(f,d,h)]),2);case 2:return va(k),t(k,e.destroy(),8);case 8:wa(k,0)}})}
660
+ function Dq(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:ud(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Bq(a,b,c){return H(function(d){return t(d,Eq(a.Z,a.v.drm,c,b),0)})}
661
+ function Cq(a,b,c){function d(){}var e=Fq(c);gq(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.gg=function(){return zq(this,Gq(this))};
662
+ function Gq(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.g){case 1:return rq(),b=a.Z,c=a.v.drm,d=new xp,e=!1,ta(n),t(n,d.init(),4);case 4:f=[],Cp(d,function(q){return f.push(q)}),g=r(f),h=g.next();case 5:if(h.done){n.C(2);break}k=h.value;return t(n,k.getAll(),8);case 8:return l=n.h,t(n,bq(c,b,l),9);case 9:return m=n.h,t(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.C(5);break;case 2:return va(n),t(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n["return"](!e)}})}
663
+ p.list=function(){return zq(this,Hq())};function Hq(){var a,b,c;return H(function(d){switch(d.g){case 1:return rq(),a=[],b=new xp,ta(d),t(d,b.init(),4);case 4:return c=Promise.resolve(),Ap(b,function(e,f){c=c.then(function(){var g;return H(function(h){if(1==h.g)return t(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=gq(new Qp("manifest",e.Xa,e.Aa,l),k);a.push(m)});x(h)})})}),t(d,c,2);case 2:return va(d),t(d,b.destroy(),6);case 6:wa(d,3);break;case 3:return d["return"](a)}})}
664
+ function sq(a,b,c,d){var e,f,g,h,k;return H(function(l){if(1==l.g)return e=null,f=a.Z,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m}},c.configure(d.manifest),tq(a),t(l,c.start(b,g),2);if(3!=l.g)return h=l.h,tq(a),k=Iq(h),t(l,Promise.all(ab(k,function(m){return m.createSegmentIndex()})),3);tq(a);if(e)throw e;return l["return"](h)})}
665
+ function uq(a,b,c,d){var e;return H(function(f){switch(f.g){case 1:return e=new Id({bc:a.Z,onError:c,gd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),t(f,Nd(e,b.variants,d.offline.usePersistentLicense),2);case 2:return t(f,$d(e),3);case 3:return t(f,Yd(e),4);case 4:return f["return"](e)}})}
666
+ function yq(a,b,c,d,e,f,g,h){for(var k=new hq,l=r(e.variants),m=l.next();!m.done;m=l.next()){var n=k;m=m.value;var q=m.audio,u=m.video;q&&!u&&(n.g[q.id]=q.bandwidth||m.bandwidth);!q&&u&&(n.g[u.id]=u.bandwidth||m.bandwidth);if(q&&u){var v=q.bandwidth||393216,A=u.bandwidth||m.bandwidth-v;0>=A&&(A=m.bandwidth);n.g[q.id]=v;n.g[u.id]=A}}l=r(e.textStreams);for(n=l.next();!n.done;n=l.next())k.g[n.value.id]=52;n=new Map;n.set(null,Promise.resolve(null));m=new Map;q=Iq(e);l=new Map;q=r(q);for(u=q.next();!u.done;u=
667
+ q.next())u=u.value,v=Jq(a,b,c,k,e,u,h,n,m),l.set(u.id,v);a=r(e.variants);for(m=a.next();!m.done;m=a.next())b=m.value,b.audio&&l.get(b.audio.id).variantIds.push(b.id),b.video&&l.get(b.video.id).variantIds.push(b.id);a=Array.from(l.values());h=h.offline.usePersistentLicense;(b=d.i)&&h&&(b.initData=[]);return{creationTime:Date.now(),originalManifestUri:f,duration:e.presentationTimeline.getDuration(),size:0,expiration:d.uc(),streams:a,sessionIds:h?fe(d):[],drmInfo:b,appMetadata:g}}
668
+ function Jq(a,b,c,d,e,f,g,h,k){var l={id:f.id,originalId:f.originalId,primary:f.primary,type:f.type,mimeType:f.mimeType,codecs:f.codecs,frameRate:f.frameRate,pixelAspectRatio:f.pixelAspectRatio,kind:f.kind,language:f.language,label:f.label,width:f.width||null,height:f.height||null,encrypted:f.encrypted,keyIds:f.keyIds,segments:[],variantIds:[],roles:f.roles,channelsCount:f.channelsCount,audioSamplingRate:f.audioSamplingRate,closedCaptions:f.closedCaptions},m=f.id;Kq(f,e.presentationTimeline.fb(),
669
+ function(n){var q=Lq(a,b,m,f.id,c,d,n.i,g,h),u=Mq(a,b,m,f.id,c,d,n,g,k);lp(b,m,function(){var v,A;return H(function(w){if(1==w.g)return t(w,q,2);if(3!=w.g)return v=w.h,t(w,u,3);A=w.h;l.segments.push({initSegmentKey:v,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,dataKey:A});x(w)})})});return l}
670
+ function Lq(a,b,c,d,e,f,g,h,k){if(k.has(g))return k.get(g);h=nh(g.Ma(),g.h,g.g,h.streaming.retryParameters);b=jp(b,c,h,.5*jq(f,d),!0,function(l){var m;return H(function(n){if(1==n.g)return t(n,e.addSegments([{data:l}]),2);m=n.h;a.md.push(m[0]);return n["return"](m[0])})});k.set(g,b);return b}
671
+ function Mq(a,b,c,d,e,f,g,h,k){var l=[g.Ma()[0],g.h,g.g].join("-");if(k.has(l))return k.get(l);h=nh(g.Ma(),g.h,g.g,h.streaming.retryParameters);b=jp(b,c,h,iq(f,d,g),!1,function(m){var n;return H(function(q){if(1==q.g)return t(q,e.addSegments([{data:m}]),2);n=q.h;a.md.push(n[0]);return q["return"](n[0])})});k.set(l,b);return b}function Kq(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 tq(a){if(a.M.g)throw new N(2,9,7001);}
672
+ function rq(){if(!oq())throw new N(2,9,9E3);}function zq(a,b){return H(function(c){if(1==c.g)return a.Gc.push(b),ta(c),t(c,b,4);if(2!=c.g)return c["return"](c.h);va(c);Rc(a.Gc,b);return wa(c,0)})}function qq(a,b){var c=b.promise;a.Gc.push(c);return b["finally"](function(){Rc(a.Gc,c)})}
673
+ function Fq(a){var b=[];a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.push(d.initSegmentKey),b.push(d.dataKey)}return b}
674
+ function Eq(a,b,c,d){var e,f,g;return H(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=Dp(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Dq(d,!1),videoCapabilities:Dq(d,!0)}});return t(h,bq(b,a,f),2)}return 3!=h.g?(g=h.h,t(h,e.remove(g),3)):t(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
675
+ function Iq(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);a=r(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
676
+ function wq(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",nq);nq.deleteAll=function(){var a;return H(function(b){return 1==b.g?(a=new xp,ta(b),t(b,Ep(a),2)):5!=b.g?(va(b),t(b,a.destroy(),5)):wa(b,0)})};nq.prototype.list=nq.prototype.list;
677
+ nq.prototype.removeEmeSessions=nq.prototype.gg;nq.prototype.remove=nq.prototype.remove;nq.prototype.getStoreInProgress=nq.prototype.Mf;nq.prototype.store=nq.prototype.store;nq.prototype.getNetworkingEngine=nq.prototype.vc;nq.prototype.getConfiguration=nq.prototype.getConfiguration;nq.prototype.configure=nq.prototype.configure;nq.prototype.destroy=nq.prototype.destroy;nq.support=oq;
678
+ var xq=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");fk.offline=oq;function Nq(){}function Oq(){for(var a=r(Pq),b=a.next();!b.done;b=a.next()){b=b.value;try{b.hf()}catch(c){Oa("Error installing polyfill!",c)}}}function Qq(a,b){for(var c={priority:b||0,hf:a},d=r(hb(Pq)),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.sa;if(e.item.priority<c.priority){Pq.splice(f,0,c);return}}Pq.push(c)}L("shaka.polyfill",Nq);Nq.register=Qq;Nq.installAll=Oq;var Pq=[];function Rq(){}function Sq(){Tq()}Nq.EncryptionScheme=Rq;Rq.install=Sq;Qq(Sq,-1);function Uq(){}
679
+ function Vq(){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}}),
680
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Wq);document.addEventListener("webkitfullscreenerror",Wq);document.addEventListener("mozfullscreenchange",Wq);document.addEventListener("mozfullscreenerror",Wq);document.addEventListener("MSFullscreenChange",Wq);document.addEventListener("MSFullscreenError",Wq)}}
681
+ function Wq(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if("function"===typeof Event)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Nq.Fullscreen=Uq;Uq.install=Vq;Qq(Vq);function Xq(a,b,c){if("input"==a)switch(this.type){case "range":a="change"}HTMLInputElement.prototype.originalAddEventListener.call(this,a,b,c)}Qq(function(){Dd("Trident/")&&!HTMLInputElement.prototype.originalAddEventListener&&(HTMLInputElement.prototype.originalAddEventListener=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Xq)});Qq(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});function Yq(){}function Zq(){}Nq.MathRound=Yq;Yq.install=Zq;Qq(Zq);function $q(){}function ar(){var a=Fd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?br():a?(cr(),12>=a?(dr(),er()):dr()):(Dd("Tizen 2")||Dd("Tizen 3")||Dd("Tizen 4"))&&fr())}function dr(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=a.apply(this,c);c.abort=function(){};return c}}
682
+ function er(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function cr(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"==b.split(/ *; */)[0].split("/")[1].toLowerCase()?!1:a(b)}}function fr(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=xd(b)&&a(b)}}
683
+ function br(){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)}}Nq.MediaSource=$q;$q.install=ar;Qq(ar);function gr(){}function hr(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ir,window.MediaKeys=jr,window.MediaKeySystemAccess=kr,navigator.requestMediaKeySystemAccess=lr)}function lr(a,b){try{var c=new kr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
684
+ function ir(a){var b=this.mediaKeys;b&&b!=a&&mr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?mr(a,this):Promise.resolve()}function nr(a){a=ec(a.initData);if(hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=nc(a.subarray(4),!0);a=pc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=fc(a);this.dispatchEvent(b)}Nq.PatchedMediaKeysApple=gr;gr.install=hr;
685
+ function kr(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
684
686
  k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=r(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
685
- fr.prototype.createMediaKeys=function(){var a=new er(this.keySystem);return Promise.resolve(a)};fr.prototype.getConfiguration=function(){return this.g};function er(a){this.g=new WebKitMediaKeys(a);this.h=new kd}er.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new jr(this.g,a)};er.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
686
- function hr(a,b){a.h.Hb();if(!b)return Promise.resolve();a.h.m(b,"webkitneedkey",ir);try{return Mg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.webkitSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function jr(a){db.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new kd;this.sessionId="";this.expiration=NaN;this.closed=new kc;this.keyStatuses=new kr}pa(jr,db);p=jr.prototype;
687
- p.generateRequest=function(a,b){var c=this;this.g=new kc;try{var d=this.l.createSession("video/mp4",gc(b));this.j=d;this.sessionId=d.sessionId||"";this.h.m(this.j,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=new L("message",{messageType:void 0==c.keyStatuses.g?"license-request":"license-renewal",message:hc(e.message)});c.dispatchEvent(e)});this.h.m(d,"webkitkeyadded",function(){c.i&&(lr(c,"usable"),c.i.resolve(),c.i=null)});this.h.m(d,"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");
688
- e.errorCode=c.j.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.i)c.i.reject(e),c.i=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lr(c,"output-not-allowed");break;default:lr(c,"internal-error")}});lr(this,"status-pending")}catch(e){this.g.reject(e)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};p.update=function(a){this.i=new kc;try{this.j.update(gc(a))}catch(b){this.i.reject(b)}return this.i};
689
- p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Hb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function lr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new L("keystatuseschange");a.dispatchEvent(c)}function kr(){this.size=0;this.g=void 0}p=kr.prototype;p.forEach=function(a){this.g&&a(this.g,we.value())};
690
- p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=we.value();return this.g&&ec(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Lq(cr);function mr(){}function nr(){!window.HTMLVideoElement||!window.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,window.MediaKeys=or,window.MediaKeySystemAccess=pr,navigator.requestMediaKeySystemAccess=qr,HTMLMediaElement.prototype.setMediaKeys=rr)}function qr(a,b){try{var c=new pr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
691
- function sr(a){if(a.initData){var b=document.createEvent("CustomEvent");b.initCustomEvent("encrypted",!1,!1,null);b.initDataType="cenc";b.initData=hc(Al(a.initData));this.dispatchEvent(b)}}Iq.PatchedMediaKeysMs=mr;mr.install=nr;
692
- function pr(a,b){this.keySystem=a;for(var c=!1,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label},g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.audioCapabilities.push(k),c=
687
+ kr.prototype.createMediaKeys=function(){var a=new jr(this.keySystem);return Promise.resolve(a)};kr.prototype.getConfiguration=function(){return this.g};function jr(a){this.g=new WebKitMediaKeys(a);this.h=new jd}jr.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new or(this.g,a)};jr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
688
+ function mr(a,b){a.h.Jb();if(!b)return Promise.resolve();a.h.m(b,"webkitneedkey",nr);try{return Kg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.webkitSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function or(a){$a.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new jd;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new pr}pa(or,$a);p=or.prototype;
689
+ p.generateRequest=function(a,b){var c=this;this.g=new ic;try{var d=this.l.createSession("video/mp4",ec(b));this.j=d;this.sessionId=d.sessionId||"";this.h.m(this.j,"webkitkeymessage",function(e){c.g&&(c.g.resolve(),c.g=null);e=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",fc(e.message));e=new M("message",e);c.dispatchEvent(e)});this.h.m(d,"webkitkeyadded",function(){c.i&&(qr(c,"usable"),c.i.resolve(),c.i=null)});this.h.m(d,"webkitkeyerror",function(){var e=
690
+ Error("EME PatchedMediaKeysApple key error");e.errorCode=c.j.error;if(null!=c.g)c.g.reject(e),c.g=null;else if(null!=c.i)c.i.reject(e),c.i=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:qr(c,"output-not-allowed");break;default:qr(c,"internal-error")}});qr(this,"status-pending")}catch(e){this.g.reject(e)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
691
+ p.update=function(a){this.i=new ic;try{this.j.update(ec(a))}catch(b){this.i.reject(b)}return this.i};p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function qr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
692
+ function pr(){this.size=0;this.g=void 0}p=pr.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Qq(hr);function rr(){}function sr(){!window.HTMLVideoElement||!window.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,window.MediaKeys=tr,window.MediaKeySystemAccess=ur,navigator.requestMediaKeySystemAccess=vr,HTMLMediaElement.prototype.setMediaKeys=wr)}function vr(a,b){try{var c=new ur(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}
693
+ function xr(a){if(a.initData){var b=document.createEvent("CustomEvent");b.initCustomEvent("encrypted",!1,!1,null);b.initDataType="cenc";b.initData=fc(zl(a.initData));this.dispatchEvent(b)}}Nq.PatchedMediaKeysMs=rr;rr.install=sr;
694
+ function ur(a,b){this.keySystem=a;for(var c=!1,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label},g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.audioCapabilities.push(k),c=
693
695
  !0));if(e.videoCapabilities)for(h=r(e.videoCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(g=!0,MSMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(f.videoCapabilities.push(k),c=!0));g||(c=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));"required"==e.persistentState&&(c=!1);if(c){this.g=f;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
694
- pr.prototype.createMediaKeys=function(){var a=new or(this.keySystem);return Promise.resolve(a)};pr.prototype.getConfiguration=function(){return this.g};function rr(a){var b=this.mediaKeys;b&&b!=a&&tr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?tr(a,this):Promise.resolve()}function or(a){this.g=new MSMediaKeys(a);this.h=new kd}
695
- or.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new ur(this.g,a)};or.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function tr(a,b){a.h.Hb();if(!b)return Promise.resolve();a.h.m(b,"msneedkey",sr);try{return Mg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.msSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
696
- function ur(a){db.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new kd;this.sessionId="";this.expiration=NaN;this.closed=new kc;this.keyStatuses=new vr}pa(ur,db);p=ur.prototype;
697
- p.generateRequest=function(a,b){var c=this;this.g=new kc;try{this.j=this.l.createSession("video/mp4",gc(b),null),this.h.m(this.j,"mskeymessage",function(d){c.g&&(c.g.resolve(),c.g=null);d=new L("message",{messageType:void 0==c.keyStatuses.g?"license-request":"license-renewal",message:hc(d.message)});c.dispatchEvent(d)}),this.h.m(this.j,"mskeyadded",function(){c.g?(wr(c,"usable"),c.g.resolve(),c.g=null):c.i&&(wr(c,"usable"),c.i.resolve(),c.i=null)}),this.h.m(this.j,"mskeyerror",function(){var d=Error("EME PatchedMediaKeysMs key error");
698
- d.errorCode=c.j.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.i)c.i.reject(d),c.i=null;else switch(c.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:wr(c,"output-not-allowed");break;default:wr(c,"internal-error")}}),wr(this,"status-pending")}catch(d){this.g.reject(d)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};p.update=function(a){this.i=new kc;try{this.j.update(gc(a))}catch(b){this.i.reject(b)}return this.i};
699
- p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Hb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function wr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new L("keystatuseschange");a.dispatchEvent(c)}function vr(){this.size=0;this.g=void 0}p=vr.prototype;p.forEach=function(a){this.g&&a(this.g,we.value())};
700
- p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=we.value();return this.g&&ec(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Lq(nr);function xr(){}function yr(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=zr,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Ar,window.MediaKeys=Br,window.MediaKeySystemAccess=Cr)}function zr(){return Promise.reject(Error("The key system specified is not supported."))}
701
- function Ar(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Iq.PatchedMediaKeysNop=xr;xr.install=yr;function Br(){throw new TypeError("Illegal constructor.");}Br.prototype.createSession=function(){};Br.prototype.setServerCertificate=function(){};function Cr(){this.keySystem="";throw new TypeError("Illegal constructor.");}Cr.prototype.getConfiguration=function(){};Cr.prototype.createMediaKeys=function(){};Lq(yr,-10);function Dr(){}function Er(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Fr="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Gr;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Hr;window.MediaKeys=Ir;window.MediaKeySystemAccess=Jr}}
702
- function Kr(a){var b=Fr;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Gr(a,b){try{var c=new Jr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Hr(a){var b=this.mediaKeys;b&&b!=a&&Lr(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Lr(a,this);return Promise.resolve()}Iq.PatchedMediaKeysWebkit=Dr;Dr.install=Er;
703
- function Jr(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
696
+ ur.prototype.createMediaKeys=function(){var a=new tr(this.keySystem);return Promise.resolve(a)};ur.prototype.getConfiguration=function(){return this.g};function wr(a){var b=this.mediaKeys;b&&b!=a&&yr(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?yr(a,this):Promise.resolve()}function tr(a){this.g=new MSMediaKeys(a);this.h=new jd}
697
+ tr.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new zr(this.g,a)};tr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function yr(a,b){a.h.Jb();if(!b)return Promise.resolve();a.h.m(b,"msneedkey",xr);try{return Kg(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.msSetMediaKeys(a.g)}),Promise.resolve()}catch(c){return Promise.reject(c)}}
698
+ function zr(a){$a.call(this);this.j=null;this.l=a;this.i=this.g=null;this.h=new jd;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new Ar}pa(zr,$a);p=zr.prototype;
699
+ p.generateRequest=function(a,b){var c=this;this.g=new ic;try{this.j=this.l.createSession("video/mp4",ec(b),null),this.h.m(this.j,"mskeymessage",function(d){c.g&&(c.g.resolve(),c.g=null);d=(new Map).set("messageType",void 0==c.keyStatuses.g?"license-request":"license-renewal").set("message",fc(d.message));d=new M("message",d);c.dispatchEvent(d)}),this.h.m(this.j,"mskeyadded",function(){c.g?(Br(c,"usable"),c.g.resolve(),c.g=null):c.i&&(Br(c,"usable"),c.i.resolve(),c.i=null)}),this.h.m(this.j,"mskeyerror",
700
+ function(){var d=Error("EME PatchedMediaKeysMs key error");d.errorCode=c.j.error;if(null!=c.g)c.g.reject(d),c.g=null;else if(null!=c.i)c.i.reject(d),c.i=null;else switch(c.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Br(c,"output-not-allowed");break;default:Br(c,"internal-error")}}),Br(this,"status-pending")}catch(d){this.g.reject(d)}return this.g};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
701
+ p.update=function(a){this.i=new ic;try{this.j.update(ec(a))}catch(b){this.i.reject(b)}return this.i};p.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Jb()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Br(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
702
+ function Ar(){this.size=0;this.g=void 0}p=Ar.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};Qq(sr);function Cr(){}function Dr(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Er,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Fr,window.MediaKeys=Gr,window.MediaKeySystemAccess=Hr)}function Er(){return Promise.reject(Error("The key system specified is not supported."))}
703
+ function Fr(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Nq.PatchedMediaKeysNop=Cr;Cr.install=Dr;function Gr(){throw new TypeError("Illegal constructor.");}Gr.prototype.createSession=function(){};Gr.prototype.setServerCertificate=function(){};function Hr(){this.keySystem="";throw new TypeError("Illegal constructor.");}Hr.prototype.getConfiguration=function(){};Hr.prototype.createMediaKeys=function(){};Qq(Dr,-10);function Ir(){}function Jr(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Kr="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Lr;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Mr;window.MediaKeys=Nr;window.MediaKeySystemAccess=Or}}
704
+ function Pr(a){var b=Kr;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Lr(a,b){try{var c=new Or(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Mr(a){var b=this.mediaKeys;b&&b!=a&&Qr(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Qr(a,this);return Promise.resolve()}Nq.PatchedMediaKeysWebkit=Ir;Ir.install=Jr;
705
+ function Or(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
704
706
  m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
705
- d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}Jr.prototype.createMediaKeys=function(){var a=new Ir(this.g);return Promise.resolve(a)};Jr.prototype.getConfiguration=function(){return this.h};function Ir(a){this.l=a;this.g=null;this.h=new kd;this.i=[];this.j=new Map}
706
- function Lr(a,b){a.g=b;a.h.Hb();var c=Fr;b&&(a.h.m(b,c+"needkey",function(d){var e=document.createEvent("CustomEvent");e.initCustomEvent("encrypted",!1,!1,null);e.initDataType="cenc";e.initData=hc(d.initData);a.g.dispatchEvent(e)}),a.h.m(b,c+"keymessage",function(d){var e=Mr(a,d.sessionId);e&&(d=new L("message",{messageType:void 0==e.keyStatuses.g?"licenserequest":"licenserenewal",message:d.message}),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.h.m(b,c+"keyadded",function(d){if(d=Mr(a,d.sessionId))Nr(d,
707
- "usable"),d.g&&d.g.resolve(),d.g=null}),a.h.m(b,c+"keyerror",function(d){var e=Mr(a,d.sessionId);e&&e.handleError(d)}))}Ir.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.g||document.createElement("video");b.src||(b.src="about:blank");a=new Or(b,this.l,a);this.i.push(a);return a};Ir.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
708
- function Mr(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 Or(a,b,c){db.call(this);this.j=a;this.u=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new kc;this.keyStatuses=new Pr}pa(Or,db);p=Or.prototype;
709
- p.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?Nr(this,"output-restricted"):1==b?Nr(this,"expired"):Nr(this,"internal-error"))};
710
- function Qr(a,b,c){if(a.u)return Promise.reject(Error("The session is already initialized."));a.u=!0;try{if("persistent-license"==a.l)if(c)var d=gc(rc("LOAD_SESSION|"+c));else{var e=rc("PERSISTENT|");d=Ac(e,b)}else d=gc(b)}catch(g){return Promise.reject(g)}a.h=new kc;var f=Kr("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new O(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).U(.01)}return a.h}
711
- function Rr(a,b,c){if(a.g)a.g.then(function(){return Rr(a,b,c)})["catch"](function(){return Rr(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=nc(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=xc(e.keys[0].k);e=xc(e.keys[0].kid)}else d=gc(c),e=null;var f=Kr("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
712
- function Nr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new L("keystatuseschange");a.dispatchEvent(c)}p.generateRequest=function(a,b){return Qr(this,b,null)};p.load=function(a){return"persistent-license"==this.l?Qr(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new kc;Rr(this,b,a);return b};
713
- p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Kr("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Pr(){this.size=0;this.g=void 0}p=Pr.prototype;p.forEach=function(a){this.g&&a(this.g,we.value())};p.get=function(a){if(this.has(a))return this.g};
714
- p.has=function(a){var b=we.value();return this.g&&ec(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var Fr="";Lq(Er);function Sr(){}function Tr(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Ur,Object.defineProperty(a,"disablePictureInPicture",{get:Vr,set:Wr,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Xr,document.addEventListener("webkitpresentationmodechanged",Yr,!0))}}
715
- function Yr(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)}
716
- function Ur(){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 Xr(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
717
- function Vr(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Wr(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Iq.PiPWebkit=Sr;Sr.install=Tr;Lq(Tr);function Zr(){}function $r(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Iq.VideoPlayPromise=Zr;Zr.install=$r;Lq($r);function as(){}function bs(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=cs)}}function cs(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Iq.VideoPlaybackQuality=as;as.install=bs;Lq(bs);function ds(){}function es(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=fs;else if(6==b)a=gs;else{try{var c=!!fs(1,2,"")}catch(d){c=!1}c&&(a=fs)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function fs(a,b,c){return new window.TextTrackCue(a,b,c)}function gs(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Iq.VTTCue=ds;ds.install=es;Lq(es);function hs(){}hs.prototype.parseInit=function(){};
718
- hs.prototype.parseMedia=function(a,b){var c=nc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(B){throw new M(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new M(2,2,2005,c.textContent);if(e=f.getElementsByTagName("tt")[0]){var g=Fl(e,"http://www.w3.org/ns/ttml#parameter","frameRate");var h=Fl(e,"http://www.w3.org/ns/ttml#parameter","subFrameRate");var k=Fl(e,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier");
719
- var l=Fl(e,"http://www.w3.org/ns/ttml#parameter","tickRate");var m=Fl(e,"http://www.w3.org/ns/ttml#parameter","cellResolution");f=e.getAttribute("xml:space")||"default";c=Fl(e,"http://www.w3.org/ns/ttml#styling","extent")}else throw new M(2,2,2005,"TTML does not contain <tt> tag.");if("default"!=f&&"preserve"!=f)throw new M(2,2,2005,"Invalid xml:space value: "+f);f="default"==f;g=new is(g,h,k,l);m=m?(m=/^(\d+) (\d+)$/.exec(m))?{columns:parseInt(m[1],10),rows:parseInt(m[2],10)}:null:null;h=js(e.getElementsByTagName("metadata")[0]);
720
- k=js(e.getElementsByTagName("styling")[0]);l=js(e.getElementsByTagName("layout")[0]);for(var n=[],q=r(l),u=q.next();!u.done;u=q.next()){var v=u.value,A=c;u=new We;var w=v.getAttribute("xml:id");if(w){u.id=w;w=null;A&&(w=ks.exec(A)||ls.exec(A));A=w?Number(w[1]):null;w=w?Number(w[2]):null;var z,C;if(z=ms(v,k,"extent"))z=(C=ks.exec(z))||ls.exec(z),null!=z&&(u.width=null!=A?100*Number(z[1])/A:Number(z[1]),u.height=null!=w?100*Number(z[2])/w:Number(z[2]),u.widthUnits=C||null!=A?kf:0,u.heightUnits=C||null!=
721
- w?kf:0);if(v=ms(v,k,"origin"))z=(C=ks.exec(v))||ls.exec(v),null!=z&&(u.viewportAnchorX=null!=A?100*Number(z[1])/A:Number(z[1]),u.viewportAnchorY=null!=w?100*Number(z[2])/w:Number(z[2]),u.viewportAnchorUnits=C||null!=A?kf:0)}else u=null;u&&n.push(u)}c=ns(e.getElementsByTagName("body")[0]);c=r(c);for(e=c.next();!e.done;e=c.next())(e=os(e.value,b.periodStart,g,h,k,l,n,f,!1,m))&&d.push(e)}return d};
722
- function js(a){var b=[];if(!a)return b;for(var c=r(a.childNodes),d=c.next();!d.done;d=c.next())d=d.value,d.nodeType==Node.ELEMENT_NODE&&"br"!==d.nodeName&&(d=js(d),b=b.concat(d));b.length||b.push(a);return b}function ns(a){if(!a)return[];var b=[];a=r(a.childNodes);for(var c=a.next();!c.done;c=a.next())c=c.value,c instanceof Element&&(c.hasAttribute("begin")?b.push(c):b=b.concat(ns(c)));return b}
723
- function ps(a,b){for(var c="",d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,"br"==e.nodeName&&a.childNodes[0]!==e?c+="\n":e.childNodes&&0<e.childNodes.length?c+=ps(e,b):b?(e=e.textContent.trim(),e=e.replace(/\s+/g," "),c+=e):c+=e.textContent;return c}
724
- function os(a,b,c,d,e,f,g,h,k,l){if(k&&"br"==a.nodeName)return a=new Ue(0,0,""),a.spacer=!0,a;var m=/^[\s\n]*$/.test(a.textContent),n=a.nodeType==Node.ELEMENT_NODE&&!a.hasAttribute("begin")&&!a.hasAttribute("end");if(a.nodeType!=Node.ELEMENT_NODE||n&&m||n&&!k)return null;h="default"==(a.getAttribute("xml:space")||(h?"default":"preserve"));m=qs(a.getAttribute("begin"),c);n=qs(a.getAttribute("end"),c);var q=qs(a.getAttribute("dur"),c);null==n&&null!=q&&(n=m+q);if(!k&&(null==m||null==n))throw new M(2,
725
- 2,2001);m=k&&null==m?0:m+b;n=k&&null==n?0:n+b;q="";k=[];if(Array.from(a.childNodes).some(function(w){return w.nodeType==Node.TEXT_NODE&&/\S+/.test(w.textContent)}))q=ps(a,h);else for(var u=r(a.childNodes),v=u.next();!v.done;v=u.next())if(v=os(v.value,b,c,d,e,f,g,h,!0,l))v.startTime=v.startTime||m,v.endTime=v.endTime||n,k.push(v);b=new Ue(m,n,q);b.nestedCues=k;l&&(b.cellResolution=l);if((f=rs(a,"region",f,"")[0])&&f.getAttribute("xml:id")){var A=f.getAttribute("xml:id");b.region=g.filter(function(w){return w.id==
726
- A})[0]}d=rs(a,"backgroundImage",d,"#","http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt")[0];ss(b,a,f,d,e);return b}
727
- function ss(a,b,c,d,e){"rtl"==ts(b,c,e,"direction")&&(a.direction="rtl");var f=ts(b,c,e,"writingMode");"tb"==f||"tblr"==f?a.writingMode="vertical-lr":"tbrl"==f?a.writingMode="vertical-rl":"rltb"==f||"rl"==f?a.direction="rtl":f&&(a.direction=Ve);(f=ts(b,c,e,"textAlign"))?(a.positionAlign=us[f],a.lineAlign=vs[f],a.textAlign=ff[f.toUpperCase()]):a.textAlign="start";if(f=ts(b,c,e,"displayAlign"))a.displayAlign=gf[f.toUpperCase()];if(f=ts(b,c,e,"color"))a.color=f;if(f=ts(b,c,e,"backgroundColor"))a.backgroundColor=
728
- f;if(f=ts(b,c,e,"border"))a.border=f;if(f=ts(b,c,e,"fontFamily"))a.fontFamily=f;(f=ts(b,c,e,"fontWeight"))&&"bold"==f&&(a.fontWeight=700);(f=ts(b,c,e,"wrapOption"))&&"noWrap"==f&&(a.wrapLine=!1);(f=ts(b,c,e,"lineHeight"))&&f.match(ws)&&(a.lineHeight=f);(f=ts(b,c,e,"fontSize"))&&(f.match(ws)||f.match(xs))&&(a.fontSize=f);if(f=ts(b,c,e,"fontStyle"))a.fontStyle=jf[f.toUpperCase()];if(d){f=d.getAttribute("imageType")||d.getAttribute("imagetype");var g=d.getAttribute("encoding");d=d.textContent.trim();
729
- "PNG"==f&&"Base64"==g&&d&&(a.backgroundImage="data:image/png;base64,"+d)}(d=ts(b,c,e,"letterSpacing"))&&d.match(ws)&&(a.letterSpacing=d);(d=ts(b,c,e,"linePadding"))&&d.match(ws)&&(a.linePadding=d);if(d=ts(b,c,e,"opacity"))a.opacity=parseFloat(d);(c=ms(c,e,"textDecoration"))&&ys(a,c);(b=zs(b,e,"textDecoration"))&&ys(a,b)}
730
- function ys(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&Tc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Tc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
731
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Tc(a.textDecoration,"overline")}}function ts(a,b,c,d){return(a=zs(a,c,d))?a:ms(b,c,d)}function ms(a,b,c){if(!a)return null;var d=js(a);d=r(d);for(var e=d.next();!e.done;e=d.next())if(e=Fl(e.value,"http://www.w3.org/ns/ttml#styling",c))return e;return As(a,b,c)}function zs(a,b,c){var d=Fl(a,"http://www.w3.org/ns/ttml#styling",c);return d?d:As(a,b,c)}
732
- function As(a,b,c){a=rs(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Fl(a[e],"urn:ebu:tt:style",c);f||(f=Fl(a[e],"http://www.w3.org/ns/ttml#styling",c));f||(f=zs(a[e],b,c));f&&(d=f)}return d}
733
- function rs(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Fl(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(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}
734
- function qs(a,b){var c=null;if(Bs.test(a)){c=Bs.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else Cs.test(a)?c=Ds(Cs,a):Es.test(a)?c=Ds(Es,a):Fs.test(a)?(c=Fs.exec(a),c=Number(c[1])/b.frameRate):Gs.test(a)?(c=Gs.exec(a),c=Number(c[1])/b.g):Hs.test(a)&&(c=Ds(Hs,a));return c}
735
- function Ds(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}J("shaka.text.TtmlTextParser",hs);hs.prototype.parseMedia=hs.prototype.parseMedia;hs.prototype.parseInit=hs.prototype.parseInit;function is(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]))}
736
- var ks=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,xs=/^(\d{1,2}(?:\.\d+)?|100)%$/,ws=/^(\d+px|\d+em|\d*\.?\d+c)$/,ls=/^(\d+)px (\d+)px$/,Bs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Cs=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Es=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Fs=/^(\d*(?:\.\d*)?)f$/,Gs=/^(\d*(?:\.\d*)?)t$/,Hs=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,vs={left:af,center:"center",right:"end",start:af,end:"end"},us=
737
- {left:"line-left",center:"center",right:"line-right"};of["application/ttml+xml"]=function(){return new hs};function Is(){this.B=new hs}Is.prototype.parseInit=function(a){var b=!1;(new Ae).box("moov",Ee).box("trak",Ee).box("mdia",Ee).box("minf",Ee).box("stbl",Ee).ba("stsd",Ge).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new M(2,2,2007);};Is.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Ae).box("mdat",He(function(f){d=!0;e=e.concat(c.B.parseMedia(f,b))})).parse(a,!1);if(!d)throw new M(2,2,2007);return e};J("shaka.text.Mp4TtmlParser",Is);Is.prototype.parseMedia=Is.prototype.parseMedia;
738
- Is.prototype.parseInit=Is.prototype.parseInit;of['application/mp4; codecs="stpp"']=function(){return new Is};of['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Is};of['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Is};function Js(){}Js.prototype.parseInit=function(){};
739
- Js.prototype.parseMedia=function(a,b){var c=nc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new M(2,2,2E3);c=b.periodStart;if(d[0].includes("X-TIMESTAMP-MAP")){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Ks(new On(e[1]));if(null==c)throw new M(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-c}}f=
740
- [];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new On(g);var h=new We;Rn(g);Pn(g);for(var k=Rn(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
741
- (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Pn(g);k=Rn(g)}f.push(h)}e=[];d=r(d.slice(1));for(g=d.next();!g.done;g=d.next()){l=g.value.split("\n");k=c;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0])g=null;else{g=null;l[0].includes("--\x3e")||(g=l[0],l.splice(0,1));h=new On(l[0]);m=Ks(h);var n=Qn(h,/[ \t]+--\x3e[ \t]+/g),q=Ks(h);if(null==m||null==n||null==q)throw new M(2,2,2001);l=new Ue(m+k,q+k,l.slice(1).join("\n").trim());
742
- Pn(h);for(k=Rn(h);k;)Ls(l,k,f),Pn(h),k=Rn(h);null!=g&&(l.id=g);g=l}g&&e.push(g)}return e};
743
- function Ls(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Ye:a.textAlign=ff[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
744
- b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Ms(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=hf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=$e,a.line=Number(c[1]),c[2]&&(a.lineAlign=hf[c[2].toUpperCase()])}function Ms(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
745
- function Ks(a){a=Qn(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}J("shaka.text.VttTextParser",Js);Js.prototype.parseMedia=Js.prototype.parseMedia;Js.prototype.parseInit=Js.prototype.parseInit;of["text/vtt"]=function(){return new Js};of['text/vtt; codecs="vtt"']=function(){return new Js};of['text/vtt; codecs="wvtt"']=function(){return new Js};function Ns(){this.g=null}Ns.prototype.parseInit=function(a){var b=this,c=!1;(new Ae).box("moov",Ee).box("trak",Ee).box("mdia",Ee).ba("mdhd",function(d){0==d.version?(d.reader.skip(4),d.reader.skip(4),b.g=d.reader.S(),d.reader.skip(4)):(d.reader.skip(8),d.reader.skip(8),b.g=d.reader.S(),d.reader.skip(8));d.reader.skip(4)}).box("minf",Ee).box("stbl",Ee).ba("stsd",Ge).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new M(2,2,2008);if(!c)throw new M(2,2,2008);};
746
- Ns.prototype.parseMedia=function(a,b){if(!this.g)throw new M(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Ae).box("moof",Ee).box("traf",Ee).ba("tfdt",function(E){g=!0;c=0==E.version?E.reader.S():E.reader.Gb()}).ba("tfhd",function(E){var F=E.flags;E=E.reader;E.skip(4);F&1&&E.skip(8);F&2&&E.skip(4);l=F&8?E.S():null}).ba("trun",function(E){h=!0;var F=E.version,I=E.flags;E=E.reader;var H=E.S();I&1&&E.skip(4);I&4&&E.skip(4);var K=[];H=r(kb(H));for(var N=H.next();!N.done;N=H.next())N={duration:null,
747
- sampleSize:null,fe:null},I&256&&(N.duration=E.S()),I&512&&(N.sampleSize=E.S()),I&1024&&E.skip(4),I&2048&&(N.fe=0==F?E.S():E.Me()),K.push(N);d=K}).box("mdat",He(function(E){k=!0;e=E})).parse(a,!1);if(!k&&!g&&!h)throw new M(2,2,2008);for(var m=c,n=new xe(e,0),q=r(d),u=q.next();!u.done;u=q.next()){u=u.value;var v=u.duration||l,A=u.fe?c+u.fe:m;m=A+(v||0);var w=0;do{var z=n.S();w+=z;var C=n.S(),B=null;"vttc"==Ie(C)?8<z&&(B=n.Fb(z-8)):n.skip(z-8);v&&B&&(z=Os(B,b.periodStart+A/this.g,b.periodStart+m/this.g),
748
- f.push(z))}while(u.sampleSize&&w<u.sampleSize)}return f.filter(Ib)};function Os(a,b,c){var d,e,f;(new Ae).box("payl",He(function(g){d=nc(g)})).box("iden",He(function(g){e=nc(g)})).box("sttg",He(function(g){f=nc(g)})).parse(a);return d?Ps(d,e,f,b,c):null}function Ps(a,b,c,d,e){a=new Ue(d,e,a);b&&(a.id=b);if(c)for(b=new On(c),c=Rn(b);c;)Ls(a,c,[]),Pn(b),c=Rn(b);return a}J("shaka.text.Mp4VttParser",Ns);Ns.prototype.parseMedia=Ns.prototype.parseMedia;Ns.prototype.parseInit=Ns.prototype.parseInit;
749
- of['application/mp4; codecs="wvtt"']=function(){return new Ns};/*
707
+ d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}Or.prototype.createMediaKeys=function(){var a=new Nr(this.g);return Promise.resolve(a)};Or.prototype.getConfiguration=function(){return this.h};function Nr(a){this.l=a;this.g=null;this.h=new jd;this.i=[];this.j=new Map}
708
+ function Qr(a,b){a.g=b;a.h.Jb();var c=Kr;b&&(a.h.m(b,c+"needkey",function(d){var e=document.createEvent("CustomEvent");e.initCustomEvent("encrypted",!1,!1,null);e.initDataType="cenc";e.initData=fc(d.initData);a.g.dispatchEvent(e)}),a.h.m(b,c+"keymessage",function(d){var e=Rr(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.g?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.h.m(b,c+"keyadded",
709
+ function(d){if(d=Rr(a,d.sessionId))Sr(d,"usable"),d.g&&d.g.resolve(),d.g=null}),a.h.m(b,c+"keyerror",function(d){var e=Rr(a,d.sessionId);e&&e.handleError(d)}))}Nr.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.g||document.createElement("video");b.src||(b.src="about:blank");a=new Tr(b,this.l,a);this.i.push(a);return a};Nr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
710
+ function Rr(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 Tr(a,b,c){$a.call(this);this.j=a;this.u=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new ic;this.keyStatuses=new Ur}pa(Tr,$a);p=Tr.prototype;
711
+ p.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?Sr(this,"output-restricted"):1==b?Sr(this,"expired"):Sr(this,"internal-error"))};
712
+ function Vr(a,b,c){if(a.u)return Promise.reject(Error("The session is already initialized."));a.u=!0;try{if("persistent-license"==a.l)if(c)var d=ec(pc("LOAD_SESSION|"+c));else{var e=pc("PERSISTENT|");d=yc(e,b)}else d=ec(b)}catch(g){return Promise.reject(g)}a.h=new ic;var f=Pr("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new O(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h}
713
+ function Wr(a,b,c){if(a.g)a.g.then(function(){return Wr(a,b,c)})["catch"](function(){return Wr(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=lc(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=vc(e.keys[0].k);e=vc(e.keys[0].kid)}else d=ec(c),e=null;var f=Pr("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
714
+ function Sr(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}p.generateRequest=function(a,b){return Vr(this,b,null)};p.load=function(a){return"persistent-license"==this.l?Vr(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new ic;Wr(this,b,a);return b};
715
+ p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Pr("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ur(){this.size=0;this.g=void 0}p=Ur.prototype;p.forEach=function(a){this.g&&a(this.g,ue.value())};p.get=function(a){if(this.has(a))return this.g};
716
+ p.has=function(a){var b=ue.value();return this.g&&cc(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var Kr="";Qq(Jr);function Xr(){}function Yr(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Zr,Object.defineProperty(a,"disablePictureInPicture",{get:$r,set:as,enumerable:!0,configurable:!0}),document.exitPictureInPicture=bs,document.addEventListener("webkitpresentationmodechanged",cs,!0))}}
717
+ function cs(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)}
718
+ function Zr(){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 bs(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
719
+ function $r(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function as(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Nq.PiPWebkit=Xr;Xr.install=Yr;Qq(Yr);function ds(){}function es(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Nq.VideoPlayPromise=ds;ds.install=es;Qq(es);function fs(){}function gs(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=hs)}}function hs(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Nq.VideoPlaybackQuality=fs;fs.install=gs;Qq(gs);function is(){}function js(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=ks;else if(6==b)a=ls;else{try{var c=!!ks(1,2,"")}catch(d){c=!1}c&&(a=ks)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function ks(a,b,c){return new window.TextTrackCue(a,b,c)}function ls(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Nq.VTTCue=is;is.install=js;Qq(js);function ms(){}ms.prototype.parseInit=function(){};
720
+ ms.prototype.parseMedia=function(a,b){var c=lc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(B){throw new N(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new N(2,2,2005,c.textContent);if(e=f.getElementsByTagName("tt")[0]){var g=El(e,"http://www.w3.org/ns/ttml#parameter","frameRate");var h=El(e,"http://www.w3.org/ns/ttml#parameter","subFrameRate");var k=El(e,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier");
721
+ var l=El(e,"http://www.w3.org/ns/ttml#parameter","tickRate");var m=El(e,"http://www.w3.org/ns/ttml#parameter","cellResolution");f=e.getAttribute("xml:space")||"default";c=El(e,"http://www.w3.org/ns/ttml#styling","extent")}else throw new N(2,2,2005,"TTML does not contain <tt> tag.");if("default"!=f&&"preserve"!=f)throw new N(2,2,2005,"Invalid xml:space value: "+f);f="default"==f;g=new ns(g,h,k,l);m=m?(m=/^(\d+) (\d+)$/.exec(m))?{columns:parseInt(m[1],10),rows:parseInt(m[2],10)}:null:null;h=os(e.getElementsByTagName("metadata")[0]);
722
+ k=os(e.getElementsByTagName("styling")[0]);l=os(e.getElementsByTagName("layout")[0]);for(var n=[],q=r(l),u=q.next();!u.done;u=q.next()){var v=u.value,A=c;u=new Ue;var w=v.getAttribute("xml:id");if(w){u.id=w;w=null;A&&(w=ps.exec(A)||qs.exec(A));A=w?Number(w[1]):null;w=w?Number(w[2]):null;var z,D;if(z=rs(v,k,"extent"))z=(D=ps.exec(z))||qs.exec(z),null!=z&&(u.width=null!=A?100*Number(z[1])/A:Number(z[1]),u.height=null!=w?100*Number(z[2])/w:Number(z[2]),u.widthUnits=D||null!=A?hf:0,u.heightUnits=D||null!=
723
+ w?hf:0);if(v=rs(v,k,"origin"))z=(D=ps.exec(v))||qs.exec(v),null!=z&&(u.viewportAnchorX=null!=A?100*Number(z[1])/A:Number(z[1]),u.viewportAnchorY=null!=w?100*Number(z[2])/w:Number(z[2]),u.viewportAnchorUnits=D||null!=A?hf:0)}else u=null;u&&n.push(u)}c=ss(e.getElementsByTagName("body")[0]);c=r(c);for(e=c.next();!e.done;e=c.next())(e=ts(e.value,b.periodStart,g,h,k,l,n,f,!1,m))&&d.push(e)}return d};
724
+ function os(a){var b=[];if(!a)return b;for(var c=r(a.childNodes),d=c.next();!d.done;d=c.next())d=d.value,d.nodeType==Node.ELEMENT_NODE&&"br"!==d.nodeName&&(d=os(d),b=b.concat(d));b.length||b.push(a);return b}function ss(a){if(!a)return[];var b=[];a=r(a.childNodes);for(var c=a.next();!c.done;c=a.next())c=c.value,c instanceof Element&&(c.hasAttribute("begin")?b.push(c):b=b.concat(ss(c)));return b}
725
+ function us(a,b){for(var c="",d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,"br"==e.nodeName&&a.childNodes[0]!==e?c+="\n":e.childNodes&&0<e.childNodes.length?c+=us(e,b):b?(e=e.textContent.trim(),e=e.replace(/\s+/g," "),c+=e):c+=e.textContent;return c}
726
+ function ts(a,b,c,d,e,f,g,h,k,l){if(k&&"br"==a.nodeName)return a=new Se(0,0,""),a.spacer=!0,a;var m=/^[\s\n]*$/.test(a.textContent),n=a.nodeType==Node.ELEMENT_NODE&&!a.hasAttribute("begin")&&!a.hasAttribute("end");if(a.nodeType==Node.COMMENT_NODE||a.nodeType!=Node.ELEMENT_NODE||n&&m||n&&!k)return null;h="default"==(a.getAttribute("xml:space")||(h?"default":"preserve"));m=vs(a.getAttribute("begin"),c);n=vs(a.getAttribute("end"),c);var q=vs(a.getAttribute("dur"),c);null==n&&null!=q&&(n=m+q);if(!k&&
727
+ (null==m||null==n))throw new N(2,2,2001);m=k&&null==m?0:m+b;n=k&&null==n?0:n+b;q="";k=[];if(Array.from(a.childNodes).some(function(w){return w.nodeType==Node.TEXT_NODE&&/\S+/.test(w.textContent)}))q=us(a,h);else for(var u=r(a.childNodes),v=u.next();!v.done;v=u.next())if(v=ts(v.value,b,c,d,e,f,g,h,!0,l))v.startTime=v.startTime||m,v.endTime=v.endTime||n,k.push(v);b=new Se(m,n,q);b.nestedCues=k;l&&(b.cellResolution=l);if((f=ws(a,"region",f,"")[0])&&f.getAttribute("xml:id")){var A=f.getAttribute("xml:id");
728
+ b.region=g.filter(function(w){return w.id==A})[0]}d=ws(a,"backgroundImage",d,"#","http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt")[0];xs(b,a,f,d,e);return b}
729
+ function xs(a,b,c,d,e){"rtl"==ys(b,c,e,"direction")&&(a.direction="rtl");var f=ys(b,c,e,"writingMode");"tb"==f||"tblr"==f?a.writingMode="vertical-lr":"tbrl"==f?a.writingMode="vertical-rl":"rltb"==f||"rl"==f?a.direction="rtl":f&&(a.direction=Te);(f=ys(b,c,e,"textAlign"))?(a.positionAlign=zs[f],a.lineAlign=As[f],a.textAlign=df[f.toUpperCase()]):a.textAlign="start";if(f=ys(b,c,e,"displayAlign"))a.displayAlign=ef[f.toUpperCase()];if(f=ys(b,c,e,"color"))a.color=f;if(f=ys(b,c,e,"backgroundColor"))a.backgroundColor=
730
+ f;if(f=ys(b,c,e,"border"))a.border=f;if(f=ys(b,c,e,"fontFamily"))a.fontFamily=f;(f=ys(b,c,e,"fontWeight"))&&"bold"==f&&(a.fontWeight=700);(f=ys(b,c,e,"wrapOption"))&&"noWrap"==f&&(a.wrapLine=!1);(f=ys(b,c,e,"lineHeight"))&&f.match(Bs)&&(a.lineHeight=f);(f=ys(b,c,e,"fontSize"))&&(f.match(Bs)||f.match(Cs))&&(a.fontSize=f);if(f=ys(b,c,e,"fontStyle"))a.fontStyle=gf[f.toUpperCase()];if(d){f=d.getAttribute("imageType")||d.getAttribute("imagetype");var g=d.getAttribute("encoding");d=d.textContent.trim();
731
+ "PNG"==f&&"Base64"==g&&d&&(a.backgroundImage="data:image/png;base64,"+d)}(d=ys(b,c,e,"letterSpacing"))&&d.match(Bs)&&(a.letterSpacing=d);(d=ys(b,c,e,"linePadding"))&&d.match(Bs)&&(a.linePadding=d);if(d=ys(b,c,e,"opacity"))a.opacity=parseFloat(d);(c=rs(c,e,"textDecoration"))&&Ds(a,c);(b=Es(b,e,"textDecoration"))&&Ds(a,b)}
732
+ function Ds(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&Rc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
733
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rc(a.textDecoration,"overline")}}function ys(a,b,c,d){return(a=Es(a,c,d))?a:rs(b,c,d)}function rs(a,b,c){if(!a)return null;var d=os(a);d=r(d);for(var e=d.next();!e.done;e=d.next())if(e=El(e.value,"http://www.w3.org/ns/ttml#styling",c))return e;return Fs(a,b,c)}function Es(a,b,c){var d=El(a,"http://www.w3.org/ns/ttml#styling",c);return d?d:Fs(a,b,c)}
734
+ function Fs(a,b,c){a=ws(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=El(a[e],"urn:ebu:tt:style",c);f||(f=El(a[e],"http://www.w3.org/ns/ttml#styling",c));f||(f=Es(a[e],b,c));f&&(d=f)}return d}
735
+ function ws(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?El(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(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}
736
+ function vs(a,b){var c=null;if(Gs.test(a)){c=Gs.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else Hs.test(a)?c=Is(Hs,a):Js.test(a)?c=Is(Js,a):Ks.test(a)?(c=Ks.exec(a),c=Number(c[1])/b.frameRate):Ls.test(a)?(c=Ls.exec(a),c=Number(c[1])/b.g):Ms.test(a)&&(c=Is(Ms,a));return c}
737
+ function Is(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}L("shaka.text.TtmlTextParser",ms);ms.prototype.parseMedia=ms.prototype.parseMedia;ms.prototype.parseInit=ms.prototype.parseInit;function ns(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]))}
738
+ var ps=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Cs=/^(\d{1,2}(?:\.\d+)?|100)%$/,Bs=/^(\d+px|\d+em|\d*\.?\d+c)$/,qs=/^(\d+)px (\d+)px$/,Gs=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Hs=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Js=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Ks=/^(\d*(?:\.\d*)?)f$/,Ls=/^(\d*(?:\.\d*)?)t$/,Ms=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,As={left:Ze,center:"center",right:"end",start:Ze,end:"end"},zs=
739
+ {left:"line-left",center:"center",right:"line-right"};mf["application/ttml+xml"]=function(){return new ms};function Ns(){this.B=new ms}Ns.prototype.parseInit=function(a){var b=!1;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).box("minf",Ce).box("stbl",Ce).ea("stsd",Ee).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new N(2,2,2007);};Ns.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new ye).box("mdat",Fe(function(f){d=!0;e=e.concat(c.B.parseMedia(f,b))})).parse(a,!1);if(!d)throw new N(2,2,2007);return e};L("shaka.text.Mp4TtmlParser",Ns);Ns.prototype.parseMedia=Ns.prototype.parseMedia;
740
+ Ns.prototype.parseInit=Ns.prototype.parseInit;mf['application/mp4; codecs="stpp"']=function(){return new Ns};mf['application/mp4; codecs="stpp.ttml"']=function(){return new Ns};mf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Ns};mf['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Ns};function Os(){}Os.prototype.parseInit=function(){};
741
+ Os.prototype.parseMedia=function(a,b){var c=lc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new N(2,2,2E3);c=b.periodStart;if(d[0].includes("X-TIMESTAMP-MAP")){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Ps(new Qn(e[1]));if(null==c)throw new N(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-c}}f=
742
+ [];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new Qn(g);var h=new Ue;Tn(g);Rn(g);for(var k=Tn(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
743
+ (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");Rn(g);k=Tn(g)}f.push(h)}e=[];d=r(d.slice(1));for(g=d.next();!g.done;g=d.next()){l=g.value.split("\n");k=c;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0])g=null;else{g=null;l[0].includes("--\x3e")||(g=l[0],l.splice(0,1));h=new Qn(l[0]);m=Ps(h);var n=Sn(h,/[ \t]+--\x3e[ \t]+/g),q=Ps(h);if(null==m||null==n||null==q)throw new N(2,2,2001);l=new Se(m+k,q+k,l.slice(1).join("\n").trim());
744
+ Rn(h);for(k=Tn(h);k;)Qs(l,k,f),Rn(h),k=Tn(h);null!=g&&(l.id=g);g=l}g&&e.push(g)}return e};
745
+ function Qs(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=We:a.textAlign=df[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
746
+ b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Rs(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=ff[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Ye,a.line=Number(c[1]),c[2]&&(a.lineAlign=ff[c[2].toUpperCase()])}function Rs(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
747
+ function Ps(a){a=Sn(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)}L("shaka.text.VttTextParser",Os);Os.prototype.parseMedia=Os.prototype.parseMedia;Os.prototype.parseInit=Os.prototype.parseInit;mf["text/vtt"]=function(){return new Os};mf['text/vtt; codecs="vtt"']=function(){return new Os};mf['text/vtt; codecs="wvtt"']=function(){return new Os};function Ss(){this.g=null}Ss.prototype.parseInit=function(a){var b=this,c=!1;(new ye).box("moov",Ce).box("trak",Ce).box("mdia",Ce).ea("mdhd",function(d){0==d.version?(d.reader.skip(4),d.reader.skip(4),b.g=d.reader.T(),d.reader.skip(4)):(d.reader.skip(8),d.reader.skip(8),b.g=d.reader.T(),d.reader.skip(8));d.reader.skip(4)}).box("minf",Ce).box("stbl",Ce).ea("stsd",Ee).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new N(2,2,2008);if(!c)throw new N(2,2,2008);};
748
+ Ss.prototype.parseMedia=function(a,b){if(!this.g)throw new N(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new ye).box("moof",Ce).box("traf",Ce).ea("tfdt",function(E){g=!0;c=0==E.version?E.reader.T():E.reader.Ib()}).ea("tfhd",function(E){var F=E.flags;E=E.reader;E.skip(4);F&1&&E.skip(8);F&2&&E.skip(4);l=F&8?E.T():null}).ea("trun",function(E){h=!0;var F=E.version,I=E.flags;E=E.reader;var G=E.T();I&1&&E.skip(4);I&4&&E.skip(4);var J=[];G=r(fb(G));for(var K=G.next();!K.done;K=G.next())K={duration:null,
749
+ sampleSize:null,ie:null},I&256&&(K.duration=E.T()),I&512&&(K.sampleSize=E.T()),I&1024&&E.skip(4),I&2048&&(K.ie=0==F?E.T():E.Oe()),J.push(K);d=J}).box("mdat",Fe(function(E){k=!0;e=E})).parse(a,!1);if(!k&&!g&&!h)throw new N(2,2,2008);for(var m=c,n=new ve(e,0),q=r(d),u=q.next();!u.done;u=q.next()){u=u.value;var v=u.duration||l,A=u.ie?c+u.ie:m;m=A+(v||0);var w=0;do{var z=n.T();w+=z;var D=n.T(),B=null;"vttc"==Ge(D)?8<z&&(B=n.Hb(z-8)):n.skip(z-8);v&&B&&(z=Ts(B,b.periodStart+A/this.g,b.periodStart+m/this.g),
750
+ f.push(z))}while(u.sampleSize&&w<u.sampleSize)}return f.filter(Eb)};function Ts(a,b,c){var d,e,f;(new ye).box("payl",Fe(function(g){d=lc(g)})).box("iden",Fe(function(g){e=lc(g)})).box("sttg",Fe(function(g){f=lc(g)})).parse(a);return d?Us(d,e,f,b,c):null}function Us(a,b,c,d,e){a=new Se(d,e,a);b&&(a.id=b);if(c)for(b=new Qn(c),c=Tn(b);c;)Qs(a,c,[]),Rn(b),c=Tn(b);return a}L("shaka.text.Mp4VttParser",Ss);Ss.prototype.parseMedia=Ss.prototype.parseMedia;Ss.prototype.parseInit=Ss.prototype.parseInit;
751
+ mf['application/mp4; codecs="wvtt"']=function(){return new Ss};/*
750
752
  @license
751
753
  EME Encryption Scheme Polyfill
752
754
  Copyright 2019 Google LLC
753
755
  SPDX-License-Identifier: Apache-2.0
754
756
  */
755
- function Qs(){}var Rs;function Ss(){Rs?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Rs=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Ts):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
756
- function Ts(a,b){var c=this,d;return G(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),t(e,Rs.call(c,a,b),2);d=e.h;if(Us(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Rs,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Vs;return e["return"](Vs.call(c,
757
+ function Vs(){}var Ws;function Xs(){Ws?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Ws=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Ys):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
758
+ function Ys(a,b){var c=this,d;return H(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),t(e,Ws.call(c,a,b),2);d=e.h;if(Zs(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Ws,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=$s;return e["return"]($s.call(c,
757
759
  a,b))})}
758
- function Vs(a,b){var c=this,d,e,f,g,h,k,l,m,n,q;return G(function(u){if(1==u.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Ws(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Xs(h.videoCapabilities,d),l=Xs(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."),
759
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return t(u,Rs.call(c,a,e),2)}q=u.h;return u["return"](new Ys(q,d))})}function Xs(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}J("EmeEncryptionSchemePolyfill",Qs);Qs.install=Ss;function Zs(){}var $s;
760
- function at(){$s?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?($s=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=bt):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
761
- function bt(a){var b=this,c,d;return G(function(e){if(1==e.g)return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t(e,$s.call(b,a),2);c=e.h;if(!a.keySystemConfiguration)return e["return"](c);if((d=c.keySystemAccess)&&Us(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=$s,e["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
762
- navigator.mediaCapabilities.decodingInfo=ct;return e["return"](ct.call(b,a))})}
763
- function ct(a){var b=this,c,d,e,f,g,h,k,l,m;return G(function(n){switch(n.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=Ws(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?n["return"](h):t(n,$s.call(b,a),2);case 2:k=n.h;if(k.keySystemAccess){k.keySystemAccess=
764
- new Ys(k.keySystemAccess,c);n.C(3);break}if(!a.keySystemConfiguration){n.C(3);break}var q=a.keySystemConfiguration,u=[],v=[];q.audio&&u.push({robustness:q.audio.robustness||"",contentType:a.audio.contentType});q.video&&v.push({robustness:q.video.robustness||"",contentType:a.video.contentType});q={initDataTypes:q.initDataType?[q.initDataType]:[],distinctiveIdentifier:q.distinctiveIdentifier,persistentState:q.persistentState,sessionTypes:q.sessionTypes};u.length&&(q.audioCapabilities=u);v.length&&(q.videoCapabilities=
765
- v);l=q;m=k;return t(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}J("McEncryptionSchemePolyfill",Zs);Zs.install=at;function Ys(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
766
- Ys.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};Ys.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
767
- function Ws(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||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 Us(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}function dt(){}
768
- function Oq(){Ss();at()}J("EncryptionSchemePolyfills",dt);dt.install=Oq;"undefined"!==typeof module&&module.exports&&(module.exports=dt);/*
760
+ function $s(a,b){var c=this,d,e,f,g,h,k,l,m,n,q;return H(function(u){if(1==u.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=at(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=bt(h.videoCapabilities,d),l=bt(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."),
761
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return t(u,Ws.call(c,a,e),2)}q=u.h;return u["return"](new ct(q,d))})}function bt(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}L("EmeEncryptionSchemePolyfill",Vs);Vs.install=Xs;function dt(){}var et;
762
+ function ft(){et?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(et=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=gt):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
763
+ function gt(a){var b=this,c,d;return H(function(e){if(1==e.g)return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t(e,et.call(b,a),2);c=e.h;if(!a.keySystemConfiguration)return e["return"](c);if((d=c.keySystemAccess)&&Zs(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=et,e["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
764
+ navigator.mediaCapabilities.decodingInfo=ht;return e["return"](ht.call(b,a))})}
765
+ function ht(a){var b=this,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.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=at(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?n["return"](h):t(n,et.call(b,a),2);case 2:k=n.h;if(k.keySystemAccess){k.keySystemAccess=
766
+ new ct(k.keySystemAccess,c);n.C(3);break}if(!a.keySystemConfiguration){n.C(3);break}var q=a.keySystemConfiguration,u=[],v=[];q.audio&&u.push({robustness:q.audio.robustness||"",contentType:a.audio.contentType});q.video&&v.push({robustness:q.video.robustness||"",contentType:a.video.contentType});q={initDataTypes:q.initDataType?[q.initDataType]:[],distinctiveIdentifier:q.distinctiveIdentifier,persistentState:q.persistentState,sessionTypes:q.sessionTypes};u.length&&(q.audioCapabilities=u);v.length&&(q.videoCapabilities=
767
+ v);l=q;m=k;return t(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}L("McEncryptionSchemePolyfill",dt);dt.install=ft;function ct(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
768
+ ct.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};ct.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
769
+ function at(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||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 Zs(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}function it(){}
770
+ function Tq(){Xs();ft()}L("EncryptionSchemePolyfills",it);it.install=Tq;"undefined"!==typeof module&&module.exports&&(module.exports=it);/*
769
771
  @license
770
772
  Copyright 2013 Ali Al Dallal
771
773
 
@@ -789,7 +791,7 @@ function Oq(){Ss();at()}J("EncryptionSchemePolyfills",dt);dt.install=Oq;"undefin
789
791
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
790
792
  SOFTWARE.
791
793
  */
792
- for(var et={ach:{o:"Lwo",s:"Acholi"},ady:{o:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",s:"Adyghe"},af:{o:"Afrikaans",s:"Afrikaans"},"af-NA":{o:"Afrikaans (Namibia)",s:"Afrikaans (Namibia)"},"af-ZA":{o:"Afrikaans (South Africa)",s:"Afrikaans (South Africa)"},ak:{o:"T\u0255\u0265i",s:"Akan"},ar:{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-AR":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-MA":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic (Morocco)"},
794
+ for(var jt={ach:{o:"Lwo",s:"Acholi"},ady:{o:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",s:"Adyghe"},af:{o:"Afrikaans",s:"Afrikaans"},"af-NA":{o:"Afrikaans (Namibia)",s:"Afrikaans (Namibia)"},"af-ZA":{o:"Afrikaans (South Africa)",s:"Afrikaans (South Africa)"},ak:{o:"T\u0255\u0265i",s:"Akan"},ar:{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-AR":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic"},"ar-MA":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",s:"Arabic (Morocco)"},
793
795
  "ar-SA":{o:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",s:"Arabic (Saudi Arabia)"},"ay-BO":{o:"Aymar aru",s:"Aymara"},az:{o:"Az\u0259rbaycan dili",s:"Azerbaijani"},"az-AZ":{o:"Az\u0259rbaycan dili",s:"Azerbaijani"},"be-BY":{o:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",s:"Belarusian"},bg:{o:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",s:"Bulgarian"},"bg-BG":{o:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
794
796
  s:"Bulgarian"},bn:{o:"\u09ac\u09be\u0982\u09b2\u09be",s:"Bengali"},"bn-IN":{o:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",s:"Bengali (India)"},"bn-BD":{o:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",s:"Bengali (Bangladesh)"},"bs-BA":{o:"Bosanski",s:"Bosnian"},ca:{o:"Catal\u00e0",s:"Catalan"},"ca-ES":{o:"Catal\u00e0",s:"Catalan"},cak:{o:"Maya Kaqchikel",s:"Kaqchikel"},"ck-US":{o:"\u13e3\u13b3\u13a9 (tsalagi)",s:"Cherokee"},cs:{o:"\u010ce\u0161tina",
795
797
  s:"Czech"},"cs-CZ":{o:"\u010ce\u0161tina",s:"Czech"},cy:{o:"Cymraeg",s:"Welsh"},"cy-GB":{o:"Cymraeg",s:"Welsh"},da:{o:"Dansk",s:"Danish"},"da-DK":{o:"Dansk",s:"Danish"},de:{o:"Deutsch",s:"German"},"de-AT":{o:"Deutsch (\u00d6sterreich)",s:"German (Austria)"},"de-DE":{o:"Deutsch (Deutschland)",s:"German (Germany)"},"de-CH":{o:"Deutsch (Schweiz)",s:"German (Switzerland)"},dsb:{o:"Dolnoserb\u0161\u0107ina",s:"Lower Sorbian"},el:{o:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",s:"Greek"},"el-GR":{o:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -810,164 +812,164 @@ s:"Slovak"},"sk-SK":{o:"Sloven\u010dina (Slovakia)",s:"Slovak (Slovakia)"},sl:{o
810
812
  sw:{o:"Kiswahili",s:"Swahili"},"sw-KE":{o:"Kiswahili",s:"Swahili (Kenya)"},ta:{o:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",s:"Tamil"},"ta-IN":{o:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",s:"Tamil"},te:{o:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",s:"Telugu"},"te-IN":{o:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",s:"Telugu"},tg:{o:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",s:"Tajik"},"tg-TJ":{o:"\u0442\u043e\u04b7\u0438\u043a\u04e3",s:"Tajik"},th:{o:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
811
813
  s:"Thai"},"th-TH":{o:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",s:"Thai (Thailand)"},tl:{o:"Filipino",s:"Filipino"},"tl-PH":{o:"Filipino",s:"Filipino"},tlh:{o:"tlhIngan-Hol",s:"Klingon"},tr:{o:"T\u00fcrk\u00e7e",s:"Turkish"},"tr-TR":{o:"T\u00fcrk\u00e7e",s:"Turkish"},"tt-RU":{o:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",s:"Tatar"},uk:{o:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",s:"Ukrainian"},"uk-UA":{o:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
812
814
  s:"Ukrainian"},ur:{o:"\u0627\u0631\u062f\u0648",s:"Urdu"},"ur-PK":{o:"\u0627\u0631\u062f\u0648",s:"Urdu"},uz:{o:"O'zbek",s:"Uzbek"},"uz-UZ":{o:"O'zbek",s:"Uzbek"},vi:{o:"Ti\u1ebfng Vi\u1ec7t",s:"Vietnamese"},"vi-VN":{o:"Ti\u1ebfng Vi\u1ec7t",s:"Vietnamese"},"xh-ZA":{o:"isiXhosa",s:"Xhosa"},yi:{o:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",s:"Yiddish"},"yi-DE":{o:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",s:"Yiddish (German)"},zh:{o:"\u4e2d\u6587",s:"Chinese"},"zh-HANS":{o:"\u4e2d\u6587\u7b80\u4f53",
813
- s:"Chinese Simplified"},"zh-HANT":{o:"\u4e2d\u6587\u7e41\u9ad4",s:"Chinese Traditional"},"zh-CN":{o:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",s:"Chinese Simplified (China)"},"zh-HK":{o:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",s:"Chinese Traditional (Hong Kong)"},"zh-SG":{o:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",s:"Chinese Simplified (Singapore)"},"zh-TW":{o:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",s:"Chinese Traditional (Taiwan)"},"zu-ZA":{o:"isiZulu",s:"Zulu"}},ft=r(Object.keys(et)),gt=ft.next();!gt.done;gt=
814
- ft.next()){var ht=gt.value;et[ht.toLowerCase()]=et[ht]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new kd;this.localization=this.controls.Ya;this.player=this.controls.Wb();this.video=this.controls.xc();this.adManager=this.player.Wc();this.ad=b.getAd();this.eventManager.m(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null})}
815
- X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function it(a){return jt(a,"shaka-back-to-overflow-button")}function jt(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function kt(a){a&&(a=jt(a,"shaka-chosen-item"))&&a.parentElement.focus()}function lt(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.setAttribute("aria-hidden","true");return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
816
- function mt(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function nt(a,b){X.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new O(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=mt(e-d,!1)+" / "+mt(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=
817
- ""))});this.eventManager.m(this.localization,"locale-updated",function(){});this.eventManager.m(this.localization,"locale-changed",function(){});this.eventManager.m(this.adManager,"ad-started",function(){c.g.Aa();c.g.ha(.5)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Aa(),this.g.ha(.5))}pa(nt,X);nt.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};J("shaka.ui.AdCounter",nt);function ot(a,b){X.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.m(this.localization,"locale-updated",function(){c.ad&&pt(c)});this.eventManager.m(this.localization,"locale-changed",function(){c.ad&&pt(c)});this.eventManager.m(this.adManager,"ad-started",function(){pt(c)});this.eventManager.m(this.adManager,
818
- "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&pt(this)}pa(ot,X);function pt(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}J("shaka.ui.AdPosition",ot);function qt(a,b){X.call(this,a,b);var c=this;this.button=ei();this.parent.appendChild(this.button);this.eventManager.m(this.localization,"locale-updated",function(){c.g()});this.eventManager.m(this.localization,"locale-changed",function(){c.g()});this.eventManager.m(this.video,"play",function(){c.g();c.h()});this.eventManager.m(this.video,"pause",function(){c.g();c.h()});this.eventManager.m(this.video,"seeking",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-paused",function(){c.g();
819
- c.h()});this.eventManager.m(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.m(this.button,"click",function(){c.ad?rt(c.controls):st(c.controls)});this.ad&&(this.g(),this.h())}pa(qt,X);qt.prototype.isPaused=function(){if(this.ad)var a=this.ad.isPaused();else a=this.controls,a=a.g.paused&&!a.aa;return a};qt.prototype.g=function(){};qt.prototype.h=function(){};J("shaka.ui.PlayButton",qt);function tt(a,b){qt.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(tt,qt);tt.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};tt.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};J("shaka.ui.BigPlayButton",tt);function ut(a,b,c,d){X.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new O(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);
820
- this.parent.appendChild(this.container);this.eventManager.m(this.bar,"mousedown",function(){e.controls.Cb()&&(e.g=!0,e.onChangeStart())});this.eventManager.m(this.bar,"touchstart",function(f){e.controls.Cb()&&(e.g=!0,vt(e,f),e.onChangeStart())});this.eventManager.m(this.bar,"input",function(){e.onChange()});this.eventManager.m(this.bar,"touchmove",function(f){e.g&&(vt(e,f),e.onChange())});this.eventManager.m(this.bar,"touchend",function(f){e.g&&(e.g=!1,vt(e,f),e.onChangeEnd())});this.eventManager.m(this.bar,
821
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}pa(ut,X);p=ut.prototype;p.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.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.U(.5)};p.getValue=function(){return parseFloat(this.bar.value)};
822
- p.setValue=function(a){this.g||(this.bar.value=a)};function vt(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}J("shaka.ui.RangeElement",ut);ut.prototype.setValue=ut.prototype.setValue;ut.prototype.getValue=ut.prototype.getValue;ut.prototype.changeTo=ut.prototype.changeTo;ut.prototype.onChangeEnd=ut.prototype.onChangeEnd;ut.prototype.onChange=ut.prototype.onChange;
823
- ut.prototype.onChangeStart=ut.prototype.onChangeStart;ut.prototype.setRange=ut.prototype.setRange;function wt(a,b){ut.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.v=this.controls.v;this.h=new O(function(){c.video.currentTime=c.getValue()});this.u=new O(function(){xt(c)});this.A=!1;this.i=[];this.eventManager.m(this.localization,"locale-updated",function(){return yt(c)});this.eventManager.m(this.localization,
824
- "locale-changed",function(){return yt(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.container,!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){zt(c)&&Y(c.container,!0)});this.eventManager.m(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;At(c)});this.eventManager.m(this.player,"unloading",function(){c.i=[];At(c)});this.setValue(this.video.currentTime);Bt(this);yt(this);this.ad&&Y(this.container,!1)}pa(wt,ut);
825
- wt.prototype.release=function(){this.h&&(this.h.stop(),this.h=null,this.u.stop(),this.u=null);ut.prototype.release.call(this)};wt.prototype.onChangeStart=function(){this.A=!this.video.paused;this.controls.$d(!0);this.video.pause()};wt.prototype.onChange=function(){this.video.duration&&(Bt(this),this.h.U(.125))};wt.prototype.onChangeEnd=function(){this.h.Aa();this.controls.$d(!1);this.A&&this.video.play()};
826
- function Bt(a){var b=a.v.seekBarColors,c=a.getValue(),d=a.video.buffered.length,e=d?a.video.buffered.start(0):0,f=d?a.video.buffered.end(d-1):0,g=a.player.Oa(),h=g.end-g.start;a.setRange(g.start,g.end);zt(a)?(Y(a.container,!0),0==d?a.container.style.background=b.base:(d=(Math.max(e,g.start)-g.start)/h||0,f=(Math.min(f,g.end)-g.start)/h||0,c=(Math.min(Math.max(c,g.start),g.end)-g.start)/h||0,a.container.style.background="linear-gradient("+["to right",(a.v.showUnbufferedStart?b.base:b.played)+" "+100*
815
+ s:"Chinese Simplified"},"zh-HANT":{o:"\u4e2d\u6587\u7e41\u9ad4",s:"Chinese Traditional"},"zh-CN":{o:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",s:"Chinese Simplified (China)"},"zh-HK":{o:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",s:"Chinese Traditional (Hong Kong)"},"zh-SG":{o:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",s:"Chinese Simplified (Singapore)"},"zh-TW":{o:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",s:"Chinese Traditional (Taiwan)"},"zu-ZA":{o:"isiZulu",s:"Zulu"}},kt=r(Object.keys(jt)),lt=kt.next();!lt.done;lt=
816
+ kt.next()){var mt=lt.value;jt[mt.toLowerCase()]=jt[mt]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new jd;this.localization=this.controls.$a;this.player=this.controls.Yb();this.video=this.controls.zc();this.adManager=this.player.Yc();this.ad=b.getAd();this.eventManager.m(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null})}
817
+ X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};L("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function nt(a){return ot(a,"shaka-back-to-overflow-button")}function ot(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function pt(a){a&&(a=ot(a,"shaka-chosen-item"))&&a.parentElement.focus()}function qt(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.setAttribute("aria-hidden","true");return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
818
+ function rt(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function st(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new O(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=rt(e-d,!1)+" / "+rt(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=
819
+ ""))});this.eventManager.m(this.localization,"locale-updated",function(){});this.eventManager.m(this.localization,"locale-changed",function(){});this.eventManager.m(this.adManager,"ad-started",function(){c.g.Ba();c.g.ia(.5)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ba(),this.g.ia(.5))}pa(st,X);st.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};L("shaka.ui.AdCounter",st);function tt(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.m(this.localization,"locale-updated",function(){c.ad&&ut(c)});this.eventManager.m(this.localization,"locale-changed",function(){c.ad&&ut(c)});this.eventManager.m(this.adManager,"ad-started",function(){ut(c)});this.eventManager.m(this.adManager,
820
+ "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&ut(this)}pa(tt,X);function ut(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}L("shaka.ui.AdPosition",tt);function vt(a,b){X.call(this,a,b);var c=this;this.button=di();this.parent.appendChild(this.button);this.eventManager.m(this.localization,"locale-updated",function(){c.g()});this.eventManager.m(this.localization,"locale-changed",function(){c.g()});this.eventManager.m(this.video,"play",function(){c.g();c.h()});this.eventManager.m(this.video,"pause",function(){c.g();c.h()});this.eventManager.m(this.video,"seeking",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-paused",function(){c.g();
821
+ c.h()});this.eventManager.m(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.m(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.m(this.button,"click",function(){c.ad?wt(c.controls):xt(c.controls)});this.ad&&(this.g(),this.h())}pa(vt,X);vt.prototype.isPaused=function(){if(this.ad)var a=this.ad.isPaused();else a=this.controls,a=a.g.paused&&!a.ba;return a};vt.prototype.g=function(){};vt.prototype.h=function(){};L("shaka.ui.PlayButton",vt);function yt(a,b){vt.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(yt,vt);yt.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};yt.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",yt);function zt(a,b,c,d){X.call(this,a,b);var e=this;this.container=S("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new O(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);
822
+ this.parent.appendChild(this.container);this.eventManager.m(this.bar,"mousedown",function(){e.controls.Eb()&&(e.g=!0,e.onChangeStart())});this.eventManager.m(this.bar,"touchstart",function(f){e.controls.Eb()&&(e.g=!0,At(e,f),e.onChangeStart())});this.eventManager.m(this.bar,"input",function(){e.onChange()});this.eventManager.m(this.bar,"touchmove",function(f){e.g&&(At(e,f),e.onChange())});this.eventManager.m(this.bar,"touchend",function(f){e.g&&(e.g=!1,At(e,f),e.onChangeEnd())});this.eventManager.m(this.bar,
823
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}pa(zt,X);p=zt.prototype;p.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.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.V(.5)};p.getValue=function(){return parseFloat(this.bar.value)};
824
+ p.setValue=function(a){this.g||(this.bar.value=a)};function At(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}L("shaka.ui.RangeElement",zt);zt.prototype.setValue=zt.prototype.setValue;zt.prototype.getValue=zt.prototype.getValue;zt.prototype.changeTo=zt.prototype.changeTo;zt.prototype.onChangeEnd=zt.prototype.onChangeEnd;zt.prototype.onChange=zt.prototype.onChange;
825
+ zt.prototype.onChangeStart=zt.prototype.onChangeStart;zt.prototype.setRange=zt.prototype.setRange;function Bt(a,b){zt.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.v=this.controls.v;this.h=new O(function(){c.video.currentTime=c.getValue()});this.u=new O(function(){Ct(c)});this.A=!1;this.i=[];this.eventManager.m(this.localization,"locale-updated",function(){return Dt(c)});this.eventManager.m(this.localization,
826
+ "locale-changed",function(){return Dt(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.container,!1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Et(c)&&Y(c.container,!0)});this.eventManager.m(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Ft(c)});this.eventManager.m(this.player,"unloading",function(){c.i=[];Ft(c)});this.setValue(this.video.currentTime);Gt(this);Dt(this);this.ad&&Y(this.container,!1)}pa(Bt,zt);
827
+ Bt.prototype.release=function(){this.h&&(this.h.stop(),this.h=null,this.u.stop(),this.u=null);zt.prototype.release.call(this)};Bt.prototype.onChangeStart=function(){this.A=!this.video.paused;this.controls.be(!0);this.video.pause()};Bt.prototype.onChange=function(){this.video.duration&&(Gt(this),this.h.V(.125))};Bt.prototype.onChangeEnd=function(){this.h.Ba();this.controls.be(!1);this.A&&this.video.play()};
828
+ function Gt(a){var b=a.v.seekBarColors,c=a.getValue(),d=a.video.buffered.length,e=d?a.video.buffered.start(0):0,f=d?a.video.buffered.end(d-1):0,g=a.player.Pa(),h=g.end-g.start;a.setRange(g.start,g.end);Et(a)?(Y(a.container,!0),0==d?a.container.style.background=b.base:(d=(Math.max(e,g.start)-g.start)/h||0,f=(Math.min(f,g.end)-g.start)/h||0,c=(Math.min(Math.max(c,g.start),g.end)-g.start)/h||0,a.container.style.background="linear-gradient("+["to right",(a.v.showUnbufferedStart?b.base:b.played)+" "+100*
827
829
  d+"%",b.played+" "+100*d+"%",b.played+" "+100*c+"%",b.buffered+" "+100*c+"%",b.buffered+" "+100*f+"%",b.base+" "+100*f+"%"].join()+")")):Y(a.container,!1)}
828
- function xt(a){if(a.i.length){for(var b=a.player.Oa(),c=b.end-b.start,d=["to right"],e=[],f=a.v.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
829
- 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 At(a){xt(a);var b=a.player.Oa();b=b.end-b.start;a.player.V()&&5<b&&a.u.ha(1)}function zt(a){var b=a.player.Oa();b=b.end-b.start;return a.player.V()&&5>b?!1:null==a.ad}function yt(a){a.bar.setAttribute("aria-label",a.localization.resolve("SEEK"))}J("shaka.ui.SeekBar",wt);function Z(a,b,c,d){db.call(this);var e=this;this.W=!0;this.v=d;this.A=new Vk(c,a,this.v.castReceiverAppId);this.jb=!0;this.g=this.A.xc();this.B=c;this.D=this.A.Wb();this.Qa=a;this.j=b;this.ib=this.D.Wc();this.l=this.u=null;this.aa=!1;this.H=[];this.Rb=[];this.tb=!1;this.ia=new O(function(){e.j.style.cursor="none";e.tb=!1;Ct(e)});this.ra=new O(function(){e.i.removeAttribute("shown");e.J.U(2)});this.J=new O(function(){for(var f=r(e.H),g=f.next();!g.done;g=f.next())Y(g.value,!1)});this.Za=new O(function(){e.Cb()&&
830
- Dt(e)});this.K=null;this.R=[];this.Ya=Et();this.h=new kd;this.configure(this.v);Ft(this);this.Ca=new Set;Gt(this);this.Za.ha(.125);this.h.m(this.Ya,"locale-changed",function(f){e.ib.setLocale(f.locales[0])})}pa(Z,db);p=Z.prototype;
831
- p.destroy=function(){var a=this;return G(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.C(2);break}return t(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.ia&&(a.ia.stop(),a.ia=null);a.ra&&(a.ra.stop(),a.ra=null);a.J&&(a.J.stop(),a.J=null);a.Za&&(a.Za.stop(),a.Za=null);Ht(a);a.i&&(a.j.removeChild(a.i),a.i=null);if(!a.A){b.C(4);break}return t(b,a.A.destroy(),5);case 5:a.A=null;case 4:if(!a.Qa){b.C(6);break}return t(b,a.Qa.destroy(),7);case 7:a.Qa=
832
- null;case 6:a.D=null,a.B=null,a.g=null,a.Ya=null,a.Ca.clear(),x(b)}})};function Ht(a){for(var b=r(a.R),c=b.next();!c.done;c=b.next())c.value.release();a.R=[]}function It(a,b){Jt.set(a,b)}p.df=function(a){this.jb=a;Gt(this)};p.Sf=function(){Kt(this)};
833
- p.configure=function(a){this.v=a;this.A.re(a.castReceiverAppId);this.l&&(this.l=null);this.qb&&(this.qb=null);this.i?(fi(this.i),Ht(this)):(Lt(this),this.$=R("div"),this.$.classList.add("shaka-client-side-ad-container"),Y(this.$,!1),this.j.appendChild(this.$));Mt(this);Kt(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.m(b,"click",c);this.h.m(b,"dblclick",c)}};
834
- p.Xd=function(a){(this.W=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Kt(this)};p.Se=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Xd(!1)};p.getAd=function(){return this.u};p.nf=function(){return this.A};p.zf=function(){return this.Ya};p.Nf=function(){return this.j};p.xc=function(){return this.g};p.yf=function(){return this.B};p.Wb=function(){return this.D};p.xf=function(){return this.Qa};p.sf=function(){return this.i};
835
- p.If=function(){return this.sb};p.pf=function(){return this.$};p.qf=function(){return this.v};p.Rf=function(){return this.aa};p.$d=function(a){this.aa=a};p.Pf=function(){return this.jb};p.ye=function(){return this.l?this.l.getValue():this.g.currentTime};p.Te=function(a){this.K=a};p.Rc=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};p.zc=function(){this.J.Aa()};
836
- p.ge=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(document.fullscreenElement)return t(c,document.exitFullscreen(),0);y(c,4);if(!document.pictureInPictureElement){c.C(6);break}return t(c,document.exitPictureInPicture(),6);case 6:return t(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:ua(c,0);break;case 4:b=D(c),a.dispatchEvent(new L("error",{detail:b})),c.C(0)}})};p.Ve=function(){Y(this.N,!0);Y(this.$,!0);this.i.setAttribute("ad-active","true")};
837
- p.Ae=function(){Y(this.N,!1);Y(this.$,!1);this.i.removeAttribute("ad-active")};function st(a){a.W&&a.g.duration&&(a.D.oe(),a.g.paused&&!a.aa?a.g.play():a.g.pause())}function rt(a){a.u&&a.u.isPaused()?a.u.play():a.u&&a.u.pause()}
838
- function Mt(a){a.j.classList.add("shaka-video-container");a.B.classList.add("shaka-video");var b=R("div");b.classList.add("shaka-scrim-container");a.i.appendChild(b);a.v.addBigPlayButton&&(b=R("div"),b.classList.add("shaka-play-button-container"),a.i.appendChild(b),a.qb=new tt(b,a),a.R.push(a.qb));if(!a.qa){a.qa=R("div");a.qa.classList.add("shaka-spinner-container");a.j.appendChild(a.qa);var c=R("div");c.classList.add("shaka-spinner");a.qa.appendChild(c);b=document.createElementNS("http://www.w3.org/2000/svg",
839
- "svg");b.setAttribute("class","shaka-spinner-svg");b.setAttribute("viewBox","0 0 30 30");c.appendChild(b);c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("class","shaka-spinner-path");c.setAttribute("cx","15");c.setAttribute("cy","15");c.setAttribute("r","14.5");c.setAttribute("fill","none");c.setAttribute("stroke-width","1");c.setAttribute("stroke-miterlimit","10");b.appendChild(c)}a.sb=R("div");a.sb.classList.add("shaka-server-side-ad-container");a.i.appendChild(a.sb);
840
- Nt(a);a.H=Array.from(a.j.getElementsByClassName("shaka-settings-menu"));a.H.push.apply(a.H,ia(Array.from(a.j.getElementsByClassName("shaka-overflow-menu"))));if(a.v.addSeekBar)a.l=new wt(a.P,a),a.R.push(a.l);else for(b=r(a.H),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.Rb=Array.from(a.j.getElementsByClassName("shaka-show-controls-on-mouse-over"))}
841
- function Lt(a){a.i=R("div");a.i.classList.add("shaka-controls-container");a.j.appendChild(a.i);a.j.setAttribute("shaka-controls","true");a.h.m(a.i,"touchstart",function(b){a.g.duration&&(a.Cb()?a.K=Date.now():(Ot(a,b),b.preventDefault()))},{passive:!1});a.h.m(a.i,"click",function(){a.W&&(a.Rc()?a.J.Aa():a.u?rt(a):st(a))});a.h.m(a.i,"dblclick",function(){a.v.doubleClickForFullscreen&&document.fullscreenEnabled&&a.ge()})}
842
- function Pt(a){a.N=R("div");a.N.classList.add("shaka-ad-controls");Y(a.N,null!=a.u);a.P.appendChild(a.N);var b=new ot(a.N,a);a.R.push(b);b=new nt(a.N,a);a.R.push(b)}
843
- function Nt(a){a.P=R("div");a.P.classList.add("shaka-bottom-controls");a.P.classList.add("shaka-no-propagation");a.i.appendChild(a.P);a.h.m(a.P,"click",function(){a.zc()});Pt(a);a.Ra=R("div");a.Ra.classList.add("shaka-controls-button-panel");a.Ra.classList.add("shaka-show-controls-on-mouse-over");a.P.appendChild(a.Ra);for(var b={},c=r(a.v.controlPanelElements),d=c.next();!d.done;b={hc:b.hc},d=c.next())d=d.value,Jt.get(d)?(d=Jt.get(d).create(a.Ra,a),"function"!=typeof d.release&&(Cb("shaka.extern.IUIElement",
844
- "Please update UI elements to have a release() method."),b.hc=d,b.hc.release=function(e){return function(){e.hc.destroy&&e.hc.destroy()}}(b)),a.R.push(d)):Qa("Unrecognized control panel element requested:",d)}
845
- function Ft(a){a.h.m(a.D,"buffering",function(){a.W&&Y(a.qa,a.D.Bc())});a.W&&Y(a.qa,a.D.Bc());a.h.m(window,"keydown",function(b){Qt(a,b)});a.h.m(window,"click",function(){return a.zc()});a.h.m(a.g,"play",function(){Kt(a)});a.h.m(a.g,"pause",function(){Kt(a)});a.h.m(a.g,"ended",function(){Kt(a)});a.h.m(a.j,"mousemove",function(b){Ot(a,b)});a.h.m(a.j,"touchmove",function(b){Ot(a,b)},{passive:!0});a.h.m(a.j,"touchend",function(b){Ot(a,b)},{passive:!0});a.h.m(a.j,"mouseleave",function(){a.K||a.ia.Aa()});
846
- a.h.m(a.A,"caststatuschanged",function(){Gt(a)});a.h.m(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.i.contains(c)&&Ot(a,b);if(a.v.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.l&&!d&&(b.preventDefault(),Rt(a,a.l.getValue()-5));break;case "ArrowRight":a.l&&!d&&(b.preventDefault(),Rt(a,a.l.getValue()+5));break;case "Home":a.l&&Rt(a,a.D.Oa().start);break;
847
- case "End":a.l&&Rt(a,a.D.Oa().end);break;case " ":e&&(a.u?rt(a):st(a))}});a.h.m(a.j,"keyup",function(b){a.Ca["delete"](b.key)});a.h.m(a.ib,"ad-started",function(b){a.u=b.ad;a.Ve()});a.h.m(a.ib,"ad-stopped",function(){a.u=null;a.Ae()});screen.orientation&&a.h.m(screen.orientation,"change",function(){return G(function(b){return t(b,St(a),0)})});a.h.m(document,"fullscreenchange",function(){a.u&&a.u.resize(a.B.offsetWidth,a.B.offsetHeight)})}
848
- function St(a){return G(function(b){return a.g&&0!=a.g.readyState&&!a.A.ma()&&a.v.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?t(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?t(b,document.exitFullscreen(),0):b.C(0):b["return"]()})}
849
- function Ot(a,b){"mousemove"==b.type&&(a.i.classList.remove("shaka-keyboard-navigation"),Ct(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.K=Date.now():a.K+1E3<Date.now()&&(a.K=null);a.K&&"mousemove"==b.type||(a.j.style.cursor="",a.tb=!0,a.J.stop(),a.Cb()||(Dt(a),Ct(a)),a.ia.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.K||a.ia.U(3))}function Tt(a){return window.matchMedia("hover: hover").matches?a.Rb.some(function(b){return b.matches(":hover")}):!1}
850
- function Ct(a){var b=a.u?a.u.isPaused():!1,c=a.g.paused&&!a.aa,d=a.i.classList.contains("shaka-keyboard-navigation");b||!a.u&&c||a.tb||d||Tt(a)?(Dt(a),a.i.setAttribute("shown","true"),a.ra.stop()):a.ra.U(a.v.fadeDelay)}function Gt(a){var b=a.A.ma();a.dispatchEvent(new L("caststatuschanged",{Wf:b}));b?a.i.setAttribute("casting","true"):a.i.removeAttribute("casting")}function Kt(a){a.g.ended&&!a.g.paused&&a.g.pause();Ct(a)}
851
- p.Cb=function(){return this.W?null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"):!1};function Rt(a,b){a.l.changeTo(b);a.Cb()&&Dt(a)}
852
- function Dt(a){if(a.l)if(a.l.setValue(a.g.currentTime),Bt(a.l),a.l.container.classList.contains("shaka-hidden")){var b=r(a.H);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position")}else{b=r(a.H);for(var c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position")}a.dispatchEvent(new L("timeandseekrangeupdated"))}
853
- function Qt(a,b){a.Ca.add(b.key);var c=a.Rc();"Tab"==b.key&&(a.i.classList.add("shaka-keyboard-navigation"),Ct(a),a.h.m(window,"mousedown",function(){a.h.Ia(window,"mousedown")}));"Escape"==b.key&&a.J.Aa();c&&a.Ca.has("Tab")&&Ut(a,b)}
854
- function Ut(a,b){var c=a.H.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.Ca.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
855
- function Et(){var a=new Wb("en");a.ea("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..."],
830
+ function Ct(a){if(a.i.length){for(var b=a.player.Pa(),c=b.end-b.start,d=["to right"],e=[],f=a.v.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
831
+ 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 Ft(a){Ct(a);var b=a.player.Pa();b=b.end-b.start;a.player.W()&&5<b&&a.u.ia(1)}function Et(a){var b=a.player.Pa();b=b.end-b.start;return a.player.W()&&5>b?!1:null==a.ad}function Dt(a){a.bar.setAttribute("aria-label",a.localization.resolve("SEEK"))}L("shaka.ui.SeekBar",Bt);function Z(a,b,c,d){$a.call(this);var e=this;this.X=!0;this.v=d;this.A=new Uk(c,a,this.v.castReceiverAppId);this.mb=!0;this.g=this.A.zc();this.B=c;this.D=this.A.Yb();this.Sa=a;this.j=b;this.kb=this.D.Yc();this.l=this.u=null;this.ba=!1;this.H=[];this.Tb=[];this.vb=!1;this.ka=new O(function(){e.j.style.cursor="none";e.vb=!1;Ht(e)});this.ua=new O(function(){e.i.removeAttribute("shown");e.J.V(2)});this.J=new O(function(){for(var f=r(e.H),g=f.next();!g.done;g=f.next())Y(g.value,!1)});this.ab=new O(function(){e.Eb()&&
832
+ It(e)});this.K=null;this.S=[];this.$a=Jt();this.h=new jd;this.configure(this.v);Kt(this);this.Da=new Set;Lt(this);this.ab.ia(.125);this.h.m(this.$a,"locale-changed",function(f){e.kb.setLocale(f.locales[0])})}pa(Z,$a);p=Z.prototype;
833
+ p.destroy=function(){var a=this;return H(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.C(2);break}return t(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.ka&&(a.ka.stop(),a.ka=null);a.ua&&(a.ua.stop(),a.ua=null);a.J&&(a.J.stop(),a.J=null);a.ab&&(a.ab.stop(),a.ab=null);Mt(a);a.i&&(a.j.removeChild(a.i),a.i=null);if(!a.A){b.C(4);break}return t(b,a.A.destroy(),5);case 5:a.A=null;case 4:if(!a.Sa){b.C(6);break}return t(b,a.Sa.destroy(),7);case 7:a.Sa=
834
+ null;case 6:a.D=null,a.B=null,a.g=null,a.$a=null,a.Da.clear(),x(b)}})};function Mt(a){for(var b=r(a.S),c=b.next();!c.done;c=b.next())c.value.release();a.S=[]}function Nt(a,b){Ot.set(a,b)}p.gf=function(a){this.mb=a;Lt(this)};p.Uf=function(){Pt(this)};
835
+ p.configure=function(a){this.v=a;this.A.ue(a.castReceiverAppId);this.l&&(this.l=null);this.sb&&(this.sb=null);this.i?(ei(this.i),Mt(this)):(Qt(this),this.aa=S("div"),this.aa.classList.add("shaka-client-side-ad-container"),Y(this.aa,!1),this.j.appendChild(this.aa));Rt(this);Pt(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.m(b,"click",c);this.h.m(b,"dblclick",c)}};
836
+ p.Zd=function(a){(this.X=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Pt(this)};p.Ue=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Zd(!1)};p.getAd=function(){return this.u};p.qf=function(){return this.A};p.Bf=function(){return this.$a};p.Pf=function(){return this.j};p.zc=function(){return this.g};p.Af=function(){return this.B};p.Yb=function(){return this.D};p.zf=function(){return this.Sa};p.uf=function(){return this.i};
837
+ p.Kf=function(){return this.ub};p.rf=function(){return this.aa};p.sf=function(){return this.v};p.Tf=function(){return this.ba};p.be=function(a){this.ba=a};p.Rf=function(){return this.mb};p.Ae=function(){return this.l?this.l.getValue():this.g.currentTime};p.Ve=function(a){this.K=a};p.Tc=function(){return this.H.some(function(a){return!a.classList.contains("shaka-hidden")})};p.Bc=function(){this.J.Ba()};
838
+ p.je=function(){var a=this,b;return H(function(c){switch(c.g){case 1:if(document.fullscreenElement)return t(c,document.exitFullscreen(),0);y(c,4);if(!document.pictureInPictureElement){c.C(6);break}return t(c,document.exitPictureInPicture(),6);case 6:return t(c,a.j.requestFullscreen({navigationUI:"hide"}),8);case 8:ua(c,0);break;case 4:b=C(c),a.dispatchEvent(new M("error",(new Map).set("detail",b))),c.C(0)}})};p.Xe=function(){Y(this.N,!0);Y(this.aa,!0);this.i.setAttribute("ad-active","true")};
839
+ p.Ce=function(){Y(this.N,!1);Y(this.aa,!1);this.i.removeAttribute("ad-active")};function xt(a){a.X&&a.g.duration&&(a.D.qe(),a.g.paused&&!a.ba?a.g.play():a.g.pause())}function wt(a){a.u&&a.u.isPaused()?a.u.play():a.u&&a.u.pause()}
840
+ function Rt(a){a.j.classList.add("shaka-video-container");a.B.classList.add("shaka-video");var b=S("div");b.classList.add("shaka-scrim-container");a.i.appendChild(b);a.v.addBigPlayButton&&(b=S("div"),b.classList.add("shaka-play-button-container"),a.i.appendChild(b),a.sb=new yt(b,a),a.S.push(a.sb));if(!a.ra){a.ra=S("div");a.ra.classList.add("shaka-spinner-container");a.j.appendChild(a.ra);var c=S("div");c.classList.add("shaka-spinner");a.ra.appendChild(c);b=document.createElementNS("http://www.w3.org/2000/svg",
841
+ "svg");b.setAttribute("class","shaka-spinner-svg");b.setAttribute("viewBox","0 0 30 30");c.appendChild(b);c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("class","shaka-spinner-path");c.setAttribute("cx","15");c.setAttribute("cy","15");c.setAttribute("r","14.5");c.setAttribute("fill","none");c.setAttribute("stroke-width","1");c.setAttribute("stroke-miterlimit","10");b.appendChild(c)}a.ub=S("div");a.ub.classList.add("shaka-server-side-ad-container");a.i.appendChild(a.ub);
842
+ St(a);a.H=Array.from(a.j.getElementsByClassName("shaka-settings-menu"));a.H.push.apply(a.H,ia(Array.from(a.j.getElementsByClassName("shaka-overflow-menu"))));if(a.v.addSeekBar)a.l=new Bt(a.P,a),a.S.push(a.l);else for(b=r(a.H),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.Tb=Array.from(a.j.getElementsByClassName("shaka-show-controls-on-mouse-over"))}
843
+ function Qt(a){a.i=S("div");a.i.classList.add("shaka-controls-container");a.j.appendChild(a.i);a.j.setAttribute("shaka-controls","true");a.h.m(a.i,"touchstart",function(b){a.g.duration&&(a.Eb()?a.K=Date.now():(Tt(a,b),b.preventDefault()))},{passive:!1});a.h.m(a.i,"click",function(){a.X&&(a.Tc()?a.J.Ba():a.u?wt(a):xt(a))});a.h.m(a.i,"dblclick",function(){a.v.doubleClickForFullscreen&&document.fullscreenEnabled&&a.je()})}
844
+ function Ut(a){a.N=S("div");a.N.classList.add("shaka-ad-controls");Y(a.N,null!=a.u);a.P.appendChild(a.N);var b=new tt(a.N,a);a.S.push(b);b=new st(a.N,a);a.S.push(b)}
845
+ function St(a){a.P=S("div");a.P.classList.add("shaka-bottom-controls");a.P.classList.add("shaka-no-propagation");a.i.appendChild(a.P);a.h.m(a.P,"click",function(){a.Bc()});Ut(a);a.Ta=S("div");a.Ta.classList.add("shaka-controls-button-panel");a.Ta.classList.add("shaka-show-controls-on-mouse-over");a.P.appendChild(a.Ta);for(var b={},c=r(a.v.controlPanelElements),d=c.next();!d.done;b={jc:b.jc},d=c.next())d=d.value,Ot.get(d)?(d=Ot.get(d).create(a.Ta,a),"function"!=typeof d.release&&(yb("shaka.extern.IUIElement",
846
+ "Please update UI elements to have a release() method."),b.jc=d,b.jc.release=function(e){return function(){e.jc.destroy&&e.jc.destroy()}}(b)),a.S.push(d)):Oa("Unrecognized control panel element requested:",d)}
847
+ function Kt(a){a.h.m(a.D,"buffering",function(){a.X&&Y(a.ra,a.D.Dc())});a.X&&Y(a.ra,a.D.Dc());a.h.m(window,"keydown",function(b){Vt(a,b)});a.h.m(window,"click",function(){return a.Bc()});a.h.m(a.g,"play",function(){Pt(a)});a.h.m(a.g,"pause",function(){Pt(a)});a.h.m(a.g,"ended",function(){Pt(a)});a.h.m(a.j,"mousemove",function(b){Tt(a,b)});a.h.m(a.j,"touchmove",function(b){Tt(a,b)},{passive:!0});a.h.m(a.j,"touchend",function(b){Tt(a,b)},{passive:!0});a.h.m(a.j,"mouseleave",function(){a.K||a.ka.Ba()});
848
+ a.h.m(a.A,"caststatuschanged",function(){Lt(a)});a.h.m(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.i.contains(c)&&Tt(a,b);if(a.v.enableKeyboardPlaybackControls)switch(b.key){case "ArrowLeft":a.l&&!d&&(b.preventDefault(),Wt(a,a.l.getValue()-5));break;case "ArrowRight":a.l&&!d&&(b.preventDefault(),Wt(a,a.l.getValue()+5));break;case "Home":a.l&&Wt(a,a.D.Pa().start);break;
849
+ case "End":a.l&&Wt(a,a.D.Pa().end);break;case " ":e&&(a.u?wt(a):xt(a))}});a.h.m(a.j,"keyup",function(b){a.Da["delete"](b.key)});a.h.m(a.kb,"ad-started",function(b){a.u=b.ad;a.Xe()});a.h.m(a.kb,"ad-stopped",function(){a.u=null;a.Ce()});screen.orientation&&a.h.m(screen.orientation,"change",function(){return H(function(b){return t(b,Xt(a),0)})});a.h.m(document,"fullscreenchange",function(){a.u&&a.u.resize(a.B.offsetWidth,a.B.offsetHeight)})}
850
+ function Xt(a){return H(function(b){return a.g&&0!=a.g.readyState&&!a.A.na()&&a.v.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?t(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?t(b,document.exitFullscreen(),0):b.C(0):b["return"]()})}
851
+ function Tt(a,b){"mousemove"==b.type&&(a.i.classList.remove("shaka-keyboard-navigation"),Ht(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.K=Date.now():a.K+1E3<Date.now()&&(a.K=null);a.K&&"mousemove"==b.type||(a.j.style.cursor="",a.vb=!0,a.J.stop(),a.Eb()||(It(a),Ht(a)),a.ka.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.K||a.ka.V(3))}function Yt(a){return window.matchMedia("hover: hover").matches?a.Tb.some(function(b){return b.matches(":hover")}):!1}
852
+ function Ht(a){var b=a.u?a.u.isPaused():!1,c=a.g.paused&&!a.ba,d=a.i.classList.contains("shaka-keyboard-navigation");b||!a.u&&c||a.vb||d||Yt(a)?(It(a),a.i.setAttribute("shown","true"),a.ua.stop()):a.ua.V(a.v.fadeDelay)}function Lt(a){var b=a.A.na();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.i.setAttribute("casting","true"):a.i.removeAttribute("casting")}function Pt(a){a.g.ended&&!a.g.paused&&a.g.pause();Ht(a)}
853
+ p.Eb=function(){return this.X?null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"):!1};function Wt(a,b){a.l.changeTo(b);a.Eb()&&It(a)}
854
+ function It(a){if(a.l)if(a.l.setValue(a.g.currentTime),Gt(a.l),a.l.container.classList.contains("shaka-hidden")){var b=r(a.H);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position")}else{b=r(a.H);for(var c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position")}a.dispatchEvent(new M("timeandseekrangeupdated"))}
855
+ function Vt(a,b){a.Da.add(b.key);var c=a.Tc();"Tab"==b.key&&(a.i.classList.add("shaka-keyboard-navigation"),Ht(a),a.h.m(window,"mousedown",function(){a.h.Ja(window,"mousedown")}));"Escape"==b.key&&a.J.Ba();c&&a.Da.has("Tab")&&Zt(a,b)}
856
+ function Zt(a,b){var c=a.H.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.Da.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
857
+ function Jt(){var a=new Ub("en");a.ha("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..."],
856
858
  ["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"],
857
859
  ["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"],
858
860
  ["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"],
859
861
  ["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"],
860
- ["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.ea("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"],
862
+ ["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.ha("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"],
861
863
  ["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"],
862
864
  ["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"]]));
863
- a.ea("en",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","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"],
865
+ a.ha("en",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","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"],
864
866
  ["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"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],
865
- ["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ea("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","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE",
867
+ ["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ha("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","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE",
866
868
  "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"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE",
867
- "Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ea("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..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],
869
+ "Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ha("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..."],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],
868
870
  ["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"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
869
- ["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ea("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],
871
+ ["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"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ha("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],
870
872
  ["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"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],
871
873
  ["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"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],
872
- ["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ea("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],
874
+ ["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ha("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],
873
875
  ["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)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],
874
876
  ["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","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],
875
- ["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ea("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","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],
877
+ ["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ha("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","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],
876
878
  ["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"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE",
877
- "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"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ea("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS",
879
+ "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"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ha("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS",
878
880
  "[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","\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"],
879
881
  ["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"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE",
880
882
  "\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"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE",
881
- "\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.ea("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE",
883
+ "\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.ha("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE",
882
884
  "\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"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],
883
885
  ["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"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD",
884
- "\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.ea("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS",
886
+ "\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.ha("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS",
885
887
  "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","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE",
886
- "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"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ea("pl",new Map([["AD_DURATION",
888
+ "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"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ha("pl",new Map([["AD_DURATION",
887
889
  "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"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],
888
890
  ["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","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],
889
- ["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","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ea("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],
891
+ ["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","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ha("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],
890
892
  ["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","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],
891
893
  ["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"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],
892
- ["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.ea("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f"],["AD_PROGRESS","\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 [AD_ON] \u0438\u0437 [NUM_ADS]"],
893
- ["AD_TIME","\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0422\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"],["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"'],
894
+ ["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.ha("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"],["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],
895
+ ["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"],["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"'],
894
896
  ["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"],["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"'],
895
897
  ["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","\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"],
896
- ["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","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c"],["ON","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c"],["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"],
898
+ ["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","\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"],
897
899
  ["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"],["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",
898
900
  "\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"],["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"],
899
- ["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ea("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"],["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"],
901
+ ["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ha("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"],["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"],
900
902
  ["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"],["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"],
901
903
  ["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"],["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"],
902
904
  ["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"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],
903
905
  ["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"],["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],
904
906
  ["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"],["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],
905
- ["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ea("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"],["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE",
907
+ ["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ha("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"],["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE",
906
908
  "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"],["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE",
907
- "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.ea("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],
909
+ "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.ha("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],
908
910
  ["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"],["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],
909
911
  ["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"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION",
910
- "\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ea("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY",
912
+ "\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.ha("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY",
911
913
  "\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN",
912
914
  "\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u89e3\u6790\u5ea6"],
913
- ["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.qe(navigator.languages||[]);return a}J("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Cb;Z.prototype.hideAdUI=Z.prototype.Ae;Z.prototype.showAdUI=Z.prototype.Ve;
914
- Z.prototype.toggleFullScreen=Z.prototype.ge;Z.prototype.hideSettingsMenus=Z.prototype.zc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Rc;Z.prototype.setLastTouchEventTime=Z.prototype.Te;Z.prototype.getDisplayTime=Z.prototype.ye;Z.prototype.isCastAllowed=Z.prototype.Pf;Z.prototype.setSeeking=Z.prototype.$d;Z.prototype.isSeeking=Z.prototype.Rf;Z.prototype.getConfig=Z.prototype.qf;Z.prototype.getClientSideAdContainer=Z.prototype.pf;Z.prototype.getServerSideAdContainer=Z.prototype.If;
915
- Z.prototype.getControlsContainer=Z.prototype.sf;Z.prototype.getLocalPlayer=Z.prototype.xf;Z.prototype.getPlayer=Z.prototype.Wb;Z.prototype.getLocalVideo=Z.prototype.yf;Z.prototype.getVideo=Z.prototype.xc;Z.prototype.getVideoContainer=Z.prototype.Nf;Z.prototype.getLocalization=Z.prototype.zf;Z.prototype.getCastProxy=Z.prototype.nf;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.Se;Z.prototype.setEnabledShakaControls=Z.prototype.Xd;Z.prototype.configure=Z.prototype.configure;
916
- Z.prototype.loadComplete=Z.prototype.Sf;Z.prototype.allowCast=Z.prototype.df;Z.registerElement=It;Z.prototype.destroy=Z.prototype.destroy;var Jt=new Map;function Vt(a,b,c){this.h=a;this.v=Wt(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Gd()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.v);this.configure({});c.controls||a.ce(b);b.ui=this;c.ui=this}p=Vt.prototype;p.destroy=function(){var a=this;return G(function(b){if(1==b.g)return a.g?t(b,a.g.destroy(),2):b.C(2);if(4!=b.g)return a.g=null,a.h?t(b,a.h.destroy(),4):b.C(4);a.h=null;x(b)})};p.Gd=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Fd()&&1<navigator.maxTouchPoints};
917
- p.getConfiguration=function(){var a=Wt(this);ni(a,this.v,Wt(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=oi(a,b));ni(this.v,a,Wt(this),{},"");this.v.castReceiverAppId&&!this.v.overflowMenuButtons.includes("cast")&&this.v.overflowMenuButtons.push("cast");this.g.configure(this.v);this.g.dispatchEvent(new L("uiupdated"))};p.rf=function(){return this.g};p.pg=function(a){this.g.Xd(a)};
918
- function Wt(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(" "),addSeekBar:!0,addBigPlayButton:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
919
- level:"rgb(255, 255, 255)"},trackLabelFormat:Xt,fadeDelay:0,doubleClickForFullscreen:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0};a.Gd()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
920
- function Yt(){var a,b,c,d,e,f,g,h,k,l,m,n,q;return G(function(u){switch(u.g){case 1:Jq();if(!Ti())return Zt("shaka-ui-load-failed",$t),u["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){u.C(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),au(f,e));u.C(2);break}h=r(a);k=h.next();
921
- case 4:if(k.done){u.C(2);break}l=k.value;if(l.ui){u.C(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(q=d.value,q.parentElement==l){m=q;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));y(u,7);return t(u,au(l,m),9);case 9:ua(u,5);break;case 7:return D(u),Zt("shaka-ui-load-failed",bu),u["return"]();case 5:k=h.next();u.C(4);break;case 2:Zt("shaka-ui-loaded"),x(u)}})}
922
- function Zt(a,b){var c=document.createEvent("CustomEvent"),d=null;void 0!=b&&(d={reasonCode:b});c.initCustomEvent(a,!1,!1,d);document.dispatchEvent(c)}
923
- function au(a,b){var c,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:c=new T(b);d=new Vt(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.Se(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
924
- k=h.next();case 2:if(k.done){m.C(0);break}l=k.value;y(m,5);return t(m,d.g.Wb().load(l.getAttribute("src")),7);case 7:m.C(0);break;case 5:D(m);case 3:k=h.next(),m.C(2)}})}J("shaka.ui.Overlay",Vt);Vt.prototype.setEnabled=Vt.prototype.pg;Vt.prototype.getControls=Vt.prototype.rf;Vt.prototype.configure=Vt.prototype.configure;Vt.prototype.getConfiguration=Vt.prototype.getConfiguration;Vt.prototype.isMobile=Vt.prototype.Gd;Vt.prototype.destroy=Vt.prototype.destroy;var Xt=0;
925
- Vt.TrackLabelFormat={LANGUAGE:Xt,ROLE:1,LANGUAGE_ROLE:2};var $t=0,bu=1;Vt.FailReasonCode={NO_BROWSER_SUPPORT:$t,PLAYER_FAILED_TO_LOAD:bu};"complete"==document.readyState?G(function(a){if(1==a.g)return t(a,Promise.resolve(),2);Yt();x(a)}):window.addEventListener("load",Yt);function cu(a,b,c,d,e,f,g){function h(z,C){return z+": "+C}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.filter(function(z){return 1==z.active})[0],m=it(b);fi(b);b.appendChild(m);m=new Map;for(var n=r(a),q=n.next();!q.done;q=n.next())q=q.value,m.has(q.language)||m.set(q.language,new Set),m.get(q.language).add(k(q));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(q=a.next();!q.done;n={Qb:n.Qb},q=a.next()){n.Qb=q.value;q=n.Qb.language;
926
- var u=k(n.Qb),v=h(q,u);if(!m.has(v)){m.add(v);var A=ei();A.addEventListener("click",function(z){return function(){c(z.Qb)}}(n));var w=R("span");A.appendChild(w);w.textContent=du(q,f);switch(g){case 1:u?w.textContent=u:(Qa("Track #"+n.Qb.id+" does not have a role, but the UI is configured to only show role."),w.textContent="?");break;case 2:u&&(w.textContent+=": "+u)}d&&v==l&&(A.appendChild(lt()),w.classList.add("shaka-chosen-item"),A.setAttribute("aria-selected","true"),e.textContent=w.textContent);
927
- b.appendChild(A)}}}function du(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=Tb(a);return a in et?et[a].o:c in et?et[c].o+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function eu(a,b){X.call(this,a,b);var c=this;this.v=this.controls.v;this.j=this.controls.i;this.i=[];this.h=ei();this.h.classList.add("shaka-overflow-menu-button");this.h.classList.add("shaka-no-propagation");this.h.classList.add("material-icons-round");this.h.textContent="more_vert";this.parent.appendChild(this.h);this.g=R("div");this.g.classList.add("shaka-overflow-menu");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-hidden");
928
- this.j.appendChild(this.g);fu(this);for(var d=r(this.controls.j.getElementsByClassName("shaka-back-to-overflow-button")),e=d.next();!e.done;e=d.next())this.eventManager.m(e.value,"click",function(){c.controls.zc();Y(c.g,!0);c.g.childNodes.length&&c.g.childNodes[0].focus();Ct(c.controls)});this.eventManager.m(this.localization,"locale-updated",function(){gu(c)});this.eventManager.m(this.localization,"locale-changed",function(){gu(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.h,
929
- !1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Y(c.h,!0)});this.eventManager.m(this.controls,"submenuopen",function(){Y(c.g,!1)});this.eventManager.m(this.g,"touchstart",function(f){c.controls.Te(Date.now());f.stopPropagation()});this.eventManager.m(this.h,"click",function(){hu(c)});gu(this);this.ad&&Y(this.h,!1)}pa(eu,X);eu.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};
930
- function iu(a,b){ju.set(a,b)}function fu(a){for(var b=r(a.v.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,ju.get(c)?(c=ju.get(c),a.i.push(c.create(a.g,a.controls))):Qa("Unrecognized overflow menu element requested:",c)}function hu(a){if(a.controls.Rc())a.controls.zc();else{Y(a.g,!0);Ct(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};gb(a.g.childNodes,b)&&hb(a.g.childNodes,b)[0].focus()}}
931
- function gu(a){a.h.setAttribute("aria-label",a.localization.resolve("MORE_SETTINGS"))}J("shaka.ui.OverflowMenu",eu);eu.registerElement=iu;function ku(){}ku.prototype.create=function(a,b){return new eu(a,b)};It("overflow_menu",new ku);var ju=new Map;function lu(a,b,c){X.call(this,a,b);var d=this;mu(this,c);nu(this);this.eventManager.m(this.button,"click",function(){d.controls.dispatchEvent(new L("submenuopen"));Y(d.menu,!0);kt(d.menu)})}pa(lu,X);
932
- function mu(a,b){a.button=ei();a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
933
- function nu(a){a.menu=R("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=ei();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);var b=R("i");b.classList.add("material-icons-round");b.textContent="arrow_back";a.backButton.appendChild(b);a.backSpan=R("span");a.backButton.appendChild(a.backSpan);a.controls.i.appendChild(a.menu)}
934
- J("shaka.ui.SettingsMenu",lu);function ou(a,b){lu.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.menu.classList.add("shaka-audio-languages");this.eventManager.m(this.localization,"locale-updated",function(){pu(c)});this.eventManager.m(this.localization,"locale-changed",function(){pu(c)});this.eventManager.m(this.player,"trackschanged",function(){var d=0<c.player.yb().length;Y(c.button,d);qu(c)});this.eventManager.m(this.player,"variantchanged",function(){qu(c)});pu(this);qu(this)}
935
- pa(ou,lu);function qu(a){var b=a.player.yb();cu(b,a.menu,function(c){a.player.ld(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.v.trackLabelFormat);kt(a.menu);a.controls.dispatchEvent(new L("languageselectionupdated"))}
936
- function pu(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("LANGUAGE"));a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}J("shaka.ui.AudioLanguageSelection",ou);function ru(){}ru.prototype.create=function(a,b){return new ou(a,b)};iu("language",new ru);function su(a,b){X.call(this,a,b);var c=this;this.h=this.controls.A;this.g=ei();this.g.classList.add("shaka-cast-button");this.g.setAttribute("aria-pressed","false");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);
937
- tu(this);uu(this);this.eventManager.m(this.localization,"locale-updated",function(){tu(c)});this.eventManager.m(this.localization,"locale-changed",function(){tu(c)});this.eventManager.m(this.g,"click",function(){vu(c)});this.eventManager.m(this.controls,"caststatuschanged",function(){uu(c)})}pa(su,X);
938
- function vu(a){var b;G(function(c){if(1==c.g){if(a.h.ma())return a.h.We(),c.C(0);y(c,3);a.g.disabled=!0;return t(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=D(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new L("error",{detail:b}));x(c)})}function uu(a){var b=a.h.me()&&a.controls.jb,c=a.h.ma();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(c?a.g.setAttribute("aria-pressed","true"):a.g.setAttribute("aria-pressed","false"));wu(a)}
939
- function wu(a){a.j.textContent=a.h.ma()?a.h.jd():a.localization.resolve("OFF")}function tu(a){a.g.setAttribute("aria-label",a.localization.resolve("CAST"));a.l.textContent=a.localization.resolve("CAST");wu(a)}J("shaka.ui.CastButton",su);function xu(){}xu.prototype.create=function(a,b){return new su(a,b)};iu("cast",new xu);function yu(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.textContent="fast_forward";this.parent.appendChild(this.g);zu(this);this.eventManager.m(this.localization,"locale-updated",function(){zu(c)});this.eventManager.m(this.localization,"locale-changed",function(){zu(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.uc();c.player.je(0>d||4<d?1:2*d)}})}pa(yu,X);
940
- function zu(a){a.g.setAttribute("aria-label",a.localization.resolve("FAST_FORWARD"))}J("shaka.ui.FastForwardButton",yu);function Au(){}Au.prototype.create=function(a,b){return new yu(a,b)};It("fast_forward",new Au);function Bu(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Cu(this);this.eventManager.m(this.localization,"locale-updated",function(){Cu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Cu(c)});this.eventManager.m(this.g,"click",function(){return G(function(d){return t(d,
941
- c.controls.ge(),0)})});this.eventManager.m(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Cu(c)})}pa(Bu,X);function Cu(a){a.g.setAttribute("aria-label",a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN"))}J("shaka.ui.FullscreenButton",Bu);function Du(){}Du.prototype.create=function(a,b){return new Bu(a,b)};It("fullscreen",new Du);function Eu(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("shaka-loop-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="loop";this.g.appendChild(this.j);var d=R("label");d.classList.add("shaka-overflow-button-label");this.l=R("span");this.l.textContent=this.localization.resolve("LOOP");d.appendChild(this.l);this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);Fu(this);this.parent.appendChild(this.g);
942
- this.eventManager.m(this.localization,"locale-updated",function(){Fu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Fu(c)});this.eventManager.m(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Aa();c.h.ha(1)});this.u=this.video.loop;this.h=new O(function(){c.u!=c.video.loop&&(Fu(c),c.u=c.video.loop)});this.h.ha(1)}pa(Eu,X);Eu.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
943
- function Fu(a){a.l.textContent=a.localization.resolve("LOOP");a.i.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.g.setAttribute("aria-label",a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE"))}J("shaka.ui.LoopButton",Eu);function Gu(){}Gu.prototype.create=function(a,b){return new Eu(a,b)};iu("loop",new Gu);function Hu(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.parent.appendChild(this.g);Iu(this);Ju(this);this.eventManager.m(this.localization,"locale-updated",function(){Iu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Iu(c)});this.eventManager.m(this.g,"click",function(){c.ad?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});this.eventManager.m(this.video,"volumechange",
944
- function(){Iu(c);Ju(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){Iu(c);Ju(c)});this.eventManager.m(this.adManager,"ad-muted",function(){Iu(c);Ju(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null;Iu(c);Ju(c)})}pa(Hu,X);function Iu(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.setAttribute("aria-label",a.localization.resolve(b))}
945
- function Ju(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}J("shaka.ui.MuteButton",Hu);function Ku(){}Ku.prototype.create=function(a,b){return new Hu(a,b)};It("mute",new Ku);function Lu(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=ei();this.g.classList.add("shaka-pip-button");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);
946
- this.g.appendChild(d);Mu(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.m(this.localization,"locale-updated",function(){Mu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Mu(c)});this.eventManager.m(this.g,"click",function(){Nu(c)});this.eventManager.m(this.l,"enterpictureinpicture",function(){c.i.textContent="branding_watermark";c.g.setAttribute("aria-label",c.localization.resolve("EXIT_PICTURE_IN_PICTURE"));
915
+ ["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.se(navigator.languages||[]);return a}L("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Eb;Z.prototype.hideAdUI=Z.prototype.Ce;Z.prototype.showAdUI=Z.prototype.Xe;
916
+ Z.prototype.toggleFullScreen=Z.prototype.je;Z.prototype.hideSettingsMenus=Z.prototype.Bc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Tc;Z.prototype.setLastTouchEventTime=Z.prototype.Ve;Z.prototype.getDisplayTime=Z.prototype.Ae;Z.prototype.isCastAllowed=Z.prototype.Rf;Z.prototype.setSeeking=Z.prototype.be;Z.prototype.isSeeking=Z.prototype.Tf;Z.prototype.getConfig=Z.prototype.sf;Z.prototype.getClientSideAdContainer=Z.prototype.rf;Z.prototype.getServerSideAdContainer=Z.prototype.Kf;
917
+ Z.prototype.getControlsContainer=Z.prototype.uf;Z.prototype.getLocalPlayer=Z.prototype.zf;Z.prototype.getPlayer=Z.prototype.Yb;Z.prototype.getLocalVideo=Z.prototype.Af;Z.prototype.getVideo=Z.prototype.zc;Z.prototype.getVideoContainer=Z.prototype.Pf;Z.prototype.getLocalization=Z.prototype.Bf;Z.prototype.getCastProxy=Z.prototype.qf;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.Ue;Z.prototype.setEnabledShakaControls=Z.prototype.Zd;Z.prototype.configure=Z.prototype.configure;
918
+ Z.prototype.loadComplete=Z.prototype.Uf;Z.prototype.allowCast=Z.prototype.gf;Z.registerElement=Nt;Z.prototype.destroy=Z.prototype.destroy;var Ot=new Map;function $t(a,b,c){this.h=a;this.v=au(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.Id()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.v);this.configure({});c.controls||a.fe(b);b.ui=this;c.ui=this}p=$t.prototype;p.destroy=function(){var a=this;return H(function(b){if(1==b.g)return a.g?t(b,a.g.destroy(),2):b.C(2);if(4!=b.g)return a.g=null,a.h?t(b,a.h.destroy(),4):b.C(4);a.h=null;x(b)})};p.Id=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Ed()&&1<navigator.maxTouchPoints};
919
+ p.getConfiguration=function(){var a=au(this);mi(a,this.v,au(this),{},"");return a};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=ni(a,b));mi(this.v,a,au(this),{},"");this.v.castReceiverAppId&&!this.v.overflowMenuButtons.includes("cast")&&this.v.overflowMenuButtons.push("cast");this.g.configure(this.v);this.g.dispatchEvent(new M("uiupdated"))};p.tf=function(){return this.g};p.qg=function(a){this.g.Zd(a)};
920
+ function au(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(" "),addSeekBar:!0,addBigPlayButton:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
921
+ level:"rgb(255, 255, 255)"},trackLabelFormat:bu,fadeDelay:0,doubleClickForFullscreen:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0};a.Id()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
922
+ function cu(){var a,b,c,d,e,f,g,h,k,l,m,n,q;return H(function(u){switch(u.g){case 1:Oq();if(!Si())return du("shaka-ui-load-failed",eu),u["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){u.C(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),fu(f,e));u.C(2);break}h=r(a);k=h.next();
923
+ case 4:if(k.done){u.C(2);break}l=k.value;if(l.ui){u.C(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(q=d.value,q.parentElement==l){m=q;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));y(u,7);return t(u,fu(l,m),9);case 9:ua(u,5);break;case 7:return C(u),du("shaka-ui-load-failed",gu),u["return"]();case 5:k=h.next();u.C(4);break;case 2:du("shaka-ui-loaded"),x(u)}})}
924
+ function du(a,b){var c=document.createEvent("CustomEvent"),d=null;void 0!=b&&(d={reasonCode:b});c.initCustomEvent(a,!1,!1,d);document.dispatchEvent(c)}
925
+ function fu(a,b){var c,d,e,f,g,h,k,l;return H(function(m){switch(m.g){case 1:c=new U(b);d=new $t(c,a,b);e="";a.dataset&&a.dataset.shakaPlayerCastReceiverId?e=a.dataset.shakaPlayerCastReceiverId:b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId);e.length&&d.configure({castReceiverAppId:e});b.controls&&d.g.Ue(!0);if(f=b.getAttribute("src"))g=document.createElement("source"),g.setAttribute("src",f),b.appendChild(g),b.removeAttribute("src");h=r(b.querySelectorAll("source"));
926
+ k=h.next();case 2:if(k.done){m.C(0);break}l=k.value;y(m,5);return t(m,d.g.Yb().load(l.getAttribute("src")),7);case 7:m.C(0);break;case 5:C(m);case 3:k=h.next(),m.C(2)}})}L("shaka.ui.Overlay",$t);$t.prototype.setEnabled=$t.prototype.qg;$t.prototype.getControls=$t.prototype.tf;$t.prototype.configure=$t.prototype.configure;$t.prototype.getConfiguration=$t.prototype.getConfiguration;$t.prototype.isMobile=$t.prototype.Id;$t.prototype.destroy=$t.prototype.destroy;var bu=0;
927
+ $t.TrackLabelFormat={LANGUAGE:bu,ROLE:1,LANGUAGE_ROLE:2};var eu=0,gu=1;$t.FailReasonCode={NO_BROWSER_SUPPORT:eu,PLAYER_FAILED_TO_LOAD:gu};"complete"==document.readyState?H(function(a){if(1==a.g)return t(a,Promise.resolve(),2);cu();x(a)}):window.addEventListener("load",cu);function hu(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.filter(function(z){return 1==z.active})[0],m=nt(b);ei(b);b.appendChild(m);m=new Map;for(var n=r(a),q=n.next();!q.done;q=n.next())q=q.value,m.has(q.language)||m.set(q.language,new Set),m.get(q.language).add(k(q));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(q=a.next();!q.done;n={Sb:n.Sb},q=a.next()){n.Sb=q.value;q=n.Sb.language;
928
+ var u=k(n.Sb),v=h(q,u);if(!m.has(v)){m.add(v);var A=di();A.addEventListener("click",function(z){return function(){c(z.Sb)}}(n));var w=S("span");A.appendChild(w);w.textContent=iu(q,f);switch(g){case 1:u?w.textContent=u:(Oa("Track #"+n.Sb.id+" does not have a role, but the UI is configured to only show role."),w.textContent="?");break;case 2:u&&(w.textContent+=": "+u)}d&&v==l&&(A.appendChild(qt()),w.classList.add("shaka-chosen-item"),A.setAttribute("aria-selected","true"),e.textContent=w.textContent);
929
+ b.appendChild(A)}}}function iu(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in jt?jt[a].o:c in jt?jt[c].o+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function ju(a,b){X.call(this,a,b);var c=this;this.v=this.controls.v;this.j=this.controls.i;this.i=[];this.h=di();this.h.classList.add("shaka-overflow-menu-button");this.h.classList.add("shaka-no-propagation");this.h.classList.add("material-icons-round");this.h.textContent="more_vert";this.parent.appendChild(this.h);this.g=S("div");this.g.classList.add("shaka-overflow-menu");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-hidden");
930
+ this.j.appendChild(this.g);ku(this);for(var d=r(this.controls.j.getElementsByClassName("shaka-back-to-overflow-button")),e=d.next();!e.done;e=d.next())this.eventManager.m(e.value,"click",function(){c.controls.Bc();Y(c.g,!0);c.g.childNodes.length&&c.g.childNodes[0].focus();Ht(c.controls)});this.eventManager.m(this.localization,"locale-updated",function(){lu(c)});this.eventManager.m(this.localization,"locale-changed",function(){lu(c)});this.eventManager.m(this.adManager,"ad-started",function(){Y(c.h,
931
+ !1)});this.eventManager.m(this.adManager,"ad-stopped",function(){Y(c.h,!0)});this.eventManager.m(this.controls,"submenuopen",function(){Y(c.g,!1)});this.eventManager.m(this.g,"touchstart",function(f){c.controls.Ve(Date.now());f.stopPropagation()});this.eventManager.m(this.h,"click",function(){mu(c)});lu(this);this.ad&&Y(this.h,!1)}pa(ju,X);ju.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};
932
+ function nu(a,b){ou.set(a,b)}function ku(a){for(var b=r(a.v.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,ou.get(c)?(c=ou.get(c),a.i.push(c.create(a.g,a.controls))):Oa("Unrecognized overflow menu element requested:",c)}function mu(a){if(a.controls.Tc())a.controls.Bc();else{Y(a.g,!0);Ht(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};cb(a.g.childNodes,b)&&db(a.g.childNodes,b)[0].focus()}}
933
+ function lu(a){a.h.setAttribute("aria-label",a.localization.resolve("MORE_SETTINGS"))}L("shaka.ui.OverflowMenu",ju);ju.registerElement=nu;function pu(){}pu.prototype.create=function(a,b){return new ju(a,b)};Nt("overflow_menu",new pu);var ou=new Map;function qu(a,b,c){X.call(this,a,b);var d=this;ru(this,c);su(this);this.eventManager.m(this.button,"click",function(){d.controls.dispatchEvent(new M("submenuopen"));Y(d.menu,!0);pt(d.menu)})}pa(qu,X);
934
+ function ru(a,b){a.button=di();a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=S("label");c.classList.add("shaka-overflow-button-label");a.nameSpan=S("span");c.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
935
+ function su(a){a.menu=S("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=di();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);var b=S("i");b.classList.add("material-icons-round");b.textContent="arrow_back";a.backButton.appendChild(b);a.backSpan=S("span");a.backButton.appendChild(a.backSpan);a.controls.i.appendChild(a.menu)}
936
+ L("shaka.ui.SettingsMenu",qu);function tu(a,b){qu.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.menu.classList.add("shaka-audio-languages");this.eventManager.m(this.localization,"locale-updated",function(){uu(c)});this.eventManager.m(this.localization,"locale-changed",function(){uu(c)});this.eventManager.m(this.player,"trackschanged",function(){var d=0<c.player.Ab().length;Y(c.button,d);vu(c)});this.eventManager.m(this.player,"variantchanged",function(){vu(c)});uu(this);vu(this)}
937
+ pa(tu,qu);function vu(a){var b=a.player.Ab();hu(b,a.menu,function(c){a.player.nd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.v.trackLabelFormat);pt(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"))}
938
+ function uu(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("LANGUAGE"));a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}L("shaka.ui.AudioLanguageSelection",tu);function wu(){}wu.prototype.create=function(a,b){return new tu(a,b)};nu("language",new wu);function xu(a,b){X.call(this,a,b);var c=this;this.h=this.controls.A;this.g=di();this.g.classList.add("shaka-cast-button");this.g.setAttribute("aria-pressed","false");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");this.l=S("span");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);
939
+ yu(this);zu(this);this.eventManager.m(this.localization,"locale-updated",function(){yu(c)});this.eventManager.m(this.localization,"locale-changed",function(){yu(c)});this.eventManager.m(this.g,"click",function(){Au(c)});this.eventManager.m(this.controls,"caststatuschanged",function(){zu(c)})}pa(xu,X);
940
+ function Au(a){var b;H(function(c){if(1==c.g){if(a.h.na())return a.h.Ye(),c.C(0);y(c,3);a.g.disabled=!0;return t(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=C(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));x(c)})}function zu(a){var b=a.h.pe()&&a.controls.mb,c=a.h.na();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(c?a.g.setAttribute("aria-pressed","true"):a.g.setAttribute("aria-pressed","false"));Bu(a)}
941
+ function Bu(a){a.j.textContent=a.h.na()?a.h.ld():a.localization.resolve("OFF")}function yu(a){a.g.setAttribute("aria-label",a.localization.resolve("CAST"));a.l.textContent=a.localization.resolve("CAST");Bu(a)}L("shaka.ui.CastButton",xu);function Cu(){}Cu.prototype.create=function(a,b){return new xu(a,b)};nu("cast",new Cu);function Du(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.textContent="fast_forward";this.parent.appendChild(this.g);Eu(this);this.eventManager.m(this.localization,"locale-updated",function(){Eu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Eu(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.wc();c.player.le(0>d||4<d?1:2*d)}})}pa(Du,X);
942
+ function Eu(a){a.g.setAttribute("aria-label",a.localization.resolve("FAST_FORWARD"))}L("shaka.ui.FastForwardButton",Du);function Fu(){}Fu.prototype.create=function(a,b){return new Du(a,b)};Nt("fast_forward",new Fu);function Gu(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");document.fullscreenEnabled||this.g.classList.add("shaka-hidden");this.g.textContent="fullscreen";this.parent.appendChild(this.g);Hu(this);this.eventManager.m(this.localization,"locale-updated",function(){Hu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Hu(c)});this.eventManager.m(this.g,"click",function(){return H(function(d){return t(d,
943
+ c.controls.je(),0)})});this.eventManager.m(document,"fullscreenchange",function(){c.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen";Hu(c)})}pa(Gu,X);function Hu(a){a.g.setAttribute("aria-label",a.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN"))}L("shaka.ui.FullscreenButton",Gu);function Iu(){}Iu.prototype.create=function(a,b){return new Gu(a,b)};Nt("fullscreen",new Iu);function Ju(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-loop-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="loop";this.g.appendChild(this.j);var d=S("label");d.classList.add("shaka-overflow-button-label");this.l=S("span");this.l.textContent=this.localization.resolve("LOOP");d.appendChild(this.l);this.i=S("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);Ku(this);this.parent.appendChild(this.g);
944
+ this.eventManager.m(this.localization,"locale-updated",function(){Ku(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ku(c)});this.eventManager.m(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ba();c.h.ia(1)});this.u=this.video.loop;this.h=new O(function(){c.u!=c.video.loop&&(Ku(c),c.u=c.video.loop)});this.h.ia(1)}pa(Ju,X);Ju.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
945
+ function Ku(a){a.l.textContent=a.localization.resolve("LOOP");a.i.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.g.setAttribute("aria-label",a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE"))}L("shaka.ui.LoopButton",Ju);function Lu(){}Lu.prototype.create=function(a,b){return new Ju(a,b)};nu("loop",new Lu);function Mu(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.parent.appendChild(this.g);Nu(this);Ou(this);this.eventManager.m(this.localization,"locale-updated",function(){Nu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Nu(c)});this.eventManager.m(this.g,"click",function(){c.ad?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});this.eventManager.m(this.video,"volumechange",
946
+ function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-muted",function(){Nu(c);Ou(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){c.ad=null;Nu(c);Ou(c)})}pa(Mu,X);function Nu(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.setAttribute("aria-label",a.localization.resolve(b))}
947
+ function Ou(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}L("shaka.ui.MuteButton",Mu);function Pu(){}Pu.prototype.create=function(a,b){return new Mu(a,b)};Nt("mute",new Pu);function Qu(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=di();this.g.classList.add("shaka-pip-button");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);this.h=S("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);
948
+ this.g.appendChild(d);Ru(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.m(this.localization,"locale-updated",function(){Ru(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ru(c)});this.eventManager.m(this.g,"click",function(){Su(c)});this.eventManager.m(this.l,"enterpictureinpicture",function(){c.i.textContent="branding_watermark";c.g.setAttribute("aria-label",c.localization.resolve("EXIT_PICTURE_IN_PICTURE"));
947
949
  c.h.textContent=c.localization.resolve("ON")});this.eventManager.m(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.setAttribute("aria-label",c.localization.resolve("ENTER_PICTURE_IN_PICTURE"));c.h.textContent=c.localization.resolve("OFF")});this.eventManager.m(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&
948
- Y(c.g,!0)});this.eventManager.m(this.player,"trackschanged",function(){Ou(c)})}pa(Lu,X);function Nu(a){var b;G(function(c){if(1==c.g)return y(c,2),document.pictureInPictureElement?t(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),t(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return ua(c,0);b=D(c);a.controls.dispatchEvent(new L("error",{detail:b}));x(c)})}
949
- function Mu(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.setAttribute("aria-label",a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"));a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
950
- function Ou(a){G(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.C(0);if(!a.player||!a.player.Ce())return Y(a.g,!0),b.C(0);Y(a.g,!1);return document.pictureInPictureElement?t(b,document.exitPictureInPicture(),0):b.C(0)})}J("shaka.ui.PipButton",Lu);function Pu(){}Pu.prototype.create=function(a,b){return new Lu(a,b)};iu("picture_in_picture",new Pu);function Qu(a,b){lu.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.eventManager.m(this.localization,"locale-updated",function(){Ru(c)});this.eventManager.m(this.localization,"locale-changed",function(){Ru(c)});this.eventManager.m(this.player,"ratechange",function(){Su(c,c.player.uc())});this.g=new Map([["0.5x",.5],["0.75x",.75],["1x",1],["1.25x",1.25],["1.5x",1.5],["1.75x",1.75],["2x",2]]);Ru(this);
951
- Tu(this);Su(this,this.player.uc())}pa(Qu,lu);function Ru(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("PLAYBACK_RATE"));a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
952
- function Su(a,b){var c=jt(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(lt()),d.setAttribute("aria-selected","true"),c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x"}
953
- function Tu(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={ic:b.ic},d=c.next()){b.ic=d.value;d=ei();var e=R("span");e.textContent=b.ic;d.appendChild(e);a.eventManager.m(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.ic);a.video.defaultPlaybackRate=a.g.get(f.ic)}}(b));a.menu.appendChild(d)}kt(a.menu)}J("shaka.ui.PlaybackRateSelection",Qu);function Uu(){}Uu.prototype.create=function(a,b){return new Qu(a,b)};iu("playback_rate",new Uu);function Vu(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("shaka-current-time");Wu(this,"0:00");this.parent.appendChild(this.g);this.eventManager.m(this.g,"click",function(){c.player.V()&&(c.video.currentTime=c.player.Oa().end)});this.eventManager.m(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.aa,e=c.controls.ye(),f=c.video.duration,g=c.player.Oa(),h=g.end-g.start;c.player.V()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Wu(c,"- "+mt(e,f)),c.g.disabled=
954
- !1):(Wu(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=mt(e,d),f&&(e+=" / "+mt(f,d)),Wu(c,e),c.g.disabled=!0)});this.eventManager.m(this.player,"trackschanged",function(){c.player.V()&&c.g.setAttribute("aria-label",c.localization.resolve("SKIP_TO_LIVE"))})}pa(Vu,X);function Wu(a,b){b!=a.g.textContent&&(a.g.textContent=b)}J("shaka.ui.PresentationTimeTracker",Vu);function Xu(){}Xu.prototype.create=function(a,b){return new Vu(a,b)};It("time_and_duration",new Xu);function Yu(a,b){lu.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.menu.classList.add("shaka-resolutions");this.eventManager.m(this.localization,"locale-updated",function(){Zu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Zu(c)});this.eventManager.m(this.player,"variantchanged",function(){$u(c)});this.eventManager.m(this.player,"trackschanged",function(){$u(c)});this.eventManager.m(this.player,"abrstatuschanged",function(){$u(c)});
955
- $u(this);Zu(this)}pa(Yu,lu);
956
- function $u(a){var b=a.player.yb();if(b.length&&!b[0].height)Y(a.menu,!1),Y(a.button,!1);else{Y(a.button,!0);b.sort(function(k,l){return l.height-k.height});var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height})==l});var d=it(a.menu);fi(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e=
957
- {lc:e.lc},g=f.next()){e.lc=g.value;g=ei();g.classList.add("explicit-resolution");a.eventManager.m(g,"click",function(k){return function(){var l=k.lc;a.player.configure({abr:{enabled:!1}});a.player.Vd(l,a.controls.v.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=e.lc.height+"p";g.appendChild(h);d||e.lc!=c||(g.setAttribute("aria-selected","true"),g.appendChild(lt()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=ei();e.classList.add("shaka-enable-abr-button");
958
- a.eventManager.m(e,"click",function(){a.player.configure({abr:{enabled:!0}});$u(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.setAttribute("aria-selected","true"),e.appendChild(lt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.menu.appendChild(e);kt(a.menu);a.controls.dispatchEvent(new L("resolutionselectionupdated"))}}
959
- function Zu(a){a.button.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backButton.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backSpan.textContent=a.localization.resolve("RESOLUTION");a.nameSpan.textContent=a.localization.resolve("RESOLUTION");a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}J("shaka.ui.ResolutionSelection",Yu);
960
- function av(){}av.prototype.create=function(a,b){return new Yu(a,b)};iu("quality",new av);function bv(a,b){X.call(this,a,b);var c=this;this.g=ei();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.textContent="fast_rewind";this.parent.appendChild(this.g);cv(this);this.eventManager.m(this.localization,"locale-updated",function(){cv(c)});this.eventManager.m(this.localization,"locale-changed",function(){cv(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.uc();c.player.je(0<d||-4>d?-1:2*d)}})}pa(bv,X);
961
- function cv(a){a.g.setAttribute("aria-label",a.localization.resolve("REWIND"))}J("shaka.ui.RewindButton",bv);function dv(){}dv.prototype.create=function(a,b){return new bv(a,b)};It("rewind",new dv);function ev(a,b){X.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=ei();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);fv(this);this.i=new O(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
962
- d:(c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.localization,"locale-updated",function(){fv(c)});this.eventManager.m(this.localization,"locale-changed",function(){fv(c)});this.eventManager.m(this.adManager,"ad-started",function(){gv(c)});this.eventManager.m(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.m(this.g,
963
- "click",function(){c.ad.skip()});this.ad&&gv(this)}pa(ev,X);ev.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function fv(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function gv(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Aa(),a.i.ha(.5))}J("shaka.ui.SkipAdButton",ev);function hv(a,b){qt.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.h();this.g()}pa(hv,qt);hv.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};hv.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
964
- J("shaka.ui.SmallPlayButton",hv);function iv(){}iv.prototype.create=function(a,b){return new hv(a,b)};It("play_pause",new iv);function jv(a,b){X.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.setAttribute("aria-hidden",!0);this.parent.appendChild(c)}pa(jv,X);J("shaka.ui.Spacer",jv);function kv(){}kv.prototype.create=function(a,b){return new jv(a,b)};It("spacer",new kv);function lv(a,b){lu.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Db()?this.button.setAttribute("aria-pressed","true"):this.button.setAttribute("aria-pressed","false");mv(this);this.eventManager.m(this.localization,"locale-updated",function(){nv(c);ov(c)});this.eventManager.m(this.localization,"locale-changed",function(){nv(c);ov(c)});this.eventManager.m(this.player,"texttrackvisibility",
965
- function(){pv(c)});this.eventManager.m(this.player,"textchanged",function(){ov(c)});this.eventManager.m(this.player,"trackschanged",function(){qv(c)});pv(this);nv(this);ov(this);qv(this)}pa(lv,lu);function mv(a){var b=ei();b.setAttribute("aria-selected","true");a.menu.appendChild(b);b.appendChild(lt());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
966
- function pv(a){a.player.Db()?(a.icon.classList.add("shaka-captions-on"),a.icon.classList.remove("shaka-captions-off"),a.button.setAttribute("aria-pressed","true")):(a.icon.classList.add("shaka-captions-off"),a.icon.classList.remove("shaka-captions-on"),a.button.setAttribute("aria-pressed","false"));a.controls.dispatchEvent(new L("captionselectionupdated"))}
967
- function ov(a){var b=a.player.xb();cu(b,a.menu,function(c){return rv(a,c)},a.player.Db(),a.currentSelection,a.localization,a.controls.v.trackLabelFormat);b=ei();b.classList.add("shaka-turn-captions-off-button");a.eventManager.m(b,"click",function(){a.player.be(!1);ov(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Db()||(b.setAttribute("aria-selected","true"),b.appendChild(lt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));kt(a.menu);
968
- a.controls.dispatchEvent(new L("captionselectionupdated"))}function rv(a,b){return G(function(c){a.player.md(b.language,b.roles[0]);return t(c,a.player.be(!0),0)})}function nv(a){a.button.setAttribute("aria-label",a.localization.resolve("CAPTIONS"));a.backButton.setAttribute("aria-label",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")}
969
- function qv(a){var b=0<a.player.xb().length;Y(a.button,b);ov(a)}J("shaka.ui.TextSelection",lv);function sv(){}sv.prototype.create=function(a,b){return new lv(a,b)};iu("captions",new sv);function tv(a,b){ut.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.v=this.controls.v;this.eventManager.m(this.video,"volumechange",function(){return uv(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){return vv(c)});this.eventManager.m(this.adManager,"ad-muted",function(){return vv(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){return uv(c)});this.eventManager.m(this.localization,"locale-updated",function(){return wv(c)});
970
- this.eventManager.m(this.localization,"locale-changed",function(){return wv(c)});uv(this);wv(this);if(this.ad)this.onChange()}pa(tv,ut);tv.prototype.onChange=function(){this.ad?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function uv(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);xv(a)}function vv(a){var b=a.ad.getVolume();a.setValue(b);xv(a)}
971
- function xv(a){var b=a.v.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function wv(a){a.bar.setAttribute("aria-label",a.localization.resolve("VOLUME"))}J("shaka.ui.VolumeBar",tv);function yv(){}yv.prototype.create=function(a,b){return new tv(a,b)};It("volume",new yv);}).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})();
950
+ Y(c.g,!0)});this.eventManager.m(this.player,"trackschanged",function(){Tu(c)})}pa(Qu,X);function Su(a){var b;H(function(c){if(1==c.g)return y(c,2),document.pictureInPictureElement?t(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),t(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return ua(c,0);b=C(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));x(c)})}
951
+ function Ru(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.setAttribute("aria-label",a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"));a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
952
+ function Tu(a){H(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.C(0);if(!a.player||!a.player.Ee())return Y(a.g,!0),b.C(0);Y(a.g,!1);return document.pictureInPictureElement?t(b,document.exitPictureInPicture(),0):b.C(0)})}L("shaka.ui.PipButton",Qu);function Uu(){}Uu.prototype.create=function(a,b){return new Qu(a,b)};nu("picture_in_picture",new Uu);function Vu(a,b){qu.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.eventManager.m(this.localization,"locale-updated",function(){Wu(c)});this.eventManager.m(this.localization,"locale-changed",function(){Wu(c)});this.eventManager.m(this.player,"ratechange",function(){Xu(c,c.player.wc())});this.g=new Map([["0.5x",.5],["0.75x",.75],["1x",1],["1.25x",1.25],["1.5x",1.5],["1.75x",1.75],["2x",2]]);Wu(this);
953
+ Yu(this);Xu(this,this.player.wc())}pa(Vu,qu);function Wu(a){a.backButton.setAttribute("aria-label",a.localization.resolve("BACK"));a.button.setAttribute("aria-label",a.localization.resolve("PLAYBACK_RATE"));a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
954
+ function Xu(a,b){var c=ot(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(qt()),d.setAttribute("aria-selected","true"),c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x"}
955
+ function Yu(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={kc:b.kc},d=c.next()){b.kc=d.value;d=di();var e=S("span");e.textContent=b.kc;d.appendChild(e);a.eventManager.m(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.kc);a.video.defaultPlaybackRate=a.g.get(f.kc)}}(b));a.menu.appendChild(d)}pt(a.menu)}L("shaka.ui.PlaybackRateSelection",Vu);function Zu(){}Zu.prototype.create=function(a,b){return new Vu(a,b)};nu("playback_rate",new Zu);function $u(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("shaka-current-time");av(this,"0:00");this.parent.appendChild(this.g);this.eventManager.m(this.g,"click",function(){c.player.W()&&(c.video.currentTime=c.player.Pa().end)});this.eventManager.m(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.ba,e=c.controls.Ae(),f=c.video.duration,g=c.player.Pa(),h=g.end-g.start;c.player.W()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(av(c,"- "+rt(e,f)),c.g.disabled=
956
+ !1):(av(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=rt(e,d),f&&(e+=" / "+rt(f,d)),av(c,e),c.g.disabled=!0)});this.eventManager.m(this.player,"trackschanged",function(){c.player.W()&&c.g.setAttribute("aria-label",c.localization.resolve("SKIP_TO_LIVE"))})}pa($u,X);function av(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",$u);function bv(){}bv.prototype.create=function(a,b){return new $u(a,b)};Nt("time_and_duration",new bv);function cv(a,b){qu.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.menu.classList.add("shaka-resolutions");this.eventManager.m(this.localization,"locale-updated",function(){dv(c)});this.eventManager.m(this.localization,"locale-changed",function(){dv(c)});this.eventManager.m(this.player,"variantchanged",function(){ev(c)});this.eventManager.m(this.player,"trackschanged",function(){ev(c)});this.eventManager.m(this.player,"abrstatuschanged",function(){ev(c)});
957
+ ev(this);dv(this)}pa(cv,qu);
958
+ function ev(a){var b=a.player.Ab();if(b.length&&!b[0].height)Y(a.menu,!1),Y(a.button,!1);else{Y(a.button,!0);b.sort(function(k,l){return l.height-k.height});var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height})==l});var d=nt(a.menu);ei(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=r(b),g=f.next();!g.done;e=
959
+ {nc:e.nc},g=f.next()){e.nc=g.value;g=di();g.classList.add("explicit-resolution");a.eventManager.m(g,"click",function(k){return function(){var l=k.nc;a.player.configure({abr:{enabled:!1}});a.player.Xd(l,a.controls.v.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=e.nc.height+"p";g.appendChild(h);d||e.nc!=c||(g.setAttribute("aria-selected","true"),g.appendChild(qt()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=di();e.classList.add("shaka-enable-abr-button");
960
+ a.eventManager.m(e,"click",function(){a.player.configure({abr:{enabled:!0}});ev(a)});a.g=S("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.setAttribute("aria-selected","true"),e.appendChild(qt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.menu.appendChild(e);pt(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"))}}
961
+ function dv(a){a.button.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backButton.setAttribute("aria-label",a.localization.resolve("RESOLUTION"));a.backSpan.textContent=a.localization.resolve("RESOLUTION");a.nameSpan.textContent=a.localization.resolve("RESOLUTION");a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",cv);
962
+ function fv(){}fv.prototype.create=function(a,b){return new cv(a,b)};nu("quality",new fv);function gv(a,b){X.call(this,a,b);var c=this;this.g=di();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.textContent="fast_rewind";this.parent.appendChild(this.g);hv(this);this.eventManager.m(this.localization,"locale-updated",function(){hv(c)});this.eventManager.m(this.localization,"locale-changed",function(){hv(c)});this.eventManager.m(this.g,"click",function(){if(c.video.duration){var d=c.player.wc();c.player.le(0<d||-4>d?-1:2*d)}})}pa(gv,X);
963
+ function hv(a){a.g.setAttribute("aria-label",a.localization.resolve("REWIND"))}L("shaka.ui.RewindButton",gv);function iv(){}iv.prototype.create=function(a,b){return new gv(a,b)};Nt("rewind",new iv);function jv(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=di();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);kv(this);this.i=new O(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
964
+ d:(c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.localization,"locale-updated",function(){kv(c)});this.eventManager.m(this.localization,"locale-changed",function(){kv(c)});this.eventManager.m(this.adManager,"ad-started",function(){lv(c)});this.eventManager.m(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.m(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.m(this.g,
965
+ "click",function(){c.ad.skip()});this.ad&&lv(this)}pa(jv,X);jv.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function kv(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function lv(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.Ba(),a.i.ia(.5))}L("shaka.ui.SkipAdButton",jv);function mv(a,b){vt.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.h();this.g()}pa(mv,vt);mv.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};mv.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
966
+ L("shaka.ui.SmallPlayButton",mv);function nv(){}nv.prototype.create=function(a,b){return new mv(a,b)};Nt("play_pause",new nv);function ov(a,b){X.call(this,a,b);var c=S("div");c.classList.add("shaka-spacer");c.setAttribute("aria-hidden",!0);this.parent.appendChild(c)}pa(ov,X);L("shaka.ui.Spacer",ov);function pv(){}pv.prototype.create=function(a,b){return new ov(a,b)};Nt("spacer",new pv);function qv(a,b){qu.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Fb()?this.button.setAttribute("aria-pressed","true"):this.button.setAttribute("aria-pressed","false");rv(this);this.eventManager.m(this.localization,"locale-updated",function(){sv(c);tv(c)});this.eventManager.m(this.localization,"locale-changed",function(){sv(c);tv(c)});this.eventManager.m(this.player,"texttrackvisibility",
967
+ function(){uv(c)});this.eventManager.m(this.player,"textchanged",function(){tv(c)});this.eventManager.m(this.player,"trackschanged",function(){vv(c)});uv(this);sv(this);tv(this);vv(this)}pa(qv,qu);function rv(a){var b=di();b.setAttribute("aria-selected","true");a.menu.appendChild(b);b.appendChild(qt());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
968
+ function uv(a){a.player.Fb()?(a.icon.classList.add("shaka-captions-on"),a.icon.classList.remove("shaka-captions-off"),a.button.setAttribute("aria-pressed","true")):(a.icon.classList.add("shaka-captions-off"),a.icon.classList.remove("shaka-captions-on"),a.button.setAttribute("aria-pressed","false"));a.controls.dispatchEvent(new M("captionselectionupdated"))}
969
+ function tv(a){var b=a.player.zb();hu(b,a.menu,function(c){return wv(a,c)},a.player.Fb(),a.currentSelection,a.localization,a.controls.v.trackLabelFormat);b=di();b.classList.add("shaka-turn-captions-off-button");a.eventManager.m(b,"click",function(){a.player.ee(!1);tv(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Fb()||(b.setAttribute("aria-selected","true"),b.appendChild(qt()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));pt(a.menu);
970
+ a.controls.dispatchEvent(new M("captionselectionupdated"))}function wv(a,b){return H(function(c){a.player.od(b.language,b.roles[0]);return t(c,a.player.ee(!0),0)})}function sv(a){a.button.setAttribute("aria-label",a.localization.resolve("CAPTIONS"));a.backButton.setAttribute("aria-label",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")}
971
+ function vv(a){var b=0<a.player.zb().length;Y(a.button,b);tv(a)}L("shaka.ui.TextSelection",qv);function xv(){}xv.prototype.create=function(a,b){return new qv(a,b)};nu("captions",new xv);function yv(a,b){zt.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.v=this.controls.v;this.eventManager.m(this.video,"volumechange",function(){return zv(c)});this.eventManager.m(this.adManager,"ad-volume-changed",function(){return Av(c)});this.eventManager.m(this.adManager,"ad-muted",function(){return Av(c)});this.eventManager.m(this.adManager,"ad-stopped",function(){return zv(c)});this.eventManager.m(this.localization,"locale-updated",function(){return Bv(c)});
972
+ this.eventManager.m(this.localization,"locale-changed",function(){return Bv(c)});zv(this);Bv(this);if(this.ad)this.onChange()}pa(yv,zt);yv.prototype.onChange=function(){this.ad?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function zv(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Cv(a)}function Av(a){var b=a.ad.getVolume();a.setValue(b);Cv(a)}
973
+ function Cv(a){var b=a.v.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function Bv(a){a.bar.setAttribute("aria-label",a.localization.resolve("VOLUME"))}L("shaka.ui.VolumeBar",yv);function Dv(){}Dv.prototype.create=function(a,b){return new yv(a,b)};Nt("volume",new Dv);}).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})();
972
974
 
973
975
  //# sourceMappingURL=shaka-player.ui.map