shaka-player 4.11.2 → 4.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/locales.js +55 -55
- package/dist/shaka-player.compiled.d.ts +9 -0
- package/dist/shaka-player.compiled.debug.d.ts +9 -0
- package/dist/shaka-player.compiled.debug.externs.js +13 -0
- package/dist/shaka-player.compiled.debug.js +226 -222
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +13 -0
- package/dist/shaka-player.compiled.js +344 -341
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +9 -0
- package/dist/shaka-player.ui.debug.d.ts +9 -0
- package/dist/shaka-player.ui.debug.externs.js +13 -0
- package/dist/shaka-player.ui.debug.js +101 -97
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +13 -0
- package/dist/shaka-player.ui.js +475 -471
- package/dist/shaka-player.ui.map +3 -3
- package/lib/dash/dash_parser.js +3 -3
- package/lib/dash/mpd_utils.js +0 -3
- package/lib/dash/segment_template.js +11 -2
- package/lib/media/presentation_timeline.js +16 -0
- package/lib/media/segment_index.js +4 -4
- package/lib/media/streaming_engine.js +2 -1
- package/lib/player.js +4 -2
- package/lib/text/ttml_text_parser.js +1 -1
- package/lib/util/periods.js +56 -3
- package/lib/util/tXml.js +17 -9
- package/package.json +1 -1
- package/ui/locales/ar-XB.json +1 -1
- package/ui/locales/ar.json +1 -1
- package/ui/locales/bg.json +1 -1
- package/ui/locales/ca.json +5 -5
- package/ui/locales/cs.json +1 -1
- package/ui/locales/da.json +1 -1
- package/ui/locales/de.json +1 -1
- package/ui/locales/el.json +1 -1
- package/ui/locales/en-GB.json +1 -1
- package/ui/locales/en-XA.json +1 -1
- package/ui/locales/es-419.json +4 -4
- package/ui/locales/es.json +4 -4
- package/ui/locales/fa.json +1 -1
- package/ui/locales/fi.json +1 -1
- package/ui/locales/fil.json +1 -1
- package/ui/locales/fr.json +5 -5
- package/ui/locales/hi.json +1 -1
- package/ui/locales/hr.json +1 -1
- package/ui/locales/hu.json +1 -1
- package/ui/locales/id.json +1 -1
- package/ui/locales/it.json +1 -1
- package/ui/locales/iw.json +1 -1
- package/ui/locales/ja.json +1 -1
- package/ui/locales/ko.json +1 -1
- package/ui/locales/lt.json +1 -1
- package/ui/locales/lv.json +1 -1
- package/ui/locales/nl.json +1 -1
- package/ui/locales/no.json +1 -1
- package/ui/locales/pl.json +5 -5
- package/ui/locales/pt-BR.json +7 -7
- package/ui/locales/pt-PT.json +8 -8
- package/ui/locales/ro.json +1 -1
- package/ui/locales/ru.json +1 -1
- package/ui/locales/sk.json +1 -1
- package/ui/locales/sl.json +1 -1
- package/ui/locales/sr.json +1 -1
- package/ui/locales/sv.json +1 -1
- package/ui/locales/th.json +1 -1
- package/ui/locales/tr.json +1 -1
- package/ui/locales/uk.json +1 -1
- package/ui/locales/vi.json +1 -1
- package/ui/locales/zh-HK.json +1 -1
- package/ui/locales/zh-TW.json +1 -1
- package/ui/locales/zh.json +1 -1
package/dist/shaka-player.ui.js
CHANGED
|
@@ -15,10 +15,10 @@ fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
|
|
|
15
15
|
fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
16
16
|
function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function x(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ja;
|
|
17
17
|
if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},ma={};try{ma.__proto__=la;ka=ma.a;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=ja;
|
|
18
|
-
function oa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(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.
|
|
19
|
-
function ra(a,b){a.i={
|
|
20
|
-
function za(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.
|
|
21
|
-
function Da(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.o=!1,e;var f=e.value}catch(g){return a.g.l=null,ra(a.g,g),Fa(a)}a.g.l=null;d.call(a.g,f);return Fa(a)}function Fa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ra(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.
|
|
18
|
+
function oa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(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.cm=b.prototype}function pa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.A=this.i=null}function qa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}pa.prototype.u=function(a){this.h=a};
|
|
19
|
+
function ra(a,b){a.i={Ch:b,Nh:!0};a.g=a.m||a.j}pa.prototype.return=function(a){this.i={return:a};this.g=this.j};function G(a,b,c){a.g=c;return{value:b}}pa.prototype.B=function(a){this.g=a};function H(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function wa(a,b,c){a.g=b;a.m=c||0}function xa(a,b){a.m=b||0;b=a.i.Ch;a.i=null;return b}function ya(a){a.A=[a.i];a.m=0;a.j=0}
|
|
20
|
+
function za(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.Nh?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function Aa(a){this.g=new pa;this.h=a}function Ba(a,b){qa(a.g);var c=a.g.l;if(c)return Da(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Fa(a)}
|
|
21
|
+
function Da(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.o=!1,e;var f=e.value}catch(g){return a.g.l=null,ra(a.g,g),Fa(a)}a.g.l=null;d.call(a.g,f);return Fa(a)}function Fa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ra(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Nh)throw b.Ch;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
|
|
22
22
|
function Ga(a){this.next=function(b){qa(a.g);a.g.l?b=Da(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Fa(a));return b};this.throw=function(b){qa(a.g);a.g.l?b=Da(a,a.g.l["throw"],b,a.g.u):(ra(a.g,b),b=Fa(a));return b};this.return=function(b){return Ba(a,b)};this[Symbol.iterator]=function(){return this}}function Ha(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())})}
|
|
23
23
|
function P(a){return Ha(new Ga(new Aa(a)))}function Ja(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
|
|
24
24
|
fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
|
|
@@ -31,10 +31,10 @@ while(!k.done)})};return b});function Ka(a,b){return Object.prototype.hasOwnProp
|
|
|
31
31
|
fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ka(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({}),
|
|
32
32
|
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(!Ka(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ka(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ka(k,
|
|
33
33
|
g)&&Ka(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ka(k,g)&&Ka(k[g],this.g)?delete k[g][this.g]:!1};return b});
|
|
34
|
-
fa("Map",function(a){function b(){var h={};return h.
|
|
34
|
+
fa("Map",function(a){function b(){var h={};return h.ic=h.next=h.head=h}function c(h,k){var l=h[1];return ha(function(){if(l){for(;l.head!=h[1];)l=l.ic;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[0][l];if(m&&Ka(h[0],l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
|
|
35
35
|
list:m,index:-1,entry:void 0}}function e(h){this[0]={};this[1]=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=
|
|
36
|
-
m.value[0].x||"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[0][l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this[1],
|
|
37
|
-
h.entry.next,h.entry.next.
|
|
36
|
+
m.value[0].x||"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[0][l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this[1],ic:this[1].ic,head:this[1],key:h,value:k},l.list.push(l.entry),this[1].ic.next=l.entry,this[1].ic=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.ic.next=
|
|
37
|
+
h.entry.next,h.entry.next.ic=h.entry.ic,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this[0]={};this[1]=this[1].ic=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&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=
|
|
38
38
|
function(h,k){for(var l=this.entries(),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 La(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return La(this,function(b){return b})}});
|
|
39
39
|
fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
|
|
40
40
|
f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
|
|
@@ -42,7 +42,7 @@ b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(f
|
|
|
42
42
|
fa("Array.prototype.values",function(a){return a?a:function(){return La(this,function(b,c){return c})}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
|
|
43
43
|
function Ma(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+""}fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ma(this,b,"includes").indexOf(b,c||0)}});
|
|
44
44
|
fa("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(0>e||1114111<e||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);65535>=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
|
|
45
|
-
function Na(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{
|
|
45
|
+
function Na(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Lh:e,v:f}}return{Lh:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Na(this,b,c).Lh}});
|
|
46
46
|
fa("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
|
|
47
47
|
fa("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ka(b,d)&&c.push([d,b[d]]);return c}});
|
|
48
48
|
var Oa="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)Ka(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Oa});fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
|
|
@@ -58,8 +58,8 @@ function S(a,b){a=a.split(".");var c=Sa;a[0]in c||"undefined"==typeof c.execScri
|
|
|
58
58
|
*/
|
|
59
59
|
function Ta(){}function Ua(){};function T(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
|
|
60
60
|
function Va(a){var b=new T(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}T.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};T.prototype.stopImmediatePropagation=function(){this.g=!0};T.prototype.stopPropagation=function(){};S("shaka.util.FakeEvent",T);
|
|
61
|
-
var Wa={
|
|
62
|
-
|
|
61
|
+
var Wa={Sk:"abrstatuschanged",Tk:"adaptation",Uk:"audiotrackchanged",Vk:"buffering",Wk:"complete",Xk:"downloadfailed",Yk:"downloadheadersreceived",Zk:"drmsessionupdate",al:"emsg",Dl:"prft",Error:"error",cl:"expirationupdated",fl:"firstquartile",hl:"gapjumped",kl:"keystatuschanged",rl:"loaded",ul:"loading",wl:"manifestparsed",xl:"manifestupdated",yl:"mediaqualitychanged",zl:"mediasourcerecovered",Metadata:"metadata",Al:"midpoint",Bl:"nospatialvideoinfo",Cl:"onstatechange",El:"ratechange",Gl:"segmentappended",
|
|
62
|
+
Hl:"sessiondata",Il:"spatialvideoinfo",Jl:"stalldetected",Kl:"started",Ll:"statechanged",Ml:"streaming",Nl:"textchanged",Ol:"texttrackvisibility",Pl:"thirdquartile",Ql:"timelineregionadded",Rl:"timelineregionenter",Sl:"timelineregionexit",Tl:"trackschanged",Vl:"unloading",Xl:"variantchanged"};function Xa(){}function Ya(){}function Za(){}function $a(a){var b=Ja.apply(1,arguments);bb.has(a)||(bb.add(a),Za.apply(Xa,x(b)))}function cb(){}function db(){}function eb(){}var bb=new Set;window.console&&(Za=function(){return console.warn.apply(console,x(Ja.apply(0,arguments)))},Ya=function(){console.error.apply(console,x(Ja.apply(0,arguments)))});function gb(){this.g={}}q=gb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function hb(){this.Ha=new gb;this.ee=this}hb.prototype.addEventListener=function(a,b){this.Ha&&this.Ha.push(a,b)};hb.prototype.removeEventListener=function(a,b){this.Ha&&this.Ha.remove(a,b)};hb.prototype.dispatchEvent=function(a){if(!this.Ha)return!0;var b=this.Ha.get(a.type)||[],c=this.Ha.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ee;a.currentTarget=this.ee;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
|
|
63
63
|
hb.prototype.release=function(){this.Ha=null};function ib(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function jb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function lb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function mb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
|
|
64
64
|
@license
|
|
65
65
|
Copyright 2008 The Closure Library Authors
|
|
@@ -75,11 +75,11 @@ q.toString=function(){var a=[],b=this.Wb;b&&a.push(wb(b,xb,!0),":");if(b=this.$b
|
|
|
75
75
|
q.resolve=function(a){var b=this.clone();"data"===b.Wb&&(b=new ob);var c=!!a.Wb;c?pb(b,a.Wb):c=!!a.Wc;c?b.Wc=a.Wc:c=!!a.$b;c?qb(b,a.$b):c=null!=a.qd;var d=a.jb;if(c)rb(b,a.qd);else if(c=!!a.jb){if("/"!=d.charAt(0))if(this.$b&&!this.jb)d="/"+d;else{var e=b.jb.lastIndexOf("/");-1!=e&&(d=b.jb.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(""):".."==
|
|
76
76
|
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.jb=d:c=""!==a.g.toString();c?tb(b,a.g.clone()):c=!!a.Fc;c&&(b.Fc=a.Fc);return b};q.clone=function(){return new ob(this)};function pb(a,b,c){a.Wb=c?ub(b,!0):b;a.Wb&&(a.Wb=a.Wb.replace(/:$/,""))}function qb(a,b,c){a.$b=c?ub(b,!0):b}function rb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.qd=b}else a.qd=null}
|
|
77
77
|
function tb(a,b,c){b instanceof vb?a.g=b:(c||(b=wb(b,Bb)),a.g=new vb(b))}function ub(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function wb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Cb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Cb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var xb=/[#\/\?@]/g,zb=/[#\?:]/g,yb=/[#\?]/g,Bb=/[#\?@]/g,Ab=/#/g;function vb(a){this.g=a||null}
|
|
78
|
-
function Db(a){if(!a.
|
|
79
|
-
q.set=function(a,b){Db(this);this.g=null;this.
|
|
80
|
-
q.clone=function(){var a=new vb;a.g=this.g;if(this.
|
|
81
|
-
function Ib(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,Uint8Array)}function
|
|
82
|
-
S("shaka.util.BufferUtils",Fb);Fb.toDataView=Nb;Fb.toUint16=
|
|
78
|
+
function Db(a){if(!a.eb&&(a.eb={},a.Dd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=vb.prototype;q.eb=null;q.Dd=null;function Eb(a){Db(a);return a.Dd}q.add=function(a,b){Db(this);this.g=null;var c=this.eb.hasOwnProperty(a)?this.eb[a]:null;c||(this.eb[a]=c=[]);c.push(b);this.Dd++;return this};
|
|
79
|
+
q.set=function(a,b){Db(this);this.g=null;this.eb.hasOwnProperty(a)?this.eb[a]=[b]:this.add(a,b);return this};q.get=function(a){Db(this);return this.eb[a]||[]};q.toString=function(){if(this.g)return this.g;if(!this.eb)return"";var a=[],b;for(b in this.eb)for(var c=encodeURIComponent(b),d=this.eb[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
|
|
80
|
+
q.clone=function(){var a=new vb;a.g=this.g;if(this.eb){var b={},c;for(c in this.eb)b[c]=this.eb[c].concat();a.eb=b;a.Dd=this.Dd}return a};function Fb(){}function Gb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Hb(a)==Hb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Ib(a);b=Ib(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Hb(a){return a instanceof ArrayBuffer?a:a.buffer}function Jb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
|
|
81
|
+
function Ib(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,Uint8Array)}function Lb(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,Uint16Array)}function Nb(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,DataView)}function Kb(a,b,c,d){var e=Hb(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
|
|
82
|
+
S("shaka.util.BufferUtils",Fb);Fb.toDataView=Nb;Fb.toUint16=Lb;Fb.toUint8=Ib;Fb.toArrayBuffer=Jb;Fb.equal=Gb;function U(a,b,c){var d=Ja.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Ob)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}U.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};S("shaka.util.Error",U);var Ob=!0;U.Severity={RECOVERABLE:1,CRITICAL:2};U.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
|
|
83
83
|
U.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
|
|
84
84
|
CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,
|
|
85
85
|
WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,
|
|
@@ -91,7 +91,7 @@ CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SU
|
|
|
91
91
|
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,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:4001};function Pb(a){this.h=a;this.g=void 0}Pb.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Qb(a,b){return a.length&&b.length&&a!==b?0<Rb(a,b).length:!0}
|
|
92
92
|
function Rb(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
|
|
93
93
|
f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
|
|
94
|
-
function Sb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Tb=new Pb(function(){return Jb(new Uint8Array([0]))}),Ub=new Map;function Vb(a){this.h=a;this.g=null}Vb.prototype.X=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};Vb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Wb(a){this.h=a;this.g=null}Wb.prototype.Sa=function(){this.stop();this.h();return this};Wb.prototype.X=function(a){var b=this;this.stop();this.g=(new Vb(function(){b.h()})).X(a);return this};Wb.prototype.
|
|
94
|
+
function Sb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}var Tb=new Pb(function(){return Jb(new Uint8Array([0]))}),Ub=new Map;function Vb(a){this.h=a;this.g=null}Vb.prototype.X=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};Vb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Wb(a){this.h=a;this.g=null}Wb.prototype.Sa=function(){this.stop();this.h();return this};Wb.prototype.X=function(a){var b=this;this.stop();this.g=(new Vb(function(){b.h()})).X(a);return this};Wb.prototype.Ba=function(a){var b=this;this.stop();this.g=(new Vb(function(){b.g.X(a);b.h()})).X(a);return this};Wb.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};S("shaka.util.Timer",Wb);Wb.prototype.stop=Wb.prototype.stop;Wb.prototype.tickEvery=Wb.prototype.Ba;
|
|
95
95
|
Wb.prototype.tickAfter=Wb.prototype.X;Wb.prototype.tickNow=Wb.prototype.Sa;function Xb(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Yb(a){return""!=Zb().canPlayType(a)}function $b(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function ac(){return bc("Xbox One")}function dc(){return bc("Tizen")}function ec(){return bc("Tizen 3")}function fc(){return bc("Tizen 2")}function gc(){return bc("Web0S")}function hc(){return gc()&&38===ic()}function jc(){return bc("CrKey")}
|
|
96
96
|
function ic(){if(!bc("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function kc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!dc()&&!bc("PC=EOS")&&!bc("PC=APL")&&!bc("VirginMedia")&&!lc()&&!mc()&&!bc("AFT")&&!bc("WPE")&&!bc("DT_STB_BCM")}function nc(){return bc("PlayStation 5")}function mc(){return bc("PlayStation 4")}function oc(){return bc("Hisense")||bc("VIDAA")}
|
|
97
97
|
function lc(){return bc("SOPOpenBrowser")}function pc(){if(!kc())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 qc(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform?navigator.platform.toLowerCase().includes("windows"):!1}function rc(){return bc("Android")}
|
|
@@ -114,7 +114,7 @@ function Mc(a){var b=Ib(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c
|
|
|
114
114
|
function Rc(a,b,c,d){a={keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set};d&&(a.keySystemUris=new Set([d]));return a}
|
|
115
115
|
function Sc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=Jc(Lc(h),!1));var l=g;22!=l.length&&(l=Jc(Lc(g),!1));g={kty:"oct",kid:k,k:l};c.push(g);d.push(g.kid);e.push(h)});a=JSON.stringify({keys:c});var f=JSON.stringify({kids:d});f=[{initData:Ib(Dc(f)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
|
|
116
116
|
audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)}}function Tc(a,b){if(1==b.length)return b[0];a=Uc(a,b);if(null!=a)return a;throw new U(2,4,4025,b);}function Uc(a,b){for(var c=t(Vc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Wc?"":null}
|
|
117
|
-
function Xc(a,b){var c=[];a=t(Vc[a]);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Wc="text",Yc={wa:"video",ka:"audio",Na:Wc,Af:"image",
|
|
117
|
+
function Xc(a,b){var c=[];a=t(Vc[a]);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Wc="text",Yc={wa:"video",ka:"audio",Na:Wc,Af:"image",Qk:"application"},Zc=1/15,Vc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function $c(){}function ad(a,b){a=bd(a);b=bd(b);return a.split("-")[0]==b.split("-")[0]}function cd(a,b){a=bd(a);b=bd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function dd(a,b){a=bd(a);b=bd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
|
|
118
118
|
function bd(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=ed.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function fd(a,b){var c=gd(a),d=gd(b);return a!=c&&b!=d&&c==d}function hd(a,b){a=bd(a);b=bd(b);return b==a?4:cd(b,a)?3:dd(b,a)?2:cd(a,b)?1:0}
|
|
119
119
|
function gd(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=ed.get(a)||a}function id(a){return a.language?bd(a.language):a.audio&&a.audio.language?bd(a.audio.language):a.video&&a.video.language?bd(a.video.language):"und"}
|
|
120
120
|
function jd(a,b){a=bd(a);var c=new Set;b=t(b);for(var d=b.next();!d.done;d=b.next())c.add(bd(d.value));b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,d==a)return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,cd(d,a))return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,dd(d,a))return d;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,cd(a,b))return b;return null}S("shaka.util.LanguageUtils",$c);$c.findClosestLocale=jd;$c.getLocaleForVariant=id;
|
|
@@ -126,15 +126,15 @@ var ed=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
|
|
|
126
126
|
"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",
|
|
127
127
|
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function kd(a){hb.call(this);this.j=bd(a);this.i=new Map;this.g=new Set;this.h=new Map}oa(kd,hb);q=kd.prototype;q.release=function(){hb.prototype.release.call(this)};
|
|
128
128
|
q.rh=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(bd(c.value));md(this);a=mb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new T("unknown-locales",(new Map).set("locales",a)));a=mb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new T("locale-changed",a))};
|
|
129
|
-
q.Pa=function(a,b,c){a=bd(a);void 0===c&&(c=nd);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=nd||d.set(f,e)});this.h.set(a,d);md(this);this.dispatchEvent(new T("locale-updated"));return this};q.
|
|
130
|
-
q.
|
|
129
|
+
q.Pa=function(a,b,c){a=bd(a);void 0===c&&(c=nd);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=nd||d.set(f,e)});this.h.set(a,d);md(this);this.dispatchEvent(new T("locale-updated"));return this};q.tk=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new T("unknown-localization",a));return""};
|
|
130
|
+
q.gj=function(){return this.g};
|
|
131
131
|
function md(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f=t(d),g=f.next(),h={};!g.done;h={Qd:void 0},g=f.next()){h.Qd=g.value;e.add(h.Qd);e.add(gd(h.Qd));g=mb(b.keys(),function(l){return function(m){return fd(m,l.Qd)}}(h));g.sort();g=t(g);for(var k=g.next();!k.done;k=g.next())e.add(k.value);h=mb(b.keys(),function(l){return function(m){return gd(m)==l.Qd}}(h));h.sort();h=t(h);for(g=h.next();!g.done;g=h.next())e.add(g.value)}e.add(c);c=[];e=t(e);for(f=e.next();!f.done;f=e.next())(f=b.get(f.value))&&c.push(f);
|
|
132
|
-
c.reverse();a.i.clear();b=t(c);for(e=b.next();!e.done;e=b.next())e.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(f=c.next();!f.done;f=c.next())f=a.h.get(f.value)||new Map,od(f,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new T("missing-localizations",d)))}function od(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}S("shaka.ui.Localization",kd);kd.prototype.getCurrentLocales=kd.prototype.
|
|
133
|
-
kd.prototype.resolve=kd.prototype.resolve;kd.prototype.resolveDictionary=kd.prototype.
|
|
134
|
-
q.
|
|
132
|
+
c.reverse();a.i.clear();b=t(c);for(e=b.next();!e.done;e=b.next())e.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(f=c.next();!f.done;f=c.next())f=a.h.get(f.value)||new Map,od(f,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new T("missing-localizations",d)))}function od(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}S("shaka.ui.Localization",kd);kd.prototype.getCurrentLocales=kd.prototype.gj;
|
|
133
|
+
kd.prototype.resolve=kd.prototype.resolve;kd.prototype.resolveDictionary=kd.prototype.tk;kd.prototype.insert=kd.prototype.Pa;kd.prototype.changeLocale=kd.prototype.rh;kd.prototype.release=kd.prototype.release;var nd=1;kd.ConflictResolution={USE_OLD:0,USE_NEW:nd};kd.UNKNOWN_LOCALES="unknown-locales";kd.UNKNOWN_LOCALIZATION="unknown-localization";kd.MISSING_LOCALIZATIONS="missing-localizations";kd.LOCALE_CHANGED="locale-changed";kd.LOCALE_UPDATED="locale-updated";function pd(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}pd.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function qd(a){return a.h/(1-Math.pow(a.g,a.i))};function rd(){this.h=new pd(2);this.j=new pd(5);this.g=0;this.i=128E3;this.l=16E3}rd.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};rd.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};rd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(qd(this.h),qd(this.j))};function sd(){this.g=new gb}q=sd.prototype;q.release=function(){this.Za();this.g=null};q.s=function(a,b,c,d){this.g&&(a=new td(a,b,c,d),this.g.push(b,a))};q.na=function(a,b,c,d){function e(g){f.Ma(a,b,e);c(g)}var f=this;this.s(a,b,e,d)};q.Ma=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ma(),this.g.remove(b,e))}};
|
|
134
|
+
q.Za=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,x(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Ma();this.g.g={}}};S("shaka.util.EventManager",sd);sd.prototype.removeAll=sd.prototype.Za;sd.prototype.unlisten=sd.prototype.Ma;sd.prototype.listenOnce=sd.prototype.na;sd.prototype.listen=sd.prototype.s;sd.prototype.release=sd.prototype.release;function td(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=ud(a,d);this.target.addEventListener(b,c,this.g)}
|
|
135
135
|
td.prototype.Ma=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function ud(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 vd(a)?b:b.capture||!1}
|
|
136
136
|
function vd(a){var b=wd;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}wd=b}return b||!1}var wd=void 0;function xd(a){if(yd.has(a))return yd.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);yd.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),yd.set(a,b),b):!1}function zd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var yd=new Map;function Ad(a,b){this.g=a;this.h=b}Ad.prototype.toString=function(){return"v"+this.g+"."+this.h};function Bd(a,b){var c=new Ad(5,0),d=Cd,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Dd(a,b,c,d){Za([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ed(a,b,c,d){Ya([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Cd=null;function Fd(){}Fd.prototype.extract=function(){};Fd.prototype.decode=function(){return[]};Fd.prototype.clear=function(){};Fd.prototype.getStreams=function(){return[]};function Gd(){}Gd.prototype.init=function(){};Gd.prototype.parse=function(){return[]};function Hd(){}Hd.prototype.init=function(){};Hd.prototype.i=function(){};Hd.prototype.g=function(){};Hd.prototype.j=function(){};S("shaka.media.IClosedCaptionParser",Hd);function Id(a){this.l=new Gd;if(a=Jd[a.toLowerCase()])this.l=a();this.h=new Fd;if(a=Kd)this.h=a()}Id.prototype.init=function(a,b){(void 0===b?0:b)||this.g();this.l.init(a)};Id.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Ib(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
|
|
137
|
-
Id.prototype.g=function(){this.h.clear()};Id.prototype.j=function(){return this.h.getStreams()};S("shaka.media.ClosedCaptionParser",Id);Id.findDecoder=function(){return Kd};Id.unregisterDecoder=function(){Kd=null};Id.registerDecoder=function(a){Kd=a};Id.findParser=function(a){return Jd[a]};Id.unregisterParser=function(a){delete Jd[a]};Id.registerParser=function(a,b){Jd[a]=b};var Jd={},Kd=null;function Ld(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Md;this.scroll=Od}S("shaka.text.CueRegion",Ld);var Md=1;Ld.units={PX:0,PERCENTAGE:Md,LINES:2};var Od="";Ld.scrollMode={NONE:Od,UP:"up"};function Qd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Rd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Sd(a,b,c){c||(c=Qd);if(a.length!=b.length)return!1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={
|
|
137
|
+
Id.prototype.g=function(){this.h.clear()};Id.prototype.j=function(){return this.h.getStreams()};S("shaka.media.ClosedCaptionParser",Id);Id.findDecoder=function(){return Kd};Id.unregisterDecoder=function(){Kd=null};Id.registerDecoder=function(a){Kd=a};Id.findParser=function(a){return Jd[a]};Id.unregisterParser=function(a){delete Jd[a]};Id.registerParser=function(a,b){Jd[a]=b};var Jd={},Kd=null;function Ld(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Md;this.scroll=Od}S("shaka.text.CueRegion",Ld);var Md=1;Ld.units={PX:0,PERCENTAGE:Md,LINES:2};var Od="";Ld.scrollMode={NONE:Od,UP:"up"};function Qd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Rd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Sd(a,b,c){c||(c=Qd);if(a.length!=b.length)return!1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={Ph:void 0},d=a.next()){e.Ph=d.value;d=b.findIndex(function(f){return function(g){return c(f.Ph,g)}}(e));if(-1==d)return!1;b[d]=b[b.length-1];b.pop()}return 0==b.length}
|
|
138
138
|
function Td(a,b,c){c||(c=Qd);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 Ud(a){this.h=a||"";this.g=0}function Vd(a){Wd(a,/[ \t]+/gm)}function Wd(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function Xd(a){return a.g==a.h.length?null:(a=Wd(a,/[^ \t\n]*/gm))?a[0]:null}
|
|
139
139
|
function Yd(a){a=Wd(a,Zd);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:(Number(a[6])||0)/1E3+c+60*b+3600*(Number(a[1])||0)}function $d(a){return a?Yd(new Ud(a)):null}var Zd=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function ae(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 instanceof ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function be(a){var b={},c;for(c in a)b[c]=a[c];return b};/*
|
|
140
140
|
@license
|
|
@@ -142,20 +142,20 @@ function Yd(a){a=Wd(a,Zd);if(null==a)return null;var b=Number(a[2]),c=Number(a[3
|
|
|
142
142
|
Copyright 2015 Tobias Nickel
|
|
143
143
|
SPDX-License-Identifier: MIT
|
|
144
144
|
*/
|
|
145
|
-
function ce(a,b){a=Cc(a);return de(a,b)}function de(a,b){a=ee(a);return!b&&a.length?a[0]:(a=a.find(function(
|
|
146
|
-
function ee(a){function
|
|
147
|
-
45!=a.charCodeAt(
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
function ce(a,b){var c=void 0===c?!1:c;a=Cc(a);return de(a,b,c)}function de(a,b,c){a=ee(a,void 0===c?!1:c);return!b&&a.length?a[0]:(a=a.find(function(d){return b.split(",").includes(d.tagName)}))?a:null}function he(a){return ie.has(a)?ie.get(a):""}
|
|
146
|
+
function ee(a,b){function c(f,g){g=void 0===g?!1:g;for(var h=[];a[e];)if(60==a.charCodeAt(e)){if(47===a.charCodeAt(e+1)){g=e+2;e=a.indexOf(">",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0<l&&(k=g.indexOf(f.substring(0,l)))}if(-1==k)throw f=a.substring(0,e).split("\n"),Error("Unexpected close tag\nLine: "+(f.length-1)+"\nColumn: "+(f[f.length-1].length+1)+"\nChar: "+a[e]);e+1&&(e+=1);break}else if(33===a.charCodeAt(e+1)){if(45==a.charCodeAt(e+2)){for(;-1!==e&&(62!==a.charCodeAt(e)||
|
|
147
|
+
45!=a.charCodeAt(e-1)||45!=a.charCodeAt(e-2)||-1==e);)e=a.indexOf(">",e+1);-1===e&&(e=a.length)}else if(91===a.charCodeAt(e+2)&&91===a.charCodeAt(e+8)&&"cdata"===a.substr(e+3,5).toLowerCase()){k=a.indexOf("]]\x3e",e);-1==k?(h.push(a.substr(e+9)),e=a.length):(h.push(a.substring(e+9,k)),e=k+3);continue}e++;continue}a:{l=g;e++;var m=d(),n={};for(k=[];62!==a.charCodeAt(e)&&a[e];){var p=a.charCodeAt(e);if(64<p&&91>p||96<p&&123>p){p=d();for(var r=a.charCodeAt(e);r&&39!==r&&34!==r&&!(64<r&&91>r||96<r&&123>
|
|
148
|
+
r)&&62!==r;)e++,r=a.charCodeAt(e);var u=e+1;e=a.indexOf(a[e],u);u=a.slice(u,e);if(39===r||34===r){if(-1===e){l={tagName:m,attributes:n,children:k,parent:null};if(b)for(m=0;m<k.length;m++)"string"!==typeof k[m]&&(k[m].parent=l);k=l;break a}}else u=null,e--;if(p.startsWith("xmlns:")){r=u;var v=p.split(":")[1];ie.set(r,v);le.set(v,r)}"tt"===m&&"xml:space"===p&&"preserve"===u&&(l=!0);n[p]=u}e++}47!==a.charCodeAt(e-1)?(e++,k=c(m,l)):e++;l={tagName:m,attributes:n,children:k,parent:null};m=k.length;for(n=
|
|
149
|
+
0;n<m;n++)p=k[n],"string"!==typeof p?b&&(p.parent=l):n==m-1&&"\n"==p&&k.pop();k=l}h.push(k);if("string"===typeof k)break;"?"===k.tagName[0]&&k.children&&(h.push.apply(h,x(k.children)),k.children=[])}else k=e,e=a.indexOf("<",e)-1,-2===e&&(e=a.length),k=a.slice(k,e+1),g?0<k.length&&h.push(k):h.length&&1==k.length&&"\n"==k[0]?h.push(k):0<k.trim().length&&h.push(k),e++;return h}function d(){for(var f=e;-1==="\r\n\t>/= ".indexOf(a[e])&&a[e];)e++;return a.slice(f,e)}var e=0;return c("")}
|
|
150
150
|
function me(a){return"string"===typeof a}function ne(a){var b=[];if(!a.children)return[];a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function oe(a,b){var c=[];if(!a.children)return[];a=t(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function pe(a){if("string"===typeof a)return Gc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:Gc(a)}
|
|
151
151
|
function qe(a){if(!Array.from(a.children).every(function(b){return"string"===typeof b}))return null;(a=pe(a))&&(a=a.trim());return a}function re(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=t(a.children);for(var d=a.next();!d.done;d=a.next())re(d.value,b,c)}return c}function se(a,b){a=oe(a,b);return 1!=a.length?null:a[0]}function te(a,b,c){a=ue(a,b,c);return 1!=a.length?null:a[0]}
|
|
152
152
|
function ve(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function we(a,b,c){b=he(b);return a.attributes[b+":"+c]||null}function ue(a,b,c){b=he(b);var d=[];if(a.children){a=t(a.children);for(var e=a.next();!e.done;e=a.next())(e=e.value)&&e.tagName===b+":"+c&&d.push(e)}return d}function xe(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=we(a,d.value,c))return d;return null}
|
|
153
153
|
function ye(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function ze(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
|
|
154
154
|
function Ae(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function Be(a){a=Number(a);return 0===a%1?a:null}function Ce(a){a=Number(a);return 0===a%1&&0<a?a:null}function De(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Ee(a){a=Number(a);return isNaN(a)?null:a}function Fe(a){return a?"true"===a.toLowerCase():!1}
|
|
155
155
|
function Ge(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
|
|
156
|
-
function He(a){var b=[];a=Gc(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.match(/^([\w]+)/);if(d){var e=c.match(/(@id='(.*?)')/),f=c.match(/(@t='(\d+)')/),g=c.match(/(@n='(\d+)')/),h=c.match(/\[(\d+)\]/);b.push({name:d[0],id:e?e[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:f?Number(f[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:g?Number(g[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:h?Number(h[1])-1:null,
|
|
157
|
-
null})}else c.startsWith("@")&&b.length&&(b[b.length-1].
|
|
158
|
-
function Ie(a,b){var c=He(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null==c&&(null!==d.t&&(c=Je(a,"t",d.t)),null!==d.n&&(c=Je(a,"n",d.n)));null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.
|
|
156
|
+
function He(a){var b=[];a=Gc(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.match(/^([\w]+)/);if(d){var e=c.match(/(@id='(.*?)')/),f=c.match(/(@t='(\d+)')/),g=c.match(/(@n='(\d+)')/),h=c.match(/\[(\d+)\]/);b.push({name:d[0],id:e?e[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:f?Number(f[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:g?Number(g[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:h?Number(h[1])-1:null,nc:c.split("/@")[1]||
|
|
157
|
+
null})}else c.startsWith("@")&&b.length&&(b[b.length-1].nc=c.slice(1))}return b}
|
|
158
|
+
function Ie(a,b){var c=He(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null==c&&(null!==d.t&&(c=Je(a,"t",d.t)),null!==d.n&&(c=Je(a,"n",d.n)));null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.nc)&&a[c]?Ke(a[c],e,d,qe(b)||""):("remove"!==e&&"replace"!==e||a.splice(c,1),"add"!==e&&"replace"!==e||a.splice.apply(a,[c,0].concat(x(b.children))))}}
|
|
159
159
|
function Je(a,b,c){var d=0;a=t(a);for(var e=a.next();!e.done;e=a.next()){if(Number(e.value.attributes[b])===c)return d;d++}return null}function Ke(a,b,c,d){if("remove"===b)delete a.attributes[c];else if("add"===b||"replace"===b)a.attributes[c]=d}
|
|
160
160
|
function Oe(a){var b="",c=a.tagName.split(":");0<c.length&&(b=c[0],b=le.has(b)?le.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=t(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,"string"==typeof d?c=new Text(d):c=Oe(d),b.appendChild(c);return b}
|
|
161
161
|
function Pe(a){if(!a)return null;var b={tagName:a.tagName,attributes:be(a.attributes),children:[],parent:null};a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"===typeof c?b.children.push(c):(c=Pe(c),c.parent=b,b.children.push(c));return b}var ie=new Map,le=new Map;function Re(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Ld;this.position=null;this.positionAlign=Se;this.size=0;this.textAlign=Te;this.direction=Ue;this.writingMode=Ve;this.lineInterpretation=We;this.line=null;this.lineHeight="";this.lineAlign=Xe;this.displayAlign=Ye;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Ze;this.fontStyle=$e;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
|
|
@@ -186,7 +186,7 @@ function $f(a,b,c,d){var e=a.variants;if(b.length||c.length)e=eg(e,b,c);if(d.len
|
|
|
186
186
|
e.next())g=g.value,g.audio&&c.add(g.audio),g.video&&b.add(g.video);c=Array.from(c).sort(function(v,w){return v.bandwidth-w.bandwidth});var h=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=If(m.codecs),p=If(g.codecs);n!=p||g.bandwidth&&m.bandwidth&&!(g.bandwidth>m.bandwidth)||(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);
|
|
187
187
|
e.set(k,l)}var r={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,av01:.75,"dovi-av1":.7,vvc:.65};c=Array.from(b).sort(function(v,w){if(!v.bandwidth||!w.bandwidth||v.bandwidth==w.bandwidth){if(v.codecs&&w.codecs&&v.codecs!=w.codecs&&v.width==w.width){var y=If(v.codecs),z=If(w.codecs);if(y!=z)return(r[y]||1)-(r[z]||1)}return v.width-w.width}return v.bandwidth-w.bandwidth});b=zd();var u=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||
|
|
188
188
|
"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=If(m.codecs),p=If(g.codecs),n!==p))continue;g.width>m.width||g.height>m.height?(l.push(g),u.push(g.id)):g.width==m.width&&g.height==m.height&&(n=If(m.codecs),p=If(g.codecs),n!=p||g.bandwidth&&m.bandwidth&&!(g.bandwidth>m.bandwidth)||(l.push(g),u.push(g.id)))}else l.push(g),u.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(v){var w=v.audio;v=v.video;return w&&!h.includes(w.id)||v&&!u.includes(v.id)?!1:!0})}
|
|
189
|
-
function eg(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={
|
|
189
|
+
function eg(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={Hi:void 0},d=b.next())if(e.Hi=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Hi)}}(e)),d.length){a=d;break}c=t(c);b=c.next();for(d={};!b.done;d={nh:void 0},b=c.next())if(d.nh=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.nh)}}(d)),b.length){a=b;break}return a}function fg(a,b,c){a.variants=a.variants.filter(function(d){return gg(d,b,c)})}
|
|
190
190
|
function gg(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)||
|
|
191
191
|
!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function hg(a,b,c){c=void 0===c?[]:c;return P(function(d){if(1==d.g)return G(d,ig(a,b,0<b.offlineSessionIds.length,c),2);jg(b);return G(d,kg(b),0)})}function ig(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return ac()&&lg(b.variants),G(g,mg(b.variants,c,!1,d),2);e=null;a&&(f=a.g)&&(e=f.keySystem);b.variants=b.variants.filter(function(h){var k=ng(h,e);if(!k){var l=[];h.audio&&l.push(og(h.audio));h.video&&l.push(og(h.video))}return k});H(g)})}
|
|
192
192
|
function lg(a){var b={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1",dvc1:"vvc1",dvi1:"vvi1"},c=new Set;a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&c.add(d.video);c=t(c);for(a=c.next();!a.done;a=c.next()){a=a.value;d=t(Object.keys(b));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a.codecs.includes(e)){a.codecs=a.codecs.replace(e,b[e]);break}}}
|
|
@@ -196,8 +196,8 @@ function sg(a,b){var c,d,e,f,g,h,k;return P(function(l){if(1==l.g){c=function(m,
|
|
|
196
196
|
null;n=t(n||[]);for(var r=n.next();!r.done;r=n.next())p=c(p,r.value);p&&(m.cache[m.oe]=p,d=c(d,p))}}(h)));return G(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);H(l)})}
|
|
197
197
|
function ug(a){var b=[""];a.video&&(b=Mf(a.video.contentType).split(","));var c=[""];a.audio&&(c=Mf(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f=t(c),g=f.next(),h={};!g.done;h={$c:void 0},g=f.next())g=g.value,h.$c=ae(a),a.video&&(h.$c.video.contentType=Bf(Lf(h.$c.video.contentType),e)),a.audio&&(h.$c.audio.contentType=Bf(Lf(h.$c.audio.contentType),g)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.$c).then(function(n){l(n)}).catch(m)}}(h)))}return Promise.all(d).catch(function(){JSON.stringify(a);
|
|
198
198
|
return null})}
|
|
199
|
-
function mg(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D;return P(function(E){switch(E.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return E.return();f=t(d);g=f.next();h={};case 2:if(g.done){E.B(4);break}h.
|
|
200
|
-
return G(E,sg(n,v),9);case 9:u=r.next();E.B(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();E.B(5);break;case 7:if(k)return E.return();h={
|
|
199
|
+
function mg(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D;return P(function(E){switch(E.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return E.return();f=t(d);g=f.next();h={};case 2:if(g.done){E.B(4);break}h.ai=g.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){E.B(7);break}n=m.value;p=vg(n,b,c).filter(function(F){return function(L){L=L[0];return(L.keySystemConfiguration&&L.keySystemConfiguration.keySystem)===F.ai}}(h));r=t(p);u=r.next();case 8:if(u.done){E.B(10);break}v=u.value;
|
|
200
|
+
return G(E,sg(n,v),9);case 9:u=r.next();E.B(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();E.B(5);break;case 7:if(k)return E.return();h={ai:void 0};g=f.next();E.B(2);break;case 4:w=t(a),y=w.next();case 12:if(y.done){E.B(0);break}z=y.value;C=vg(z,b,c).filter(function(F){F=F[0];F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});A=t(C);B=A.next();case 15:if(B.done){y=w.next();E.B(12);break}D=B.value;return G(E,sg(z,D),16);case 16:B=A.next(),E.B(15)}})}
|
|
201
201
|
function vg(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=t(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Mf(k);if(l.includes(",")&&!d){var m=l.split(","),n=Lf(k);l=Tc("video",m);m=Tc("audio",m);m=qg(m,n);n=Ef(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=pg(l);k={contentType:Ef(Lf(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction=
|
|
202
202
|
"srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}e.colorGamut&&(k.colorGamut=e.colorGamut);f.push(k)}if(d)for(h=t(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Lf(l),l=qg(Mf(l),k),k=Ef(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=t(f);for(k=f.next();!k.done;k=f.next())for(k=
|
|
203
203
|
k.value,l=t(g),n=l.next();!n.done;n=l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=t(g);for(f=g.next();!f.done;f=g.next())f=f.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=t(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];n=t(h);for(m=n.next();!m.done;m=
|
|
@@ -229,7 +229,7 @@ for(var f=isNaN(this.C)?1:Math.abs(this.C),g=f*e.bandwidth/this.g.bandwidthDowng
|
|
|
229
229
|
q.segmentDownloaded=function(a,b,c){a<this.g.cacheLoadThreshold||(this.j.sample(a,b),c&&null!=this.l&&this.i&&Qg(this))};q.trySuggestStreams=function(){null!=this.l&&this.i&&Qg(this)};
|
|
230
230
|
q.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);if(navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth)return a;a=this.j.getBandwidthEstimate(a);return this.m?this.m.getBandwidthEstimate(a):a};q.setVariants=function(a){this.u=a};q.playbackRateChanged=function(a){this.C=a};
|
|
231
231
|
q.setMediaElement=function(a){var b=this;this.o=a;this.h&&(this.h.disconnect(),this.h=null);this.o&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.X(Rg)}),this.h.observe(this.o))};q.setCmsdManager=function(a){this.m=a};q.configure=function(a){this.g=a;this.j&&this.g&&this.j.configure(this.g.advanced)};
|
|
232
|
-
function Qg(a){if(!a.I){var b=a.j;if(!(b.g>=b.i))return;a.I=!0;a.l-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.l<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.A(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))}function Og(a,b,c,d,e){if(a.m){var f=a.m.
|
|
232
|
+
function Qg(a){if(!a.I){var b=a.j;if(!(b.g>=b.i))return;a.I=!0;a.l-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.l<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.A(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))}function Og(a,b,c,d,e){if(a.m){var f=a.m.Hh();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return gg(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
|
|
233
233
|
function Pg(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}S("shaka.abr.SimpleAbrManager",Ng);Ng.prototype.configure=Ng.prototype.configure;Ng.prototype.setCmsdManager=Ng.prototype.setCmsdManager;Ng.prototype.setMediaElement=Ng.prototype.setMediaElement;Ng.prototype.playbackRateChanged=Ng.prototype.playbackRateChanged;Ng.prototype.setVariants=Ng.prototype.setVariants;
|
|
234
234
|
Ng.prototype.getBandwidthEstimate=Ng.prototype.getBandwidthEstimate;Ng.prototype.trySuggestStreams=Ng.prototype.trySuggestStreams;Ng.prototype.segmentDownloaded=Ng.prototype.segmentDownloaded;Ng.prototype.disable=Ng.prototype.disable;Ng.prototype.enable=Ng.prototype.enable;Ng.prototype.chooseVariant=Ng.prototype.chooseVariant;Ng.prototype.init=Ng.prototype.init;Ng.prototype.release=Ng.prototype.release;Ng.prototype.stop=Ng.prototype.stop;var Rg=1;S("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});S("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Sg(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Sg.prototype.add=function(a,b,c){return Tg(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
|
|
235
235
|
function Tg(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||e.spatialAudio!==f.spatialAudio||c&&!Ug(e,f)||!Vg(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||Ug(a,b))&&Vg(a.roles,b.roles)));return d?!1:!0}Sg.prototype.values=function(){return this.g.values()};
|
|
@@ -243,36 +243,36 @@ function mh(a){var b,c;return P(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,
|
|
|
243
243
|
function th(a){return new oh(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}oh.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
|
|
244
244
|
oh.prototype.Ua=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=uh(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new nh,g=new U(2,7,7001);this.promise.then(c(!0),c(!1));return new oh(f,function(){return d()})};
|
|
245
245
|
function uh(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()}}}ea.Object.defineProperties(oh.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g}}});S("shaka.util.AbortableOperation",oh);oh.prototype.chain=oh.prototype.Ua;oh.prototype["finally"]=oh.prototype.finally;
|
|
246
|
-
oh.all=th;oh.prototype.abort=oh.prototype.abort;oh.notAbortable=sh;oh.completed=rh;oh.aborted=qh;oh.failed=ph;function vh(){this.g=[]}function wh(a,b){a.g.push(b.finally(function(){Rd(a.g,b)}))}vh.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function xh(a,b,c,d,e,f){hb.call(this);this.i=!1;this.o=new vh;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.C=c||null;this.G=d||null;this.I=e||null;this.H=f||null;this.u=this.A=!1;this.m=16E3}oa(xh,hb);q=xh.prototype;q.Vg=function(a){this.A=a};q.Wg=function(a){this.u=a};function yh(a,b,c,d){c=c||zh;var e=Bh[a];if(!e||c>=e.priority)Bh[a]={priority:c,Xe:b,
|
|
247
|
-
function Ch(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}q.
|
|
246
|
+
oh.all=th;oh.prototype.abort=oh.prototype.abort;oh.notAbortable=sh;oh.completed=rh;oh.aborted=qh;oh.failed=ph;function vh(){this.g=[]}function wh(a,b){a.g.push(b.finally(function(){Rd(a.g,b)}))}vh.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function xh(a,b,c,d,e,f){hb.call(this);this.i=!1;this.o=new vh;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.C=c||null;this.G=d||null;this.I=e||null;this.H=f||null;this.u=this.A=!1;this.m=16E3}oa(xh,hb);q=xh.prototype;q.Vg=function(a){this.A=a};q.Wg=function(a){this.u=a};function yh(a,b,c,d){c=c||zh;var e=Bh[a];if(!e||c>=e.priority)Bh[a]={priority:c,Xe:b,fk:void 0===d?!1:d}}
|
|
247
|
+
function Ch(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}q.ik=function(a){this.g.add(a)};q.Lk=function(a){this.g.delete(a)};q.uh=function(){this.g.clear()};q.jk=function(a){this.h.add(a)};q.Mk=function(a){this.h.delete(a)};q.vh=function(){this.h.clear()};
|
|
248
248
|
function Dh(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();hb.prototype.release.call(this);return this.o.destroy()};
|
|
249
249
|
q.request=function(a,b,c){var d=this,e=new Eh;if(this.i){var f=Promise.reject(new U(2,7,7001));f.catch(function(){});return new Fh(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ae(b.retryParameters):lh();b.uris=ae(b.uris);f=Gh(this,a,b,c);var g=f.Ua(function(){return Hh(d,a,b,c,new kh(b.retryParameters,!1),0,null,e)}),h=g.Ua(function(p){return Ih(d,a,p,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
|
|
250
|
-
var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Ua(function(p){var r=Date.now()-m,u=p.response;u.timeMs+=l;u.timeMs+=r;p.
|
|
250
|
+
var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Ua(function(p){var r=Date.now()-m,u=p.response;u.timeMs+=l;u.timeMs+=r;p.Jj||!d.l||u.fromCache||"HEAD"==b.method||a!=Jh||d.l(u.timeMs,u.data.byteLength,Kh(c));d.H&&d.H(a,u,c);return u},function(p){p&&(p.severity=2);throw p;});f=new Fh(n.promise,function(){return n.abort()},e);wh(this.o,f);return f};
|
|
251
251
|
function Gh(a,b,c,d){function e(h){f=f.Ua(function(){c.body&&(c.body=Jb(c.body));return h(b,c,d)})}var f=rh(void 0);a.G&&e(a.G);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Ua(void 0,function(h){if(h instanceof U&&7001==h.code)throw h;throw new U(2,1,1006,h);})}
|
|
252
|
-
function Hh(a,b,c,d,e,f,g,h){a.A&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.u&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.I&&a.I(b,d,c.uris[f],c.uris[f-1]);var k=new ob(c.uris[f]),l=k.Wb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),pb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=Bh[l])?l.Xe:null;if(!n)return ph(new U(2,1,1E3,k));var p=l.
|
|
252
|
+
function Hh(a,b,c,d,e,f,g,h){a.A&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.u&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.I&&a.I(b,d,c.uris[f],c.uris[f-1]);var k=new ob(c.uris[f]),l=k.Wb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),pb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=Bh[l])?l.Xe:null;if(!n)return ph(new U(2,1,1E3,k));var p=l.fk,r=null,u=null,v=!1,w=!1,y;return sh(mh(e)).Ua(function(){if(a.i)return qh();y=Date.now();var z=0;c.requestStartTime=Date.now();
|
|
253
253
|
var C=n(c.uris[f],c,b,function(D,E,F){r&&r.stop();u&&u.X(B/1E3);a.l&&b==Jh&&(z++,c.packetNumber=z,a.l(D,E,Kh(d),c),m=!0,h.g=F)},function(D){a.j&&a.j(D,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime},{minBytesForProgressEvents:a.m});if(!p)return C;var A=c.retryParameters.connectionTimeout;A&&(r=new Wb(function(){v=!0;C.abort()}),r.X(A/1E3));var B=c.retryParameters.stallTimeout;B&&(u=new Wb(function(){v=!0;C.abort()}));return C}).Ua(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=
|
|
254
|
-
Date.now()-y);var C={response:z,
|
|
255
|
-
function Ih(a,b,c,d){var e=rh(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g={
|
|
256
|
-
xh.prototype.request=xh.prototype.request;xh.prototype.destroy=xh.prototype.destroy;xh.makeRequest=Dh;xh.defaultRetryParameters=function(){return lh()};xh.prototype.clearAllResponseFilters=xh.prototype.vh;xh.prototype.unregisterResponseFilter=xh.prototype.
|
|
254
|
+
Date.now()-y);var C={response:z,Jj:m};!w&&a.j&&a.j(z.headers,c,b);return C},function(z){r&&r.stop();u&&u.stop();if(a.C){var C=null,A=0;z instanceof U&&(C=z,1001==z.code&&(A=z.data[1]));a.C(c,C,A,v)}if(a.i)return qh();v&&(z=new U(1,1,1003,c.uris[f],b));if(z instanceof U){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity)return C=(new Map).set("error",z),C=new T("retry",C),a.dispatchEvent(C),f=(f+1)%c.uris.length,Hh(a,b,c,d,e,f,z,h)}throw z;})}
|
|
255
|
+
function Ih(a,b,c,d){var e=rh(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g={gi:void 0},f=a.next())g.gi=f.value,e=e.Ua(function(h){return function(){var k=c.response;k.data&&(k.data=Jb(k.data));return(0,h.gi)(b,k,d)}}(g));return e.Ua(function(){return c},function(h){var k=2;if(h instanceof U){if(7001==h.code)throw h;k=h.severity}throw new U(k,1,1007,h);})}function Kh(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.u)return!1}return!0}S("shaka.net.NetworkingEngine",xh);
|
|
256
|
+
xh.prototype.request=xh.prototype.request;xh.prototype.destroy=xh.prototype.destroy;xh.makeRequest=Dh;xh.defaultRetryParameters=function(){return lh()};xh.prototype.clearAllResponseFilters=xh.prototype.vh;xh.prototype.unregisterResponseFilter=xh.prototype.Mk;xh.prototype.registerResponseFilter=xh.prototype.jk;xh.prototype.clearAllRequestFilters=xh.prototype.uh;xh.prototype.unregisterRequestFilter=xh.prototype.Lk;xh.prototype.registerRequestFilter=xh.prototype.ik;xh.unregisterScheme=function(a){delete Bh[a]};
|
|
257
257
|
xh.registerScheme=yh;xh.prototype.setForceHTTPS=xh.prototype.Wg;xh.prototype.setForceHTTP=xh.prototype.Vg;function Eh(){this.g=0}xh.NumBytesRemainingClass=Eh;function Fh(a,b,c){oh.call(this,a,b);this.h=c}oa(Fh,oh);xh.PendingRequest=Fh;var Jh=1;xh.RequestType={MANIFEST:0,SEGMENT:Jh,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};
|
|
258
258
|
xh.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var zh=3;xh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:zh};var Bh={};function Lh(a){this.g=!1;this.h=new nh;this.i=a}Lh.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 Mh(a,b){if(a.g){if(b instanceof U&&7003==b.code)throw b;throw new U(2,7,7003,b);}};function Ph(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Qh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Rh(a,b){this.h=Nb(a);this.i=b==Sh;this.g=0}q=Rh.prototype;q.Ea=function(){return this.g<this.h.byteLength};q.Oa=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.Z=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Th();}};q.ya=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Th();}};q.T=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};
|
|
259
|
-
q.
|
|
260
|
-
q.skip=function(a){if(this.g+a>this.h.byteLength)throw Th();this.g+=a};q.
|
|
261
|
-
Rh.prototype.skip=Rh.prototype.skip;Rh.prototype.readBytes=Rh.prototype.Pb;Rh.prototype.readUint64=Rh.prototype.rd;Rh.prototype.readInt32=Rh.prototype.
|
|
259
|
+
q.ci=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};q.rd=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Th();}if(2097151<b)throw new U(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Pb=function(a){if(this.g+a>this.h.byteLength)throw Th();var b=Ib(this.h,this.g,a);this.g+=a;return b};
|
|
260
|
+
q.skip=function(a){if(this.g+a>this.h.byteLength)throw Th();this.g+=a};q.vk=function(a){if(this.g<a)throw Th();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Th();this.g=a};q.Rc=function(){for(var a=this.g;this.Ea()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Ib(this.h,a,this.g-a);this.g+=1;return zc(a)};function Th(){return new U(2,3,3E3)}S("shaka.util.DataViewReader",Rh);Rh.prototype.readTerminatedString=Rh.prototype.Rc;Rh.prototype.seek=Rh.prototype.seek;Rh.prototype.rewind=Rh.prototype.vk;
|
|
261
|
+
Rh.prototype.skip=Rh.prototype.skip;Rh.prototype.readBytes=Rh.prototype.Pb;Rh.prototype.readUint64=Rh.prototype.rd;Rh.prototype.readInt32=Rh.prototype.ci;Rh.prototype.readUint32=Rh.prototype.T;Rh.prototype.readUint16=Rh.prototype.ya;Rh.prototype.readUint8=Rh.prototype.Z;Rh.prototype.getLength=Rh.prototype.getLength;Rh.prototype.getPosition=Rh.prototype.Oa;Rh.prototype.hasMoreData=Rh.prototype.Ea;var Sh=1;Rh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Sh};function Uh(){this.i=[];this.h=[];this.g=!1}q=Uh.prototype;q.box=function(a,b){a=Vh(a);this.i[a]=Wh;this.h[a]=b;return this};q.W=function(a,b){a=Vh(a);this.i[a]=Xh;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Rh(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.od(0,a,b,c)};
|
|
262
262
|
q.od=function(a,b,c,d){var e=b.Oa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.T(),g=b.T(),h=Yh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Oa()+8>b.getLength()){this.g=!0;return}f=b.rd();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Xh){if(d&&b.Oa()+4>b.getLength()){this.g=!0;return}n=b.T();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Oa(),b=0<d?b.Pb(d):new Uint8Array(0),b=new Rh(b,0),l({name:h,parser:this,
|
|
263
263
|
partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Oa(),b.getLength()-b.Oa()))}};function Zh(a){for(var b=$h(a);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}function ai(a){for(var b=$h(a),c=a.reader.T(),d=0;d<c&&(a.parser.od(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function bi(a){var b=$h(a);for(a.reader.skip(78);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}
|
|
264
264
|
function ci(a){var b=$h(a);a.reader.skip(8);var c=a.reader.ya();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}function di(a){return function(b){a(b.reader.Pb(b.reader.getLength()-b.reader.Oa()))}}function Vh(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Yh(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
|
|
265
265
|
function $h(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",Uh);Uh.headerSize=$h;Uh.typeToString=Yh;Uh.allData=di;Uh.audioSampleEntry=ci;Uh.visualSampleEntry=bi;Uh.sampleDescription=ai;Uh.children=Zh;Uh.prototype.parseNext=Uh.prototype.od;Uh.prototype.parse=Uh.prototype.parse;Uh.prototype.stop=Uh.prototype.stop;Uh.prototype.fullBox=Uh.prototype.W;Uh.prototype.box=Uh.prototype.box;var Wh=0,Xh=1;function ei(a){var b=this;this.g=[];this.h=[];this.data=[];(new Uh).box("moov",Zh).box("moof",Zh).W("pssh",function(c){if(!(1<c.version)){var d=Ib(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Mc(c.reader.Pb(16)));if(0<c.version){d=c.reader.T();for(var e=0;e<d;e++){var f=Mc(c.reader.Pb(16));b.h.push(f)}}}}).parse(a)}
|
|
266
|
-
function fi(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Nb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function gi(a){var b=this;this.G=a;this.J=new Set;this.m=this.u=null;this.ia=this.aa=!1;this.K=0;this.g=null;this.C=new sd;this.i=new Map;this.A=new Map;this.l=new nh;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.Y=new Map;this.ha=new Map;this.N=new Wb(function(){return hi(b)});this.P=!1;this.O=[];this.
|
|
266
|
+
function fi(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Nb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function gi(a){var b=this;this.G=a;this.J=new Set;this.m=this.u=null;this.ia=this.aa=!1;this.K=0;this.g=null;this.C=new sd;this.i=new Map;this.A=new Map;this.l=new nh;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.Y=new Map;this.ha=new Map;this.N=new Wb(function(){return hi(b)});this.P=!1;this.O=[];this.V=!1;this.L=new Wb(function(){ii(b)});this.l.catch(function(){});this.j=new Lh(function(){return ji(b)});this.$=!1;this.H=this.I=null;this.S=function(){return!1}}
|
|
267
267
|
q=gi.prototype;q.destroy=function(){return this.j.destroy()};function ji(a){return P(function(b){switch(b.g){case 1:return a.C.release(),a.C=null,a.l.reject(),a.L.stop(),a.L=null,a.N.stop(),a.N=null,G(b,ki(a),2);case 2:if(!a.m){b.B(3);break}ta(b,4);return G(b,a.m.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:xa(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.$=!1,a.I=null,H(b)}})}
|
|
268
|
-
q.configure=function(a,b){this.h=a;b&&(this.S=b);this.L&&this.L.
|
|
268
|
+
q.configure=function(a,b){this.h=a;b&&(this.S=b);this.L&&this.L.Ba(this.h.updateExpirationTime)};function li(a,b,c){a.ia=!0;a.A=new Map;a.P=c;return mi(a,b)}function ni(a,b,c){a.A=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.A.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.P=0<a.A.size;return mi(a,b)}
|
|
269
269
|
function oi(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return pi(a,g,[])}
|
|
270
270
|
function mi(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;return P(function(B){if(1==B.g){if(c=qi(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(D){return D.video&&D.video.drmInfos.length||D.audio&&D.audio.drmInfos.length?!0:!1});g||(h=Ph(a.h.servers),ri(b,h));k=new Set;l=t(b);for(m=l.next();!m.done;m=l.next())for(n=m.value,p=si(n),r=t(p),u=r.next();!u.done;u=r.next())v=u.value,k.add(v);w=t(k);for(y=w.next();!y.done;y=
|
|
271
271
|
w.next())z=y.value,ti(z,Ph(a.h.servers),Ph(a.h.advanced||{}),a.h.keySystemsMapping);return G(B,mg(b,a.P,a.$,a.h.preferredKeySystems),2)}Mh(a.j);C=g||Object.keys(a.h.servers).length;if(!C)return a.aa=!0,B.return(Promise.resolve());A=pi(a,void 0,b);return B.return(g?A:A.catch(function(){}))})}
|
|
272
272
|
function ui(a){var b;return P(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.I){c.B(2);break}return G(c,a.I,3);case 3:return Mh(a.j),c.return();case 2:return ta(c,4),a.I=a.m.setMediaKeys(a.u),G(c,a.I,6);case 6:wa(c,5);break;case 4:b=xa(c),a.o(new U(2,6,6003,b.message));case 5:Mh(a.j),H(c)}})}function vi(a,b){return P(function(c){if(1==c.g)return G(c,ui(a),2);wi(a,b.initDataType,Ib(b.initData));H(c)})}
|
|
273
|
-
q.Yb=function(a){var b=this;return P(function(c){if(1==c.g){if(!b.u)return b.C.na(a,"encrypted",function(){b.o(new U(2,6,6010))}),c.return();b.m=a;b.C.na(b.m,"play",function(){for(var d=t(b.O),e=d.next();!e.done;e=d.next())xi(b,e.value);b.
|
|
273
|
+
q.Yb=function(a){var b=this;return P(function(c){if(1==c.g){if(!b.u)return b.C.na(a,"encrypted",function(){b.o(new U(2,6,6010))}),c.return();b.m=a;b.C.na(b.m,"play",function(){for(var d=t(b.O),e=d.next();!e.done;e=d.next())xi(b,e.value);b.V=!0;b.O=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.C.s(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ki(b)});b.H=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.H||"com.apple.fps"!==b.g.keySystem||
|
|
274
274
|
b.A.size?G(c,ui(b),2):c.B(2)}yi(b).catch(function(){});b.H||b.A.size||b.h.parseInbandPsshEnabled||b.C.s(b.m,"encrypted",function(d){return vi(b,d)});H(c)})};
|
|
275
|
-
function zi(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=Dh([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.G.
|
|
275
|
+
function zi(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=Dh([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.G.hc.request(5,b,{isPreload:a.S()});return G(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ib(d.data);wa(g,4);break;case 3:throw e=xa(g),new U(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
|
|
276
276
|
ta(g,6);return G(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=xa(g),new U(2,6,6004,f.message);}})}function Ai(a,b){var c,d,e;return P(function(f){if(1==f.g)return G(f,Bi(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Bb=new nh,d.push(e.Bb);d.push(c.remove());return G(f,Promise.all(d),3)}a.i.delete(c);H(f)})}
|
|
277
277
|
function yi(a){var b,c,d,e,f;return P(function(g){if(1==g.g){if(!a.A.size)return g.B(2);a.A.forEach(function(h,k){Bi(a,k,h)});return G(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Ci(a))return g.return(a.l);a.l=new nh;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,wi(a,f.initDataType,f.initData);Di(a)&&a.l.resolve();return g.return(a.l)})}
|
|
278
278
|
function wi(a,b,c){if(c.length){if(a.h.ignoreDuplicateInitData){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Gb(c,e.value.initData))return}0<a.i.size&&Di(a)&&(a.l.resolve(),a.l=new nh,a.l.catch(function(){}));Ei(a,b,c,a.g.sessionType)}}function Fi(a){a=a.i.keys();a=ib(a,function(b){return b.sessionId});return Array.from(a)}
|
|
@@ -282,17 +282,17 @@ f.keySystem;var B=d.get(f.keySystem);var D=[],E=[],F=[],L=[],J=[],K=new Set,I=ne
|
|
|
282
282
|
0<I.size&&(A.keySystemUris=I);B=t(B);for(I=B.next();!I.done;I=B.next())I=I.value,I.distinctiveIdentifierRequired&&(A.distinctiveIdentifierRequired=I.distinctiveIdentifierRequired),I.persistentStateRequired&&(A.persistentStateRequired=I.persistentStateRequired);B=A}else B=f.keySystem,I=b.get(f.keySystem),A=[],D=[],E=[],F=[],L=[],J=new Set,Ii(I.drmInfos,A,D,F,E,L,J),B={keySystem:B,encryptionScheme:A[0],licenseServerUri:D[0],distinctiveIdentifierRequired:"required"==I.distinctiveIdentifier,persistentStateRequired:"required"==
|
|
283
283
|
I.persistentState,sessionType:I.sessionTypes[0]||"temporary",audioRobustness:(I.audioCapabilities?I.audioCapabilities[0].robustness:"")||"",videoRobustness:(I.videoCapabilities?I.videoCapabilities[0].robustness:"")||"",serverCertificate:F[0],serverCertificateUri:E[0],initData:L,keyIds:J};a.g=B;if(!a.g.licenseServerUri)throw new U(2,6,6012,a.g.keySystem);return G(C,f.createMediaKeys(),6);case 6:v=C.h;Mh(a.j);a.u=v;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.u)){C.B(7);break}ta(C,8);return G(C,
|
|
284
284
|
a.u.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),10);case 10:w=C.h;if("usable"!=w)throw new U(2,6,6018);Mh(a.j);wa(C,7,4);break;case 8:y=xa(C,4);if(y instanceof U)throw y;throw new U(2,6,6019,y.message);case 7:return a.aa=!0,G(C,zi(a),11);case 11:Mh(a.j);wa(C,0);break;case 4:z=xa(C);Mh(a.j,z);a.g=null;a.J.clear();if(z instanceof U)throw z;throw new U(2,6,6002,z.message);}})}
|
|
285
|
-
function Gi(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){e=t(si(e.value));for(var f=e.next();!f.done;f=e.next())f=f.value,c.has(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f)}if(1==c.size&&c.has(""))throw new U(2,6,6E3);a=t(a.h.preferredKeySystems);e=a.next();for(d={};!e.done;d={
|
|
286
|
-
l
|
|
285
|
+
function Gi(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){e=t(si(e.value));for(var f=e.next();!f.done;f=e.next())f=f.value,c.has(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f)}if(1==c.size&&c.has(""))throw new U(2,6,6E3);a=t(a.h.preferredKeySystems);e=a.next();for(d={};!e.done;d={bi:void 0},e=a.next())for(d.bi=e.value,e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
|
|
286
|
+
l.bi}}(d)))return f.keySystemAccess;a=t([!0,!1]);for(d=a.next();!d.done;d=a.next())for(d=d.value,e=t(b),f=e.next();!f.done;f=e.next()){f=t(f.value.decodingInfos);for(var g=f.next();!g.done;g=f.next())if(g=g.value,g.supported&&g.keySystemAccess){var h=c.get(g.keySystemAccess.keySystem);h=t(h);for(var k=h.next();!k.done;k=h.next())if(!!k.value.licenseServerUri==d)return g.keySystemAccess}}return null}
|
|
287
287
|
function Hi(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y;return P(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new U(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.B(4);break}k=h.value;if(!b.has(k)){z.B(3);break}l=b.get(k);ta(z,6);return G(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
|
|
288
288
|
z.h,z.return(c);case 6:xa(z);case 7:Mh(a.j);case 3:h=g.next();z.B(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.B(11);break}p=n.value;r=t(b.keys());u=r.next();case 12:if(u.done){n=m.next();z.B(9);break}v=u.value;w=b.get(v);y=w.drmInfos.some(function(C){return!!C.licenseServerUri});if(y!=p){z.B(13);break}ta(z,15);return G(z,navigator.requestMediaKeySystemAccess(v,[w]),17);case 17:return c=z.h,z.return(c);case 15:xa(z);case 16:Mh(a.j);case 13:u=r.next();z.B(12);break;case 11:return z.return(c)}})}
|
|
289
289
|
function qi(a){a=Ph(a.h.clearKeys);return 0==a.size?null:Sc(a)}function Ji(a){Di(a)&&a.l.resolve()}function Ki(a,b){(new Wb(function(){b.loaded=!0;Ji(a)})).X(Li)}
|
|
290
|
-
function Bi(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new U(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.C.s(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.
|
|
290
|
+
function Bi(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new U(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.C.s(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.V?a.O.push(n):xi(a,n)});a.C.s(d,"keystatuseschange",function(n){return Mi(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Fg:Infinity,Bb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return G(m,
|
|
291
291
|
d.load(b),4);case 4:return g=m.h,Mh(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new U(h,6,6013)),f.loaded=!0),Ki(a,f),Ji(a),m.return(d);case 2:k=xa(m),Mh(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new U(l,6,6005,k.message)),f.loaded=!0,Ji(a);case 3:return m.return(Promise.resolve())}})}
|
|
292
|
-
function Ei(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.o(new U(2,6,6005,f.message));return}a.C.s(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.
|
|
292
|
+
function Ei(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.o(new U(2,6,6005,f.message));return}a.C.s(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.V?a.O.push(f):xi(a,f)});a.C.s(e,"keystatuseschange",function(f){return Mi(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Fg:Infinity,Bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof U||(b=new U(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&Jc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
|
|
293
293
|
var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.o(new U(2,6,6006,f.message,f,h))}})}
|
|
294
294
|
function xi(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v;P(function(w){switch(w.g){case 1:c=b.target;a.h.logLicenseExchange&&Jc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Dh([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]=
|
|
295
|
-
f.headers[h];if(Sb(a.g.keySystem)){var y=Ac(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=de(y,"PlayReadyKeyMessage");var z=re(y,"HttpHeader");z=t(z);for(var C=z.next();!C.done;C=z.next()){var A=C.value;C=re(A,"name")[0];A=re(A,"value")[0];g.headers[pe(C)]=pe(A)}y=re(y,"Challenge")[0];g.body=Kc(pe(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}k=Date.now();ta(w,2);m=a.G.
|
|
295
|
+
f.headers[h];if(Sb(a.g.keySystem)){var y=Ac(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=de(y,"PlayReadyKeyMessage");var z=re(y,"HttpHeader");z=t(z);for(var C=z.next();!C.done;C=z.next()){var A=C.value;C=re(A,"name")[0];A=re(A,"value")[0];g.headers[pe(C)]=pe(A)}y=re(y,"Challenge")[0];g.body=Kc(pe(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}k=Date.now();ta(w,2);m=a.G.hc.request(2,g,{isPreload:a.S()});return G(w,m.promise,4);case 4:l=w.h;wa(w,3);break;case 2:n=xa(w);if(a.j.g)return w.return();
|
|
296
296
|
p=new U(2,6,6007,n);1==a.i.size?(a.o(p),d&&d.Bb&&d.Bb.reject(p)):(d&&d.Bb&&d.Bb.reject(p),a.i.delete(c),Di(a)&&(a.l.resolve(),a.N.X(.1)));return w.return();case 3:if(a.j.g)return w.return();a.K+=(Date.now()-k)/1E3;a.h.logLicenseExchange&&Jc(l.data);ta(w,5);return G(w,c.update(l.data),7);case 7:wa(w,6);break;case 5:return r=xa(w),u=new U(2,6,6008,r.message),a.o(u),d&&d.Bb&&d.Bb.reject(u),w.return();case 6:if(a.j.g)return w.return();v=new T("drmsessionupdate");a.G.onEvent(v);d&&(d.Bb&&d.Bb.resolve(),
|
|
297
297
|
Ki(a,d));H(w)}})}
|
|
298
298
|
function Mi(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Sb(a.g.keySystem)&&16==g.byteLength&&($b()||mc())){h=Nb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=Mc(g).slice(0,32);a.Y.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Bb&&(a.i.delete(b),b.close().catch(function(){}));Di(a)&&
|
|
@@ -321,18 +321,18 @@ function Ri(a,b,c){this.h=a;this.i=b;this.g=c}function Si(a,b){return P(function
|
|
|
321
321
|
function Ui(a,b){var c=a.h.restrictions;a=a.i;var d=!1;b=t(b.variants);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=gg(e,c,a);f!=e.allowedByApplication&&(d=!0)}return d}function Ti(a,b){var c=Ui(a,b);if(b){var d=a.g?a.g.g:null;if(d&&a.g.u)for(var e=t(b.variants),f=e.next();!f.done;f=e.next())f=f.value,Vi(a,d.keySystem,f.video),Vi(a,d.keySystem,f.audio);Wi(a,b)}return c}
|
|
322
322
|
function Vi(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,wi(a.g,e.initDataType,e.initData)}}}
|
|
323
323
|
function Wi(a,b){a=a.g?a.g.ze():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?Xi.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
|
|
324
|
-
missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new U(2,4,4012,a);}var Xi=["output-restricted","internal-error"];function Yi(){}function Zi(a,b){if(b){var c=$i[b.toLowerCase()];if(c)return c}throw new U(2,4,4E3,a,b);}S("shaka.media.ManifestParser",Yi);Yi.unregisterParserByMime=function(a){delete $i[a]};Yi.registerParserByMime=function(a,b){$i[a]=b};Yi.registerParserByExtension=function(){Bd("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};Yi.AccessibilityPurpose={
|
|
324
|
+
missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new U(2,4,4012,a);}var Xi=["output-restricted","internal-error"];function Yi(){}function Zi(a,b){if(b){var c=$i[b.toLowerCase()];if(c)return c}throw new U(2,4,4E3,a,b);}S("shaka.media.ManifestParser",Yi);Yi.unregisterParserByMime=function(a){delete $i[a]};Yi.registerParserByMime=function(a,b){$i[a]=b};Yi.registerParserByExtension=function(){Bd("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};Yi.AccessibilityPurpose={Wl:"visually impaired",il:"hard of hearing"};var $i={};function aj(a,b){function c(){f=!0}function d(m){h.push(m);Zh(m)}var e=a=Ib(a),f=!1,g,h=[],k=[];(new Uh).box("moov",d).box("trak",d).box("mdia",d).box("minf",d).box("stbl",d).W("stsd",function(m){g=m;h.push(m);ai(m)}).W("encv",c).W("enca",c).W("dvav",function(m){k.push({box:m,ib:1701733238})}).W("dva1",function(m){k.push({box:m,ib:1701733238})}).W("dvh1",function(m){k.push({box:m,ib:1701733238})}).W("dvhe",function(m){k.push({box:m,ib:1701733238})}).W("dvc1",function(m){k.push({box:m,ib:1701733238})}).W("dvi1",
|
|
325
325
|
function(m){k.push({box:m,ib:1701733238})}).W("hev1",function(m){k.push({box:m,ib:1701733238})}).W("hvc1",function(m){k.push({box:m,ib:1701733238})}).W("avc1",function(m){k.push({box:m,ib:1701733238})}).W("avc3",function(m){k.push({box:m,ib:1701733238})}).W("ac-3",function(m){k.push({box:m,ib:1701733217})}).W("ec-3",function(m){k.push({box:m,ib:1701733217})}).W("ac-4",function(m){k.push({box:m,ib:1701733217})}).W("mp4a",function(m){k.push({box:m,ib:1701733217})}).parse(a);if(f)return a;if(0==k.length||
|
|
326
326
|
!g)throw eb(Mc(a)),new U(2,3,3019,b);k.reverse();b=t(k);for(var l=b.next();!l.done;l=b.next())l=l.value,e=bj(e,g,l.box,h,l.ib);return $b()&&qc()?(b=new Uint8Array(a.byteLength+e.byteLength),b.set(e),b.set(a,e.byteLength),b):e}
|
|
327
327
|
function bj(a,b,c,d,e){var f=cj.value(),g=a.subarray(c.start,c.start+c.size),h=Nb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Nb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);dj(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=ac()||$b()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,dj(e,d.start,d.size+k.byteLength);k=Nb(e,b.start);b=$h(b);
|
|
328
|
-
a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Nb(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 cj=new Pb(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 ej(a,b,c,d,e,f,g){this.R=a;this
|
|
328
|
+
a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Nb(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 cj=new Pb(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 ej(a,b,c,d,e,f,g){this.R=a;this.$a=b;this.La=c;this.md=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}ej.prototype.Hb=function(){return this.$a};ej.prototype.Eb=function(){return this.La};ej.prototype.Id=function(){return this.g};function fj(a,b){return a===b?!0:a&&b?a.Hb()==b.Hb()&&a.Eb()==b.Eb()&&Td(a.R().sort(),b.R().sort())&&Gb(a.Id(),b.Id()):a==b}S("shaka.media.InitSegmentReference",ej);
|
|
329
329
|
ej.prototype.getEndByte=ej.prototype.Eb;ej.prototype.getStartByte=ej.prototype.Hb;
|
|
330
|
-
function gj(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?hj:r;this.startTime=a;this.j=this.endTime=b;this.H=c;this
|
|
331
|
-
this.o&&this.g.length&&this.g[this.g.length-1].
|
|
332
|
-
q.ld=function(){this.l=!1};q.
|
|
333
|
-
q.bh=function(a){null==this.h?Ya("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.
|
|
334
|
-
gj.prototype.getThumbnailSprite=gj.prototype.
|
|
335
|
-
gj.prototype.markAsPreload=gj.prototype.Cg;gj.prototype.markAsUnavailable=gj.prototype.
|
|
330
|
+
function gj(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?hj:r;this.startTime=a;this.j=this.endTime=b;this.H=c;this.$a=d;this.La=e;this.ma=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.C=void 0===n?null:n;this.h=void 0===p?null:p;this.status=r;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.A=null;this.i=0;this.o=void 0===v?!1:v;this.I=this.u=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Uh();
|
|
331
|
+
this.o&&this.g.length&&this.g[this.g.length-1].Th();this.G=this.bandwidth=this.mimeType=this.codecs=null}q=gj.prototype;q.R=function(){return this.H()};q.getStartTime=function(){return this.startTime};q.ij=function(){return this.endTime};q.Hb=function(){return this.$a};q.Eb=function(){return this.La};q.Cj=function(){return this.tilesLayout};q.Bj=function(){return this.C};q.sc=function(){return this.status};q.Yj=function(){this.status=ij};q.Cg=function(){this.preload=!0};q.isPreload=function(){return this.preload};
|
|
332
|
+
q.ld=function(){this.l=!1};q.Oj=function(){return this.l};q.Uh=function(){this.u=!0};q.Qj=function(){return this.u};q.Th=function(){this.I=!0};q.Pj=function(){return this.I};q.Sh=function(){this.m=!0};q.Kj=function(){return this.m};q.ri=function(a){this.A=a};q.Aj=function(){return this.A};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
|
|
333
|
+
q.bh=function(a){null==this.h?Ya("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Hk=function(a){this.G=a};q.Id=function(){return this.G};function jj(a,b){a.ma=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())jj(c.value,b)}S("shaka.media.SegmentReference",gj);gj.prototype.getSegmentData=gj.prototype.Id;gj.prototype.setSegmentData=gj.prototype.Hk;gj.prototype.syncAgainst=gj.prototype.bh;gj.prototype.offset=gj.prototype.offset;
|
|
334
|
+
gj.prototype.getThumbnailSprite=gj.prototype.Aj;gj.prototype.setThumbnailSprite=gj.prototype.ri;gj.prototype.hasByterangeOptimization=gj.prototype.Kj;gj.prototype.markAsByterangeOptimization=gj.prototype.Sh;gj.prototype.isLastPartial=gj.prototype.Pj;gj.prototype.markAsLastPartial=gj.prototype.Th;gj.prototype.isPartial=gj.prototype.Qj;gj.prototype.markAsPartial=gj.prototype.Uh;gj.prototype.isIndependent=gj.prototype.Oj;gj.prototype.markAsNonIndependent=gj.prototype.ld;gj.prototype.isPreload=gj.prototype.isPreload;
|
|
335
|
+
gj.prototype.markAsPreload=gj.prototype.Cg;gj.prototype.markAsUnavailable=gj.prototype.Yj;gj.prototype.getStatus=gj.prototype.sc;gj.prototype.getTileDuration=gj.prototype.Bj;gj.prototype.getTilesLayout=gj.prototype.Cj;gj.prototype.getEndByte=gj.prototype.Eb;gj.prototype.getStartByte=gj.prototype.Hb;gj.prototype.getEndTime=gj.prototype.ij;gj.prototype.getStartTime=gj.prototype.getStartTime;gj.prototype.getUris=gj.prototype.R;var hj=0,ij=1;gj.Status={Rk:hj,Ul:ij,vl:2};function kj(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function lj(a){return!a||kj(a)?null:a.length?a.end(a.length-1):null}function mj(a,b){return!a||!a.length||kj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function nj(a,b){if(!a||!a.length||kj(a))return 0;var c=0;a=t(oj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
|
|
336
336
|
function pj(a,b,c){if(!a||!a.length||kj(a))return null;a=oj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function oj(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
|
|
337
337
|
@license
|
|
338
338
|
Shaka Player
|
|
@@ -344,8 +344,8 @@ function uj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
|
|
|
344
344
|
d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Ib(a.data,1,d));a=zc(Ib(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Ib(a.data,1,d));a=zc(Ib(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=zc(Ib(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
|
|
345
345
|
c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Jb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=zc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=zc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Jb(a.data),b):null}
|
|
346
346
|
function vj(a){for(var b=0,c=[];rj(a,b);){var d=tj(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=tj(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=uj(e))&&c.push(f);b+=e.size+10}sj(a,b)&&(b+=10)}return c}function wj(a,b){for(var c=b=void 0===b?0:b,d=0;rj(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=tj(a,b+6),sj(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}S("shaka.util.Id3Utils",qj);qj.getID3Data=wj;
|
|
347
|
-
qj.getID3Frames=vj;function xj(a,b){var c=null,d=null,e=null,f=a.T();b&1&&(e=a.rd());b&2&&a.skip(4);b&8&&(c=a.T());b&16&&(d=a.T());return{trackId:f,Ed:c,ue:d,
|
|
348
|
-
function Aj(a,b,c){var d=a.T(),e=[],f=null;c&1&&(f=a.T());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Og:null,sampleSize:null,bf:null};c&256&&(h.Og=a.T());c&512&&(h.sampleSize=a.T());c&1024&&a.skip(4);c&2048&&(h.bf=0==b?a.T():a.
|
|
347
|
+
qj.getID3Frames=vj;function xj(a,b){var c=null,d=null,e=null,f=a.T();b&1&&(e=a.rd());b&2&&a.skip(4);b&8&&(c=a.T());b&16&&(d=a.T());return{trackId:f,Ed:c,ue:d,Yl:e}}function yj(a,b){return 1==b?(b=a.T(),a=a.T(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.T()}}function zj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.T();a.skip(4);a=a.ya();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
|
|
348
|
+
function Aj(a,b,c){var d=a.T(),e=[],f=null;c&1&&(f=a.T());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Og:null,sampleSize:null,bf:null};c&256&&(h.Og=a.T());c&512&&(h.sampleSize=a.T());c&1024&&a.skip(4);c&2048&&(h.bf=0==b?a.T():a.ci());e.push(h)}return{bm:d,ii:e,Xi:f}}function Bj(a){a.skip(6);a.skip(2);a.skip(8);var b=a.ya();a.skip(2);a.skip(2);a.skip(2);a=a.ya()+a.ya()/65536;return{channelCount:b,sampleRate:a}}function Cj(a){a=a.T();return{codec:Yh(a)}}
|
|
349
349
|
function Dj(a){var b=null,c=null,d=a.Pb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.ya()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.ya();a.ya();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG"}}return{colorGamut:b,be:c}}
|
|
350
350
|
function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Fj(a){return(10>a?"0":"")+a};/*
|
|
351
351
|
|
|
@@ -368,92 +368,93 @@ function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&
|
|
|
368
368
|
function Sj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Tj(a){Oj(a);V(a);return V(a)}S("shaka.util.ExpGolomb",Gj);function Uj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.o=this.u=null}q=Uj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
|
|
369
369
|
q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Vj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Fe:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
|
|
370
370
|
k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,p=m;2<p;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Bc(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
|
|
371
|
-
null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,
|
|
371
|
+
null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,Ui:u,sampleRate:48E3}))}n+=r;p-=r}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Fe&&(g.Fe=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
|
|
372
372
|
break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.K=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.C=f.audio,this.A=f.audioCodec);-1!=f.Fe&&(this.G=f.Fe);d&&!this.J&&(d=!1,e=b-188);this.J=!0;break;case this.K:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
|
|
373
373
|
break;case this.G:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
|
|
374
374
|
function Wj(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=Xj(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=Xj(d,
|
|
375
|
-
a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}q.
|
|
375
|
+
a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}q.ek=function(a){Bd("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Ig(a)};
|
|
376
376
|
q.Ig=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var p=a[n];if(p){if(2<=g&&1==p){b&&!h.length&&-1==k&&(p=n-(3<g?3:g),c&&0!=p&&(p=a.subarray(0,p),b.data=Nc(b.data,p),b.fullData=Nc(b.fullData,p)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=Nc(b.data,k),b.fullData=Nc(b.fullData,k)));if(n>=e-f)return h;
|
|
377
377
|
n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=Nc(b.data,a),b.fullData=Nc(b.fullData,a));return h};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=Nc.apply(Hc,x(c.value)),(c=Wj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:vj(c.data),dts:c.dts,pts:c.pts});return a};
|
|
378
|
-
q.
|
|
378
|
+
q.qc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=Nc.apply(Hc,x(c.value)),e=Wj(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=Nc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
|
|
379
379
|
q.Jc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Nc.apply(Hc,x(d.value)),f=Wj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Nc(d.data,e),this.g.push(d))}if(a){c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.nalus=this.Ig(e,
|
|
380
|
-
g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.
|
|
381
|
-
q.De=function(){for(var a=[],b=t(this.Jc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.
|
|
380
|
+
g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.qc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Jc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Fd=function(){return{audio:this.A,video:this.m}};
|
|
381
|
+
q.De=function(){for(var a=[],b=t(this.Jc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.Hj=function(){Bd("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.og();return{height:a.height,width:a.width}};q.og=function(){return"hvc"==this.m?Yj(this):Zj(this)};function ak(a){var b=a.Jc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
|
|
382
382
|
function Zj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=Oj(c),e=Oj(c),f=Oj(c);Lj(c);if(bk.includes(d)){var g=V(c);3===g&&Ij(c,1);Lj(c);Lj(c);Ij(c,1);if(Nj(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Nj(c)&&(6>h?Sj(c,16):Sj(c,64))}}Lj(c);g=V(c);if(0===g)V(c);else if(1===g)for(Ij(c,1),Lj(c),Lj(c),g=V(c),h=0;h<g;h++)Lj(c);Lj(c);Ij(c,1);g=V(c);h=V(c);var k=Jj(c,1);0===k&&Ij(c,1);Ij(c,
|
|
383
383
|
1);var l=0,m=0,n=0,p=0;Nj(c)&&(l=V(c),m=V(c),n=V(c),p=V(c));b.height=String((2-k)*(h+1)*16-2*n-2*p);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=ak(a);return b}
|
|
384
384
|
function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(B){return 33==B.type});if(!c)return b;var d=new Gj(c.fullData,!0);Oj(d);Oj(d);Jj(d,4);var e=Jj(d,3);Nj(d);var f=Jj(d,2),g=Jj(d,1),h=Jj(d,5),k=Jj(d,32);c=Oj(d);for(var l=Oj(d),m=Oj(d),n=Oj(d),p=Oj(d),r=Oj(d),u=Oj(d),v=[],w=[],y=0;y<e;y++)v.push(Nj(d)),w.push(Nj(d));if(0<e)for(y=e;8>y;y++)Jj(d,2);for(y=0;y<e;y++)v[y]&&Jj(d,88),w[y]&&Oj(d);V(d);e=V(d);3==e&&Jj(d,1);v=V(d);w=V(d);var z=
|
|
385
385
|
y=0,C=0,A=0;Nj(d)&&(y+=V(d),z+=V(d),C+=V(d),A+=V(d));b.width=String(v-(y+z)*(1===e||2===e?2:1));b.height=String(w-(C+A)*(1===e?2:1));d=function(B){for(var D=0,E=0;32>E;E++)D|=(B>>E&1)<<31-E;return D>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
|
|
386
|
-
c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=ak(a);return b}function Xj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function ck(a){return 0>Vj(a)?!1:!0}function Vj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}S("shaka.util.TsParser",Uj);Uj.syncOffset=Vj;Uj.probe=ck;Uj.prototype.getVideoInfo=Uj.prototype.og;Uj.prototype.getVideoResolution=Uj.prototype.
|
|
387
|
-
Uj.prototype.getVideoNalus=Uj.prototype.De;Uj.prototype.getCodecs=Uj.prototype.Fd;Uj.prototype.getStartTime=Uj.prototype.getStartTime;Uj.prototype.getVideoData=Uj.prototype.Jc;Uj.prototype.getAudioData=Uj.prototype.
|
|
386
|
+
c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=ak(a);return b}function Xj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function ck(a){return 0>Vj(a)?!1:!0}function Vj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}S("shaka.util.TsParser",Uj);Uj.syncOffset=Vj;Uj.probe=ck;Uj.prototype.getVideoInfo=Uj.prototype.og;Uj.prototype.getVideoResolution=Uj.prototype.Hj;
|
|
387
|
+
Uj.prototype.getVideoNalus=Uj.prototype.De;Uj.prototype.getCodecs=Uj.prototype.Fd;Uj.prototype.getStartTime=Uj.prototype.getStartTime;Uj.prototype.getVideoData=Uj.prototype.Jc;Uj.prototype.getAudioData=Uj.prototype.qc;Uj.prototype.getMetadata=Uj.prototype.getMetadata;Uj.prototype.parseNalus=Uj.prototype.Ig;Uj.prototype.parseAvcNalus=Uj.prototype.ek;Uj.prototype.parse=Uj.prototype.parse;Uj.prototype.clearData=Uj.prototype.clearData;Uj.Timescale=9E4;
|
|
388
388
|
var bk=[100,110,122,244,44,83,86,118,128,138,139,134];function dk(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Za("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Bd("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Za("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Za("Could not find LCEVC Library on this page"),
|
|
389
389
|
a=!1):(this.h.SupportObject.SupportStatus||Za(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ek(a){a.g&&a.i.classList.add("shaka-hidden")}
|
|
390
|
-
dk.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function fk(a,b,c){var d=0,e=-1;switch(b.mimeType){case "video/webm":d=1;break;case "video/mp4":d=2}switch(c){case "DASH":e=1;break;case "HLS":e=0}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}S("shaka.lcevc.Dec",dk);dk.prototype.release=dk.prototype.release;function gk(a,b,c,d){var e=this;this.i=a;this.Y=c;this.A=null;this.$=b;this.h={};this.H={};this.Ga={};this.g=null;this.ha=!1;this.S=d||null;this.l={};this.u=new sd;this.j={};this.I=null;this.L=new nh;this.N="";this.Ha=!1;this.m=hk(this,this.L);this.G=!1;this.J=new Lh(function(){return ik(e)});this.C=!1;this.
|
|
390
|
+
dk.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function fk(a,b,c){var d=0,e=-1;switch(b.mimeType){case "video/webm":d=1;break;case "video/mp4":d=2}switch(c){case "DASH":e=1;break;case "HLS":e=0}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}S("shaka.lcevc.Dec",dk);dk.prototype.release=dk.prototype.release;function gk(a,b,c,d){var e=this;this.i=a;this.Y=c;this.A=null;this.$=b;this.h={};this.H={};this.Ga={};this.g=null;this.ha=!1;this.S=d||null;this.l={};this.u=new sd;this.j={};this.I=null;this.L=new nh;this.N="";this.Ha=!1;this.m=hk(this,this.L);this.G=!1;this.J=new Lh(function(){return ik(e)});this.C=!1;this.V="UNKNOWN";this.Ia=this.Ja=!1;this.Ca=new nh;this.o=!1;this.xa=!0;this.qa=this.O=this.sa=this.P=this.K=this.aa=null;this.ia=new nh}
|
|
391
391
|
function hk(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.u.s(c,"startstreaming",function(){a.xa=!0});a.u.s(c,"endstreaming",function(){a.xa=!1});a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.u.na(a.i,"playing",function(){a.Ha=!0});a.N=jk(c);a.i.src=a.N;return c}c=new MediaSource;a.u.na(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.u.na(a.i,"playing",function(){a.Ha=!0});a.N=jk(c);a.i.src=a.N;return c}
|
|
392
392
|
function kk(a,b){var c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1==r.g)return a.createSegmentIndex?G(r,a.createSegmentIndex(),2):r.B(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=Yc;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.Na){if(m=Bf(h,k),!Pf(m))return r.return(!1)}else if(b==c.wa?k=pg(k):b==c.ka&&(k=qg(k,h)),n=
|
|
393
393
|
Ff(a,h,k),p=Df(h,k),!xd(n)&&!vf(p))return r.return(!1);return r.return(!0)})}q=gk.prototype;q.destroy=function(){return this.J.destroy()};
|
|
394
394
|
function ik(a){var b,c,d,e,f,g,h,k;return P(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(Xf)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new U(2,7,7003,void 0));a.g&&b.push(a.g.destroy());for(k in a.j)b.push(a.j[k].destroy());return G(l,Promise.all(b),2)}a.u&&(a.u.release(),a.u=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.A=null;a.m=null;a.g=null;a.$=null;a.h={};a.j={};a.I=null;a.l={};a.S=null;a.K=null;
|
|
395
|
-
a.Y=null;H(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return P(function(m){switch(m.g){case 1:return f=Yc,G(m,e.L,2);case 2:e.C=b,e.
|
|
395
|
+
a.Y=null;H(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return P(function(m){switch(m.g){case 1:return f=Yc,G(m,e.L,2);case 2:e.C=b,e.V=c,e.Ja=d,e.Ia=!e.C&&"HLS"==e.V&&!e.Ja,e.K=null,g=t(a.keys()),h=g.next();case 3:if(h.done){m.B(0);break}k=h.value;l=a.get(k);return G(m,lk(e,k,l,l.codecs),6);case 6:e.o?(e.l[f.ka]=[],e.l[f.wa]=[]):e.l[k]=[],h=g.next(),m.B(3)}})};
|
|
396
396
|
function lk(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v;return P(function(w){switch(w.g){case 1:return e=Yc,f=Ta,g=Ua,G(w,kk(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=Bf(c.mimeType,d);if(b==e.Na){mk(a,h,a.C,c.external);w.B(0);break}k=a.A.forceTransmux;if(!xd(h)||!a.C&&Cf.includes(h))k=!0;l=Df(c.mimeType,d);if(!k){w.B(4);break}m=Uc(e.ka,(d||"").split(","));n=Uc(e.wa,(d||"").split(","));if(!m||!n){w.B(5);break}a.o=!0;return G(w,lk(a,e.ka,c,m),6);case 6:return G(w,
|
|
397
397
|
lk(a,e.wa,c,n),7);case 7:return w.return();case 5:if(p=vf(l))r=p(),a.j[b]=r,h=r.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);Mh(a.J);try{v=a.m.addSourceBuffer(u)}catch(y){throw new U(2,3,3015,y,"The mediaSource_ status was "+a.m.readyState+" expected 'open'",null);}a.C&&(v.mode=nk);a.u.s(v,"error",function(){var y=a.l[b][0];y.p.reject(new U(2,3,3014,a.i.error?a.i.error.code:0,y.uri))});a.u.s(v,"updateend",function(){return ok(a,b)});a.h[b]=v;a.H[b]=h;a.Ga[b]=!!c.drmInfos.length;
|
|
398
398
|
H(w)}})}q.configure=function(a){this.A=a;this.g&&(this.g.A=a.modifyCueCallback)};
|
|
399
|
-
function mk(a,b,c,d){a.g||(a.g=new Of(a.$),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.ha;a=a.
|
|
399
|
+
function mk(a,b,c,d){a.g||(a.g=new Of(a.$),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.ha;a=a.V;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Qf[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Bd("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Bd("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.C=d)}
|
|
400
400
|
function pk(a){return a.G?!1:a.m?"ended"==a.m.readyState:!0}function qk(a,b){a.G||!Object.keys(a.h).length?a=null:b==Wc?a=a.g.g:(a=rk(a,b),a=!a||kj(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function sk(a,b){return a.G?null:b==Wc?a.g.h:lj(rk(a,b))}function tk(a,b,c){if(a.G)return 0;if(b==Wc)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=rk(a,b);return nj(a,c)}
|
|
401
401
|
q.Tb=function(){var a={total:this.G?[]:oj(this.i.buffered),audio:this.G?[]:oj(rk(this,"audio")),video:this.G?[]:oj(rk(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function rk(a,b){try{return a.h[b].buffered}catch(c){return null}}
|
|
402
402
|
function uk(a,b,c,d,e,f){var g=null,h=Ib(c);if(Cf.includes(e))f=vj(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.Y.onMetadata([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ma&&d.ma.timescale){var k=d.ma.timescale;if(!isNaN(k)){var l=0,m=!1;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(n){l=yj(n.reader,
|
|
403
403
|
n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else if(!e.includes("/mp4")&&!e.includes("/webm")&&ck(h)&&(a.K?a.K.clearData():a.K=new Uj,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length))a.Y.onMetadata(h,f,d?d.endTime:null);return g}
|
|
404
|
-
function vk(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,y,z,C,A,B,D,E;return P(function(F){switch(F.g){case 1:m=Yc;if(b!=m.Na){F.B(2);break}if(!a.C){F.B(3);break}return G(F,a.
|
|
404
|
+
function vk(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,y,z,C,A,B,D,E;return P(function(F){switch(F.g){case 1:m=Yc;if(b!=m.Na){F.B(2);break}if(!a.C){F.B(3);break}return G(F,a.Ca,4);case 4:n=F.h,a.g.u=n;case 3:return G(F,Rf(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return F.return();case 2:if(l||!a.o){F.B(6);break}return G(F,vk(a,m.ka,c,d,e,f,g,h,k,!0),7);case 7:return G(F,vk(a,m.wa,c,d,e,f,g,h,k,!0),8);case 8:return F.return();
|
|
405
405
|
case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.H[b];a.j[b]&&(r=a.j[b].getOriginalMimeType());d&&(u=uk(a,b,c,d,r,p),null!=u&&(null==a.P&&b==m.wa&&(a.P=u,a.sa=d.startTime,null!=a.O&&(v=0,a.sa==a.qa&&(v=a.P-a.O),a.ia.resolve(v))),null==a.O&&b==m.ka&&(a.O=u,a.qa=d.startTime,null!=a.P&&(w=0,a.sa==a.qa&&(w=a.P-a.O),a.ia.resolve(w))),y=d.startTime-u,z=Math.abs(p-y),(.001<=z||g||h)&&(!k||0<y||!p)&&(p=y,a.Ia&&(wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,p)},null))),
|
|
406
|
-
C=b==m.wa||!(m.wa in a.h),a.C&&C&&a.
|
|
406
|
+
C=b==m.wa||!(m.wa in a.h),a.C&&C&&a.Ca.resolve(p)));f&&b==m.wa&&(a.g||mk(a,"application/cea-608",a.C,!1),a.I||(A=r.split(";",1)[0],a.I=new Id(A)),d?(B=a.I.i(c),B.length&&Vf(a.g,B,d.startTime,d.endTime,p)):a.I.init(c,h));if(!a.j[b]){F.B(9);break}return G(F,a.j[b].transmux(c,e,d,a.m.duration,b),10);case 10:c=F.h;case 9:c=Gk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Na){F.B(11);break}if(!g&&!h){F.B(11);break}D=d.startTime;if("HLS"!=a.V||a.o||b!=m.ka||!a.h[m.wa]){F.B(13);break}return G(F,
|
|
407
407
|
a.ia,14);case 14:E=F.h,.1<Math.abs(E)&&(D-=E);case 13:wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,D)},null);case 11:return G(F,wk(a,b,function(){var L=c;if("video"==b&&a.S){var J=a.S;J.g&&J.g.appendBuffer(L,"video",J.o,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:H(F)}})}function Hk(a,b){var c=sk(a,"video")||0;Tf(a.g,b,c)}function Ik(a){a.g&&Tf(a.g,"",0)}
|
|
408
408
|
q.remove=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=Yc,a==e.Na?G(f,d.g.remove(b,c),0):G(f,wk(d,a,function(){return Jk(d,a,b,c)},null),4)):d.o?G(f,wk(d,e.ka,function(){return Jk(d,e.ka,b,c)},null),0):f.B(0)})};function Kk(a,b){var c;return P(function(d){return 1==d.g?(c=Yc,b==c.Na?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,wk(a,b,function(){return Jk(a,b,0,a.m.duration)},null),4)):a.o?G(d,wk(a,c.ka,function(){return Jk(a,c.ka,0,a.m.duration)},null),0):d.B(0)})}
|
|
409
409
|
q.flush=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Yc,a==c.Na?d.return():G(d,wk(b,a,function(){b.i.currentTime-=.001;ok(b,a)},null),2)):b.o?G(d,wk(b,c.ka,function(){var e=c.ka;b.i.currentTime-=.001;ok(b,e)},null),0):d.B(0)})};
|
|
410
410
|
function Lk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Yc;if(b==l.Na)return f||(a.g.u=c),Sf(a.g,d,e),p.return();m=[];return G(p,Mk(a,b,g,h,k),2)}n=p.h;n||(m.push(wk(a,b,function(){return xk(a,b)},null)),a.o&&m.push(wk(a,l.ka,function(){return xk(a,l.ka)},null)));f||(m.push(wk(a,b,function(){return Fk(a,b,c)},null)),a.o&&m.push(wk(a,l.ka,function(){return Fk(a,l.ka,c)},null)));m.push(wk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
|
|
411
411
|
d;ok(a,b)},null));a.o&&m.push(wk(a,l.ka,function(){var r=l.ka;a.h[r].appendWindowStart=0;a.h[r].appendWindowEnd=e;a.h[r].appendWindowStart=d;ok(a,r)},null));return G(p,Promise.all(m),0)})}
|
|
412
|
-
function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.
|
|
412
|
+
function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.Ca=new nh);wk(a,b,function(){return xk(a,b)},null);a.o&&wk(a,d.ka,function(){return xk(a,d.ka)},null);return G(e,wk(a,b,function(){return Fk(a,b,c)},null),2)}return a.o?G(e,wk(a,d.ka,function(){return Fk(a,d.ka,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){pk(b)||"closed"===b.m.readyState||(a?b.m.endOfStream(a):b.m.endOfStream())}),0)})};
|
|
413
413
|
q.sb=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){if(a<b.m.duration)for(var d in b.h){var e={start:function(){},p:new nh,uri:null};b.l[d].unshift(e)}b.m.duration=a;b.aa=a}),0)})};q.getDuration=function(){return this.m.duration};function Jk(a,b,c,d){d<=c?ok(a,b):a.h[b].remove(c,d)}function xk(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;ok(a,b)}
|
|
414
414
|
function Fk(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;ok(a,b)}function ok(a,b){if(!a.G){var c=a.l[b][0];c&&(c.p.resolve(),Pk(a,b))}}function wk(a,b,c,d){Mh(a.J);c={start:c,p:new nh,uri:d};a.l[b].push(c);1==a.l[b].length&&Qk(a,b);return c.p}
|
|
415
415
|
function Ok(a,b){var c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:Mh(a.J);c=[];d={};for(e in a.h)d={ready:void 0},d.ready=new nh,f={start:function(m){return function(){return m.ready.resolve()}}(d),p:d.ready,uri:null},a.l[e].push(f),c.push(d.ready),1==a.l[e].length&&f.start();ta(l,2);return G(l,Promise.all(c),4);case 4:wa(l,3);break;case 2:throw g=xa(l),g;case 3:return ta(l,5,6),G(l,b(),6);case 6:ya(l);for(h in a.h)Pk(a,h);za(l,0);break;case 5:throw k=xa(l),new U(2,3,3015,k,a.i.error||"No error in the media element",
|
|
416
|
-
null);}})}function Pk(a,b){a.l[b].shift();Qk(a,b)}function Qk(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),Pk(a,b)}}function Gk(a,b,c,d,e){var f=null==c,g=a.Ga[d];c=a.Y.
|
|
416
|
+
null);}})}function Pk(a,b){a.l[b].shift();Qk(a,b)}function Qk(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),Pk(a,b)}}function Gk(a,b,c,d,e){var f=null==c,g=a.Ga[d];c=a.Y.lj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Sb(c),f=dc()||ac()||lc()||$b()&&qc()&&c;f&&"mp4"==Hf(a.H[d])&&(b=aj(b,e));return b}
|
|
417
417
|
function Rk(a,b,c,d){return wk(a,b,function(){b!==Wc&&(zd()&&(a.j[b]&&(a.j[b].destroy(),delete a.j[b]),d&&(a.j[b]=d),a.h[b].changeType(c+a.A.addExtraFeaturesToSourceBuffer(c)),a.H[b]=c),ok(a,b))},null)}
|
|
418
|
-
function Sk(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L;return P(function(J){switch(J.g){case 1:c=Yc;a.G=!0;a.o=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.Ha&&(a.i.autoplay=!1);ua(J,2);a.u.
|
|
418
|
+
function Sk(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L;return P(function(J){switch(J.g){case 1:c=Yc;a.G=!0;a.o=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.Ha&&(a.i.autoplay=!1);ua(J,2);a.u.Za();g=[];for(h in a.j)g.push(a.j[h].destroy());for(k in a.l)for(l=a.l[k],m=l[0],a.l[k]=l.slice(0,1),m&&g.push(m.p.catch(Xf)),n=t(l.slice(1)),p=n.next();!p.done;p=n.next())r=p.value,r.p.reject(new U(2,7,7003,void 0));for(u in a.h){v=a.h[u];try{a.m.removeSourceBuffer(v)}catch(K){}}return G(J,
|
|
419
419
|
Promise.all(g),4);case 4:return a.j={},a.h={},w=a.m.duration,a.L=new nh,a.m=hk(a,a.L),G(J,a.L,5);case 5:!isNaN(w)&&w?a.m.duration=w:!isNaN(a.aa)&&a.aa&&(a.m.duration=a.aa),y=new nh,z=a.m.sourceBuffers,C=b.size,A=0,B=function(){A++;A===C&&(y.resolve(),a.u.Ma(z,"addsourcebuffer",B))},a.u.s(z,"addsourcebuffer",B),D=t(b.keys()),E=D.next();case 6:if(E.done)return a.i.currentTime=d,G(J,y,2);F=E.value;L=b.get(F);return G(J,lk(a,F,L,L.codecs),9);case 9:a.o?(a.l[c.ka]=[],a.l[c.wa]=[]):a.l[F]=[];E=D.next();
|
|
420
420
|
J.B(6);break;case 2:ya(J),a.G=!1,Mh(a.J),a.u.na(a.i,"canplaythrough",function(){a.J.g||(a.i.autoplay=e,f||a.i.play())}),za(J,0)}})}function Tk(a,b){return Ok(a,function(){return Sk(a,b)})}
|
|
421
421
|
function Mk(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){if(1==A.g){f=Yc;if(b==f.Na)return A.return(!1);g=If(Mf(a.H[b]));h=Lf(a.H[b]);l=!1;m=Bf(c,d);n=a.A.forceTransmux;if(!xd(m)||!a.C&&Cf.includes(m))n=!0;n&&(p=Df(c,d),r=vf(p))&&(k=r(),u=Uc(f.ka,(d||"").split(",")),v=Uc(f.wa,(d||"").split(",")),u&&v?(l=!0,w=v,b==f.ka&&(w=u),m=k.convertCodecs(b,Df(c,w))):m=k.convertCodecs(b,p));y=If(Mf(m));z=Lf(m);if(g===y&&h===z)return a.j[b]&&!k?(a.j[b].destroy(),delete a.j[b]):!a.j[b]&&k?a.j[b]=
|
|
422
422
|
k:k&&(a.j[b]&&a.j[b].transmux!=k.transmux?(a.j[b].destroy(),delete a.j[b],a.j[b]=k):k.destroy()),A.return(!1);C=!0;if(a.o||l&&k&&!a.j[b])C=!1;if(C&&"smooth"===a.A.codecSwitchingStrategy&&zd())return G(A,Rk(a,b,m,k),3);k&&k.destroy();return G(A,Tk(a,e),3)}return A.return(!0)})}
|
|
423
|
-
function Uk(a,b,c,d){if(b==Wc)var e=!1;else{e=If(Mf(a.H[b]));var f=Lf(a.H[b]),g=Bf(c,d),h=a.A.forceTransmux;if(!xd(g)||!a.C&&Cf.includes(g))h=!0;c=Df(c,d);h&&(h=vf(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=If(Mf(g));g=Lf(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!zd()||a.o:!1}var jk=window.URL.createObjectURL,nk="sequence";function Vk(a,b,c){this.i=a;this.C=b;this.o=this.j=Infinity;this.
|
|
424
|
-
q.
|
|
425
|
-
q.Sd=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.
|
|
426
|
-
q.Se=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.Dg=function(a){this.
|
|
427
|
-
q.rc=function(){return this.
|
|
428
|
-
q.
|
|
429
|
-
Vk.prototype.getSegmentAvailabilityStart=Vk.prototype.Gb;Vk.prototype.isInProgress=Vk.prototype.Nc;Vk.prototype.isLive=Vk.prototype.
|
|
430
|
-
Vk.prototype.getMaxSegmentEndTime=Vk.prototype.
|
|
431
|
-
Vk.prototype.setPresentationStartTime=Vk.prototype.
|
|
423
|
+
function Uk(a,b,c,d){if(b==Wc)var e=!1;else{e=If(Mf(a.H[b]));var f=Lf(a.H[b]),g=Bf(c,d),h=a.A.forceTransmux;if(!xd(g)||!a.C&&Cf.includes(g))h=!0;c=Df(c,d);h&&(h=vf(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=If(Mf(g));g=Lf(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!zd()||a.o:!1}var jk=window.URL.createObjectURL,nk="sequence";function Vk(a,b,c){this.i=a;this.C=b;this.o=this.j=Infinity;this.h=1;this.g=this.l=null;this.A=0;this.I=!0;this.J=0;this.G=void 0===c?!0:c;this.H=0;this.u=!1;this.m=a}q=Vk.prototype;q.getDuration=function(){return this.j};q.qj=function(){return this.h};q.pi=function(a){this.i=a};q.sb=function(a){this.j=a};q.uj=function(){return this.i};q.li=function(a){this.A=a};q.Uc=function(a){this.I=a};q.gf=function(a){this.o=a};q.Ce=function(){return this.o};q.Tg=function(a){this.C=a};q.hj=function(){return this.C};
|
|
424
|
+
q.Zh=function(a,b){if(0!=a.length){var c=(Date.now()+this.A)/1E3;a=a.filter(function(e){return e.start+b<c});if(0!=a.length){var d=a[a.length-1].end+b;this.Se(a[0].start+b);this.h=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.h);this.g=Math.max(this.g,d);null!=this.i&&this.G&&!this.u&&(this.i=c-this.g-this.h)}}};
|
|
425
|
+
q.Sd=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.h=Math.max(this.h,e.endTime-e.startTime));this.Se(b);this.g=Math.max(this.g,c);null!=this.i&&this.G&&!this.u&&(this.i=d-this.g-this.h)}};q.Yh=function(a,b){this.Se(a);Infinity==b||this.U()||(this.g=Math.max(this.g,b))};q.rj=function(){return this.g};q.Ne=function(){this.u=!0};
|
|
426
|
+
q.Sj=function(){return this.u};q.ni=function(a){this.m=a};q.kj=function(){return this.m};q.Se=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.Dg=function(a){this.h=Math.max(this.h,a)};q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.g&&(this.g+=a)};q.U=function(){return Infinity==this.j&&!this.I};q.Nc=function(){return Infinity!=this.j&&!this.I};q.Gb=function(){return Math.max(this.J,this.rc()-this.o)};q.ti=function(a){this.J=a};
|
|
427
|
+
q.rc=function(){return this.U()||this.Nc()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.h-this.i)+this.H,this.j):this.g?Math.min(this.g,this.j):this.j};q.Hd=function(a){var b=Math.max(this.l,this.J);return Infinity==this.o?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.rc()-this.o+a,this.Ub()))};q.cc=function(){return this.Hd(0)};q.Ub=function(){return Math.max(0,this.rc()-(this.U()||this.Nc()?this.C:0))};q.Fi=function(){return null==this.i||null!=this.g&&this.G?!1:!0};
|
|
428
|
+
q.ki=function(a){this.H=a};q.aj=function(){return this.H};S("shaka.media.PresentationTimeline",Vk);Vk.prototype.getAvailabilityTimeOffset=Vk.prototype.aj;Vk.prototype.setAvailabilityTimeOffset=Vk.prototype.ki;Vk.prototype.usingPresentationStartTime=Vk.prototype.Fi;Vk.prototype.getSeekRangeEnd=Vk.prototype.Ub;Vk.prototype.getSeekRangeStart=Vk.prototype.cc;Vk.prototype.getSafeSeekRangeStart=Vk.prototype.Hd;Vk.prototype.getSegmentAvailabilityEnd=Vk.prototype.rc;Vk.prototype.setUserSeekStart=Vk.prototype.ti;
|
|
429
|
+
Vk.prototype.getSegmentAvailabilityStart=Vk.prototype.Gb;Vk.prototype.isInProgress=Vk.prototype.Nc;Vk.prototype.isLive=Vk.prototype.U;Vk.prototype.offset=Vk.prototype.offset;Vk.prototype.notifyMaxSegmentDuration=Vk.prototype.Dg;Vk.prototype.notifyMinSegmentStartTime=Vk.prototype.Se;Vk.prototype.getInitialProgramDateTime=Vk.prototype.kj;Vk.prototype.setInitialProgramDateTime=Vk.prototype.ni;Vk.prototype.isStartTimeLocked=Vk.prototype.Sj;Vk.prototype.lockStartTime=Vk.prototype.Ne;
|
|
430
|
+
Vk.prototype.getMaxSegmentEndTime=Vk.prototype.rj;Vk.prototype.notifyPeriodDuration=Vk.prototype.Yh;Vk.prototype.notifySegments=Vk.prototype.Sd;Vk.prototype.notifyTimeRange=Vk.prototype.Zh;Vk.prototype.getDelay=Vk.prototype.hj;Vk.prototype.setDelay=Vk.prototype.Tg;Vk.prototype.getSegmentAvailabilityDuration=Vk.prototype.Ce;Vk.prototype.setSegmentAvailabilityDuration=Vk.prototype.gf;Vk.prototype.setStatic=Vk.prototype.Uc;Vk.prototype.setClockOffset=Vk.prototype.li;
|
|
431
|
+
Vk.prototype.getPresentationStartTime=Vk.prototype.uj;Vk.prototype.setDuration=Vk.prototype.sb;Vk.prototype.setPresentationStartTime=Vk.prototype.pi;Vk.prototype.getMaxSegmentDuration=Vk.prototype.qj;Vk.prototype.getDuration=Vk.prototype.getDuration;function Wk(a,b,c){this.j=c;this.l=a;this.u=Xk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}Wk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Yk(a,b){a.i=b}function Zk(a){this.g=a}function Xk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(oj(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 $k(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.C=b;this.u=c;this.l=new sd;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.o=!1;this.l.s(a,"waiting",function(){return al(f)});this.m=(new Wb(function(){al(f)})).Ba(this.u.gapJumpTimerTime)}$k.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.A=null};$k.prototype.Gg=function(){this.o=!0;al(this)};
|
|
432
432
|
function al(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=Xk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new T("stalldetected"));b=!d}if(b&&(b=a.g.currentTime,c=a.g.buffered,d=pj(c,b,a.u.gapDetectionThreshold),
|
|
433
433
|
null!=d&&(0!=d||a.o))){e=c.start(d);if(navigator.userAgent.match(/Edge\//)||ac())e=Math.ceil(100*(e+.01))/100;e>=a.C.Ub()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.A(new T("gapjumped")))}}}};function bl(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=cl.value().get(b),c.na(a,b,d))}var cl=new Pb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function dl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new sd;this.i=new el(a);bl(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){fl(e,e.j())})}dl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function gl(a){return a.o?a.g.currentTime:a.j()}
|
|
434
434
|
function hl(a,b){0<a.g.readyState?il(a.i,b):bl(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){fl(a,a.j())})}function fl(a,b){.001>Math.abs(a.g.currentTime-b)?jl(a):(a.h.na(a.g,"seeking",function(){jl(a)}),il(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function jl(a){a.o=!0;a.h.s(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
|
|
435
|
-
function el(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new Wb(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}el.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function il(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.
|
|
436
|
-
q.ke=function(){return(this.j?this.h.currentTime:this.g)||0};q.jh=function(){return 0};q.ih=function(){return 0};q.
|
|
435
|
+
function el(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new Wb(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}el.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function il(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.Ba(.1)};function kl(a){this.h=a;this.j=!1;this.g=null;this.i=new sd}q=kl.prototype;q.ready=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.na(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;bl(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};q.Cf=function(a){this.g=this.j?this.g:a};
|
|
436
|
+
q.ke=function(){return(this.j?this.h.currentTime:this.g)||0};q.jh=function(){return 0};q.ih=function(){return 0};q.Xh=function(){};
|
|
437
437
|
function ll(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.l=c;this.A=e;this.u=null;this.o=ml(a,c,f);this.j=new $k(a,b.presentationTimeline,c,this.o,f);this.h=new dl(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=gl(g.h);h=nl(g,k);if(.001<Math.abs(h-k)){k=!1;if(!jc()||jc()&&rc())k=!0;else{var l=Date.now()/1E3;if(!g.u||g.u<l-1)g.u=l,k=!0}if(k){hl(g.h,h);h=void 0;break a}}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},
|
|
438
|
-
function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.
|
|
439
|
-
q.Cf=function(a){hl(this.h,a)};q.ke=function(){var a=gl(this.h);return 0<this.i.readyState&&!this.i.paused?pl(this,a):a};q.jh=function(){return this.o?this.o.o:0};q.ih=function(){return this.j.G};q.
|
|
440
|
-
function nl(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.
|
|
441
|
-
function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.i=0;this.o=!1}q=ql.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.
|
|
438
|
+
function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.cc():g.g.Ub():0>h&&(h=g.g.Ub()+h);return ol(g,pl(g,h))});this.m=new Wb(function(){if(0!=g.i.readyState&&!g.i.paused){var h=gl(g.h),k=g.g.cc(),l=g.g.Ub();3>l-k&&(k=l-3);h<k&&(h=nl(g,h),g.i.currentTime=h)}})}q=ll.prototype;q.ready=function(){this.m.Ba(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};
|
|
439
|
+
q.Cf=function(a){hl(this.h,a)};q.ke=function(){var a=gl(this.h);return 0<this.i.readyState&&!this.i.paused?pl(this,a):a};q.jh=function(){return this.o?this.o.o:0};q.ih=function(){return this.j.G};q.Xh=function(){this.j.Gg()};function ol(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
|
|
440
|
+
function nl(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.Ub(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hd(c),k=a.g.Hd(d);c=a.g.Hd(c+d);return b>=g?ol(a,b):b>f?f:b<e?mj(a.i.buffered,k)?k:c:b>=h||mj(a.i.buffered,b)?b:c}function pl(a,b){var c=a.g.cc();if(b<c)return c;a=a.g.Ub();return b>a?a:b}
|
|
441
|
+
function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.i=0;this.o=!1}q=ql.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Zj=function(){this.o=!0};q.ac=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Cg(a){return a.g[0]||null}
|
|
442
442
|
q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
|
|
443
|
-
q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=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.Pe(a);this.
|
|
444
|
-
q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){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],b=new gj(a.startTime,b,a.H,a
|
|
445
|
-
q.lf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Wb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.
|
|
443
|
+
q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=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.Pe(a);this.Ya(b)};q.Ya=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
|
|
444
|
+
q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){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],b=new gj(a.startTime,b,a.H,a.$a,a.La,a.ma,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
|
|
445
|
+
q.lf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Wb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Ba(a))};ql.prototype[Symbol.iterator]=function(){return this.bc(0)};
|
|
446
446
|
ql.prototype.bc=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Ya("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new rl(this,d,f,c)};function sl(a,b,c){a=new gj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new ql([a])}
|
|
447
|
-
S("shaka.media.SegmentIndex",ql);ql.forSingleSegment=sl;ql.prototype.getIteratorForTime=ql.prototype.bc;ql.prototype.updateEvery=ql.prototype.lf;ql.prototype.fit=ql.prototype.ed;ql.prototype.evict=ql.prototype.
|
|
448
|
-
ql.prototype.getNumReferences=ql.prototype.getNumReferences;function rl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}rl.prototype.vd=function(a){this.reverse=a};rl.prototype.
|
|
449
|
-
rl.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};S("shaka.media.SegmentIterator",rl);rl.prototype.next=rl.prototype.next;rl.prototype.current=rl.prototype.current;rl.prototype.currentPosition=rl.prototype.
|
|
447
|
+
S("shaka.media.SegmentIndex",ql);ql.forSingleSegment=sl;ql.prototype.getIteratorForTime=ql.prototype.bc;ql.prototype.updateEvery=ql.prototype.lf;ql.prototype.fit=ql.prototype.ed;ql.prototype.evict=ql.prototype.Ya;ql.prototype.mergeAndEvict=ql.prototype.Rd;ql.prototype.offset=ql.prototype.offset;ql.prototype.get=ql.prototype.get;ql.prototype.find=ql.prototype.find;ql.prototype.markImmutable=ql.prototype.Zj;ql.prototype.release=ql.prototype.release;ql.prototype.getNumEvicted=ql.prototype.getNumEvicted;
|
|
448
|
+
ql.prototype.getNumReferences=ql.prototype.getNumReferences;function rl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}rl.prototype.vd=function(a){this.reverse=a};rl.prototype.Wi=function(){return this.h};rl.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
|
|
449
|
+
rl.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};S("shaka.media.SegmentIterator",rl);rl.prototype.next=rl.prototype.next;rl.prototype.current=rl.prototype.current;rl.prototype.currentPosition=rl.prototype.Wi;
|
|
450
450
|
rl.prototype.setReverse=rl.prototype.vd;function tl(){ql.call(this,[]);this.h=[]}oa(tl,ql);q=tl.prototype;q.clone=function(){var a=new tl;a.h=this.h.slice();a.i=this.i;return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.ac=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.ac(a)};
|
|
451
|
-
q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Pe=function(){};
|
|
452
|
-
|
|
451
|
+
q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Pe=function(){};
|
|
452
|
+
q.Ya=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Ya(a);for(;1<this.h.length&&0==this.h[0].getNumReferences();)a=this.h.shift(),this.i+=a.getNumEvicted(),a.release()};q.Rd=function(){};q.ed=function(){};q.lf=function(){};S("shaka.media.MetaSegmentIndex",tl);tl.prototype.updateEvery=tl.prototype.lf;tl.prototype.fit=tl.prototype.ed;tl.prototype.mergeAndEvict=tl.prototype.Rd;tl.prototype.evict=tl.prototype.Ya;tl.prototype.merge=tl.prototype.Pe;tl.prototype.offset=tl.prototype.offset;
|
|
453
|
+
tl.prototype.get=tl.prototype.get;tl.prototype.find=tl.prototype.find;tl.prototype.forEachTopLevelReference=tl.prototype.ac;tl.prototype.release=tl.prototype.release;function ul(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Be();this.h=new Wb(function(){b.g.Wh(.25*b.i)})}ul.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};ul.prototype.set=function(a){this.i=a;vl(this)};ul.prototype.Hc=function(){return this.g.Hc()};function vl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Be()!=b&&a.g.Xg(b);return}catch(c){}a.h.Ba(.25);0!=a.g.Be()&&a.g.Xg(0)};function wl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Wb(function(){xl(b,!1)})).Ba(.25)}wl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function xl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function yl(){this.g=null;this.h=[]}function zl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Al(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Bl(){this.i=this.h=null;this.g=[]}function Cl(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 Dl(){this.Dc=this.Rh=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.V=this.N=this.O=this.P=this.l=this.o=NaN;this.L=0;this.H=this.I=NaN;this.g=new yl;this.h=new Bl};function El(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function Fl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
|
|
453
454
|
function Gl(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.bc(b,!0,a.o)),a.g)){for(c&&a.g.next();a.h.size<a.m;){b=a.g.next().value;if(!b)break;c=!0;b.isPreload()&&null!=b.La&&(c=!1);2==b.sc()&&(c=!1);c&&b.ma&&Hl(a,b.ma);c&&!a.h.has(b)&&(c=new Il(a.l),Jl(c,b,a.i),a.h.set(b,c))}Kl(a)}}function Hl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return fj(d,b)})){var c=new Il(a.l);Jl(c,b,a.i);a.j.set(b,c)}}
|
|
454
|
-
function Ll(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ml(a,c)}function Nl(a){Ll(a,a.h);Ll(a,a.j);a.g=null}El.prototype.
|
|
455
|
+
function Ll(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ml(a,c)}function Nl(a){Ll(a,a.h);Ll(a,a.j);a.g=null}El.prototype.Ya=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Ml(this,d);b&&Kl(this)};El.prototype.vd=function(a){this.o=a;this.g&&this.g.vd(a)};
|
|
455
456
|
function Kl(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={vg:void 0},d=c.next())e.vg=d.value,b.some(function(f){return function(g){return fj(g.ma,f.vg)}}(e))||Ml(a,e.vg)}function Ol(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Ml(a,d)}Kl(a)}function Pl(a,b){b&&b!==a.i&&(Nl(a),a.i=b)}function Ml(a,b){var c=a.h;b instanceof ej&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Il(a){this.g=a;this.Ve=this.ah=null}
|
|
456
|
-
function Jl(a,b,c){var d=new Uint8Array(0);a.Ve=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Nc(d,e):d=e,a.ah?G(f,a.ah(d),3):f.B(0);d=new Uint8Array(0);H(f)})})}Il.prototype.abort=function(){this.Ve&&this.Ve.abort()};function Ql(a){hb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Wb(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).
|
|
457
|
+
function Jl(a,b,c){var d=new Uint8Array(0);a.Ve=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Nc(d,e):d=e,a.ah?G(f,a.ah(d),3):f.B(0);d=new Uint8Array(0);H(f)})})}Il.prototype.abort=function(){this.Ve&&this.Ve.abort()};function Ql(a){hb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Wb(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ba(2)}oa(Ql,hb);Ql.prototype.release=function(){this.g.clear();this.h.stop();hb.prototype.release.call(this)};function Rl(a){hb.call(this);this.g=new Map;this.h=a}oa(Rl,hb);Rl.prototype.release=function(){this.g.clear();hb.prototype.release.call(this)};function Sl(a,b){var c=a.g.get(b);c||(c={Wd:[],Qf:null,contentType:b},a.g.set(b,c));return c}function Tl(a,b,c){var d=Sl(a,b.contentType);Ul(a,d);a={md:b,position:c};d=d.Wd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
457
458
|
Rl.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Qf;a:{var e=c.Wd;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.md;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);
|
|
458
459
|
g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Td(d.roles,e.roles);(g||h||d)&&Vl(this,a,e.contentType)&&(c.Qf=e,d=new T("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Vl(this,a,e.contentType)&&(c.Qf=e,JSON.stringify(e),c=new T("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
|
|
459
460
|
function Vl(a,b,c){return(a=a.h()[c])&&0<a.length&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function Ul(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Wd;b.Wd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Wd=[]}
|
|
@@ -473,45 +474,44 @@ function am(a){var b=null;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).
|
|
|
473
474
|
function bm(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g)return d=b,d.cryptoKey?k.B(2):G(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ib(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function cm(a,b,c,d,e){a=Dh(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function dm(a,b){var c=this;this.g=b;this.l=a;this.h=null;this.H=new Map;this.C=1;this.u=this.j=null;this.K=0;this.I=!1;this.i=new Map;this.G=!1;this.L=null;this.A=!1;this.m=new Lh(function(){return em(c)});this.N=Date.now()/1E3;this.o=new Map;this.J={projection:null,hfov:null};this.P=0;this.O=Infinity}q=dm.prototype;q.destroy=function(){return this.m.destroy()};
|
|
474
475
|
function em(a){var b,c,d,e,f,g,h;return P(function(k){if(1==k.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,fm(e),b.push(gm(e)),e.ba&&(Nl(e.ba),e.ba=null);f=t(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,Nl(h);return G(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.l=null;a.h=null;H(k)})}
|
|
475
476
|
q.configure=function(a){this.h=a;this.L=new kh({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.ba&&(Nl(b.ba),b.ba=null);b=t(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,Nl(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Wc))&&
|
|
476
|
-
b.ba&&(Nl(b.ba),b.ba=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ba&&(Nl(b.ba),b.ba=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ba?(Ol(c.ba,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(Nl(c.ba),c.ba=null)):0<a.segmentPrefetchLimit&&(c.ba=hm(this,c.stream));a.disableAudioPrefetch||im(this)};function jm(a,b,c){a.l.presentationTimeline.
|
|
477
|
+
b.ba&&(Nl(b.ba),b.ba=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ba&&(Nl(b.ba),b.ba=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ba?(Ol(c.ba,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(Nl(c.ba),c.ba=null)):0<a.segmentPrefetchLimit&&(c.ba=hm(this,c.stream));a.disableAudioPrefetch||im(this)};function jm(a,b,c){a.l.presentationTimeline.U()||(a.P=b,a.O=c)}
|
|
477
478
|
q.start=function(a){var b=this;return P(function(c){if(1==c.g)return G(c,km(b,a||new Map),2);Mh(b.m);b.G=!0;H(c)})};function lm(a,b){var c,d,e,f,g,h,k;P(function(l){switch(l.g){case 1:return c=Yc,a.K++,d=a.K,ta(l,2),G(l,Kk(a.g.oa,c.Na),4);case 4:wa(l,3);break;case 2:if(e=xa(l),a.g)a.g.onError(e);case 3:f=Bf(b.mimeType,b.codecs),mk(a.g.oa,f,a.l.sequenceMode,b.external),g=a.g.oa.$,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.K==d&&(k=mm(a,b),a.i.set(c.Na,k),nm(a,k,0)),H(l)}})}
|
|
478
479
|
function om(a){var b=a.i.get(Wc);b&&(fm(b),gm(b).catch(function(){}),a.i.delete(Wc));a.u=null}function pm(a,b){for(var c=0>a.g.Va(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.za&&e.za.vd(c),e.ba&&e.ba.vd(c);d=t(a.o.values());for(e=d.next();!e.done;e=d.next())e.value.vd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.yc&&(qm(a,b,!1,0,!1),c.yc=d);else if(b=c.yc)c.yc=null,qm(a,b,!0,0,!1)}
|
|
479
480
|
function rm(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.G&&(b.video&&qm(a,b.video,c,d,e,f),b.audio&&qm(a,b.audio,c,d,e,f))}function sm(a,b){P(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.B(2):G(c,b.createSegmentIndex(),2):c.return();qm(a,b,!0,0,!1);H(c)})}function tm(a,b){for(var c=t(a.H.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.H.delete(d))}}
|
|
480
|
-
function qm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Wc?g&&(g.yc&&(b.trickModeVideo?(g.yc=b,b=b.trickModeVideo):g.yc=null),g.stream!=b||e)&&(a.o.has(b)?g.ba=a.o.get(b):g.ba&&Pl(g.ba,b),b.type==Wc&&(e=Bf(b.mimeType,b.codecs),mk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.o.has(g.stream)&&g.stream.closeSegmentIndex&&(g.
|
|
481
|
-
d,g.uf=!0):(fm(g),um(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.
|
|
482
|
-
function vm(a,b){var c,d;return P(function(e){if(1==e.g){if(!b.Ab)return e.return();c=b.stream;d=b.Ab;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Ab!=d||b.stream!=c)return e.return();var f=a.g.Ae();var g=sk(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.hb?b.hb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.La?k.La-k
|
|
481
|
+
function qm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Wc?g&&(g.yc&&(b.trickModeVideo?(g.yc=b,b=b.trickModeVideo):g.yc=null),g.stream!=b||e)&&(a.o.has(b)?g.ba=a.o.get(b):g.ba&&Pl(g.ba,b),b.type==Wc&&(e=Bf(b.mimeType,b.codecs),mk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.o.has(g.stream)&&g.stream.closeSegmentIndex&&(g.fb?(e="("+g.type+":"+g.stream.id+")",a.H.has(e)||a.H.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),g.stream=b,g.za=null,g.lh=!!f,c?g.Bd?g.uf=!0:g.fb?(g.Cc=!0,g.se=
|
|
482
|
+
d,g.uf=!0):(fm(g),um(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.fb||g.Rb||nm(a,g,0),vm(a,g).catch(function(h){if(a.g)a.g.onError(h)})):lm(a,b)}
|
|
483
|
+
function vm(a,b){var c,d;return P(function(e){if(1==e.g){if(!b.Ab)return e.return();c=b.stream;d=b.Ab;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Ab!=d||b.stream!=c)return e.return();var f=a.g.Ae();var g=sk(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.hb?b.hb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.La?k.La-k.$a:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ma)&&(h+=(k.La?k.La-k.$a:null)||0),k=a.g.getBandwidthEstimate(),
|
|
483
484
|
f=8*h/k<(g||0)-f-Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal)||b.Ab.h.g>h?!0:!1):f=!1;f&&b.Ab.abort();H(e)})}
|
|
484
|
-
q.td=function(){if(this.g)for(var a=this.g.Ae(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.oa;e.G?e=!1:d==Wc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=rk(e,d),e=mj(e,a));if(!e){c.ba&&(c.ba.g=null);if("audio"===c.type){e=t(this.o.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.za=null;(null!=sk(this.g.oa,d)||c.
|
|
485
|
-
function wm(a,b){b.Bd||b.Cc||(b.
|
|
485
|
+
q.td=function(){if(this.g)for(var a=this.g.Ae(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.oa;e.G?e=!1:d==Wc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=rk(e,d),e=mj(e,a));if(!e){c.ba&&(c.ba.g=null);if("audio"===c.type){e=t(this.o.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.za=null;(null!=sk(this.g.oa,d)||c.fb)&&wm(this,c);c.Ab&&(c.Ab.abort(),c.Ab=null);d===Wc&&(d=this.g.oa,d.I&&d.I.g());c.td=!0}}};
|
|
486
|
+
function wm(a,b){b.Bd||b.Cc||(b.fb?(b.Cc=!0,b.se=0):null==qk(a.g.oa,b.type)?null==b.Rb&&nm(a,b,0):(fm(b),um(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
|
|
486
487
|
function km(a,b){var c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g){c=Yc;if(!a.j)throw new U(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.ka,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.wa,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Na,a.u),e.add(a.u));f=a.g.oa;return G(p,f.init(d,a.l.sequenceMode,a.l.type,a.l.ignoreManifestTimestampsInSegmentsMode),2)}Mh(a.m);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=mm(a,l),b.has(l.id)&&(n=
|
|
487
|
-
b.get(l.id),Fl(n,function(r,u,v){return xm(r,u,v||null,a.h.retryParameters,a.g.
|
|
488
|
-
function hm(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Wc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Wc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.ba)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new El(a.h.segmentPrefetchLimit,b,function(d,e,f){return xm(d,e,f||null,a.h.retryParameters,a.g.
|
|
488
|
+
b.get(l.id),Fl(n,function(r,u,v){return xm(r,u,v||null,a.h.retryParameters,a.g.hc)}),m.ba=n),a.i.set(k,m),nm(a,m,0));H(p)})}function mm(a,b){return{stream:b,type:b.type,za:null,ba:hm(a,b),hb:null,Pc:null,Me:null,Le:null,Ke:null,yc:null,endOfStream:!1,fb:!1,Rb:null,Cc:!1,se:0,uf:!1,Bd:!1,td:!0,Lg:!1,Kd:!1,Ab:null}}
|
|
489
|
+
function hm(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Wc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Wc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.ba)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new El(a.h.segmentPrefetchLimit,b,function(d,e,f){return xm(d,e,f||null,a.h.retryParameters,a.g.hc)},0>a.g.Va()):null}
|
|
489
490
|
function im(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=t(a.l.variants),e=d.next(),f={};!e.done;f={Db:void 0},e=d.next())if(f.Db=e.value,f.Db.audio)if(a.o.has(f.Db.audio)){if(e=a.o.get(f.Db.audio),Ol(e,b),!(0<b&&c.some(function(h){return function(k){return ad(h.Db.audio.language,k)}}(f)))){var g=a.i.get(f.Db.audio.type);e!==(g&&g.ba)&&Nl(e);a.o.delete(f.Db.audio)}}else 0>=b||!c.some(function(h){return function(k){return ad(h.Db.audio.language,k)}}(f))||!(e=hm(a,f.Db.audio))||
|
|
490
491
|
(f.Db.audio.segmentIndex||f.Db.audio.createSegmentIndex(),a.o.set(f.Db.audio,e))}q.updateDuration=function(){var a=this.l.presentationTimeline.getDuration();Infinity>a?this.g.oa.sb(a):this.g.oa.sb(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
|
|
491
|
-
function ym(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.
|
|
492
|
+
function ym(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.fb||null==b.Rb||b.Bd)return k.return();b.Rb=null;if(!b.Cc){k.B(2);break}return G(k,um(a,b,b.uf,b.se),3);case 3:return k.return();case 2:tm(a,b);if(b.stream.segmentIndex){k.B(4);break}c=b.stream;ta(k,5);return G(k,b.stream.createSegmentIndex(),7);case 7:wa(k,6);break;case 5:return d=xa(k),G(k,zm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.fb||b.Rb||
|
|
492
493
|
nm(a,b,0),k.return();case 4:ta(k,9);e=Am(a,b);null!=e&&(nm(a,b,e),b.Kd=!1);wa(k,10);break;case 9:return f=xa(k),G(k,zm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.G||!g.every(function(l){return l.endOfStream})){k.B(0);break}return G(k,a.g.oa.endOfStream(),13);case 13:Mh(a.m),h=a.g.oa.getDuration(),0!=h&&h<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.sb(h),H(k)}})}
|
|
493
|
-
function Am(a,b){if(Bm(b))return Hk(a.g.oa,b.stream.originalId||""),null;b.type==Wc&&Ik(a.g.oa);if(!a.g.oa.xa&&b.type!=Wc)return a.h.updateIntervalSeconds/2;var c=a.g.Ae();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.
|
|
494
|
-
!0,"video"==b.type&&(a=a.i.get(Wc))&&Bm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(f>=g)return a.h.updateIntervalSeconds/2;g=!b.za;e=Cm(a,b,c,e);if(!e)return a.h.updateIntervalSeconds;f=!1;g&&b.lh&&(f=!0,b.lh=!1);g=Infinity;h=Array.from(a.i.values());h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,Bm(k)||k.za&&!k.za.current()||(g=Math.min(g,k.hb?k.hb.endTime:c));if(d>=g+a.l.presentationTimeline.
|
|
494
|
+
function Am(a,b){if(Bm(b))return Hk(a.g.oa,b.stream.originalId||""),null;b.type==Wc&&Ik(a.g.oa);if(!a.g.oa.xa&&b.type!=Wc)return a.h.updateIntervalSeconds/2;var c=a.g.Ae();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.Ya(c,!0),Gl(e,c);d=b.hb?b.hb.endTime:c;var f=tk(a.g.oa,b.type,c),g=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),h=a.l.presentationTimeline.getDuration()-d;e=sk(a.g.oa,b.type);if(1E-6>h&&e)return b.endOfStream=
|
|
495
|
+
!0,"video"==b.type&&(a=a.i.get(Wc))&&Bm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(f>=g)return a.h.updateIntervalSeconds/2;g=!b.za;e=Cm(a,b,c,e);if(!e)return a.h.updateIntervalSeconds;f=!1;g&&b.lh&&(f=!0,b.lh=!1);g=Infinity;h=Array.from(a.i.values());h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,Bm(k)||k.za&&!k.za.current()||(g=Math.min(g,k.hb?k.hb.endTime:c));if(d>=g+a.l.presentationTimeline.h)return a.h.updateIntervalSeconds;b.ba&&b.za&&!a.o.has(b.stream)&&(b.ba.Ya(e.startTime),Gl(b.ba,
|
|
495
496
|
e.startTime));Dm(a,b,c,e,f).catch(function(){});return null}function Cm(a,b,c,d){if(b.za)return b.za.current();if(b.hb||d)return b.za=b.stream.segmentIndex.bc(b.hb?b.hb.endTime:d,!1,0>a.g.Va()),b.za&&b.za.next().value;d=a.l.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Va();var f=null;d&&(b.za=b.stream.segmentIndex.bc(e,!1,a),f=b.za&&b.za.next().value);f||(b.za=b.stream.segmentIndex.bc(c,!1,a),f=b.za&&b.za.next().value);return f}
|
|
496
|
-
function Dm(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:f=Yc;g=b.stream;h=b.za;b.
|
|
497
|
-
v=!0;Mh(a.m);if(a.A)return I.return();ta(I,2);r=Fm(r,E);F=!1;L=0;(new Uh).box("mdat",function(N){L=N.size+N.start;F=!0}).parse(r,!1,!0);if(!F){I.B(4);break}J=r.subarray(0,L);r=r.subarray(L);return G(I,Gm(a,b,c,g,d,J,!0,e),5);case 5:b.ba&&b.za&&Gl(b.ba,d.startTime,!0);case 4:wa(I,0);break;case 2:w=K=xa(I),H(I)}})},G(D,Hm(a,b,d,y),9);n=Hm(a,b,d);return G(D,n,7);case 7:p=D.h;Mh(a.m);if(a.A)return D.return();Mh(a.m);return b.Cc?(b.
|
|
498
|
-
if(v){D.B(10);break}u=!0;Mh(a.m);return a.A?D.return():b.Cc?(b.
|
|
497
|
+
function Dm(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:f=Yc;g=b.stream;h=b.za;b.fb=!0;ta(D,2);if(2==d.sc())throw new U(1,1,1011);return G(D,Em(a,b,d,e),4);case 4:Mh(a.m);if(a.A)return D.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.l.isLowLatency)&&l&&k&&("HLS"!=a.l.type||d.m))return r=new Uint8Array(0),v=u=!1,y=function(E){var F,L,J,K;return P(function(I){switch(I.g){case 1:if(u)return I.return();
|
|
498
|
+
v=!0;Mh(a.m);if(a.A)return I.return();ta(I,2);r=Fm(r,E);F=!1;L=0;(new Uh).box("mdat",function(N){L=N.size+N.start;F=!0}).parse(r,!1,!0);if(!F){I.B(4);break}J=r.subarray(0,L);r=r.subarray(L);return G(I,Gm(a,b,c,g,d,J,!0,e),5);case 5:b.ba&&b.za&&Gl(b.ba,d.startTime,!0);case 4:wa(I,0);break;case 2:w=K=xa(I),H(I)}})},G(D,Hm(a,b,d,y),9);n=Hm(a,b,d);return G(D,n,7);case 7:p=D.h;Mh(a.m);if(a.A)return D.return();Mh(a.m);return b.Cc?(b.fb=!1,nm(a,b,0),D.return()):G(D,Gm(a,b,c,g,d,p,!1,e),6);case 9:z=D.h;if(w)throw w;
|
|
499
|
+
if(v){D.B(10);break}u=!0;Mh(a.m);return a.A?D.return():b.Cc?(b.fb=!1,nm(a,b,0),D.return()):G(D,Gm(a,b,c,g,d,z,!1,e),10);case 10:b.ba&&b.za&&Gl(b.ba,d.startTime,!0);case 6:Mh(a.m);if(a.A)return D.return();b.hb=d;h.next();b.fb=!1;b.Lg=!1;C=a.g.oa.Tb();A=C[b.type];db(JSON.stringify(A));b.Cc||a.g.Gg(d,b.stream);nm(a,b,0);wa(D,0);break;case 2:B=xa(D);Mh(a.m,B);if(a.A)return D.return();b.fb=!1;if(7001==B.code)b.fb=!1,fm(b),nm(a,b,0),D.B(0);else if(b.type==f.Na&&a.h.ignoreTextStreamFailures)a.i.delete(f.Na),
|
|
499
500
|
D.B(0);else if(3017==B.code)Im(a,b,B),D.B(0);else return b.Kd=!0,1==B.category&&b.ba&&Ml(b.ba,d),B.severity=2,G(D,zm(a,b,B),0)}})}function Fm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Im(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.Lg})){if(a.g.disableStream(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kd=!0;a.A=!0;a.g.onError(c);return}b.Lg=!0}nm(a,b,4)}
|
|
500
501
|
function Em(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){switch(A.g){case 1:e=Yc;f=null==b.hb&&null==b.Pc;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.P)-.1);k=Math.min(c.appendWindowEnd,a.O)+.01;l=c.codecs||b.stream.codecs;m=Kf(l);n=Lf(c.mimeType||b.stream.mimeType);p=c.timestampOffset;if(p==b.Me&&h==b.Le&&k==b.Ke&&m==b.zg&&n==b.Ag){A.B(2);break}r=b.zg&&b.Ag&&Uk(a.g.oa,b.type,n,l);if(!r){A.B(3);break}u=null;b.type===e.wa?u=a.i.get(e.ka):b.type===e.ka&&(u=a.i.get(e.wa));if(!u){A.B(3);
|
|
501
502
|
break}return G(A,gm(u).catch(function(){}),5);case 5:u.Pc=null,wm(a,u);case 3:return G(A,Jm(a,b,p,h,k,c,m,n),2);case 2:return fj(c.ma,b.Pc)||(b.Pc=c.ma,c.l&&c.ma&&(v=Hm(a,b,c.ma),w=function(){var B,D,E,F,L,J,K;return P(function(I){switch(I.g){case 1:return ta(I,2),G(I,v,4);case 4:return B=I.h,Mh(a.m),D=null,E=new Map,F={projection:null,hfov:null},L=new Uh,L.box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(N){D=zj(N.reader,N.version).timescale}).box("hdlr",function(N){N=N.reader;N.skip(8);
|
|
502
503
|
switch(N.Rc()){case "soun":E.set(e.ka,D);break;case "vide":E.set(e.wa,D)}D=null}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("encv",bi).box("avc1",bi).box("avc3",bi).box("hev1",bi).box("hvc1",bi).box("dvav",bi).box("dva1",bi).box("dvh1",bi).box("dvhe",bi).box("dvc1",bi).box("dvi1",bi).box("vexu",Zh).box("proj",Zh).W("prji",function(N){N=N.reader.Rc();F.projection=N}).box("hfov",function(N){N=N.reader.T()/1E3;F.hfov=N}).parse(B),Km(a,F),E.has(b.type)?c.ma.timescale=E.get(b.type):null!=D&&(c.ma.timescale=
|
|
503
|
-
D),J=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,G(I,a.g.ph(b.type,B),5);case 5:return G(I,vk(a.g.oa,b.type,B,null,b.stream,J,b.td,d),6);case 6:wa(I,0);break;case 2:throw K=xa(I),b.Pc=null,K;}})},y=c.startTime,f&&(z=sk(a.g.oa,b.type),null!=z&&(y=z)),a.g
|
|
504
|
+
D),J=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,G(I,a.g.ph(b.type,B),5);case 5:return G(I,vk(a.g.oa,b.type,B,null,b.stream,J,b.td,d),6);case 6:wa(I,0);break;case 2:throw K=xa(I),b.Pc=null,K;}})},y=c.startTime,f&&(z=sk(a.g.oa,b.type),null!=z&&(y=z)),a.g.ck(y,c.ma),g.push(w()))),a.l.sequenceMode&&(C=b.hb?b.hb.i:null,c.i!=C&&g.push(Nk(a.g.oa,b.type,c.startTime))),G(A,Promise.all(g),0)}})}
|
|
504
505
|
function Jm(a,b,c,d,e,f,g,h){var k,l,m,n;return P(function(p){if(1==p.g)return k=Yc,l=new Map,a.j.audio&&l.set(k.ka,a.j.audio),a.j.video&&l.set(k.wa,a.j.video),ta(p,2),b.Le=d,b.Ke=e,g&&(b.zg=g),h&&(b.Ag=h),b.Me=c,m=a.l.sequenceMode||"HLS"==a.l.type,G(p,Lk(a.g.oa,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),4);if(2!=p.g)return wa(p,0);n=xa(p);b.Le=null;b.Ke=null;b.zg=null;b.Ag=null;b.Me=null;throw n;})}
|
|
505
506
|
function Gm(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,p,r,u,v;return P(function(w){switch(w.g){case 1:k=d.closedCaptions&&0<d.closedCaptions.size;m=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;n=a.h.parsePrftBox&&!a.I;p="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType;r=null;e.ma&&(r=e.ma.timescale);u=p&&r&&"video"===d.type&&"DASH"==a.l.type&&a.h.shouldFixTimestampOffset;if(m||n||u)l=new Uh;m&&l.W("emsg",function(y){var z=d.emsgSchemeIdUris;
|
|
506
|
-
if(0===y.version){var C=y.reader.Rc();var A=y.reader.Rc();var B=y.reader.T();var D=y.reader.T();var E=y.reader.T();var F=y.reader.T();var L=e.startTime+D/B}else B=y.reader.T(),L=y.reader.rd()/B+e.timestampOffset,D=L-e.startTime,E=y.reader.T(),F=y.reader.T(),C=y.reader.Rc(),A=y.reader.Rc();y=y.reader.Pb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.
|
|
507
|
+
if(0===y.version){var C=y.reader.Rc();var A=y.reader.Rc();var B=y.reader.T();var D=y.reader.T();var E=y.reader.T();var F=y.reader.T();var L=e.startTime+D/B}else B=y.reader.T(),L=y.reader.rd()/B+e.timestampOffset,D=L-e.startTime,E=y.reader.T(),F=y.reader.T(),C=y.reader.Rc(),A=y.reader.Rc();y=y.reader.Pb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.dk();else if(z=L+E/B,B=(new Map).set("detail",{startTime:L,endTime:z,schemeIdUri:C,
|
|
507
508
|
value:A,timescale:B,presentationTimeDelta:D,eventDuration:E,id:F,messageData:y}),B=new T("emsg",B),B.cancelable=!0,a.g.onEvent(B),!B.defaultPrevented&&("https://aomedia.org/emsg/ID3"==C||"https://developer.apple.com/streaming/emsg-id3"==C)&&(C=vj(y),C.length))a.g.onMetadata([{cueTime:L,data:y,frames:C,dts:L,pts:L}],0,z)});n&&l.W("prft",function(y){if(!a.I&&e.ma.timescale){var z=y.reader,C=y.version;z.T();y=z.T();var A=z.T();y=1E3*y+A/Math.pow(2,32)*1E3;0===C?z=z.T():(C=z.T(),z=z.T(),z=C*Math.pow(2,
|
|
508
509
|
32)+z);y=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+y)).getTime();z=(new Map).set("detail",{wallClockTime:y,programStartDate:new Date(y-z/e.ma.timescale*1E3)});z=new T("prft",z);a.g.onEvent(z);a.I=!0}});u&&l.box("moof",Zh).box("traf",Zh).W("tfdt",function(y){var z,C,A,B,D,E;return P(function(F){z=yj(y.reader,y.version);C=z.baseMediaDecodeTime;if(!C)return F.return();A=-C/r;B=Number(b.Me)||0;if(!(B<A))return F.B(0);D=b.Le;E=b.Ke;return G(F,Jm(a,b,A,D,E,e),0)})});(m||n||u)&&l.parse(f,
|
|
509
510
|
!1,g);return G(w,Lm(a,b,c),2);case 2:return Mh(a.m),v=b.td,b.td=!1,G(w,a.g.ph(b.type,f),3);case 3:return G(w,vk(a.g.oa,b.type,f,e,d,k,v,h,g),4);case 4:Mh(a.m),H(w)}})}
|
|
510
|
-
function Lm(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g){d=b.stream.segmentIndex;
|
|
511
|
-
function
|
|
512
|
-
function
|
|
513
|
-
function
|
|
514
|
-
function um(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Cc=!1,b.uf=!1,b.se=0,b.Bd=!0,b.hb=null,b.za=null,b.ba&&!a.o.has(b.stream)&&Nl(b.ba),d?(e=a.g.Ae(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,Kk(a.g.oa,b.type),4);if(3!=g.g)return Mh(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mh(a.m);b.Bd=!1;b.endOfStream=!1;b.eb||b.Rb||nm(a,b,0);H(g)})}
|
|
511
|
+
function Lm(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g){d=b.stream.segmentIndex;d instanceof tl&&d.Ya(a.l.presentationTimeline.cc());e=Math.max(a.h.bufferBehind,a.l.presentationTimeline.h);f=qk(a.g.oa,b.type);if(null==f)return k.return();g=c-f;h=g-e;return h<=a.h.evictionGoal?k.return():G(k,a.g.oa.remove(b.type,f,f+h),2)}Mh(a.m);H(k)})}function Bm(a){return a&&a.type==Wc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
|
|
512
|
+
function Hm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.Id())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof ej&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ah=d),f=m.Ve):f=null}f||(f=xm(c,b.stream,d||null,a.h.retryParameters,a.g.hc));g=0;b.za&&(g=b.za.h);b.Ab=f;return G(l,f.promise,2);case 2:h=l.h;b.Ab=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,bm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
|
|
513
|
+
function xm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof gj?a:void 0,h=g?1:0;a=cm(a.R(),a.$a,a.La,d,c);a.contentType=b.type;return e.request(Jh,a,{type:h,stream:b,segment:g,isPreload:f})}
|
|
514
|
+
function um(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Cc=!1,b.uf=!1,b.se=0,b.Bd=!0,b.hb=null,b.za=null,b.ba&&!a.o.has(b.stream)&&Nl(b.ba),d?(e=a.g.Ae(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,Kk(a.g.oa,b.type),4);if(3!=g.g)return Mh(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mh(a.m);b.Bd=!1;b.endOfStream=!1;b.fb||b.Rb||nm(a,b,0);H(g)})}
|
|
515
515
|
function nm(a,b,c){var d=b.type;if(d!=Wc||a.i.has(d))b.Rb=(new Vb(function(){var e;return P(function(f){if(1==f.g)return ta(f,2),G(f,ym(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);H(f)})})).X(c)}function fm(a){null!=a.Rb&&(a.Rb.stop(),a.Rb=null)}function gm(a){return P(function(b){return a.Ab?G(b,a.Ab.abort(),0):b.B(0)})}
|
|
516
516
|
function zm(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,mh(a.L),2);Mh(a.m);if(1===c.category){if(b.yc)return pm(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);H(e)})}
|
|
517
517
|
function Mm(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.N<c)return h.return(!1);a.N=b;d=Yc;if(e=a.i.get(d.ka))e.Pc=null,wm(a,e),gm(e).catch(function(){});if(f=a.i.get(d.wa))f.Pc=null,wm(a,f),gm(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.ka,a.j.audio);a.j.video&&g.set(d.wa,a.j.video);return G(h,Tk(a.g.oa,g),2)}return h.return(!0)})}
|
|
@@ -522,7 +522,7 @@ function Rm(a,b){function c(g){for(var h=t(Object.keys(g)),k=h.next();!k.done;k=
|
|
|
522
522
|
m);else k[l]=m;return k},{})}function e(g){return Array.isArray(g)&&0===g.length}function f(g){return g&&"object"===typeof g&&!Array.isArray(g)}a=d(a,b);c(a);return a}S("shaka.util.ConfigUtils",Nm);Nm.getDifferenceFromConfigObjects=Rm;Nm.convertToConfigObject=Pm;Nm.mergeConfigObjects=Om;function Sm(){}function Tm(a){a=Cc(a);return(new ob(a)).$b}function Um(a,b,c){function d(h){Nb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ib(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new U(2,6,6015);var e;"string"==typeof b?e=Ec(b,!0):e=b;a=Cc(a);a=Ec(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Vm(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Cc(a).split("skd://").pop();return Um(a,c,b)}
|
|
523
523
|
function Wm(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}S("shaka.util.FairPlayUtils",Sm);Sm.commonFairPlayResponse=function(a,b){if(2===a){try{var c=zc(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Jb(Kc(c)))}};Sm.expressplayFairPlayRequest=function(a,b){Wm(a,b)};
|
|
524
524
|
Sm.conaxFairPlayRequest=function(a,b){Wm(a,b)};Sm.ezdrmFairPlayRequest=function(a,b){Wm(a,b)};Sm.verimatrixFairPlayRequest=function(a,b){2===a&&(a=Ib(b.body),a=Jc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Dc("spc="+a))};Sm.expressplayInitDataTransform=function(a,b,c){return Vm(a,b,c)};
|
|
525
|
-
Sm.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Cc(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=
|
|
525
|
+
Sm.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Cc(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Lb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Um(a,d,b)};Sm.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Cc(a).split(";").pop();return Um(a,c,b)};Sm.verimatrixInitDataTransform=function(a,b,c){return Vm(a,b,c)};Sm.initDataTransform=Um;
|
|
526
526
|
Sm.defaultGetContentId=Tm;Sm.isFairPlaySupported=function(){var a;return P(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},ta(b,2),G(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);xa(b);return b.return(!1)})};function Xm(){}
|
|
527
527
|
function Ym(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:lh(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(m,n,p){vc()&&"skd"==n&&(n=p.serverCertificate,p=Tm(m),m=Um(m,p,n));return m},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:ac(),minHdcpVersion:"",ignoreDuplicateInitData:!fc()};
|
|
528
528
|
(ac()||mc())&&b.preferredKeySystems.push("com.microsoft.playready");var c="reload",d=!1;fc()||ec()||bc("Tizen 4")||bc("Tizen 5")||bc("Tizen 6")||hc()||gc()&&53===ic()||gc()&&68===ic()||!(!jc()||jc()&&rc()||jc()&&bc("Fuchsia"))||qc()&&$b()||(c="smooth",d=!0);d={retryParameters:lh(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,
|
|
@@ -539,18 +539,18 @@ minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth
|
|
|
539
539
|
drawLogo:!1},ads:{customPlayheadTracker:g,skipPlayDetection:h,supportsMultipleMediaElements:k}};f.trackSelectionCallback=function(m){return P(function(n){return n.return(an(m,l.preferredAudioLanguage,l.preferredVideoHdrLevel))})};return l}
|
|
540
540
|
function bn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return Om(a,b,c||Ym(),d,"")}
|
|
541
541
|
function an(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=jd(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return bd(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
|
|
542
|
-
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Wc&&"image"!=c.type||b.push(c);return b}function Zm(a){return Qm([a],a)}function $m(a){return Qm([a],a)}S("shaka.util.PlayerConfiguration",Xm);Xm.mergeConfigObjects=bn;Xm.createDefault=Ym;function cn(a,b,c,d){hb.call(this);this.O=a;this.
|
|
542
|
+
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Wc&&"image"!=c.type||b.push(c);return b}function Zm(a){return Qm([a],a)}function $m(a){return Qm([a],a)}S("shaka.util.PlayerConfiguration",Xm);Xm.mergeConfigObjects=bn;Xm.createDefault=Ym;function cn(a,b,c,d){hb.call(this);this.O=a;this.V=b;this.Ca=d.networkingEngine;this.C=c;this.o=null;this.xa=0;this.Ta=d.bd;this.H=d.Wj;this.bb=d.Xj;this.g=d.config;this.j=this.I=this.h=null;this.ha=!1;this.J=d.hk;this.qa=!1;this.l=null;this.aa=!1;this.i=this.G=null;this.$=!1;this.N=new Map;this.sa=!1;this.Ia=d.gk;this.Y=new Dl;this.m=new nh;this.P=null;this.u=!1;this.Ja=d.Ti;this.ia=null;this.Ga=d.Si;this.S=!1;this.L=[];this.K=[];this.A=!0}oa(cn,hb);
|
|
543
543
|
function dn(a,b,c){(a=b?a.K:a.L)?a.push(c):c()}function en(a){if(a.K)for(var b=t(a.K),c=b.next();!c.done;c=b.next())c=c.value,c();a.K=null}function fn(a,b){a.P=b;a.S=!0;if(a.L){b=t(a.L);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.L=null}q=cn.prototype;q.getStartTime=function(){return this.C};q.gd=function(){return this.O};q.kg=function(){return this.h};function gn(a){a.$=!0;return a.i}function hn(a){a.ha=!0;return a.j}function jn(a){a.qa=!0;return a.J}q.getStats=function(){return this.Y};
|
|
544
544
|
function kn(a){a.aa=!0;return a.l}function ln(a){a.sa=!0;return a.N}
|
|
545
545
|
q.start=function(){var a=this;(function(){var b;return P(function(c){switch(c.g){case 1:return G(c,Promise.resolve(),2);case 2:return ta(c,3),G(c,mn(a),5);case 5:return nn(a),G(c,on(a),6);case 6:nn(a);a.o||(a.o=new Xg(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,a.g.manifest.dash.enableAudioGroups));
|
|
546
|
-
if(a.Ga){var d=a.g.abrFactory;a.G=d;a.i=d();a.i.configure(a.g.abr)}if(a.Ja){d=a.h.presentationTimeline.
|
|
546
|
+
if(a.Ga){var d=a.g.abrFactory;a.G=d;a.i=d();a.i.configure(a.g.abr)}if(a.Ja){d=a.h.presentationTimeline.U();var e=Jg(a.h.variants);e=a.o.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant())a.ia=e,e.video&&pn(a,e.video,d),e.audio&&pn(a,e.audio,d)}return G(c,void 0,7);case 7:nn(a);a.m.resolve();wa(c,0);break;case 3:b=xa(c),a.m.reject(b),H(c)}})})()};q.dispatchEvent=function(a){return this.P?this.P.dispatchEvent(a):hb.prototype.dispatchEvent.call(this,a)};
|
|
547
547
|
q.onError=function(a){2===a.severity&&(this.m.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new T("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function nn(a){if(a.u)throw new U(2,7,7003);}function qn(a,b){a.dispatchEvent(new T("onstatechange",(new Map).set("state",b)))}
|
|
548
|
-
function mn(a){var b,c,d,e;return P(function(f){if(1==f.g)return qn(a,"manifest-parser"),a.j||(a.I=Zi(a.O,a.
|
|
548
|
+
function mn(a){var b,c,d,e;return P(function(f){if(1==f.g)return qn(a,"manifest-parser"),a.j||(a.I=Zi(a.O,a.V),a.j=a.I(),a.j.configure(a.g.manifest,function(){return a.A})),b=Date.now()/1E3,qn(a,"manifest"),a.h?f.B(2):G(f,a.j.start(a.O,a.bb),3);2!=f.g&&(a.h=f.h);c=new T("manifestparsed",void 0);a.dispatchEvent(c);if(0==a.h.variants.length)throw new U(2,4,4036);rn(a.h);d=Date.now()/1E3;e=d-b;a.Y.J=e;H(f)})}
|
|
549
549
|
function on(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:qn(a,"drm-engine");a.xa=Date.now()/1E3;a.l=a.Ta();a.H.g=a.l;a.l.configure(a.g.drm,function(){return a.A});b=Ui(a.H,a.h);if(!b){g.B(2);break}c=new T("trackschanged",void 0);return G(g,Promise.resolve(),3);case 3:nn(a),a.dispatchEvent(c);case 2:return d=Jg(a.h.variants),G(g,ni(a.l,d,a.h.offlineSessionIds),4);case 4:return nn(a),G(g,Si(a.H,a.h),5);case 5:e=g.h;if(!e){g.B(0);break}f=new T("trackschanged",void 0);return G(g,Promise.resolve(),
|
|
550
550
|
7);case 7:a.dispatchEvent(f),H(g)}})}q.configure=function(a,b){a=Pm(a,b);bn(this.g,a)};q.getConfiguration=function(){return ae(this.g)};
|
|
551
|
-
function pn(a,b,c){var d,e,f,g,h;P(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new El(d,b,function(l,m,n){return xm(l,m,n||null,a.g.streaming.retryParameters,a.
|
|
551
|
+
function pn(a,b,c){var d,e,f,g,h;P(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new El(d,b,function(l,m,n){return xm(l,m,n||null,a.g.streaming.retryParameters,a.Ca,a.A)},!1),a.N.set(b.id,e),G(k,b.createSegmentIndex(),2);f=a.C||0;(h=(g=b.segmentIndex.bc(f))?g.current():null)||(h=Cg(b.segmentIndex));h&&(c?h.ma&&Hl(e,h.ma):Gl(e,h.startTime));H(k)})}q.Pk=function(){return this.m};
|
|
552
552
|
q.destroy=function(){var a=this,b,c,d;return P(function(e){switch(e.g){case 1:a.u=!0;if(!a.j||a.ha){e.B(2);break}return G(e,a.j.stop(),2);case 2:if(!a.i||a.$){e.B(4);break}return G(e,a.i.stop(),4);case 4:a.J&&!a.qa&&a.J.release();if(!a.l||a.aa){e.B(6);break}return G(e,a.l.destroy(),6);case 6:if(0<a.N.size&&!a.sa)for(b=t(a.N.values()),c=b.next();!c.done;c=b.next())d=c.value,Nl(d);H(e)}})};
|
|
553
|
-
function rn(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))}S("shaka.media.PreloadManager",cn);cn.prototype.destroy=cn.prototype.destroy;cn.prototype.waitForFinish=cn.prototype.
|
|
553
|
+
function rn(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))}S("shaka.media.PreloadManager",cn);cn.prototype.destroy=cn.prototype.destroy;cn.prototype.waitForFinish=cn.prototype.Pk;function sn(a,b){hb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Yc:null,Xc:tn,Lc:function(d,e){return un(c,"enter",d,e)}},{Yc:vn,Xc:tn,Lc:function(d,e){return un(c,"enter",d,e)}},{Yc:wn,Xc:tn,Lc:function(d,e){return un(c,"enter",d,e)}},{Yc:tn,Xc:vn,Lc:function(d,e){return un(c,"exit",d,e)}},{Yc:tn,Xc:wn,Lc:function(d,e){return un(c,"exit",d,e)}},{Yc:vn,Xc:wn,Lc:function(d,e){return un(c,"skip",d,e)}},{Yc:wn,Xc:vn,Lc:function(d,e){return un(c,"skip",d,e)}}];this.h=new sd;this.h.s(this.i,
|
|
554
554
|
"regionremove",function(d){c.g.delete(d.region)})}oa(sn,hb);sn.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;hb.prototype.release.call(this)};sn.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?vn:a>d.endTime?wn:tn;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Yc==e&&h.Xc==f&&h.Lc(d,b)}}};
|
|
555
555
|
function un(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var vn=1,tn=2,wn=3;function xn(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:var n=(new ob(a)).jb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=yn[d])return m.return(e);f=0;g=Dh([a],c);ta(m,2);g.method="HEAD";return G(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code&&1001!=k.code){m.B(3);break}g.method="GET";return G(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
|
|
556
556
|
e.toLowerCase().split(";").shift():"")}})}
|
|
@@ -565,16 +565,16 @@ function En(a){if(Infinity===a.endTime||a.endTime<a.startTime)return null;var b=
|
|
|
565
565
|
b.region.height=a.region.lines,b.region.heightUnits=2,b.region.regionAnchorX=a.region.regionAnchorX,b.region.regionAnchorY=a.region.regionAnchorY,b.region.scroll=a.region.scroll,b.region.viewportAnchorX=a.region.viewportAnchorX,b.region.viewportAnchorY=a.region.viewportAnchorY,b.region.viewportAnchorUnits=Md,b.region.width=a.region.width,b.region.widthUnits=Md);cf(b);return b};function Fn(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,"metadata"!==d.kind&&"chapters"!==d.kind&&(d.mode="disabled",d.label==b&&(this.g=d));this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Fn.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;Gn(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
566
566
|
q.append=function(a){var b=Bn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];b=t(b);for(var d=b.next(),e={};!d.done;e={jd:void 0},d=b.next())e.jd=d.value,!a.some(function(f){return function(g){return g.startTime==f.jd.startTime&&g.endTime==f.jd.endTime&&g.text==f.jd.payload?!0:!1}}(e))&&e.jd.payload&&(d=Dn(e.jd))&&c.push(d);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):
|
|
567
567
|
c.indexOf(f)-c.indexOf(g)});a=t(a);for(b=a.next();!b.done;b=a.next())this.g.addCue(b.value)};q.destroy=function(){this.g&&(Gn(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
568
|
-
function Gn(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}S("shaka.text.SimpleTextDisplayer",Fn);Fn.prototype.setTextVisibility=Fn.prototype.setTextVisibility;Fn.prototype.isTextVisible=Fn.prototype.isTextVisible;Fn.prototype.destroy=Fn.prototype.destroy;Fn.prototype.append=Fn.prototype.append;Fn.prototype.remove=Fn.prototype.remove;Fn.prototype.configure=Fn.prototype.configure;function Hn(){}q=Hn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};S("shaka.text.StubTextDisplayer",Hn);Hn.prototype.setTextVisibility=Hn.prototype.setTextVisibility;Hn.prototype.isTextVisible=Hn.prototype.isTextVisible;Hn.prototype.destroy=Hn.prototype.destroy;Hn.prototype.append=Hn.prototype.append;Hn.prototype.remove=Hn.prototype.remove;Hn.prototype.configure=Hn.prototype.configure;function In(){}function W(a){return document.createElement(a)}function Jn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Kn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}S("shaka.util.Dom",In);In.removeAllChildren=Kn;function Ln(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.u=b;this.l=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.u.appendChild(this.g);c&&c.captionsUpdatePeriod||Bd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Wb(function(){d.A.paused||Mn(d)})).
|
|
569
|
-
c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new sd;this.j.s(document,"fullscreenchange",function(){Mn(d,!0)});this.j.s(this.A,"seeking",function(){Mn(d,!0)});this.j.s(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Mn(d,!0)}),this.o.observe(this.g));this.C=new Map}q=Ln.prototype;q.configure=function(a){this.G&&this.G.
|
|
568
|
+
function Gn(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}S("shaka.text.SimpleTextDisplayer",Fn);Fn.prototype.setTextVisibility=Fn.prototype.setTextVisibility;Fn.prototype.isTextVisible=Fn.prototype.isTextVisible;Fn.prototype.destroy=Fn.prototype.destroy;Fn.prototype.append=Fn.prototype.append;Fn.prototype.remove=Fn.prototype.remove;Fn.prototype.configure=Fn.prototype.configure;function Hn(){}q=Hn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};S("shaka.text.StubTextDisplayer",Hn);Hn.prototype.setTextVisibility=Hn.prototype.setTextVisibility;Hn.prototype.isTextVisible=Hn.prototype.isTextVisible;Hn.prototype.destroy=Hn.prototype.destroy;Hn.prototype.append=Hn.prototype.append;Hn.prototype.remove=Hn.prototype.remove;Hn.prototype.configure=Hn.prototype.configure;function In(){}function W(a){return document.createElement(a)}function Jn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Kn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}S("shaka.util.Dom",In);In.removeAllChildren=Kn;function Ln(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.u=b;this.l=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.u.appendChild(this.g);c&&c.captionsUpdatePeriod||Bd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Wb(function(){d.A.paused||Mn(d)})).Ba(c&&
|
|
569
|
+
c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new sd;this.j.s(document,"fullscreenchange",function(){Mn(d,!0)});this.j.s(this.A,"seeking",function(){Mn(d,!0)});this.j.s(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Mn(d,!0)}),this.o.observe(this.g));this.C=new Map}q=Ln.prototype;q.configure=function(a){this.G&&this.G.Ba(a.captionsUpdatePeriod)};
|
|
570
570
|
q.append=function(a){var b=[].concat(x(this.h));a=t(Cn(a));for(var c=a.next(),d={};!c.done;d={Of:void 0},c=a.next())d.Of=c.value,b.some(function(e){return function(f){return bf(f,e.Of)}}(d))||this.h.push(d.Of);Mn(this)};q.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.G&&this.G.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
|
|
571
571
|
q.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});Mn(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};q.setTextVisibility=function(a){this.m=a};function Nn(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
|
|
572
|
-
function On(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.
|
|
572
|
+
function On(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Ki:null;l&&(g.push(l.Pf),l.Tc&&g.push(l.Tc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Nn(a,n)||(f=!0):(Pn(a,k,e),l=a.i.get(k),n=l.Ki,f=!0));0<k.nestedCues.length&&n&&On(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=
|
|
573
573
|
r.startTime?p.startTime-r.startTime:p.endTime-r.endTime});h=t(h);for(d=h.next();!d.done;d=h.next())d=a.i.get(d.value),d.Tc?(d.Tc.contains(c)&&d.Tc.removeChild(c),c.appendChild(d.Tc),d.Tc.appendChild(d.Pf)):c.appendChild(d.Pf)}}function Mn(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.C.values());for(var d=b.next();!d.done;d=b.next())Kn(d.value);Kn(a.g);a.i.clear();a.C.clear()}a.m&&On(a,a.h,a.g,c,[])}}
|
|
574
574
|
function Pn(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=W(e);"br"!=e&&Qn(a,f,b,c,d);c=null;if(b.region&&b.region.id){var g=b.region,h=a.l===4/3?2.5:1.9;c=g.id+"_"+g.width+"x"+g.height+(g.heightUnits==Md?"%":"px")+"-"+g.viewportAnchorX+"x"+g.viewportAnchorY+(g.viewportAnchorUnits==Md?"%":"px");if(a.C.has(c))c=a.C.get(c);else{e=W("span");var k=g.heightUnits==Md?"%":"px",l=g.widthUnits==Md?"%":"px",m=g.viewportAnchorUnits==
|
|
575
575
|
Md?"%":"px";e.id="shaka-text-region---"+c;e.classList.add("shaka-text-region");e.style.position="absolute";var n=g.height,p=g.width;2===g.heightUnits&&(n=5.33*g.height,k="%");2===g.widthUnits&&(p=g.width*h,l="%");e.style.height=n+k;e.style.width=p+l;2===g.viewportAnchorUnits?(h=g.viewportAnchorY/75*100,k=g.viewportAnchorX/(a.l===4/3?160:210)*100,h-=g.regionAnchorY*n/100,k-=g.regionAnchorX*p/100,e.style.top=h+"%",e.style.left=k+"%"):(e.style.top=g.viewportAnchorY-g.regionAnchorY*n/100+m,e.style.left=
|
|
576
576
|
g.viewportAnchorX-g.regionAnchorX*p/100+m);0!==g.heightUnits&&0!==g.widthUnits&&0!==g.viewportAnchorUnits&&(g=Math.max(0,Math.min(100-(parseInt(e.style.width.slice(0,-1),10)||0),parseInt(e.style.left.slice(0,-1),10)||0)),e.style.top=Math.max(0,Math.min(100-(parseInt(e.style.height.slice(0,-1),10)||0),parseInt(e.style.top.slice(0,-1),10)||0))+"%",e.style.left=g+"%");e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":
|
|
577
|
-
"center"==b.displayAlign?"center":"flex-end";a.C.set(c,e);c=e}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Pf:f,
|
|
577
|
+
"center"==b.displayAlign?"center":"flex-end";a.C.set(c,e);c=e}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Pf:f,Ki:e,Tc:c})}function Rn(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Se?c:"left"===a||"start"===a&&b===Ue||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Ue?"line-right":"center"}
|
|
578
578
|
function Qn(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=Sn(c.linePadding,c,a.u);f.paddingRight=Sn(c.linePadding,c,a.u);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
|
|
579
579
|
"url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",c.backgroundColor&&(f.backgroundColor=c.backgroundColor),f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=W("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Tn(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}if(h&&!d[d.length-1].isContainer)f.display=
|
|
580
580
|
"inline";else{f.display="flex";f.flexDirection="column";f.alignItems="center";if("left"==c.textAlign||"start"==c.textAlign)f.width="100%",f.alignItems="start";else if("right"==c.textAlign||"end"==c.textAlign)f.width="100%",f.alignItems="end";f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end"}g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=Sn(c.fontSize,
|
|
@@ -590,78 +590,78 @@ function no(a){if(0===a.type)return oo;if(a=a.stream){var b=a.type;if("video"==b
|
|
|
590
590
|
function so(a,b){b=a.h.Tb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function to(a,b){var c=a.h.Ib();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ko:return a.videoBandwidth||NaN;case eo:return a.audioBandwidth||NaN;default:return a.bandwidth}}
|
|
591
591
|
function ho(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
|
|
592
592
|
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function mo(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ho(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
593
|
-
function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,
|
|
594
|
-
q.getBandwidthEstimate=function(a){var b=this.
|
|
595
|
-
uo.prototype.getMaxBitrate=uo.prototype.
|
|
593
|
+
function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,ol:Zn,HLS:$n,ql:ao,Fl:"s",OTHER:"o"});function uo(a){this.h=a;this.g=null}q=uo.prototype;q.configure=function(a){this.h=a};q.Hh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(vo)?1E3*this.g.get(vo):null};q.Gh=function(){return this.h.enabled&&this.g&&this.g.has(wo)?1E3*this.g.get(wo):null};q.vj=function(){return this.h.enabled&&this.g&&this.g.has(Lo)?this.g.get(Lo):null};q.wj=function(){return this.h.enabled&&this.g&&this.g.has(Mo)?this.g.get(Mo):null};
|
|
594
|
+
q.getBandwidthEstimate=function(a){var b=this.Gh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function No(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",uo);uo.prototype.getBandwidthEstimate=uo.prototype.getBandwidthEstimate;uo.prototype.getRoundTripTime=uo.prototype.wj;uo.prototype.getResponseDelay=uo.prototype.vj;uo.prototype.getEstimatedThroughput=uo.prototype.Gh;
|
|
595
|
+
uo.prototype.getMaxBitrate=uo.prototype.Hh;var wo="etp",vo="mb",Lo="rd",Mo="rtt";function Oo(){this.g=null;this.h=[]}function Po(a,b){return P(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;H(c)})}Oo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Y(a,b,c){b=void 0===b?null:b;hb.call(this);var d=this;this.m=Qo;this.h=null;this.vf=b;this.sa=!1;this.fe=new sd;this.Vd=new sd;this.l=new sd;this.Ta=new sd;this.xb=new sd;this.H=this.K=this.C=this.I=null;this.ie=0;this.Y=new Oo;this.qa=this.yf=this.aa=this.i=this.bb=this.J=this.j=this.xc=this.N=this.kh=this.ha=this.P=this.Td=this.O=this.wf=this.L=this.Lb=null;this.Ga=!1;this.Ca=this.o=null;this.zf=1E9;this.ae=[];this.V=NaN;this.g=Ro(this);this.S=null;this.je=-1;this.Ja=null;this.ia={width:Infinity,
|
|
596
596
|
height:Infinity};this.tf=new Ri(this.g,this.ia,null);this.ce=[];this.A=null;this.Ia=new Xg(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);this.Jb=this.g.preferredTextLanguage;this.$d=this.g.preferredTextRole;this.Yd=this.g.preferForcedSubs;
|
|
597
|
-
this.Xd=[];c&&c(this);this.P=So(this);this.ha=new uo(this.g.cmsd);this.I=To(this);this.I.Vg(this.g.streaming.forceHTTP);this.I.Wg(this.g.streaming.forceHTTPS);this.I.m=this.g.streaming.minBytesForProgressEvents;this.
|
|
598
|
-
function(e){var f;return P(function(g){if(1==g.g){d.Bf.stop();if(d.$)return g.B(0);d.
|
|
597
|
+
this.Xd=[];c&&c(this);this.P=So(this);this.ha=new uo(this.g.cmsd);this.I=To(this);this.I.Vg(this.g.streaming.forceHTTP);this.I.Wg(this.g.streaming.forceHTTPS);this.I.m=this.g.streaming.minBytesForProgressEvents;this.dc=this.$=this.u=null;this.Df=!1;this.Bf=new Wb(function(){return P(function(e){if(1==e.g)return d.$?G(e,d.Yb(d.dc,!0),3):e.B(0);if(4!=e.g)return G(e,d.load(d.$),4);d.Df?d.dc.pause():d.dc.play();d.$=null;d.Df=!1;H(e)})});Uo&&(this.u=Uo(),this.u.configure(this.g.ads),this.xb.s(this.u,"ad-content-pause-requested",
|
|
598
|
+
function(e){var f;return P(function(g){if(1==g.g){d.Bf.stop();if(d.$)return g.B(0);d.dc=d.h;d.Df=d.h.ended;f=e.saveLivePosition||!1;return G(g,d.Ah(!0,f),3)}d.$=g.h;H(g)})}),this.xb.s(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.$){var f=d.$;f.C&&e&&(f.C+=e)}d.Bf.X(.1)}),this.xb.s(this.u,"ad-content-attach-requested",function(){return P(function(e){return d.h||!d.dc?e.B(0):G(e,d.Yb(d.dc,!0),0)})}));this.fe.s(window,"online",function(){Vo(d);d.Ng()});this.xf=new Wb(function(){for(var e=
|
|
599
599
|
Date.now()/1E3,f=!1,g=!0,h=t(d.i.variants),k=h.next();!k.done;k=h.next())k=k.value,0<k.disabledUntilTime&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),0<k.disabledUntilTime&&(g=!1);g&&d.xf.stop();f&&Wo(d,!1,void 0,!1,!1)});this.xa=null;a&&(Bd("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Yb(a,!0));this.G=null}oa(Y,hb);function Xo(a){null!=a.N&&(ek(a.N),a.N.release(),a.N=null)}
|
|
600
600
|
function Yo(a,b){b.lcevc.enabled?(Xo(a),null==a.N&&(a.N=new dk(a.h,a.kh,b.lcevc),a.K&&(a.K.S=a.N))):Xo(a)}function Zo(a,b){return new T(a,b)}q=Y.prototype;
|
|
601
|
-
q.destroy=function(){var a=this,b;return P(function(c){switch(c.g){case 1:if(a.m==$o)return c.return();Xo(a);b=a.detach();a.m=$o;return G(c,b,2);case 2:return G(c,a.Rf(),3);case 3:a.fe&&(a.fe.release(),a.fe=null);a.Vd&&(a.Vd.release(),a.Vd=null);a.l&&(a.l.release(),a.l=null);a.Ta&&(a.Ta.release(),a.Ta=null);a.xb&&(a.xb.release(),a.xb=null);a.
|
|
601
|
+
q.destroy=function(){var a=this,b;return P(function(c){switch(c.g){case 1:if(a.m==$o)return c.return();Xo(a);b=a.detach();a.m=$o;return G(c,b,2);case 2:return G(c,a.Rf(),3);case 3:a.fe&&(a.fe.release(),a.fe=null);a.Vd&&(a.Vd.release(),a.Vd=null);a.l&&(a.l.release(),a.l=null);a.Ta&&(a.Ta.release(),a.Ta=null);a.xb&&(a.xb.release(),a.xb=null);a.Ca=null;a.g=null;a.A=null;a.vf=null;a.P=null;a.ha=null;if(!a.I){c.B(4);break}return G(c,a.I.destroy(),5);case 5:a.I=null;case 4:a.o&&(a.o.release(),a.o=null),
|
|
602
602
|
hb.prototype.release.call(a),H(c)}})};function ap(){window.Promise||Za("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||bc("Trident/"))return!1;var a=pc();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Xb()?!0:Yb("application/x-mpegurl")}
|
|
603
603
|
function bp(a,b){a.dispatchEvent(Zo("onstatechange",(new Map).set("state",b)))}
|
|
604
604
|
q.Yb=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return P(function(g){switch(g.g){case 1:if(c.m==$o)throw new U(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.B(2);break}return G(g,c.detach(),2);case 2:return G(g,cp(c,"attach"),4);case 4:if(g.h)return g.return();ta(g,5,6);d||(bp(c,"attach"),e=function(){var h=dp(c,!1);h&&ep(c,h)},c.Vd.s(a,"error",e),c.h=a);if(!b||!Xb()||c.K){g.B(6);break}return G(g,fp(c),6);case 6:ya(g);c.Y.release();za(g,0);break;case 5:return f=xa(g),G(g,c.detach(),10);case 10:throw f;
|
|
605
|
-
}})};q.mh=function(a){this.kh=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return P(function(c){if(1==c.g){if(b.m==$o)throw new U(2,7,7E3);return G(c,b.
|
|
606
|
-
q.
|
|
607
|
-
if(!c.J){r.B(6);break}return G(r,c.J.stop(),7);case 7:c.J=null,c.
|
|
605
|
+
}})};q.mh=function(a){this.kh=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return P(function(c){if(1==c.g){if(b.m==$o)throw new U(2,7,7E3);return G(c,b.mc(!1,a),2)}if(3!=c.g)return G(c,cp(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.Vd.Za(),b.h=null),bp(b,"detach"),b.u&&!a&&b.u.release()}finally{b.Y.release()}H(c)})};function cp(a,b){var c;return P(function(d){return 1==d.g?(c=++a.ie,G(d,Po(a.Y,b),2)):c!=a.ie?(a.Y.release(),d.return(!0)):d.return(!1)})}
|
|
606
|
+
q.mc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:return c.m!=$o&&(c.m=Qo),G(r,cp(c,"unload"),2);case 2:if(r.h)return r.return();ua(r,3);c.Ga=!1;bp(c,"unload");a&&!Xb()&&(a=!1);Xo(c);d=c.Xd.map(function(u){return u()});c.Xd=[];return G(r,Promise.all(d),5);case 5:c.dispatchEvent(Zo("unloading"));c.Td&&(c.Td.release(),c.Td=null);c.h&&(c.l.Za(),c.Ta.Za());c.xf.stop();c.Lb&&(c.Lb.release(),c.Lb=null);c.wf&&(c.wf.stop(),c.wf=null);
|
|
607
|
+
if(!c.J){r.B(6);break}return G(r,c.J.stop(),7);case 7:c.J=null,c.bb=null;case 6:if(!c.o){r.B(8);break}return G(r,c.o.stop(),8);case 8:if(!c.j){r.B(10);break}return G(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.L&&(c.L.release(),c.L=null);c.H&&(c.H.release(),c.H=null);if(!vc("webkit")||!c.C){r.B(12);break}return G(r,c.C.destroy(),13);case 13:c.C=null;case 12:if(!c.K){r.B(14);break}return G(r,c.K.destroy(),15);case 15:c.K=null;case 14:if(c.u&&!b)c.u.onAssetUnload();c.$&&!b&&(c.$.destroy(),c.$=null);
|
|
608
608
|
b||c.Bf.stop();c.P&&Wn(c.P);c.ha&&(c.ha.g=null);if(!c.G){r.B(16);break}return G(r,c.G.destroy(),17);case 17:c.G=null;case 16:c.h&&Kn(c.h);if(!c.h||!c.h.src){r.B(18);break}return G(r,new Promise(function(u){return(new Wb(u)).X(.1)}),19);case 19:c.h.removeAttribute("src"),c.h.load();case 18:if(!c.C){r.B(20);break}return G(r,c.C.destroy(),21);case 21:c.C=null;case 20:c.xa&&c.aa!=c.xa.gd()&&(c.xa.u||c.xa.destroy(),c.xa=null);c.aa=null;c.yf=null;c.O=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=
|
|
609
|
-
e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(n=m.next();!n.done;n=m.next())p=n.value,p.segmentIndex&&p.segmentIndex.release()}c.g.streaming.clearDecodingCache&&(tg={},Ub.clear());c.i=null;c.A=new Dl;c.ge=null;c.Ja=null;c.S=null;c.je=-1;c.ae=[];c.
|
|
610
|
-
q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w;return P(function(y){switch(y.g){case 1:if(d.m==$o)throw new U(2,7,7E3);e=null;f="";a instanceof cn?(e=a,f=e.gd()||""):f=a||"";return G(y,Po(d.Y,"load"),2);case 2:d.Y.release();if(!d.h)throw new U(2,7,7002);if(!d.aa){y.B(3);break}d.aa=f;return G(y,d.
|
|
611
|
-
2),G(A,Po(d.Y,C),4);case 4:return G(A,h(),5);case 5:return G(A,z(),6);case 6:return G(A,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:ya(A),d.Y.release(),za(A,0)}})};ta(y,5,6);null==b&&e&&(b=e.getStartTime());d.qa=b;d.Ga=!1;d.dispatchEvent(Zo("loading"));if(e){c=e.
|
|
609
|
+
e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(n=m.next();!n.done;n=m.next())p=n.value,p.segmentIndex&&p.segmentIndex.release()}c.g.streaming.clearDecodingCache&&(tg={},Ub.clear());c.i=null;c.A=new Dl;c.ge=null;c.Ja=null;c.S=null;c.je=-1;c.ae=[];c.V=NaN;gp(c);case 3:ya(r);c.Y.release();za(r,4);break;case 4:if(a&&Xb()&&!c.K&&c.h)return G(r,fp(c),0);r.B(0)}})};q.Ok=function(a){this.qa=a};
|
|
610
|
+
q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w;return P(function(y){switch(y.g){case 1:if(d.m==$o)throw new U(2,7,7E3);e=null;f="";a instanceof cn?(e=a,f=e.gd()||""):f=a||"";return G(y,Po(d.Y,"load"),2);case 2:d.Y.release();if(!d.h)throw new U(2,7,7002);if(!d.aa){y.B(3);break}d.aa=f;return G(y,d.mc(!1),3);case 3:g=++d.ie;h=function(){return P(function(z){if(1==z.g)return d.ie==g?z.B(0):e?G(z,e.destroy(),3):z.B(3);throw new U(2,7,7E3);})};k=function(z,C){return P(function(A){switch(A.g){case 1:return ua(A,
|
|
611
|
+
2),G(A,Po(d.Y,C),4);case 4:return G(A,h(),5);case 5:return G(A,z(),6);case 6:return G(A,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:ya(A),d.Y.release(),za(A,0)}})};ta(y,5,6);null==b&&e&&(b=e.getStartTime());d.qa=b;d.Ga=!1;d.dispatchEvent(Zo("loading"));if(e){c=e.V;y.B(8);break}if(c){y.B(8);break}return G(y,k(function(){return P(function(z){if(1==z.g)return G(z,hp(d,f),2);c=z.h;H(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){fn(e,d);d.A=e.getStats();y.B(11);break}return G(y,ip(d,f,b,c,!0),12);case 12:(e=
|
|
612
612
|
y.h)?(e.A=!1,fn(e,d),d.A=e.getStats(),e.start(),e.m.catch(function(){})):d.A=new Dl;case 11:m=!e;n=Date.now()/1E3;d.A=e?e.getStats():new Dl;d.aa=f;d.yf=c||null;if(m)return G(y,k(function(){return P(function(z){return G(z,jp(d,c),0)})},"initializeSrcEqualsDrmInner_"),20);if(d.K){y.B(15);break}return G(y,k(function(){return P(function(z){return G(z,fp(d),0)})},"initializeMediaSourceEngineInner_"),15);case 15:return G(y,k(function(){return P(function(z){return G(z,e.m,0)})},"waitForFinish"),17);case 17:d.g=
|
|
613
|
-
e.getConfiguration();d.tf=e.H;d.
|
|
613
|
+
e.getConfiguration();d.tf=e.H;d.bb=e.I;d.J=hn(e);d.J&&d.J.setMediaElement&&d.h&&d.J.setMediaElement(d.h);d.Td=jn(e);d.xc=e.Ia;d.i=e.kg();if(p=e.o)d.Ia=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(kp(d),d.configure("manifest.disableVideo",!0));d.C=kn(e);return G(y,k(function(){return P(function(z){return G(z,d.C.Yb(d.h),0)})},"drmEngine_.attach"),18);case 18:return!(r=e.G)||d.Ca&&d.Ca==r||(d.o=gn(e),d.Ca=e.G,"function"!=typeof d.o.setMediaElement&&(Bd("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),
|
|
614
614
|
d.o.setMediaElement=function(){}),"function"!=typeof d.o.setCmsdManager&&(Bd("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.o.setCmsdManager=function(){}),"function"!=typeof d.o.trySuggestStreams&&(Bd("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){})),u=ln(e),v=e.ia,G(y,k(function(){return P(function(z){return G(z,lp(d,n,v,u),0)})},"loadInner_"),19);case 19:en(e);y.B(14);
|
|
615
|
-
break;case 20:return G(y,k(function(){return P(function(z){return G(z,mp(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Zo("loaded"));case 6:ya(y);if(!e){y.B(22);break}return G(y,e.destroy(),22);case 22:d.xa=null;za(y,0);break;case 5:w=xa(y);if(!w||7E3==w.code){y.B(24);break}return G(y,d.
|
|
616
|
-
function kp(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}q.
|
|
617
|
-
q.
|
|
618
|
-
function np(a,b){b=void 0===b?!1:b;var c,d;return P(function(e){if(1==e.g){c=null;if(!(a.i&&a.J&&a.
|
|
615
|
+
break;case 20:return G(y,k(function(){return P(function(z){return G(z,mp(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Zo("loaded"));case 6:ya(y);if(!e){y.B(22);break}return G(y,e.destroy(),22);case 22:d.xa=null;za(y,0);break;case 5:w=xa(y);if(!w||7E3==w.code){y.B(24);break}return G(y,d.mc(!1),24);case 24:throw w;}})};
|
|
616
|
+
function kp(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}q.Kk=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return P(function(e){return 1==e.g?G(e,np(c),2):3!=e.g?(d=e.h,G(e,c.mc(a,b),3)):e.return(d)})};
|
|
617
|
+
q.Ah=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return P(function(e){return 1==e.g?G(e,np(c,b),2):3!=e.g?(d=e.h,G(e,c.detach(a),3)):e.return(d)})};
|
|
618
|
+
function np(a,b){b=void 0===b?!1:b;var c,d;return P(function(e){if(1==e.g){c=null;if(!(a.i&&a.J&&a.bb&&a.aa))return e.B(2);d=a.h.currentTime;a.U()&&!b&&(d=null);return G(e,op(a,a.aa,d,a.yf,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.ce.push(c);a.J&&a.J.setMediaElement&&a.J.setMediaElement(null);var f=c,g=a.J,h=a.bb;f.h=a.i;f.j=g;f.I=h;f=c;g=a.Ca;f.i=a.o;f.G=g;c.o=a.Ia;c.start();a.i=null;a.J=null;a.bb=null;a.o=null;a.Ca=null}return e.return(c)})}
|
|
619
619
|
q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return P(function(f){if(1==f.g)return G(f,ip(d,a,b,c),2);(e=f.h)?e.start():ep(d,new U(2,7,7005));return f.return(e)})};q.Rf=function(){var a=this,b,c,d,e;return P(function(f){b=[];c=t(a.ce);for(d=c.next();!d.done;d=c.next())e=d.value,e.u||b.push(e.destroy());a.ce=[];return G(f,Promise.all(b),0)})};
|
|
620
|
-
function ip(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return P(function(l){if(1==l.g)return d?l.B(2):G(l,hp(a,b),3);2!=l.g&&(d=l.h);if(f=pp(a,d))return l.return(null);g=!1;h=!0;e&&(a.o&&a.
|
|
620
|
+
function ip(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return P(function(l){if(1==l.g)return d?l.B(2):G(l,hp(a,b),3);2!=l.g&&(d=l.h);if(f=pp(a,d))return l.return(null);g=!1;h=!0;e&&(a.o&&a.Ca==a.g.abrFactory&&(h=!1),a.h&&"AUDIO"===a.h.nodeName&&(g=!0));k=op(a,b,c,d||null,!e,g,h);k=e?k.then(function(m){m.A=!1;return m}):k.then(function(m){a.ce.push(m);return m});return l.return(k)})}
|
|
621
621
|
function op(a,b,c,d,e,f,g){e=void 0===e?!0:e;f=void 0===f?!1:f;g=void 0===g?!0:g;var h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){if(1==D.g)return h=null,k=ae(a.g),f&&(k.manifest.disableVideo=!0),l=function(){return h.S&&h.u?null:h},m=function(){return l()?l().getConfiguration():a.g},n=function(E,F){l()?h.configure(E,F):a.configure(E,F)},Infinity!=a.ia.width||Infinity!=a.ia.height?D.B(2):G(D,wc(),3);2!=D.g&&(p=D.h,a.ia.width=p.width,a.ia.height=p.height);r=new Ri(k,a.ia,null);u={networkingEngine:a.I,
|
|
622
622
|
filter:function(E){var F,L;return P(function(J){if(1==J.g)return G(J,Si(r,E),2);if(4!=J.g){F=J.h;if(!F)return J.B(0);L=Zo("trackschanged");return G(J,Promise.resolve(),4)}h.dispatchEvent(L);H(J)})},makeTextStreamsForClosedCaptions:function(E){return qp(a,E)},onTimelineRegionAdded:function(E){var F=h.J;a:{var L=t(F.g);for(var J=L.next();!J.done;J=L.next())if(J=J.value,J.schemeIdUri==E.schemeIdUri&&J.id==E.id&&J.startTime==E.startTime&&J.endTime==E.endTime){L=J;break a}L=null}null==L&&(F.g.add(E),E=
|
|
623
623
|
new T("regionadd",new Map([["region",E]])),F.dispatchEvent(E))},onEvent:function(E){return h.dispatchEvent(E)},onError:function(E){return h.onError(E)},isLowLatencyMode:function(){return m().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return m().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){n("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&h.S&&a.j.updateDuration()},newDrmInfo:function(E){var F=h.l,L=F?F.g:null;L&&F.u&&Vi(r,L.keySystem,E)},onManifestUpdated:function(){var E=
|
|
624
|
-
(new Map).set("isLive",a.
|
|
624
|
+
(new Map).set("isLive",a.U());h.dispatchEvent(Zo("manifestupdated",E));dn(h,!1,function(){if(a.u)a.u.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},onMetadata:function(E,F,L,J){var K=E;if("com.apple.hls.interstitial"==E&&(K="com.apple.quicktime.HLS",E={startTime:F,endTime:L,values:J},a.u))a.u.onHLSInterstitialMetadata(a,a.h,E);J=t(J);E=J.next();for(var I={};!E.done;I={Kg:void 0},E=J.next())I.Kg=E.value,"ID"!=I.Kg.name&&dn(h,!1,function(N){return function(){rp(a,
|
|
625
625
|
F,L,K,N.Kg)}}(I))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,F){return a.addFont(E,F)}};v=new Ql(function(){return a.Fa()});v.addEventListener("regionadd",function(E){var F=E.region;sp(a,"timelineregionadded",F,h);dn(h,!1,function(){a.u&&(a.u.onDashTimedMetadata(F),a.u.onDASHInterstitialMetadata(a,a.h,F))})});w=null;k.streaming.observeQualityChanges&&(w=new Rl(function(){return a.Tb()}),w.addEventListener("qualitychange",function(E){tp(a,
|
|
626
|
-
E.quality,E.position)}),w.addEventListener("audiotrackchange",function(E){tp(a,E.quality,E.position,!0)}));y=!0;z={
|
|
626
|
+
E.quality,E.position)}),w.addEventListener("audiotrackchange",function(E){tp(a,E.quality,E.position,!0)}));y=!0;z={hc:a.I,onError:function(E){return h.onError(E)},Ue:function(E){dn(h,!0,function(){a:{var F=E,L=Zo("keystatuschanged");a.dispatchEvent(L);var J=Object.keys(F);1==J.length&&""==J[0]&&(J=["00"],F={"00":F[""]});L=1==J.length&&"00"==J[0];var K=!1;if(J.length){J=t(a.i.variants);for(var I=J.next();!I.done;I=J.next()){I=I.value;var N=[];I.audio&&N.push(I.audio);I.video&&N.push(I.video);N=t(N);
|
|
627
627
|
for(var M=N.next();!M.done;M=N.next()){var O=M.value;M=I.allowedByKeySystem;if(O.keyIds.size){I.allowedByKeySystem=!0;O=t(O.keyIds);for(var Q=O.next();!Q.done;Q=O.next())if(Q=Q.value,(Q=F[L?"00":Q])||a.C.H)I.allowedByKeySystem=I.allowedByKeySystem&&!!Q&&!Xi.includes(Q)}M!=I.allowedByKeySystem&&(K=!0)}}}if(K&&(up(a),!vp(a)))break a;(F=a.j.j)&&!F.allowedByKeySystem&&Wo(a)}})},onExpirationUpdated:function(E,F){var L=Zo("expirationupdated");h.dispatchEvent(L);if((L=h.j)&&L.onExpirationUpdated)L.onExpirationUpdated(E,
|
|
628
|
-
F)},onEvent:function(E){h.dispatchEvent(E);"drmsessionupdate"==E.type&&y&&(y=!1,E=Date.now()/1E3-h.xa,(a.A||h.getStats()).j=E,a.N&&ek(a.N))}};C=To(a,l);Ch(a.I,C);A=function(){return a.bd(z)};B={config:k,
|
|
628
|
+
F)},onEvent:function(E){h.dispatchEvent(E);"drmsessionupdate"==E.type&&y&&(y=!1,E=Date.now()/1E3-h.xa,(a.A||h.getStats()).j=E,a.N&&ek(a.N))}};C=To(a,l);Ch(a.I,C);A=function(){return a.bd(z)};B={config:k,Xj:u,hk:v,gk:w,bd:A,Wj:r,networkingEngine:C,Ti:e,Si:g};h=new cn(b,d,c,B);return D.return(h)})}
|
|
629
629
|
function hp(a,b){var c,d;return P(function(e){if(1==e.g)return c=a.g.manifest.retryParameters,G(e,xn(b,a.I,c),2);d=e.h;"application/x-mpegurl"==d&&kc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}function pp(a,b){if(!Xb())return!0;if(b){if(""==(a.h||Zb()).canPlayType(b))return!1;if(!(Xb()&&b in $i))return!0;if(Nf(b))return kc()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls}return!1}
|
|
630
630
|
function wp(a){var b=a.g.textDisplayFactory;b!==a.ge&&(a.G=b(),a.G.configure?a.G.configure(a.g.textDisplayer):Bd("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.ge=b,a.G.setTextVisibility(a.sa))}
|
|
631
|
-
function fp(a){var b,c,d;return P(function(e){if(1==e.g)return bp(a,"media-source"),wp(a),b=xp(a.h,a.G,{
|
|
632
|
-
function lp(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J;return P(function(K){switch(K.g){case 1:bp(a,"load"),e=a.h,a.L=new ul({Be:function(){return e.playbackRate},Hc:function(){return e.defaultPlaybackRate},Xg:function(I){e.playbackRate=I},
|
|
631
|
+
function fp(a){var b,c,d;return P(function(e){if(1==e.g)return bp(a,"media-source"),wp(a),b=xp(a.h,a.G,{lj:function(){return a.keySystem()},onMetadata:function(f,g,h){yp(a,f,g,h)}},a.N),b.configure(a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.ha=d,G(e,b.L,2);a.K=b;H(e)})}
|
|
632
|
+
function lp(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J;return P(function(K){switch(K.g){case 1:bp(a,"load"),e=a.h,a.L=new ul({Be:function(){return e.playbackRate},Hc:function(){return e.defaultPlaybackRate},Xg:function(I){e.playbackRate=I},Wh:function(I){e.currentTime+=I}}),f=function(){return zp(a)},g=function(){return Ap(a)},a.l.s(e,"playing",f),a.l.s(e,"pause",f),a.l.s(e,"ended",f),a.l.s(e,"ratechange",g),Yo(a,a.g),a.Jb=a.g.preferredTextLanguage,a.$d=a.g.preferredTextRole,a.Yd=
|
|
633
633
|
a.g.preferForcedSubs,Bp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd),a.o.init(function(I,N,M){a.i&&a.j&&I!=a.j.j&&Cp(a,I,!0,void 0===N?!1:N,void 0===M?0:M)}),a.o.setMediaElement(e),a.o.setCmsdManager(a.ha),a.j=Dp(a),a.j.configure(a.g.streaming),a.m=Ep,e.textTracks&&a.l.s(e.textTracks,"addtrack",function(I){if(I.track)switch(I=I.track,I.kind){case "chapters":Fp(a,I)}}),a.dispatchEvent(Zo("streaming")),h=c;case 2:(l=a.j.j)||h||(h=vp(a)?a.o.chooseVariant():null);m=[];k=l||h;n=t([k.video,
|
|
634
634
|
k.audio]);for(p=n.next();!p.done;p=n.next())(r=p.value)&&!r.segmentIndex&&m.push(r.createSegmentIndex());if(!(0<m.length)){K.B(4);break}return G(K,Promise.all(m),4);case 4:if(!k||0!=k.disabledUntilTime){K.B(2);break}if(a.J&&a.J.onInitialVariantChosen)a.J.onInitialVariantChosen(k);a.i.isLowLatency&&!a.g.streaming.lowLatencyMode&&Za("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
|
|
635
635
|
a.P&&Xn(a.P,a.i.isLowLatency&&a.g.streaming.lowLatencyMode);Bp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);jm(a.j,a.g.playRangeStart,a.g.playRangeEnd);u=function(I){a.H=Gp(a,I);a.Lb=Hp(a,I);Ip(a,e,Math.max(a.i.minBufferTime,a.g.streaming.rebufferingGoal))};a.g.streaming.startAtSegmentBoundary||(v=a.qa,null==v&&a.i.startTime&&(v=a.i.startTime),u(v));if(l){K.B(7);break}if(!a.g.streaming.startAtSegmentBoundary){K.B(8);break}w=a.i.presentationTimeline;y=a.qa||a.h.currentTime;null==a.qa&&
|
|
636
|
-
a.i.startTime&&(y=a.i.startTime);z=w.
|
|
637
|
-
if((E=a.
|
|
636
|
+
a.i.startTime&&(y=a.i.startTime);z=w.cc();C=w.Ub();y<z?y=z:y>C&&(y=C);return G(K,Jp(h,y),9);case 9:A=K.h,u(A);case 8:Cp(a,h,!0,!1,0);case 7:return a.H.ready(),B=a.tc().find(function(I){return I.active}),B||((D=Kg(a.i.textStreams,a.Jb,a.$d,a.Yd)[0]||null)&&Cl(a.A.h,D,!0),h&&(D?(Kp(a,h.audio,D)&&(a.sa=!0),a.sa&&a.G.setTextVisibility(!0),Lp(a)):a.sa=!1),D&&(a.g.streaming.alwaysStreamText||a.Oc())&&sm(a.j,D)),G(K,a.j.start(d),10);case 10:a.g.abr.enabled&&(a.o.enable(),Mp(a));up(a);vp(a);a.i.variants.some(function(I){return I.primary});
|
|
637
|
+
if((E=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)F=function(){return Np(a)},a.l.s(e,"timeupdate",F);E||(L=function(){return Op(a)},a.l.s(e,"timeupdate",L),Op(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(J=function(){var I;return P(function(N){if(1==N.g){I=a.h.duration-a.h.currentTime;if(isNaN(I)||!(I<=a.g.streaming.preloadNextUrlWindow))return N.B(0);a.l.Ma(e,"timeupdate",
|
|
638
638
|
J);return G(N,a.preload(a.i.nextUrl),4)}a.xa=N.h;H(N)})},a.l.s(e,"timeupdate",J)),a.l.s(e,"ended",function(){a.load(a.xa||a.i.nextUrl)})));if(a.u)a.u.onManifestUpdated(E);a.Ga=!0;a.l.na(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-b});H(K)}})}
|
|
639
|
-
function jp(a,b){var c,d,e,f,g;return P(function(h){return 1==h.g?(c=Yc,d=Date.now()/1E3,e=!0,a.C=a.bd({
|
|
639
|
+
function jp(a,b){var c,d,e,f,g;return P(function(h){return 1==h.g?(c=Yc,d=Date.now()/1E3,e=!0,a.C=a.bd({hc:a.I,onError:function(k){ep(a,k)},Ue:function(){},onExpirationUpdated:function(){var k=Zo("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.A.j=Date.now()/1E3-d)}}),a.C.configure(a.g.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
|
|
640
640
|
g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Lf(b):"",codecs:b?Mf(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.wa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set},g.fullMimeTypes.add(Bf(g.mimeType,
|
|
641
641
|
g.codecs)),b.startsWith("audio/")?(g.type=c.ka,f.audio=g):f.video=g,a.C.$=!0,G(h,ni(a.C,[f],[]),2)):G(h,a.C.Yb(a.h),0)})}
|
|
642
|
-
function mp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g)return bp(a,"src-equals"),d=a.h,a.H=new kl(d),e=!1,a.Xd.push(function(){e=!0}),null!=a.qa&&a.H.Cf(a.qa),a.L=new ul({Be:function(){return d.playbackRate},Hc:function(){return d.defaultPlaybackRate},Xg:function(w){d.playbackRate=w},
|
|
642
|
+
function mp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g)return bp(a,"src-equals"),d=a.h,a.H=new kl(d),e=!1,a.Xd.push(function(){e=!0}),null!=a.qa&&a.H.Cf(a.qa),a.L=new ul({Be:function(){return d.playbackRate},Hc:function(){return d.defaultPlaybackRate},Xg:function(w){d.playbackRate=w},Wh:function(w){d.currentTime+=w}}),f=a.g.streaming.rebufferingGoal,Ip(a,d,f),g=function(){return zp(a)},h=function(){return Ap(a)},a.l.s(d,"playing",g),a.l.s(d,"pause",g),a.l.s(d,"ended",g),a.l.s(d,
|
|
643
643
|
"ratechange",h),"none"!=d.preload&&a.l.na(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-b}),d.audioTracks&&(a.l.s(d.audioTracks,"addtrack",function(){return up(a)}),a.l.s(d.audioTracks,"removetrack",function(){return up(a)}),a.l.s(d.audioTracks,"change",function(){return up(a)})),d.textTracks&&(wp(a),a.l.s(d.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case "metadata":Pp(a,w);break;case "chapters":Fp(a,w);break;default:up(a)}}),a.l.s(d.textTracks,"removetrack",function(){return up(a)}),
|
|
644
644
|
a.l.s(d.textTracks,"change",function(){return up(a)}),a.l.s(d,"enterpictureinpicture",function(){var w=Qp(a).find(function(y){return"disabled"!==y.mode});w&&(w.mode="showing")}),a.l.s(d,"leavepictureinpicture",function(){var w=Qp(a).find(function(y){return"disabled"!==y.mode});w&&(w.mode="hidden")})),k=bo(a.P,a.aa,c),!k.includes("#t=")&&(0<a.g.playRangeStart||isFinite(a.g.playRangeEnd))&&(k+="#t=",0<a.g.playRangeStart&&(k+=a.g.playRangeStart),isFinite(a.g.playRangeEnd)&&(k+=","+a.g.playRangeEnd)),
|
|
645
645
|
d.src=k,(dc()||gc())&&d.load(),"none"!=d.preload&&!d.autoplay&&Nf(c)&&pc()&&d.load(),a.m=Rp,a.dispatchEvent(Zo("streaming")),l=new nh,bl(d,HTMLMediaElement.HAVE_METADATA,a.l,function(){a.H.ready();l.resolve()}),bl(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.l,function(){var w,y,z,C,A;return P(function(B){if(1==B.g)return Sp(a),w=Qp(a),w.find(function(D){return"disabled"!=D.mode})?(0<w.length&&(a.sa=!0,a.G.setTextVisibility(!0)),B.B(2)):G(B,new Promise(function(D){a.l.na(d.textTracks,"change",D);(new Wb(D)).X(1)}),
|
|
646
646
|
2);if(e)return B.return();y=!1;z=t(w);for(C=z.next();!C.done;C=z.next())A=C.value,"disabled"!==A.mode&&(y?(A.mode="disabled",Za("Found more than one enabled text track, disabling it",A)):(Tp(a,A),y=!0));Up(a);H(B)})}),d.error?l.reject(dp(a)):"none"==d.preload&&(Za('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),
|
|
647
|
-
l.resolve()),a.l.na(d,"error",function(){l.reject(dp(a))}),m=new Promise(function(w,y){(new Wb(y)).X(a.g.streaming.loadTimeout)}),G(v,Promise.race([l,m]),2);if((n=a.
|
|
648
|
-
u!=w&&(a.u.onManifestUpdated(a.
|
|
649
|
-
function Pp(a,b){if("metadata"==b.kind){b.mode="hidden";a.l.s(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,rp(a,e.startTime,e.endTime,e.type,e.value),a.u)a.u.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={
|
|
650
|
-
f||(f={startTime:g.
|
|
647
|
+
l.resolve()),a.l.na(d,"error",function(){l.reject(dp(a))}),m=new Promise(function(w,y){(new Wb(y)).X(a.g.streaming.loadTimeout)}),G(v,Promise.race([l,m]),2);if((n=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)p=function(){return Np(a)},a.l.s(d,"timeupdate",p);n||(r=function(){return Op(a)},a.l.s(d,"timeupdate",r),Op(a));a.u&&(a.u.onManifestUpdated(n),n&&(u=a.Fa().end,a.l.s(d,"progress",function(){var w=a.Fa().end;
|
|
648
|
+
u!=w&&(a.u.onManifestUpdated(a.U()),u=w)})));a.Ga=!0;H(v)})}function Sp(a){var b=a.g.preferredAudioLanguage;""!=b&&a.Pg(b,a.g.preferredVariantRole)}function Up(a){var b=a.g.preferredTextLanguage;""!=b&&a.Qg(b,a.g.preferredTextRole,a.g.preferForcedSubs)}
|
|
649
|
+
function Pp(a,b){if("metadata"==b.kind){b.mode="hidden";a.l.s(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,rp(a,e.startTime,e.endTime,e.type,e.value),a.u)a.u.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={pc:void 0},f=e.next())g.pc=f.value,"com.apple.quicktime.HLS"==g.pc.type&&null!=g.pc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.pc.startTime&&k.endTime==h.pc.endTime}}(g)),
|
|
650
|
+
f||(f={startTime:g.pc.startTime,endTime:g.pc.endTime,values:[]},d.push(f)),f.values.push(g.pc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.u&&(e.values.push({key:"CUE",description:"",data:0==e.startTime?"ONCE,PRE":"ONCE",mimeType:null,pictureType:null}),a.u.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new Wb(function(){var d=Vp(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Sa().X(.5);
|
|
651
651
|
a.Xd.push(function(){c.stop()})}}function yp(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&"number"==typeof e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())rp(a,f,g,"org.id3",k.value);if(a.u)a.u.onHlsTimedMetadata(e,f)}}function rp(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Zo("metadata",b))}
|
|
652
|
-
function Fp(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Wb(function(){b.mode="hidden"})).Sa().X(.5);a.Xd.push(function(){c.stop()})}}q.
|
|
652
|
+
function Fp(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Wb(function(){b.mode="hidden"})).Sa().X(.5);a.Xd.push(function(){c.stop()})}}q.lk=function(){for(var a=this.Y;a.g;)a.release()};q.bd=function(a){return new gi(a)};
|
|
653
653
|
function To(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}function d(e){b()?dn(b(),!0,e):e()}b||(b=function(){return null});return new xh(function(e,f,g,h){var k=b()?b().i:a.o;k&&k.segmentDownloaded(e,f,g,h)},function(e,f,g){f=(new Map).set("headers",e).set("request",f).set("requestType",g);c(Zo("downloadheadersreceived",f));d(function(){if(a.ha){var h=a.ha;if(h.h.enabled){var k=e["cmsd-static"];if(k)try{var l=new Map,m=k.split(",");for(k=0;k<m.length;k++){var n=m[k].split("=");l.set(n[0],
|
|
654
654
|
No(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var p=new Map,r=l.split(";");for(l=1;l<r.length;l++){var u=r[l].split("=");p.set(u[0],No(u[1]))}var v=p}catch(w){v=null}v&&(h.g=v)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Zo("downloadfailed",e))},function(e,f,g){d(function(){var h=a.P,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)jo(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
|
|
655
|
-
h.j?Zn:Yn;break a;case 3:case 2:l=h.j?ao:$n;break a;case 5:l="s";break a}l=void 0}h.i=l}jo(h,f,{ot:go,su:!h.l})}}catch(M){$a("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Jh:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.
|
|
656
|
-
1E3);if(r.segmentIndex&&m){var w=r.segmentIndex.bc(m.endTime,!0,0>u);if(w){var y=w.next().value;if(y&&y!=m){if(!Td(m.R(),y.R())){var z=y.R()[0],C=f.uris[0],A=new URL(z),B=new URL(C);if(A.origin!==B.origin)var D=z;else{for(var E=A.pathname.split("/").slice(1),F=B.pathname.split("/").slice(1,-1);E[0]===F[0];)E.shift(),F.shift();for(;F.length;)F.shift(),E.unshift("..");D=E.join("/")}n.nor=D}if((y
|
|
657
|
-
500,I=r.bandwidth;var N=I?I*(m.endTime-m.startTime)/1E3/(K/J/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(N)||(n.rtp=N)}}p&&n.ot!==po&&(n.tb=to(h,n.ot)/1E3);jo(h,f,n)}}catch(M){$a("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:jo(h,f,{ot:"k"});break;case 4:jo(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.J)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Dc=isNaN(g.Dc)?f:g.Dc+f,0===e&&(g.
|
|
655
|
+
h.j?Zn:Yn;break a;case 3:case 2:l=h.j?ao:$n;break a;case 5:l="s";break a}l=void 0}h.i=l}jo(h,f,{ot:go,su:!h.l})}}catch(M){$a("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Jh:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.U()?"l":"v"};n.ot=no(k);var p=n.ot===ko||n.ot===eo||n.ot===fo||n.ot===po,r=k.stream;if(r){var u=h.h.Va();if(p&&(n.bl=ro(h,r.type),n.ot!==po)){var v=so(h,r.type);n.dl=u?v/Math.abs(u):v}r.bandwidth&&(n.br=r.bandwidth/
|
|
656
|
+
1E3);if(r.segmentIndex&&m){var w=r.segmentIndex.bc(m.endTime,!0,0>u);if(w){var y=w.next().value;if(y&&y!=m){if(!Td(m.R(),y.R())){var z=y.R()[0],C=f.uris[0],A=new URL(z),B=new URL(C);if(A.origin!==B.origin)var D=z;else{for(var E=A.pathname.split("/").slice(1),F=B.pathname.split("/").slice(1,-1);E[0]===F[0];)E.shift(),F.shift();for(;F.length;)F.shift(),E.unshift("..");D=E.join("/")}n.nor=D}if((y.$a||y.La)&&(m.$a!=y.$a||m.La!=y.La)){var L=y.$a+"-";y.La&&(L+=y.La);n.nrr=L}}}var J=h.h.Va()||1,K=so(h,r.type)||
|
|
657
|
+
500,I=r.bandwidth;var N=I?I*(m.endTime-m.startTime)/1E3/(K/J/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(N)||(n.rtp=N)}}p&&n.ot!==po&&(n.tb=to(h,n.ot)/1E3);jo(h,f,n)}}catch(M){$a("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:jo(h,f,{ot:"k"});break;case 4:jo(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.J)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Dc=isNaN(g.Dc)?f:g.Dc+f,0===e&&(g.Rh=f))}})}
|
|
658
658
|
function Gp(a,b){return new ll(a.h,a.i,a.g.streaming,b,function(){a.Lb&&xl(a.Lb,!0);a.j&&a.j.td();a.O&&Wp(a)},function(c){return a.dispatchEvent(c)})}
|
|
659
|
-
function Hp(a,b){b=new sn(a.Td,a.
|
|
660
|
-
function Ip(a,b,c){a.O=new gh;a.O.g=ih;jh(a.O,c,Math.min(.5,c/2));gp(a);a.wf=(new Wb(function(){Wp(a)})).
|
|
661
|
-
function Wp(a){switch(a.m){case Rp:if(a.h.ended)var b=!0;else{var c=lj(a.h.buffered);b=null!=c&&c>=a.h.duration-1}break;case Ep:a:if(a.h.ended||pk(a.K))b=!0;else{if(a.i.presentationTimeline.
|
|
662
|
-
function So(a){return new Vn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Tb:function(){return a.Tb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Va:function(){return a.Va()},Fb:function(){return a.Fb()},Ib:function(){return a.Ib()},
|
|
663
|
-
function Dp(a){return new dm(a.i,{Ae:function(){return a.H?a.H.ke():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Va:function(){return a.Va()},oa:a.K,
|
|
664
|
-
d).set("end",b).set("contentType",e).set("isMuxed",c);a.dispatchEvent(Zo("segmentappended",d))}
|
|
659
|
+
function Hp(a,b){b=new sn(a.Td,a.U()||0<b);b.addEventListener("enter",function(d){sp(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){sp(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(sp(a,"timelineregionenter",e),sp(a,"timelineregionexit",e))});var c=new wl(a.h);c.g.add(b);a.xc&&c.g.add(a.xc);return c}
|
|
660
|
+
function Ip(a,b,c){a.O=new gh;a.O.g=ih;jh(a.O,c,Math.min(.5,c/2));gp(a);a.wf=(new Wb(function(){Wp(a)})).Ba(.25);a.l.s(b,"waiting",function(){return Wp(a)});a.l.s(b,"stalled",function(){return Wp(a)});a.l.s(b,"canplaythrough",function(){return Wp(a)});a.l.s(b,"progress",function(){return Wp(a)})}
|
|
661
|
+
function Wp(a){switch(a.m){case Rp:if(a.h.ended)var b=!0;else{var c=lj(a.h.buffered);b=null!=c&&c>=a.h.duration-1}break;case Ep:a:if(a.h.ended||pk(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.rc();var d=lj(a.h.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=nj(a.h.buffered,a.h.currentTime);c=a.O;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?hh:ih;c.g=d;(b=b!=d)&&d===hh&&(c.h=Date.now());b&&gp(a)}function xp(a,b,c,d){return new gk(a,b,c,d)}
|
|
662
|
+
function So(a){return new Vn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Tb:function(){return a.Tb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Va:function(){return a.Va()},Fb:function(){return a.Fb()},Ib:function(){return a.Ib()},U:function(){return a.U()}},a.g.cmcd)}
|
|
663
|
+
function Dp(a){return new dm(a.i,{Ae:function(){return a.H?a.H.ke():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Va:function(){return a.Va()},oa:a.K,hc:a.I,onError:function(b){return ep(a,b)},onEvent:function(b){return a.dispatchEvent(b)},dk:function(){a.J&&a.J.update&&a.J.update()},Gg:function(b,c){var d=b.startTime;b=b.endTime;var e=c.type;c=c.codecs.includes(",");if(a.H){a.H.Xh();var f=qk(a.K,e);!a.U()&&a.h.paused&&null!=f&&e!=Wc&&0<f&&a.H.ke()<f&&a.H.Cf(f)}Wp(a);d=(new Map).set("start",
|
|
664
|
+
d).set("end",b).set("contentType",e).set("isMuxed",c);a.dispatchEvent(Zo("segmentappended",d))},ck:function(b,c){(c=c.md)&&a.xc&&Tl(a.xc,c,b)},ph:function(b,c){var d=a.C;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){b=new ei(Ib(c));c=0;for(var e=t(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(0==c)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=t(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,c.set(f,e),e+=f.length;wi(d,"cenc",c);d=d.l}}else d=Promise.resolve();
|
|
665
665
|
return d},onMetadata:function(b,c,d){yp(a,b,c,d)},disableStream:function(b,c){return a.disableStream(b,c)}})}
|
|
666
666
|
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Bd("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Bd("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
|
|
667
667
|
a.streaming&&"useNativeHlsOnSafari"in a.streaming&&(Bd("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),a.streaming.preferNativeHls=a.streaming.useNativeHlsOnSafari&&kc(),delete a.streaming.useNativeHlsOnSafari);if(a.streaming&&"boolean"==typeof a.streaming.liveSync){Bd("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var c=a.streaming.liveSync;a.streaming.liveSync={};a.streaming.liveSync.enabled=
|
|
@@ -676,86 +676,86 @@ a.streaming.liveSyncPanicThreshold,delete a.streaming.liveSyncPanicThreshold);if
|
|
|
676
676
|
100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));c=bn(this.g,a,Ro(this));Xp(this);return c};
|
|
677
677
|
function Xp(a){a.tf=new Ri(a.g,a.ia,a.C);if(a.J){var b=ae(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.C&&a.C.configure(a.g.drm);if(a.j){a.j.configure(a.g.streaming);try{a.m!=$o&&Ti(a.tf,a.i)&&up(a)}catch(e){ep(a,e)}a.o&&vp(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||Wo(a)}a.I&&(a.I.Vg(a.g.streaming.forceHTTP),a.I.Wg(a.g.streaming.forceHTTPS),a.I.m=a.g.streaming.minBytesForProgressEvents);a.K&&(a.K.configure(a.g.mediaSource),a.K.ha=a.g.manifest.segmentRelativeVttTiming);
|
|
678
678
|
if(a.G)if(b=a.g.textDisplayFactory,a.ge!=b){var c=a.G;a.G=b();a.G.configure?a.G.configure(a.g.textDisplayer):Bd("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.G.setTextVisibility(c.isTextVisible());c.destroy();if(a.K){c=a.K;var d=a.G;c.$=d;c.g&&(c.g.j=d)}a.ge=b;a.j&&(b=a.j,(c=b.i.get(Wc))&&qm(b,c.stream,!0,0,!0))}else a.G.configure&&a.G.configure(a.g.textDisplayer);a.o&&(a.o.configure(a.g.abr),a.g.abr.enabled?a.o.enable():a.o.disable(),Mp(a));a.O&&(b=a.g.streaming.rebufferingGoal,
|
|
679
|
-
a.i&&(b=Math.max(b,a.i.minBufferTime)),jh(a.O,b,Math.min(.5,b/2)));a.i&&Bp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u&&a.u.configure(a.g.ads);a.P&&a.P.configure(a.g.cmcd);a.ha&&a.ha.configure(a.g.cmsd)}q.getConfiguration=function(){var a=Ro(this);bn(a,this.g,Ro(this));return a};q.
|
|
680
|
-
q.
|
|
681
|
-
q.Fb=function(){return this.I};q.gd=function(){return this.aa};q.xe=function(){return this.u?this.u:null};q.
|
|
682
|
-
q.Fa=function(){if(this.i){if(!this.Ga&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.
|
|
679
|
+
a.i&&(b=Math.max(b,a.i.minBufferTime)),jh(a.O,b,Math.min(.5,b/2)));a.i&&Bp(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u&&a.u.configure(a.g.ads);a.P&&a.P.configure(a.g.cmcd);a.ha&&a.ha.configure(a.g.cmsd)}q.getConfiguration=function(){var a=Ro(this);bn(a,this.g,Ro(this));return a};q.Ih=function(){var a=Ro(this);bn(a,this.g,Ro(this));return Rm(this.g,Ro(this))};
|
|
680
|
+
q.Eh=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.Fa().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return(a-this.h.currentTime)/(b-this.h.currentTime)}return 0};q.rk=function(){for(var a in this.g)delete this.g[a];bn(this.g,Ro(this),Ro(this));Xp(this)};q.Ic=function(){return this.m};q.lg=function(){return this.i?this.i.type:null};q.sj=function(){return this.h};
|
|
681
|
+
q.Fb=function(){return this.I};q.gd=function(){return this.aa};q.xe=function(){return this.u?this.u:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Nc=function(){return this.i?this.i.presentationTimeline.Nc():!1};q.Mc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.h&&this.h.src?this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight:!1};
|
|
682
|
+
q.Fa=function(){if(this.i){if(!this.Ga&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.cc(),end:a.Ub()}}return this.h&&this.h.src&&(a=this.h.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Ij=function(){this.U()&&(this.h.currentTime=this.Fa().end)};q.Oh=function(){return this.Ga};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.C?this.C.g:null};
|
|
683
683
|
q.Gd=function(){return this.C?this.C.Gd():Infinity};q.hg=function(){return this.C?this.C.hg():[]};q.ze=function(){return this.C?this.C.ze():{}};q.Md=function(){return this.O?this.O.g==ih:!1};q.Va=function(){return this.h?this.L?this.L.i:1:0};
|
|
684
|
-
q.Vc=function(a,b){var c=this;b=void 0===b?!0:b;0==a?Za("A trick play rate of 0 is unsupported!"):(this.Ta.
|
|
685
|
-
q.Zc=function(){var a=this.L.Hc();this.m==Rp&&this.L.set(a);this.m==Ep&&(this.L.set(a),this.o.playbackRateChanged(a),pm(this.j,!1));this.Ta.
|
|
684
|
+
q.Vc=function(a,b){var c=this;b=void 0===b?!0:b;0==a?Za("A trick play rate of 0 is unsupported!"):(this.Ta.Za(),this.h.paused&&this.h.play(),this.L.set(a),this.m==Ep&&(this.o.playbackRateChanged(a),pm(this.j,b&&1<Math.abs(a))),this.U()&&this.Ta.s(this.h,"timeupdate",function(){var d=c.h.currentTime,e=c.Fa(),f=c.g.streaming.safeSeekOffset;0<a?Math.floor(d)>=Math.floor(e.end)&&c.Zc():Math.floor(d)<=Math.floor(e.start+f)&&c.Zc()}))};
|
|
685
|
+
q.Zc=function(){var a=this.L.Hc();this.m==Rp&&this.L.set(a);this.m==Ep&&(this.L.set(a),this.o.playbackRateChanged(a),pm(this.j,!1));this.Ta.Za()};
|
|
686
686
|
q.Ib=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Ig(e)){var f=zg(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.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(g){return Hg(g)}):[]};
|
|
687
687
|
q.tc=function(){if(this.i){for(var a=this.j?this.j.u:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Ag(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?Qp(this).map(function(f){return Fg(f)}):[]};q.ye=function(){var a=this.ae;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Bg(b)})};
|
|
688
|
-
q.
|
|
688
|
+
q.Yi=function(a){var b=this,c,d,e,f;return P(function(g){if(1==g.g){if(b.m!=Ep&&b.m!=Rp)return g.return(null);c=b.ae;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):G(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.ac(function(h){var k=Yp(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Ec;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.ng(a,h.startTime+l*m/k))}}),G(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
|
|
689
689
|
function Yp(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Ec:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
|
|
690
690
|
q.ng=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;return P(function(B){if(1==B.g){if(c.m!=Ep&&c.m!=Rp)return B.return(null);d=c.ae;c.i&&(d=c.i.imageStreams);return(e=d.find(function(D){return D.id==a}))?e.segmentIndex?B.B(2):G(B,e.createSegmentIndex(),2):B.return(null)}f=e.segmentIndex.find(b);if(null==f)return B.return(null);g=e.segmentIndex.get(f);h=Yp(g.tilesLayout||e.tilesLayout);if(!h)return B.return(null);k=e.width||0;l=e.height||0;m=k/h.Ec;n=l/h.rows;p=h.Ec*h.rows;r=g.j-g.startTime;
|
|
691
691
|
u=g.C||r/p;v=g.startTime;y=w=0;1<p&&(z=Math.floor((b-g.startTime)/u),v=g.startTime+z*u,w=z%h.Ec*m,y=Math.floor(z/h.Ec)*n);C=!1;if(A=g.A)C=!0,n=A.height,w=A.positionX,y=A.positionY,m=A.width;return B.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:y,startTime:v,duration:u,uris:g.R(),width:m,sprite:C})})};
|
|
692
692
|
q.Rg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.u&&(Cl(this.A.h,b,!1),sm(this.j,b),Zp(this),this.Jb=b.language)}else if(this.h&&this.h.src&&this.h.textTracks){var c=Qp(this);b=c.find(function(d){return"disabled"!==d.mode});c=c.find(function(d){return Dg(d)===a.id});b!==c&&(b&&(b.mode="disabled",this.l.Ma(b,"cuechange"),this.G.remove(0,Infinity)),c&&Tp(this,c));Zp(this)}};
|
|
693
693
|
function Tp(a,b){a.l.s(b,"cuechange",function(){a.G.remove(0,Math.max(0,a.h.currentTime-a.g.streaming.bufferBehind));var c=Array.from(b.activeCues||[]).map(En).filter(Yf);a.G.append(c)});b.mode=document.pictureInPictureElement?"showing":"hidden"}
|
|
694
694
|
q.ef=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){var d=this.i.variants.find(function(f){return f.id==a.id});if(d&&Ig(d)){var e=this.j.j;this.g.abr.enabled&&(e.video!=d.video||e.audio&&d.audio&&e.audio.language==d.audio.language&&e.audio.channelsCount==d.audio.channelsCount)&&Za("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");Cp(this,d,!1,b,c);this.Ia=new Wg(d,
|
|
695
|
-
this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);vp(this)}}else if(this.h&&this.h.audioTracks)for(b=Array.from(this.h.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,Dg(c)==a.id){$p(this,c);break}};q
|
|
695
|
+
this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);vp(this)}}else if(this.h&&this.h.audioTracks)for(b=Array.from(this.h.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,Dg(c)==a.id){$p(this,c);break}};q.$i=function(){return aq(this.Ib())};q.zj=function(){return aq(this.tc())};q.Zi=function(){return Array.from(bq(this.Ib()))};q.yj=function(){return Array.from(bq(this.tc()))};
|
|
696
696
|
q.Pg=function(a,b,c,d,e){c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;if(this.i&&this.H){this.Ia=new Xg(a,b||"",c,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,e);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;e=this.Ia.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())f=f.value,
|
|
697
697
|
Ig(f)&&(!c||a(c,b)>a(f,b))&&(c=f);c!=b&&(c?(a=zg(c),this.ef(a,!0,d)):Wo(this))}else this.h&&this.h.audioTracks&&(d=Kg(this.Ib(),a,b||"",!1)[0])&&this.ef(d)};q.Qg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.H){if(this.Jb=a,this.$d=b||"",this.Yd=c,(a=Kg(this.i.textStreams,this.Jb,this.$d,this.Yd)[0]||null)&&a!=this.j.u&&(Cl(this.A.h,a,!1),this.g.streaming.alwaysStreamText||this.Oc()))sm(this.j,a),Zp(this)}else(a=Kg(this.tc(),a,b||"",c)[0])&&this.Rg(a)};
|
|
698
|
-
q.
|
|
699
|
-
q.Oc=function(){var a=this.sa;return this.G?this.G.isTextVisible():a};q.
|
|
698
|
+
q.Ak=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.H){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Ia=new Xg(d.language,"",0,"",!1,"",a,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),Wo(this,b,c))}else if(this.h&&this.h.audioTracks){c=Array.from(this.h.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&$p(this,b)}};
|
|
699
|
+
q.Oc=function(){var a=this.sa;return this.G?this.G.isTextVisible():a};q.Fh=function(){return this.h&&this.h.src&&this.h.textTracks?cq(this).map(function(a){return Fg(a)}):[]};
|
|
700
700
|
q.ig=function(a){if(!this.h||!this.h.src||!this.h.textTracks)return[];var b=bd(a),c=cq(this).filter(function(h){return bd(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
|
|
701
701
|
function Qp(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Vp(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})}function cq(a){return Array.from(a.h.textTracks).filter(function(b){return"chapters"==b.kind})}
|
|
702
702
|
q.hf=function(a){a=!!a;this.sa!=a&&(this.sa=a,this.m==Ep?(this.G.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.j.u||(a=Kg(this.i.textStreams,this.Jb,this.$d,this.Yd),0<a.length&&(sm(this.j,a[0]),Zp(this))):om(this.j))):this.h&&this.h.src&&this.h.textTracks&&this.G.setTextVisibility(a),Lp(this))};
|
|
703
|
-
q.
|
|
704
|
-
q.Ce=function(){return this.
|
|
703
|
+
q.tj=function(){if(this.H)var a=this.H.ke();else{if(null==this.qa)return new Date;a=this.qa}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.m||b.i)+a))}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};q.Jh=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.m||a.i))}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),isNaN(a.getTime())?null:a):null};
|
|
704
|
+
q.Ce=function(){return this.U()?this.i?this.i.presentationTimeline.Ce():null:null};q.Tb=function(){if(this.m==Ep)return this.K.Tb();var a={total:[],audio:[],video:[],text:[]};this.m==Rp&&(a.total=oj(this.h.buffered));return a};
|
|
705
705
|
q.getStats=function(){if(this.m!=Ep&&this.m!=Rp)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],
|
|
706
|
-
stateHistory:[]};zp(this);var a=this.h,b=a.currentTime/a.duration;if(!isNaN(b)&&!this.
|
|
707
|
-
var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.A.C=e}c&&c.video&&(b=this.A,d=c.video.height||NaN,b.o=c.video.width||NaN,b.l=d);this.
|
|
708
|
-
b);var f=this.A;a=f.o;c=f.l;b=f.C;d=f.O;e=f.P;var g=f.N,h=f.
|
|
706
|
+
stateHistory:[]};zp(this);var a=this.h,b=a.currentTime/a.duration;if(!isNaN(b)&&!this.U()){var c=this.A;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.H&&(this.A.S=this.H.ih(),this.A.V=this.H.jh());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.P=Number(c.droppedVideoFrames);b.O=d;this.A.N=Number(c.corruptedVideoFrames)}this.C?(c=this.C,c=c.K?c.K:NaN):c=NaN;this.A.u=c;if(this.m==Ep){c=this.j.j;b=this.j.u;if(c){d=this.L?this.L.i:1;
|
|
707
|
+
var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.A.C=e}c&&c.video&&(b=this.A,d=c.video.height||NaN,b.o=c.video.width||NaN,b.l=d);this.U()&&(c=this.Jh().valueOf()+1E3*a.currentTime,this.A.G=(Date.now()-c)/1E3);this.i&&(this.A.I=this.i.periodCount,this.A.H=this.i.gapCount,this.i.presentationTimeline&&(this.A.K=this.i.presentationTimeline.h));c=this.o.getBandwidthEstimate();this.A.A=c}this.m==Rp&&(c=this.A,c.Dc=isNaN(c.Dc)?NaN:c.Dc+NaN,c=this.A,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=
|
|
708
|
+
b);var f=this.A;a=f.o;c=f.l;b=f.C;d=f.O;e=f.P;var g=f.N,h=f.V,k=f.S,l=f.A,m=f.i,n=f.m,p=f.J,r=f.j,u=zl(f.g,"playing"),v=zl(f.g,"paused"),w=zl(f.g,"buffering"),y=f.u,z=f.G,C=f.K,A=f.Rh,B=f.Dc,D=f.L,E=f.I,F=f.H,L=Al(f.g),J=[];f=t(f.h.g);for(var K=f.next();!K.done;K=f.next())K=K.value,J.push({timestamp:K.timestamp,id:K.id,type:K.type,fromAdaptation:K.fromAdaptation,bandwidth:K.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,
|
|
709
709
|
estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:u,pauseTime:v,bufferingTime:w,licenseTime:y,liveLatency:z,maxSegmentDuration:C,manifestSizeBytes:A,bytesDownloaded:B,nonFatalErrorCount:D,manifestPeriodCount:E,manifestGapCount:F,stateHistory:L,switchHistory:J}};
|
|
710
|
-
q.
|
|
710
|
+
q.Oi=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){switch(A.g){case 1:if(h.m!=Ep&&h.m!=Rp)throw new U(1,7,7004);"subtitles"!=c&&"captions"!=c&&Za("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){A.B(2);break}return G(A,dq(h,a),3);case 3:d=A.h;case 2:k=[];h.u&&(k=h.u.getCuePoints());if(h.m!=Rp){A.B(4);break}g&&(c="forced");return G(A,eq(h,a,b,c,d,f||"",k),5);case 5:l=bd(b);m=h.tc();if(n=m.find(function(B){return bd(B.language)==
|
|
711
711
|
l&&B.label==(f||"")&&B.kind==c}))return up(h),A.return(n);throw new U(1,2,2012);case 4:p=Yc;r=h.h.duration;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new U(1,4,4033);if(!k.length){A.B(6);break}return G(A,fq(h,a,h.I,h.g.streaming.retryParameters),7);case 7:u=A.h,v=gq(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=jk(w),d="text/vtt";case 6:y={id:h.zf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:sl(0,r,[a]),mimeType:d||"",
|
|
712
712
|
codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:p.Na,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Bf(d||"",e||"")])};z=Bf(y.mimeType,y.codecs);C=Pf(z);if(!C)throw new U(2,2,2014,d);h.i.textStreams.push(y);up(h);return A.return(Ag(y))}})};
|
|
713
|
-
q.
|
|
714
|
-
vttOffset:0};l=Ib(f);m=h.parseMedia(l,k,a,[]);n=[];p=t(m);r=p.next();for(u={};!r.done;u={qf:void 0,cd:void 0},r=p.next())u.cd=r.value,u.qf=null,v=function(A){return function(){null==A.qf&&(A.qf=Qc([a],[A.cd.payload]));return A.qf||[]}}(u),w=new gj(u.cd.startTime,u.cd.endTime,v,0,null,null,0,0,Infinity),u.cd.payload.includes("#xywh")&&(y=u.cd.payload.split("#xywh=")[1].split(","),4===y.length&&w.
|
|
713
|
+
q.Pi=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z;return P(function(C){switch(C.g){case 1:if(c.m!=Ep&&c.m!=Rp)throw new U(1,7,7004);if(b){C.B(2);break}return G(C,dq(c,a),3);case 3:b=C.h;case 2:if("text/vtt"!=b)throw new U(1,2,2017,a);d=Yc;e=c.h.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new U(1,4,4045);return G(C,fq(c,a,c.I,c.g.streaming.retryParameters),4);case 4:f=C.h;g=Qf[b];if(!g)throw new U(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
|
|
714
|
+
vttOffset:0};l=Ib(f);m=h.parseMedia(l,k,a,[]);n=[];p=t(m);r=p.next();for(u={};!r.done;u={qf:void 0,cd:void 0},r=p.next())u.cd=r.value,u.qf=null,v=function(A){return function(){null==A.qf&&(A.qf=Qc([a],[A.cd.payload]));return A.qf||[]}}(u),w=new gj(u.cd.startTime,u.cd.endTime,v,0,null,null,0,0,Infinity),u.cd.payload.includes("#xywh")&&(y=u.cd.payload.split("#xywh=")[1].split(","),4===y.length&&w.ri({height:parseInt(y[3],10),positionX:parseInt(y[0],10),positionY:parseInt(y[1],10),width:parseInt(y[2],
|
|
715
715
|
10)})),n.push(w);z={id:c.zf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ql(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Af,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Bf(b||
|
|
716
716
|
"","")])};c.m==Rp?c.ae.push(z):c.i.imageStreams.push(z);up(c);return C.return(Bg(z))}})};
|
|
717
|
-
q.
|
|
717
|
+
q.Ni=function(a,b,c){var d=this,e,f,g,h;return P(function(k){switch(k.g){case 1:if(d.m!=Ep&&d.m!=Rp)throw new U(1,7,7004);if(c){k.B(2);break}return G(k,dq(d,a),3);case 3:c=k.h;case 2:return e=[],d.u&&(e=d.u.getCuePoints()),G(k,eq(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Fh();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return G(k,new Promise(function(l,m){d.l.na(f,"load",l);d.l.na(f,"error",function(){m(new U(1,2,2015))})}),6);case 6:return up(d),k.return(h);case 5:throw new U(1,
|
|
718
718
|
2,2012);}})};function dq(a,b){var c;return P(function(d){switch(d.g){case 1:return ta(d,2),G(d,xn(b,a.I,a.g.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new U(1,2,2011,b);}})}
|
|
719
719
|
function eq(a,b,c,d,e,f,g){var h,k,l,m;return P(function(n){if(1==n.g)return"text/vtt"!=e||g.length?G(n,fq(a,b,a.I,a.g.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=gq(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=jk(l),e="text/vtt");m=document.createElement("track");var p=a.P,r=b;try{if(p.g.enabled){var u=co(p);u.ot=qo;u.su=!0;var v=ho(u);var w=io(r,v)}else w=r}catch(y){$a("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),w=r}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
|
|
720
720
|
a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m)})}function fq(a,b,c,d){var e,f,g;return P(function(h){if(1==h.g){e=Jh;f=Dh([b],d);f.method="GET";var k=a.P;try{k.g.enabled&&jo(k,f,{ot:qo,su:!0})}catch(l){$a("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return G(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
|
|
721
|
-
function gq(a,b,c,d){var e=Qf[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Ib(b),b=c.parseMedia(b,a,null,[]),Un(b,d);throw new U(2,2,2014,c);}q.
|
|
722
|
-
q.kg=function(){Za("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.
|
|
723
|
-
function Ro(a){var b=Ym();b.streaming.failureCallback=function(c){if(a.
|
|
721
|
+
function gq(a,b,c,d){var e=Qf[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Ib(b),b=c.parseMedia(b,a,null,[]),Un(b,d);throw new U(2,2,2014,c);}q.Gk=function(a,b){this.ia.width=a;this.ia.height=b};q.Ng=function(a){if(this.m==Ep){var b=this.j;a=void 0===a?.1:a;if(b.m.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Kd||d.fb||d.Rb||(d.Kd=!1,nm(b,d,a));b=!0}}else b=!1;return b};
|
|
722
|
+
q.kg=function(){Za("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.pj=function(){return this.bb};
|
|
723
|
+
function Ro(a){var b=Ym();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Ng(d))}};b.textDisplayFactory=function(){if(a.vf){var c=a.getConfiguration();return new Ln(a.h,a.vf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Fn(a.h,"Shaka Player TextTrack"):new Hn};return b}q.Zg=function(a){this.vf=a};
|
|
724
724
|
function qp(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new tl,l=e.closedCaptions.get(g);h={id:a.zf++,originalId:g,groupId:null,
|
|
725
725
|
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Wc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Bf(h,"")])};b.textStreams.push(h);c.add(g)}}
|
|
726
726
|
function Jp(a,b){var c,d,e,f,g;return P(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return P(function(r){if(1==r.g)return k?G(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.bc(l))?m.next().value:null;if(!n)return r.return(null);p=n.startTime;return r.return(p)})},G(h,e(c,b),2);if(3!=h.g)return f=h.h,G(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)})}
|
|
727
727
|
function gp(a){var b=a.Md();if(a.A&&a.O&&a.H){var c=a.L;c.j=b;vl(c);a.P&&(c=a.P,b||c.l||(c.l=!0),c.l&&b&&(c.m=!0),c.o=b);zp(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.je<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.S&&(a.S=Math.min(a.S+ ++a.je*e,c-d))}}b=(new Map).set("buffering",b);a.dispatchEvent(Zo("buffering",
|
|
728
728
|
b))}function Ap(a){var b=a.h.playbackRate;0!=b&&(a.L&&a.L.set(b),b=Zo("ratechange"),a.dispatchEvent(b))}
|
|
729
729
|
function zp(a){if(a.A&&a.O){var b=a.A.g,c="playing";a.O.g==ih?c="buffering":a.h.ended?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Zo("statechanged",c)))}}
|
|
730
|
-
function Np(a){var b=a.h.playbackRate,c=a.
|
|
730
|
+
function Np(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Eh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Vc(d,!1):1==e&&b!==a.L.Hc()&&a.Zc()}if(c&&(c=a.Fa(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(a.g.streaming.liveSync&&
|
|
731
731
|
a.g.streaming.liveSync.enabled){var g=a.g.streaming.liveSync.targetLatency;var h=g+d;var k=Math.max(0,g-d);var l=a.g.streaming.liveSync.maxPlaybackRate;var m=a.g.streaming.liveSync.minPlaybackRate}else a.i&&a.i.serviceDescription&&(g=a.i.serviceDescription.targetLatency,null!=a.i.serviceDescription.targetLatency?h=a.i.serviceDescription.targetLatency+d:null!=a.i.serviceDescription.maxLatency&&(h=a.i.serviceDescription.maxLatency),null!=a.i.serviceDescription.targetLatency?k=Math.max(0,a.i.serviceDescription.targetLatency-
|
|
732
732
|
d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.S||"number"!==typeof g||(a.S=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Ja&&null!==a.S&&"number"===typeof g&&a.je<n&&Date.now()-a.Ja>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,a.S=Math.max(a.S-(g-f)/2,f+d),
|
|
733
733
|
a.Ja=Date.now());e&&null!==a.S&&(h=a.S+d,k=a.S-d);g=c.end-a.h.currentTime;d=0;a.m==Rp&&(e=a.h.buffered,0<e.length&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=1E3*a.g.streaming.liveSync.panicThreshold;f=Date.now()-a.O.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Vc(m,!1):h&&l&&g-d>h?(b!=l&&a.Vc(l,!1),a.Ja=null):k&&m&&g-d<k?(b!=m&&a.Vc(m,!1),a.Ja=null):b!==a.L.Hc()&&(a.Zc(),a.Ja=Date.now())}}
|
|
734
|
-
function Op(a){if(a.h){var b=!1,c=a.h.currentTime/a.h.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.
|
|
734
|
+
function Op(a){if(a.h){var b=!1,c=a.h.currentTime/a.h.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.V)?(a.V=c,b=!0):(c=Math.max(a.V,c),a.V!=c&&(a.V=c,b=!0)));if(b){var d;0==a.V?d=Zo("started"):25==a.V?d=Zo("firstquartile"):50==a.V?d=Zo("midpoint"):75==a.V?d=Zo("thirdquartile"):100==a.V&&(d=Zo("complete"));d&&a.dispatchEvent(d)}}}function vp(a){try{Wi(a.tf,a.i)}catch(c){return ep(a,c),!1}var b=Jg(a.i.variants);b=a.Ia.create(b);a.o.setVariants(Array.from(b.values()));return!0}
|
|
735
735
|
function Wo(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f;(f=vp(a)?a.o.chooseVariant():null)&&Cp(a,f,e,b,c,d)}
|
|
736
736
|
function Cp(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&rm(a.j,b,d,e,!0);else{var h=a.A.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));rm(a.j,b,d,e,f,c);d=null;g&&(d=zg(g));b=zg(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.N&&fk(a.N,b,a.lg()),c=Zo("adaptation",c),hq(a,c)):iq(a,d,b)}}
|
|
737
737
|
function $p(a,b){var c=Array.from(a.h.audioTracks).find(function(d){return d.enabled});b.enabled=!0;c&&(b.id!==c.id&&(c.enabled=!1),c=Hg(c),b=Hg(b),iq(a,c,b))}function Kp(a,b,c){if(0==a.g.autoShowText)return!1;if(1==a.g.autoShowText)return!0;var d=bd(a.g.preferredTextLanguage);c=bd(c.language);if(2==a.g.autoShowText)return ad(c,d);if(3==a.g.autoShowText){if(!b)return!1;a=bd(b.language);return ad(c,d)&&!ad(a,c)}Za("Invalid autoShowText setting!");return!1}
|
|
738
738
|
function up(a){var b=Zo("trackschanged");hq(a,b)}function iq(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.N&&fk(a.N,c,a.lg());c=Zo("variantchanged",b);hq(a,c)}function Zp(a){var b=Zo("textchanged");hq(a,b)}function Lp(a){var b=Zo("texttrackvisibility");hq(a,b)}function Mp(a){a.g.abr.enabled||Vo(a);var b=(new Map).set("newStatus",a.g.abr.enabled);hq(a,Zo("abrstatuschanged",b))}
|
|
739
739
|
function Vo(a,b){b=void 0===b?!0:b;if(a.m==Ep){a.xf.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&vp(a)}}
|
|
740
|
-
q.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===$o||!navigator.onLine||0==b)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0))}if(!c&&d)return!1;this.xf.
|
|
740
|
+
q.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===$o||!navigator.onLine||0==b)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0))}if(!c&&d)return!1;this.xf.Ba(1);b=this.Tb().video.reduce(function(h,
|
|
741
741
|
k){return h+k.end-k.start},0);Wo(this,!1,b,!0,!1);return!0}return!1};
|
|
742
742
|
function ep(a,b){var c,d,e,f;return P(function(g){switch(g.g){case 1:if(a.m==$o)return g.return();1===b.severity&&a.A.L++;c=!0;if(!(a.Ga&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){g.B(2);break}ta(g,3);return G(g,Mm(a.j),5);case 5:d=g.h;c=!d;d&&(e=Zo("mediasourcerecovered"),a.dispatchEvent(e));wa(g,2);break;case 3:xa(g),c=!0;case 2:if(!c)return g.return();2===b.severity&&Vo(a,!1);f=Zo("error",(new Map).set("detail",b));a.dispatchEvent(f);f.defaultPrevented&&(b.handled=!0);
|
|
743
743
|
H(g)}})}q.addFont=function(a,b){var c,d,e,f,g;return P(function(h){if(1==h.g)return"fonts"in document&&"FontFace"in window?G(h,document.fonts.ready,3):h.B(0);if(!("entries"in document.fonts))return h.return();c=function(k){k=k.entries();for(var l=[],m=k.next();!1===m.done;)l.push(m.value),m=k.next();return l};d=t(c(document.fonts));for(e=d.next();!e.done;e=d.next())if(f=e.value,f.family==a&&"swap"==f.display)return h.return();g=new FontFace(a,"url("+b+")",{display:"swap"});document.fonts.add(g);H(h)})};
|
|
744
744
|
function sp(a,b,c,d){d=void 0===d?a:d;a=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(Zo(b,a))}
|
|
745
745
|
function tp(a,b,c,d){d=void 0===d?!1:d;b=(new Map).set("mediaQuality",{bandwidth:b.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate,height:b.height,mimeType:b.mimeType,channelsCount:b.channelsCount,pixelAspectRatio:b.pixelAspectRatio,width:b.width,label:b.label,roles:b.roles,language:b.language}).set("position",c);a.dispatchEvent(Zo(d?"audiotrackchanged":"mediaqualitychanged",b))}
|
|
746
|
-
function dp(a,b){b=void 0===b?!0:b;if(!a.h.error)return b?new U(2,3,3016):null;var c=a.h.error.code;if(!b&&1==c)return null;if(b=a.h.error.msExtendedCode)0>b&&(b+=Math.pow(2,32)),b=b.toString(16);return new U(2,3,3016,c,b,a.h.error.message)}function Bp(a,b,c){0<b&&(a.
|
|
746
|
+
function dp(a,b){b=void 0===b?!0:b;if(!a.h.error)return b?new U(2,3,3016):null;var c=a.h.error.code;if(!b&&1==c)return null;if(b=a.h.error.msExtendedCode)0>b&&(b+=Math.pow(2,32)),b=b.toString(16);return new U(2,3,3016,c,b,a.h.error.message)}function Bp(a,b,c){0<b&&(a.U()||a.ti(b));b=a.getDuration();c<b&&(a.U()||a.sb(c))}function hq(a,b){P(function(c){if(1==c.g)return G(c,Promise.resolve(),2);a.m!=$o&&a.dispatchEvent(b);H(c)})}
|
|
747
747
|
function bq(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(bd(c.language)):b.add("und");return b}
|
|
748
748
|
function aq(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=bd(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
|
|
749
|
-
h.push({language:l,role:m,label:n})}});return h}S("shaka.Player",Y);Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.Zg;Y.prototype.getManifestParserFactory=Y.prototype.
|
|
750
|
-
Y.prototype.getBufferedInfo=Y.prototype.Tb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ce;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.
|
|
751
|
-
Y.prototype.selectAudioLanguage=Y.prototype.Pg;Y.prototype.getTextLanguages=Y.prototype.
|
|
752
|
-
Y.prototype.getVariantTracks=Y.prototype.Ib;Y.prototype.cancelTrickPlay=Y.prototype.Zc;Y.prototype.trickPlay=Y.prototype.Vc;Y.prototype.getPlaybackRate=Y.prototype.Va;Y.prototype.isBuffering=Y.prototype.Md;Y.prototype.getKeyStatuses=Y.prototype.ze;Y.prototype.getActiveSessionsMetadata=Y.prototype.hg;Y.prototype.getExpiration=Y.prototype.Gd;Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.
|
|
753
|
-
Y.prototype.seekRange=Y.prototype.Fa;Y.prototype.isAudioOnly=Y.prototype.Mc;Y.prototype.isInProgress=Y.prototype.Nc;Y.prototype.isLive=Y.prototype.
|
|
754
|
-
Y.prototype.getNonDefaultConfiguration=Y.prototype.
|
|
749
|
+
h.push({language:l,role:m,label:n})}});return h}S("shaka.Player",Y);Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.Zg;Y.prototype.getManifestParserFactory=Y.prototype.pj;Y.prototype.getManifest=Y.prototype.kg;Y.prototype.retryStreaming=Y.prototype.Ng;Y.prototype.setMaxHardwareResolution=Y.prototype.Gk;Y.prototype.addChaptersTrack=Y.prototype.Ni;Y.prototype.addThumbnailsTrack=Y.prototype.Pi;Y.prototype.addTextTrackAsync=Y.prototype.Oi;Y.prototype.getStats=Y.prototype.getStats;
|
|
750
|
+
Y.prototype.getBufferedInfo=Y.prototype.Tb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ce;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.Jh;Y.prototype.getPlayheadTimeAsDate=Y.prototype.tj;Y.prototype.setTextTrackVisibility=Y.prototype.hf;Y.prototype.getChapters=Y.prototype.ig;Y.prototype.getChaptersTracks=Y.prototype.Fh;Y.prototype.isTextTrackVisible=Y.prototype.Oc;Y.prototype.selectVariantsByLabel=Y.prototype.Ak;Y.prototype.selectTextLanguage=Y.prototype.Qg;
|
|
751
|
+
Y.prototype.selectAudioLanguage=Y.prototype.Pg;Y.prototype.getTextLanguages=Y.prototype.yj;Y.prototype.getAudioLanguages=Y.prototype.Zi;Y.prototype.getTextLanguagesAndRoles=Y.prototype.zj;Y.prototype.getAudioLanguagesAndRoles=Y.prototype.$i;Y.prototype.selectVariantTrack=Y.prototype.ef;Y.prototype.selectTextTrack=Y.prototype.Rg;Y.prototype.getThumbnails=Y.prototype.ng;Y.prototype.getAllThumbnails=Y.prototype.Yi;Y.prototype.getImageTracks=Y.prototype.ye;Y.prototype.getTextTracks=Y.prototype.tc;
|
|
752
|
+
Y.prototype.getVariantTracks=Y.prototype.Ib;Y.prototype.cancelTrickPlay=Y.prototype.Zc;Y.prototype.trickPlay=Y.prototype.Vc;Y.prototype.getPlaybackRate=Y.prototype.Va;Y.prototype.isBuffering=Y.prototype.Md;Y.prototype.getKeyStatuses=Y.prototype.ze;Y.prototype.getActiveSessionsMetadata=Y.prototype.hg;Y.prototype.getExpiration=Y.prototype.Gd;Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.Oh;Y.prototype.goToLive=Y.prototype.Ij;
|
|
753
|
+
Y.prototype.seekRange=Y.prototype.Fa;Y.prototype.isAudioOnly=Y.prototype.Mc;Y.prototype.isInProgress=Y.prototype.Nc;Y.prototype.isLive=Y.prototype.U;Y.prototype.getAdManager=Y.prototype.xe;Y.prototype.getAssetUri=Y.prototype.gd;Y.prototype.getNetworkingEngine=Y.prototype.Fb;Y.prototype.getMediaElement=Y.prototype.sj;Y.prototype.getManifestType=Y.prototype.lg;Y.prototype.getLoadMode=Y.prototype.Ic;Y.prototype.resetConfiguration=Y.prototype.rk;Y.prototype.getBufferFullness=Y.prototype.Eh;
|
|
754
|
+
Y.prototype.getNonDefaultConfiguration=Y.prototype.Ih;Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.lk;Y.prototype.destroyAllPreloads=Y.prototype.Rf;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.Ah;Y.prototype.unloadAndSavePreload=Y.prototype.Kk;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.Ok;Y.prototype.unload=Y.prototype.mc;
|
|
755
755
|
Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.mh;Y.prototype.attach=Y.prototype.Yb;
|
|
756
756
|
Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:b={};if(!a){k.B(2);break}return G(k,Oi(),3);case 3:b=k.h;case 2:var l={};if(Xb())for(var m in $i)l[m]=!0;m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,l[n]=Xb()?!!$i[n]:Yb(n);c=l;m='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",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(Cf));
|
|
757
757
|
l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Pf(n)?!0:Xb()?xd(n)||(vf(n)?!0:!1):Yb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return G(k,wc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=jq;for(h in g)f[h]=g[h]();return k.return(f)}})};Y.isBrowserSupported=ap;Y.setAdManagerFactory=function(a){Uo=a};Y.registerSupportPlugin=function(a,b){jq[a]=b};Y.prototype.destroy=Y.prototype.destroy;var $o=0,Qo=1,Ep=2,Rp=3;
|
|
758
|
-
Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.
|
|
758
|
+
Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.3";var kq=["4","11"];Cd=new function(a){this.g=a;this.i=Dd;this.h=Ed}(new Ad(Number(kq[0]),Number(kq[1])));var jq={},Uo=null;function lq(){this.g=[];this.i=this.l=this.j=this.h=0}function mq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function nq(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new sd;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=nq.prototype;q.needsSkipUI=function(){return!1};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
|
|
759
759
|
q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
|
|
760
760
|
q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
|
|
761
761
|
q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.g.getTitle()};q.getDescription=function(){return this.g.getDescription()};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
|
|
@@ -768,7 +768,7 @@ function pq(a,b){var c=[],d=0;null!=b&&(d=b);a=t(oe(a,"Ad"));for(var e=a.next();
|
|
|
768
768
|
0)-(parseInt(k.attributes.height,10)||0)});g=t(g);for(h=g.next();!h.done;h=g.next())if(h=pe(h.value)){c.push({id:null,startTime:d,endTime:null,uri:h,isSkippable:null!=f,skipOffset:f,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1});break}}}}return c}S("shaka.ads.Utils",oq);oq.ADS_LOADED="ads-loaded";oq.AD_STARTED="ad-started";oq.AD_FIRST_QUARTILE="ad-first-quartile";oq.AD_MIDPOINT="ad-midpoint";oq.AD_THIRD_QUARTILE="ad-third-quartile";
|
|
769
769
|
oq.AD_COMPLETE="ad-complete";oq.AD_STOPPED="ad-stopped";oq.AD_SKIPPED="ad-skipped";oq.AD_VOLUME_CHANGED="ad-volume-changed";oq.AD_MUTED="ad-muted";oq.AD_PAUSED="ad-paused";oq.AD_RESUMED="ad-resumed";oq.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";oq.CUEPOINTS_CHANGED="ad-cue-points-changed";oq.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";oq.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";oq.AD_CLICKED="ad-clicked";oq.AD_PROGRESS="ad-progress";oq.AD_BUFFERING="ad-buffering";
|
|
770
770
|
oq.AD_IMPRESSION="ad-impression";oq.AD_DURATION_CHANGED="ad-duration-changed";oq.AD_CLOSED="ad-closed";oq.AD_LOADED="ad-loaded";oq.ALL_ADS_COMPLETED="all-ads-completed";oq.AD_LINEAR_CHANGED="ad-linear-changed";oq.AD_METADATA="ad-metadata";oq.AD_RECOVERABLE_ERROR="ad-recoverable-error";oq.AD_ERROR="ad-error";oq.AD_BREAK_READY="ad-break-ready";oq.AD_INTERACTION="ad-interaction";oq.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";oq.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";
|
|
771
|
-
oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.
|
|
771
|
+
oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.3");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.s(this.m,
|
|
772
772
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){rq(f,g)});this.h.s(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){sq(f,g)});this.h.s(this.i,"ended",function(){f.m.contentComplete()});this.h.na(this.i,"play",function(){f.H=!0})}qq.prototype.configure=function(a){this.o=a};qq.prototype.stop=function(){this.g&&this.g.stop();this.u&&Kn(this.u)};
|
|
773
773
|
qq.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.G.destroy()};function sq(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));tq(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
774
774
|
function rq(a,b){a.l(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.s(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.s(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -788,9 +788,9 @@ q.getTimeOffset=function(){return 0};q.getPodIndex=function(){return 0};q.releas
|
|
|
788
788
|
xq.prototype.getVastMediaWidth=xq.prototype.getVastMediaWidth;xq.prototype.getVastMediaHeight=xq.prototype.getVastMediaHeight;xq.prototype.getVastMediaBitrate=xq.prototype.getVastMediaBitrate;xq.prototype.getDescription=xq.prototype.getDescription;xq.prototype.getTitle=xq.prototype.getTitle;xq.prototype.getPositionInSequence=xq.prototype.getPositionInSequence;xq.prototype.getSequenceLength=xq.prototype.getSequenceLength;xq.prototype.setMuted=xq.prototype.setMuted;xq.prototype.resize=xq.prototype.resize;
|
|
789
789
|
xq.prototype.isLinear=xq.prototype.isLinear;xq.prototype.isMuted=xq.prototype.isMuted;xq.prototype.setVolume=xq.prototype.setVolume;xq.prototype.getVolume=xq.prototype.getVolume;xq.prototype.play=xq.prototype.play;xq.prototype.pause=xq.prototype.pause;xq.prototype.skip=xq.prototype.skip;xq.prototype.canSkipNow=xq.prototype.canSkipNow;xq.prototype.getTimeUntilSkippable=xq.prototype.getTimeUntilSkippable;xq.prototype.isSkippable=xq.prototype.isSkippable;xq.prototype.isPaused=xq.prototype.isPaused;
|
|
790
790
|
xq.prototype.getRemainingTime=xq.prototype.getRemainingTime;xq.prototype.getMinSuggestedDuration=xq.prototype.getMinSuggestedDuration;xq.prototype.getDuration=xq.prototype.getDuration;xq.prototype.needsSkipUI=xq.prototype.needsSkipUI;function yq(a,b,c,d){var e=this;this.H=a;this.C=b;this.h=c;this.G=null;this.o=!0;this.l=this.h;this.g=d;this.I=new Set;this.A=new Set;this.u=new Map;this.i=new Y;zq(this);this.K=new sd;this.j=new sd;this.J=!1;this.m=null;this.K.s(this.h,"timeupdate",function(){if(!e.J){var f=null==e.m||0==e.m;e.m=e.h.currentTime;(f=Aq(e,f))&&Bq(e,f,1,1,Date.now())}});(new Wb(function(){var f,g,h,k,l,m,n,p,r,u;return P(function(v){switch(v.g){case 1:if(!e.A.size||e.J||null==e.m){v.B(0);break}f=!1;g=Array.from(e.A);
|
|
791
|
-
h=e.C.Fa();k=t(g);l=k.next();case 3:if(l.done){v.B(5);break}m=l.value;n=m.endTime||m.startTime;if(!(1<=h.start-n)){p=m.startTime-e.m;0<p&&10>=p&&(e.u.has(m)||e.u.set(m,e.i.preload(m.uri)));v.B(4);break}if(!e.u.has(m)){v.B(7);break}return G(v,e.u.get(m),8);case 8:(r=v.h)&&r.destroy(),e.u.delete(m);case 7:u=JSON.stringify(m),e.I.has(u)&&e.I.delete(u),e.A.delete(m),f=!0;case 4:l=k.next();v.B(3);break;case 5:f&&Cq(e),H(v)}})})).
|
|
791
|
+
h=e.C.Fa();k=t(g);l=k.next();case 3:if(l.done){v.B(5);break}m=l.value;n=m.endTime||m.startTime;if(!(1<=h.start-n)){p=m.startTime-e.m;0<p&&10>=p&&(e.u.has(m)||e.u.set(m,e.i.preload(m.uri)));v.B(4);break}if(!e.u.has(m)){v.B(7);break}return G(v,e.u.get(m),8);case 8:(r=v.h)&&r.destroy(),e.u.delete(m);case 7:u=JSON.stringify(m),e.I.has(u)&&e.I.delete(u),e.A.delete(m),f=!0;case 4:l=k.next();v.B(3);break;case 5:f&&Cq(e),H(v)}})})).Ba(1)}
|
|
792
792
|
yq.prototype.configure=function(a){this.H&&this.o==a.supportsMultipleMediaElements&&((this.o=!a.supportsMultipleMediaElements)?(this.l=this.h,this.G&&(this.G.parentElement&&this.H.removeChild(this.G),this.G=null)):(this.G||(a=document.createElement(this.h.tagName),a.autoplay=!0,a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.backgroundColor="rgb(0, 0, 0)",a.setAttribute("playsinline",""),this.G=a),this.l=this.G))};
|
|
793
|
-
yq.prototype.stop=function(){this.j&&this.j.
|
|
793
|
+
yq.prototype.stop=function(){this.j&&this.j.Za();this.I.clear();this.A.clear();this.i.Rf();this.u.clear();this.i.detach();this.J=!1;this.m=null};yq.prototype.release=function(){this.stop();this.K&&this.K.release();this.j&&this.j.release();this.H&&Kn(this.H);this.i.destroy()};
|
|
794
794
|
function Dq(a,b){var c;P(function(d){if(1==d.g){if(a.C.Ic()==Rp&&a.o)return Za("Unsupported HLS interstitial when using single media element",b),d.return();zq(a);return G(d,Eq(a,b),2)}c=d.h;c.length?Fq(a,c):Za("Unsupported HLS interstitial",b);H(d)})}
|
|
795
795
|
yq.prototype.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:return c={type:12},G(n,Gq(b,a,c),2);case 2:d=n.h;e=ce(d,"VAST,vmap:VMAP");if(!e)throw new U(2,10,4001);f=[];if("VAST"==e.tagName){f=pq(e,b.m);n.B(3);break}if("vmap:VMAP"!=e.tagName){n.B(3);break}for(var p=[],r=t(oe(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var v=u.value,w=v.attributes.timeOffset;w&&(u=null,"start"==w?u=0:"end"==w?u=Infinity:u=$d(w),(v=se(v,"vmap:AdSource"))&&
|
|
796
796
|
(v=se(v,"vmap:AdTagURI"))&&(v=pe(v))&&p.push({time:u,uri:v}))}g=t(p);h=g.next();case 5:if(h.done){n.B(3);break}k=h.value;return G(n,Gq(b,k.uri,c),8);case 8:l=n.h;m=ce(l,"VAST");if(!m)throw new U(2,10,4001);f.push.apply(f,x(pq(m,k.time)));h=g.next();n.B(5);break;case 3:Fq(b,f),H(n)}})};
|
|
@@ -798,16 +798,16 @@ function Fq(a,b){if(a.C.Ic()==Rp&&a.o)Za("Unsupported interstitial when using si
|
|
|
798
798
|
function Aq(a,b,c){c=void 0===c?0:c;var d=0,e=null;if(a.A.size&&null!=a.m){var f=a.h.ended,g=Array.from(a.A).sort(function(l,m){return m.startTime-l.startTime});g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;b?k=h.pre:f?k=h.post:h.pre||h.post||(k=a.m-Math.round(1E3*h.startTime)/1E3,k=0<k&&(1>=k||!h.canJump));if(k){if(d==c){e=h;break}d++}}}return e}
|
|
799
799
|
function Bq(a,b,c,d,e,f){f=void 0===f?0:f;var g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:g=Date.now();!a.l.parentElement&&a.H&&a.H.appendChild(a.l);1==d&&1==c&&(c=Array.from(a.A).filter(function(D){return b.pre?D.pre==b.pre:b.post?D.post==b.post:.001>Math.abs(D.startTime-b.startTime)}).length);if(b.once||b.pre)f++,a.A.delete(b),Cq(a);a.J=!0;if(!a.o||1!=d){B.B(2);break}a.g(new T("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new nh;k=function(D){return P(function(E){if(1==
|
|
800
800
|
E.g)return"detach"!=D.state?E.B(0):sc()?G(E,new Promise(function(F){return(new Wb(F)).X(.1)}),3):E.B(3);h.resolve();a.j.Ma(a.C,"onstatechange",k);H(E)})};a.j.s(a.C,"onstatechange",k);return G(B,h,2);case 2:return a.o||(a.h.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.h.currentTime+=b.resumeOffset)),l=!1,m=null,n=function(){if(!a.o&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&&Infinity!=b.endTime)a.h.currentTime!=b.endTime&&(a.h.currentTime=b.endTime);else{var D=Date.now();a.h.currentTime+=
|
|
801
|
-
(D-e)/1E3;e=D}},p=function(){var D,E;return P(function(F){if(1==F.g)return n(),m&&m.stop(),(D=Aq(a,b.pre,d-f))?(a.g(new T("ad-stopped")),a.j.
|
|
801
|
+
(D-e)/1E3;e=D}},p=function(){var D,E;return P(function(F){if(1==F.g)return n(),m&&m.stop(),(D=Aq(a,b.pre,d-f))?(a.g(new T("ad-stopped")),a.j.Za(),Bq(a,D,c,++d,e,f),F.B(0)):a.o?G(F,a.i.detach(),4):G(F,a.i.mc(),4);a.o&&(E=b.resumeOffset,null==E&&(E=b.timelineRange&&b.endTime&&Infinity!=b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.g(new T("ad-content-resume-requested",(new Map).set("offset",E))));a.g(new T("ad-stopped"));a.j.Za();a.J=!1;a.o||(n(),a.h.ended||a.h.play());H(F)})},r=function(D){return P(function(E){if(l)return E.return();
|
|
802
802
|
l=!0;a.g(new T("ad-error",(new Map).set("originalEvent",D)));return G(E,p(),0)})},u=function(){return P(function(D){if(1==D.g){if(l)return D.return();l=!0;return G(D,p(),2)}a.g(new T("ad-complete"));H(D)})},v=function(){return P(function(D){if(l)return D.return();l=!0;a.g(new T("ad-skipped"));return G(D,p(),0)})},w=new xq(a.l,b.isSkippable,b.skipOffset,v,c,d),a.o||(w.setMuted(a.h.muted),w.setVolume(a.h.volume)),a.g(new T("ad-started",(new Map).set("ad",w))),w.canSkipNow()&&a.g(new T("ad-skip-state-changed")),
|
|
803
803
|
y=new Set,a.j.na(a.i,"error",r),a.j.s(a.l,"timeupdate",function(){var D=a.l.duration;D&&(b.isSkippable&&b.skipOffset&&w.canSkipNow()&&0<w.getRemainingTime()&&0<w.getDuration()&&a.g(new T("ad-skip-state-changed")),D=100*a.l.currentTime/D,25<=D&&!y.has("firstquartile")?(n(),a.g(new T("ad-first-quartile")),y.add("firstquartile")):50<=D&&!y.has("midpoint")?(n(),a.g(new T("ad-midpoint")),y.add("midpoint")):75<=D&&!y.has("thirdquartile")&&(n(),a.g(new T("ad-third-quartile")),y.add("thirdquartile")))}),
|
|
804
804
|
a.j.na(a.i,"complete",u),a.j.s(a.l,"play",function(){a.g(new T("ad-resumed"))}),a.j.s(a.l,"pause",function(){a.g(new T("ad-paused"))}),a.j.s(a.l,"volumechange",function(){a.l.muted?a.g(new T("ad-muted")):a.g(new T("ad-volume-changed"))}),ta(B,4),b.playoutLimit&&(m=(new Wb(function(){w.skip()})).X(b.playoutLimit)),zq(a),G(B,a.i.Yb(a.l),6);case 6:return a.u.has(b)?G(B,a.u.get(b),10):G(B,a.i.load(b.uri),8);case 10:return z=B.h,a.u.delete(b),z?G(B,a.i.load(z),8):G(B,a.i.load(b.uri),8);case 8:C=(Date.now()-
|
|
805
805
|
g)/1E3;a.g(new T("ads-loaded",(new Map).set("loadTime",C)));a.o&&a.h.play();wa(B,0);break;case 4:A=xa(B),r(A),H(B)}})}
|
|
806
806
|
function Eq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R;return P(function(X){switch(X.g){case 1:c=[];if(!b)return X.return(c);d=b.values.find(function(ca){return"X-ASSET-URI"==ca.key});e=b.values.find(function(ca){return"X-ASSET-LIST"==ca.key});if(!d&&!e)return X.return(c);f=null;if(g=b.values.find(function(ca){return"ID"==ca.key}))f=g.data;h=b.values.find(function(ca){return"X-RESTRICT"==ca.key});l=k=!0;h&&h.data&&(m=h.data,k=!m.includes("SKIP"),l=!m.includes("JUMP"));
|
|
807
|
-
n=null;if(p=b.values.find(function(ca){return"X-RESUME-OFFSET"==ca.key}))r=p.data,n=parseFloat(r),isNaN(n)&&(n=null);u=null;if(v=b.values.find(function(ca){return"X-PLAYOUT-LIMIT"==ca.key}))w=v.data,u=parseFloat(w),isNaN(u)&&(u=null);C=z=y=!1;if(A=b.values.find(function(ca){return"CUE"==ca.key}))B=A.data,y=B.includes("ONCE"),z=B.includes("PRE"),C=B.includes("POST");D=!1;(E=b.values.find(function(ca){return"X-TIMELINE-OCCUPIES"==ca.key}))?(F=E.data,D=F.includes("RANGE")):!p&&a.C.
|
|
807
|
+
n=null;if(p=b.values.find(function(ca){return"X-RESUME-OFFSET"==ca.key}))r=p.data,n=parseFloat(r),isNaN(n)&&(n=null);u=null;if(v=b.values.find(function(ca){return"X-PLAYOUT-LIMIT"==ca.key}))w=v.data,u=parseFloat(w),isNaN(u)&&(u=null);C=z=y=!1;if(A=b.values.find(function(ca){return"CUE"==ca.key}))B=A.data,y=B.includes("ONCE"),z=B.includes("PRE"),C=B.includes("POST");D=!1;(E=b.values.find(function(ca){return"X-TIMELINE-OCCUPIES"==ca.key}))?(F=E.data,D=F.includes("RANGE")):!p&&a.C.U()&&(D=!z&&!C);if(d){L=
|
|
808
808
|
d.data;if(!L)return X.return(c);c.push({id:f,startTime:b.startTime,endTime:b.endTime,uri:L,isSkippable:k,skipOffset:k?0:null,canJump:l,resumeOffset:n,playoutLimit:u,once:y,pre:z,post:C,timelineRange:D});X.B(2);break}if(!e){X.B(2);break}J=e.data;if(!J)return X.return(c);ta(X,4);K={type:11};return G(X,Gq(a,J,K),6);case 6:I=X.h;N=zc(I);M=JSON.parse(N);O=t(M.ASSETS);for(Q=O.next();!Q.done;Q=O.next())R=Q.value,R.URI&&c.push({id:f,startTime:b.startTime,endTime:b.endTime,uri:R.URI,isSkippable:k,skipOffset:k?
|
|
809
809
|
0:null,canJump:l,resumeOffset:n,playoutLimit:u,once:y,pre:z,post:C,timelineRange:D});wa(X,2);break;case 4:xa(X);case 2:return X.return(c)}})}
|
|
810
|
-
function Cq(a){for(var b=[],c=t(a.A),d=c.next(),e={};!d.done;e={
|
|
810
|
+
function Cq(a){for(var b=[],c=t(a.A),d=c.next(),e={};!d.done;e={lc:void 0},d=c.next())d=d.value,e.lc={start:d.startTime,end:null},d.pre?(e.lc.start=0,e.lc.end=null):d.post?(e.lc.start=-1,e.lc.end=null):d.timelineRange&&(e.lc.end=d.endTime),b.find(function(f){return function(g){return f.lc.start==g.start&&f.lc.end==g.end}}(e))||b.push(e.lc);a.g(new T("ad-cue-points-changed",(new Map).set("cuepoints",b)))}function zq(a){a.i.configure(a.C.Ih());var b=a.i.Fb();b.uh();b.vh();Ch(a.C.Fb(),b)}
|
|
811
811
|
function Gq(a,b,c){var d,e,f;return P(function(g){if(1==g.g)return d=Dh([b],lh()),e=a.C.Fb().request(7,d,c),G(g,e.promise,2);f=g.h;return g.return(f.data)})};function Hq(a,b,c,d,e){this.h=a;this.j=$d(this.h.skipOffset);this.g=e;this.i=b;this.l=c;this.o=d;this.m=!1}q=Hq.prototype;q.needsSkipUI=function(){return!0};q.getDuration=function(){return this.h.durationInSeconds};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return"number"==typeof this.j?!0:!1};
|
|
812
812
|
q.getTimeUntilSkippable=function(){if("number"!=typeof this.j)return this.getRemainingTime();var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)};q.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};q.skip=function(){this.m=!0;this.g.currentTime+=this.getRemainingTime()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.play()};q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volume=a};q.isMuted=function(){return this.g.muted};
|
|
813
813
|
q.isLinear=function(){return this.o};q.resize=function(){};q.setMuted=function(a){this.g.muted=a};q.getSequenceLength=function(){return this.l?this.l:1};q.getPositionInSequence=function(){return this.i?this.i:1};q.getTitle=function(){return this.h.adTitle};q.getDescription=function(){return""};q.getVastMediaBitrate=function(){return 0};q.getVastMediaHeight=function(){return 0};q.getVastMediaWidth=function(){return 0};q.getAdId=function(){return this.h.adId};q.getCreativeAdId=function(){return this.h.creativeId};
|
|
@@ -849,8 +849,8 @@ q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
|
|
|
849
849
|
q.onAssetUnload=function(){this.h&&this.h.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new lq};q.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a)};
|
|
850
850
|
q.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Iq(a,b,c,function(e){return Xq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new nh,Lq(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
|
|
851
851
|
q.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.I=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.g&&this.g.release();this.g=new Uq(a,b,this.o,function(d){return Xq(c,d)});this.g.configure(this.l)};
|
|
852
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.
|
|
853
|
-
(c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.
|
|
852
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.3";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
853
|
+
(c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.3";this.g.g.replaceAdTagParameters(a)};
|
|
854
854
|
q.getServerSideCuePoints=function(){Bd("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};q.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:mq(a),started:a.h,playedCompletely:a.j,skipped:a.l,errors:a.i}};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
|
|
855
855
|
q.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};q.onHLSInterstitialMetadata=function(a,b,c){this.h||this.initInterstitial(null,a,b);this.h&&Dq(this.h,c)};
|
|
856
856
|
q.onDASHInterstitialMetadata=function(a,b,c){if("urn:mpeg:dash:event:alternativeMPD:2022"==c.schemeIdUri&&(this.h||this.initInterstitial(null,a,b),this.h)){a=this.h;b=t(c.eventNode.children);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("AlternativeMPD"==e.tagName&&(d=e.attributes.uri,e=e.attributes.mode,d)){var f=d;var g=e;break}}f?(b="replace"==g,g="insert"==g,(b||g)&&Fq(a,[{id:null,startTime:c.startTime,endTime:b?c.endTime:null,uri:f,isSkippable:!1,skipOffset:null,canJump:!0,resumeOffset:g?
|
|
@@ -872,13 +872,13 @@ p.code);for(m in p)n[m]=p[m];k.reject(n)}else k.resolve()}};this.g={video:{},pla
|
|
|
872
872
|
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Sa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(nr),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new nh;d.u=!0;rr(d,e)}},function(b){for(var c=t(nr),d=c.next();!d.done;d=c.next())d=d.value,sr="available"==b,d.l.Sa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});sr&&this.l.X(tr);(a=pr)&&
|
|
873
873
|
a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new nh,this.u=!0,rr(this,a)):pr=null}else window.__onGCastApiAvailable!==ur&&(vr=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=ur)};q.Sg=function(a){this.o=a;this.h&&wr(this,{type:"appData",appData:this.o})};
|
|
874
874
|
q.cast=function(){var a=this;return P(function(b){if(!a.m)throw new U(1,8,8E3);if(!sr)throw new U(1,8,8001);if(a.h)throw new U(1,8,8002);a.j=new nh;chrome.cast.requestSession(function(c){return rr(a,c)},function(c){return xr(a,c)});return G(b,a.j,0)})};function yr(a){a.h&&chrome.cast.requestSession(function(b){return rr(a,b)},function(b){return xr(a,b)})}q.fd=function(){if(this.h){or(this);if(pr){qr(this);try{pr.stop(function(){},function(){})}catch(a){}pr=null}mr(this)}};
|
|
875
|
-
q.get=function(a,b){var c=this;if("video"==a){if(dr.includes(b))return function(){return c.
|
|
875
|
+
q.get=function(a,b){var c=this;if("video"==a){if(dr.includes(b))return function(){return c.ei.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))}}else if("player"==a){if(gr[b]&&!this.get("player","isLive")())return function(){};if(jr.includes(b))return function(){return c.ei.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))};if(kr.includes(b))return function(){return c.nk.apply(c,[a,b].concat(x(Ja.apply(0,arguments))))};if(er[b]||fr[b])return function(){return c.g[a][b]}}return this.g[a][b]};
|
|
876
876
|
q.set=function(a,b,c){this.g[a][b]=c;wr(this,{type:"set",targetName:a,property:b,value:c})};function rr(a,b){var c=a.O();pr=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);mr(a);wr(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function xr(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new U(2,8,c,b))}
|
|
877
|
-
q.
|
|
877
|
+
q.ei=function(a,b){wr(this,{type:"call",targetName:a,methodName:b,args:Ja.apply(2,arguments)})};q.nk=function(a,b){var c=Ja.apply(2,arguments),d=new nh,e=this.J.toString();this.J++;this.i[e]=d;try{wr(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function qr(a){var b=pr;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
|
|
878
878
|
function mr(a){var b=pr?"connected"==pr.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};or(a)}a.h=b;a.K=b?pr.receiver.friendlyName:"";a.l.Sa()}function or(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new U(1,7,7E3))}}function wr(a,b){b=Yq(b);var c=pr;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},cb)}catch(d){throw b=new U(2,8,8005,d),c=new T("error",(new Map).set("detail",b)),a.A("player",c),a.fd(),b;}}var tr=.02,sr=!1,pr=null,vr=null,nr=new Set;
|
|
879
879
|
function ur(a){vr?window.__onGCastApiAvailable=vr:delete window.__onGCastApiAvailable;vr=null;if(a)for(var b=t(nr),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function zr(a,b,c,d){d=void 0===d?!1:d;hb.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.u=this.l=null;this.G=c;this.C=d;this.A=new Map;this.g=new lr(c,function(){return Ar(e)},function(){return Br(e)},function(f,g){return Cr(e,f,g)},function(){return Dr(e)},function(){return Er(e)},d);Fr(this)}oa(zr,hb);q=zr.prototype;
|
|
880
880
|
q.destroy=function(a){a&&this.g.fd();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;hb.prototype.release.call(this);return Promise.all(a)};q.uc=function(){return this.l};q.hd=function(){return this.u};q.Hf=function(){return this.g.m&&sr};q.Ra=function(){return this.g.Ra()};q.Ze=function(){return this.g.Ze()};
|
|
881
|
-
q.cast=function(){var a=this;return P(function(b){return 1==b.g?G(b,a.g.cast(),2):a.h?G(b,a.h.
|
|
881
|
+
q.cast=function(){var a=this;return P(function(b){return 1==b.g?G(b,a.g.cast(),2):a.h?G(b,a.h.mc(),0):b.return()})};q.Sg=function(a){this.g.Sg(a)};q.Bi=function(){yr(this.g)};q.fd=function(){this.g.fd()};
|
|
882
882
|
q.sh=function(a,b){b=void 0===b?!1:b;var c=this;return P(function(d){if(1==d.g){if(a==c.G&&b==c.C)return d.return();c.G=a;c.C=b;c.g.fd();return G(d,c.g.destroy(),2)}c.g=null;c.g=new lr(a,function(){return Ar(c)},function(){return Br(c)},function(e,f){return Cr(c,e,f)},function(){return Dr(c)},function(){return Er(c)},b);c.g.init();H(d)})};
|
|
883
883
|
function Fr(a){a.g.init();a.m=new sd;for(var b=t(ar),c=b.next();!c.done;c=b.next())a.m.s(a.i,c.value,function(f){a.g.Ra()||(f=Va(f),a.j.dispatchEvent(f))});for(var d in Wa)a.m.s(a.h,Wa[d],function(f){a.g.Ra()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b={Pd:b.Pd},b.Pd=e,Object.defineProperty(a.l,b.Pd,{configurable:!1,enumerable:!0,get:function(f){return function(){return Gr(a,f.Pd)}}(b),set:function(f){return function(g){var h=f.Pd;a.g.Ra()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.u={};Hr(a,
|
|
884
884
|
function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return Ir(a,f)}})});Jr(a);a.j=new hb;a.j.ee=a.l;a.o=new hb;a.o.ee=a.u}function Jr(a){var b=new Map;Hr(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
|
|
@@ -890,23 +890,23 @@ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(cr),m=l.ne
|
|
|
890
890
|
function Gr(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Ra()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ra()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
|
|
891
891
|
function Ir(a,b){a.A.has(b)&&(b=a.A.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Fb()};if("getDrmEngine"==b)return function(){return a.h.C};if("getAdManager"==b)return function(){return a.h.xe()};
|
|
892
892
|
if("setVideoContainer"==b)return function(c){return a.h.Zg(c)};if(a.g.Ra()){if("getManifest"==b||"drmInfo"==b)return function(){Za(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Za(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ra()&&0==Object.keys(a.g.g.video).length&&(er[b]||fr[b])||!a.g.Ra()?a.h[b].bind(a.h):a.g.get("player",b)}
|
|
893
|
-
function Cr(a,b,c){a.g.Ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}S("shaka.cast.CastProxy",zr);zr.prototype.changeReceiverId=zr.prototype.sh;zr.prototype.forceDisconnect=zr.prototype.fd;zr.prototype.suggestDisconnect=zr.prototype.
|
|
894
|
-
zr.prototype.getVideo=zr.prototype.uc;zr.prototype.destroy=zr.prototype.destroy;function Kr(a,b,c,d){hb.call(this);var e=this;this.g=a;this.h=b;this.j=new sd;this.J={video:a,player:b};this.H=c||function(){};this.K=d||function(f){return f};this.i=null;this.I=!1;this.o=!0;this.m=0;this.C=!1;this.A=!0;this.u=this.l=null;this.G=new Wb(function(){Lr(e)});Mr(this)}oa(Kr,hb);q=Kr.prototype;q.isConnected=function(){return this.I};q.
|
|
895
|
-
q.
|
|
893
|
+
function Cr(a,b,c){a.g.Ra()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}S("shaka.cast.CastProxy",zr);zr.prototype.changeReceiverId=zr.prototype.sh;zr.prototype.forceDisconnect=zr.prototype.fd;zr.prototype.suggestDisconnect=zr.prototype.Bi;zr.prototype.setAppData=zr.prototype.Sg;zr.prototype.cast=zr.prototype.cast;zr.prototype.receiverName=zr.prototype.Ze;zr.prototype.isCasting=zr.prototype.Ra;zr.prototype.canCast=zr.prototype.Hf;zr.prototype.getPlayer=zr.prototype.hd;
|
|
894
|
+
zr.prototype.getVideo=zr.prototype.uc;zr.prototype.destroy=zr.prototype.destroy;function Kr(a,b,c,d){hb.call(this);var e=this;this.g=a;this.h=b;this.j=new sd;this.J={video:a,player:b};this.H=c||function(){};this.K=d||function(f){return f};this.i=null;this.I=!1;this.o=!0;this.m=0;this.C=!1;this.A=!0;this.u=this.l=null;this.G=new Wb(function(){Lr(e)});Mr(this)}oa(Kr,hb);q=Kr.prototype;q.isConnected=function(){return this.I};q.Nj=function(){return this.o};q.Dk=function(a){this.i=a};q.Vi=function(){this.i=null};
|
|
895
|
+
q.Ek=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Ck=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Bk=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
|
|
896
896
|
q.destroy=function(){var a=this,b,c;return P(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.G&&(a.G.stop(),a.G=null),a.g=null,a.J=null,a.H=null,a.I=!1,a.o=!0,a.l=null,a.u=null,hb.prototype.release.call(a),G(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();H(d)})};
|
|
897
897
|
function Mr(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Nr(a)};b.onSenderDisconnected=function(){return Nr(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Or(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Or(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.u=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.u.onMessage=function(e){return Pr(a,
|
|
898
898
|
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Qr(a,e)};b.start();b=t(ar);for(var c=b.next();!c.done;c=b.next())a.j.s(a.g,c.value,function(e){return Rr(a,"video",e)});for(var d in Wa)a.j.s(a.h,Wa[d],function(e){return Rr(a,"player",e)});a.j.s(a.g,"loadeddata",function(){a.C=!0});a.j.s(a.h,"loading",function(){a.o=!1;Sr(a)});a.j.s(a.g,"playing",function(){a.o=!1;Sr(a)});a.j.s(a.g,"pause",function(){Sr(a)});a.j.s(a.h,"unloading",function(){a.o=!0;Sr(a)});
|
|
899
899
|
a.j.s(a.g,"ended",function(){(new Wb(function(){a.g&&a.g.ended&&(a.o=!0,Sr(a))})).X(Tr)})}function Nr(a){a.m=0;a.A=!0;a.I=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Sr(a)}function Sr(a){var b;P(function(c){if(1==c.g)return G(c,Promise.resolve(),2);if(!a.h)return c.return();b=new T("caststatuschanged");a.dispatchEvent(b);Ur(a)||Vr(a);H(c)})}
|
|
900
900
|
function Wr(a,b,c){var d,e,f,g,h,k,l,m,n,p;P(function(r){switch(r.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.H(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,ta(r,5),G(r,a.h.load(b.manifest,b.startTime),7)):G(r,Promise.resolve(),3);case 7:wa(r,3);break;case 5:return g=xa(r),h=(new Map).set("detail",g),k=new T("error",h),a.h&&a.h.dispatchEvent(k),r.return();case 3:if(!a.h)return r.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],a.h[n](p);
|
|
901
901
|
a.g.autoplay=f;b.manifest&&(a.g.play(),Vr(a));H(r)}})}function Rr(a,b,c){a.h&&(Lr(a),Or(a,{type:"event",targetName:b,event:c},a.l))}
|
|
902
|
-
function Lr(a){a.G.X(Xr);for(var b={video:{},player:{}},c=t(br),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.
|
|
903
|
-
1);Ur(a)}function Ur(a){return a.A&&(a.g.duration||a.h.
|
|
902
|
+
function Lr(a){a.G.X(Xr);for(var b={video:{},player:{}},c=t(br),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in gr)0==a.m%gr[e]&&(b.player[e]=a.h[e]());for(var f in er)0==a.m%er[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Or(a,{type:"update",update:b},a.l);for(var g in fr)0==a.m%fr[g]&&(b={player:{}},b.player[g]=a.h[g](),Or(a,{type:"update",update:b},a.l));a.C&&(a.m+=
|
|
903
|
+
1);Ur(a)}function Ur(a){return a.A&&(a.g.duration||a.h.U())?(Yr(a),a.A=!1,!0):!1}function Yr(a,b){var c={contentId:a.h.gd(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Vr(a,void 0===b?0:b,c)}
|
|
904
904
|
function Qr(a,b){var c=Zq(b.data);switch(c.type){case "init":a.m=0;a.C=!1;a.A=!0;Wr(a,c.initState,c.appData);Lr(a);break;case "appData":a.H(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
|
|
905
905
|
"player"==d&&"load"==e&&(a.m=0,a.C=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.A=!0}));c.then(function(){return Zr(a,g,f,null)},function(h){return Zr(a,g,f,h)})}}
|
|
906
|
-
function Pr(a,b){var c=Zq(b.data);switch(c.type){case "PLAY":a.g.play();Vr(a);break;case "PAUSE":a.g.pause();Vr(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Vr(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Vr(a));break;case "STOP":a.h.
|
|
906
|
+
function Pr(a,b){var c=Zq(b.data);switch(c.type){case "PLAY":a.g.play();Vr(a);break;case "PAUSE":a.g.pause();Vr(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Vr(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Vr(a));break;case "STOP":a.h.mc().then(function(){a.h&&Vr(a)});break;case "GET_STATUS":Yr(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
|
|
907
907
|
null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Vr(a);break;case "LOAD":a.m=0;a.C=!1;a.A=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.H(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Yr(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Or(a,{requestId:Number(c.requestId),type:h},a.u)});break;default:Or(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u)}}
|
|
908
908
|
function Zr(a,b,c,d){a.h&&Or(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Or(a,b,c,d){a.I&&(a=Yq(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Vr(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?$r:a.h.Md()?as:a.g.paused?bs:cs,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Or(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
|
|
909
|
-
S("shaka.cast.CastReceiver",Kr);Kr.prototype.destroy=Kr.prototype.destroy;Kr.prototype.setContentArtist=Kr.prototype.
|
|
909
|
+
S("shaka.cast.CastReceiver",Kr);Kr.prototype.destroy=Kr.prototype.destroy;Kr.prototype.setContentArtist=Kr.prototype.Bk;Kr.prototype.setContentImage=Kr.prototype.Ck;Kr.prototype.setContentTitle=Kr.prototype.Ek;Kr.prototype.clearContentMetadata=Kr.prototype.Vi;Kr.prototype.setContentMetadata=Kr.prototype.Dk;Kr.prototype.isIdle=Kr.prototype.Nj;Kr.prototype.isConnected=Kr.prototype.isConnected;var Xr=.5,Tr=5,$r="IDLE",cs="PLAYING",as="BUFFERING",bs="PAUSED";function ds(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=es(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,u=-1,v=0;v<p.length;v++)if(null!=p[v]&&""!==p[v].g.trim()){r=v;break}for(v=p.length-1;0<=v;v--)if(null!=p[v]&&""!==p[v].g.trim()){u=v;break}if(-1===
|
|
910
910
|
r||-1===u)p=fs(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(v=p[r]){var w=v.l,y=v.i,z=v.j,C=v.h;if(w!=h||y!=k||z!=l||C!=m)n.payload&&a.nestedCues.push(n),n=es(d,e,w,y,z,C),h=w,k=y,l=z,m=C;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=fs(d,e),a.nestedCues.push(n));n=es(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}function es(a,b,c,d,e,f){a=new Re(a,b,"");c&&a.textDecoration.push(nf);d&&(a.fontStyle=mf);a.color=e;a.backgroundColor=f;return a}
|
|
911
911
|
function fs(a,b){a=new Re(a,b,"");a.lineBreak=!0;return a}function gs(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function hs(a,b){this.i=[];this.g=1;this.h=0;this.G=a;this.C=b;this.j=this.m=!1;this.l="white";this.o="black";this.u=this.A=null;is(this)}function js(a,b,c){var d="CC"+((a.G<<1|a.C)+1),e=new Re(b,c,"");e.lineInterpretation=1;var f=ks.get(a.g);f&&(e.line=f);null!=a.u&&null!=a.A&&(e.position=10+Math.min(70,10*a.u)+2.5*a.A);(b=ds(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=ks.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function is(a){ls(a,0,15);a.g=1}
|
|
912
912
|
function ms(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case 0:d=ns.has(c)?ns.get(c):String.fromCharCode(c);break;case 1:d=os.get(c);break;case 2:a.i[a.g].pop();d=ps.get(c);break;case 3:a.i[a.g].pop(),d=qs.get(c)}d&&a.i[a.g].push(new gs(d,a.m,a.j,a.o,a.l))}}function rs(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function ls(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
|
|
@@ -934,83 +934,85 @@ function Us(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}Qs.prototype.getStreams=
|
|
|
934
934
|
Ws.prototype.init=function(a){function b(f){f=f.name;f in Ys&&(c.g=Ys[f])}var c=this,d=[],e=[];(new Uh).box("moov",Zh).box("mvex",Zh).W("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.T();g=g.T();c.h=f;c.i=g}).box("trak",Zh).W("tkhd",function(f){var g=f.reader;f=f.version;1==f?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));var h=g.T();1==f?g.skip(8):g.skip(4);g.skip(4);g.skip(8);g.skip(2);g.skip(2);g.skip(2);g.skip(2);g.skip(36);g.ya();g.ya();g.ya();g.ya();d.push(h)}).box("mdia",Zh).W("mdhd",
|
|
935
935
|
function(f){f=zj(f.reader,f.version);e.push(f.timescale)}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("avc1",b).box("avc3",b).box("dvav",b).box("dva1",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("vvc1",b).box("vvi1",b).box("dvc1",b).box("dvi1",b).box("encv",bi).box("sinf",Zh).box("frma",function(f){f=Cj(f.reader).codec;f in Ys&&(c.g=Ys[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new U(2,2,2010);this.g==Xs&&Za("Unable to determine bitstream format for CEA parsing!");
|
|
936
936
|
d.forEach(function(f,g){c.j.set(f,e[g])})};
|
|
937
|
-
Ws.prototype.parse=function(a){var b=this;if(this.g==Xs)return[];var c=[],d=0,e=[];(new Uh).box("moof",function(f){d=f.start;e=[];Zh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Ed:b.h,ue:b.i
|
|
938
|
-
1];f=yj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Oa(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Za("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);Zs(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Ed,l.ue,g,l
|
|
939
|
-
function Zs(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.
|
|
937
|
+
Ws.prototype.parse=function(a){var b=this;if(this.g==Xs)return[];var c=[],d=0,e=[];(new Uh).box("moof",function(f){d=f.start;e=[];Zh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Ed:b.h,ue:b.i,$h:[],timescale:9E4});Zh(f)}).W("trun",function(f){var g=e[e.length-1];f=Aj(f.reader,f.version,f.flags);g.$h.push(f)}).W("tfhd",function(f){var g=e[e.length-1];f=xj(f.reader,f.flags);g.Ed=f.Ed||b.h;g.ue=f.ue||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).W("tfdt",function(f){var g=e[e.length-
|
|
938
|
+
1];f=yj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Oa(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Za("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);Zs(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Ed,l.ue,g,l.$h,c)}}).parse(a,!1);return c};
|
|
939
|
+
function Zs(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.ii});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Xi);b.Ea();){g=b.T();var p=b.Z(),r=null;r=!1;h=1;switch(a.g){case $s:r=p&31;r=6==r;break;case at:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;case bt:h=2;b.skip(1);r=p>>1&63;r=23==r||24==r;break;default:return}if(r)for(p=0,l<n.length&&(p=n[l].bf||0),p=(c+p)/d,h=t(Vs(b.Pb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-
|
|
940
940
|
h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].Og||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}S("shaka.cea.Mp4CeaParser",Ws);var Xs=0,$s=1,at=2,bt=3,Ys={avc1:$s,avc3:$s,dvav:$s,dva1:$s,hev1:at,hvc1:at,dvh1:at,dvhe:at,vvc1:bt,vvi1:bt,dvc1:bt,dvi1:bt};Jd["video/mp4"]=function(){return new Ws};function ct(){this.g=null}ct.prototype.init=function(){};ct.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Uj;var b=[];a=Ib(a);if(!ck(a))return b;a=this.g.parse(a);var c=a.Fd(),d=a.De();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Vs(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
|
|
941
941
|
S("shaka.cea.TsCeaParser",ct);Jd["video/mp2t"]=function(){return new ct};function dt(a,b,c){var d=et(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new U(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.sd});if(1<f.length)throw new U(2,4,4050);f.length&&(g=ft(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.sd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.sd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
|
|
942
|
-
l.sd});f.length&&(a=gt(e,k,f,c,h),0==a.length&&(a=[Rc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Rc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{xh:h,
|
|
943
|
-
function ht(a,b,c,d){var e=dt(a,c,d);if(b.
|
|
942
|
+
l.sd});f.length&&(a=gt(e,k,f,c,h),0==a.length&&(a=[Rc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Rc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{xh:h,Zl:e,drmInfos:a,Ef:g,Dh:!0}}
|
|
943
|
+
function ht(a,b,c,d){var e=dt(a,c,d);if(b.Dh){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Dh=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new U(2,4,4008);return e.xh||b.xh}
|
|
944
944
|
function it(a){var b=0,c=Nb(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=Ib(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function jt(a){a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.children){b=t(b.children);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"LA_URL"==c.tagName)return pe(c)}return""}
|
|
945
945
|
function kt(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=pe(b)))return b;a=te(a.node,"urn:microsoft:playready","pro");if(!a||!pe(a))return"";a=pe(a);a=Kc(a);a=it(a).filter(function(c){return c.type===lt})[0];if(!a)return"";a=Ac(a.value,!0);return(a=de(a,"WRMHEADER"))?jt(a):""}
|
|
946
946
|
function gt(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.sd];if(h){var k;if((k=te(g.node,"urn:microsoft:playready","pro"))&&pe(k)){k=pe(k);k=Kc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:fi(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.sd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2,
|
|
947
947
|
172,227,60,30,82,226,251,75]),p=new Uint8Array([]);l=[{initData:fi(p,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=Rc(h,b,g.init||a||k||l);if(h=mt.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function et(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=nt(c.value))&&b.push(c);return b}
|
|
948
948
|
function nt(a){var b=a.attributes.schemeIdUri,c=we(a,"urn:mpeg:cenc:2013","default_KID"),d=ue(a,"urn:mpeg:cenc:2013","pssh").map(qe),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new U(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:Kc(g),keyId:null}})}catch(g){throw new U(2,4,4007);}return{node:a,sd:b,keyId:c,init:0<f.length?f:null,encryptionScheme:e}}
|
|
949
949
|
function ft(a){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new U(2,4,4042);var b=te(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new U(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.attributes.schemeIdUri)throw new U(2,4,4051);b=te(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new U(2,4,4051);a=b.attributes.IV;b=Gc(b.attributes.keyUriTemplate);
|
|
950
|
-
if(!a||!b)throw new U(2,4,4051);a=Lc(a.substr(2));if(16!=a.byteLength)throw new U(2,4,4048);return{
|
|
950
|
+
if(!a||!b)throw new U(2,4,4051);a=Lc(a.substr(2));if(16!=a.byteLength)throw new U(2,4,4048);return{Tj:b,iv:a}}
|
|
951
951
|
var lt=1,mt=(new Map).set("com.widevine.alpha",function(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=pe(b))?b:(a=te(a.node,"urn:microsoft","laurl"))?Gc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",kt).set("com.microsoft.playready.recommendation",kt).set("com.microsoft.playready.software",kt).set("com.microsoft.playready.hardware",kt).set("org.w3.clearkey",function(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=pe(b))?b:(a=te(a.node,"http://dashif.org/guidelines/clearKey",
|
|
952
952
|
"Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=pe(a))?a:""});function ot(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Za("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
|
|
953
953
|
break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
|
|
954
|
-
function pt(a,b){var c=qt(a,b,"timescale"),d=1;c&&(d=Ce(c)||1);c=qt(a,b,"duration");(c=Ce(c||""))&&(c/=d);var e=qt(a,b,"startNumber"),f=Number(qt(a,b,"presentationTimeOffset"))||0,g=De(e||"");if(null==e||null==g)g=1;e=null;if(b=rt(a,b,"SegmentTimeline")){b=oe(b,"S");e=d;a=a.
|
|
955
|
-
p)break;else if(r>=p)break;v=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;v=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=v;++p)l=r+u,k.push({start:r/e,end:l/e,hh:r,Vb:n,
|
|
954
|
+
function pt(a,b){var c=qt(a,b,"timescale"),d=1;c&&(d=Ce(c)||1);c=qt(a,b,"duration");(c=Ce(c||""))&&(c/=d);var e=qt(a,b,"startNumber"),f=Number(qt(a,b,"presentationTimeOffset"))||0,g=De(e||"");if(null==e||null==g)g=1;e=null;if(b=rt(a,b,"SegmentTimeline")){b=oe(b,"S");e=d;a=a.ua.duration||Infinity;for(var h=g,k=[],l=-f,m=0;m<b.length;++m){var n=b[m],p=b[m+1],r=ve(n,"t",De),u=ve(n,"d",De),v=ve(n,"r",Be);n=ve(n,"k",Be)||0;null!=r&&(r-=f);if(u){r=null!=r?r:l;v=v||0;if(0>v)if(p){p=ve(p,"t",De);if(null==
|
|
955
|
+
p)break;else if(r>=p)break;v=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else if(r/e>=a)break;v=Math.ceil((a*e-r)/u)-1}0<k.length&&r!=l&&(k[k.length-1].end=r/e);for(p=0;p<=v;++p)l=r+u,k.push({start:r/e,end:l/e,hh:r,Vb:n,zk:k.length+h}),r=l}}e=k}return{timescale:d,gb:c,Zd:g,jc:f/d||0,gh:f,timeline:e}}function st(a,b){return[b(a.M),b(a.va),b(a.Aa)].filter(Yf)}function qt(a,b,c){b=st(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
|
|
956
956
|
function rt(a,b,c){b=st(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=se(d.value,c));d=b.next());return a}
|
|
957
957
|
function tt(a,b,c,d,e,f){for(var g=we(a,"http://www.w3.org/1999/xlink","href"),h=we(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=he("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return ph(new U(2,4,4028));if("onLoad"!=h)return ph(new U(2,4,4027));var p=Qc([d],[g]);return e.request(0,Dh(p,b)).Ua(function(r){r=ce(r.data,a.tagName);if(!r)return ph(new U(2,4,4001,g));for(a.children=
|
|
958
|
-
[];r.children.length;){var u=r.children.shift();
|
|
958
|
+
[];r.children.length;){var u=r.children.shift();a.children.push(u)}u=t(Object.keys(r.attributes));for(var v=u.next();!v.done;v=u.next())v=v.value,a.attributes[v]=r.attributes[v];return ut(a,b,c,p[0],e,f+1)})}
|
|
959
959
|
function ut(a,b,c,d,e,f){f=void 0===f?0:f;if(we(a,"http://www.w3.org/1999/xlink","href")){var g=tt(a,b,c,d,e,f);c&&(g=g.Ua(void 0,function(){return ut(a,b,c,d,e,f)}));return g}g=[];for(var h=t(ne(a)),k=h.next(),l={};!k.done;l={zd:void 0},k=h.next())l.zd=k.value,"urn:mpeg:dash:resolve-to-zero:2013"==we(l.zd,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.zd}}(l)):"SegmentTimeline"!=l.zd.tagName&&g.push(ut(l.zd,b,c,d,e,f));return th(g).Ua(function(){return a})}
|
|
960
960
|
;function vt(a,b,c,d,e,f,g){var h,k=(new Uh).W("sidx",function(l){h=wt(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new U(2,3,3004);}
|
|
961
961
|
function wt(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new U(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.rd(),m=g.reader.rd();g.reader.skip(2);var n=g.reader.ya();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.T(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new gj(l/k+c,(l+u)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=u;a+=p}g.parser.stop();return h};function xt(a){this.h=Nb(a);this.g=new Rh(this.h,0)}xt.prototype.Ea=function(){return this.g.Ea()};
|
|
962
962
|
function yt(a){var b=zt(a);if(7<b.length)throw new U(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=zt(a);a:{d=t(At);for(var e=d.next();!e.done;e=d.next())if(Gb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Oa();else{if(8==b.length&&b[1]&224)throw new U(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Oa();d=Nb(a.h,a.g.Oa(),b);a.g.skip(b);return new Bt(c,
|
|
963
963
|
d)}function zt(a){var b=a.g.Oa(),c=a.g.Z();if(0==c)throw new U(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ib(a.h,b,c)}var At=[[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 Bt(a,b){this.id=a;this.g=b}
|
|
964
|
-
function Ct(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Dt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new xt(a.g);for(var n=null,p=null;a.Ea();){var r=yt(a);if(187==r.id){var u=Et(r);u&&(r=c*u.
|
|
965
|
-
function Et(a){var b=new xt(a.g);a=yt(b);if(179!=a.id)throw new U(2,3,3013);a=Ct(a);b=yt(b);if(183!=b.id)throw new U(2,3,3012);b=new xt(b.g);for(var c=0;b.Ea();){var d=yt(b);if(241==d.id){c=Ct(d);break}}return{
|
|
966
|
-
function Ht(a,b,c){var d=Number(qt(a,It,"presentationTimeOffset"))||0,e=qt(a,It,"timescale"),f=1;e&&(f=Ce(e)||1);var g=d/f||0,h=Ft(a,It,c);Jt(a,h);var k=be(a);return{Gc:function(){var l=rt(k,It,"RepresentationIndex");var m=k.M.
|
|
967
|
-
function Lt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F;return P(function(L){if(1==L.g)return h=a.presentationTimeline,k=!a.Sb||!a.
|
|
964
|
+
function Ct(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Dt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new xt(a.g);for(var n=null,p=null;a.Ea();){var r=yt(a);if(187==r.id){var u=Et(r);u&&(r=c*u.Nk,u=b+u.kk,null!=n&&m.push(new gj(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u)}}null!=n&&m.push(new gj(n+g,d+g,l,p,null,f,g,h,k));return m}
|
|
965
|
+
function Et(a){var b=new xt(a.g);a=yt(b);if(179!=a.id)throw new U(2,3,3013);a=Ct(a);b=yt(b);if(183!=b.id)throw new U(2,3,3012);b=new xt(b.g);for(var c=0;b.Ea();){var d=yt(b);if(241==d.id){c=Ct(d);break}}return{Nk:a,kk:c}};function Ft(a,b,c){b=rt(a,b,"Initialization");if(!b)return null;var d=a.M.cb(),e=b.attributes.sourceURL;e&&(d=Qc(d,[Gc(e)],a.Cb()));e=0;var f=null;if(b=ve(b,"range",Ae))e=b.start,f=b.end;c=new ej(function(){return d},e,f,Gt(a),null,null,c);c.codecs=a.M.codecs;c.mimeType=a.M.mimeType;return c}
|
|
966
|
+
function Ht(a,b,c){var d=Number(qt(a,It,"presentationTimeOffset"))||0,e=qt(a,It,"timescale"),f=1;e&&(f=Ce(e)||1);var g=d/f||0,h=Ft(a,It,c);Jt(a,h);var k=be(a);return{Gc:function(){var l=rt(k,It,"RepresentationIndex");var m=k.M.cb();l&&(l=Gc(l.attributes.sourceURL))&&(m=Qc(m,[l],k.Cb()));l=Kt(k);return Lt(k,b,h,m,l.start,l.end,g)}}}
|
|
967
|
+
function Lt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F;return P(function(L){if(1==L.g)return h=a.presentationTimeline,k=!a.Sb||!a.ua.wg,l=a.ua.start,m=a.ua.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.$a,c.La,!0):null],p=null,G(L,Promise.all(u),2);v=L.h;w=v[0];y=v[1]||null;z=null;C=l-g;A=l;B=m?l+m:Infinity;if("mp4"==n)var J=vt(w,e,d,c,C,A,B);else{J=w;var K=new xt(y);if(440786851!=yt(K).id)throw new U(2,3,3008);var I=yt(K);if(408125543!=I.id)throw new U(2,
|
|
968
968
|
3,3009);K=I.g.byteOffset;I=new xt(I.g);for(var N=null;I.Ea();){var M=yt(I);if(357149030==M.id){N=M;break}}if(!N)throw new U(2,3,3010);N=new xt(N.g);M=1E6;for(I=null;N.Ea();){var O=yt(N);if(2807729==O.id)M=Ct(O);else if(17545==O.id)if(4==O.g.byteLength)I=O.g.getFloat32(0);else if(8==O.g.byteLength)I=O.g.getFloat64(0);else throw new U(2,3,3003);}if(null==I)throw new U(2,3,3011);N=M/1E9;I*=N;J=yt(new xt(J));if(475249515!=J.id)throw new U(2,3,3007);J=Dt(J,K,N,I,d,c,C,A,B)}z=J;D=t(z);for(E=D.next();!E.done;E=
|
|
969
969
|
D.next())F=E.value,F.codecs=a.M.codecs,F.mimeType=a.M.mimeType,F.bandwidth=a.bandwidth;h.Sd(z);r=new ql(z);k&&r.ed(A,B,!0);return L.return(r)})}function It(a){return a.ud}function Kt(a){var b=rt(a,It,"RepresentationIndex");a=qt(a,It,"indexRange");a=Ae(a||"");b&&(a=ve(b,"range",Ae,a));return a}function Jt(a,b){Mt(a,b);if(!Kt(a))throw new U(2,4,4002);}
|
|
970
970
|
function Mt(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Wc&&"mp4"!=c&&"webm"!=c)throw new U(2,4,4006);if("webm"==c&&!b)throw new U(2,4,4005);}
|
|
971
|
-
function Gt(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Te,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.
|
|
972
|
-
f.ed(a.
|
|
973
|
-
function Qt(a,b,c,d,e,f,g,h,k,l){var m=d.nd.length;d.timeline&&d.timeline.length!=d.nd.length&&(m=Math.min(d.timeline.length,d.nd.length));for(var n=a-d.
|
|
974
|
-
g;v.bandwidth=k;r.push(v)}return r}function Rt(a){return[a.M.
|
|
975
|
-
c[d])&&(p=d.segmentIndex);var r=a.
|
|
976
|
-
function Vt(a){var b=pt(a,Tt),c=qt(a,Tt,"media"),d=qt(a,Tt,"index"),e=qt(a,Tt,"k"),f=0;e&&(f=parseInt(e,10));return{
|
|
977
|
-
function Xt(a,b,c,d,e,f,g,h){function k(N){var M=(N-w)*v,O=M+b.
|
|
971
|
+
function Gt(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Te,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.va.label||null,roles:a.roles||null,language:a.va.language||null}};function Nt(a,b,c){var d=Ft(a,Ot,c),e=Pt(a);if(!e.gb&&!e.timeline&&1<e.nd.length)throw new U(2,4,4002);if(!e.gb&&!a.ua.duration&&!e.timeline&&1==e.nd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.Aa.id&&a.M.id&&(g=b[a.Aa.id+","+a.M.id])&&(f=g.segmentIndex);var h=Qt(a.ua.start,a.ua.duration,a.M.cb,e,d,c,a.M.mimeType,a.M.codecs,a.bandwidth,a.Cb);b=!f;f?f.Rd(h,a.presentationTimeline.Gb()):f=new ql(h);a.presentationTimeline.Sd(h);a.Sb&&a.ua.wg||
|
|
972
|
+
f.ed(a.ua.start,a.ua.duration?a.ua.start+a.ua.duration:Infinity,b);g&&(g.segmentIndex=f);return{Gc:function(){f&&0!=f.getNumReferences()||f.Pe(h);return Promise.resolve(f)}}}function Ot(a){return a.kc}function Pt(a){var b=Rt(a);a=pt(a,Ot);var c=a.Zd;0==c&&(c=1);var d=0;a.gb?d=a.gb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{gb:a.gb,startTime:d,Zd:c,jc:a.jc,timeline:a.timeline,nd:b}}
|
|
973
|
+
function Qt(a,b,c,d,e,f,g,h,k,l){var m=d.nd.length;d.timeline&&d.timeline.length!=d.nd.length&&(m=Math.min(d.timeline.length,d.nd.length));for(var n=a-d.jc,p=b?a+b:Infinity,r=[],u=d.startTime,v={},w=0;w<m;v={mf:void 0,cf:void 0},w++){v.cf=d.nd[w];var y=u;u=void 0;u=null!=d.gb?y+d.gb:d.timeline?d.timeline[w].end:y+b;v.mf=null;v=new gj(a+y,a+u,function(z){return function(){null==z.mf&&(z.mf=Qc(c(),[z.cf.$j],l()));return z.mf}}(v),v.cf.start,v.cf.end,e,n,a,p,[],"",null,null,hj,f);v.codecs=h;v.mimeType=
|
|
974
|
+
g;v.bandwidth=k;r.push(v)}return r}function Rt(a){return[a.M.kc,a.va.kc,a.Aa.kc].filter(Yf).map(function(b){return oe(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.sg&&(a.sg=!0);var c=Gc(b.attributes.media);b=ve(b,"mediaRange",Ae,{start:0,end:null});return{$j:c,start:b.start,end:b.end}})};function St(a,b,c,d,e,f,g,h,k){k||a.M.Ge||(a.M.Ge=qt(a,Tt,"initialization"));var l=a.M.Ge?Ut(a,g):null,m=Vt(a);Wt(m);var n=be(a);if(m.Ld)return Mt(a,l),{Gc:function(){var w=ot(m.Ld,n.M.id,null,null,n.bandwidth||null,null);w=Qc(n.M.cb(),[w]);return Lt(n,b,l,w,0,null,m.jc)}};if(m.gb)return d||"image"===a.va.contentType||(c=a.ua.start,d=a.Aa.id,k=a.ua.duration,d=(d=null!=d&&f[d]||k)?c+d:Infinity,a.presentationTimeline.Dg(m.gb),a.presentationTimeline.Yh(c,d)),{Gc:function(){return Xt(n,m,e,l,f,g,h,a.M.df)}};
|
|
975
|
+
var p=null;d=d=null;a.Aa.id&&a.M.id&&(d=a.Aa.id+","+a.M.id,d=c[d])&&(p=d.segmentIndex);var r=a.ua.start,u=a.ua.duration?r+a.ua.duration:Infinity,v=!(a.Sb&&a.ua.wg);p?(c=p,Yt(c,m,r,u,v,l),c.Ya(a.presentationTimeline.Gb())):p=new Zt(m,a.M.id,a.bandwidth,a.M.cb,a.Cb,r,u,l,v,g,a.M.df);m.timeline&&"image"!==a.va.contentType&&a.presentationTimeline.Zh(m.timeline,r);d&&a.Sb&&(d.segmentIndex=p);return{Gc:function(){p instanceof Zt&&0==p.getNumReferences()&&Yt(p,m,r,u,v,l);return Promise.resolve(p)}}}
|
|
976
|
+
function Tt(a){return a.zc}function Vt(a){var b=pt(a,Tt),c=qt(a,Tt,"media"),d=qt(a,Tt,"index"),e=qt(a,Tt,"k"),f=0;e&&(f=parseInt(e,10));return{gb:b.gb,timescale:b.timescale,Zd:b.Zd,jc:b.jc,gh:b.gh,timeline:b.timeline,wc:c&&Gc(c),Ld:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,bk:f}}function Wt(a){var b=a.Ld?1:0;b+=a.timeline?1:0;b+=a.gb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Ld&&(a.timeline=null),a.gb=null);if(!a.Ld&&!a.wc)throw new U(2,4,4002);}
|
|
977
|
+
function Xt(a,b,c,d,e,f,g,h){function k(N){var M=(N-w)*v,O=M+b.jc,Q=M+p;M=Q+v;var R=Math.min(M,m()),X=[],ca=b.bk;if(ca)for(var sa=(R-Q)/ca,va={},Pa=0;Pa<ca;va={zi:void 0},Pa++){var Ia=Q+sa*Pa,fb=Ia+sa;va.zi=Pa+1;va=new gj(Ia,fb,function(ab){return function(){var Ea=O*y;"BigInt"in window&&Ea>Number.MAX_SAFE_INTEGER&&(Ea=BigInt(O)*BigInt(y));Ea=ot(z,A,N,ab.zi,C,Ea);return Qc(B(),[Ea],D())}}(va),0,null,d,E,p,m(),[],"",null,null,hj,f);va.codecs=a.M.codecs;va.mimeType=a.M.mimeType;0==h?0<Pa&&va.ld():0!=
|
|
978
978
|
Pa%h&&va.ld();X.push(va)}Q=new gj(Q,R,function(){if(ca)return[];var ab=O*y;"BigInt"in window&&ab>Number.MAX_SAFE_INTEGER&&(ab=BigInt(O)*BigInt(y));ab=ot(z,A,N,null,C,ab);return Qc(B(),[ab],D())},0,null,d,E,p,m(),X,"",null,null,hj,f,0<X.length);Q.codecs=a.M.codecs;Q.mimeType=a.M.mimeType;Q.bandwidth=a.bandwidth;Q.j=M;return Q}function l(){var N=[Math.max(n.Gb(),p),Math.min(n.rc(),m())].map(function(M){return M-p});N=[Math.ceil(N[0]/v),Math.ceil(N[1]/v)-1];a.M.kb&&N[1]++;return N.map(function(M){return M+
|
|
979
|
-
w})}function m(){var N=null!=r&&e[r]||u;return N?p+N:Infinity}var n=a.presentationTimeline,p=a.
|
|
980
|
-
k(I);O.push(Q);I++}return N>m()&&!O.length?null:O})}return Promise.resolve(K)}function Ut(a,b){var c=a.M.Ge;c||(c=qt(a,Tt,"initialization"));if(!c)return null;c=Gc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.
|
|
979
|
+
w})}function m(){var N=null!=r&&e[r]||u;return N?p+N:Infinity}var n=a.presentationTimeline,p=a.ua.start,r=a.Aa.id,u=a.ua.duration,v=b.gb,w=b.Zd,y=b.timescale,z=b.wc,C=a.bandwidth||null,A=a.M.id,B=a.M.cb,D=a.Cb,E=p-b.jc,F=l();c=a.Sb?Math.max(F[0],F[1]-c+1):F[0];g=g||F[1];F=[];for(var L=c;L<=g;++L){var J=k(L);F.push(J)}var K=new ql(F);F=n.rc()<m();L=n.U();if(F||L){var I=Math.max(c,g+1);c=v;a.M.kb&&(c=.1);K.lf(c,function(){var N=n.Gb();K.Ya(N);var M=t(l());M.next();M=M.next().value;for(var O=[];I<=M;){var Q=
|
|
980
|
+
k(I);O.push(Q);I++}return N>m()&&!O.length?null:O})}return Promise.resolve(K)}function Ut(a,b){var c=a.M.Ge;c||(c=qt(a,Tt,"initialization"));if(!c)return null;c=Gc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.cb,g=a.Cb;b=new ej(function(){var h=ot(c,d,null,null,e,null);return Qc(f(),[h],g())},0,null,Gt(a),null,null,b);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;return b}
|
|
981
981
|
function Zt(a,b,c,d,e,f,g,h,k,l,m){ql.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.j=f;this.l=g;this.u=h;this.A=l;this.I=m;k&&$t(this)}oa(Zt,ql);q=Zt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){ql.prototype.release.call(this);this.h=null};
|
|
982
|
-
q.
|
|
982
|
+
q.Ya=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
|
|
983
983
|
function Yt(a,b,c,d,e,f){au(a,f);if(a.h){c=a.h.timeline;a.h.wc!==b.wc&&(a.h.wc=b.wc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;e&&$t(a)}function au(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&jj(c,b)}}
|
|
984
|
-
function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.
|
|
985
|
-
q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.
|
|
986
|
-
null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.
|
|
984
|
+
function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.Ya(a.j)}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i}return null};
|
|
985
|
+
q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.zk,f=this.h.gh+d.hh;c=this.j-this.h.jc;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Vb,r={},u=0;u<d.Vb;r={nf:void 0,Ai:void 0},u++){var v=d.start+p*u,w=v+p;r.Ai=u+1;r.nf=null;r=new gj(this.j+v,this.j+w,function(y){return function(){if(!b.h)return[];
|
|
986
|
+
null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.Ai,b.G,b.J));return y.nf}}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.ld():0!=u%this.I&&r.ld();n.push(r)}c=new gj(this.j+d.start,h,function(){return 0<d.Vb||!b.h?[]:bu(b.h.wc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.j,this.l,n,"",null,null,hj,this.A,0<d.Vb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
|
|
987
987
|
function bu(a,b,c,d,e,f,g,h){a=ot(a,b,c,f,d||null,e);return Qc(g(),[a],h()).map(function(k){return k.toString()})};function cu(a){this.o=null;this.A=a;this.I=new vh;this.i=[];this.h=null;this.m=[];this.C=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}cu.prototype.configure=function(a){this.o=a};cu.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};cu.prototype.setManifestType=function(a){this.u=a};
|
|
988
988
|
function du(a,b){var c,d,e,f,g,h,k;return P(function(l){if(1==l.g)return c=Qc(a.i,[eu(a,b)]),d=Dh(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),wh(a.I,e),ta(l,2),G(l,e.promise,4);if(2!=l.g)return f=l.h,g=zc(f.data),h=JSON.parse(g),1==h.VERSION&&fu(a,h,f.uri),wa(l,0);if((k=xa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Wb(function(){du(a,b)});a.g.X(a.G);H(l)})}
|
|
989
989
|
function eu(a,b){if(!a.m.length)return b;b=new ob(b);var c=a.C||a.m[0],d=Math.round(a.A.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Eb(e)&&tb(b,e);return b.toString()}function fu(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Wb(function(){du(a,d)});if(c=b.TTL)a.G=c;a.g.X(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
|
|
990
990
|
function gu(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}cu.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
|
|
991
|
-
function hu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={pd:void 0},f=e.next())if(g.pd=f.value,f=b.get(g.pd))d.push({Jg:g.pd,location:f});else if(f=a.H.find(function(k){return function(l){return l.
|
|
992
|
-
h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new ob(k.location)).$b))return!1;return!0});d.length&&(a.C=d[0].Jg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Qc(a.i,d)};function iu(){this.
|
|
993
|
-
function
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
991
|
+
function hu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={pd:void 0},f=e.next())if(g.pd=f.value,f=b.get(g.pd))d.push({Jg:g.pd,location:f});else if(f=a.H.find(function(k){return function(l){return l.jl==k.pd}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].Li?(h=new ob(h),qb(h,f["URI-REPLACEMENT"].Li),d.push({Jg:g.pd,location:h.toString()})):d.push({Jg:g.pd,location:h}))}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,
|
|
992
|
+
h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new ob(k.location)).$b))return!1;return!0});d.length&&(a.C=d[0].Jg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Qc(a.i,d)};function iu(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.o=!1;this.m=new Set}q=iu.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[]};q.Fj=function(){return this.l};q.mg=function(){return this.j.slice()};q.jj=function(){return this.i};
|
|
993
|
+
q.yh=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a}));else if(a.type==Wc)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=
|
|
994
|
+
d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}};
|
|
995
|
+
function ju(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[ku(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[lu(n),n]})),l=new Map(h.textStreams.map(function(n){return[mu(n),n]}));h=new Map(h.imageStreams.map(function(n){return[nu(n),n]}));if(b){var m=ou(Wc);l.set(mu(m),m);m=ou("image");h.set(nu(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{oh:c,Ii:d,Ci:e,Mh:f}}
|
|
996
|
+
q.Lf=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R;return P(function(X){if(1==X.g){e=Yc;if(!b&&1==a.length)return f=ju(a,!1),g=f.oh,h=f.Ii,k=f.Ci,l=f.Mh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),X.B(2);m=c?d.m.size:0;n=-1;for(p=0;p<a.length;p++)r=a[p],d.m.has(r.id)||(d.m.add(r.id),-1==n&&(n=p));if(-1==n)return X.return();u=ju(a,!0);v=u.oh;w=u.Ii;y=u.Ci;z=u.Mh;return G(X,
|
|
997
|
+
Promise.all([pu(d,d.h,v,n,qu,ru,m),pu(d,d.g,w,n,qu,ru,m),pu(d,d.j,y,n,qu,ru,m),pu(d,d.i,z,n,qu,ru,m)]),2)}C=0;A=[];if(d.g.length&&d.h.length)for(J=t(d.h),K=J.next();!K.done;K=J.next())for(I=K.value,N=t(d.g),M=N.next();!M.done;M=N.next())O=M.value,Q=Rb(I.drmInfos,O.drmInfos),I.drmInfos.length&&O.drmInfos.length&&!Q.length||(R=C++,A.push({id:R,language:I.language,disabledUntilTime:0,primary:I.primary,audio:I,video:O,bandwidth:(I.bandwidth||0)+(O.bandwidth||0),drmInfos:Q,allowedByApplication:!0,allowedByKeySystem:!0,
|
|
998
|
+
decodingInfos:[]}));else for(B=d.g.length?d.g:d.h,D=t(B),E=D.next();!E.done;E=D.next())F=E.value,L=C++,A.push({id:L,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==e.ka?F:null,video:F.type==e.wa?F:null,bandwidth:F.bandwidth||0,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.l=A;H(X)})};
|
|
997
999
|
function su(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M;return P(function(O){switch(O.g){case 1:b=Yc;if(1==a.length)return O.return(a[0]);c=a.map(function(Q){return new Map(Q.filter(function(R){return R.type===b.ka}).map(function(R){return[ku(R),R]}))});d=a.map(function(Q){return new Map(Q.filter(function(R){return R.type===b.wa}).map(function(R){return[lu(R),R]}))});e=a.map(function(Q){return new Map(Q.filter(function(R){return R.type===b.Na}).map(function(R){return[mu(R),
|
|
998
1000
|
R]}))});f=a.map(function(Q){return new Map(Q.filter(function(R){return R.type===b.Af}).map(function(R){return[nu(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=tu(b.Na),k.set(mu(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=tu(b.Af),p.set(nu(r),r);u=new iu;return G(O,pu(u,[],c,0,uu,vu,0),2);case 2:return v=O.h,G(O,pu(u,[],d,0,uu,vu,0),3);case 3:return w=O.h,G(O,pu(u,[],e,0,uu,vu,0),4);case 4:return y=O.h,G(O,pu(u,[],f,0,uu,vu,0),5);case 5:z=O.h;C=0;if(w.length&&v.length)for(F=
|
|
999
1001
|
t(v),L=F.next();!L.done;L=F.next())for(J=L.value,K=t(w),I=K.next();!I.done;I=K.next())N=I.value,M=C++,N.variantIds.push(M),J.variantIds.push(M);else for(A=w.concat(v),B=t(A),D=B.next();!D.done;D=B.next())E=D.value,E.variantIds=[C++];return O.return(w.concat(v).concat(y).concat(z))}})}
|
|
1000
1002
|
function pu(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J;return P(function(K){switch(K.g){case 1:h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){K.B(4);break}n=m.value;return G(K,wu(a,n,c,d,f,h,g),5);case 5:p=K.h;if(!p)throw new U(2,4,4037);m=l.next();K.B(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(v=u.value,w=t(v),y=w.next();!y.done;y=w.next())z=y.value,(C=xu(a,z,c,e,f,h))&&b.push(C);A=t(h);for(B=A.next();!B.done;B=
|
|
1001
1003
|
A.next())for(D=B.value,E=t(D),F=E.next(),L={};!F.done;L={$g:void 0},F=E.next())if(L.$g=F.value,!yu(L.$g)&&(J=b.some(function(I){return function(N){return zu(a,I.$g,N)}}(L))))throw new U(2,4,4037);return K.return(b)}})}function wu(a,b,c,d,e,f,g){return P(function(h){if(1==h.g)return Au(a,c,b,0<g),b.matchedStreams?b.segmentIndex?G(h,Bu(b,d+g),2):h.B(2):h.return(!1);Cu(b,d,e,f,g);return h.return(!0)})}
|
|
1002
|
-
function Bu(a,b){var c,d,e,f,g,h
|
|
1004
|
+
function Bu(a,b){var c,d,e,f,g,h;return P(function(k){if(1==k.g){c=[];d=a.matchedStreams;for(e=b;e<d.length;e++)f=d[e],c.push(f.createSegmentIndex()),f.trickModeVideo&&!f.trickModeVideo.segmentIndex&&c.push(f.trickModeVideo.createSegmentIndex());return G(k,Promise.all(c),2)}if(a.segmentIndex instanceof tl)for(g=b;g<d.length;g++)h=d[g],h.segmentIndex&&a.segmentIndex.h.push(h.segmentIndex);H(k)})}
|
|
1003
1005
|
function xu(a,b,c,d,e,f){if(yu(b))return null;var g=d(b);Au(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return P(function(h){if(g.segmentIndex)return h.B(0);g.segmentIndex=new tl;return G(h,Bu(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Cu(g,0,e,f,0);return g}
|
|
1004
1006
|
function Cu(a,b,c,d,e){var f=a.matchedStreams;for(b+=e;b<f.length;b++){var g=f[b];c(a,g);var h=!0;"audio"==a.type&&0==hd(a.language,g.language)&&(h=!1);if(h&&(d[b-e].delete(g),g.fullMimeTypes))for(g=t(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value)}}
|
|
1005
|
-
function qu(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=
|
|
1006
|
-
function uu(a){
|
|
1007
|
+
function qu(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):
|
|
1008
|
+
null;b.trickModeVideo=null;return b}function uu(a){var b=Object.assign({},a);b.roles=b.roles.slice();b.keyIds=new Set;b.segments=[];b.variantIds=[];b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):null;return b}
|
|
1007
1009
|
function ru(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=Rb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new U(2,
|
|
1008
1010
|
4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=qu(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
|
|
1009
1011
|
for(var g=new tl,h=t(a.trickModeVideo.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.trickModeVideo.segmentIndex=g;return Promise.resolve()}),a.trickModeVideo.matchedStreams.push(b.trickModeVideo),ru(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),ru(a.trickModeVideo,b))}
|
|
1010
1012
|
function vu(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,x(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
|
|
1011
1013
|
function Au(a,b,c,d){d=(void 0===d?0:d)?c.matchedStreams:[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=Du(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
|
|
1012
1014
|
function Du(a,b,c){var d={audio:ku,video:lu,text:mu,image:nu}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return zu(a,l,m)},video:function(l,m){return zu(a,l,m)},text:Eu,image:Fu}[c.type];for(var g={audio:Gu,video:Hu,text:Iu,image:Ju}[c.type],h=t(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k)}a.u&&!yu(e)&&b.delete(d(e));return e}
|
|
1013
|
-
function Ku(a,b){return a.mimeType!=b.mimeType?!1:Lu(a.codecs)===Lu(b.codecs)}q.
|
|
1015
|
+
function Ku(a,b){return a.mimeType!=b.mimeType?!1:Lu(a.codecs)===Lu(b.codecs)}q.ji=function(a){this.o=a};q.si=function(a){this.u=a};function zu(a,b,c){return!Ku(b,c)&&!a.o||b.drmInfos&&!Qb(b.drmInfos,c.drmInfos)?!1:!0}function Eu(a,b){return b.language?a.forced!==b.forced||0==hd(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function Fu(){return!0}
|
|
1014
1016
|
function Gu(a,b,c){var d=Ku(a,b),e=Ku(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=hd(a.language,b.language);e=hd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length){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;if(c.roles.length!==b.roles.length)return c.roles.length<
|
|
1015
1017
|
b.roles.length}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=Mu(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Nu)return!0;if(d==Ou)return!1;d=Mu(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Nu?!0:d==Ou?!1:a.bandwidth&&Pu(a.bandwidth,b.bandwidth,c.bandwidth)==Nu?!0:!1}
|
|
1016
1018
|
function Hu(a,b,c){var d=Ku(a,b),e=Ku(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=Mu(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Nu)return!0;if(d==Ou)return!1;if(a.frameRate){d=Mu(a.frameRate,b.frameRate,c.frameRate);if(d==Nu)return!0;if(d==Ou)return!1}return a.bandwidth&&Pu(a.bandwidth,b.bandwidth,c.bandwidth)==Nu?!0:!1}
|
|
@@ -1020,87 +1022,88 @@ function tu(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType
|
|
|
1020
1022
|
function ou(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ql([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}}
|
|
1021
1023
|
function Mu(a,b,c){if(b==a&&a!=c)return Ou;if(c==a&&a!=b)return Nu;if(b>a){if(c<=a||c-a<b-a)return Nu;if(c-a>b-a)return Ou}else{if(c>a)return Ou;if(a-c<a-b)return Nu;if(a-c>a-b)return Ou}return Qu}function Pu(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Nu:b<a?Ou:Qu}function yu(a){switch(a.type){case Wc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
|
|
1022
1024
|
function lu(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,Lu(a.codecs),a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function ku(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,Lu(a.codecs),a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function mu(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
|
|
1023
|
-
function nu(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}function Lu(a){if(!Ru.has(a)){var b=If(a);Ru.set(a,b)}return Ru.get(a)}S("shaka.util.PeriodCombiner",iu);iu.prototype.setUseStreamOnce=iu.prototype.
|
|
1024
|
-
var
|
|
1025
|
-
new
|
|
1025
|
+
function nu(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}function Lu(a){if(!Ru.has(a)){var b=If(a);Ru.set(a,b)}return Ru.get(a)}S("shaka.util.PeriodCombiner",iu);iu.prototype.setUseStreamOnce=iu.prototype.si;iu.prototype.setAllowMultiTypeVariants=iu.prototype.ji;iu.prototype.combinePeriods=iu.prototype.Lf;iu.prototype.deleteStream=iu.prototype.yh;iu.prototype.getImageStreams=iu.prototype.jj;iu.prototype.getTextStreams=iu.prototype.mg;iu.prototype.getVariants=iu.prototype.Fj;
|
|
1026
|
+
var Nu=1,Qu=0,Ou=-1,Ru=new Map;function Su(a,b){var c=new DOMParser,d=Tu.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Uu(a,b){try{var c=Cc(a);return Su(c,b)}catch(d){return null}}
|
|
1027
|
+
var Tu=new Pb(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Vu(){var a=this;this.j=this.g=null;this.A=[];this.i=null;this.sa=1;this.H=[];this.l={Re:"",type:"",profiles:[],fc:null,kb:0,cb:null,Ud:0};this.u=new Map;this.o={};this.C={};this.ia={};this.m=new iu;this.L=0;this.qa=new pd(5);this.N=new Wb(function(){if(a.K&&!a.g.continueLoadingWhenPaused&&(a.I.Ma(a.K,"timeupdate"),a.K.paused)){a.I.na(a.K,"timeupdate",function(){return Wu(a)});return}Wu(a)});this.S=new vh;this.P=null;this.G=[];this.Y=Infinity;this.J=!1;this.h=null;this.O=0;this.aa=!1;this.I=
|
|
1028
|
+
new sd;this.K=null;this.ha=!1;this.V="";this.$=function(){return!1}}q=Vu.prototype;q.configure=function(a,b){var c=this.j&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&(this.$=b);c&&this.i&&this.i.presentationTimeline.U()&&this.N.Sa();this.h&&this.h.configure(this.g);this.m&&(this.m.ji(this.g.dash.multiTypeVariantsAllowed&&zd()),this.m.si(this.g.dash.useStreamOnceInPeriodFlattening))};
|
|
1026
1029
|
q.start=function(a,b){var c=this,d;return P(function(e){if(1==e.g)return c.J=b.isLowLatencyMode(),c.A=[a],c.j=b,G(e,Xu(c),2);d=e.h;c.j&&Yu(c,d);if(!c.j)throw new U(2,7,7001);return e.return(c.i)})};
|
|
1027
|
-
q.stop=function(){for(var a=t(Object.values(this.
|
|
1028
|
-
q.update=function(){var a=this,b;return P(function(c){if(1==c.g)return ta(c,2),G(c,Xu(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.j||!b)return c.return();a.j.onError(b);H(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.
|
|
1030
|
+
q.stop=function(){for(var a=t(Object.values(this.o)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.m&&this.m.release();this.g=this.j=null;this.A=[];this.i=null;this.o={};this.C={};this.u.clear();this.l={Re:"",type:"",profiles:[],fc:null,kb:0,cb:null,Ud:0};this.m=null;null!=this.N&&(this.N.stop(),this.N=null);this.h&&this.h.destroy();this.I&&(this.I.release(),this.I=null);return this.S.destroy()};
|
|
1031
|
+
q.update=function(){var a=this,b;return P(function(c){if(1==c.g)return ta(c,2),G(c,Xu(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.j||!b)return c.return();a.j.onError(b);H(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.U()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.rc();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.L=b.endTime-a,Yu(this,0))}}};
|
|
1029
1032
|
q.banLocation=function(a){this.h&&this.h.banLocation(a)};q.setMediaElement=function(a){this.K=a};
|
|
1030
|
-
function Xu(a){var b,c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g)return b=4,c="MPD",d=Zu(a),e=a.A,d.length?(e=d,c="Patch",b=6):1<a.A.length&&a.h&&(f=hu(a.h,"Location",!0),f.length&&(e=f)),g=Dh(e,a.g.retryParameters),h=Date.now(),G(p,$u(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.A.includes(k.uri)&&a.A.unshift(k.uri);l=new ob(k.uri);a.
|
|
1033
|
+
function Xu(a){var b,c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g)return b=4,c="MPD",d=Zu(a),e=a.A,d.length?(e=d,c="Patch",b=6):1<a.A.length&&a.h&&(f=hu(a.h,"Location",!0),f.length&&(e=f)),g=Dh(e,a.g.retryParameters),h=Date.now(),G(p,$u(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.A.includes(k.uri)&&a.A.unshift(k.uri);l=new ob(k.uri);a.V=l.g.toString();return G(p,av(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.qa.sample(1,n);return p.return(n)})}
|
|
1031
1034
|
function av(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){e=b;f=a.g.dash.manifestPreprocessor;g=Zm;if(f!=g){Bd("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Uu(e,d);if(!h)throw new U(2,4,4001,c);f(h);e=Dc(h.outerHTML)}k=ce(e,d);if(!k)throw new U(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=$m;l!=m&&l(k);if("Patch"===d)return v.return(bv(a,k));if(n=a.g.dash.disableXlinkProcessing)return v.return(cv(a,k,c));
|
|
1032
1035
|
p=a.g.dash.xlinkFailGracefully;r=ut(k,a.g.retryParameters,p,c,a.j.networkingEngine);wh(a.S,r);return G(v,r.promise,2)}u=v.h;return v.return(cv(a,u,c))})}
|
|
1033
1036
|
function cv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc,sb,Nd,Le,Me,fe,Pj,ge,Qj,Rj,Ah,Ne;return P(function(yc){switch(yc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?gu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=hu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Re=b.attributes.id||
|
|
1034
1037
|
"";a.l.Ud=ve(b,"publishTime",ye)||0;a.H=oe(b,"PatchLocation");u=Promise.resolve();if((v=se(b,"ContentSteering"))&&a.j){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new cu(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,y=qe(v))(z=ve(v,"queryBeforeStart",Fe,!1))?u=du(a.h,y):du(a.h,y);C=t(f.keys());for(A=C.next();!A.done;A=C.next())B=A.value,D=f.get(B),gu(a.h,"Location",B,D)}E=oe(b,"BaseURL");L=!1;if(a.h)for(J=t(E),K=J.next();!K.done;K=J.next())I=K.value,
|
|
1035
|
-
N=I.attributes.serviceLocation,M=qe(I),N&&M&&(gu(a.h,"BaseURL",N,M),L=!0);L&&a.h||(O=E.map(qe),F=Qc(d,O));Q=function(){return a.h&&L?hu(a.h,"BaseURL"):F?F:[]};a.l.
|
|
1036
|
-
ze));fb=a.g.dash.ignoreMaxSegmentDuration;ab=null;fb||(ab=ve(b,"maxSegmentDuration",ze));Ea=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.ha=a.i.presentationTimeline.
|
|
1037
|
-
(Nd=Ca.
|
|
1038
|
-
a.J=a.j.isLowLatencyMode());a.J&&Ca.
|
|
1039
|
-
nextUrl:hv(b),periodCount:ge.length,gapCount:a.O,isLowLatency:a.aa,startTime:null};if(!Ca.
|
|
1040
|
-
function bv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I;return P(function(N){if(1==N.g){c=b.attributes.mpdId;d=ve(b,"originalPublishTime",ye);if(!c||c!==a.l.Re||d!==a.l.Ud)throw a.H=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(ne(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=He(l.attributes.sel||""),n=m[m.length-1],p=qe(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.
|
|
1041
|
-
M}}else if("type"===n.
|
|
1042
|
-
"";for(var R=t(O),X=R.next();!X.done;X=R.next())X=a.
|
|
1043
|
-
F);L=t(f);for(J=L.next();!J.done;J=L.next())K=J.value,e.push.apply(e,x(mv(a,K)));if(!e.length)return N.B(2);a.i.periodCount+=e.length;a.i.gapCount=a.O;return G(N,fv(a,e,!0),2)}"static"==a.l.type&&(I=a.l.
|
|
1044
|
-
function mv(a,b){return ev(a,{Sb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,
|
|
1045
|
-
function kv(a,b){var c="",d="",e=-1,f="";b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,"Period"===g.name?c=g.id:"AdaptationSet"===g.name?(d=g.id,null!==g.position&&(e=g.position)):"Representation"===g.name&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=t(a.
|
|
1046
|
-
","+a.M.id);return b}function lv(a,b){var c=a.
|
|
1038
|
+
N=I.attributes.serviceLocation,M=qe(I),N&&M&&(gu(a.h,"BaseURL",N,M),L=!0);L&&a.h||(O=E.map(qe),F=Qc(d,O));Q=function(){return a.h&&L?hu(a.h,"BaseURL"):F?F:[]};a.l.cb=Q;R=0;E&&E.length&&(R=ve(E[0],"availabilityTimeOffset",Ee)||0);a.l.kb=R;X=a.g.dash.ignoreMinBufferTime;ca=0;X||(ca=ve(b,"minBufferTime",ze)||0);a.L=ve(b,"minimumUpdatePeriod",ze,-1);sa=ve(b,"availabilityStartTime",ye);va=ve(b,"timeShiftBufferDepth",ze);Pa=a.g.dash.ignoreSuggestedPresentationDelay;Ia=null;Pa||(Ia=ve(b,"suggestedPresentationDelay",
|
|
1039
|
+
ze));fb=a.g.dash.ignoreMaxSegmentDuration;ab=null;fb||(ab=ve(b,"maxSegmentDuration",ze));Ea=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.ha=a.i.presentationTimeline.U()&&"static"==Ea);a.l.type=Ea;dv(a);if(a.i)for(Ca=a.i.presentationTimeline,Oc=t(Object.values(a.o)),kb=Oc.next();!kb.done;kb=Oc.next())cc=kb.value,cc.segmentIndex&&cc.segmentIndex.Ya(Ca.Gb());else Pc=a.g.defaultPresentationDelay||1.5*ca,sb=null!=Ia?Ia:Pc,Ca=new Vk(sa,sb,a.g.dash.autoCorrectDrift);Ca.Uc("static"==Ea);
|
|
1040
|
+
(Nd=Ca.U())&&!isNaN(a.g.availabilityWindowOverride)&&(va=a.g.availabilityWindowOverride);null==va&&(va=Infinity);Ca.gf(va);Le=b.attributes.profiles||"";a.l.profiles=Le.split(",");Me={Sb:"static"!=Ea,presentationTimeline:Ca,Aa:null,ua:null,va:null,M:null,bandwidth:0,sg:!1,kb:R,fc:null,profiles:Le.split(","),roles:null,Cb:function(){return""}};a.O=0;fe=ev(a,Me,Q,b,!1);Pj=fe.duration;ge=fe.periods;("static"!=Ea||a.ha)&&fe.Bh||Ca.sb(Pj||Infinity);a.aa&&!a.J&&(Qj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
|
|
1041
|
+
a.J=a.j.isLowLatencyMode());a.J&&Ca.ki(a.Y);Ca.Dg(ab||1);return G(yc,u,2);case 2:a.J&&(ca=0,Rj=null!=Ia?Ia:a.g.defaultPresentationDelay,Ca.Tg(Rj));if(!a.i)return G(yc,a.m.Lf(ge,Me.Sb),6);a.i.periodCount=ge.length;a.i.gapCount=a.O;return G(yc,fv(a,ge,!1),4);case 6:a.i={presentationTimeline:Ca,variants:a.m.l,textStreams:a.m.mg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gv(b),
|
|
1042
|
+
nextUrl:hv(b),periodCount:ge.length,gapCount:a.O,isLowLatency:a.aa,startTime:null};if(!Ca.Fi()){yc.B(7);break}Ah=oe(b,"UTCTiming");return G(yc,iv(a,Q,Ah),8);case 8:Ne=yc.h;if(!a.j)return yc.return();Ca.li(Ne);case 7:Ca.Ne();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),H(yc)}})}function fv(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,a.m.Lf(b,!0,c),2);a.i.variants=a.m.l;d=a.m.mg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);H(e)})}
|
|
1043
|
+
function bv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I;return P(function(N){if(1==N.g){c=b.attributes.mpdId;d=ve(b,"originalPublishTime",ye);if(!c||c!==a.l.Re||d!==a.l.Ud)throw a.H=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(ne(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=He(l.attributes.sel||""),n=m[m.length-1],p=qe(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.nc){r=qe(l)||"";var M=ze(r);if(null!=M){a.l.fc=M;for(var O=t(a.u.values()),Q=O.next();!Q.done;Q=O.next())Q.value.fc=
|
|
1044
|
+
M}}else if("type"===n.nc){a.i.presentationTimeline.Uc("static"==p);a.l.type=p;M=t(a.u.values());for(O=M.next();!O.done;O=M.next())O.value.Sb="dynamic"==p;"static"==p&&(a.L=-1)}else"publishTime"===n.nc?a.l.Ud=ye(p)||0:null===n.nc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ie(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&jv(a,n.id);else if("SegmentTemplate"===n.name){O=He(l.attributes.sel||"");M=O[O.length-1];if(M.nc){O=kv(a,O);Q=qe(l)||
|
|
1045
|
+
"";for(var R=t(O),X=R.next();!X.done;X=R.next())X=a.u.get(X.value),Ke(X.M.zc,l.tagName,M.nc,Q);M=O}else M=[];u=M;v=t(u);for(w=v.next();!w.done;w=v.next())y=w.value,g.add(y)}else if("SegmentTimeline"===n.name||"S"===n.name){M=He(l.attributes.sel||"");M=kv(a,M);O=t(M);for(Q=O.next();!Q.done;Q=O.next())Q=a.u.get(Q.value),Q=rt(Q,Tt,"SegmentTimeline"),R=oe(Q,"S"),Ie(R,l),Q.children=R;z=M;C=t(z);for(A=C.next();!A.done;A=C.next())B=A.value,g.add(B)}D=t(g);for(E=D.next();!E.done;E=D.next())F=E.value,lv(a,
|
|
1046
|
+
F);L=t(f);for(J=L.next();!J.done;J=L.next())K=J.value,e.push.apply(e,x(mv(a,K)));if(!e.length)return N.B(2);a.i.periodCount+=e.length;a.i.gapCount=a.O;return G(N,fv(a,e,!0),2)}"static"==a.l.type&&(I=a.l.fc,a.i.presentationTimeline.sb(I||Infinity));H(N)})}
|
|
1047
|
+
function mv(a,b){return ev(a,{Sb:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,Aa:null,ua:null,va:null,M:null,bandwidth:0,sg:!1,kb:a.l.kb,profiles:a.l.profiles,fc:a.l.fc,roles:null,Cb:function(){return""}},a.l.cb,b,!0).periods}function jv(a,b){a.i.periodCount--;for(var c=t(a.u.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.u.get(d);rt(e,Tt,"SegmentTimeline").children=[];lv(a,d);a.u.delete(d)}a.G=a.G.filter(function(f){return f!==b})}
|
|
1048
|
+
function kv(a,b){var c="",d="",e=-1,f="";b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,"Period"===g.name?c=g.id:"AdaptationSet"===g.name?(d=g.id,null!==g.position&&(e=g.position)):"Representation"===g.name&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=t(a.u.values()),a=e.next();!a.done;a=e.next())a=a.value,a.Aa.id===c&&a.va.id===d&&a.M.id&&b.push(c+","+a.M.id);else if(-1<e)for(d=t(a.u.values()),a=d.next();!a.done;a=d.next())a=a.value,a.Aa.id===c&&a.va.position===e&&a.M.id&&b.push(c+
|
|
1049
|
+
","+a.M.id);return b}function lv(a,b){var c=a.u.get(b),d=a.o[b];d.segmentIndex&&d.segmentIndex.Ya(a.i.presentationTimeline.Gb());try{var e=St(c,function(f,g,h,k){return nv(a,f,g,h,k)},a.o,!0,a.g.dash.initialSegmentLimit,a.ia,c.M.aesKey,null,!0);d.createSegmentIndex=function(){return P(function(f){if(1==f.g)return d.segmentIndex?f.B(0):G(f,e.Gc(),3);d.segmentIndex=f.h;H(f)})}}catch(f){if(b=c.M.contentType,b!=Wc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
|
|
1047
1050
|
function gv(a){var b=se(a,"ServiceDescription");if(!b)return null;a=se(b,"Latency");b=se(b,"PlaybackRate");if(!a&&!b)return null;var c={};a&&("target"in a.attributes&&(c.targetLatency=parseInt(a.attributes.target,10)/1E3),"max"in a.attributes&&(c.maxLatency=parseInt(a.attributes.max,10)/1E3),"min"in a.attributes&&(c.minLatency=parseInt(a.attributes.min,10)/1E3));b&&("max"in b.attributes&&(c.maxPlaybackRate=parseFloat(b.attributes.max)),"min"in b.attributes&&(c.minPlaybackRate=parseFloat(b.attributes.min)));
|
|
1048
1051
|
return c}function hv(a){a=oe(a,"SupplementalProperty");if(!a.length)return null;a=t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"urn:mpeg:dash:chaining:2016"==b.attributes.schemeIdUri)return b.attributes.value;return null}
|
|
1049
|
-
function ev(a,b,c,d,e){var f=b.
|
|
1050
|
-
d.length){null!==p&&(null===a.P||p>a.P)&&(a.P=p);k=ov(a,b,c,{start:p,duration:v,node:m,wg:null==v||!n});h.push(k);b.
|
|
1051
|
-
function dv(a){var b=Object.keys(a.
|
|
1052
|
-
function ov(a,b,c,d){b.
|
|
1053
|
-
[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.
|
|
1054
|
-
d,"video");f=tv(a.g.disableText,d,Wc);d=tv(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.
|
|
1055
|
-
function sv(a,b,c,d){function e(K){var I=K.attributes["dvb:fontFamily"];K=K.attributes["dvb:url"];I&&K&&(K=Qc(b.
|
|
1056
|
-
l=void 0,m=b.
|
|
1052
|
+
function ev(a,b,c,d,e){var f=b.fc;f||(f=ve(d,"mediaPresentationDuration",ze),a.l.fc=f);var g=0;a.i&&a.i.presentationTimeline&&a.ha&&(g=a.i.presentationTimeline.cc());var h=[],k=g;d=oe(d,"Period");for(var l=0;l<d.length;l++){var m=d[l],n=d[l+1],p=ve(m,"start",ze,k),r=m.attributes.id,u=ve(m,"duration",ze),v=null;if(n){var w=ve(n,"start",ze);null!=w&&(v=w-p)}else null!=f&&(v=f-p+g);w=Zc;v&&u&&Math.abs(v-u)>w&&v>u&&a.O++;null==v&&(v=u);if(!(null!==a.P&&null!==r&&null!==p&&p<a.P)||a.G.includes(r)||l+1==
|
|
1053
|
+
d.length){null!==p&&(null===a.P||p>a.P)&&(a.P=p);k=ov(a,b,c,{start:p,duration:v,node:m,wg:null==v||!n});h.push(k);b.Aa.id&&v&&(a.ia[b.Aa.id]=v);if(null==v){k=null;break}k=p+v}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.G.includes(c)||a.G.push(c);else a.G=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Bh:!1}:{periods:h,duration:k,Bh:!0}}
|
|
1054
|
+
function dv(a){var b=Object.keys(a.C).filter(function(f){return!a.G.includes(f)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=t(a.C[c]),e=d.next();!e.done;e=d.next())e=e.value,a.m&&a.m.yh(a.o[e],c),delete a.o[e];delete a.C[c]}}
|
|
1055
|
+
function ov(a,b,c,d){b.Aa=pv(a,d.node,null,c);b.ua=d;b.Aa.kb=b.kb;b.Aa.id||(b.Aa.id="__shaka_period_"+d.start);var e=oe(d.node,"EventStream");c=b.presentationTimeline.Gb();e=t(e);for(var f=e.next();!f.done;f=e.next())qv(a,d.start,d.duration,f.value,c);c=oe(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=rv(a,e)))b.Cb=e;c=oe(d.node,"AdaptationSet").map(function(l,m){return sv(a,b,m,l)}).filter(Yf);if(b.Sb){d=
|
|
1056
|
+
[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.qk);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new U(2,4,4018);}d=c.filter(function(l){return!l.fh});c=c.filter(function(l){return l.fh});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.fh.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id)){h=t(h.streams);for(var k=h.next();!k.done;k=h.next())Mg(k.value,e.streams)}}c=tv(a.g.disableAudio,d,"audio");e=tv(a.g.disableVideo,
|
|
1057
|
+
d,"video");f=tv(a.g.disableText,d,Wc);d=tv(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new U(2,4,4004);return{id:b.Aa.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function tv(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])}
|
|
1058
|
+
function sv(a,b,c,d){function e(K){var I=K.attributes["dvb:fontFamily"];K=K.attributes["dvb:url"];I&&K&&(K=Qc(b.va.cb(),[K],b.Cb()),a.j.addFont(I,K[0]))}function f(K){switch(K){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(K){switch(K){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.va=pv(a,d,b.Aa,null);b.va.position=c;var h=!1;c=oe(d,"Role");var k=c.map(function(K){return K.attributes.value}).filter(Yf),
|
|
1059
|
+
l=void 0,m=b.va.contentType==Wc;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var p=n.attributes.schemeIdUri;if(null==p||"urn:mpeg:dash:role:2011"==p)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=oe(d,"EssentialProperty");c=null;var u=!1;n=null;p=!1;r=t(r);for(var v=r.next();!v.done;v=r.next()){v=v.value;var w=v.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==w)c=v.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"==
|
|
1057
1060
|
w)var y=g(parseInt(v.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==w)var z=f(parseInt(v.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=w&&("urn:mpeg:dash:ssr:2023"==w&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==w?e(v):"urn:mpeg:dash:urlparam:2014"==w?(n=rv(a,v))||(p=!0):p=!0)}if(p)return null;var C=null;p=oe(d,"SupplementalProperty");p=t(p);for(r=p.next();!r.done;r=p.next())r=r.value,v=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==
|
|
1058
1061
|
v?C=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==v?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==v?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==v?e(r):"urn:mpeg:dash:urlparam:2014"==v&&(n=rv(a,r));n&&(b.Cb=n);n=oe(d,"Accessibility");var A=new Map,B;n=t(n);for(p=n.next();!p.done;p=n.next())if(r=p.value,p=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=p||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=
|
|
1059
1062
|
p||a.g.disableText)"urn:mpeg:dash:role:2011"==p?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==r?B="visually impaired":"2"==r&&(B="hard of hearing"));else if(p=1,null!=r)for(r=t(r.split(";")),v=r.next();!v.done;v=r.next()){w=v.value;var D=v=void 0;w.includes("=")?(w=w.split("="),v="svc"+w[0],D=w[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,D=w);A.set(v,bd(D))}else A.set("svc1","und");else if(p=1,null!=r)for(r=r.split(";"),v=t(r),w=v.next();!w.done;w=
|
|
1060
|
-
v.next()){D=w.value;var E=w=void 0;D.includes("=")?(D=D.split("="),w=D[0].startsWith("CC")?D[0]:"CC"+D[0],E=D[1]||"und"):(w="CC"+p,2==r.length?p+=2:p++,E=D);A.set(w,bd(E))}else A.set("CC1","und");n=oe(d,"ContentProtection");var F=dt(n,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),L=bd(b.
|
|
1061
|
-
if(0==d.length){c="image"==b.
|
|
1062
|
-
w.keyIds||r.keyIds;a.g.dash.enableAudioGroups&&(r.groupId=m)}n=n.map(function(K){return K.attributes.id}).filter(Yf);return{id:m,contentType:b.
|
|
1063
|
-
function rv(a,b){if((b=te(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&ve(b,"useMPDUrlQuery",Fe,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return"$querypart$"==c?a.
|
|
1064
|
-
function uv(a,b,c,d,e,f,g,h,k,l,m,n){b.M=pv(a,l,b.
|
|
1065
|
-
"application"==y;y="image"==y;try{var z=void 0;if(c.Ef){var C=b.M.
|
|
1066
|
-
z;C=function(O,Q,R,X){return nv(a,O,Q,R,X)};if(b.M.ud)var E=Ht(b,C,z);else if(b.M.
|
|
1063
|
+
v.next()){D=w.value;var E=w=void 0;D.includes("=")?(D=D.split("="),w=D[0].startsWith("CC")?D[0]:"CC"+D[0],E=D[1]||"und"):(w="CC"+p,2==r.length?p+=2:p++,E=D);A.set(w,bd(E))}else A.set("CC1","und");n=oe(d,"ContentProtection");var F=dt(n,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),L=bd(b.va.language||"und"),J=b.va.label;n=oe(d,"Representation");d=n.map(function(K){if(K=uv(a,b,F,l,L,J,h,k,A,K,B,C))K.hdr=K.hdr||y,K.colorGamut=K.colorGamut||z,K.fastSwitching=u;return K}).filter(function(K){return!!K});
|
|
1064
|
+
if(0==d.length){c="image"==b.va.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||m||c)return null;throw new U(2,4,4003);}if(!b.va.contentType||"application"==b.va.contentType)for(b.va.contentType=vv(d[0].mimeType,d[0].codecs),m=t(d),p=m.next();!p.done;p=m.next())p.value.type=b.va.contentType;m=b.va.id||"__fake__"+a.sa++;p=t(d);for(r=p.next();!r.done;r=p.next()){r=r.value;v=t(F.drmInfos);for(w=v.next();!w.done;w=v.next())w=w.value,w.keyIds=w.keyIds&&r.keyIds?new Set([].concat(x(w.keyIds),x(r.keyIds))):
|
|
1065
|
+
w.keyIds||r.keyIds;a.g.dash.enableAudioGroups&&(r.groupId=m)}n=n.map(function(K){return K.attributes.id}).filter(Yf);return{id:m,contentType:b.va.contentType,language:L,$l:h,streams:d,drmInfos:F.drmInfos,fh:c,qk:n}}
|
|
1066
|
+
function rv(a,b){if((b=te(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&ve(b,"useMPDUrlQuery",Fe,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return"$querypart$"==c?a.V:c.split("&").map(function(d){if("$querypart$"==d)return a.V;var e=/\$query:(.*?)\$/g.exec(d);if(e&&2==e.length){e=e[1];var f=(new vb(a.V)).get(e);if(f.length)return e+"="+f[0]}return d}).join("&")}}return null}
|
|
1067
|
+
function uv(a,b,c,d,e,f,g,h,k,l,m,n){b.M=pv(a,l,b.va,null);var p=b.M.id;a.Y=Math.min(a.Y,b.M.kb);a.aa=0<a.Y;if(!wv(b.M))return null;var r=b.ua.start;b.bandwidth=ve(l,"bandwidth",Ce)||0;b.roles=h;var u=oe(l,"SupplementalProperty"),v=oe(l,"EssentialProperty"),w=null,y=v.find(function(O){return"urn:mpeg:dash:urlparam:2014"==O.attributes.schemeIdUri});y?w=rv(a,y):(y=u.find(function(O){return"urn:mpeg:dash:urlparam:2014"==O.attributes.schemeIdUri}))&&(w=rv(a,y));w&&(b.Cb=w);y=b.M.contentType;w=y==Wc||
|
|
1068
|
+
"application"==y;y="image"==y;try{var z=void 0;if(c.Ef){var C=b.M.cb,A=b.Cb,B=Qc(C(),[c.Ef.Tj],A()),D=Dh(B,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Ef.iv,firstMediaSequenceNumber:0,fetchKey:function(){var O,Q,R;return P(function(X){if(1==X.g)return G(X,$u(a,D,6),2);if(3!=X.g){O=X.h;if(!O.data||16!=O.data.byteLength)throw new U(2,4,4049);Q={name:"AES-CBC"};R=z;return G(X,window.crypto.subtle.importKey("raw",O.data,Q,!0,["decrypt"]),3)}R.cryptoKey=X.h;z.fetchKey=void 0;H(X)})}}}b.M.aesKey=
|
|
1069
|
+
z;C=function(O,Q,R,X){return nv(a,O,Q,R,X)};if(b.M.ud)var E=Ht(b,C,z);else if(b.M.kc)E=Nt(b,a.o,z);else if(b.M.zc)E=St(b,C,a.o,!!a.i,a.g.dash.initialSegmentLimit,a.ia,z,n,!1);else{var F=b.ua.duration||0,L=b.M.cb,J=b.M.mimeType,K=b.M.codecs;E={Gc:function(){var O=sl(r,F,L());O.ac(function(Q){Q.mimeType=J;Q.codecs=K});return Promise.resolve(O)}}}}catch(O){if((w||y)&&4002==O.code)return null;throw O;}l=oe(l,"ContentProtection");l=ht(l,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);l=new Set(l?[l]:
|
|
1067
1070
|
[]);n=!1;u.some(function(O){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==O.attributes.schemeIdUri&&"JOC"==O.attributes.value})&&(n=!0);u=!1;w&&(u=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var I;if(y&&((v=v.find(function(O){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(O.attributes.schemeIdUri)}))&&(I=v.attributes.value),!I))return null;var N;w=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&
|
|
1068
|
-
(w.includes("hvc1.2.4.L153.B0")||w.includes("hev1.2.4.L153.B0"))&&(N="PQ");v=b.M.id?b.
|
|
1069
|
-
height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:l,language:e,originalLanguage:b.
|
|
1070
|
-
function(){var O;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);O=M;return G(Q,E.Gc(),3)}O.segmentIndex=Q.h;H(Q)})};v&&b.Sb&&!a.
|
|
1071
|
+
(w.includes("hvc1.2.4.L153.B0")||w.includes("hev1.2.4.L153.B0"))&&(N="PQ");v=b.M.id?b.Aa.id+","+b.M.id:"";a.H.length&&p&&a.u.set(b.Aa.id+","+p,xv(b));var M=v&&a.o[v]?a.o[v]:{id:a.sa++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){M.segmentIndex&&(M.segmentIndex.release(),M.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:w,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,
|
|
1072
|
+
height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:l,language:e,originalLanguage:b.va.language,label:f,type:b.va.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.M.Te,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:n,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:I,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Bf(b.M.mimeType,b.M.codecs)])};M.createSegmentIndex=
|
|
1073
|
+
function(){var O;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);O=M;return G(Q,E.Gc(),3)}O.segmentIndex=Q.h;H(Q)})};v&&b.Sb&&!a.o[v]&&(b=b.Aa.id||"",a.C[b]||(a.C[b]=[]),a.o[v]=M,a.C[b].push(v));return M}function xv(a){function b(c){if(!c)return null;c=be(c);c.ud=null;c.kc=null;c.zc=Pe(c.zc);return c}a=be(a);a.Aa=b(a.Aa);a.va=b(a.va);a.M=b(a.M);a.ua&&(a.ua=be(a.ua),a.ua.node=null);return a}
|
|
1071
1074
|
function Wu(a){var b,c;return P(function(d){switch(d.g){case 1:return b=0,ta(d,2),G(d,Xu(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Yu(a,b);H(d)}})}function Yu(a,b){if(!(0>a.L)){var c=a.L;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.N.X(Math.max(c-b,qd(a.qa)))}}
|
|
1072
|
-
function pv(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Te:null,audioSamplingRate:null,kb:0,df:0};d=d||c.
|
|
1075
|
+
function pv(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Te:null,audioSamplingRate:null,kb:0,df:0};d=d||c.cb;var e=b.attributes.id,f=oe(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=qe(m);l&&m&&(gu(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qe));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=[b.attributes.codecs||c.codecs];var n=we(b,
|
|
1073
1076
|
"urn:scte:dash:scte214-extensions","supplementalCodecs");n&&m.push(n);m=Zl(m).join(",");n=ve(b,"frameRate",Ge)||c.frameRate;var p=b.attributes.sar||c.pixelAspectRatio,r=yv(oe(b,"InbandEventStream"),c.emsgSchemeIdUris),u=oe(b,"AudioChannelConfiguration");u=zv(u)||c.Te;var v=ve(b,"audioSamplingRate",De)||c.audioSamplingRate;k||(k=vv(l,m));var w=se(b,"SegmentBase"),y=se(b,"SegmentTemplate"),z=w?ve(w,"availabilityTimeOffset",Ee)||0:0,C=y?ve(y,"availabilityTimeOffset",Ee)||0:0,A=f&&f.length?ve(f[0],"availabilityTimeOffset",
|
|
1074
|
-
Ee)||0:0;z=c.kb+A+z+C;C=null;(A=se(b,"SegmentSequenceProperties"))&&(A=se(A,"SAP"))&&(C=ve(A,"cadence",Be));A=b.attributes.label;var B=oe(b,"Label");B&&B.length&&(B=B[0],pe(B)&&(A=pe(B)));return{
|
|
1077
|
+
Ee)||0:0;z=c.kb+A+z+C;C=null;(A=se(b,"SegmentSequenceProperties"))&&(A=se(A,"SAP"))&&(C=ve(A,"cadence",Be));A=b.attributes.label;var B=oe(b,"Label");B&&B.length&&(B=B[0],pe(B)&&(A=pe(B)));return{cb:function(){return Qc(d(),f.length?a.h&&h?hu(a.h,e):g?g:[]:[])},ud:w||c.ud,kc:se(b,"SegmentList")||c.kc,zc:y||c.zc,width:ve(b,"width",De)||c.width,height:ve(b,"height",De)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:p,emsgSchemeIdUris:r,id:e,language:b.attributes.lang,Te:u,audioSamplingRate:v,
|
|
1075
1078
|
kb:z,Ge:null,df:C||c.df,label:A||null}}function yv(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
|
|
1076
1079
|
function zv(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.attributes.schemeIdUri)if(c=c.attributes.value)switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
|
|
1077
|
-
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function wv(a){var b=a.ud?1:0;b+=a.
|
|
1080
|
+
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function wv(a){var b=a.ud?1:0;b+=a.kc?1:0;b+=a.zc?1:0;if(0==b)return a.contentType==Wc||"application"==a.contentType?!0:!1;1!=b&&(a.ud&&(a.kc=null),a.zc=null);return!0}
|
|
1078
1081
|
function Av(a,b,c,d){var e,f,g,h,k,l,m;return P(function(n){if(1==n.g)return e=[Gc(c)],f=Qc(b(),e),g=Dh(f,a.g.retryParameters),g.method=d,h=a.j.networkingEngine.request(4,g,{isPreload:a.$()}),wh(a.S,h),G(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=zc(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
|
|
1079
1082
|
function iv(a,b,c){var d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.attributes.schemeIdUri,value:p.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;ta(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.B(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.B(8);
|
|
1080
1083
|
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Za("NTP UTCTiming scheme is not supported");break;default:Za("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return G(n,Av(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return G(n,Av(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
|
|
1081
1084
|
3);break;case 5:xa(n);case 3:g=f.next();n.B(2);break;case 4:return Za("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
|
|
1082
1085
|
function qv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1,k=ve(d,"presentationTimeOffset",De)||0;d=t(oe(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=ve(l,"presentationTime",De)||0,n=ve(l,"duration",De)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",eventElement:Oe(l),eventNode:Pe(l)},a.j.onTimelineRegionAdded(l))}}
|
|
1083
1086
|
function nv(a,b,c,d,e){var f,g,h,k;return P(function(l){if(1==l.g)return f=Jh,g=e?0:1,h=cm(b,c,d,a.g.retryParameters),G(l,$u(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function vv(a,b){b=Bf(a,b);return Pf(b)?Wc:a.split("/")[0]}function $u(a,b,c,d){d||(d={});d.isPreload=a.$();b=a.j.networkingEngine.request(c,b,d);wh(a.S,b);return b.promise}
|
|
1084
|
-
function Zu(a){var b=a.l.Ud;if(!a.l.Re||!b||!a.H.length)return[];var c=Date.now()/1E3,d=a.H.filter(function(e){e=De(e.attributes.ttl);return!e||b+e>c}).map(qe).filter(Yf);return d.length?Qc(a.A,d):[]}S("shaka.dash.DashParser",Vu);$i["application/dash+xml"]=function(){return new Vu};$i["video/vnd.mpeg.dash.mpd"]=function(){return new Vu};function Bv(){}S("shaka.dependencies",Bv);Bv.has=function(a){return Cv.has(a)};Bv.add=function(a,b){if(!Dv[a])throw Error(a+" is not supported");a==Ev?Bd("mux.js","mux.js is no longer used in Shaka Player."):Cv.set(a,function(){return b})};var Ev="muxjs",Dv={
|
|
1087
|
+
function Zu(a){var b=a.l.Ud;if(!a.l.Re||!b||!a.H.length)return[];var c=Date.now()/1E3,d=a.H.filter(function(e){e=De(e.attributes.ttl);return!e||b+e>c}).map(qe).filter(Yf);return d.length?Qc(a.A,d):[]}S("shaka.dash.DashParser",Vu);$i["application/dash+xml"]=function(){return new Vu};$i["video/vnd.mpeg.dash.mpd"]=function(){return new Vu};function Bv(){}S("shaka.dependencies",Bv);Bv.has=function(a){return Cv.has(a)};Bv.add=function(a,b){if(!Dv[a])throw Error(a+" is not supported");a==Ev?Bd("mux.js","mux.js is no longer used in Shaka Player."):Cv.set(a,function(){return b})};var Ev="muxjs",Dv={am:Ev,ISOBoxer:"ISOBoxer"};Bv.Allowed=Dv;var Cv=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Fv(a,b,c){this.type=a;this.ea=b;this.segments=c||null}function Gv(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Gv.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
|
|
1085
1088
|
function Hv(a,b){if(b)return a.toString();b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Iv(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Jv(a,b,c){return(a=Iv(a,b))?a.value:c||null}function Kv(a,b){a=Iv(a,b);if(!a)throw new U(2,4,4023,b);return a.value}function Lv(a,b,c){c=void 0===c?[]:c;this.ea=b;this.g=a;this.Vb=c}function Mv(a,b){this.name=a;this.value=b};function Nv(a,b){return a.filter(function(c){return c.name==b})}function Ov(a,b){return a.filter(function(c){return Kv(c,"TYPE")==b})}function Pv(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Qv(a,b,c){c=void 0===c?0:c;return(a=Pv(a,b))?Number(a.value):c}function Rv(a,b,c){return b?Sv(a,[b],c):[]}function Sv(a,b,c){if(!b.length)return[];b=Qc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next())a.push(Tv(d.value,c));return a}
|
|
1086
1089
|
function Tv(a,b){if(!b||!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new U(2,4,4039,e);}}return a};function Uv(){this.g=0}
|
|
1087
1090
|
function Vv(a,b){b=zc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new U(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=Wv(a,f),--a.g,Xv.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=Wv(a,g);if(Yv.includes(g.name)){if(1!=b)throw new U(2,4,4017);g=
|
|
1088
1091
|
c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=Wv(a,k),Xv.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==Jv(k,"TYPE")?f.push(k):"MAP"==Jv(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new Lv(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new Lv("",d,f)));return new Fv(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
|
|
1089
1092
|
g.name&&(g.attributes.push(new Mv("URI",h)),d=!0)}}return new Fv(b,e)}function Wv(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new U(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Ud(d);var f;(f=Wd(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Wd(d,g);)c.push(new Mv(f[1],f[2]||f[3])),Vd(d)}return new Gv(a,b,c,e)}
|
|
1090
1093
|
var Xv="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),Yv="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP".split(" ");function Zv(){}function $v(a){try{var b=aw(a);return rh({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return ph(c)}}
|
|
1091
|
-
function aw(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(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=Kc(a):e=Dc(a);return{data:e,contentType:c}}S("shaka.net.DataUriPlugin",Zv);Zv.parse=$v;yh("data",$v);function bw(){var a=this;this.g=this.h=null;this.G=1;this.A=new Map;this.J=new Map;this.P=new Map;this.P.set("video",new Map);this.P.set("audio",new Map);this.P.set(Wc,new Map);this.P.set("image",new Map);this.xb=new Set;this.i=new Map;this.l=null;this.O="";this.Ta=new Uv;this.K=-1;this.ia=Infinity;this.ha=this.xc=!1;this.C=new Wb(function(){if(a.$&&!a.g.continueLoadingWhenPaused&&(a.Y.Ma(a.$,"timeupdate"),a.$.paused)){a.Y.na(a.$,"timeupdate",function(){return cw(a)});return}cw(a)});this.
|
|
1092
|
-
null;this.
|
|
1094
|
+
function aw(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new U(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new U(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=Kc(a):e=Dc(a);return{data:e,contentType:c}}S("shaka.net.DataUriPlugin",Zv);Zv.parse=$v;yh("data",$v);function bw(){var a=this;this.g=this.h=null;this.G=1;this.A=new Map;this.J=new Map;this.P=new Map;this.P.set("video",new Map);this.P.set("audio",new Map);this.P.set(Wc,new Map);this.P.set("image",new Map);this.xb=new Set;this.i=new Map;this.l=null;this.O="";this.Ta=new Uv;this.K=-1;this.ia=Infinity;this.ha=this.xc=!1;this.C=new Wb(function(){if(a.$&&!a.g.continueLoadingWhenPaused&&(a.Y.Ma(a.$,"timeupdate"),a.$.paused)){a.Y.na(a.$,"timeupdate",function(){return cw(a)});return}cw(a)});this.Ca=dw;this.m=
|
|
1095
|
+
null;this.bb=0;this.o=Infinity;this.Ja=this.Ia=this.V=0;this.aa=new vh;this.H=new Map;this.I=new Map;this.xa=new Map;this.qa=new Map;this.N=new Map;this.sa=new Map;this.Ha=new Map;this.dc=this.L=!1;this.Jb=new pd(5);this.j=null;this.S=!0;this.Ga=new Set;this.Y=new sd;this.u=this.$=null;this.Lb=function(){return!1}}q=bw.prototype;q.configure=function(a,b){this.g=a;b&&(this.Lb=b);this.j&&this.j.configure(this.g)};
|
|
1093
1096
|
q.start=function(a,b){var c=this,d;return P(function(e){return 1==e.g?(c.h=b,c.L=b.isLowLatencyMode(),G(e,ew(c,[a]).promise,2)):3!=e.g?(d=e.h,c.O=d.uri,G(e,fw(c,d.data,a),3)):e.return(c.m)})};
|
|
1094
1097
|
q.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.aa&&(a.push(this.aa.destroy()),this.aa=null);this.g=this.h=null;this.xb.clear();this.m=null;this.i.clear();this.J.clear();this.I.clear();this.A.clear();this.xa.clear();this.qa.clear();this.N.clear();this.sa.clear();this.Ha.clear();this.Ga.clear();this.j&&this.j.destroy();this.Y&&(this.Y.release(),this.Y=null);return Promise.all(a)};
|
|
1095
|
-
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1==r.g){if(!gw(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hw(a,g));return G(r,Promise.all(b),2)}iw(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.Jd});d.length&&!h&&(k=jw,kw(a,k.
|
|
1098
|
+
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1==r.g){if(!gw(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hw(a,g));return G(r,Promise.all(b),2)}iw(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.Jd});d.length&&!h&&(k=jw,kw(a,k.Mi),l=d.map(function(u){return u.ec}),a.l.sb(Math.min.apply(Math,x(l))),
|
|
1096
1099
|
a.h.updateDuration());h&&lw(a);m=t(d);for(n=m.next();!n.done;n=m.next())p=n.value,p.stream.segmentIndex&&!Cg(p.stream.segmentIndex)&&a.h.disableStream(p.stream);H(r)})};function mw(a,b){return gw(a)?a.P.get(b.type):b.Oe}
|
|
1097
1100
|
function hw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa;return P(function(va){switch(va.g){case 1:c=[];d=t(b.R());for(e=d.next();!e.done;e=d.next())f=e.value,g=new ob(f),h=g.g,b.qe&&(0<=b.Nb&&h.add("_HLS_msn",String(b.Nb)),0<=b.Ob&&h.add("_HLS_part",String(b.Ob))),b.re&&h.add("_HLS_skip","YES"),Eb(h)&&tb(g,h),c.push(g.toString());ta(va,2);return G(va,ew(a,c,!0).promise,4);case 4:k=va.h;wa(va,3);break;case 2:throw l=xa(va),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return va.return();
|
|
1098
|
-
m=Vv(a.Ta,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.
|
|
1099
|
-
F.next())J=L.value,J.ma&&(J.ma.md=E);u.segmentIndex.Rd(B,a.l.Gb());B.length&&(K=Qv(m.ea,"EXT-X-MEDIA-SEQUENCE",0),N=(I=Pv(m.ea,"EXT-X-SKIP"))?Number(Jv(I,"SKIPPED-SEGMENTS")):0,M=qw(K,B),O=M.Nb,Q=M.Ob,b.Nb=O+N,b.Ob=Q,R=v.get(K),u.segmentIndex.
|
|
1101
|
+
m=Vv(a.Ta,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.di.push(n);p=Nv(m.ea,"EXT-X-DEFINE");r=nw(a,p,n);u=b.stream;v=mw(a,b);return G(va,ow(a,m,u.mimeType,b.R,r),5);case 5:w=va.h;y=w.keyIds;z=w.drmInfos;C=function(Pa,Ia){return Pa.size===Ia.size&&[].concat(x(Pa)).every(function(fb){return Ia.has(fb)})};C(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));A=pw(a,m,v,r,b.R,b.type);B=A.segments;if(D=A.bandwidth)u.bandwidth=D;E=Wl(u);F=t(B);for(L=F.next();!L.done;L=
|
|
1102
|
+
F.next())J=L.value,J.ma&&(J.ma.md=E);u.segmentIndex.Rd(B,a.l.Gb());B.length&&(K=Qv(m.ea,"EXT-X-MEDIA-SEQUENCE",0),N=(I=Pv(m.ea,"EXT-X-SKIP"))?Number(Jv(I,"SKIPPED-SEGMENTS")):0,M=qw(K,B),O=M.Nb,Q=M.Ob,b.Nb=O+N,b.Ob=Q,R=v.get(K),u.segmentIndex.Ya(R));if(X=Cg(u.segmentIndex))b.Qc=X.startTime,ca=B[B.length-1],b.ec=ca.endTime;if(sa=Pv(m.ea,"EXT-X-ENDLIST"))b.Jd=!0;rw(a,m);sw(a,m.ea,u.type,r,b.R);H(va)}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};
|
|
1100
1103
|
q.banLocation=function(a){this.j&&this.j.banLocation(a)};q.setMediaElement=function(a){this.$=a};
|
|
1101
1104
|
function tw(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=mw(a,e);if(f=Cg(f)){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.Sf=k;break}}}}if(!(0>a.K))for(b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,uw(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.K-c.Sf,0<e&&(d.g.splice(0,e),d=Cg(d)))d=-d.startTime,c.stream.segmentIndex.offset(d),vw(a,c,d)}
|
|
1102
1105
|
function ww(a,b){if(Infinity==a.ia){b=t(b);for(var c=b.next();!c.done;c=b.next())c=Cg(c.value.stream.segmentIndex),null!=c&&null!=c.h&&(a.ia=Math.min(a.ia,c.h))}b=a.ia;if(Infinity!=b){c=t(a.i.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!uw(a,d.type)){var e=d.stream.segmentIndex;if(null!=e){var f=Cg(e);if(f)if(null==f.h)Ya("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.R(),"Expect AV sync issues!");else for(vw(a,d,f.h-b-f.startTime),d=t(e),e=d.next();!e.done;e=d.next())e.value.bh(b)}}}}
|
|
1103
|
-
function vw(a,b,c){b.Qc+=c;b.
|
|
1106
|
+
function vw(a,b,c){b.Qc+=c;b.ec+=c;a=mw(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.R()}
|
|
1104
1107
|
function fw(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca;return P(function(sa){switch(sa.g){case 1:d=Yc;e=Vv(a.Ta,b);f=Nv(e.ea,"EXT-X-DEFINE");g=[];h=[];k=[];a.l=new Vk(null,0);a.l.Uc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.S=!1,A=Nv(e.ea,"EXT-X-DEFINE"),n=nw(a,A,a.O),m=d.wa,B="",D=new Map,G(sa,xw(a,a.G++,n,e,l,"",m,B,!0,"Media Playlist",null,D,null,!1,null,!1),7);yw(a,f);p=Nv(e.ea,"EXT-X-MEDIA");r=Nv(e.ea,"EXT-X-STREAM-INF");u=Nv(e.ea,"EXT-X-IMAGE-STREAM-INF");
|
|
1105
1108
|
v=Nv(e.ea,"EXT-X-I-FRAME-STREAM-INF");w=Nv(e.ea,"EXT-X-SESSION-KEY");y=Nv(e.ea,"EXT-X-SESSION-DATA");z=Nv(e.ea,"EXT-X-CONTENT-STEERING");zw(a,y);return G(sa,Aw(a,z),4);case 4:return Bw(a,r),Cw(a,p),C=Dw(a,v),G(sa,Ew(a,r,w,p,l,a.A,C),5);case 5:return g=sa.h,h=Fw(a,p),G(sa,Gw(a,u,v),6);case 6:k=sa.h;sa.B(3);break;case 7:E=sa.h,a.i.set(c,E),E.stream&&(F=Wl(E.stream),E.stream.segmentIndex.ac(function(va){va.ma&&(va.ma.md=F)})),m=E.stream.type,g.push({id:0,language:bd(B||"und"),disabledUntilTime:0,primary:!0,
|
|
1106
1109
|
audio:"audio"==m?E.stream:null,video:"video"==m?E.stream:null,bandwidth:E.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);Hw(a,e);1==e.type&&(gw(a)&&(Iw(a,e),L=a.o,a.C.X(L)),J=Array.from(a.i.values()),Jw(a,J),lw(a),sw(a,e.ea,m,n,l));a.m={presentationTimeline:a.l,variants:g,textStreams:h,imageStreams:k,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
|
|
@@ -1110,7 +1113,7 @@ function Kw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F;return P(func
|
|
|
1110
1113
|
0),5);case 5:p=L.h;case 4:(r=w.headers["content-type"])&&(r=r.split(";")[0].toLowerCase());case 2:return y=cm(e.R(),e.Hb(),e.Eb(),a.g.retryParameters),G(L,Nw(a,y,n,{type:1}).promise,6);case 6:z=L.h;C=z.data;if(!e.aesKey){L.B(7);break}return G(L,bm(C,e.aesKey,f),8);case 8:C=L.h;case 7:(A=z.headers["content-type"])&&(A=A.split(";")[0].toLowerCase());B="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");D=["audio/mp4","video/mp4","video/iso.segment"];if(ck(Ib(C))){var J=C;var K=Ib(J);K=(new Uj).parse(K);
|
|
1111
1114
|
var I=K.Fd();K=K.og();var N=[],M=!1,O=!1;switch(I.audio){case "aac":case "aac-loas":N.push("mp4a.40.2");M=!0;break;case "mp3":N.push("mp4a.40.34");M=!0;break;case "ac3":N.push("ac-3");M=!0;break;case "ec3":N.push("ec-3");M=!0;break;case "opus":N.push("opus"),M=!0}switch(I.video){case "avc":K.codec?N.push(K.codec):N.push("avc1.42E01E");O=!0;break;case "hvc":K.codec?N.push(K.codec):N.push("hvc1.1.6.L93.90");O=!0;break;case "av1":N.push("av01.0.01M.08"),O=!0}if(N.length){I=M&&!O;M=new Map;if(O){O=new Id("video/mp2t");
|
|
1112
1115
|
O.i(J);J=t(O.j());for(var Q=J.next();!Q.done;Q=J.next())Q=Q.value,M.set(Q,Q);O.g()}K={type:I?"audio":"video",mimeType:"video/mp2t",codecs:N.join(", "),language:null,height:K.height,width:K.width,channelCount:null,sampleRate:null,closedCaptions:M,be:null,colorGamut:null,frameRate:K.frameRate}}else K=null;if(E=K)return L.return(E)}else if(B.includes(l)||D.includes(A)||r&&D.includes(r))if(F=Yl(p,C))return L.return(F);return A?L.return(Xl(A)):r?L.return(Xl(r)):L.return(c)}})}
|
|
1113
|
-
function lw(a){if(gw(a)){if(a.
|
|
1116
|
+
function lw(a){if(gw(a)){if(a.Ca==Ow){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.ec),c=Math.min(c,e.Qc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.gf(b)}}else a.l.sb(Pw(a));if(!a.l.u)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=Cg(c.stream.segmentIndex))&&c.h&&a.l.ni(c.h);
|
|
1114
1117
|
a.l.Ne()}function yw(a,b){var c=(new ob(a.O)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Jv(e,"NAME");var f=Jv(e,"VALUE");e=Jv(e,"QUERYPARAM");d&&f&&(a.A.has(d)||a.A.set(d,f));e&&(d=c.get(e)[0])&&!a.A.has(d)&&a.A.set(e,d)}}
|
|
1115
1118
|
function nw(a,b,c){c=(new ob(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Jv(f,"NAME"),h=Jv(f,"VALUE");e=Jv(f,"QUERYPARAM");f=Jv(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.A.get(f))&&d.set(f,e)}return d}
|
|
1116
1119
|
function Bw(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Jv(d,"AUDIO");c=Jv(d,"VIDEO");var f=Jv(d,"SUBTITLES");d=Qw(a,d);if(f){var g=Uc(Wc,d);a.I.set(f,g);Rd(d,g)}e&&(f=Uc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Uc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
|
|
@@ -1139,38 +1142,38 @@ function Ww(a,b){var c="video",d=Kv(b,"URI"),e=Jv(b,"CODECS")||"";"mjpg"==e&&(c=
|
|
|
1139
1142
|
function fx(a,b,c,d,e,f,g,h,k){for(var l=a.G++,m=[],n=t(b),p=n.next();!p.done;p=n.next()){var r=p.value;p=Kv(r,"URI");r=Jv(r,"PATHWAY-ID");a.j&&r&&gu(a.j,l,r,p);m.push(p)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=Jv(b[0],"CLOSED-CAPTIONS");if("video"==d){if(a.g.disableText){a.S=!1;b=null;break a}if(b){if("NONE"!=b){b=a.H.get(b);break a}a.S=!1}else if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Tc(d,c);d=hx(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);
|
|
1140
1143
|
a.i.set(n,d);return d}
|
|
1141
1144
|
function hx(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc;return P(function(kb){switch(kb.g){case 1:return D=Yc,ta(kb,2),E=z.R(),G(kb,B.promise,4);case 4:F=kb.h;if(B.aborted)return kb.return();L=F.uri;L==F.originalUri||E.includes(L)||y.push(L);J=Vv(a.Ta,F.data);if(1!=J.type)throw new U(2,4,4017);K=Nv(J.ea,"EXT-X-DEFINE");I=nw(a,K,L);N=!1;(!a.ha&&a.g.hls.disableCodecGuessing||a.S&&e==D.wa&&!a.g.hls.disableClosedCaptionsDetection)&&0<J.segments.length&&
|
|
1142
|
-
(a.S=!1,N=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;O=gw(a);return G(kb,xw(a,0,I,J,v,d,e,f,g,h,k,l,m,n,p,r,void 0,N,M),5);case 5:Q=kb.h;if(B.aborted)return kb.return();R=Q.stream;Hw(a,J);gw(a)&&!O&&Iw(a,J);z.Qc=Q.Qc;z.
|
|
1145
|
+
(a.S=!1,N=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;O=gw(a);return G(kb,xw(a,0,I,J,v,d,e,f,g,h,k,l,m,n,p,r,void 0,N,M),5);case 5:Q=kb.h;if(B.aborted)return kb.return();R=Q.stream;Hw(a,J);gw(a)&&!O&&Iw(a,J);z.Qc=Q.Qc;z.ec=Q.ec;z.re=Q.re;z.qe=Q.qe;z.Jd=Q.Jd;z.Oe=Q.Oe;z.Nb=Q.Nb;z.Ob=Q.Ob;z.Bg=!0;w.segmentIndex=R.segmentIndex;w.encrypted=R.encrypted;w.drmInfos=R.drmInfos;w.keyIds=R.keyIds;w.mimeType=R.mimeType;w.bandwidth=w.bandwidth||R.bandwidth;w.codecs=w.codecs||R.codecs;w.closedCaptions=w.closedCaptions||
|
|
1143
1146
|
R.closedCaptions;w.width=w.width||R.width;w.height=w.height||R.height;w.hdr=w.hdr||R.hdr;w.colorGamut=w.colorGamut||R.colorGamut;w.frameRate=w.frameRate||R.frameRate;"und"==w.language&&"und"!=R.language&&(w.language=R.language);w.language=w.language||R.language;w.channelsCount=w.channelsCount||R.channelsCount;w.audioSamplingRate=w.audioSamplingRate||R.audioSamplingRate;Uw(w);w.drmInfos.length&&a.h.newDrmInfo(w);X=!1;if(!l&&w.closedCaptions||l&&w.closedCaptions&&l.size!=w.closedCaptions.size)X=!0;
|
|
1144
1147
|
a.m&&X&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.wa||e==D.ka)for(ca=t(a.i.values()),sa=ca.next();!sa.done;sa=ca.next())va=sa.value,va.Bg||va.type!=e||(va.stream.mimeType=R.mimeType,Uw(va.stream));e==D.Na&&(Pa=Cg(R.segmentIndex))&&Pa.ma&&(w.mimeType="application/mp4",Uw(w));Ia=Wl(w);w.segmentIndex.ac(function(cc){cc.ma&&(cc.ma.md=Ia)});ix(a)&&(a.xc?Jw(a,[z]):(a.xc=!0,fb=Array.from(a.i.values()),ab=fb.filter(function(cc){return cc.stream.segmentIndex}),Jw(a,ab),lw(a),Ea=a.o,0<Ea&&a.C.X(Ea)));
|
|
1145
|
-
sw(a,J.ea,w.type,I,v);a.m&&(a.m.startTime=a.u);wa(kb,0);break;case 2:Ca=xa(kb);w.closeSegmentIndex();if(7001===Ca.code)return kb.return();Oc=a.h.disableStream(w);if(!Oc)throw Ca;H(kb)}})}function v(){return a.j&&1<c.length?hu(a.j,b):y.concat(Sv([a.O],c,a.A))}var w=jx(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,
|
|
1146
|
-
w.closeSegmentIndex=function(){C&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);C=null};return z}function Pw(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.
|
|
1148
|
+
sw(a,J.ea,w.type,I,v);a.m&&(a.m.startTime=a.u);wa(kb,0);break;case 2:Ca=xa(kb);w.closeSegmentIndex();if(7001===Ca.code)return kb.return();Oc=a.h.disableStream(w);if(!Oc)throw Ca;H(kb)}})}function v(){return a.j&&1<c.length?hu(a.j,b):y.concat(Sv([a.O],c,a.A))}var w=jx(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,di:y,R:v,Qc:0,ec:0,Oe:new Map,re:!1,qe:!1,Jd:!1,Sf:-1,Nb:-1,Ob:-1,Bg:!1},C=null,A;w.createSegmentIndex=function(){if(C)return C;A=ew(a,z.R(),!0);return C=new Promise(function(B){B(u(A))})};
|
|
1149
|
+
w.closeSegmentIndex=function(){C&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);C=null};return z}function Pw(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.ec));return b}function iw(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.ac(function(e){c.push(e)});a.l.Sd(c)}
|
|
1147
1150
|
function Jw(a,b){if(!gw(a))for(var c=Pw(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.ed(0,c);iw(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?tw(a,b):(ww(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&tw(a,b))}function uw(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}
|
|
1148
1151
|
function ix(a){if(!a.m)return!1;var b=[],c=[];a=t(a.m.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
|
|
1149
1152
|
function xw(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z){y=void 0===y?!0:y;z=void 0===z?!0:z;var C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc;return P(function(sb){switch(sb.g){case 1:C=d.segments||[];A=C.every(function(Nd){return Pv(Nd.ea,"EXT-X-GAP")?!0:!1});if(!C.length||A)throw new U(2,4,4053);kx(a,d);gw(a)&&rw(a,d);B=gw(a)?a.P.get(g):new Map;D=pw(a,d,B,c,e,g);E=D.segments;F=D.bandwidth;N=I=K=J=L=null;if(!(0<E.length&&y)){sb.B(2);break}return G(sb,Kw(a,E),3);case 3:M=sb.h,
|
|
1150
|
-
g=M.type,h=M.language,m=M.channelCount,u=M.sampleRate,a.g.disableText||(n=M.closedCaptions),J=M.height,L=M.width,K=M.be,I=M.colorGamut,N=M.frameRate,z&&(w=M.mimeType,f=M.codecs);case 2:if(w){sb.B(4);break}return G(sb,lx(a,g,f,E),5);case 5:w=sb.h;case 4:return G(sb,ow(a,d,w,e,c),6);case 6:O=sb.h;Q=O.drmInfos;R=O.keyIds;X=O.encrypted;ca=O.
|
|
1151
|
-
g&&(L||J||K||I)&&gx(sa,L,J,N,K,null,I);gw(a)&&rw(a,d);va=E[0].startTime;Pa=E[E.length-1];Ia=Pa.endTime;fb=new ql(E);sa.segmentIndex=fb;Ea=(ab=Pv(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Iv(ab,"CAN-SKIP-UNTIL"):!1;Ca=ab?null!=Iv(ab,"CAN-BLOCK-RELOAD"):!1;Oc=Qv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);kb=qw(Oc,E);cc=kb.Nb;Pc=kb.Ob;return sb.return({stream:sa,type:g,
|
|
1153
|
+
g=M.type,h=M.language,m=M.channelCount,u=M.sampleRate,a.g.disableText||(n=M.closedCaptions),J=M.height,L=M.width,K=M.be,I=M.colorGamut,N=M.frameRate,z&&(w=M.mimeType,f=M.codecs);case 2:if(w){sb.B(4);break}return G(sb,lx(a,g,f,E),5);case 5:w=sb.h;case 4:return G(sb,ow(a,d,w,e,c),6);case 6:O=sb.h;Q=O.drmInfos;R=O.keyIds;X=O.encrypted;ca=O.Qi;if(X&&!Q.length&&!ca)throw new U(2,4,4026);sa=jx(a,f,g,h,k,l,m,n,p,r,u,v);sa.encrypted=X;sa.drmInfos=Q;sa.keyIds=R;sa.mimeType=w;F&&(sa.bandwidth=F);Uw(sa);"video"==
|
|
1154
|
+
g&&(L||J||K||I)&&gx(sa,L,J,N,K,null,I);gw(a)&&rw(a,d);va=E[0].startTime;Pa=E[E.length-1];Ia=Pa.endTime;fb=new ql(E);sa.segmentIndex=fb;Ea=(ab=Pv(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Iv(ab,"CAN-SKIP-UNTIL"):!1;Ca=ab?null!=Iv(ab,"CAN-BLOCK-RELOAD"):!1;Oc=Qv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);kb=qw(Oc,E);cc=kb.Nb;Pc=kb.Ob;return sb.return({stream:sa,type:g,di:[],R:e,Qc:va,ec:Ia,re:Ea,qe:Ca,Jd:!1,Sf:-1,Nb:cc,Ob:Pc,Oe:B,Bg:!1})}})}
|
|
1152
1155
|
function qw(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Nb:a,Ob:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Nb:a,Ob:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{Nb:a,Ob:c}}
|
|
1153
1156
|
function jx(a,b,c,d,e,f,g,h,k,l,m,n){var p=Sw(c,b)||Tw(c),r=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())r.push(u.value)}k=void 0;u=null;c==Wc?k=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(u="visually impaired");r.length||"subtitle"!==k||r.push("subtitle");a={id:a.G++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
|
|
1154
1157
|
segmentIndex:null,mimeType:p,codecs:b,kind:c==Wc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:bd(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:r,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,
|
|
1155
1158
|
fullMimeTypes:new Set};Uw(a);return a}
|
|
1156
1159
|
function ow(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q;return P(function(R){switch(R.g){case 1:f=new Map;if(b.segments)for(g=t(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Nv(k.ea,"EXT-X-KEY"),m=null,l.length)for(m=mx(a,b,k.ea,d,e),n=t(l),p=n.next();!p.done;p=n.next())r=p.value,f.set(r,m);v=u=!1;w=[];y=new Set;z=t(f);C=z.next();case 2:if(C.done){R.B(4);break}A=C.value;B=t(A);D=B.next().value;E=B.next().value;F=D;L=E;J=Kv(F,"METHOD");if("NONE"==J){R.B(3);break}u=
|
|
1157
|
-
!0;K=Jv(F,"KEYFORMAT")||"identity";I=null;if(Yw(J)){v=!0;R.B(3);break}if("identity"!=K){I=(N=Zw[K])?N(F,c):null;R.B(6);break}return G(R,$w(a,F,c,d,L,e),8);case 8:I=R.h;case 6:if(I){if(I.keyIds)for(M=t(I.keyIds),O=M.next();!O.done;O=M.next())Q=O.value,y.add(Q);w.push(I)}case 3:C=z.next();R.B(2);break;case 4:return R.return({drmInfos:w,keyIds:y,encrypted:u,
|
|
1160
|
+
!0;K=Jv(F,"KEYFORMAT")||"identity";I=null;if(Yw(J)){v=!0;R.B(3);break}if("identity"!=K){I=(N=Zw[K])?N(F,c):null;R.B(6);break}return G(R,$w(a,F,c,d,L,e),8);case 8:I=R.h;case 6:if(I){if(I.keyIds)for(M=t(I.keyIds),O=M.next();!O.done;O=M.next())Q=O.value,y.add(Q);w.push(I)}case 3:C=z.next();R.B(2);break;case 4:return R.return({drmInfos:w,keyIds:y,encrypted:u,Qi:v})}})}
|
|
1158
1161
|
function nx(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new U(2,4,4042);var f=0,g=Jv(b,"IV","");if(g){var h=Lc(g.substr(2));if(16!=h.byteLength)throw new U(2,4,4048);}else f=Qv(c.ea,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.qa.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Kv(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
|
|
1159
1162
|
256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,p,r,u;return P(function(v){if(1==v.g)return l=Rv(d(),Kv(b,"URI"),e),m=l.sort().join(""),a.N.has(m)||(n=Dh(l,a.g.retryParameters),p=Nw(a,n,6).promise,a.N.set(m,p)),G(v,a.N.get(m),2);if(3!=v.g){r=v.h;if(!r.data||r.data.byteLength!=k.bitsKey/8)throw new U(2,4,4049);u={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};return G(v,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3)}k.cryptoKey=v.h;k.fetchKey=void 0;
|
|
1160
1163
|
H(v)})};a.qa.set(c,k)}return a.qa.get(c)}function Hw(a,b){null==a.u&&(b=Pv(b.ea,"EXT-X-START"))&&(a.u=Number(Kv(b,"TIME-OFFSET")))}function kx(a,b){var c=Pv(b.ea,"EXT-X-PLAYLIST-TYPE");b=Pv(b.ea,"EXT-X-ENDLIST");b=c&&"VOD"==c.value||b;c=c&&"EVENT"==c.value&&!b;c=!b&&!c;b?kw(a,dw):c?kw(a,Ow):kw(a,ox)}
|
|
1161
|
-
function rw(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Pv(d[e].ea,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Pv(b.ea,"EXT-X-TARGETDURATION");if(!d)throw new U(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Pv(b.ea,"EXT-X-PART-INF"))a.
|
|
1162
|
-
c=b?Iv(b,"HOLD-BACK"):null,a.Ia=c?Number(c.value):0);a.
|
|
1164
|
+
function rw(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Pv(d[e].ea,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Pv(b.ea,"EXT-X-TARGETDURATION");if(!d)throw new U(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Pv(b.ea,"EXT-X-PART-INF"))a.V=Number(Kv(e,"PART-TARGET"));b=Pv(b.ea,"EXT-X-SERVER-CONTROL");a.L&&a.V?(a.o=a.dc?5*a.V<=c?Math.min(a.V,a.o):Math.min(c,a.o):Math.min(a.V,a.o),a.Ja=b?Number(Kv(b,"PART-HOLD-BACK")):0):(a.o=Math.min(c,a.o),
|
|
1165
|
+
c=b?Iv(b,"HOLD-BACK"):null,a.Ia=c?Number(c.value):0);a.bb=Math.max(d,a.bb)}function Iw(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.Ja)c=a.Ja;else if(a.Ia)c=a.Ia;else{var d=b.segments.length,e=a.g.hls.liveSegmentsDelay;e>d-2&&(e=Math.max(1,d-2));for(e=d-e;e<d;e++){var f=Pv(b.segments[e].ea,"EXTINF");c=f?c+Math.ceil(Number(f.value.split(",")[0])):c+a.bb}}a.u&&0>a.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.pi(0);a.l.Tg(c);a.l.Uc(!1)}
|
|
1163
1166
|
function mx(a,b,c,d,e){var f=Pv(c,"EXT-X-MAP");if(!f)return null;var g=Kv(f,"URI"),h=Rv(d(),g,e);g=[h.toString(),Jv(f,"BYTERANGE","")].join("-");if(!a.xa.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?Yw(Kv(m,"METHOD"))&&m.id<f.id&&(k=nx(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=px(h,f,l,k);a.xa.set(g,b)}return a.xa.get(g)}
|
|
1164
1167
|
function px(a,b,c,d){var e=0,f=null;b=Jv(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new ej(function(){return a},e,f,null,null,null,d)}
|
|
1165
1168
|
function qx(a,b,c,d,e,f,g,h,k){function l(X){X=(new ob(X)).jb.split(".").pop();var ca=rx[g][X];ca||(ca=Mw[X]);return ca}var m=d.ea,n=Pv(m,"EXTINF"),p=0,r=0,u=null;d.Vb.length&&(a.m.isLowLatency=!0);var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Pv(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=ye(w.value))}var y=hj;Pv(m,"EXT-X-GAP")&&(a.m.gapCount++,y=2);if(!n){if(0==d.Vb.length)throw new U(2,4,4024,"EXTINF");if(!a.L)return null}var z=[];w=!1;var C=null,A=!1,B=!1;if(a.L&&d.Vb.length){p=
|
|
1166
|
-
b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=v,E={},F=0;F<d.Vb.length;E={pf:void 0,We:void 0},F++){var L=d.Vb[F],J=0==F?c:z[z.length-1],K=0==F?e:J.endTime,I=Number(Jv(L,"DURATION"))||a.
|
|
1169
|
+
b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=v,E={},F=0;F<d.Vb.length;E={pf:void 0,We:void 0},F++){var L=d.Vb[F],J=0==F?c:z[z.length-1],K=0==F?e:J.endTime,I=Number(Jv(L,"DURATION"))||a.V;if(I){var N=K+I,M=0,O=null;"EXT-X-PRELOAD-HINT"==L.name?(M=(M=Jv(L,"BYTERANGE-START"))?Number(M):0,(J=Jv(L,"BYTERANGE-LENGTH"))?O=M+Number(J)-1:M&&(O=Number.MAX_SAFE_INTEGER)):(M=Jv(L,"BYTERANGE"),O=t(sx(J,M)),M=O.next().value,O=O.next().value);E.We=Jv(L,"URI");if(E.We){J=hj;"YES"==
|
|
1167
1170
|
Jv(L,"GAP")&&(a.m.gapCount++,J=2,A=!0);E.pf=null;var Q=function(X){return function(){null==X.pf&&(X.pf=Rv(h(),X.We,f));return X.pf}}(E);p&&0<=M&&null!=O&&(C=Q,w=!0);K=new gj(K,N,Q,M,O,b,0,0,Infinity,[],"",null,D,J,k);"EXT-X-PRELOAD-HINT"==L.name&&(K.Cg(),B=!0);"YES"!=Jv(L,"INDEPENDENT")&&0<F&&K.ld();if(E=l(E.We))K.mimeType=E,tx.has(E)&&(K.ma=null);z.push(K);D&&(D+=I)}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;p=e+n}else if(z.length)p=z[z.length-1].endTime;else return null;w&&(A||
|
|
1168
|
-
0!=z[0]
|
|
1171
|
+
0!=z[0].$a?(w=!1,C=null):z=[]);(n=Pv(m,"EXT-X-BYTERANGE"))?(u=t(sx(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].$a,u=z[z.length-1].La);c="";n=null;"image"==g&&(c="1x1",m=Pv(m,"EXT-X-TILES"))&&(c=Kv(m,"LAYOUT"),(m=Jv(m,"DURATION"))&&(n=Number(m)));var R=null;b=new gj(e,p,function(){if(C)return C();null==R&&(R=Rv(h(),d.g,f));return R||[]},r,u,b,0,0,Infinity,z,c,n,v,y,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,tx.has(e)&&(b.ma=null);w&&(a.dc=!0,b.Sh(),B&&b.Cg());return b}
|
|
1169
1172
|
function sx(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.La+1,d=c+b-1);return[c,d]}
|
|
1170
1173
|
function sw(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.l.m;if(f&&!uw(a,c))for(b=Nv(b,"EXT-X-DATERANGE"),b=b.sort(function(v,w){v=Kv(v,"START-DATE");w=Kv(w,"START-DATE");return v<w?-1:v>w?1:0}),c=0;c<b.length;c++){var g=b[c],h=Kv(g,"ID");if(!a.Ga.has(h)){var k=Kv(g,"START-DATE"),l=ye(k);if(!isNaN(l)){k=Math.max(0,l-f);var m=null,n=Jv(g,"END-DATE");if(n&&(n=ye(n),!isNaN(n)&&(m=n-f,0>m)))continue;if(null==m&&(n=Jv(g,"DURATION")||Jv(g,"PLANNED-DURATION"))&&(n=parseFloat(n),isNaN(n)||(m=k+n),0>l-f+
|
|
1171
1174
|
n))continue;n=Jv(g,"CLASS")||"com.apple.quicktime.HLS";var p="YES"==Jv(g,"END-ON-NEXT");if(null==m&&p){for(p=c+1;p<b.length;p++){var r=Jv(b[p],"CLASS")||"com.apple.quicktime.HLS";if(n==r&&(r=Kv(b[p],"START-DATE"),r=ye(r),!isNaN(r)&&r&&r>l)){m=Math.max(0,r-f);break}}if(null==m)continue}l=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];p=[];g=t(g.attributes);for(r=g.next();!r.done;r=g.next())if(r=r.value,!l.includes(r.name)){var u=Tv(r.value,d);if("X-ASSET-URI"==r.name||"X-ASSET-LIST"==r.name)u=
|
|
1172
1175
|
Rv(e(),r.value,d)[0];p.push({key:r.name,description:"",data:u,mimeType:null,pictureType:null})}if(1<p.length)a.h.onMetadata(n,k,m,p);a.Ga.add(h)}}}}}
|
|
1173
|
-
function pw(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Qv(b.ea,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Qv(b.ea,"EXT-X-MEDIA-SEQUENCE",0),m=Pv(b.ea,"EXT-X-SKIP"),n=m?Number(Jv(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;gw(a)&&c.has(p)&&(r=c.get(p));0===r&&a.
|
|
1176
|
+
function pw(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Qv(b.ea,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Qv(b.ea,"EXT-X-MEDIA-SEQUENCE",0),m=Pv(b.ea,"EXT-X-SKIP"),n=m?Number(Jv(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;gw(a)&&c.has(p)&&(r=c.get(p));0===r&&a.Ca==Ow&&0<c.size&&!c.has(p)&&null!=a.l.i&&(r=a.l.Gb());var u=[],v=null;m=[];for(var w=0;w<g.length;w++){var y=g[w],z=0==w?r:v.endTime;p=l+n+w;Pv(y.ea,"EXT-X-DISCONTINUITY")&&k++;var C=t(y.ea);for(var A=C.next();!A.done;A=C.next())A=A.value,"EXT-X-KEY"==A.name&&
|
|
1174
1177
|
(Yw(Kv(A,"METHOD"))?h=nx(a,A,b,e,d):h=void 0);c.set(p,z);C=mx(a,b,y.ea,e,d);!a.L&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.L=a.h.isLowLatencyMode());if(z=qx(a,C,v,y,z,d,f,e,h))(v=Qv(y.ea,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:z.endTime-z.startTime}):m.length&&(v=m.pop(),v.duration+=z.endTime-z.startTime,m.push(v)),v=z,z.i=k,uw(a,f)&&null!=a.K&&p<a.K||u.push(z)}b=void 0;m.length&&(b=m.reduce(function(B,D){return B+D.duration},0),b=Math.round(m.reduce(function(B,D){return B+D.bitrate*
|
|
1175
1178
|
D.duration},0)/b*1E3));if(m=u.some(function(B){return null!=B.h}))for(c={},d=0;d<u.length;c={we:void 0,ve:void 0,me:void 0,Sc:void 0,le:void 0},d++)if(c.Sc=u[d],null==c.Sc.h)for(c.ve=0,c.we=d,e=function(B){return function(){var D=u[B.we];if(D){if(null!=D.h)return D.h+B.ve;B.ve-=D.endTime-D.startTime;B.we+=1}return null}}(c),c.le=0,c.me=d,g=function(B){return function(){var D=u[B.me];if(D){D!=B.Sc&&(B.le+=D.endTime-D.startTime);if(null!=D.h)return D.h+B.le;--B.me}return null}}(c);null==c.Sc.h;)c.Sc.h=
|
|
1176
1179
|
g(),null==c.Sc.h&&(c.Sc.h=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=t(e.g),g=e.next();!g.done;g=e.next())g=g.value,g.h=d,d+=g.endTime-g.startTime;c=a.ia;if(m&&Infinity!=c&&!uw(a,f))for(a=t(u),f=a.next();!f.done;f=a.next())f.value.bh(c);return{segments:u,bandwidth:b}}
|
|
@@ -1178,13 +1181,13 @@ function Sw(a,b){if(a==Wc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)
|
|
|
1178
1181
|
function lx(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y;return P(function(z){switch(z.g){case 1:e=Jh;f=Lw(a,d);g=f.segment;if(2==g.status)return z.return(Tw(b));h=g.R();k=new ob(h[0]);l=k.jb.split(".").pop();m=rx[b];if((n=m[l])||(n=Mw[l])||(n=Sw(b,c)))return z.return(n);r=1;u=Dh(h,a.g.retryParameters);ta(z,2);u.method="HEAD";return G(z,Nw(a,u,e,{type:r}).promise,4);case 4:v=z.h;p=v.headers["content-type"];wa(z,3);break;case 2:w=xa(z);if(!w||1002!=w.code&&1001!=w.code){z.B(3);break}u.method="GET";return G(z,
|
|
1179
1182
|
Nw(a,u,e,{type:r}).promise,6);case 6:y=z.h,p=y.headers["content-type"];case 3:return p?z.return(p.toLowerCase().split(";")[0]):z.return(Tw(b))}})}function gx(a,b,c,d,e,f,g){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0,a.colorGamut=g||void 0)}function ew(a,b,c){return Nw(a,Dh(b,a.g.retryParameters),0,{type:c?2:3})}
|
|
1180
1183
|
function cw(a){var b,c,d,e,f,g;return P(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return G(h,a.update(),4);case 4:c=Date.now();gw(a)&&(d=(c-b)/1E3,a.Jb.sample(1,d),e=a.o,f=Math.max(0,e-qd(a.Jb)),a.C.X(f));wa(h,3);break;case 2:g=xa(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.C.X(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();H(h)}})}
|
|
1181
|
-
function gw(a){return a.
|
|
1184
|
+
function gw(a){return a.Ca!=dw}function kw(a,b){a.Ca=b;a.l&&a.l.Uc(!gw(a));gw(a)||a.C.stop()}function Nw(a,b,c,d){if(!a.aa)throw new U(2,7,7001);d||(d={});d.isPreload=a.Lb();b=a.h.networkingEngine.request(c,b,d);wh(a.aa,b);return b}function Yw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
|
|
1182
1185
|
function $w(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;return P(function(B){switch(B.g){case 1:if("video/mp2t"==c)throw new U(2,4,4040);if(vc())throw new U(2,4,4041);g=Kv(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return B.return(null);k=Rv(d(),Kv(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Mc(Kc(k[0].split("data:text/plain;base64,").pop()));B.B(2);break}m=k.sort().join("");a.sa.has(m)||(n=Dh(k,a.g.retryParameters),p=Nw(a,n,6).promise,a.sa.set(m,p));return G(B,
|
|
1183
1186
|
a.sa.get(m),3);case 3:r=B.h,l=Mc(r.data);case 2:u="00000000000000000000000000000000";if(!e){B.B(4);break}if(a.Ha.has(e)){v=a.Ha.get(e);B.B(5);break}w=cm(e.R(),e.Hb(),e.Eb(),a.g.retryParameters);y=Jh;return G(B,Nw(a,w,y,{type:0}).promise,6);case 6:z=B.h,v=am(z.data),a.Ha.set(e,v);case 5:v&&(u=v);case 4:return C=new Map,C.set(u,l),A="cenc","SAMPLE-AES"==g&&(A="cbcs"),B.return(Sc(C,A))}})}S("shaka.hls.HlsParser",bw);
|
|
1184
1187
|
var Mw={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},rx={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",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
|
|
1185
1188
|
vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},tx=new Set(["video/mp2t"].concat(x(Cf))),Zw={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new U(2,4,4040);if(vc())throw new U(2,4,4041);b=Kv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");return Rc("com.apple.fps",c,[{initDataType:"sinf",initData:new Uint8Array(0),
|
|
1186
1189
|
keyId:null}],Kv(a,"URI"))},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Kv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=Kv(a,"URI");b=aw(b.split("?")[0]);b=Ib(b.data);c=Rc("com.widevine.alpha",c,[{initDataType:"cenc",initData:b}]);if(a=Jv(a,"KEYID"))c.keyIds=new Set([a.toLowerCase().substr(2)]);return c},"com.microsoft.playready":function(a){var b=Kv(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
|
|
1187
|
-
var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=Kv(a,"URI");a=aw(a.split("?")[0]);a=Ib(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=fi(a,b,new Set,0);return Rc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dw="VOD",ox="EVENT",Ow="LIVE",jw={
|
|
1190
|
+
var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=Kv(a,"URI");a=aw(a.split("?")[0]);a=Ib(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=fi(a,b,new Set,0);return Rc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dw="VOD",ox="EVENT",Ow="LIVE",jw={Mi:dw,$k:ox,ll:Ow};$i["application/x-mpegurl"]=function(){return new bw};$i["application/vnd.apple.mpegurl"]=function(){return new bw};function ux(a){var b=0,c=Nb(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=Ib(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function vx(a){if(a=wx(a))a:{a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=se(b.value,"LA_URL")){a=pe(b);break a}a=""}else a="";return a}
|
|
1188
1191
|
function wx(a){a=Kc(pe(a));a=ux(a).filter(function(b){return b.type===xx})[0];if(!a)return null;a=Ac(a.value,!0);return(a=de(a,"WRMHEADER"))?a:null}var xx=1,yx=(new Map).set("com.microsoft.playready",vx).set("com.microsoft.playready.recommendation",vx).set("com.microsoft.playready.software",vx).set("com.microsoft.playready.hardware",vx);function zx(a){if(!Ax){Ax=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Bx=Cx("ftyp",b,d,b,c);b=Cx("dref",Dx);Ex=Cx("dinf",b)}this.g=a}
|
|
1189
1192
|
function Fx(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Cx;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Gx+1));m=Math.floor(m%(Gx+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(h,4)),[0,0,0,0],x(Hx(n,4)),x(Hx(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Hx(k,2)),[0,0],x(Hx(l,
|
|
1190
1193
|
2)),[0,0]));h=Cx("tkhd",h);k=Cx;n=g.duration*g.timescale;l=Math.floor(n/(Gx+1));n=Math.floor(n%(Gx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(g.timescale,4)),x(Hx(l,4)),x(Hx(n,4)),x(Hx(m,2)),[0,0]));l=Cx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ix;break;case "audio":m=Jx}n=Cx("hdlr",m);a:{switch(g.type){case "video":g=Cx("minf",Cx("vmhd",Kx),Ex,Xx(g));break a;
|
|
@@ -1224,14 +1227,14 @@ function qy(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if("audio"!==b)
|
|
|
1224
1227
|
b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function ry(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function sy(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
|
|
1225
1228
|
function ty(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={jf:void 0},g=e.next())h.jf=g.value,d.push(new gj(h.jf.start,h.jf.end,function(k){return function(){return Qc(a.l,[f.replace("{start time}",String(k.jf.hh))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}S("shaka.mss.MssParser",ky);var py="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),oy={CAPT:"main",SUBT:"alternate",DESC:"main"};
|
|
1226
1229
|
$i["application/vnd.ms-sstr+xml"]=function(){return new ky};function uy(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};var g=null;try{g=Cc(b)}catch(h){}throw new U(401==c||403==c?2:1,1,1001,d,c,g,a,f,e||d);};function vy(){}
|
|
1227
|
-
function wy(a,b,c,d,e,f){var g=new xy;Ph(b.headers).forEach(function(m,n){g.append(n,m)});var h=new yy,k={qh:!1,
|
|
1230
|
+
function wy(a,b,c,d,e,f){var g=new xy;Ph(b.headers).forEach(function(m,n){g.append(n,m)});var h=new yy,k={qh:!1,Ei:!1};a=zy(a,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new oh(a,function(){k.qh=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new Wb(function(){k.Ei=!0;h.abort()});l.X(b/1E3);a.finally(function(){l.stop()})}return a}
|
|
1228
1231
|
function zy(a,b,c,d,e,f,g,h){var k,l,m,n,p,r,u,v,w,y,z,C,A;return P(function(B){switch(B.g){case 1:return k=Ay,l=By,r=p=0,u=Date.now(),ta(B,2),G(B,k(a,c),4);case 4:m=B.h;f(Cy(m.headers));if("HEAD"==c.method){B.B(5);break}v=m.clone().body.getReader();y=(w=m.headers.get("Content-Length"))?parseInt(w,10):0;z=function(D){function E(){var F,L,J,K;return P(function(I){switch(I.g){case 1:return ta(I,2),G(I,v.read(),4);case 4:F=I.h;wa(I,3);break;case 2:return xa(I),I.return();case 3:if(F.done){I.B(5);break}p+=
|
|
1229
|
-
F.value.byteLength;if(!g){I.B(5);break}return G(I,g(F.value),5);case 5:L=Date.now();J=p-r;if(100<L-u&&J>=h||F.done)K=F.done?0:y-p,e(L-u,J,K),r=p,u=L;F.done?D.close():(D.enqueue(F.value),E());H(I)}})}E()};new l({start:z});return G(B,m.arrayBuffer(),6);case 6:n=B.h;case 5:wa(B,3);break;case 2:C=xa(B);if(d.qh)throw new U(1,1,7001,a,b);if(d.
|
|
1232
|
+
F.value.byteLength;if(!g){I.B(5);break}return G(I,g(F.value),5);case 5:L=Date.now();J=p-r;if(100<L-u&&J>=h||F.done)K=F.done?0:y-p,e(L-u,J,K),r=p,u=L;F.done?D.close():(D.enqueue(F.value),E());H(I)}})}E()};new l({start:z});return G(B,m.arrayBuffer(),6);case 6:n=B.h;case 5:wa(B,3);break;case 2:C=xa(B);if(d.qh)throw new U(1,1,7001,a,b);if(d.Ei)throw new U(1,1,1003,a,b);throw new U(1,1,1002,a,C,b);case 3:return A=Cy(m.headers),B.return(uy(A,n,m.status,a,m.url,b))}})}
|
|
1230
1233
|
function Cy(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function Dy(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}S("shaka.net.HttpFetchPlugin",vy);vy.isSupported=Dy;vy.parse=wy;var Ay=window.fetch,yy=window.AbortController,By=window.ReadableStream,xy=window.Headers;
|
|
1231
1234
|
Dy()&&(yh("http",wy,2,!0),yh("https",wy,2,!0),yh("blob",wy,2,!0));function Ey(){}
|
|
1232
1235
|
function Fy(a,b,c,d,e,f){var g=new Gy,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;g.onabort=function(){n(new U(1,1,7001,a,c))};var p=!1;g.onreadystatechange=function(){if(2==g.readyState&&!p){var u=Hy(g);e(u);p=!0}};g.onload=function(u){var v=Hy(g),w=g.response;try{d(Date.now()-h,u.loaded-k,0);var y=uy(v,w,g.status,a,g.responseURL,c);m(y)}catch(z){n(z)}};g.onerror=
|
|
1233
1236
|
function(u){n(new U(1,1,1002,a,u,c))};g.ontimeout=function(){n(new U(1,1,1003,a,c))};g.onprogress=function(u){var v=Date.now(),w=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100<v-h&&y>=w||u.lengthComputable&&u.loaded==u.total)d(v-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=v};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),b.headers[r]);g.send(b.body)});return new oh(l,function(){g.abort();return Promise.resolve()})}
|
|
1234
|
-
function Hy(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}S("shaka.net.HttpXHRPlugin",Ey);Ey.parse=Fy;var Gy=window.XMLHttpRequest;yh("http",Fy,1,!0);yh("https",Fy,1,!0);yh("blob",Fy,1,!0);function Iy(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Jy(a){return a.R().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a
|
|
1237
|
+
function Hy(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}S("shaka.net.HttpXHRPlugin",Ey);Ey.parse=Fy;var Gy=window.XMLHttpRequest;yh("http",Fy,1,!0);yh("https",Fy,1,!0);yh("blob",Fy,1,!0);function Iy(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Jy(a){return a.R().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.$a+":"+a.La}function Ky(a,b){return cm(a.g.R(),a.g.$a,a.g.La,b.streaming.retryParameters)};function Ly(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function My(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Ly.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 Ny(a){var b=this;this.o=a;this.j=new Map;this.i=new Lh(function(){return Oy(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Ly}Ny.prototype.destroy=function(){return this.i.destroy()};function Py(a,b,c){a.m=b;a.l=c}function Oy(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
|
|
1235
1238
|
function Qy(a,b,c,d,e,f){Mh(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return P(function(u){if(1==u.g)return G(u,Ry(a,c),2);h=u.h;if(a.i.g)throw new U(2,9,7001);if(e)for(m in k=Ib(h),l=new ei(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.l(p,r);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Sy(a){return P(function(b){return 1==b.g?G(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
|
|
1236
1239
|
function Ry(a,b){var c,d,e,f;return P(function(g){if(1==g.g)return c=Jh,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),G(g,d.promise,2);f=g.h;Rd(a.h,e);return g.return(f.data)})};function Ty(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new nh;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ty.prototype.abort=function(){var a=this;return P(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return G(b,a.g,4)}if(2!=b.g)return wa(b,0);xa(b);H(b)})};
|
|
1237
1240
|
function Uy(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return P(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return G(g,b(f.key,f.value,f),2)}f.continue();H(g)})}})}Ty.prototype.store=function(){return this.h};Ty.prototype.promise=function(){return this.g};function Vy(a){this.h=a;this.g=[]}Vy.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Wy(a,b){return Xy(a,b,"readwrite")}function Xy(a,b,c){c=a.h.transaction([b],c);var d=new Ty(c,b);a.g.push(d);d.promise().then(function(){Rd(a.g,d)},function(){Rd(a.g,d)});return d};function Yy(a,b,c){this.h=new Vy(a);this.i=b;this.g=c}q=Yy.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Zy(this.i)};q.removeSegments=function(a,b){return $y(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,az(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.wh(e)}))})};q.addManifests=function(){return Zy(this.g)};
|
|
@@ -1241,7 +1244,7 @@ function Zy(a){return Promise.reject(new U(2,9,9011,"Cannot add new value to "+a
|
|
|
1241
1244
|
function $y(a,b,c,d){a=Wy(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={yg:void 0},e=c.next())f.yg=e.value,b.delete(f.yg).onsuccess=function(g){return function(){return d(g.yg)}}(f);return a.promise()}
|
|
1242
1245
|
function az(a,b,c){var d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Xy(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={$e:void 0,Je:void 0},k=h.next())l.Je=k.value,l.$e=e.get(l.Je),l.$e.onsuccess=function(n){return function(){void 0==n.$e.result&&g.push(n.Je);f[n.Je]=n.$e.result}}(l);return G(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function cz(a){this.g=new Vy(a)}cz.prototype.destroy=function(){return this.g.destroy()};cz.prototype.getAll=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Xy(a.g,"session-ids","readonly"),c=[],G(d,Uy(b,function(e,f){c.push(f)}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};cz.prototype.add=function(a){var b=Wy(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
|
|
1243
1246
|
cz.prototype.remove=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Wy(b.g,"session-ids"),G(d,Uy(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):G(d,c.promise(),0)})};function dz(){this.g=new Map}dz.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};dz.prototype.init=function(){var a=this;ez.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
|
|
1244
|
-
function fz(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Mb:d
|
|
1247
|
+
function fz(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Mb:d,ab:f},ab:e})})});if(b)return b;throw new U(2,9,9013,"Could not find a cell that supports add-operations");}function gz(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Mb:d,ab:f},e)})})}
|
|
1245
1248
|
function hz(a,b,c){a=a.g.get(b);if(!a)throw new U(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new U(2,9,9013,"Could not find cell with name "+c);return b}function iz(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function jz(a){var b=Array.from(a.g.keys());if(!b.length)throw new U(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
|
|
1246
1249
|
function kz(a){var b,c,d;return P(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=ez,d.forEach(function(f){(f=f())&&b.push(f)})),G(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):G(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function lz(a,b){ez.set(a,b)}S("shaka.offline.StorageMuxer",dz);dz.unregister=function(a){ez.delete(a)};dz.register=lz;dz.prototype.destroy=dz.prototype.destroy;var ez=new Map;function mz(){Yy.apply(this,arguments)}oa(mz,Yy);mz.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return P(function(g){d=Wy(c.h,c.g);e=d.store();f=new nh;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new U(2,9,9012,"Could not find values for "+a))};return G(g,Promise.all([d.promise(),f]),0)})};
|
|
1247
1250
|
mz.prototype.Cd=function(a){var b,c,d,e,f,g;return P(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=nz(a.periods[c],e),b.push(f);return G(h,su(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
|
|
@@ -1260,7 +1263,7 @@ new rz(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contain
|
|
|
1260
1263
|
9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return G(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return G(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return G(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return G(b,a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return G(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),H(b)}})};
|
|
1261
1264
|
q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};q.getEmeSessionCell=function(){return this.m};
|
|
1262
1265
|
q.erase=function(){var a=this;return P(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return G(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return G(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return G(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return G(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),G(b,vz(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,G(b,a.init(),0)}})};
|
|
1263
|
-
function vz(){var a=new nh,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new U(2,9,9001,b.error));c.preventDefault()};return a}lz("idb",function(){return jc()||ac()||!window.indexedDB?null:new uz});function wz(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}wz.prototype.Mb=function(){return this.i};wz.prototype
|
|
1266
|
+
function vz(){var a=new nh,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new U(2,9,9001,b.error));c.preventDefault()};return a}lz("idb",function(){return jc()||ac()||!window.indexedDB?null:new uz});function wz(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}wz.prototype.Mb=function(){return this.i};wz.prototype.ab=function(){return this.h};wz.prototype.key=function(){return this.l};wz.prototype.toString=function(){return this.j};
|
|
1264
1267
|
function xz(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 wz(b,c,d,Number(a[4])):null};function yz(a,b){this.h=a;this.g=b}
|
|
1265
1268
|
function zz(a,b){var c=new Vk(null,0);c.sb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Az(a,d,e,c);e=b.streams.filter(function(l){return l.type==Wc}).map(function(l){return Bz(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Bz(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
|
|
1266
1269
|
g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}
|
|
@@ -1269,38 +1272,38 @@ b.next())for(g=e.value,e=Bz(a,g,d),g=t(g.variantIds),h=g.next();!h.done;h=g.next
|
|
|
1269
1272
|
function Bz(a,b,c){var d=b.segments.map(function(e){return Cz(a,e,b)});c.Sd(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ql(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,colorGamut:b.colorGamut,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
|
|
1270
1273
|
null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching,fullMimeTypes:new Set([Bf(b.mimeType,b.codecs)])}}
|
|
1271
1274
|
function Cz(a,b,c){var d=new wz("segment",a.h,a.g,b.dataKey);a=new gj(b.startTime,b.endTime,function(){return[d.toString()]},0,null,null!=b.initSegmentKey?Dz(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";return a}function Dz(a,b){var c=new wz("segment",a.h,a.g,b);return new ej(function(){return[c.toString()]},0,null)};function Ez(){this.g=null}q=Ez.prototype;q.configure=function(){};
|
|
1272
|
-
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:d=xz(a);c.g=d;if(null==d||"manifest"!=d.g)throw new U(2,1,9004,a);e=new dz;ua(m,2);return G(m,e.init(),4);case 4:return G(m,hz(e,d.Mb(),d
|
|
1275
|
+
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:d=xz(a);c.g=d;if(null==d||"manifest"!=d.g)throw new U(2,1,9004,a);e=new dz;ua(m,2);return G(m,e.init(),4);case 4:return G(m,hz(e,d.Mb(),d.ab()),5);case 5:return f=m.h,G(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new yz(d.Mb(),d.ab()),l=zz(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return ya(m),G(m,e.destroy(),7);case 7:za(m,0)}})};q.stop=function(){return Promise.resolve()};
|
|
1273
1276
|
q.update=function(){};
|
|
1274
|
-
q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:return d=c.g,e=new dz,ta(m,2,3),G(m,e.init(),5);case 5:return G(m,hz(e,d.Mb(),d
|
|
1277
|
+
q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:return d=c.g,e=new dz,ta(m,2,3),G(m,e.init(),5);case 5:return G(m,hz(e,d.Mb(),d.ab()),6);case 6:return f=m.h,G(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.B(3);break}return G(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),G(m,e.destroy(),10);case 10:za(m,0);break;case 2:xa(m),m.B(3)}})};
|
|
1275
1278
|
q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};$i["application/x-offline-manifest"]=function(){return new Ez};function Fz(){}function Gz(a){var b=xz(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=rh(a)):a=b&&"segment"==b.g?Hz(b.key(),b):ph(new U(2,1,9004,a));return a}
|
|
1276
|
-
function Hz(a,b){var c=new dz;return rh(void 0).Ua(function(){return c.init()}).Ua(function(){return hz(c,b.Mb(),b
|
|
1277
|
-
function Kz(a,b,c){var d,e;return P(function(f){switch(f.g){case 1:return d=new gi({
|
|
1278
|
-
h.g)return ta(h,2),G(h,Ai(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);H(h)})})),6);case 6:return G(f,d.destroy(),7);case 7:return f.return(e)}})}function Jz(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Sd(a.audioCapabilities,b.audioCapabilities,c)&&Sd(a.videoCapabilities,b.videoCapabilities,c)};function Lz(a,b,c){var d=b.presentationTimeline.getDuration();b=Mz(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Nz(a,b){var c=zz(new yz(a.Mb(),a
|
|
1279
|
+
function Hz(a,b){var c=new dz;return rh(void 0).Ua(function(){return c.init()}).Ua(function(){return hz(c,b.Mb(),b.ab())}).Ua(function(d){return d.getSegments([b.key()])}).Ua(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}S("shaka.offline.OfflineScheme",Fz);Fz.plugin=Gz;yh("offline",Gz);function Iz(a,b,c){var d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,Jz(v.info,p)){v.sessionIds.push(p.sessionId);r=!0;break}r||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=Kz(a,b,g);return G(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
|
|
1280
|
+
function Kz(a,b,c){var d,e;return P(function(f){switch(f.g){case 1:return d=new gi({hc:b,onError:function(){},Ue:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),G(f,oi(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),G(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],G(f,Promise.all(c.sessionIds.map(function(g){return P(function(h){if(1==
|
|
1281
|
+
h.g)return ta(h,2),G(h,Ai(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);H(h)})})),6);case 6:return G(f,d.destroy(),7);case 7:return f.return(e)}})}function Jz(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Sd(a.audioCapabilities,b.audioCapabilities,c)&&Sd(a.videoCapabilities,b.videoCapabilities,c)};function Lz(a,b,c){var d=b.presentationTimeline.getDuration();b=Mz(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Nz(a,b){var c=zz(new yz(a.Mb(),a.ab()),b),d=b.appMetadata||{};c=Mz(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
|
|
1279
1282
|
function Mz(a){var b=[],c=Jg(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(zg(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Ag(c.value));return b};function Oz(){this.g={}}function Pz(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Qz(a,b){a.g[b.id]=b.bandwidth||2048}function Rz(a,b){a=a.g[b];null==a&&(a=0);return a};function Sz(a){var b=this;if(a&&a.constructor!=Y)throw new U(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Fb()):(this.h=Ym(),this.g=new xh);this.i=[];this.j=[];var c=!a;this.l=new Lh(function(){var d,e,f,g,h;return P(function(k){switch(k.g){case 1:return G(k,Promise.all(b.j.map(function(l){return Oy(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return G(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return G(k,b.g.destroy(),4);
|
|
1280
1283
|
case 4:b.h=null,b.g=null,H(k)}})})}function Tz(){if(Xb())a:{var a=t(ez.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Sz.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));return bn(this.h,a)};q.getConfiguration=function(){var a=Ym();bn(a,this.h,Ym());return a};q.Fb=function(){return this.g};
|
|
1281
1284
|
q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Ny(this.g);this.j.push(f);b=Uz(this,a,b||{},function(){var g;return P(function(h){if(1==h.g)return c?h.B(2):G(h,xn(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Zi(a,c||null);return h.return(g())})},e,f);b=new oh(b,function(){return Oy(f)});b.finally(function(){Rd(d.j,f)});return Vz(this,b)};
|
|
1282
|
-
function Uz(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){switch(A.g){case 1:return Wz(),h=g=null,k=new dz,n=m=l=null,ta(A,2,3),G(A,d(),5);case 5:return g=A.h,G(A,Xz(a,b,g,e),6);case 6:p=A.h;Yz(a);r=!p.presentationTimeline.
|
|
1283
|
-
p,b,c,e,f),v=u.
|
|
1285
|
+
function Uz(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){switch(A.g){case 1:return Wz(),h=g=null,k=new dz,n=m=l=null,ta(A,2,3),G(A,d(),5);case 5:return g=A.h,G(A,Xz(a,b,g,e),6);case 6:p=A.h;Yz(a);r=!p.presentationTimeline.U()&&!p.presentationTimeline.Nc();if(!r)throw new U(2,9,9005,b);return G(A,a.bd(p,function(B){n=n||B},e),7);case 7:h=A.h;Yz(a);if(n)throw n;return G(A,Zz(p,h,e),8);case 8:return G(A,k.init(),9);case 9:return Yz(a),G(A,fz(k),10);case 10:return l=A.h,Yz(a),u=$z(h,
|
|
1286
|
+
p,b,c,e,f),v=u.Vj,w=u.eh,G(A,l.ab.addManifests([v]),11);case 11:y=A.h;Yz(a);m=y[0];Yz(a);if(n)throw n;return G(A,aA(a,w,m,v,f,e,l.ab,p,h),12);case 12:return Yz(a),bA(p,v,h,e),G(A,l.ab.updateManifest(m,v),13);case 13:return Yz(a),z=new wz("manifest",l.path.Mb,l.path.ab,m),A.return(Nz(z,v));case 3:return ya(A),G(A,k.destroy(),14);case 14:if(!g){A.B(15);break}return G(A,g.stop(),15);case 15:if(!h){A.B(17);break}return G(A,h.destroy(),17);case 17:za(A,0);break;case 2:C=xa(A);if(null==m){A.B(19);break}return G(A,
|
|
1284
1287
|
cA(m),19);case 19:throw n||C;}})}
|
|
1285
1288
|
function aA(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,u,v,w,y,z;return P(function(C){switch(C.g){case 1:l={};m=0;n=function(A,B){var D,E,F,L,J,K,I;return P(function(N){if(1==N.g){D=t(A);E=D.next();for(F={};!E.done;F={dd:void 0},E=D.next())F.dd=E.value,L=Ky(F.dd,f),J=F.dd.i,K=F.dd.h,I=function(M){return function(O){var Q,R,X;return P(function(ca){if(1==ca.g)return G(ca,g.addSegments([{data:O}]),2);Q=ca.h;Yz(a);R=M.dd.g;X=Jy(R);l[X]=Q[0];m+=O.byteLength;H(ca)})}}(F),Qy(e,F.dd.groupId,L,J,K,I);return G(N,Sy(e),
|
|
1286
1289
|
2)}if(!B)return N.B(0);Yz(a);bA(h,d,k,f);return G(N,g.updateManifest(c,d),0)})};p=!1;ta(C,2);if(!dA(h)||!p||eA(h)){C.B(4);break}return G(C,n(b.filter(function(A){return A.h}),!0),5);case 5:return Yz(a),b=b.filter(function(A){return!A.h}),r=l,u=m,l={},m=0,G(C,fA(g,c,d,r,u,function(){return Yz(a)}),6);case 6:Yz(a);case 4:if(p){C.B(7);break}return G(C,n(b,!1),8);case 8:return Yz(a),v=l,w=m,l={},m=0,G(C,fA(g,c,d,v,w,function(){return Yz(a)}),9);case 9:Yz(a);case 7:wa(C,0);break;case 2:return y=xa(C),
|
|
1287
|
-
z=Object.values(l),G(C,g.removeSegments(z,function(){}),10);case 10:throw y;}})}function cA(a){var b,c,d,e;return P(function(f){switch(f.g){case 1:return b=new dz,G(f,b.init(),2);case 2:return G(f,fz(b),3);case 3:return c=f.h,d=new wz("manifest",c.path.Mb,c.path
|
|
1290
|
+
z=Object.values(l),G(C,g.removeSegments(z,function(){}),10);case 10:throw y;}})}function cA(a){var b,c,d,e;return P(function(f){switch(f.g){case 1:return b=new dz,G(f,b.init(),2);case 2:return G(f,fz(b),3);case 3:return c=f.h,d=new wz("manifest",c.path.Mb,c.path.ab,a),G(f,b.destroy(),4);case 4:return e=new Sz,G(f,e.remove(d.toString()),0)}})}
|
|
1288
1291
|
function fA(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,v,w;return P(function(y){switch(y.g){case 1:g=!1;ta(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())r=p.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&
|
|
1289
1292
|
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return G(y,a.updateManifest(b,c),4);case 4:g=!0;f();wa(y,0);break;case 2:return v=xa(y),G(y,cA(b),5);case 5:if(g){y.B(6);break}w=Object.values(d);return G(y,a.removeSegments(w,function(){}),6);case 6:throw v;}})}
|
|
1290
1293
|
function Zz(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O;return P(function(Q){switch(Q.g){case 1:return d={width:Infinity,height:Infinity},fg(a,c.restrictions,d),G(Q,ig(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;$f(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(zg(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())r=p.value,
|
|
1291
1294
|
e.push(Ag(r));u=t(a.imageStreams);for(v=u.next();!v.done;v=u.next())w=v.value,e.push(Bg(w));return G(Q,c.offline.trackSelectionCallback(e),3);case 3:y=Q.h;z=a.presentationTimeline.getDuration();C=0;A=t(y);for(B=A.next();!B.done;B=A.next())D=B.value,E=D.bandwidth*z/8,C+=E;ta(Q,4);return G(Q,c.offline.downloadSizeCallback(C),6);case 6:F=Q.h;if(!F)throw new U(2,9,9014);wa(Q,5);break;case 4:L=xa(Q);if(L instanceof U)throw L;throw new U(2,9,9015);case 5:J=new Set;K=new Set;I=new Set;N=t(y);for(M=N.next();!M.done;M=
|
|
1292
1295
|
N.next())O=M.value,"variant"==O.type&&J.add(O.id),"text"==O.type&&K.add(O.id),"image"==O.type&&I.add(O.id);a.variants=a.variants.filter(function(R){return J.has(R.id)});a.textStreams=a.textStreams.filter(function(R){return K.has(R.id)});a.imageStreams=a.imageStreams.filter(function(R){return I.has(R.id)});gA(a);H(Q)}})}
|
|
1293
1296
|
function $z(a,b,c,d,e,f){var g=Lz(c,b,d),h=e.offline.progressCallback;Py(f,function(r,u){g.size=u;h(g,r)},function(r,u){k&&e.offline.usePersistentLicense&&l==u&&wi(a,"cenc",r)});var k=dA(b)&&!eA(b),l=null;k&&(l=hA.get(a.g.keySystem));for(var m=new Oz,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Qz(m,p.value);n=t(b.variants);for(p=n.next();!p.done;p=n.next())Pz(m,p.value);m=iA(f,m,b,e);f=m.streams;m=m.eh;n=a.g;p=e.offline.usePersistentLicense;
|
|
1294
|
-
n&&p&&(n.initData=[]);return{
|
|
1297
|
+
n&&p&&(n.initData=[]);return{Vj:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Gd(),streams:f,sessionIds:p?Fi(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},eh:m}}function dA(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
|
|
1295
1298
|
function eA(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function bA(a,b,c,d){b.expiration=c.Gd();c=Fi(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(dA(a)&&d.offline.usePersistentLicense&&!c.length)throw new U(2,9,9007);}q.remove=function(a){return jA(this,kA(this,a))};
|
|
1296
|
-
function kA(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Wz();c=xz(b);if(null==c||"manifest"!=c.g)throw new U(2,9,9004,b);d=c;e=new dz;ua(k,2);return G(k,e.init(),4);case 4:return G(k,hz(e,d.Mb(),d
|
|
1299
|
+
function kA(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Wz();c=xz(b);if(null==c||"manifest"!=c.g)throw new U(2,9,9004,b);d=c;e=new dz;ua(k,2);return G(k,e.init(),4);case 4:return G(k,hz(e,d.Mb(),d.ab()),5);case 5:return f=k.h,G(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],G(k,Promise.all([lA(a,h,e),mA(f,d,h)]),2);case 2:return ya(k),G(k,e.destroy(),8);case 8:za(k,0)}})}
|
|
1297
1300
|
function nA(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Bf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Bf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function lA(a,b,c){return P(function(d){return G(d,oA(a.g,a.h.drm,c,b),0)})}
|
|
1298
|
-
function mA(a,b,c){function d(){}var e=pA(c);Nz(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.
|
|
1301
|
+
function mA(a,b,c){function d(){}var e=pA(c);Nz(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.pk=function(){return jA(this,qA(this))};
|
|
1299
1302
|
function qA(a){var b,c,d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:return Wz(),b=a.g,c=a.h.drm,d=new dz,e=!1,ua(n,2),G(n,d.init(),4);case 4:f=[],iz(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.B(2);break}k=h.value;return G(n,k.getAll(),8);case 8:return l=n.h,G(n,Iz(c,b,l),9);case 9:return m=n.h,G(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.B(5);break;case 2:return ya(n),G(n,d.destroy(),11);case 11:za(n,3);break;case 3:return n.return(!e)}})}
|
|
1300
|
-
q.list=function(){return jA(this,rA())};function rA(){var a,b,c;return P(function(d){switch(d.g){case 1:return Wz(),a=[],b=new dz,ua(d,2),G(d,b.init(),4);case 4:return c=Promise.resolve(),gz(b,function(e,f){c=c.then(function(){var g;return P(function(h){if(1==h.g)return G(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Nz(new wz("manifest",e.Mb,e
|
|
1303
|
+
q.list=function(){return jA(this,rA())};function rA(){var a,b,c;return P(function(d){switch(d.g){case 1:return Wz(),a=[],b=new dz,ua(d,2),G(d,b.init(),4);case 4:return c=Promise.resolve(),gz(b,function(e,f){c=c.then(function(){var g;return P(function(h){if(1==h.g)return G(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Nz(new wz("manifest",e.Mb,e.ab,l),k);a.push(k)});H(h)})})}),G(d,c,2);case 2:return ya(d),G(d,b.destroy(),6);case 6:za(d,3);break;case 3:return d.return(a)}})}
|
|
1301
1304
|
function Xz(a,b,c,d){var e,f,g,h,k;return P(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},
|
|
1302
1305
|
onMetadata:function(){},disableStream:function(){},addFont:function(){}},c.configure(d.manifest),Yz(a),G(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Yz(a),k=sA(h),G(l,Promise.all(ib(k,function(m){return m.createSegmentIndex()})),3);Yz(a);if(e)throw e;return l.return(h)})}
|
|
1303
|
-
q.bd=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=new gi({
|
|
1306
|
+
q.bd=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=new gi({hc:d.g,onError:b,Ue:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(c.drm),G(f,li(e,a.variants,c.offline.usePersistentLicense),2)):3!=f.g?G(f,yi(e),3):f.return(e)})};
|
|
1304
1307
|
function iA(a,b,c,d){var e=new Map,f=sA(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=tA(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),eh:Array.from(e.values())}}
|
|
1305
1308
|
function tA(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,
|
|
1306
1309
|
audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;uA(d,c.presentationTimeline.Gb(),function(l){var m=Jy(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Rz(b,d.id)*p;p=My(a.g,p);f.set(m,new Iy(l,p,k,!1))}l.ma&&(n=Jy(l.ma),f.has(n)||(p=.5*Rz(b,d.id),p=My(a.g,p),f.set(n,new Iy(l.ma,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,
|
|
@@ -1309,7 +1312,7 @@ function jA(a,b){return P(function(c){if(1==c.g)return a.i.push(b),ua(c,2),G(c,b
|
|
|
1309
1312
|
function oA(a,b,c,d){var e,f,g;return P(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=jz(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:nA(d,!1),videoCapabilities:nA(d,!0)}});return G(h,Iz(b,a,f),2)}return 3!=h.g?(g=h.h,G(h,e.remove(g),3)):G(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
|
|
1310
1313
|
function sA(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
|
|
1311
1314
|
function gA(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}S("shaka.offline.Storage",Sz);Sz.deleteAll=function(){var a;return P(function(b){return 1==b.g?(a=new dz,ua(b,2),G(b,kz(a),2)):5!=b.g?(ya(b),G(b,a.destroy(),5)):za(b,0)})};
|
|
1312
|
-
Sz.prototype.list=Sz.prototype.list;Sz.prototype.removeEmeSessions=Sz.prototype.
|
|
1315
|
+
Sz.prototype.list=Sz.prototype.list;Sz.prototype.removeEmeSessions=Sz.prototype.pk;Sz.prototype.remove=Sz.prototype.remove;Sz.prototype.store=Sz.prototype.store;Sz.prototype.getNetworkingEngine=Sz.prototype.Fb;Sz.prototype.getConfiguration=Sz.prototype.getConfiguration;Sz.prototype.configure=Sz.prototype.configure;Sz.prototype.destroy=Sz.prototype.destroy;Sz.support=Tz;
|
|
1313
1316
|
var hA=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95");jq.offline=Tz;function vA(){}function wA(){for(var a=t(xA),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Za("Error installing polyfill!",c)}}}function yA(a,b){a={priority:b||0,callback:a};for(b=0;b<xA.length;b++)if(xA[b].priority<a.priority){xA.splice(b,0,a);return}xA.push(a)}S("shaka.polyfill",vA);vA.register=yA;vA.installAll=wA;var xA=[];function zA(){}function AA(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())BA(b.value)}function BA(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}vA.Aria=zA;zA.install=AA;yA(AA);function CA(){}function DA(){EA()}vA.EncryptionScheme=CA;CA.install=DA;yA(DA,-2);function FA(){}
|
|
1314
1317
|
function GA(){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}}),
|
|
1315
1318
|
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",HA);document.addEventListener("webkitfullscreenerror",HA);document.addEventListener("mozfullscreenchange",HA);document.addEventListener("mozfullscreenerror",HA);document.addEventListener("MSFullscreenChange",HA);document.addEventListener("MSFullscreenError",HA)}}
|
|
@@ -1335,10 +1338,10 @@ iB;window.shakaMediaKeysPolyfill=oB}};
|
|
|
1335
1338
|
function jB(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
|
|
1336
1339
|
g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
|
|
1337
1340
|
jB.prototype.createMediaKeys=function(){var a=new nB(this.keySystem);return Promise.resolve(a)};jB.prototype.getConfiguration=function(){return this.g};function nB(a){this.h=new WebKitMediaKeys(a);this.g=new sd}nB.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new pB(this.h,a)};nB.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
|
|
1338
|
-
function lB(a,b){a.g.
|
|
1341
|
+
function lB(a,b){a.g.Za();if(!b)return Promise.resolve();a.g.s(b,"webkitneedkey",mB);try{return bl(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}nB.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function pB(a){hb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new sd;this.sessionId="";this.expiration=NaN;this.closed=new nh;this.keyStatuses=new qB}oa(pB,hb);q=pB.prototype;
|
|
1339
1342
|
q.generateRequest=function(a,b){var c=this;this.h=new nh;try{var d=this.l.createSession("video/mp4",Ib(b));this.i=d;this.sessionId=d.sessionId||"";this.j.s(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.sc()?"license-request":"license-renewal").set("message",Jb(e.message));e=new T("message",e);c.dispatchEvent(e)});this.j.s(d,"webkitkeyadded",function(){c.g&&(rB(c,"usable"),c.g.resolve(),c.g=null)});this.j.s(d,"webkitkeyerror",
|
|
1340
1343
|
function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:rB(c,"output-not-allowed");break;default:rB(c,"internal-error")}});rB(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
|
|
1341
|
-
q.update=function(a){this.g=new nh;try{this.i.update(Ib(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.
|
|
1344
|
+
q.update=function(a){this.g=new nh;try{this.i.update(Ib(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Za()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function rB(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b)}
|
|
1342
1345
|
function qB(){this.size=0;this.g=void 0}q=qB.prototype;q.sc=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,Tb.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Tb.value();return this.g&&Gb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var oB="apple";function sB(){}function tB(){window.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||ec()||bc("Tizen 4")||bc("Tizen 5.0")||hc())&&(MediaKeys.prototype.setServerCertificate=uB)}function uB(){return Promise.resolve(!1)}vA.PatchedMediaKeysCert=sB;sB.install=tB;yA(tB);function vB(){}function wB(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=xB,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=yB,window.MediaKeys=zB,window.MediaKeySystemAccess=AB,window.shakaMediaKeysPolyfill=BB)}function xB(){return Promise.reject(Error("The key system specified is not supported."))}
|
|
1343
1346
|
function yB(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}vA.PatchedMediaKeysNop=vB;vB.install=wB;function zB(){throw new TypeError("Illegal constructor.");}zB.prototype.createSession=function(){};zB.prototype.setServerCertificate=function(){};zB.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function AB(){this.keySystem="";throw new TypeError("Illegal constructor.");}AB.prototype.getConfiguration=function(){};
|
|
1344
1347
|
AB.prototype.createMediaKeys=function(){};var BB="nop";yA(wB,-10);function CB(){}
|
|
@@ -1347,7 +1350,7 @@ function KB(a){var b=EB;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}functi
|
|
|
1347
1350
|
function IB(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
|
|
1348
1351
|
l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
|
|
1349
1352
|
d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}IB.prototype.createMediaKeys=function(){var a=new HB(this.g);return Promise.resolve(a)};IB.prototype.getConfiguration=function(){return this.h};function HB(a){this.l=a;this.h=null;this.g=new sd;this.i=[];this.j=new Map}
|
|
1350
|
-
function LB(a,b){a.h=b;a.g.
|
|
1353
|
+
function LB(a,b){a.h=b;a.g.Za();var c=EB;b&&(a.g.s(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Jb(d.initData);a.h.dispatchEvent(e)}),a.g.s(b,c+"keymessage",function(d){var e=MB(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.sc()?"licenserequest":"licenserenewal").set("message",d.message),d=new T("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.s(b,c+"keyadded",function(d){(d=MB(a,d.sessionId))&&d.ready()}),
|
|
1351
1354
|
a.g.s(b,c+"keyerror",function(d){var e=MB(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?NB(e,"output-restricted"):1==f?NB(e,"expired"):NB(e,"internal-error"))}}))}
|
|
1352
1355
|
HB.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new OB(b,this.l,a);this.i.push(a);return a};HB.prototype.setServerCertificate=function(){return Promise.resolve(!1)};HB.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
|
|
1353
1356
|
function MB(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 OB(a,b,c){hb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new nh;this.keyStatuses=new PB}oa(OB,hb);q=OB.prototype;q.ready=function(){NB(this,"usable");this.g&&this.g.resolve();this.g=null};
|
|
@@ -1360,9 +1363,9 @@ function YB(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){doc
|
|
|
1360
1363
|
function UB(){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 XB(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
|
|
1361
1364
|
function VB(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function WB(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}vA.PiPWebkit=SB;SB.install=TB;yA(TB);function ZB(){}function $B(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=aC))}function aC(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}vA.RandomUUID=ZB;ZB.install=$B;yA($B);function bC(){}function cC(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:dC})}function dC(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}vA.Symbol=bC;bC.install=cC;yA(cC);function eC(){}function fC(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}vA.VideoPlayPromise=eC;eC.install=fC;yA(fC);function gC(){}function hC(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||hc())&&(a.getVideoPlaybackQuality=iC)}}function iC(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}vA.VideoPlaybackQuality=gC;gC.install=hC;yA(hC);function jC(){}function kC(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=lC;else if(6==b)a=mC;else{try{var c=!!lC(1,2,"")}catch(d){c=!1}c&&(a=lC)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function lC(a,b,c){return new window.TextTrackCue(a,b,c)}function mC(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}vA.VTTCue=jC;jC.install=kC;yA(kC);function nC(){}nC.prototype.parseInit=function(){};nC.prototype.setSequenceMode=function(){};nC.prototype.setManifestType=function(){};nC.prototype.parseMedia=function(a,b){var c=null,d=[];a=zc(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=oC.exec(e))){var f=pC.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Re(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
|
|
1362
1365
|
S("shaka.text.LrcTextParser",nC);nC.prototype.parseMedia=nC.prototype.parseMedia;nC.prototype.setManifestType=nC.prototype.setManifestType;nC.prototype.setSequenceMode=nC.prototype.setSequenceMode;nC.prototype.parseInit=nC.prototype.parseInit;var oC=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,pC=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Qf["application/x-subtitle-lrc"]=function(){return new nC};function qC(){}qC.prototype.parseInit=function(){};qC.prototype.setSequenceMode=function(){};qC.prototype.setManifestType=function(){};
|
|
1363
|
-
qC.prototype.parseMedia=function(a,b,c,d){var e=zc(a);a=[];if(""==e)return a;var f=de(e,"tt");if(!f)throw new U(2,2,2005,"Failed to parse TTML.");e=re(f,"body")[0];if(!e)return[];var g=xe(f,rC,"frameRate"),h=xe(f,rC,"subFrameRate"),k=xe(f,rC,"frameRateMultiplier"),l=xe(f,rC,"tickRate"),m=xe(f,rC,"cellResolution"),n=f.attributes["xml:space"]||"default",p=xe(f,sC,"extent");if("default"!=n&&"preserve"!=n)throw new U(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new tC(g,h,k,l);m=uC(m);
|
|
1364
|
-
"metadata")[0];h=(h?h.children:[]).filter(function(v){return"\n"!=v});k=re(f,"style");f=re(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=vC(u.value,k,p))&&l.push(u);if(oe(e,"p").length)throw new U(2,2,2001,"<p> can only be inside <div> in TTML");p=t(oe(e,"div"));for(r=p.next();!r.done;r=p.next())if(oe(r.value,"span").length)throw new U(2,2,2001,"<span> can only be inside <p> in TTML");if(b=wC(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),
|
|
1365
|
-
return a};
|
|
1366
|
+
qC.prototype.parseMedia=function(a,b,c,d){var e=zc(a);a=[];if(""==e)return a;var f=de(e,"tt",!0);if(!f)throw new U(2,2,2005,"Failed to parse TTML.");e=re(f,"body")[0];if(!e)return[];var g=xe(f,rC,"frameRate"),h=xe(f,rC,"subFrameRate"),k=xe(f,rC,"frameRateMultiplier"),l=xe(f,rC,"tickRate"),m=xe(f,rC,"cellResolution"),n=f.attributes["xml:space"]||"default",p=xe(f,sC,"extent");if("default"!=n&&"preserve"!=n)throw new U(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new tC(g,h,k,l);m=uC(m);
|
|
1367
|
+
h=re(f,"metadata")[0];h=(h?h.children:[]).filter(function(v){return"\n"!=v});k=re(f,"style");f=re(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=vC(u.value,k,p))&&l.push(u);if(oe(e,"p").length)throw new U(2,2,2001,"<p> can only be inside <div> in TTML");p=t(oe(e,"div"));for(r=p.next();!r.done;r=p.next())if(oe(r.value,"span").length)throw new U(2,2,2001,"<span> can only be inside <p> in TTML");if(b=wC(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),
|
|
1368
|
+
a.push(b);return a};
|
|
1366
1369
|
function wC(a,b,c,d,e,f,g,h,k,l,m,n,p){var r=l;if(me(a)){if(!m)return null;var u={tagName:"span",children:[pe(a)],attributes:{},parent:null}}else u=a;for(var v=null,w=t(xC),y=w.next();!y.done&&!(v=yC(u,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=null;y=xe(u,xC,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){w=parseInt(y.split(":").pop(),10)-1;if(w>=p.length)return null;w=p[w]}else n&&y&&!y.startsWith("#")&&(z=new ob(n),y=new ob(y),(y=z.resolve(y).toString())&&
|
|
1367
1370
|
(w=y));if("p"==a.tagName||v||w)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(me);h=[];if(!z)for(var C=t(u.children),A=C.next();!A.done;A=C.next())(A=wC(A.value,b,c,d,e,f,g,y,k,u,m,n,p))&&h.push(A);d=null!=l;n=pe(u);n=u.children.length&&n&&/\S/.test(n);C=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(C||n||"br"==u.tagName||0!=h.length||d&&!y))return null;p=zC(u,c);n=p.start;for(p=p.end;r&&r.tagName&&"tt"!=r.tagName;)p=AC(r,c,n,p),n=p.start,
|
|
1368
1371
|
p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!C&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new Re(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Gc(pe(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new Re(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=yC(u,"region",f,"")[0];if(u.attributes.region&&
|
|
@@ -1395,15 +1398,15 @@ r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=l
|
|
|
1395
1398
|
function YC(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Te:a.textAlign=of[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
|
|
1396
1399
|
b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Se);else if(d=/^region:(.*)$/.exec(b)){if(b=ZC(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=qf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=We,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()])}
|
|
1397
1400
|
function ZC(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}S("shaka.text.VttTextParser",XC);XC.prototype.parseMedia=XC.prototype.parseMedia;XC.prototype.setManifestType=XC.prototype.setManifestType;XC.prototype.setSequenceMode=XC.prototype.setSequenceMode;XC.prototype.parseInit=XC.prototype.parseInit;Qf["text/vtt"]=function(){return new XC};Qf['text/vtt; codecs="vtt"']=function(){return new XC};Qf['text/vtt; codecs="wvtt"']=function(){return new XC};function $C(){this.g=null}$C.prototype.parseInit=function(a){var b=this,c=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(d){d=zj(d.reader,d.version);b.g=d.timescale}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new U(2,2,2008);if(!c)throw new U(2,2,2008);};$C.prototype.setSequenceMode=function(){};$C.prototype.setManifestType=function(){};
|
|
1398
|
-
$C.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(C){g=!0;c=yj(C.reader,C.version).baseMediaDecodeTime}).W("tfhd",function(C){l=xj(C.reader,C.flags).Ed}).W("trun",function(C){h=!0;d=Aj(C.reader,C.version,C.flags).
|
|
1401
|
+
$C.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(C){g=!0;c=yj(C.reader,C.version).baseMediaDecodeTime}).W("tfhd",function(C){l=xj(C.reader,C.flags).Ed}).W("trun",function(C){h=!0;d=Aj(C.reader,C.version,C.flags).ii}).box("mdat",di(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new U(2,2,2008);a=c;for(var m=new Rh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=
|
|
1399
1402
|
p.value;var r=p.Og||l,u=p.bf?c+p.bf:a;a=u+(r||0);var v=0;do{var w=m.T();v+=w;var y=m.T(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Pb(w-8)):m.skip(w-8);r&&z&&(w=aD(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function aD(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=zc(g)})).box("iden",di(function(g){e=zc(g)})).box("sttg",di(function(g){f=zc(g)})).parse(a);return d?bD(d,e,f,b,c):null}
|
|
1400
1403
|
function bD(a,b,c,d,e){a=new Re(d,e,a);cf(a);b&&(a.id=b);if(c)for(b=new Ud(c),c=Xd(b);c;)YC(a,c,[]),Vd(b),c=Xd(b);return a}S("shaka.text.Mp4VttParser",$C);$C.prototype.parseMedia=$C.prototype.parseMedia;$C.prototype.setManifestType=$C.prototype.setManifestType;$C.prototype.setSequenceMode=$C.prototype.setSequenceMode;$C.prototype.parseInit=$C.prototype.parseInit;Qf['application/mp4; codecs="wvtt"']=function(){return new $C};function cD(){}cD.prototype.parseInit=function(){};cD.prototype.setSequenceMode=function(){};cD.prototype.setManifestType=function(){};cD.prototype.parseMedia=function(a){var b=zc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Ud(c[0]),e=Yd(d),f=Wd(d,/,/g);d=Yd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Re(e,d,c.slice(1).join("\n").trim()))}return a};
|
|
1401
1404
|
S("shaka.text.SbvTextParser",cD);cD.prototype.parseMedia=cD.prototype.parseMedia;cD.prototype.setManifestType=cD.prototype.setManifestType;cD.prototype.setSequenceMode=cD.prototype.setSequenceMode;cD.prototype.parseInit=cD.prototype.parseInit;Qf["text/x-subviewer"]=function(){return new cD};function dD(){this.g=new XC}dD.prototype.parseInit=function(){};dD.prototype.setSequenceMode=function(){};dD.prototype.setManifestType=function(){};dD.prototype.parseMedia=function(a,b,c){a=zc(a);a=eD(a);a=Ib(Dc(a));return this.g.parseMedia(a,b,c,[])};
|
|
1402
1405
|
function eD(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}S("shaka.text.SrtTextParser",dD);dD.srt2webvtt=eD;dD.prototype.parseMedia=dD.prototype.parseMedia;
|
|
1403
1406
|
dD.prototype.setManifestType=dD.prototype.setManifestType;dD.prototype.setSequenceMode=dD.prototype.setSequenceMode;dD.prototype.parseInit=dD.prototype.parseInit;Qf["text/srt"]=function(){return new dD};function fD(){}fD.prototype.parseInit=function(){};fD.prototype.setSequenceMode=function(){};fD.prototype.setManifestType=function(){};
|
|
1404
1407
|
fD.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=zc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=gD.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=hD.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(iD);else if("Style"==a){a=f.split(iD);f={};for(var g=0;g<e.length&&
|
|
1405
|
-
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={
|
|
1406
|
-
l.
|
|
1408
|
+
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={xi:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=hD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(iD);else if("Dialogue"==f){g=g.split(iD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=jD(f.Start);var k=jD(f.End);g=new Re(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.xi=f.Style;(a=d.find(function(l){return function(m){return m.Name==
|
|
1409
|
+
l.xi}}(a)))&&kD(g,a);e.push(g)}return e};
|
|
1407
1410
|
function kD(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=lD(c))a.color=c;if(c=b.BackColour)if(c=lD(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=lf);b.Italic&&(a.fontStyle=mf);b.Underline&&a.textDecoration.push(nf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ye;a.textAlign="start";break;case 2:a.displayAlign=Ye;a.textAlign=Te;break;case 3:a.displayAlign=Ye;a.textAlign="end";break;case 5:a.displayAlign=
|
|
1408
1411
|
"before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Te;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Te;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function lD(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
|
|
1409
1412
|
function jD(a){a=mD.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",fD);fD.prototype.parseMedia=fD.prototype.parseMedia;fD.prototype.setManifestType=fD.prototype.setManifestType;fD.prototype.setSequenceMode=fD.prototype.setSequenceMode;fD.prototype.parseInit=fD.prototype.parseInit;var gD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,hD=/^\s*([^:]+):\s*(.*)/,iD=/\s*,\s*/,mD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
|
|
@@ -1426,20 +1429,20 @@ Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=Oj(c),r=[1,12,
|
|
|
1426
1429
|
k[5],255,225].concat(k,[1],b));return{height:c,width:f,Qa:a,Wa:d,Xa:e}}
|
|
1427
1430
|
function zD(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=Tj(new Gj(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
|
|
1428
1431
|
{data:Nc.apply(Hc,x(c)),Od:b}:null}var yD=[100,110,122,244,44,83,86,118,128,138,139,134];function AD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=BD(b.fullData);a=CD(c.fullData);var f=DD(d.fullData);b=ED(b.fullData,c.fullData,d.fullData,{Eg:e.Eg,dh:e.dh,fg:a.fg,gg:a.gg,Zf:a.Zf,eg:a.eg,$f:a.$f,ag:a.ag,cg:a.cg,dg:a.dg,Tf:a.Tf,Uf:a.Uf,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Mf:a.Mf,Qe:a.Qe,Kf:a.Kf,Gf:a.Gf,Ff:a.Ff,Hg:f.Hg});return{height:a.height,width:a.width,
|
|
1429
|
-
Qa:b,Wa:a.
|
|
1432
|
+
Qa:b,Wa:a.yk,Xa:a.xk}}function BD(a){var b=new Gj(a,!0);Oj(b);Oj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Eg:a+1,dh:b}}
|
|
1430
1433
|
function CD(a){a=new Gj(a,!0);Oj(a);Oj(a);var b=0,c=0,d=0,e=0;Jj(a,4);var f=Jj(a,3);Nj(a);for(var g=Jj(a,2),h=Jj(a,1),k=Jj(a,5),l=Oj(a),m=Oj(a),n=Oj(a),p=Oj(a),r=Oj(a),u=Oj(a),v=Oj(a),w=Oj(a),y=Oj(a),z=Oj(a),C=Oj(a),A=[],B=[],D=0;D<f;D++)A.push(Nj(a)),B.push(Nj(a));if(0<f)for(D=f;8>D;D++)Jj(a,2);for(D=0;D<f;D++)A[D]&&Jj(a,88),B[D]&&Oj(a);V(a);A=V(a);3==A&&Jj(a,1);B=V(a);D=V(a);Nj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var E=V(a),F=V(a),L=V(a);if(Nj(a))for(var J=0;J<=f;J++)V(a),V(a),V(a);else V(a),
|
|
1431
1434
|
V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(J=0;4>J;J++)for(var K=0;K<(3===J?2:6);K++)if(Nj(a)){var I=Math.min(64,1<<4+(J<<1));1<J&&Mj(a);for(var N=0;N<I;N++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(Oj(a),V(a),V(a),Nj(a));J=V(a);for(I=K=0;I<J;I++)if(N=!1,0!==I&&(N=Nj(a)),N){I===J&&V(a);Nj(a);V(a);for(var M=N=0;M<=K;M++){var O=Nj(a),Q=!1;O||(Q=Nj(a));(O||Q)&&N++}K=N}else{M=V(a);N=V(a);K=M+N;for(O=0;O<M;O++)V(a),Nj(a);for(M=0;M<N;M++)V(a),Nj(a)}if(Nj(a))for(J=V(a),K=0;K<J;K++){for(I=0;I<
|
|
1432
1435
|
L+4;I++)Jj(a,1);Jj(a,1)}J=L=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(I=Oj(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<I&&16>=I?(L=N[I-1],J=M[I-1]):255===I&&(L=Jj(a,16),J=Jj(a,16)));Nj(a)&&Nj(a);Nj(a)&&(Jj(a,3),Nj(a),Nj(a)&&(Oj(a),Oj(a),Oj(a)));Nj(a)&&(V(a),V(a));Nj(a);Nj(a);Nj(a);if(I=Nj(a))V(a),V(a),V(a),V(a);if(Nj(a)&&(Jj(a,32),Jj(a,32),Nj(a)&&V(a),Nj(a))){M=!1;I=Nj(a);N=Nj(a);if(I||N){if(M=Nj(a))Oj(a),Jj(a,5),Nj(a),Jj(a,5);Jj(a,4);Jj(a,4);M&&
|
|
1433
|
-
Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(O=0;O<=f;O++){var R=!0;Q=1;Nj(a)||(R=Nj(a));var X=!1;R?V(a):X=Nj(a);X||(Q=V(a)+1);if(I){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(N){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{Zf:C,fg:g,gg:h,eg:k,$f:l,ag:m,cg:n,dg:p,Tf:r,Uf:u,Vf:v,Wf:w,Xf:y,Yf:z,Qe:K,Mf:0,Kf:A,Gf:E,Ff:F,width:B-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),
|
|
1436
|
+
Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(O=0;O<=f;O++){var R=!0;Q=1;Nj(a)||(R=Nj(a));var X=!1;R?V(a):X=Nj(a);X||(Q=V(a)+1);if(I){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(N){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{Zf:C,fg:g,gg:h,eg:k,$f:l,ag:m,cg:n,dg:p,Tf:r,Uf:u,Vf:v,Wf:w,Xf:y,Yf:z,Qe:K,Mf:0,Kf:A,Gf:E,Ff:F,width:B-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),yk:L,xk:J}}
|
|
1434
1437
|
function DD(a){var b=new Gj(a,!0);Oj(b);Oj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Hg:c}}
|
|
1435
1438
|
function ED(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.fg&3)<<6|(d.gg?1:0)<<5|d.eg&31;e[2]=d.$f;e[3]=d.ag;e[4]=d.cg;e[5]=d.dg;e[6]=d.Tf;e[7]=d.Uf;e[8]=d.Vf;e[9]=d.Wf;e[10]=d.Xf;e[11]=d.Yf;e[12]=d.Zf;e[13]=240|(d.Qe&3840)>>8;e[14]=d.Qe&255;e[15]=252|d.Hg&3;e[16]=252|d.Kf&3;e[17]=248|d.Gf&7;e[18]=248|d.Ff&7;e[19]=0;e[20]=0;e[21]=(d.Mf&3)<<6|(d.Eg&7)<<3|(d.dh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
|
|
1436
|
-
255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function FD(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*GD[14*(3===c?3-d:3===d?3:4)+e-1];f=HD[3*(3===c?0:2===c?1:2)+f];c=ID[c][d];var h=JD[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ra:k,
|
|
1439
|
+
255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function FD(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*GD[14*(3===c?3-d:3===d?3:4)+e-1];f=HD[3*(3===c?0:2===c?1:2)+f];c=ID[c][d];var h=JD[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ra:k,wk:8*c*h}}return null}
|
|
1437
1440
|
function KD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function LD(a,b){if(b+1<a.length&&KD(a,b)){var c=FD(a,b),d=4;c&&c.ra&&(d=c.ra);b+=d;return b===a.length||b+1<a.length&&KD(a,b)}return!1}
|
|
1438
1441
|
var GD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],HD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],ID=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],JD=[0,1,1,4];function MD(a){this.i=a;this.h=0;this.g=new Map}q=MD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1439
|
-
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!LD(e,f);f++);var g;for(a=[];f<e.length;){var h=FD(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.ra<=e.length&&a.push({data:e.subarray(f,f+h.ra),size:h.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=h.ra}if(!g)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));e=9E4*g.
|
|
1442
|
+
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!LD(e,f);f++);var g;for(a=[];f<e.length;){var h=FD(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.ra<=e.length&&a.push({data:e.subarray(f,f+h.ra),size:h.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=h.ra}if(!g)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));e=9E4*g.wk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
|
|
1440
1443
|
duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:e,rb:a},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Mp3Transmuxer",MD);MD.prototype.transmux=MD.prototype.transmux;MD.prototype.getOriginalMimeType=MD.prototype.getOriginalMimeType;MD.prototype.convertCodecs=MD.prototype.convertCodecs;MD.prototype.isSupported=MD.prototype.isSupported;
|
|
1441
1444
|
MD.prototype.destroy=MD.prototype.destroy;tf("audio/mpeg",function(){return new MD("audio/mpeg")},zf);function ND(a){this.h=a;this.g=null}q=ND.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Mf(a).split(","),c=Uc("audio",b);b=Uc("video",b);return!c||b||"mp3"!=If(c)?!1:xd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
|
|
1442
|
-
q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.Fd().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.
|
|
1445
|
+
q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.Fd().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.qc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=FD(a,b))?(b+d.ra<=a.length&&(c=Nc(c,a.subarray(b,b+d.ra))),b+=d.ra):b++;return Promise.resolve(c)};S("shaka.transmuxer.MpegTsTransmuxer",ND);ND.prototype.transmux=ND.prototype.transmux;
|
|
1443
1446
|
ND.prototype.getOriginalMimeType=ND.prototype.getOriginalMimeType;ND.prototype.convertCodecs=ND.prototype.convertCodecs;ND.prototype.isSupported=ND.prototype.isSupported;ND.prototype.destroy=ND.prototype.destroy;tf("video/mp2t",function(){return new ND("video/mp2t")},yf);/*
|
|
1444
1447
|
@license
|
|
1445
1448
|
MSS Transmuxer
|
|
@@ -1462,15 +1465,15 @@ if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){v
|
|
|
1462
1465
|
b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:B.Qa,Wa:B.Wa,Xa:B.Xa,data:{Qb:this.g,baseMediaDecodeTime:r,rb:p},stream:b};break;case "hvc":var D=[],E=null,F=[],L=k.Jc();if(!L.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var J=0;J<L.length;J++){var K=L[J],I=K.nalus;F.push.apply(F,x(I));for(var N=!1,M=[],O=!1,Q=t(I),R=Q.next();!R.done;R=Q.next()){var X=R.value;switch(X.type){case 1:case 0:var ca=
|
|
1463
1466
|
O=!0;break;case 19:case 20:case 21:N=ca=O=!0;break;case 32:ca=!0;break;case 33:ca=!0;break;case 34:ca=!0;break;case 35:O=ca=!0;break;case 39:case 40:ca=!0;break;default:ca=!1}if(O&&ca){var sa=X.fullData.byteLength,va=new Uint8Array(4);va[0]=sa>>24&255;va[1]=sa>>16&255;va[2]=sa>>8&255;va[3]=sa&255;M.push(va);M.push(X.fullData)}}var Pa=M.length?{data:Nc.apply(Hc,x(M)),Od:N}:null;if(Pa){null==E&&null!=K.dts&&(E=K.dts);var Ia=void 0;Ia=J+1<L.length?(L[J+1].dts||0)-(K.dts||0):1<L.length?(K.dts||0)-(L[J-
|
|
1464
1467
|
1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Pa.data,size:Pa.data.byteLength,duration:Ia,wb:Math.round((K.pts||0)-(K.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:Pa.Od?2:1,zb:Pa.Od?0:1}})}}var fb=AD(F);if(!fb||null==E)throw new U(2,3,3018,c?c.R()[0]:null);b.height=fb.height;b.width=fb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:fb.Qa,Wa:fb.Wa,Xa:fb.Xa,data:{Qb:this.g,baseMediaDecodeTime:E,rb:D},stream:b}}n&&
|
|
1465
|
-
(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.
|
|
1468
|
+
(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.qc()),kb=Oc.next();!kb.done;kb=Oc.next()){var cc=kb.value,Pc=cc.data;if(Pc){var sb=0;Ea=oD(Pc,sb);if(!Ea)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=Ea.sampleRate;b.channelsCount=Ea.channelCount;null==Ca&&null!==cc.pts&&(Ca=cc.pts);for(;sb<Pc.length;){var Nd=nD(Pc,sb);if(Nd){var Le=Nd.Ee+Nd.ra;sb+Le<=Pc.length&&ab.push({data:Pc.subarray(sb+Nd.Ee,sb+Le),size:Nd.ra,duration:1024,wb:0,flags:{yb:0,
|
|
1466
1469
|
qb:0,pb:0,mb:0,ob:2,zb:0}});sb+=Le}else sb++}}}if(!Ea||null==Ca){if(!k.Jc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ca=9E4*c.startTime;var Me=Uc("audio",b.codecs.split(","));if(!Me||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Me};var fe=qD(Me,b.channelsCount);if(!fe)throw new U(2,3,3018,c?c.R()[0]:null);for(var Pj=Ca+9E4*(c.endTime-c.startTime),ge=Ca;ge<Pj;)ab.push({data:fe,size:fe.byteLength,
|
|
1467
|
-
duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var Qj=Ea.sampleRate,Rj=Ca/9E4*Qj;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qj,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:Rj,rb:ab},stream:b};break;case "ac3":for(var Ah=[],Ne=0,yc=new Uint8Array([]),yk=null,Lx=t(k.
|
|
1470
|
+
duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var Qj=Ea.sampleRate,Rj=Ca/9E4*Qj;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qj,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:Rj,rb:ab},stream:b};break;case "ac3":for(var Ah=[],Ne=0,yc=new Uint8Array([]),yk=null,Lx=t(k.qc()),xo=Lx.next();!xo.done;xo=Lx.next()){var yo=xo.value,zo=yo.data;null==yk&&null!==
|
|
1468
1471
|
yo.pts&&(yk=yo.pts);for(var ag=0;ag<zo.length;){var je=sD(zo,ag);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,Ne=je.sampleRate,yc=je.Da,Ah.push({data:zo.subarray(ag,ag+je.ra),size:je.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ag+=je.ra):ag++}}if(0==Ne||0==yc.byteLength||null==yk)throw new U(2,3,3018,c?c.R()[0]:null);var zH=yk/9E4*Ne;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ne,duration:d,ub:[],Da:yc,Qa:new Uint8Array([]),
|
|
1469
|
-
Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:zH,rb:Ah},stream:b};break;case "ec3":for(var Mx=[],zk=0,Ao=new Uint8Array([]),Ak=null,Nx=t(k.
|
|
1470
|
-
bg++}}if(0==zk||0==Ao.byteLength||null==Ak)throw new U(2,3,3018,c?c.R()[0]:null);var AH=Ak/9E4*zk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zk,duration:d,ub:[],Da:Ao,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:AH,rb:Mx},stream:b};break;case "mp3":for(var Ox=[],Bk,Ck=null,Px=t(k.
|
|
1472
|
+
Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:zH,rb:Ah},stream:b};break;case "ec3":for(var Mx=[],zk=0,Ao=new Uint8Array([]),Ak=null,Nx=t(k.qc()),Bo=Nx.next();!Bo.done;Bo=Nx.next()){var Co=Bo.value,Do=Co.data;null==Ak&&null!==Co.pts&&(Ak=Co.pts);for(var bg=0;bg<Do.length;){var ke=vD(Do,bg);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,zk=ke.sampleRate,Ao=ke.Da,Mx.push({data:Do.subarray(bg,bg+ke.ra),size:ke.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),bg+=ke.ra):
|
|
1473
|
+
bg++}}if(0==zk||0==Ao.byteLength||null==Ak)throw new U(2,3,3018,c?c.R()[0]:null);var AH=Ak/9E4*zk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zk,duration:d,ub:[],Da:Ao,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:AH,rb:Mx},stream:b};break;case "mp3":for(var Ox=[],Bk,Ck=null,Px=t(k.qc()),Eo=Px.next();!Eo.done;Eo=Px.next()){var Fo=Eo.value,Nh=Fo.data;if(Nh){null==Ck&&null!==Fo.pts&&(Ck=Fo.pts);for(var Qe=0;Qe<Nh.length;){var cg=FD(Nh,
|
|
1471
1474
|
Qe);cg?(Bk||(Bk=cg),Qe+cg.ra<=Nh.length&&Ox.push({data:Nh.subarray(Qe,Qe+cg.ra),size:cg.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),Qe+=cg.ra):Qe++}}}if(!Bk||null==Ck)throw new U(2,3,3018,c?c.R()[0]:null);var Qx=Bk.sampleRate,BH=Ck/9E4*Qx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qx,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:BH,rb:Ox},stream:b};break;case "opus":var Rx=
|
|
1472
|
-
[],Dk=null,ld=k.H;if(!ld)throw new U(2,3,3018,c?c.R()[0]:null);var
|
|
1473
|
-
0,1,2,3,4];break;case 134:
|
|
1475
|
+
[],Dk=null,ld=k.H;if(!ld)throw new U(2,3,3018,c?c.R()[0]:null);var Mb=[];switch(ld.Ui){case 1:case 2:Mb=[0];break;case 0:Mb=[255,1,1,0,1];break;case 128:Mb=[255,2,0,0,1];break;case 3:Mb=[1,2,1,0,2,1];break;case 4:Mb=[1,2,2,0,1,2,3];break;case 5:Mb=[1,3,2,0,4,1,2,3];break;case 6:Mb=[1,4,2,0,4,1,2,3,5];break;case 7:Mb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Mb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Mb=[1,1,2,0,1];break;case 131:Mb=[1,1,3,0,1,2];break;case 132:Mb=[1,1,4,0,1,2,3];break;case 133:Mb=[1,1,5,
|
|
1476
|
+
0,1,2,3,4];break;case 134:Mb=[1,1,6,0,1,2,3,4,5];break;case 135:Mb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Mb=[1,1,8,0,1,2,3,4,5,6,7]}var Sx=new Uint8Array([0,ld.channelCount,0,0,ld.sampleRate>>>24&255,ld.sampleRate>>>17&255,ld.sampleRate>>>8&255,ld.sampleRate>>>0&255,0,0].concat(x(Mb)));for(var Tx=ld.sampleRate,Ux=t(k.qc()),Go=Ux.next();!Go.done;Go=Ux.next()){var Ho=Go.value,dg=Ho.data;null==Dk&&null!==Ho.pts&&(Dk=Ho.pts);for(var Oh=0;Oh<dg.length;){for(var CH=0!==(dg[Oh+1]&16),DH=0!==(dg[Oh+1]&8),
|
|
1474
1477
|
Pd=Oh+2,Ek=0;255===dg[Pd];)Ek+=255,Pd+=1;Ek+=dg[Pd];Pd+=1;Pd+=CH?2:0;Pd+=DH?2:0;var Vx=dg.slice(Pd,Pd+Ek);Rx.push({data:Vx,size:Vx.byteLength,duration:960,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});Oh=Pd+Ek}}if(0==Sx.byteLength||null==Dk)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ld.sampleRate;b.channelsCount=ld.channelCount;var EH=Dk/9E4*Tx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Tx,duration:d,ub:[],Da:Sx,Qa:new Uint8Array([]),Wa:0,
|
|
1475
1478
|
Xa:0,data:{Qb:this.g,baseMediaDecodeTime:EH,rb:Rx},stream:b}}n&&(l.push(n),n=null)}}catch(Io){return Io&&3023==Io.code?Promise.resolve(new Uint8Array([])):Promise.reject(Io)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var Wx=new zx(l),Jo=b.id+"_"+c.i;if(this.i.has(Jo))var Ko=this.i.get(Jo);else Ko=Fx(Wx),this.i.set(Jo,Ko);var FH=hy(Wx);this.g++;var GH=Nc(Ko,FH);return Promise.resolve(GH)};S("shaka.transmuxer.TsTransmuxer",SD);SD.prototype.transmux=SD.prototype.transmux;
|
|
1476
1479
|
SD.prototype.getOriginalMimeType=SD.prototype.getOriginalMimeType;SD.prototype.convertCodecs=SD.prototype.convertCodecs;SD.prototype.isSupported=SD.prototype.isSupported;SD.prototype.destroy=SD.prototype.destroy;var TD=["aac","ac-3","ec-3","mp3","opus"],UD=["avc","hevc"];tf("video/mp2t",function(){return new SD("video/mp2t")},xf);/*
|
|
@@ -1543,7 +1546,7 @@ F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Tradi
|
|
|
1543
1546
|
oE.next()){var qE=pE.value;nE[qE.toLowerCase()]=nE[qE]};function rE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new sd;this.localization=this.controls.xa;this.player=this.controls.hd();this.video=this.controls.uc();this.adManager=this.player.xe();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
|
|
1544
1547
|
rE.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",rE);rE.prototype.release=rE.prototype.release;function sE(a){return tE(a,"shaka-back-to-overflow-button")}function tE(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function uE(a){a&&(a=tE(a,"shaka-chosen-item"))&&a.parentElement.focus()}function vE(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function wE(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
1545
1548
|
function xE(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function yE(a,b){rE.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Wb(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=xE(e-d,!1)+" / "+xE(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=
|
|
1546
|
-
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.
|
|
1549
|
+
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.Ba(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.Ba(.5))}oa(yE,rE);yE.prototype.release=function(){this.g.stop();this.g=null;rE.prototype.release.call(this)};S("shaka.ui.AdCounter",yE);function zE(a,b){rE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");wE(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&AE(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&AE(c)});this.eventManager.s(this.adManager,"ad-started",function(){AE(c)});this.eventManager.s(this.adManager,
|
|
1547
1550
|
"ad-stopped",function(){c.h.textContent="";wE(c.g,!1)});this.ad&&AE(this)}oa(zE,rE);function AE(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));wE(a.g,!0)}}S("shaka.ui.AdPosition",zE);function BE(a,b){rE.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";wE(c.g,!0)}else wE(c.g,
|
|
1548
1551
|
!1)});this.eventManager.s(window,"click",function(){wE(c.g,!1)});CE(this)}oa(BE,rE);BE.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function DE(a,b){EE.set(a,b)}function CE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=EE.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}S("shaka.ui.ContextMenu",BE);
|
|
1549
1552
|
BE.registerElement=DE;var EE=new Map;function FE(a,b){rE.call(this,a,b);var c=this;this.button=Jn();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
|
|
@@ -1554,26 +1557,26 @@ this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown"
|
|
|
1554
1557
|
(e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}oa(ME,rE);q=ME.prototype;
|
|
1555
1558
|
q.release=function(){this.I&&(this.I.stop(),this.I=null);rE.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.h||(this.h=!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.I.X(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
|
|
1556
1559
|
q.setValue=function(a){this.h||(this.bar.value=a)};function NE(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}S("shaka.ui.RangeElement",ME);ME.prototype.setValue=ME.prototype.setValue;ME.prototype.getValue=ME.prototype.getValue;ME.prototype.changeTo=ME.prototype.changeTo;ME.prototype.onChangeEnd=ME.prototype.onChangeEnd;
|
|
1557
|
-
ME.prototype.onChange=ME.prototype.onChange;ME.prototype.onChangeStart=ME.prototype.onChangeStart;ME.prototype.setRange=ME.prototype.setRange;function OE(a,b){ME.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Wb(function(){var d=c.getValue();c.player.
|
|
1560
|
+
ME.prototype.onChange=ME.prototype.onChange;ME.prototype.onChangeStart=ME.prototype.onChangeStart;ME.prototype.setRange=ME.prototype.setRange;function OE(a,b){ME.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Wb(function(){var d=c.getValue();c.player.U()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.C=new Wb(function(){PE(c)});this.L=!1;this.i=W("div");this.i.id="shaka-player-ui-thumbnail-container";
|
|
1558
1561
|
this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.o=new Wb(function(){QE(c)});this.G=[];this.eventManager.s(this.localization,"locale-updated",function(){return RE(c)});this.eventManager.s(this.localization,
|
|
1559
1562
|
"locale-changed",function(){return RE(c)});this.eventManager.s(this.adManager,"ad-started",function(){SE(c)||wE(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){SE(c)&&wE(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.G=d.cuepoints;TE(c)});this.eventManager.s(this.player,"unloading",function(){c.G=[];TE(c);c.l&&(c.l.abort(),c.l=null);c.m=null;QE(c);UE(c)});this.eventManager.s(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),
|
|
1560
|
-
f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(UE(c),VE(c,d,e)):(QE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",d=c.player.Fa(),c.player.
|
|
1563
|
+
f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(UE(c),VE(c,d,e)):(QE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",d=c.player.Fa(),c.player.U()?(d=d.end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+WE(d)):c.j.textContent=WE(e-d.start))});this.eventManager.s(this.container,"mouseleave",
|
|
1561
1564
|
function(){UE(c);c.o.stop();c.o.X(.25)});this.setValue(this.video.currentTime);this.update();RE(this);this.ad&&wE(this.container,!1)}oa(OE,ME);q=OE.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.C.stop(),this.C=null);ME.prototype.release.call(this)};q.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yg(!0);this.video.pause();this.o.stop();this.K=!0};
|
|
1562
1565
|
q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.ye().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());VE(this,(d-a)/((b-a)/c.width),d)}else QE(this)};q.onChangeEnd=function(){this.u.Sa();this.controls.Yg(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.o.stop(),this.o.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1563
1566
|
q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Fa(),g=f.end-f.start;this.setRange(f.start,f.end);SE(this)?(wE(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?
|
|
1564
1567
|
a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):wE(this.container,!1)};
|
|
1565
1568
|
function PE(a){if(a.G.length){for(var b=a.player.Fa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
|
|
1566
|
-
100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function TE(a){function b(){PE(a);var c=a.player.Fa();c=c.end-c.start;a.player.
|
|
1567
|
-
function SE(a){var b=a.player.Fa();b=b.end-b.start;return a.player.
|
|
1568
|
-
function VE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:d=XE(a);if(!d)return QE(a),B.return();0>c&&(c=0);e=a.player.Fa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.ng(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return QE(a),B.return();a.player.
|
|
1569
|
+
100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function TE(a){function b(){PE(a);var c=a.player.Fa();c=c.end-c.start;a.player.U()&&5<c&&a.C.Ba(.25)}a.player.Oh()?b():a.eventManager.na(a.player,"loaded",b)}
|
|
1570
|
+
function SE(a){var b=a.player.Fa();b=b.end-b.start;return a.player.U()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function RE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
|
|
1571
|
+
function VE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:d=XE(a);if(!d)return QE(a),B.return();0>c&&(c=0);e=a.player.Fa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.ng(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return QE(a),B.return();a.player.U()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+WE(h)):a.A.textContent=WE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
|
|
1569
1572
|
-(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";p=g.uris[0].split("#xywh=")[0];if(a.m&&p===a.m.uris[0].split("#xywh=")[0]&&g.segment.Hb()==a.m.segment.Hb()&&g.segment.Eb()==a.m.segment.Eb()){B.B(3);break}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=d.codecs&&!p.startsWith("offline:")){B.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(B,5);r=Jh;u=cm(g.segment.R(),g.segment.Hb(),g.segment.Eb(),a.player.getConfiguration().streaming.retryParameters);
|
|
1570
1573
|
a.l=a.player.Fb().request(r,u,{type:1});return G(B,a.l.promise,7);case 7:v=B.h;a.l=null;"mjpg"==d.codecs?(w=(new Uh).box("mdat",di(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(v.data,!1)):(y=d.mimeType||"image/jpeg",z=new Blob([v.data],{type:y}),p=URL.createObjectURL(z));wa(B,4);break;case 5:C=xa(B);if(7001==C.code)return B.return();throw C;case 4:try{a.i.removeChild(a.g)}catch(D){}a.g=W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=p;
|
|
1571
1574
|
a.g.onload=function(){p.startsWith("blob:")&&URL.revokeObjectURL(p)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
|
|
1572
1575
|
g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",H(B)}})}
|
|
1573
|
-
function XE(a){var b=a.player.ye();if(!b.length)return null;for(var c=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),d=c.next(),e={};!d.done;e={
|
|
1576
|
+
function XE(a){var b=a.player.ye();if(!b.length)return null;for(var c=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),d=c.next(),e={};!d.done;e={Vh:void 0,estimatedBandwidth:void 0},d=c.next())if(e.Vh=d.value,e.estimatedBandwidth=a.player.getStats().estimatedBandwidth,(d=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Vh&&g.bandwidth<.01*f.estimatedBandwidth}}(e)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&d.length)return d[0];return b.find(function(f){return"application/mp4"==
|
|
1574
1577
|
f.mimeType&&"mjpg"==f.codecs})||b[0]}function QE(a){a.i.style.visibility="hidden";a.A.textContent=""}function UE(a){a.j.style.visibility="hidden"}function WE(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}S("shaka.ui.SeekBar",OE);function YE(){}YE.prototype.create=function(a,b){return new OE(a,b)};OE.Factory=YE;function ZE(a,b){rE.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");wE(this.h,!1);this.j.appendChild(this.h);this.g=Jn();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;wE(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);$E(this);this.i=new Wb(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
1575
1578
|
d:(c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){$E(c)});this.eventManager.s(this.localization,"locale-changed",function(){$E(c)});this.eventManager.s(this.adManager,"ad-started",function(){aF(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;wE(c.g,!1);wE(c.h,!1)});this.eventManager.s(this.g,
|
|
1576
|
-
"click",function(){c.ad.skip()});this.ad&&aF(this)}oa(ZE,rE);ZE.prototype.release=function(){this.i.stop();this.i=null;rE.prototype.release.call(this)};function $E(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function aF(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(wE(a.g,!0),wE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.
|
|
1579
|
+
"click",function(){c.ad.skip()});this.ad&&aF(this)}oa(ZE,rE);ZE.prototype.release=function(){this.i.stop();this.i=null;rE.prototype.release.call(this)};function $E(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function aF(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(wE(a.g,!0),wE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.Ba(.5))}S("shaka.ui.SkipAdButton",ZE);/*
|
|
1577
1580
|
@license
|
|
1578
1581
|
glMatrix: https://github.com/toji/gl-matrix/
|
|
1579
1582
|
Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
|
|
@@ -1583,9 +1586,9 @@ function bF(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}
|
|
|
1583
1586
|
function dF(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],v=b[12],w=b[13],y=b[14];b=b[15];var z=c[0],C=c[1],A=c[2],B=c[3];a[0]=z*d+C*h+A*n+B*v;a[1]=z*e+C*k+A*p+B*w;a[2]=z*f+C*l+A*r+B*y;a[3]=z*g+C*m+A*u+B*b;z=c[4];C=c[5];A=c[6];B=c[7];a[4]=z*d+C*h+A*n+B*v;a[5]=z*e+C*k+A*p+B*w;a[6]=z*f+C*l+A*r+B*y;a[7]=z*g+C*m+A*u+B*b;z=c[8];C=c[9];A=c[10];B=c[11];a[8]=z*d+C*h+A*n+B*v;a[9]=z*e+C*k+A*p+B*w;a[10]=z*f+C*l+A*r+B*y;a[11]=z*g+C*m+A*u+B*b;z=c[12];C=c[13];
|
|
1584
1587
|
A=c[14];B=c[15];a[12]=z*d+C*h+A*n+B*v;a[13]=z*e+C*k+A*p+B*w;a[14]=z*f+C*l+A*r+B*y;a[15]=z*g+C*m+A*u+B*b}
|
|
1585
1588
|
function eF(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
|
|
1586
|
-
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function fF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function gF(){var a=new Float32Array(4);a[3]=1;return a}function hF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function iF(a,b,c,d,e){this.m=a;this.qa=b;this.l=c;this.g=d;this.o=new sd;this.L=gF();this.h=gF();this.ha=this.ia=this.aa=this.j=null;this.G=bF();this.I=bF();this.N=bF();this.Y=bF();this.A=null;this.O=!1;this.J=this.u=null;this.sa=this.Ha=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.
|
|
1589
|
+
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function fF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function gF(){var a=new Float32Array(4);a[3]=1;return a}function hF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function iF(a,b,c,d,e){this.m=a;this.qa=b;this.l=c;this.g=d;this.o=new sd;this.L=gF();this.h=gF();this.ha=this.ia=this.aa=this.j=null;this.G=bF();this.I=bF();this.N=bF();this.Y=bF();this.A=null;this.O=!1;this.J=this.u=null;this.sa=this.Ha=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.V=0;this.C=e;jF(this)}iF.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
|
|
1587
1590
|
iF.prototype.xd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);kF(this,!1)};
|
|
1588
|
-
function jF(a){lF(a);mF(a);nF(a);oF(a);pF(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){kF(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.qa.Ib();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);kF(a);a.u=(new Wb(function(){kF(a)})).Sa().
|
|
1591
|
+
function jF(a){lF(a);mF(a);nF(a);oF(a);pF(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){kF(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.qa.Ib();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);kF(a);a.u=(new Wb(function(){kF(a)})).Sa().Ba(1/b)});a.o.s(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;kF(a)});a.o.s(a.m,"seeked",function(){kF(a)});a.o.s(document,"visibilitychange",function(){kF(a)})})}
|
|
1589
1592
|
function lF(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=
|
|
1590
1593
|
d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}eF(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
|
|
1591
1594
|
function mF(a){qF(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
|
|
@@ -1593,9 +1596,9 @@ function nF(a){var b=rF(a,a.g.VERTEX_SHADER),c=rF(a,a.g.FRAGMENT_SHADER);a.j=a.g
|
|
|
1593
1596
|
function rF(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.C?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";
|
|
1594
1597
|
break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.C?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
|
|
1595
1598
|
break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
|
|
1596
|
-
function oF(a){if("cubemap"==a.C)var b={
|
|
1597
|
-
e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={
|
|
1598
|
-
a.ia);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.
|
|
1599
|
+
function oF(a){if("cubemap"==a.C)var b={Gi:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Di:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]};else{b=[];for(var c=[],d=[],
|
|
1600
|
+
e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={Gi:b,Di:c,indices:d}}a.K=b;a.aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Gi),a.g.STATIC_DRAW);a.ia=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
|
|
1601
|
+
a.ia);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Di),a.g.STATIC_DRAW);a.ha=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
|
|
1599
1602
|
function pF(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
|
|
1600
1603
|
function kF(a,b){b=void 0===b?!0:b;var c=a.qa.Ic()==Ep;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(cF(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.C?cF(a.I,a.i*Math.PI/180,2.5):cF(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),qF(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.C&&(dF(a.N,a.G,
|
|
1601
1604
|
a.Y),dF(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ia),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha),"cubemap"==a.C?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
|
|
@@ -1603,22 +1606,22 @@ a.Y),dF(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPoin
|
|
|
1603
1606
|
function qF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.Ha!==b||a.sa!==c){a.l.width=b;a.l.height=c;a.Ha=b;a.sa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
|
|
1604
1607
|
function sF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=bF(),g=bF(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],p=g[9],r=g[10],u=g[11],g!==
|
|
1605
1608
|
e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,dF(f,e,f)):a.H-=c;c=bF();e=bF();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];p=e[6];r=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+p*g;c[3]=l*d+r*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=p*
|
|
1606
|
-
d-k*g;c[7]=r*d-l*g;dF(f,c,f);kF(a,!1)}function tF(a,b){if(void 0===b||b)eF(a.h,a.G),a.
|
|
1609
|
+
d-k*g;c[7]=r*d-l*g;dF(f,c,f);kF(a,!1)}function tF(a,b){if(void 0===b||b)eF(a.h,a.G),a.V=0,a.A=gF(),a.A[0]=(a.h[0]-a.L[0])/20,a.A[1]=(a.h[1]-a.L[1])/20,a.A[2]=(a.h[2]-a.L[2])/20,a.A[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.A[0];a.h[1]-=a.A[1];a.h[2]-=a.A[2];a.h[3]-=a.A[3];b=bF();hF(a.h,a.h);fF(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.V?a.J=(new Wb(function(){tF(a,!1);a.H=0;a.V++;kF(a,!1)})).X(.025):(fF(b,a.L),a.G=b)};function uF(a,b,c,d,e){hb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new sd;this.h=new sd;this.G=vF(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&tF(f.g);wF(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}wF(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;wF(f)});this.o.s(d,
|
|
1607
1610
|
"unloading",function(){f.l=null;wF(f)});wF(this)}oa(uF,hb);q=uF.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);hb.prototype.release.call(this)};q.configure=function(a){this.u=a;wF(this)};q.If=function(){return!!this.G};q.Kb=function(){return!!this.g};q.xd=function(){this.g?this.g.xd():Za("Not playing VR content")};q.rg=function(a){this.g?sF(this.g,a*xF,0,0):Za("Not playing VR content")};
|
|
1608
1611
|
q.pg=function(a){this.g?sF(this.g,0,a*xF,0):Za("Not playing VR content")};q.qg=function(a){this.g?sF(this.g,0,0,a*xF):Za("Not playing VR content")};
|
|
1609
|
-
function wF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.
|
|
1612
|
+
function wF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.Za(),a.g.release(),yF(a,b)):(a.m.style.display="",yF(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.Za(),a.g.release(),a.g=null,a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}function yF(a,b){a.G&&a.m&&(a.g=new iF(a.L,a.K,a.m,a.G,b),zF(a))}
|
|
1610
1613
|
function vF(a){if(!a.m||sc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
|
|
1611
1614
|
function zF(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.C=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.C=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);kF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&AF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
|
|
1612
1615
|
a.h.s(a.i,"touchmove",function(d){a.j&&AF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,BF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ma(a.i,
|
|
1613
1616
|
"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,BF(a))}).catch(function(){a.h.Ma(a.i,"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,BF(a)}
|
|
1614
|
-
function BF(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?sF(a.g,c*xF*-1,e*xF*-1,0):sF(a.g,c*xF*-1,d*xF,0)})}function AF(a,b,c){var d=-.6*Math.PI/180;sF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var xF=Math.PI/180;function Z(a,b,c,d,e){hb.call(this);var f=this;this.S=!0;this.g=e;this.G=new zr(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.G.uc();this.o=c;this.C=this.G.hd();this.aa=a;this.l=b;this.Lb=d;this.qa=this.C.xe();this.m=this.j=null;this.Y=!1;this.J=[];this.
|
|
1615
|
-
g.next())wE(h.value,!1)});this.
|
|
1616
|
-
q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.
|
|
1617
|
-
a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),JF(a),hb.prototype.release.call(a),H(b)}})};function IF(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function KF(a,b){LF.set(a,b)}q.
|
|
1618
|
-
q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),IF(this)):(MF(this),NF(this),this.u=new uF(this.h,this.Lb,this.o,this.C,this.g));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");OF(this);this.g.addBigPlayButton&&PF(this);this.g.customContextMenu&&(this.Ia=new BE(this.
|
|
1619
|
-
QF(this);this.g.seekOnTaps&&(RF(this),SF(this));this.Ga=W("div");this.Ga.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ga);TF(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));UF(this);this.
|
|
1620
|
-
a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");CF(this)};q.
|
|
1621
|
-
q.
|
|
1617
|
+
function BF(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?sF(a.g,c*xF*-1,e*xF*-1,0):sF(a.g,c*xF*-1,d*xF,0)})}function AF(a,b,c){var d=-.6*Math.PI/180;sF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var xF=Math.PI/180;function Z(a,b,c,d,e){hb.call(this);var f=this;this.S=!0;this.g=e;this.G=new zr(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.G.uc();this.o=c;this.C=this.G.hd();this.aa=a;this.l=b;this.Lb=d;this.qa=this.C.xe();this.m=this.j=null;this.Y=!1;this.J=[];this.bb=[];this.Ta=!1;this.P=new Wb(function(){f.l.style.cursor="none";f.Ta=!1;CF(f)});this.ha=new Wb(function(){f.h.removeAttribute("shown");f.N.X(2)});this.N=new Wb(function(){for(var g=t(f.J),h=g.next();!h.done;h=
|
|
1618
|
+
g.next())wE(h.value,!1)});this.Ca=new Wb(function(){f.vc()&&DF(f)});this.I=null;this.H=[];this.xa=EF();this.i=new sd;this.u=null;this.configure(this.g);FF(this);GF(this);this.ia=new Set;HF(this);this.Ca.Ba(this.g.refreshTickInSeconds);this.i.s(this.xa,"locale-changed",function(g){f.qa.setLocale(g.locales[0])});this.qa.initInterstitial(this.L,this.aa,this.o)}oa(Z,hb);q=Z.prototype;
|
|
1619
|
+
q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.Ca&&(a.Ca.stop(),a.Ca=null);a.u&&(a.u.release(),a.u=null);IF(a);a.h&&(a.l.removeChild(a.h),a.h=null);if(!a.G){b.B(4);break}return G(b,a.G.destroy(),5);case 5:a.G=null;case 4:if(!a.aa){b.B(6);break}return G(b,
|
|
1620
|
+
a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),JF(a),hb.prototype.release.call(a),H(b)}})};function IF(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function KF(a,b){LF.set(a,b)}q.Ri=function(a){this.sa=a;HF(this)};q.Uj=function(){CF(this)};
|
|
1621
|
+
q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),IF(this)):(MF(this),NF(this),this.u=new uF(this.h,this.Lb,this.o,this.C,this.g));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");OF(this);this.g.addBigPlayButton&&PF(this);this.g.customContextMenu&&(this.Ia=new BE(this.V,this),this.H.push(this.Ia));this.$||
|
|
1622
|
+
QF(this);this.g.seekOnTaps&&(RF(this),SF(this));this.Ga=W("div");this.Ga.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ga);TF(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));UF(this);this.bb=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));CF(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
|
|
1623
|
+
a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");CF(this)};q.mi=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Ug(!1)};q.getAd=function(){return this.j};q.bj=function(){return this.G};q.oj=function(){return this.xa};q.Gj=function(){return this.l};q.uc=function(){return this.A};
|
|
1624
|
+
q.nj=function(){return this.o};q.hd=function(){return this.C};q.mj=function(){return this.aa};q.fj=function(){return this.h};q.xj=function(){return this.Ga};q.cj=function(){return this.L};q.dj=function(){return this.g};q.Rj=function(){return this.Y};q.Yg=function(a){this.Y=a};q.Mj=function(){return this.sa};q.jg=function(){return this.m?this.m.getValue():this.A.currentTime};q.oi=function(a){this.I=a};q.yd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
|
|
1622
1625
|
q.Kc=function(){this.N.Sa()};q.Nd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.kd=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
1623
1626
|
function VF(a){var b,c,d;return P(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return G(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,G(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:wa(e,
|
|
1624
1627
|
4,2);break;case 9:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),H(e)}})}function WF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.kf=function(){var a=this;return P(function(b){return a.kd()?G(b,WF(a),0):G(b,VF(a),0)})};
|
|
@@ -1626,32 +1629,32 @@ q.He=function(){return this.G.Ra()?!1:"documentPictureInPicture"in window&&this.
|
|
|
1626
1629
|
q.wd=function(){var a=this,b,c;return P(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,XF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,G(d,b.requestPictureInPicture(),5));if(2!=d.g)return wa(d,0);c=xa(d);a.dispatchEvent(new T("error",(new Map).set("detail",c)));H(d)})};
|
|
1627
1630
|
function XF(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;YF(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
|
|
1628
1631
|
d.document.head.append(g);d.document.body.append(b);a.i.na(d,"pagehide",function(){f.replaceWith(b)});H(h)})}
|
|
1629
|
-
function YF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.
|
|
1630
|
-
q.
|
|
1632
|
+
function YF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.wi=function(){wE(this.K,!0);wE(this.L,!0);this.h.setAttribute("ad-active","true")};
|
|
1633
|
+
q.Kh=function(){wE(this.K,!1);wE(this.L,!1);this.h.removeAttribute("ad-active")};function HE(a){a.S&&a.A.duration&&(a.C.Zc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function GE(a){a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause()}
|
|
1631
1634
|
function MF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.vc()?a.I=Date.now():(ZF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){$F(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Nd()&&a.kf()})}
|
|
1632
1635
|
function PF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ja=new IE(b,a);a.H.push(a.Ja)}function OF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function aG(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.j&&a.j.isLinear();wE(a.K,b);a.O.appendChild(a.K);b=new zE(a.K,a);a.H.push(b);b=new yE(a.K,a);a.H.push(b);b=new ZE(a.K,a);a.H.push(b)}
|
|
1633
1636
|
function QF(a){a.$=W("div");a.$.classList.add("shaka-spinner-container");a.l.appendChild(a.$);var b=W("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
|
|
1634
1637
|
"none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function RF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.xb=new KE(b,a);a.H.push(a.xb)}function SF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Jb=new LE(b,a);a.H.push(a.Jb)}
|
|
1635
|
-
function TF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.s(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Kc()});aG(a);a.
|
|
1636
|
-
(c=LF.get(c).create(a.
|
|
1638
|
+
function TF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.s(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Kc()});aG(a);a.V=W("div");a.V.classList.add("shaka-controls-button-panel");a.V.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.V.classList.add("shaka-tooltips-on");a.O.appendChild(a.V);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,LF.get(c)?
|
|
1639
|
+
(c=LF.get(c).create(a.V,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function UF(a){if(a.g.addSeekBar)a.m=bG.create(a.O,a),a.H.push(a.m);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function NF(a){a.L=W("div");a.L.classList.add("shaka-client-side-ad-container");wE(a.L,!1);a.i.s(a.L,"click",function(){$F(a)});a.l.appendChild(a.L)}
|
|
1637
1640
|
function FF(a){a.i.s(a.C,"buffering",function(){a.S&&wE(a.$,a.C.Md())});a.S&&wE(a.$,a.C.Md());a.i.s(window,"keydown",function(b){cG(a,b)});a.i.s(window,"click",function(){return a.Kc()});a.i.s(a,"submenuopen",function(){a.Kc()});a.i.s(a.A,"play",function(){CF(a)});a.i.s(a.A,"pause",function(){CF(a)});a.i.s(a.l,"mousemove",function(b){ZF(a,b)});a.i.s(a.l,"touchmove",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"touchend",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"mouseleave",function(){a.I||a.P.Sa()});
|
|
1638
1641
|
a.i.s(a.G,"caststatuschanged",function(){HF(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"))});a.i.s(a.l,"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.h.contains(c)&&ZF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.m&&e&&!d&&0<c&&(b.preventDefault(),
|
|
1639
1642
|
dG(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+f));break;case "Home":a.m&&dG(a,a.C.Fa().start);break;case "End":a.m&&dG(a,a.C.Fa().end);break;case "f":a.Nd()&&a.kf();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.He()&&a.wd();break;
|
|
1640
|
-
case " ":e&&eG(a)}}});a.i.s(a.l,"keyup",function(b){a.ia.delete(b.key)});a.i.s(a.qa,"ad-started",function(b){a.j=b.ad;a.
|
|
1643
|
+
case " ":e&&eG(a)}}});a.i.s(a.l,"keyup",function(b){a.ia.delete(b.key)});a.i.s(a.qa,"ad-started",function(b){a.j=b.ad;a.wi()});a.i.s(a.qa,"ad-stopped",function(){a.j=null;a.Kh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return P(function(b){return G(b,fG(a),0)})})}
|
|
1641
1644
|
function GF(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(d,e){try{navigator.mediaSession.setActionHandler(d,function(f){e(f)})}catch(f){}},c=function(d){var e=a.g.keyboardSeekDistance,f=a.C.Fa();switch(d.action){case "pause":eG(a);break;case "play":eG(a);break;case "seekbackward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()-(d.seekOffset||e));break;case "seekforward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()+(d.seekOffset||e));break;case "seekto":a.j&&a.j.isLinear()||dG(a,f.start+
|
|
1642
|
-
d.seekTime);break;case "stop":a.C.
|
|
1645
|
+
d.seekTime);break;case "stop":a.C.mc();break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.wd()}};b("pause",c);b("play",c);b("seekbackward",c);b("seekforward",c);b("seekto",c);b("stop",c);b("enterpictureinpicture",c);a.i.s(a.A,"timeupdate",function(){var d=a.C.Fa(),e=d.end-d.start;d=parseFloat((a.A.currentTime-d.start).toFixed(2));a.C.U()&&1>Math.abs(e-d)&&(e=Infinity);try{a.j&&a.j.isLinear()?navigator.mediaSession.setPositionState():navigator.mediaSession.setPositionState({duration:Math.max(0,
|
|
1643
1646
|
e),playbackRate:a.A.playbackRate,position:Math.max(0,d)})}catch(f){}});a.i.s(a.C,"metadata",function(d){if(d=d.payload){var e;"TIT2"==d.key&&d.data&&(e=d.data);var f;"APIC"==d.key&&"--\x3e"==d.mimeType&&(f=d.data);navigator.mediaSession.metadata&&e&&(navigator.mediaSession.metadata.title=e);f&&(e=a.o,f!=e.poster&&(e.poster=f),navigator.mediaSession.metadata&&(navigator.mediaSession.metadata.artwork=[{src:f}]))}})}}
|
|
1644
1647
|
function JF(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}}
|
|
1645
1648
|
function fG(a){return P(function(b){return a.A&&0!=a.A.readyState&&!a.G.Ra()&&a.g.enableFullscreenOnRotation&&a.Nd()?screen.orientation.type.includes("landscape")&&!a.kd()?G(b,VF(a),0):screen.orientation.type.includes("portrait")&&a.kd()?G(b,WF(a),0):b.B(0):b.return()})}
|
|
1646
|
-
function ZF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),CF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.l.style.cursor="",a.Ta=!0,a.N.stop(),a.vc()||(DF(a),CF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function gG(a){return window.matchMedia("hover: hover").matches?a.
|
|
1649
|
+
function ZF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),CF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.l.style.cursor="",a.Ta=!0,a.N.stop(),a.vc()||(DF(a),CF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function gG(a){return window.matchMedia("hover: hover").matches?a.bb.some(function(b){return b.matches(":hover")}):!1}
|
|
1647
1650
|
function CF(a){var b=a.j?a.j.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Ta||d||gG(a)?(DF(a),a.h.setAttribute("shown","true"),a.ha.stop()):a.ha.X(a.g.fadeDelay)}function $F(a){a.S&&!a.Kb()&&(a.yd()?a.N.Sa():a.g.singleClickForPlayAndPause&&eG(a))}function eG(a){a.j&&a.j.isLinear()?GE(a):HE(a)}
|
|
1648
1651
|
function HF(a){var b=a.G.Ra();a.dispatchEvent(new T("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.vc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function dG(a,b){a.m.changeTo(b);a.vc()&&DF(a)}
|
|
1649
1652
|
function DF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"))}
|
|
1650
1653
|
function cG(a,b){a.ia.add(b.key);var c=a.yd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),CF(a),a.i.s(window,"mousedown",function(){a.i.Ma(window,"mousedown")}));"Escape"==b.key&&a.N.Sa();c&&a.ia.has("Tab")&&hG(a,b)}
|
|
1651
1654
|
function hG(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
1652
|
-
q.
|
|
1653
|
-
q.
|
|
1654
|
-
q.
|
|
1655
|
+
q.Jk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});ZF(this,a)};q.Lj=function(){this.I||this.P.Sa()};q.If=function(){return this.u.If()};q.Kb=function(){return this.u.Kb()};
|
|
1656
|
+
q.Ej=function(){var a=this.u;if(a.g){a=a.g;eF(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Za("Not playing VR content"),a=null;return a};q.Dj=function(){var a=this.u;a.g?a=a.g.i:(Za("Not playing VR content"),a=null);return a};
|
|
1657
|
+
q.Ik=function(a){var b=this.u;b.g?(0>a?(Za("Field of view should be greater than 0"),a=0):100<a&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.i=a,kF(b,!1)):Za("Not playing VR content")};q.xd=function(){this.u.xd()};q.rg=function(a){this.u.rg(a)};q.pg=function(a){this.u.pg(a)};q.qg=function(a){this.u.qg(a)};
|
|
1655
1658
|
function EF(){var a=new kd("en");a.Pa("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_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
|
|
1656
1659
|
["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["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"'],
|
|
1657
1660
|
["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"],["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"],
|
|
@@ -1668,95 +1671,96 @@ function EF(){var a=new kd("en");a.Pa("ar",new Map([["AD_DURATION","\u0645\u062f
|
|
|
1668
1671
|
["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Pa("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE",
|
|
1669
1672
|
"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"],["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"],
|
|
1670
1673
|
["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.Pa("es",
|
|
1671
|
-
new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas
|
|
1674
|
+
new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas del anuncio"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],
|
|
1672
1675
|
["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"],
|
|
1673
|
-
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","
|
|
1674
|
-
["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],
|
|
1675
|
-
"Guardar fotograma"],["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"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],
|
|
1676
|
-
"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"],["QUALITY","Calidad"],["RECENTER_VR","
|
|
1677
|
-
["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","
|
|
1678
|
-
["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","
|
|
1679
|
-
["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"],["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",
|
|
1680
|
-
"Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","
|
|
1681
|
-
"R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.Pa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME",
|
|
1682
|
-
["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES",
|
|
1683
|
-
["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["QUALITY","Qualit\u00e0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS",
|
|
1684
|
-
"Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Pa("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_STATISTICS","\u5e83\u544a\u306e\u7d71\u8a08\u60c5\u5831"],
|
|
1685
|
-
["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CHAPTERS","\u7ae0"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["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",
|
|
1686
|
-
["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"],
|
|
1687
|
-
["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"],["QUALITY","\u54c1\u8cea"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],
|
|
1688
|
-
["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["SUBTITLE_FORCED","\u5f37\u5236"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],
|
|
1689
|
-
["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\uad11\uace0 \ud1b5\uacc4"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CHAPTERS","\uc7a5"],["DOWNLOAD_VIDEO_FRAME",
|
|
1690
|
-
|
|
1691
|
-
"\
|
|
1692
|
-
"\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["UNDETERMINED_LANGUAGE",
|
|
1693
|
-
"Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME",
|
|
1694
|
-
"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","Geluid uitzetten"],
|
|
1695
|
-
["
|
|
1696
|
-
a.Pa("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],
|
|
1697
|
-
["
|
|
1698
|
-
"
|
|
1699
|
-
["
|
|
1700
|
-
["
|
|
1701
|
-
"
|
|
1702
|
-
["
|
|
1703
|
-
a.Pa("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]"],
|
|
1704
|
-
["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..."],["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],
|
|
1705
|
-
["
|
|
1706
|
-
["
|
|
1707
|
-
"\u041f\u0440\
|
|
1708
|
-
"\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"],
|
|
1709
|
-
["
|
|
1710
|
-
["
|
|
1711
|
-
["SURROUND","\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0439 \u0437\u0432\u0443\u043a"],["TOGGLE_STEREOSCOPIC","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u0440\u0435\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c"],
|
|
1712
|
-
["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Pa("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"],
|
|
1713
|
-
"\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AIRPLAY","AirPlay"],["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\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CHAPTERS","\u0e1a\u0e17"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],
|
|
1714
|
-
"\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"],["EXIT_LOOP_MODE",
|
|
1715
|
-
["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"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],
|
|
1716
|
-
["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"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],
|
|
1717
|
-
["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],
|
|
1718
|
-
["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"],["STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34"],["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],
|
|
1719
|
-
["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"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));
|
|
1720
|
-
"AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CHAPTERS","B\u00f6l\u00fcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
|
|
1721
|
-
["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"],
|
|
1722
|
-
"
|
|
1723
|
-
"\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5e7f\u544a\u7edf\u8ba1\u4fe1\u606f"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],
|
|
1724
|
-
"\
|
|
1725
|
-
|
|
1726
|
-
"\
|
|
1727
|
-
["AD_STATISTICS","\u5ee3\u544a\u7d71\u8a08\u8cc7\u6599"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CHAPTERS","\u7ae0\u7bc0"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],
|
|
1728
|
-
["
|
|
1729
|
-
["
|
|
1730
|
-
"\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.rh(navigator.languages||
|
|
1731
|
-
|
|
1732
|
-
Z.prototype.
|
|
1733
|
-
Z.prototype.
|
|
1734
|
-
Z.prototype.
|
|
1735
|
-
this.
|
|
1676
|
+
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC",
|
|
1677
|
+
"Activar/Desactivar estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],
|
|
1678
|
+
["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["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"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],
|
|
1679
|
+
["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"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND",
|
|
1680
|
+
"Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Sonido envolvente"],["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS",
|
|
1681
|
+
"Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_STATISTICS","Statistiques sur les annonces"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","T\u00e9l\u00e9charger l'image de la vid\u00e9o"],["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"],
|
|
1682
|
+
["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"],["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",
|
|
1683
|
+
"Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","Revoir"],["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"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/D\u00e9sactiver le mode st\u00e9r\u00e9oscopique"],
|
|
1684
|
+
["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.Pa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME",
|
|
1685
|
+
"Salva fotogramma"],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES",
|
|
1686
|
+
"Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["QUALITY","Qualit\u00e0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS",
|
|
1687
|
+
"Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Pa("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_STATISTICS","\u5e83\u544a\u306e\u7d71\u8a08\u60c5\u5831"],
|
|
1688
|
+
["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CHAPTERS","\u7ae0"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["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",
|
|
1689
|
+
"\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],
|
|
1690
|
+
["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["QUALITY","\u54c1\u8cea"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],
|
|
1691
|
+
["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","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["SUBTITLE_FORCED","\u5f37\u5236"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],
|
|
1692
|
+
["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Pa("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\uad11\uace0 \ud1b5\uacc4"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CHAPTERS","\uc7a5"],["DOWNLOAD_VIDEO_FRAME",
|
|
1693
|
+
"\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \uc800\uc7a5"],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE",
|
|
1694
|
+
"\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["QUALITY","\ud488\uc9c8"],
|
|
1695
|
+
["RECENTER_VR","\uc911\uc2ec \uc7ac\uc124\uc815"],["REPLAY","\ub2e4\uc2dc\ubcf4\uae30"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["UNDETERMINED_LANGUAGE",
|
|
1696
|
+
"\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Pa("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME",
|
|
1697
|
+
"Videoframe opslaan"],["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","Geluid uitzetten"],
|
|
1698
|
+
["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND",
|
|
1699
|
+
"Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.Pa("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],
|
|
1700
|
+
["CHAPTERS","Rozdzia\u0142y"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 filmu"],["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"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN",
|
|
1701
|
+
"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"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["QUALITY","Jako\u015b\u0107"],["RECENTER_VR",
|
|
1702
|
+
"Wy\u015brodkuj"],["REPLAY","Odtw\u00f3rz ponownie"],["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"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz tryb stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE",
|
|
1703
|
+
"Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.Pa("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\u00edsticas de an\u00fancios"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Salvar frame do v\u00eddeo"],["ENTER_LOOP_MODE",
|
|
1704
|
+
"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"],["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"],
|
|
1705
|
+
["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"],["QUALITY","Qualidade"],["RECENTER_VR","Centralizar"],["REPLAY","Repetir"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Voltar"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["STATISTICS","Estat\u00edsticas"],["SUBTITLE_FORCED",
|
|
1706
|
+
"Exibi\u00e7\u00e3o for\u00e7ada"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.Pa("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]"],
|
|
1707
|
+
["AD_STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AIRPLAY","AirPlay"],["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..."],["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],
|
|
1708
|
+
["DOWNLOAD_VIDEO_FRAME","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],["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"'],
|
|
1709
|
+
["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"'],
|
|
1710
|
+
["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"],
|
|
1711
|
+
["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"],
|
|
1712
|
+
["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"],["QUALITY","\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e"],["RECENTER_VR","\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e"],["REPLAY","\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],
|
|
1713
|
+
["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
|
|
1714
|
+
["STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430"],["SUBTITLE_FORCED","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e"],["SURROUND","\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0439 \u0437\u0432\u0443\u043a"],["TOGGLE_STEREOSCOPIC","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u0440\u0435\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c"],
|
|
1715
|
+
["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Pa("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"],
|
|
1716
|
+
["AD_STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AIRPLAY","AirPlay"],["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\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CHAPTERS","\u0e1a\u0e17"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],
|
|
1717
|
+
["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"],["EXIT_LOOP_MODE",
|
|
1718
|
+
"\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"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],
|
|
1719
|
+
["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"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],
|
|
1720
|
+
["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"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],
|
|
1721
|
+
["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34"],["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],
|
|
1722
|
+
["SURROUND","\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e23\u0e32\u0e27\u0e14\u0e4c"],["TOGGLE_STEREOSCOPIC","\u0e40\u0e1b\u0e34\u0e14/\u0e1b\u0e34\u0e14\u0e1f\u0e35\u0e40\u0e08\u0e2d\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e21\u0e34\u0e15\u0e34"],["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"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));
|
|
1723
|
+
a.Pa("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CHAPTERS","B\u00f6l\u00fcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
|
|
1724
|
+
["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
|
|
1725
|
+
["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["QUALITY","Kalite"],["RECENTER_VR","Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["STATISTICS","\u0130statistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC",
|
|
1726
|
+
"Stereoskopik modu a\u00e7/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.Pa("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5e7f\u544a\u7edf\u8ba1\u4fe1\u606f"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],
|
|
1727
|
+
["CHAPTERS","\u7ae0\u8282"],["DOWNLOAD_VIDEO_FRAME","\u4fdd\u5b58\u89c6\u9891\u5e27"],["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"],["FAST_FORWARD","\u5feb\u8fdb"],
|
|
1728
|
+
["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"],["QUALITY","\u753b\u8d28"],["RECENTER_VR",
|
|
1729
|
+
"\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u653e"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7edf\u8ba1\u4fe1\u606f"],["SUBTITLE_FORCED","\u5df2\u5f3a\u5236\u663e\u793a"],["SURROUND","\u73af\u7ed5\u58f0"],["TOGGLE_STEREOSCOPIC","\u5207\u6362\u7acb\u4f53\u58f0"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],
|
|
1730
|
+
["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Pa("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5ee3\u544a\u7d71\u8a08\u8cc7\u6599"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CHAPTERS","\u7ae0\u7bc0"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],
|
|
1731
|
+
["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","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],
|
|
1732
|
+
["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"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND",
|
|
1733
|
+
"\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED","\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.rh(navigator.languages||
|
|
1734
|
+
[]);return a}S("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.qg;Z.prototype.incrementPitch=Z.prototype.pg;Z.prototype.incrementYaw=Z.prototype.rg;Z.prototype.toggleStereoscopicMode=Z.prototype.xd;Z.prototype.setVRFieldOfView=Z.prototype.Ik;Z.prototype.getVRFieldOfView=Z.prototype.Dj;Z.prototype.getVRNorth=Z.prototype.Ej;Z.prototype.isPlayingVR=Z.prototype.Kb;Z.prototype.canPlayVR=Z.prototype.If;Z.prototype.hideUI=Z.prototype.Lj;Z.prototype.showUI=Z.prototype.Jk;
|
|
1735
|
+
Z.prototype.isOpaque=Z.prototype.vc;Z.prototype.hideAdUI=Z.prototype.Kh;Z.prototype.showAdUI=Z.prototype.wi;Z.prototype.togglePiP=Z.prototype.wd;Z.prototype.isPiPEnabled=Z.prototype.Ie;Z.prototype.isPiPAllowed=Z.prototype.He;Z.prototype.toggleFullScreen=Z.prototype.kf;Z.prototype.isFullScreenEnabled=Z.prototype.kd;Z.prototype.isFullScreenSupported=Z.prototype.Nd;Z.prototype.hideSettingsMenus=Z.prototype.Kc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.yd;Z.prototype.setLastTouchEventTime=Z.prototype.oi;
|
|
1736
|
+
Z.prototype.getDisplayTime=Z.prototype.jg;Z.prototype.isCastAllowed=Z.prototype.Mj;Z.prototype.setSeeking=Z.prototype.Yg;Z.prototype.isSeeking=Z.prototype.Rj;Z.prototype.getConfig=Z.prototype.dj;Z.prototype.getClientSideAdContainer=Z.prototype.cj;Z.prototype.getServerSideAdContainer=Z.prototype.xj;Z.prototype.getControlsContainer=Z.prototype.fj;Z.prototype.getLocalPlayer=Z.prototype.mj;Z.prototype.getPlayer=Z.prototype.hd;Z.prototype.getLocalVideo=Z.prototype.nj;Z.prototype.getVideo=Z.prototype.uc;
|
|
1737
|
+
Z.prototype.getVideoContainer=Z.prototype.Gj;Z.prototype.getLocalization=Z.prototype.oj;Z.prototype.getCastProxy=Z.prototype.bj;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.mi;Z.prototype.setEnabledShakaControls=Z.prototype.Ug;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Uj;Z.prototype.allowCast=Z.prototype.Ri;Z.registerSeekBar=function(a){bG=a};Z.registerElement=KF;Z.prototype.destroy=Z.prototype.destroy;
|
|
1738
|
+
var LF=new Map,bG=new YE;function iG(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Jn();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
|
|
1739
|
+
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);jG(this);this.eventManager.s(this.localization,"locale-updated",function(){kG(c)});this.eventManager.s(this.localization,"locale-changed",function(){kG(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){wE(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.oi(Date.now());
|
|
1736
1740
|
d.stopPropagation()});this.eventManager.s(this.g,"click",function(){lG(c)});kG(this);this.ad&&this.ad.isLinear()&&wE(this.g,!1)}oa(iG,rE);iG.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function mG(a,b){nG.set(a,b)}
|
|
1737
1741
|
function jG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,nG.get(c)?(c=nG.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function lG(a){if(a.controls.yd())a.controls.Kc();else{wE(a.h,!0);CF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function kG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
|
|
1738
1742
|
S("shaka.ui.OverflowMenu",iG);iG.registerElement=mG;function oG(){}oG.prototype.create=function(a,b){return new iG(a,b)};KF("overflow_menu",new oG);var nG=new Map;function pG(a,b){function c(e){return d.j[e]}rE.call(this,a,b);var d=this;this.h=Jn();this.h.classList.add("shaka-ad-statistics-button");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="insert_chart_outlined";this.h.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);
|
|
1739
1743
|
this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.C=[];this.j=this.adManager.getStats();this.o={};this.A={loadTimes:function(e){var f=0;e=t(d.j[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);return f},averageLoadTime:c,started:c,playedCompletely:c,skipped:c,errors:c};this.l=new Wb(function(){d.j=
|
|
1740
|
-
d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});qG(this);rG(this);this.eventManager.s(this.localization,"locale-updated",function(){qG(d)});this.eventManager.s(this.localization,"locale-changed",function(){qG(d)});this.eventManager.s(this.h,"click",function(){wE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.
|
|
1744
|
+
d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});qG(this);rG(this);this.eventManager.s(this.localization,"locale-updated",function(){qG(d)});this.eventManager.s(this.localization,"locale-changed",function(){qG(d)});this.eventManager.s(this.h,"click",function(){wE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.Ba(.1),wE(d.g,!0)):(d.i.textContent="insert_chart_outlined",d.l.stop(),wE(d.g,!1));qG(d)});
|
|
1741
1745
|
this.eventManager.s(this.player,"loading",function(){wE(d.h,!1)});this.eventManager.s(this.adManager,"ad-started",function(){wE(d.h,!0)})}oa(pG,rE);function qG(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1742
1746
|
function rG(a){for(var b=t(a.controls.g.adStatisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.j){var d=a.g,e=d.appendChild,f=a,g=W("div"),h=W("label");h.textContent=c+":";g.appendChild(h);h=W("span");h.textContent=f.A[c](c);g.appendChild(h);f.o[c]=h;e.call(d,g);a.C.push(c)}else Za("Unrecognized ad statistic element:",c)}pG.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.AdStatisticsButton",pG);function sG(){}
|
|
1743
1747
|
sG.prototype.create=function(a,b){return new pG(a,b)};mG("ad_statistics",new sG);DE("ad_statistics",new sG);function tG(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);
|
|
1744
1748
|
this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uG(this);vG(this);this.eventManager.s(this.localization,"locale-updated",function(){uG(c)});this.eventManager.s(this.localization,"locale-changed",function(){uG(c)});this.eventManager.s(this.g,"click",function(){c.controls.uc().webkitShowPlaybackTargetPicker()});a=this.controls.uc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
|
|
1745
1749
|
c.player.Ic()==Rp;wE(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){vG(c)})}oa(tG,rE);function vG(a){var b=a.controls.uc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function uG(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}S("shaka.ui.AirPlayButton",tG);function wG(){}wG.prototype.create=function(a,b){return new tG(a,b)};mG("airplay",new wG);
|
|
1746
1750
|
KF("airplay",new wG);function xG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=yG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.xg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Zg(b);b.ui=this;c.ui=this}q=xG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;H(b)})};
|
|
1747
|
-
q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Om(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));Om(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.
|
|
1748
|
-
q.
|
|
1751
|
+
q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Om(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));Om(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.ej=function(){return this.g};
|
|
1752
|
+
q.Fk=function(a){this.g.Ug(a)};
|
|
1749
1753
|
function yG(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic save_video_frame".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started playedCompletely skipped errors".split(" "),
|
|
1750
1754
|
contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
|
|
1751
1755
|
level:"rgb(255, 255, 255)"},trackLabelFormat:zG,textTrackLabelFormat:zG,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",
|
|
1752
1756
|
setupMediaSession:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.xg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
|
|
1753
1757
|
function AG(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:wA();if(!ap())return BG("shaka-ui-load-failed",CG),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.B(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
|
|
1754
|
-
g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DG(h,c,d),m=l.
|
|
1758
|
+
g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DG(h,c,d),m=l.Qh,n=l.Ji,EG(h,g,m,n));D.B(2);break}p=t(a);r=p.next();case 4:if(r.done){D.B(2);break}u=r.value;if(u.ui){D.B(5);break}v=null;w=t(b);for(y=w.next();!y.done;y=w.next())if(z=y.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));C=DG(u,c,d);A=C.Qh;B=C.Ji;ta(D,7);return G(D,EG(u,v,A,B),9);case 9:wa(D,5);break;case 7:return xa(D),
|
|
1755
1759
|
BG("shaka-ui-load-failed",FG),D.return();case 5:r=p.next();D.B(4);break;case 2:BG("shaka-ui-loaded"),H(D)}})}function BG(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
|
|
1756
1760
|
function EG(a,b,c,d){var e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:e=new Y;f=new xG(e,a,b,d);e.mh(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
|
|
1757
|
-
b.controls&&f.g.
|
|
1758
|
-
function DG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{
|
|
1759
|
-
xG.prototype.getControls=xG.prototype.
|
|
1761
|
+
b.controls&&f.g.mi(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");m=t(b.querySelectorAll("source"));n=m.next();case 2:if(n.done){r.B(4);break}p=n.value;ta(r,5);return G(r,f.g.hd().load(p.getAttribute("src")),7);case 7:r.B(4);break;case 5:xa(r);case 3:n=m.next();r.B(2);break;case 4:return G(r,e.Yb(b),0)}})}
|
|
1762
|
+
function DG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{Qh:d,Ji:b}}S("shaka.ui.Overlay",xG);xG.prototype.setEnabled=xG.prototype.Fk;
|
|
1763
|
+
xG.prototype.getControls=xG.prototype.ej;xG.prototype.configure=xG.prototype.configure;xG.prototype.getConfiguration=xG.prototype.getConfiguration;xG.prototype.isMobile=xG.prototype.xg;xG.prototype.destroy=xG.prototype.destroy;var zG=0;xG.TrackLabelFormat={LANGUAGE:zG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CG=0,FG=1;xG.FailReasonCode={NO_BROWSER_SUPPORT:CG,PLAYER_FAILED_TO_LOAD:FG};
|
|
1760
1764
|
"complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);AG();H(a)}):window.addEventListener("load",AG);function GG(a,b,c,d,e,f,g,h){function k(K){var I="";K=K.toLowerCase();K.startsWith("mp4a")?I="AAC":"ec-3"===K||"ac-3"===K?I="Dolby":"opus"===K?I="Opus":"flac"===K&&(I="fLaC");return I?" "+I:I}function l(K){var I="";5<=K&&(I=" "+f.resolve("SURROUND"));return I}function m(K,I,N,M,O){I=[K,I];h&&null!=M&&I.push(M);p(K)&&O&&I.push(O);N&&3==g&&I.push(N);return I.join(": ")}function n(K){return"variant"==K.type?K.audioRoles?K.audioRoles.join(", "):void 0:K.roles.join(", ")}function p(K){return u.has(K)&&
|
|
1761
1765
|
1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=sE(b);Kn(b);b.appendChild(v);v=new Map;w=t(a);for(var y=w.next();!y.done;y=w.next())y=y.value,v.has(y.language)||v.set(y.language,new Set),v.get(y.language).add(n(y));v=new Set;r=r?m(r.language,n(r),r.label,r.channelsCount,r.audioCodec):"";a=t(a);y=a.next();for(w={};!y.done;w={Xb:void 0},
|
|
1762
1766
|
y=a.next()){w.Xb=y.value;y=w.Xb.language;var z=w.Xb.forced,C=f.resolve("SUBTITLE_FORCED"),A=n(w.Xb),B=w.Xb.label,D=w.Xb.channelsCount,E=w.Xb.audioCodec,F=m(y,A,B,D,E);if(!v.has(F)){v.add(F);var L=Jn();L.addEventListener("click",function(K){return function(){c(K.Xb)}}(w));var J=W("span");L.appendChild(J);J.textContent=HG(y,f);switch(g){case zG:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));z&&(J.textContent+=" ("+C+")");break;case 1:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A?J.textContent=
|
|
@@ -1769,7 +1773,7 @@ W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}
|
|
|
1769
1773
|
function PG(a){var b=a.player.Ib();GG(b,a.menu,function(c){var d=void 0;c.channelsCount&&a.controls.g.showAudioChannelCountVariants&&(d=c.channelsCount);var e=void 0;c.audioCodec&&(e=c.audioCodec);a.player.Pg(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);uE(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);wE(a.button,2<
|
|
1770
1774
|
a.menu.getElementsByTagName("button").length)}function OG(a){var b=0<a.player.Ib().length;wE(a.button,b);PG(a)}function NG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}S("shaka.ui.AudioLanguageSelection",MG);function QG(){}QG.prototype.create=function(a,b){return new MG(a,b)};mG("language",new QG);KF("language",new QG);function RG(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.G;this.g=Jn();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1771
1775
|
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);SG(this);TG(this);this.eventManager.s(this.localization,"locale-updated",function(){SG(c)});this.eventManager.s(this.localization,"locale-changed",function(){SG(c)});this.eventManager.s(this.g,"click",function(){UG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){TG(c)})}oa(RG,rE);
|
|
1772
|
-
function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.
|
|
1776
|
+
function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.Bi(),c.B(0);ta(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=xa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));H(c)})}function TG(a){var b=a.h.Hf()&&a.controls.sa,c=a.h.Ra();wE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");VG(a)}
|
|
1773
1777
|
function VG(a){a.j.textContent=a.h.Ra()?a.h.Ze():a.localization.resolve("OFF")}function SG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");VG(a)}S("shaka.ui.CastButton",RG);function WG(){}WG.prototype.create=function(a,b){return new RG(a,b)};mG("cast",new WG);KF("cast",new WG);function XG(a,b){IG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.s(this.localization,"locale-updated",function(){YG(c);ZG(c)});this.eventManager.s(this.localization,"locale-changed",function(){YG(c);ZG(c)});this.eventManager.s(this.player,"unloading",function(){$G(c);c.h="und";c.g=[]});this.eventManager.s(this.player,"trackschanged",
|
|
1774
1778
|
function(){ZG(c)});YG(this);ZG(this)}oa(XG,IG);function YG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function $G(a){var b=sE(a.menu);Kn(a.menu);a.menu.appendChild(b);wE(a.button,!1)}
|
|
1775
1779
|
function ZG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.ig(c),!d.length);f=e.next());d.length||(c="und",d=a.player.ig(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)$G(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Jf:void 0},
|
|
@@ -1777,7 +1781,7 @@ f=c.next()){e.Jf=f.value;f=Jn();var g=W("span");g.classList.add("shaka-chapter")
|
|
|
1777
1781
|
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(bH,rE);function cH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}S("shaka.ui.FastForwardButton",bH);function dH(){}dH.prototype.create=function(a,b){return new bH(a,b)};KF("fast_forward",new dH);function eH(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Jn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");fH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);gH(this);this.eventManager.s(this.localization,"locale-updated",function(){gH(c)});this.eventManager.s(this.localization,"locale-changed",function(){gH(c)});this.eventManager.s(this.g,"click",function(){return P(function(d){return G(d,
|
|
1778
1782
|
c.controls.kf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.kd()?"fullscreen_exit":"fullscreen";gH(c)});this.eventManager.s(this.h,"loadedmetadata",function(){fH(c)});this.eventManager.s(this.h,"loadeddata",function(){fH(c)})}oa(eH,rE);function fH(a){a.controls.Nd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function gH(a){a.g.ariaLabel=a.localization.resolve(a.controls.kd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
|
|
1779
1783
|
S("shaka.ui.FullscreenButton",eH);function hH(){}hH.prototype.create=function(a,b){return new eH(a,b)};KF("fullscreen",new hH);function iH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1780
|
-
a.appendChild(this.j);this.g.appendChild(a);jH(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){jH(c)});this.eventManager.s(this.localization,"locale-changed",function(){jH(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.
|
|
1784
|
+
a.appendChild(this.j);this.g.appendChild(a);jH(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){jH(c)});this.eventManager.s(this.localization,"locale-changed",function(){jH(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.Ba(1)});this.m=this.video.loop;this.h=new Wb(function(){c.m!=c.video.loop&&(jH(c),c.m=c.video.loop)});this.h.Ba(1)}oa(iH,rE);
|
|
1781
1785
|
iH.prototype.release=function(){this.h.stop();this.h=null;rE.prototype.release.call(this)};function jH(a){a.l.textContent=a.localization.resolve("LOOP");a.j.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}S("shaka.ui.LoopButton",iH);function kH(){}kH.prototype.create=function(a,b){return new iH(a,b)};mG("loop",new kH);KF("loop",new kH);DE("loop",new kH);function lH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);mH(this);nH(this);this.eventManager.s(this.localization,"locale-updated",function(){mH(c)});this.eventManager.s(this.localization,"locale-changed",function(){mH(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
|
|
1782
1786
|
this.eventManager.s(this.video,"volumechange",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-muted",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;mH(c);nH(c)})}oa(lH,rE);function mH(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
|
|
1783
1787
|
function nH(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}S("shaka.ui.MuteButton",lH);function oH(){}oH.prototype.create=function(a,b){return new lH(a,b)};KF("mute",new oH);function pH(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Jn();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
|
|
@@ -1788,8 +1792,8 @@ function qH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var
|
|
|
1788
1792
|
function uH(){}uH.prototype.create=function(a,b){return new pH(a,b)};mG("picture_in_picture",new uH);KF("picture_in_picture",new uH);DE("picture_in_picture",new uH);function vH(a,b){IG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){wH(c)});this.eventManager.s(this.localization,"locale-changed",function(){wH(c)});this.eventManager.s(this.player,"loaded",function(){xH(c,c.player.Va())});this.eventManager.s(this.player,"ratechange",function(){xH(c,
|
|
1789
1793
|
c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));wH(this);yH(this);xH(this,this.player.Va())}oa(vH,IG);function wH(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
|
|
1790
1794
|
function xH(a,b){var c=tE(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(vE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
|
|
1791
|
-
"x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Ye:void 0},c=b.next()){d.Ye=c.value;c=Jn();var e=W("span");e.textContent=d.Ye;c.appendChild(e);a.eventManager.s(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Ye);a.video.defaultPlaybackRate=a.g.get(f.Ye)}}(d));a.menu.appendChild(c)}uE(a.menu)}S("shaka.ui.PlaybackRateSelection",vH);function HH(){}HH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new HH);KF("playback_rate",new HH);function IH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.
|
|
1792
|
-
e)),g=3600<=g,1<=e||d?(JH(c,"- "+xE(e,g)),c.g.disabled=!1):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=xE(Math.max(0,e-f.start),d),g&&(e+=" / "+xE(g,d)),JH(c,e),c.g.disabled=!0):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.
|
|
1795
|
+
"x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Ye:void 0},c=b.next()){d.Ye=c.value;c=Jn();var e=W("span");e.textContent=d.Ye;c.appendChild(e);a.eventManager.s(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Ye);a.video.defaultPlaybackRate=a.g.get(f.Ye)}}(d));a.menu.appendChild(c)}uE(a.menu)}S("shaka.ui.PlaybackRateSelection",vH);function HH(){}HH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new HH);KF("playback_rate",new HH);function IH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Fa().end)});this.eventManager.s(this.player,"loading",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.jg(),f=c.player.Fa(),g=f.end-f.start;isFinite(g)?c.player.U()?(e=Math.max(0,Math.floor(f.end-
|
|
1796
|
+
e)),g=3600<=g,1<=e||d?(JH(c,"- "+xE(e,g)),c.g.disabled=!1):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=xE(Math.max(0,e-f.start),d),g&&(e+=" / "+xE(g,d)),JH(c,e),c.g.disabled=!0):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.s(this.adManager,"ad-started",function(){wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",
|
|
1793
1797
|
function(){wE(c.g,!0)})}oa(IH,rE);function JH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}S("shaka.ui.PresentationTimeTracker",IH);function KH(){}KH.prototype.create=function(a,b){return new IH(a,b)};KF("time_and_duration",new KH);function LH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
|
|
1794
1798
|
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);MH(this);this.eventManager.s(this.localization,"locale-updated",function(){MH(c)});this.eventManager.s(this.localization,"locale-changed",function(){MH(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?tF(d.g):Za("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){wE(c.g,c.controls.Kb())});wE(this.g,this.controls.Kb())}oa(LH,rE);
|
|
1795
1799
|
function MH(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}S("shaka.ui.RecenterVRButton",LH);function NH(){}NH.prototype.create=function(a,b){return new LH(a,b)};mG("recenter_vr",new NH);KF("recenter_vr",new NH);function OH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");a="cast";(b=pc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
@@ -1815,7 +1819,7 @@ dI.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localizat
|
|
|
1815
1819
|
this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");
|
|
1816
1820
|
this.controls.h.appendChild(this.h);this.C=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();this.o={};this.A={width:k,height:k,completionPercent:function(m){return l.g[m]+" (%)"},bufferingTime:g,drmTimeSeconds:g,licenseTime:g,liveLatency:g,loadLatency:g,manifestTimeSeconds:g,estimatedBandwidth:f,streamBandwidth:f,maxSegmentDuration:e,pauseTime:e,playTime:e,corruptedFrames:h,decodedFrames:h,droppedFrames:h,stallsDetected:function(m){return l.g[m]+" (stalls)"},gapsJumped:d,manifestSizeBytes:c,
|
|
1817
1821
|
bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Wb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.o[n];p.textContent=l.A[n](n);p&&p.parentElement&&wE(p.parentElement,!isNaN(l.g[n]))}});iI(this);jI(this);this.eventManager.s(this.localization,"locale-updated",function(){iI(l)});this.eventManager.s(this.localization,"locale-changed",
|
|
1818
|
-
function(){iI(l)});this.eventManager.s(this.i,"click",function(){wE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.
|
|
1822
|
+
function(){iI(l)});this.eventManager.s(this.i,"click",function(){wE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.Ba(.1),wE(l.h,!0)):(l.j.textContent="insert_chart_outlined",l.l.stop(),wE(l.h,!1));iI(l)})}oa(hI,rE);function iI(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1819
1823
|
function jI(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.o[c]=f;d=e;a.h.appendChild(d);a.C.push(c);wE(d.parentElement,!isNaN(a.g[c]))}else Za("Unrecognized statistic element:",c)}hI.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.StatisticsButton",hI);
|
|
1820
1824
|
function kI(){}kI.prototype.create=function(a,b){return new hI(a,b)};mG("statistics",new kI);DE("statistics",new kI);function lI(a,b){IG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Oc()?this.button.ariaPressed="true":this.button.ariaPressed="false";mI(this);this.eventManager.s(this.localization,"locale-updated",function(){nI(c);oI(c)});this.eventManager.s(this.localization,"locale-changed",function(){nI(c);oI(c)});this.eventManager.s(this.player,
|
|
1821
1825
|
"loading",function(){pI(c)});this.eventManager.s(this.player,"texttrackvisibility",function(){qI(c);oI(c)});this.eventManager.s(this.player,"textchanged",function(){oI(c)});this.eventManager.s(this.player,"trackschanged",function(){pI(c)});qI(this);nI(this);oI(this);pI(this)}oa(lI,IG);function mI(a){var b=Jn();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(vE());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|