web-backset.cn/apps/web/public/player/libs/dash.all.min.2.9.3.js

32 lines
588 KiB
JavaScript
Raw Normal View History

2023-02-27 15:41:19 +08:00
/*! v2.9.3-acda4c40, 2019-02-12T23:12:37Z */
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(b,c,d){"use strict";var e={};e.encode=function(a){for(var b=[],c=0;c<a.length;++c){var d=a.charCodeAt(c);d<128?b.push(d):d<2048?(b.push(192|d>>6),b.push(128|63&d)):d<65536?(b.push(224|d>>12),b.push(128|63&d>>6),b.push(128|63&d)):(b.push(240|d>>18),b.push(128|63&d>>12),b.push(128|63&d>>6),b.push(128|63&d))}return b},e.decode=function(a){for(var b=[],c=0;c<a.length;){var d=a[c++];d<128||(d<224?(d=(31&d)<<6,d|=63&a[c++]):d<240?(d=(15&d)<<12,d|=(63&a[c++])<<6,d|=63&a[c++]):(d=(7&d)<<18,d|=(63&a[c++])<<12,d|=(63&a[c++])<<6,d|=63&a[c++])),b.push(String.fromCharCode(d))}return b.join("")};var f={};!function(b){var c=function(a){for(var c=0,d=[],e=0|a.length/3;0<e--;){var f=(a[c]<<16)+(a[c+1]<<8)+a[c+2];c+=3,d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push(b.charAt(63&f>>6)),d.push(b.charAt(63&f))}if(2==a.length-c){var f=(a[c]<<16)+(a[c+1]<<8);d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push(b.charAt(63&f>>6)),d.push("=")}else if(1==a.length-c){var f=a[c]<<16;d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push("==")}return d.join("")},d=function(){for(var a=[],c=0;c<b.length;++c)a[b.charCodeAt(c)]=c;return a["=".charCodeAt(0)]=0,a}(),g=function(a){for(var b=0,c=[],e=0|a.length/4;0<e--;){var f=(d[a.charCodeAt(b)]<<18)+(d[a.charCodeAt(b+1)]<<12)+(d[a.charCodeAt(b+2)]<<6)+d[a.charCodeAt(b+3)];c.push(255&f>>16),c.push(255&f>>8),c.push(255&f),b+=4}return c&&("="==a.charAt(b-2)?(c.pop(),c.pop()):"="==a.charAt(b-1)&&c.pop()),c},h={};h.encode=function(a){for(var b=[],c=0;c<a.length;++c)b.push(a.charCodeAt(c));return b},h.decode=function(b){for(var c=0;c<s.length;++c)a[c]=String.fromCharCode(a[c]);return a.join("")},f.decodeArray=function(a){var b=g(a);return new Uint8Array(b)},f.encodeASCII=function(a){var b=h.encode(a);return c(b)},f.decodeASCII=function(a){var b=g(a);return h.decode(b)},f.encode=function(a){var b=e.encode(a);return c(b)},f.decode=function(a){var b=g(a);return e.decode(b)}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),void 0!==d&&(d.decode=f.decode,d.decodeArray=f.decodeArray,d.encode=f.encode,d.encodeASCII=f.encodeASCII)},{}],2:[function(a,b,c){"use strict";!function(a){var b={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},c=function(a){var c=a;return b.hasOwnProperty(a)&&(c=b[a]),String.fromCharCode(c)},d=15,e=32,f={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},g={17:2,18:4,21:6,22:8,23:10,19:13,20:15},h={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},i={25:2,26:4,29:6,30:8,31:10,27:13,28:15},j=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],k={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(a){this.time=a},log:function(a,b){var c=this.verboseFilter[a];this.verboseLevel>=c&&console.log(this.time+" ["+a+"] "+b)}},l=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c].toString(16));return b},m=function(a,b,c,d,e){this.foreground=a||"white",this.underline=b||!1,this.itali
var d={};d.parseBuffer=function(a){return new e(a).parse()},d.addBoxProcessor=function(a,b){"string"==typeof a&&"function"==typeof b&&(f.prototype._boxProcessors[a]=b)},d.createFile=function(){return new e},d.createBox=function(a,b,c){var d=f.create(a);return b&&b.append(d,c),d},d.createFullBox=function(a,b,c){var e=d.createBox(a,b,c);return e.version=0,e.flags=0,e},d.Utils={},d.Utils.dataViewToString=function(a,b){var c=b||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(c).decode(a);var d=[],e=0;if("utf-8"===c)for(;e<a.byteLength;){var f=a.getUint8(e++);f<128||(f<224?(f=(31&f)<<6,f|=63&a.getUint8(e++)):f<240?(f=(15&f)<<12,f|=(63&a.getUint8(e++))<<6,f|=63&a.getUint8(e++)):(f=(7&f)<<18,f|=(63&a.getUint8(e++))<<12,f|=(63&a.getUint8(e++))<<6,f|=63&a.getUint8(e++))),d.push(String.fromCharCode(f))}else for(;e<a.byteLength;)d.push(String.fromCharCode(a.getUint8(e++)));return d.join("")},d.Utils.utf8ToByteArray=function(a){var b,c;if("undefined"!=typeof TextEncoder)b=(new TextEncoder).encode(a);else for(b=[],c=0;c<a.length;++c){var d=a.charCodeAt(c);d<128?b.push(d):d<2048?(b.push(192|d>>6),b.push(128|63&d)):d<65536?(b.push(224|d>>12),b.push(128|63&d>>6),b.push(128|63&d)):(b.push(240|d>>18),b.push(128|63&d>>12),b.push(128|63&d>>6),b.push(128|63&d))}return b},d.Utils.appendBox=function(a,b,c){if(b._offset=a._cursor.offset,b._root=a._root?a._root:a,b._raw=a._raw,b._parent=a,-1!==c){if(void 0===c||null===c)return void a.boxes.push(b);var d,e=-1;if("number"==typeof c)e=c;else{if("string"==typeof c)d=c;else{if("object"!=typeof c||!c.type)return void a.boxes.push(b);d=c.type}for(var f=0;f<a.boxes.length;f++)if(d===a.boxes[f].type){e=f+1;break}}a.boxes.splice(e,0,b)}},void 0!==c&&(c.parseBuffer=d.parseBuffer,c.addBoxProcessor=d.addBoxProcessor,c.createFile=d.createFile,c.createBox=d.createBox,c.createFullBox=d.createFullBox,c.Utils=d.Utils),d.Cursor=function(a){this.offset=void 0===a?0:a};var e=function(a){this._cursor=new d.Cursor,this.boxes=[],a&&(this._raw=new DataView(a))};e.prototype.fetch=function(a){var b=this.fetchAll(a,!0);return b.length?b[0]:null},e.prototype.fetchAll=function(a,b){var c=[];return e._sweep.call(this,a,c,b),c},e.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var a=f.parse(this);if(void 0===a.type)break;this.boxes.push(a)}return this},e._sweep=function(a,b,c){this.type&&this.type==a&&b.push(this);for(var d in this.boxes){if(b.length&&c)return;e._sweep.call(this.boxes[d],a,b,c)}},e.prototype.write=function(){var a,b=0;for(a=0;a<this.boxes.length;a++)b+=this.boxes[a].getLength(!1);var c=new Uint8Array(b);for(this._rawo=new DataView(c.buffer),this.bytes=c,this._cursor.offset=0,a=0;a<this.boxes.length;a++)this.boxes[a].write();return c.buffer},e.prototype.append=function(a,b){d.Utils.appendBox(this,a,b)};var f=function(){this._cursor=new d.Cursor};f.parse=function(a){var b=new f;return b._offset=a._cursor.offset,b._root=a._root?a._root:a,b._raw=a._raw,b._parent=a,b._parseBox(),a._cursor.offset=b._raw.byteOffset+b._raw.byteLength,b},f.create=function(a){var b=new f;return b.type=a,b.boxes=[],b},f.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],f.prototype._boxProcessors={},f.prototype._procField=function(a,b,c){this._parsing?this[a]=this._readField(b,c):this._writeField(b,c,this[a])},f.prototype._procFieldArray=function(a,b,c,d){var e;if(this._parsing)for(this[a]=[],e=0;e<b;e++)this[a][e]=this._readField(c,d);else for(e=0;e<this[a].length;e++)this._writeField(c,d,this[a][e])},f.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},f.prototype._procEntries=function(a,b,c){var d;if(this._parsing)for(this[a]=[],d=0;d<b;d++)this[a].push({}),c.call(this,this[a][d]);else for(d=0;d<b;d++)c.call(this,this[a][d])},f.prototype._procSubEntries=function(a,b,c,d){var e;if(this._parsing)for(a[b]=[],e=0;e<c;e++)a[b].push({}),d.call(this,a[b][e]);else for(e=0;e<c;e++)d.call(this,a[b
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,b<0?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;c<b;c++)a[c]=0;return a}function h(a,b,c){return"string"==typeof c&&""!==c||(c="utf8"),a=p(a,0|s(b,c)),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;d<c;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;d<c;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;d<c;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;e<d;e+=1)a[e]=255&c[e];return a}function p(a,b){return f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0),0!==b&&b<=f.poolSize>>>1&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b|=0,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),b<0&&(b=0),c>this.length&&(c=this.length),c<=b)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d))>e&&(d=e):d=e;var f=b.length;if(f%2!=0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;g<d;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;e<c;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(e+h<=c){var i,j,k,l;switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128==(192&i)&&(l=(31&f)<<6|63&i)>127&&(g=l);break;case 3:i=a[e+1],j=a[e+2],128==(192&i)&&128==(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j)>2047&&(l<55296||l>57343)&&(g=l);break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128==(192&i)&&128==(192&j)&&128==(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k)>65535&&l<1114112&&(g=l)}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
b.exports=function(a){return null!=a&&(d(a)||e(a)||!!a._isBuffer)}},{}],17:[function(a,b,c){(function(a){"use strict";function c(b,c,d,e){if("function"!=typeof b)throw new TypeError('"callback" argument must be a function');var f,g,h=arguments.length;switch(h){case 0:case 1:return a.nextTick(b);case 2:return a.nextTick(function(){b.call(null,c)});case 3:return a.nextTick(function(){b.call(null,c,d)});case 4:return a.nextTick(function(){b.call(null,c,d,e)});default:for(f=new Array(h-1),g=0;g<f.length;)f[g++]=arguments[g];return a.nextTick(function(){b.apply(null,f)})}}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?b.exports={nextTick:c}:b.exports=a}).call(this,a(18))},{18:18}],18:[function(a,b,c){function d(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function f(a){if(l===setTimeout)return setTimeout(a,0);if((l===d||!l)&&setTimeout)return l=setTimeout,setTimeout(a,0);try{return l(a,0)}catch(b){try{return l.call(null,a,0)}catch(b){return l.call(this,a,0)}}}function g(a){if(m===clearTimeout)return clearTimeout(a);if((m===e||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(a);try{return m(a)}catch(b){try{return m.call(null,a)}catch(b){return m.call(this,a)}}}function h(){q&&o&&(q=!1,o.length?p=o.concat(p):r=-1,p.length&&i())}function i(){if(!q){var a=f(h);q=!0;for(var b=p.length;b;){for(o=p,p=[];++r<b;)o&&o[r].run();r=-1,b=p.length}o=null,q=!1,g(a)}}function j(a,b){this.fun=a,this.array=b}function k(){}var l,m,n=b.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:d}catch(a){l=d}try{m="function"==typeof clearTimeout?clearTimeout:e}catch(a){m=e}}();var o,p=[],q=!1,r=-1;n.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];p.push(new j(a,b)),1!==p.length||q||f(i)},j.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=k,n.addListener=k,n.once=k,n.off=k,n.removeListener=k,n.removeAllListeners=k,n.emit=k,n.prependListener=k,n.prependOnceListener=k,n.listeners=function(a){return[]},n.binding=function(a){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(a){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],19:[function(a,b,c){b.exports=a(20)},{20:20}],20:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);j.call(this,a),k.call(this,a),a&&!1===a.readable&&(this.readable=!1),a&&!1===a.writable&&(this.writable=!1),this.allowHalfOpen=!0,a&&!1===a.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",e)}function e(){this.allowHalfOpen||this._writableState.ended||g.nextTick(f,this)}function f(a){a.end()}var g=a(17),h=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};b.exports=d;var i=a(12);i.inherits=a(15);var j=a(22),k=a(24);i.inherits(d,j);for(var l=h(k.prototype),m=0;m<l.length;m++){var n=l[m];d.prototype[n]||(d.prototype[n]=k.prototype[n])}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(a){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=a,this._writableState.destroyed=a)}}),d.prototype._destroy=function(a,b){this.push(null),this.end(),g.nextTick(b,a)}},{12:12,15:15,17:17,22:22,24:24}],21:[function(a,b,c){"use strict";function d(a){if(!(this instanceof d))return new d(a);e.call(this,a)}b.exports=d;var e=a(23),f=a(12);f.inherits=a(15),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{12:12,15:15,23:23}],22:[function(a,b,c){(function(c,d){"use strict";function e(a){return L.from(a)}function f(a){return L.isBuffer(a)||a instanceof M}function g(
if(a&&!i(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a(10).Buffer,i=h.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},j=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};j.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),b=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=b.charCodeAt(b.length-1);if(!(d>=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&d<=56319){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(b<=2&&c>>4==14){this.charLength=3;break}if(b<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{10:10}],37:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(d){return!1}var c=a.localStorage[b];return null!=c&&"true"===String(c).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],38:[function(a,b,c){!function(a,b,c,d,e){function f(a){this.node=a}function g(){this.events=[],this.head=null,this.body=null}function h(){this.styling=null,this.layout=null}function i(){this.styles={}}function j(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function k(){this.regions={}}function l(a){this.kind=a,this.begin=null,this.end=null,this.styleAttrs=null,this.regionID=null,this.sets=null,this.timeContainer=null}function m(){l.call(this,"body")}function n(){l.call(this,"div")}function o(){l.call(this,"p")}function p(){l.call(this,"span"),this.space=null}function q(){l.call(this,"span"),this.space=null,this.text=null}function r(){l.call(this,"br")}function s(){this.id=null,this.begin=null,this.end=null,this.styleAttrs=null,this.sets=null}function t(){this.begin=null,this.end=null,this.qname=null,this.value=null}function u(a){return a&&"xml:id"in a.attributes?a.attributes["xml:id"].value||null:null}function v(a){return a&&"region"in a.attributes?a.attributes.region.value:""}function w(a,b){var c=a&&"timeContainer"in a.attributes?a.attributes.timeContainer.value:null;return c&&"par"!==c?"seq"===c?"seq":(K(b,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}function x(a){return a&&"style"in a.attributes?a.attributes.style.value.split(" "):[]}function y(a,
}),new d(b.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new d(b.ns_tts,"origin","auto",["region"],!1,!0,function(a){if("auto"===a)return a;var b=a.split(" ");if(2!==b.length)return null;var d=c.parseLength(b[0]),e=c.parseLength(b[1]);return e&&d?{h:e,w:d}:null},function(a,b,c,d){var e,f;if("auto"===d)e=0;else if("%"===d.h.unit)e=d.h.value/100;else{if("px"!==d.h.unit)return null;e=d.h.value/a.pxDimensions.h}if("auto"===d)f=0;else if("%"===d.w.unit)f=d.w.value/100;else{if("px"!==d.w.unit)return null;f=d.w.value/a.pxDimensions.w}return{h:e,w:f}}),new d(b.ns_tts,"overflow","hidden",["region"],!1,!0,function(a){return a},null),new d(b.ns_tts,"padding","0px",["region"],!1,!0,function(a){var b=a.split(" ");if(b.length>4)return null;var d=[];for(var e in b){var f=c.parseLength(b[e]);if(!f)return null;d.push(f)}return d},function(b,c,d,e){var f;if(1===e.length)f=[e[0],e[0],e[0],e[0]];else if(2===e.length)f=[e[0],e[1],e[0],e[1]];else if(3===e.length)f=[e[0],e[1],e[2],e[1]];else{if(4!==e.length)return null;f=[e[0],e[1],e[2],e[3]]}var g=d.styleAttrs[a.byName.writingMode.qname];if("lrtb"===g||"lr"===g)f=[f[0],f[3],f[2],f[1]];else if("rltb"===g||"rl"===g)f=[f[0],f[1],f[2],f[3]];else if("tblr"===g)f=[f[3],f[0],f[1],f[2]];else{if("tbrl"!==g&&"tb"!==g)return null;f=[f[3],f[2],f[1],f[0]]}var h=[];for(var i in f)if(0===f[i].value)h[i]=0;else if("%"===f[i].unit)h[i]="0"===i||"2"===i?d.styleAttrs[a.byName.extent.qname].h*f[i].value/100:d.styleAttrs[a.byName.extent.qname].w*f[i].value/100;else if("em"===f[i].unit)h[i]=d.styleAttrs[a.byName.fontSize.qname]*f[i].value;else if("c"===f[i].unit)h[i]=f[i].value/b.cellResolution.h;else{if("px"!==f[i].unit)return null;h[i]=f[i].value/b.pxDimensions.h}return h}),new d(b.ns_tts,"showBackground","always",["region"],!1,!0,function(a){return a},null),new d(b.ns_tts,"textAlign","start",["p"],!0,!0,function(a){return a},function(a,b,c,d){return"left"===d?"start":"right"===d?"end":d}),new d(b.ns_tts,"textDecoration","none",["span"],!0,!0,function(a){return a.split(" ")},null),new d(b.ns_tts,"textOutline","none",["span"],!0,!0,function(a){if("none"===a)return a;var b={},d=a.split(" ");if(0===d.length||d.length>2)return null;var e=c.parseColor(d[0]);if(b.color=e,null!==e&&d.shift(),1!==d.length)return null;var f=c.parseLength(d[0]);return f?(b.thickness=f,b):null},function(b,c,d,e){if("none"===e)return e;var f={};if(null===e.color?f.color=d.styleAttrs[a.byName.color.qname]:f.color=e.color,"%"===e.thickness.unit)f.thickness=d.styleAttrs[a.byName.fontSize.qname]*e.thickness.value/100;else if("em"===e.thickness.unit)f.thickness=d.styleAttrs[a.byName.fontSize.qname]*e.thickness.value;else if("c"===e.thickness.unit)f.thickness=e.thickness.value/b.cellResolution.h;else{if("px"!==e.thickness.unit)return null;f.thickness=e.thickness.value/b.pxDimensions.h}return f}),new d(b.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,function(a){return a},null),new d(b.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,function(a){return a},null),new d(b.ns_tts,"wrapOption","wrap",["span"],!0,!0,function(a){return a},null),new d(b.ns_tts,"writingMode","lrtb",["region"],!1,!0,function(a){return a},null),new d(b.ns_tts,"zIndex","auto",["region"],!1,!0,function(a){var b;return"auto"===a?b=a:(b=parseInt(a),isNaN(b)&&(b=null)),b},null),new d(b.ns_ebutts,"linePadding","0c",["p"],!0,!1,c.parseLength,function(a,b,c,d){return"c"===d.unit?d.value/a.cellResolution.h:null}),new d(b.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,function(a){return a},null),new d(b.ns_smpte,"backgroundImage",null,["div"],!1,!1,function(a){return a},null),new d(b.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,function(a){return"true"===a},null)],a.byQName={};for(var e in a.all)a.byQName[a.all[e].qname]=a.all[e];a.byName={};for(var f in a.all)a.byName[a.all[f].name]=a.all[f]}(void 0===c?this.imscStyles={}:c,"undefined"==typeof imscNames?a(42):imscNames,"undefined"==typeof imscUtils?a(44):imscUtils)},{42:42,44:44}],44:[function(a,b,c){!function(a){var b=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-f
String.fromCodePoint||function(){var a=String.fromCharCode,b=Math.floor,c=function(){var c,d,e=16384,f=[],g=-1,h=arguments.length;if(!h)return"";for(var i="";++g<h;){var j=Number(arguments[g]);if(!isFinite(j)||j<0||j>1114111||b(j)!==j)throw RangeError("Invalid code point: "+j);j<=65535?f.push(j):(j-=65536,c=55296+(j>>10),d=j%1024+56320,f.push(c,d)),(g+1===h||f.length>e)&&(i+=a.apply(null,f),f.length=0)}return i};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:c,configurable:!0,writable:!0}):String.fromCodePoint=c}()}(void 0===c?this.sax={}:c)}).call(this,a(10).Buffer)},{10:10,35:35,36:36}],46:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){B=!0,C=!0,E=o,D=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(z[m]=b(window.console.error),z[n]=b(window.console.error),z[o]=b(window.console.warn),z[p]=b(window.console.info),z[q]=b(window.console.debug))}function b(a){return a&&a.bind?a.bind(window.console):window.console.log.bind(window.console)}function c(a){return{fatal:r.bind(a),error:s.bind(a),warn:t.bind(a),info:u.bind(a),debug:v.bind(a)}}function d(a){E=a}function e(){return E}function f(a){B=a}function h(a){C=a}function j(a){E=a?q:l}function k(){return E!==l}function r(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];w.apply(void 0,[m,this].concat(b))}function s(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];w.apply(void 0,[n,this].concat(b))}function t(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];w.apply(void 0,[o,this].concat(b))}function u(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];w.apply(void 0,[p,this].concat(b))}function v(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];w.apply(void 0,[q,this].concat(b))}function w(a,b){var c="",d=null;B&&(d=(new Date).getTime(),c+="["+(d-D)+"]"),C&&b&&b.getClassName&&(c+="["+b.getClassName()+"]",b.getType&&(c+="["+b.getType()+"]")),c.length>0&&(c+=" ");for(var e=arguments.length,f=Array(e>2?e-2:0),g=2;g<e;g++)f[g-2]=arguments[g];Array.apply(null,f).forEach(function(a){c+=a+" "}),z[a]&&E>=a&&z[a](c),y.trigger(i.default.LOG,{message:c,level:a})}var x=this.context,y=(0,g.default)(x).getInstance(),z=[],A=void 0,B=void 0,C=void 0,D=void 0,E=void 0;return A={getLogger:c,setLogTimestampVisible:f,setCalleeNameVisible:h,setLogToBrowserConsole:j,getLogToBrowserConsole:k,setLogLevel:d,getLogLevel:e},a(),A}Object.defineProperty(c,"__esModule",{value:!0});var f=a(47),g=d(f),h=a(53),i=d(h),j=a(48),k=d(j),l=0,m=1,n=2,o=3,p=4,q=5;e.__dashjs_factory_name="Debug";var r=k.default.getSingletonFactory(e);r.LOG_LEVEL_NONE=l,r.LOG_LEVEL_FATAL=m,r.LOG_LEVEL_ERROR=n,r.LOG_LEVEL_WARNING=o,r.LOG_LEVEL_INFO=p,r.LOG_LEVEL_DEBUG=q,k.default.updateSingletonFactory(e.__dashjs_factory_name,r),c.default=r,b.exports=c.default},{47:47,48:48,53:53}],47:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(a,b,c){var e=arguments.length<=3||void 0===arguments[3]?h:arguments[3];if(!a)throw new Error("event type cannot be null or undefined");if(!b||"function"!=typeof b)throw new Error("listener must be a function: "+b);if(!(d(a,b,c)>=0)){f[a]=f[a]||[];var g={callback:b,scope:c,priority:e};f[a].some(function(b,c){if(b&&e>b.priority)return f[a].splice(c,0,g),!0})||f[a].push(g)}}function b(a,b,c){if(a&&b&&f[a]){var e=d(a,b,c);e<0||(f[a][e]=null)}}function c(a,b){if(a&&f[a]){if(b=b||{},b.hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");b.type=a,f[a]=f[a].filter(function(a){return a}),f[a].forEach(function(a){return a&&a.callback.call(a.scope,b)})}}function d(a,b,c){var d=-1;return f[a]?(f[a].some(function(a,e){if(a&&a.callback===b&&(!c||c===a.scope))return d=e,!0}),d):d}function e(){f={}}var f={};return{on:a,off:b,trigger:c,reset:e}}Object.defineProperty(c,"__esModule",{value:!0});var f=a(48),g=d(f),h=0,i=5e3;e.__dashjs_factory_name="EventBus";var j=g.default.getSingletonFactory(e);j.EVENT_PRIORITY_LOW=h,j.EVENT_PRIORI
getCurrentDVRInfo:s,getCurrentManifestUpdate:r,getLatestFragmentRequestHeaderValueByID:u,getLatestMPDRequestHeaderValueByID:t,getRequestsQueue:k}}Object.defineProperty(c,"__esModule",{value:!0});var f=a(235),g=a(48),h=d(g),i=a(102),j=d(i),k=a(75),l=d(k);e.__dashjs_factory_name="DashMetrics",c.default=h.default.getSingletonFactory(e),b.exports=c.default},{102:102,235:235,48:48,75:75}],58:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){t=(0,u.default)(p).getInstance().getLogger(s)}function b(){y=(0,q.default)(p).getInstance(),A=(0,g.default)(p).getInstance(),E=(0,z.default)(p).create({errHandler:w,metricsModel:C,mediaPlayerModel:D,requestModifier:A})}function c(a){a.baseURLController&&(F=a.baseURLController),a.metricsModel&&(C=a.metricsModel),a.mediaPlayerModel&&(D=a.mediaPlayerModel),a.errHandler&&(w=a.errHandler)}function d(){if(!F||!F.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function e(a,b){d();var c=null,f=F.resolve(a.path),g=b||{init:!0,url:f?f.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500};t.debug("Start searching for initialization.");var h=l(g),i=function(b){g.bytesLoaded=g.range.end,c=y.findInitRange(b),c?(a.range=c,r.trigger(m.default.INITIALIZATION_LOADED,{representation:a})):(g.range.end=g.bytesLoaded+g.bytesToLoad,e(a,g))},j=function(){r.trigger(m.default.INITIALIZATION_LOADED,{representation:a})};E.load({request:h,success:i,error:j}),t.debug("Perform init search: "+g.url)}function f(a,b,c,e,g){if(d(),c&&(void 0===c.start||void 0===c.end)){var h=c?c.toString().split("-"):null;c=h?{start:parseFloat(h[0]),end:parseFloat(h[1])}:null}g=g||n;var i=null,k=null,m=!!c,o=F.resolve(a.path),p={init:!1,url:o?o.url:void 0,range:m?c:{start:0,end:1500},searching:!m,bytesLoaded:e?e.bytesLoaded:0,bytesToLoad:1500},q=l(p),r=function(c){var d=p.bytesToLoad,e=c.byteLength;if(p.bytesLoaded=p.range.end-p.range.start,i=y.parse(c),(k=i.getBox("sidx"))&&k.isComplete){var h=k.references,l=void 0,m=void 0;null!==h&&void 0!==h&&h.length>0&&(l=1===h[0].reference_type),l?function(){t.debug("Initiate multiple SIDX load."),p.range.end=p.range.start+k.size;var c=void 0,d=void 0,e=void 0,i=void 0,j=void 0,l=[],m=0,n=(k.offset||p.range.start)+k.size,o=function(c){c?(l=l.concat(c),++m>=d&&g(l,a,b)):g(null,a,b)};for(c=0,d=h.length;c<d;c++)e=n,i=n+h[c].referenced_size-1,n+=h[c].referenced_size,j={start:e,end:i},f(a,null,j,p,o)}():(t.debug("Parsing segments from SIDX."),m=j(k,p),g(m,a,b))}else{if(k)p.range.start=k.offset||p.range.start,p.range.end=p.range.start+(k.size||d);else{if(e<p.bytesLoaded)return void g(null,a,b);var n=i.getLastBox();n&&n.size?(p.range.start=n.offset+n.size,p.range.end=p.range.start+d):p.range.end+=d}f(a,b,p.range,p,g)}},s=function(){g(null,a,b)};E.load({request:q,success:r,error:s}),t.debug("Perform SIDX load: "+p.url)}function h(){E.abort(),E=null,w=null,y=null,A=null}function j(a,b){for(var c=a.references,d=c.length,e=a.timescale,f=a.earliest_presentation_time,g=b.range.start+a.offset+a.first_offset+a.size,h=[],j=void 0,k=void 0,l=void 0,m=void 0,n=0;n<d;n++)l=c[n].subsegment_duration,m=c[n].referenced_size,j=new i.default,j.duration=l,j.startTime=f,j.timescale=e,k=g+m-1,j.mediaRange=g+"-"+k,h.push(j),f+=l,g+=m;return h}function l(a){if(a.url){var b=new x.default;return b.type=a.init?v.HTTPRequest.INIT_SEGMENT_TYPE:v.HTTPRequest.MEDIA_SEGMENT_TYPE,b.url=a.url,b.range=a.range.start+"-"+a.range.end,b}}function n(a,b,c){a?r.trigger(m.default.SEGMENTS_LOADED,{segments:a,representation:b,mediaType:c}):r.trigger(m.default.SEGMENTS_LOADED,{segments:null,representation:b,mediaType:c,error:new k.default(B.default.SEGMENT_BASE_LOADER_ERROR_CODE,B.default.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}var p=this.context,r=(0,o.default)(p).getInstance(),s=void 0,t=void 0,w=void 0,y=void 0,A=void 0,C=void 0,D=void 0,E=void 0,F=void 0;return s={setConfig:c,initialize:b,loadInitialization:e,loadSegments:f,reset:h},a(),s}Object.defineProperty(c,"__esModule",{value:!0});var f=a(207),g=d(f),h=a(88),i=d(h),j
a[d].hasOwnProperty(i.default.TIMESCALE)&&(e.timescale=a[d].timescale),a[d].hasOwnProperty(i.default.VALUE)&&(e.value=a[d].value),c.push(e)}return c}function ja(a,b){var c=void 0,d=void 0,e=void 0;return a&&a.Period_asArray&&b&&b.period&&wa(b.period.index)&&(d=a.Period_asArray[b.period.index])&&d.AdaptationSet_asArray&&wa(b.index)&&(e=d.AdaptationSet_asArray[b.index])&&(c=e.InbandEventStream_asArray),ia(c,null)}function ka(a,b){var c=void 0,d=void 0,e=void 0,f=void 0;return a&&a.Period_asArray&&b&&b.adaptation&&b.adaptation.period&&wa(b.adaptation.period.index)&&(d=a.Period_asArray[b.adaptation.period.index])&&d.AdaptationSet_asArray&&wa(b.adaptation.index)&&(e=d.AdaptationSet_asArray[b.adaptation.index])&&e.Representation_asArray&&wa(b.index)&&(f=e.Representation_asArray[b.index])&&(c=f.InbandEventStream_asArray),ia(c,b)}function la(a){var b=Q(a),c=!!a&&a.hasOwnProperty(i.default.AVAILABILITY_START_TIME),d=a?a.UTCTiming_asArray:null,e=[];return(b||c)&&d&&d.forEach(function(a){var b=new s.default;a.hasOwnProperty(g.default.SCHEME_ID_URI)&&(b.schemeIdUri=a.schemeIdUri,a.hasOwnProperty(i.default.VALUE)&&(b.value=a.value.toString(),e.push(b)))}),e}function ma(a){var b=[],c=a.BaseURL_asArray||[a.baseUri],d=!1;return c.some(function(c){if(c){var e=new w.default,f=c.__text||c;return ra.isRelative(f)&&(d=!0,a.baseUri&&(f=ra.resolve(f,a.baseUri))),e.url=f,c.hasOwnProperty(i.default.SERVICE_LOCATION)&&c.serviceLocation.length?e.serviceLocation=c.serviceLocation:e.serviceLocation=f,c.hasOwnProperty(i.default.DVB_PRIORITY)&&(e.dvb_priority=c[i.default.DVB_PRIORITY]),c.hasOwnProperty(i.default.DVB_WEIGHT)&&(e.dvb_weight=c[i.default.DVB_WEIGHT]),c.hasOwnProperty(i.default.AVAILABILITY_TIME_OFFSET)&&(e.availabilityTimeOffset=c[i.default.AVAILABILITY_TIME_OFFSET]),c.hasOwnProperty(i.default.AVAILABILITY_TIME_COMPLETE)&&(e.availabilityTimeComplete="false"!==c[i.default.AVAILABILITY_TIME_COMPLETE]),b.push(e),d}}),b}function na(a){if(a&&a.hasOwnProperty(g.default.LOCATION))return a.Location=a.Location_asArray[0],a.Location}a=a||{};var oa=void 0,pa=void 0,qa=this.context,ra=(0,C.default)(qa).getInstance(),sa=a.timelineConverter,ta=a.errHandler,ua=a.BASE64,va="urn:dvb:dash:profile:dvb-dash:2014",wa=Number.isInteger||function(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a};return oa={getIsTypeOf:c,getIsTextTrack:l,getLanguageForAdaptation:n,getViewpointForAdaptation:p,getRolesForAdaptation:r,getAccessibilityForAdaptation:t,getAudioChannelConfigurationForAdaptation:v,getAdaptationForIndex:E,getIndexForAdaptation:F,getAdaptationForId:D,getAdaptationsForType:H,getCodec:J,getMimeType:M,getKID:N,getLabelsForAdaptation:O,getContentProtectionData:P,getIsDynamic:Q,getIsDVB:S,getDuration:T,getBandwidth:U,getManifestUpdatePeriod:V,getRepresentationCount:W,getBitrateListForAdaptation:X,getRepresentationFor:Z,getRepresentationsForAdaptation:ba,getAdaptationsForPeriod:ca,getRegularPeriods:da,getMpd:fa,getEventsForPeriod:ha,getEventStreamForAdaptationSet:ja,getEventStreamForRepresentation:ka,getUTCTimingSources:la,getBaseURLsFromElement:ma,getRepresentationSortFunction:x,getLocation:na,getUseCalculatedLiveEdgeTimeForAdaptation:aa},b(),oa}Object.defineProperty(c,"__esModule",{value:!0});var f=a(101),g=d(f),h=a(60),i=d(h),j=a(87),k=d(j),l=a(81),m=d(l),n=a(86),o=d(n),p=a(85),q=d(p),r=a(89),s=d(r),t=a(83),u=d(t),v=a(82),w=d(v),x=a(84),y=d(x),z=a(206),A=d(z),B=a(210),C=d(B),D=a(48),E=d(D),F=a(46),G=d(F),H=a(215),I=d(H),J=a(50),K=d(J),L=a(195);e.__dashjs_factory_name="DashManifestModel",c.default=E.default.getSingletonFactory(e),b.exports=c.default},{101:101,195:195,206:206,210:210,215:215,46:46,48:48,50:50,60:60,81:81,82:82,83:83,84:84,85:85,86:86,87:87,89:89}],63:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){g=(0,i.default)(e).getInstance().getLogger(f),h=[new q.default,new s.default,new u.default,new o.default],j=new m.default({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:h}),l=(0,k.
Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN};c.default=e,b.exports=c.default},{}],84:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""};c.default=e,b.exports=c.default},{}],85:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN};c.default=e,b.exports=c.default},{}],86:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null};e.DEFAULT_ID="defaultId",c.default=e,b.exports=c.default},{}],87:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),g=a(60),h=d(g),i=function(){function a(){e(this,a),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}return f(a,null,[{key:"hasInitialization",value:function(a){return null!==a.initialization||null!==a.range}},{key:"hasSegments",value:function(a){return a.segmentInfoType!==h.default.BASE_URL&&a.segmentInfoType!==h.default.SEGMENT_BASE&&!a.indexRange}}]),a}();c.default=i,b.exports=c.default},{60:60}],88:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null};c.default=e,b.exports=c.default},{}],89:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function a(){d(this,a),this.schemeIdUri="",this.value=""};c.default=e,b.exports=c.default},{}],90:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){function b(){var b=(0,o.default)(h).getInstance();n=(0,g.default)(h).create({errHandler:a.errHandler,metricsModel:a.metricsModel,mediaPlayerModel:a.mediaPlayerModel,requestModifier:a.requestModifier,boxParser:b,useFetch:a.mediaPlayerModel.getLowLatencyEnabled()})}function c(a){var b=function(b){j.trigger(q.defa
this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.TRACK_CHANGE_RENDERED="trackChangeRendered",this.SOURCE_INITIALIZED="sourceInitialized",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.TTML_PARSED="ttmlParsed",this.TTML_TO_PARSE="ttmlToParse",this.CAPTION_RENDERED="captionRendered",this.CAPTION_CONTAINER_RESIZE="captionContainerResize",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_SEEK_ASKED="playbackSeekAsked",this.PLAYBACK_STALLED="playbackStalled",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",this.PLAYBACK_WAITING="playbackWaiting",this.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged"}return f(b,a),b}(i.default),k=new j;c.default=k,b.exports=c.default},{54:54}],95:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(a,b,c){if(!a||!/^VIDEO$/i.test(a.nodeName))return null;if(a._dashjs_player)return a._dashjs_player;var f=void 0,g=a.id||a.name||"video element";if(!(b=b||[].slice.call(a.querySelectorAll("source")).filter(function(a){return a.type==d})[0])&&a.src)b=document.createElement("source"),b.src=a.src;else if(!b&&!a.src)return null;return c=c||{},f=(0,i.default)(c).create(),f.initialize(a,b.src,a.autoplay),e||(e=f.getDebug().getLogger()),e.debug("Converted "+g+" to dash.js player and added content: "+b.src),a._dashjs_player=f,f}function b(b,e){var f=[];b=b||"[data-dashjs-player]",e=e||document;for(var g=e.querySelectorAll(b),h=0;h<g.length;h++){var i=a(g[h],null);f.push(i)}for(var j=e.querySelectorAll('source[type="'+d+'"]'),h=0;h<j.length;h++){var k=c(j[h]),i=a(k,null);f.push(i)}return f}function c(a){for(var b=!0;b;){var c=a;if(b=!1,/^VIDEO$/i.test(c.nodeName))return c;a=c.parentNode,b=!0}}var d="application/dash+xml",e=void 0;return{create:a,createAll:b}}function f(){window.removeEventListener("load",f),j.createAll()}function g(){window.dashjs&&(window.clearInterval(k),j.createAll())}Object.defineProperty(c,"__esModule",{value:!0});var h=a(93),i=d(h),j=e(),k=void 0;!("undefined"!=typeof window&&window&&window.dashjs&&window.dashjs.skipAutoCreate)&&"undefined"!=typeof window&&window&&window.addEventListener&&("complete"===window.document.readyState?window.dashjs?j.createAll():k=window.setInterval(g,500):window.addEventListener("load",f)),c.default=j,b.exports=c.default},{93:93}],96:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){function b(){o=(0,g.default)(m).getInstance().getLogger(n)}function c(){q=[],p=null,r=null}function d(a){"InitializationSegment"!==a.segmentType?(q.push(a),q.sort(function(a,b){return a.start-b.start}),p=null):p=a,o.debug("PreBufferSink appended chunk s: "+a.start+"; e: "+a.end),r&&r({chunk:a})}function e(a,b){q=q.filter(function(c){return!((isNaN(b)||c.start<b)&&(isNaN(a)||c.end>a))})}function f(){}function h(){for(var a=[],b=0;b<q.length;b++){var c=q[b];0===a.length||c.start>a[a.length-1].end?a.push({start:c.start,end:c.en
(0,I.checkIsVideoOrAudioType)(a),Da.max=Da.max||{},Da.max[a]=b}function G(a,b){(0,I.checkParameterType)(b,"number"),(0,I.checkIsVideoOrAudioType)(a),Da.min=Da.min||{},Da.min[a]=b}function O(a){var b=z(a);return b?da(Fa[a].getMediaInfo(),b):void 0}function P(a){var b=B(a);if(b){var c=Fa[a].getMediaInfo(),d=ea(c),e=da(c,b);return d[e]&&e<d.length-1&&d[e].bitrate<1e3*b&&e++,e}}function Q(a){return Ea.hasOwnProperty("max")&&Ea.max.hasOwnProperty(a)?Ea.max[a]:1}function R(a,b){Ea.max=Ea.max||{},Ea.max[a]=b}function S(a){return Aa[a]}function T(a,b){(0,I.checkParameterType)(b,"boolean"),(0,I.checkIsVideoOrAudioType)(a),Aa[a]=b}function U(){return Ia}function V(a){(0,I.checkParameterType)(a,"boolean"),Ia=a}function W(){return Ja}function X(a){(0,I.checkParameterType)(a,"boolean"),Ja=a}function Y(){return Za}function Z(a){(0,I.checkParameterType)(a,"boolean"),Za=a}function $(a){if(a&&Fa&&Fa[a]){var b=Fa[a].getStreamInfo(),c=b?b.id:null,d=ka(a),e=(0,w.default)(ta).create({abrController:wa,streamProcessor:Fa[a],currentValue:d,switchHistory:Ta[a],droppedFramesHistory:Ua,useBufferOccupancyABR:ga(a)});if(Ua){var f=Pa.getPlaybackQuality();f&&Ua.push(Sa,f)}if(S(a)){var g=P(a),h=p(a,c),i=ya.getMaxQuality(e),j=i.quality;if(void 0!==g&&j<g&&(j=g),j>h&&(j=h),Ta[a].push({oldValue:d,newValue:j}),j>y.default.NO_CHANGE&&j!=d)(Ga[a].state===K||j>d)&&aa(a,d,j,h,i.reason);else if(ua.getLogToBrowserConsole()){var k=Ya.getCurrentBufferLevel(Xa.getReadOnlyMetricsFor(a));xa.debug("AbrController ("+a+") stay on "+d+"/"+h+" (buffer: "+k+")")}}}}function _(a,b,c,d){var e=b.id,f=ka(a);(0,I.checkInteger)(c);var g=p(a,e);c!==f&&c>=0&&c<=g&&aa(a,f,c,g,d)}function aa(a,b,c,d,e){if(a&&Fa[a]){var f=Fa[a].getStreamInfo(),g=f?f.id:null;if(ua.getLogToBrowserConsole()){var h=Ya.getCurrentBufferLevel(Xa.getReadOnlyMetricsFor(a));xa.info("AbrController ("+a+") switch from "+b+" to "+c+"/"+d+" (buffer: "+h+") "+(e?JSON.stringify(e):"."))}la(a,g,c),va.trigger(s.default.QUALITY_CHANGE_REQUESTED,{mediaType:a,streamInfo:f,oldQuality:b,newQuality:c,reason:e})}}function ba(a,b){Ga[a].state=b}function ca(a){return Ga[a]?Ga[a].state:null}function da(a,b,c){var d=a&&a.type?Fa[a.type].getRepresentationInfo():null;if(Za&&c&&d&&d.fragmentDuration){c/=1e3;var e=d.fragmentDuration;if(c>e)return 0;b*=1-c/e}for(var f=ea(a),g=f.length-1;g>=0;g--){if(1e3*b>=f[g].bitrate)return g}return N}function ea(a){var b=[];if(!a||!a.bitrateList)return b;for(var c=a.bitrateList,d=a.type,e=void 0,f=0,g=c.length;f<g;f++)e=new m.default,e.mediaType=d,e.qualityIndex=f,e.bitrate=c[f].bandwidth,e.width=c[f].width,e.height=c[f].height,e.scanType=c[f].scanType,b.push(e);return b}function fa(a,b){var c=Qa.getABRStrategy();if(c===i.default.ABR_STRATEGY_BOLA)return void(Wa[a]=!0);if(c===i.default.ABR_STRATEGY_THROUGHPUT)return void(Wa[a]=!1);var d=Qa.getStableBufferTime(),e=d,f=.5*d,g=Wa[a],h=b>(g?f:e);Wa[a]=h,h!==g&&(h?xa.info("AbrController ("+a+") switching from throughput to buffer occupancy ABR rule (buffer: "+b.toFixed(3)+")."):xa.info("AbrController ("+a+") switching from buffer occupancy to throughput ABR rule (buffer: "+b.toFixed(3)+")."))}function ga(a){return Wa[a]}function ha(){return Va}function ia(a){var b=a.type,c=a.streamInfo.id,d=a.representationCount-1;return ma(b,c,d),d}function ja(a){var b=a?a.id:null,c=ka(i.default.AUDIO),d=ka(i.default.VIDEO);return c===p(i.default.AUDIO,b)&&d===p(i.default.VIDEO,b)}function ka(a){if(a&&Fa[a]){var b=Fa[a].getStreamInfo(),c=b?b.id:null;if(c)return Ca[c]=Ca[c]||{},Ca[c].hasOwnProperty(a)||(Ca[c][a]=N),Ca[c][a]}return N}function la(a,b,c){Ca[b]=Ca[b]||{},Ca[b][a]=c}function ma(a,b,c){Ba[b]=Ba[b]||{},Ba[b][a]=c}function na(a,b){var c=a;if(!Fa[b])return c;var d=P(b);void 0!==d&&(c=Math.max(a,d));var e=O(b);return void 0!==e&&(c=Math.min(c,e)),c}function oa(a,b,c){var d=Q(b);return isNaN(d)||d>=1||d<0?a:Math.min(a,Math.round(c*d))}function pa(a){Ka=a}function qa(){if(Pa){var a=Ja&&window.hasOwnProperty("devicePixelRatio"),b=a?window.devicePixelRatio:1;La=Pa.getClientWidth()*b,Ma=Pa.getClientHeight()*b}}function ra(a,b){if(b!==i.default.VIDEO||!Ia||!Fa[b])ret
u.DEFAULT_INIT_TRACK_SELECTION_MODE=t,m.default.updateSingletonFactory(e.__dashjs_factory_name,u),c.default=u,b.exports=c.default},{101:101,46:46,47:47,48:48,53:53}],111:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){j=(0,i.default)(k).getInstance().getLogger(h)}function b(){var a="WebKitMediaSource"in window;return"MediaSource"in window?new MediaSource:a?new WebKitMediaSource:null}function c(a,b){var c=window.URL.createObjectURL(a);return b.setSource(c),c}function d(a){a.setSource(null)}function e(a,b){return a.duration!=b&&(a.duration=b),a.duration}function f(a,b,c){a&&"function"==typeof a.setLiveSeekableRange&&"function"==typeof a.clearLiveSeekableRange&&"open"===a.readyState&&b>=0&&b<c&&(a.clearLiveSeekableRange(),a.setLiveSeekableRange(b,c))}function g(a){var b=a.sourceBuffers,c=b.length;if("open"===a.readyState){for(var d=0;d<c;d++){if(b[d].updating)return;if(0===b[d].buffered.length)return}j.info("call to mediaSource endOfStream"),a.endOfStream()}}var h=void 0,j=void 0,k=this.context;return h={createMediaSource:b,attachMediaSource:c,detachMediaSource:d,setDuration:e,setSeekable:f,signalEndOfStream:g},a(),h}Object.defineProperty(c,"__esModule",{value:!0});var f=a(48),g=d(f),h=a(46),i=d(h);e.__dashjs_factory_name="MediaSourceController",c.default=g.default.getSingletonFactory(e),b.exports=c.default},{46:46,48:48}],112:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){pa=(0,q.default)(ma).getInstance().getLogger(oa),D()}function b(a,b){Da=a,ka(),Ea=Da.manifestInfo.isDynamic,Ka=!1,La=!1,ya=Da.start,Ja=b;var d="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",e=/safari/.test(d)&&!/chrome/.test(d);Ma=e?.25:.02,na.on(m.default.DATA_UPDATE_COMPLETED,L,this),na.on(m.default.BYTES_APPENDED_END_FRAGMENT,ga,this),na.on(m.default.LOADING_PROGRESS,ha,this),na.on(m.default.BUFFER_LEVEL_STATE_CHANGED,ia,this),na.on(m.default.PERIOD_SWITCH_STARTED,c,this),na.on(m.default.PLAYBACK_PROGRESS,ba,this),na.on(m.default.PLAYBACK_TIME_UPDATED,ba,this),na.on(m.default.PLAYBACK_ENDED,Z,this),Ga&&(Ga=!1,f())}function c(a){!Ea&&a.fromStreamInfo&&void 0!==Aa[a.fromStreamInfo.id]&&(delete Ca[a.fromStreamInfo.id],delete Aa[a.fromStreamInfo.id])}function d(){return parseFloat((e()-p()).toFixed(5))}function e(){var a=G(!0),b=Ea&&Da?a-Da.start:0;return a+(Da?Da.duration-b:b)}function f(){Da&&wa&&wa.getElement()?wa.play():Ga=!0}function h(){return Da&&wa?wa.isPaused():null}function j(){Da&&wa&&wa.pause()}function l(){return Da&&wa?wa.isSeeking():null}function n(a,b,c){Da&&wa&&(!0===c?a!==wa.getTime()&&(wa.removeEventListener("seeking",R),pa.info("Requesting seek to time: "+a),wa.setCurrentTime(a,b)):(na.trigger(m.default.PLAYBACK_SEEK_ASKED),pa.info("Requesting seek to time: "+a),wa.setCurrentTime(a,b)))}function o(){var a=ra.getReadOnlyMetricsFor(g.default.VIDEO)||ra.getReadOnlyMetricsFor(g.default.AUDIO),b=sa.getCurrentDVRInfo(a);n((b?b.range:null).end-Fa.getLiveDelay(),!0,!1)}function p(){return Da&&wa?wa.getTime():null}function s(){var a=p();if(Ea&&!isNaN(Ia)){var b=Ia/1e3;a>b&&(a-=b)}return a}function t(){return Da&&wa?wa.getPlaybackRate():null}function u(){return Da&&wa?wa.getPlayedRanges():null}function v(){return Da&&wa?wa.getEnded():null}function w(){return Ea}function x(){return qa}function y(a){ya=a}function z(){return ya}function A(a,b){var c=ua.getMpd(ta.getValue()),d=void 0,e=void 0;if(d=Fa.getUseSuggestedPresentationDelay()&&c.hasOwnProperty(g.default.SUGGESTED_PRESENTATION_DELAY)?c.suggestedPresentationDelay:Fa.getLowLatencyEnabled()?0:Fa.getLiveDelay()?Fa.getLiveDelay():isNaN(a)?2*Da.manifestInfo.minBufferTime:a*Fa.getLiveDelayFragmentCount(),c.availabilityStartTime&&(Ia=c.availabilityStartTime.getTime()),b>0){var f=Math.max(b-10,b/2);e=Math.min(d,f)}else e=d;return Ba=e,e}function B(){return Ba}function C(){if(!Ea||isNaN(Ia))return NaN;var a=s();if(isNaN(a)||0===a)return 0;var b=(new Date).getTime()+1e3*xa.getClientTimeOffset();return Math.max(((b-Ia-1e3*a)/1e3).toFixed(3),0)}function D(){ya=NaN,Ga=
Ga.error(new J.default(L.default.MANIFEST_ERROR_ID_NOSTREAMS_CODE,j.message+"nostreamscomposed",sa.getValue())),Pa=!0,ia()}}function T(){var a=sa.getValue();Ka&&(ma.trigger(q.default.PROTECTION_CREATED,{controller:Ka,manifest:a}),Ka.setMediaElement(Ra.getElement()),La&&Ka.setProtectionData(La)),S()}function U(a){a.error?(Pa=!0,ia()):function(){var b=a.manifest;ua.updatePeriods(b);var c=ua.getStreamsInfo(void 0,1)[0],d=ua.getMediaInfoForType(c,g.default.VIDEO)||ua.getMediaInfoForType(c,g.default.AUDIO),e=void 0;d&&(e=ta.getUseCalculatedLiveEdgeTimeForAdaptation(ua.getDataForMedia(d)))&&(oa.debug("SegmentTimeline detected using calculated Live Edge Time"),Ta.setUseManifestDateHeaderTimeSource(!1));var f=ta.getUTCTimingSources(a.manifest),h=!ta.getIsDynamic(b)||e?f:f.concat(Ta.getUTCTimingSources()),i=Fa.isHTTPS(a.manifest.url);h.forEach(function(a){a.value.replace(/.*?:\/\//g,"")===Ta.getDefaultUtcTimingSource().value.replace(/.*?:\/\//g,"")&&(a.value=a.value.replace(i?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),i?"https://":"http://"),oa.debug("Matching default timing source protocol to manifest protocol: ",a.value))}),za.initialize(b),ya.setConfig({metricsModel:va,dashMetrics:wa,baseURLController:za}),ya.initialize(h,Ta.getUseManifestDateHeaderTimeSource())}()}function V(a){var b=void 0;if(!a)return b;switch(a){case g.default.VIDEO:b=Xa;break;case g.default.AUDIO:b=Ya}return b}function W(a){var b=!1;return E().forEach(function(c){c.getMediaInfo().type===a&&(b=!0)}),b}function X(a,b){b=b||new Date,Wa&&(E().forEach(function(c){var d=c.getScheduleController();d&&d.finalisePlayList(b,a)}),va.addPlayList(Wa),Wa=null)}function Y(a){Wa=new t.PlayList,Wa.start=new Date,Wa.mstart=1e3*Sa.getTime(),Wa.starttype=a,E().forEach(function(a){var b=a.getScheduleController();b&&b.setPlayList(Wa)})}function Z(a){if(a.error){var b="";switch(a.error.code){case 1:b="MEDIA_ERR_ABORTED";break;case 2:b="MEDIA_ERR_NETWORK";break;case 3:b="MEDIA_ERR_DECODE";break;case 4:b="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:b="MEDIA_ERR_ENCRYPTED";break;default:b="UNKNOWN"}Oa=!0,a.error.message&&(b+=" ("+a.error.message+")"),a.error.msExtendedCode&&(b+=" (0x"+(a.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),oa.fatal("Video Element Error: "+b),a.error&&oa.fatal(a.error),Ga.mediaSourceError(b),Ga.error(new J.default(a.error.code,b)),ia()}}function $(){return Ja?Ja.getStreamInfo():null}function _(a){return Ia.filter(function(b){return b.getId()===a})[0]}function aa(){if(!(ra&&ra.hasOwnProperty("load")&&Ha&&Ha.hasOwnProperty("initialize")&&Ha.hasOwnProperty("reset")&&Ha.hasOwnProperty("getClientTimeOffset")&&sa&&Ga&&va&&Sa))throw new Error("setConfig function has to be called previously")}function ba(){if(!qa||!qa.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}function ca(a){aa(),ra.load(a)}function da(a){ba(),qa.setManifest(a)}function ea(a){isNaN(a.newDuration)||Q(a.newDuration)}function fa(a){a&&(a.capabilities&&(pa=a.capabilities),a.manifestLoader&&(ra=a.manifestLoader),a.manifestModel&&(sa=a.manifestModel),a.dashManifestModel&&(ta=a.dashManifestModel),a.mediaPlayerModel&&(Ta=a.mediaPlayerModel),a.protectionController&&(Ka=a.protectionController),a.adapter&&(ua=a.adapter),a.metricsModel&&(va=a.metricsModel),a.dashMetrics&&(wa=a.dashMetrics),a.errHandler&&(Ga=a.errHandler),a.timelineConverter&&(Ha=a.timelineConverter),a.videoModel&&(Ra=a.videoModel),a.playbackController&&(Sa=a.playbackController),a.domStorage&&(Aa=a.domStorage),a.abrController&&(Ba=a.abrController),a.mediaController&&(Ca=a.mediaController),a.textController&&(Da=a.textController))}function ga(a){La=a}function ha(){Ia=[],Ka=null,Na=!1,Ja=null,Oa=!1,Pa=!1,Xa=void 0,Ya=void 0,Va=!0,Ua=!1,Ma=!0,Wa=null,$a=void 0,Za=!1,ab=0}function ia(){aa(),ya.reset(),X(Oa||Pa?t.PlayListTrace.FAILURE_STOP_REASON:t.PlayListTrace.USER_REQUEST_STOP_REASON);for(var a=0,b=Ia?Ia.length:0;a<b;a++){Ia[a].reset(Oa)}d(),za.reset(),qa.reset(),va.clearAllCurrentMetrics(),sa.setValue(null),ra.reset(),Ha.reset(),Ea.reset(),Qa&&(xa.detachMediaSource(
a.Representation_asArray&&a.Representation_asArray.sort(p.getRepresentationSortFunction()).forEach(function(a,e){d(o.children[b].children[c].children,e,a)})})})}function f(a,b){var c=b||o;a(c.data),c.children&&c.children.forEach(function(b){return f(a,b)})}function g(a){f(function(b){isNaN(b.selectedIdx)||a===b.baseUrls[b.selectedIdx].serviceLocation&&(b.selectedIdx=k)})}function i(a){e(a)}function j(){o=new l}function m(a){var b=o,c=[b.data];return a&&a.forEach(function(a){(b=b.children[a])&&c.push(b.data)}),c.filter(function(a){return a.baseUrls.length})}var n=void 0,o=void 0,p=void 0,q=this.context,r=(0,h.default)(q).getInstance();return n={reset:j,update:i,getForPath:m,invalidateSelectedIndexes:g,setConfig:b},a(),n}Object.defineProperty(c,"__esModule",{value:!0});var g=a(206),h=d(g),i=a(48),j=d(i),k=NaN,l=function a(b,c){e(this,a),this.data={baseUrls:b||null,selectedIdx:c||k},this.children=[]};f.__dashjs_factory_name="BaseURLTreeModel",c.default=j.default.getClassFactory(f),b.exports=c.default},{206:206,48:48}],141:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){function b(){L=(0,o.default)(G).getInstance().getLogger(K),D(),H.on(i.default.LOADING_COMPLETED,A,K),H.on(i.default.LOADING_DATA_PROGRESS,B,K),H.on(i.default.LOADING_ABANDONED,C,K)}function c(a){M=a}function d(){return M}function e(a){var b=function(a,b){return a.action===m.default.ACTION_COMPLETE&&a.action===b.action},c=function(a,b){return!isNaN(a.index)&&a.startTime===b.startTime&&a.adaptationIndex===b.adaptationIndex&&a.type===b.type},d=function(a,b){return isNaN(a.index)&&isNaN(b.index)&&a.quality===b.quality},e=function(e){var f=!1;return e.some(function(e){if(c(a,e)||d(a,e)||b(a,e))return f=!0}),f};return!!a&&e(N)}function f(a){var b=!1,c=0,d=void 0;if(!(b=e(a)))for(c=0;c<O.length;c++)d=O[c],a.url===d.url&&a.startTime===d.startTime&&(b=!0);return b}function h(a){var b=a?a.state instanceof Array?a.state:[a.state]:[],c=[];return b.forEach(function(b){var d=y(b);c=c.concat(x(d,a))}),c}function j(a){return isNaN(a.duration)?.25:Math.min(a.duration/8,.5)}function k(a){N=N.filter(function(b){var c=j(b);return isNaN(b.startTime)||void 0!==a&&b.startTime>=a-c})}function l(a){N=N.filter(function(b){return isNaN(b.startTime)||void 0!==a&&b.startTime+b.duration<a})}function n(a,b){b<=a+.5||(N=N.filter(function(c){var d=j(c);return isNaN(c.startTime)||c.startTime>=b-d||isNaN(c.duration)||c.startTime+c.duration<=a+d}))}function r(a,b){if(!a||0===a.length)return void k();for(var c=0,d=0,e=a.length;d<e;d++)n(c,a.start(d)),c=a.end(d);b>0&&n(c,b)}function t(){J.abort(),O=[]}function u(a){switch(a.action){case m.default.ACTION_COMPLETE:N.push(a),z(a,q),L.debug("executeRequest trigger STREAM_COMPLETED"),H.trigger(i.default.STREAM_COMPLETED,{request:a,fragmentModel:this});break;case m.default.ACTION_DOWNLOAD:z(a,p),O.push(a),v(a);break;default:L.warn("Unknown request action.")}}function v(a){H.trigger(i.default.FRAGMENT_LOADING_STARTED,{sender:K,request:a}),J.load(a)}function w(a,b,c){for(var d=a.length-1,e=d;e>=0;e--){var f=a[e],g=f.startTime,h=g+f.duration;if(c=isNaN(c)?j(f):c,!isNaN(g)&&!isNaN(h)&&b+c>=g&&b-c<h||isNaN(g)&&isNaN(b))return f}return null}function x(a,b){return b.hasOwnProperty("time")?[w(a,b.time,b.threshold)]:a.filter(function(a){for(var c in b)if("state"!==c&&b.hasOwnProperty(c)&&a[c]!=b[c])return!1;return!0})}function y(a){var b=void 0;switch(a){case p:b=O;break;case q:b=N;break;default:b=[]}return b}function z(a,b){I.addSchedulingInfo(a.mediaType,new Date,a.type,a.startTime,a.availabilityStartTime,a.duration,a.quality,a.range,b),I.addRequestsQueue(a.mediaType,O,N)}function A(a){a.sender===J&&(O.splice(O.indexOf(a.request),1),a.response&&!a.error&&N.push(a.request),z(a.request,a.error?s:q),H.trigger(i.default.FRAGMENT_LOADING_COMPLETED,{request:a.request,response:a.response,error:a.error,sender:this}))}function B(a){a.sender===J&&H.trigger(i.default.FRAGMENT_LOADING_PROGRESS,{request:a.request,response:a.response,error:a.error,sender:this})}function C(a){a.sender===J&&H.trigger(i.default.FRAGMENT_LOADING_
e.onabort=a.onabort,e.send(),a.response=e}function c(a){var b=a.response;b.onloadend=b.onerror=b.onprogress=void 0,b.abort()}a=a||{};var d=a.requestModifier;return{load:b,abort:c}}Object.defineProperty(c,"__esModule",{value:!0});var f=a(48),g=d(f);e.__dashjs_factory_name="XHRLoader";var h=g.default.getClassFactory(e);c.default=h,b.exports=c.default},{48:48}],150:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(c,"__esModule",{value:!0});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),f=function(){function a(){d(this,a)}return e(a,null,[{key:"findCencContentProtection",value:function(a){for(var b=null,c=0;c<a.length;++c){var d=a[c];"urn:mpeg:dash:mp4protection:2011"===d.schemeIdUri.toLowerCase()&&"cenc"===d.value.toLowerCase()&&(b=d)}return b}},{key:"getPSSHData",value:function(a){var b=8,c=new DataView(a),d=c.getUint8(b);return b+=20,d>0&&(b+=4+16*c.getUint32(b)),b+=4,a.slice(b)}},{key:"getPSSHForKeySystem",value:function(b,c){var d=a.parsePSSHList(c);return d.hasOwnProperty(b.uuid.toLowerCase())?d[b.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(a,b){return"pssh"in a?b.decodeArray(a.pssh.__text).buffer:null}},{key:"parsePSSHList",value:function(a){if(null===a)return[];for(var b=new DataView(a.buffer||a),c=!1,d={},e=0;!c;){var f=void 0,g=void 0,h=void 0,i=void 0,j=e;if(e>=b.buffer.byteLength)break;if(f=b.getUint32(e),g=e+f,e+=4,1886614376===b.getUint32(e))if(e+=4,0===(h=b.getUint8(e))||1===h){e++,e+=3,i="";var k=void 0,l=void 0;for(k=0;k<4;k++)l=b.getUint8(e+k).toString(16),i+=1===l.length?"0"+l:l;for(e+=4,i+="-",k=0;k<2;k++)l=b.getUint8(e+k).toString(16),i+=1===l.length?"0"+l:l;for(e+=2,i+="-",k=0;k<2;k++)l=b.getUint8(e+k).toString(16),i+=1===l.length?"0"+l:l;for(e+=2,i+="-",k=0;k<2;k++)l=b.getUint8(e+k).toString(16),i+=1===l.length?"0"+l:l;for(e+=2,i+="-",k=0;k<6;k++)l=b.getUint8(e+k).toString(16),i+=1===l.length?"0"+l:l;e+=6,i=i.toLowerCase(),b.getUint32(e),e+=4,d[i]=b.buffer.slice(j,g),e=g}else e=g;else e=g}return d}}]),a}();c.default=f,b.exports=c.default},{}],151:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(a){var c=null,d=(0,i.default)(e).getInstance();d.setConfig({debug:a.debug,BASE64:a.BASE64}),d.initialize();var f=b(a);return!c&&f&&(c=(0,g.default)(e).create({protectionModel:f,protectionKeyController:d,eventBus:a.eventBus,debug:a.debug,events:a.events,BASE64:a.BASE64,constants:a.constants}),a.capabilities.setEncryptedMediaSupported(!0)),c}function b(a){var b=a.debug,f=b.getLogger(d),g=a.eventBus,h=a.errHandler,i=a.videoModel?a.videoModel.getElement():null;return i&&void 0===i.onencrypted||i&&void 0===i.mediaKeys?c(i,u)?(f.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"),(0,q.default)(e).create({debug:b,eventBus:g,events:a.events,api:c(i,u)})):c(i,t)?(f.info("EME detected on this user agent! (ProtectionModel_01b)"),(0,s.default)(e).create({debug:b,eventBus:g,errHandler:h,events:a.events,api:c(i,t)})):(f.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null):(f.info("EME detected on this user agent! (ProtectionModel_21Jan2015)"),(0,o.default)(e).create({debug:b,eventBus:g,events:a.events}))}function c(a,b){for(var c=0;c<b.length;c++){var d=b[c];if("function"==typeof a[d[Object.keys(d)[0]]])return d}return null}var d=void 0,e=this.context;return d={createProtectionSystem:a}}Object.defineProperty(c,"__esModule",{value:!0});var f=a(153),g=d(f),h=a(154),i=d(h),j=a(152),k=d(j),l=a(159),m=d(l),n=a(161),o=d(n),p=a(162),q=d(p),r=a(160),s=d(r),t=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenera
G[C.cancelKeyRequest](H.systemString,a.sessionID)}catch(b){z.trigger(A.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+a.sessionID+") "+b.message})}}function r(){}function t(){}function u(){}function v(){return{handleEvent:function(a){var b=null;switch(a.type){case C.needkey:var c=ArrayBuffer.isView(a.initData)?a.initData.buffer:a.initData;z.trigger(A.NEED_KEY,{key:new i.default(c,"cenc")});break;case C.keyerror:if(b=w(K,a.sessionId),b||(b=w(J,a.sessionId)),b){var d=s.default.MEDIA_KEYERR_CODE,e="";switch(a.errorCode.code){case 1:d=s.default.MEDIA_KEYERR_UNKNOWN_CODE,e+="MEDIA_KEYERR_UNKNOWN - "+s.default.MEDIA_KEYERR_UNKNOWN_MESSAGE;break;case 2:d=s.default.MEDIA_KEYERR_CLIENT_CODE,e+="MEDIA_KEYERR_CLIENT - "+s.default.MEDIA_KEYERR_CLIENT_MESSAGE;break;case 3:d=s.default.MEDIA_KEYERR_SERVICE_CODE,e+="MEDIA_KEYERR_SERVICE - "+s.default.MEDIA_KEYERR_SERVICE_MESSAGE;break;case 4:d=s.default.MEDIA_KEYERR_OUTPUT_CODE,e+="MEDIA_KEYERR_OUTPUT - "+s.default.MEDIA_KEYERR_OUTPUT_MESSAGE;break;case 5:d=s.default.MEDIA_KEYERR_HARDWARECHANGE_CODE,e+="MEDIA_KEYERR_HARDWARECHANGE - "+s.default.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE;break;case 6:d=s.default.MEDIA_KEYERR_DOMAIN_CODE,e+="MEDIA_KEYERR_DOMAIN - "+s.default.MEDIA_KEYERR_DOMAIN_MESSAGE}e+=" System Code = "+a.systemCode,z.trigger(A.KEY_ERROR,{data:new k.default(d,e,b)})}else F.error("No session token found for key error");break;case C.keyadded:b=w(K,a.sessionId),b||(b=w(J,a.sessionId)),b?(F.debug("DRM: Key added."),z.trigger(A.KEY_ADDED,{data:b})):F.debug("No session token found for key added");break;case C.keymessage:if(L=null!==a.sessionId&&void 0!==a.sessionId,L?!(b=w(K,a.sessionId))&&J.length>0&&(b=J.shift(),K.push(b),b.sessionID=a.sessionId,z.trigger(A.KEY_SESSION_CREATED,{data:b})):J.length>0&&(b=J.shift(),K.push(b),0!==J.length&&(D.mediaKeyMessageError(s.default.MEDIA_KEY_MESSAGE_ERROR_MESSAGE),D.error(new k.default(s.default.MEDIA_KEY_MESSAGE_ERROR_CODE,s.default.MEDIA_KEY_MESSAGE_ERROR_MESSAGE)))),b){var f=ArrayBuffer.isView(a.message)?a.message.buffer:a.message;b.keyMessage=f,z.trigger(A.INTERNAL_KEY_MESSAGE,{data:new m.default(b,f,a.defaultURL)})}else F.warn("No session token found for key message")}}}}function w(a,b){if(b&&a){for(var c=a.length,d=0;d<c;d++)if(a[d].sessionID==b)return a[d];return null}return null}function x(){G.removeEventListener(C.keyerror,M),G.removeEventListener(C.needkey,M),G.removeEventListener(C.keymessage,M),G.removeEventListener(C.keyadded,M)}a=a||{};var y=this.context,z=a.eventBus,A=a.events,B=a.debug,C=a.api,D=a.errHandler,E=void 0,F=void 0,G=void 0,H=void 0,I=void 0,J=void 0,K=void 0,L=void 0,M=void 0;return E={getAllInitData:e,requestKeySystemAccess:f,getKeySystem:d,selectKeySystem:h,setMediaElement:j,createKeySession:l,updateKeySession:n,closeKeySession:p,setServerCertificate:r,loadKeySession:t,removeKeySession:u,stop:c,reset:c},b(),E}Object.defineProperty(c,"__esModule",{value:!0});var f=a(154),g=d(f),h=a(173),i=d(h),j=a(215),k=d(j),l=a(168),m=d(l),n=a(171),o=d(n),p=a(170),q=d(p),r=a(159),s=d(r);e.__dashjs_factory_name="ProtectionModel_01b",c.default=dashjs.FactoryMaker.getClassFactory(e),b.exports=c.default},{154:154,159:159,168:168,170:170,171:171,173:173,215:215}],161:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){function b(){H=F.getLogger(G),I=null,J=null,K=null,L=[],N=(0,g.default)(C).getInstance(),M=y()}function c(){var a=L.length,b=void 0;0!==a?function(){for(var c=function(a){z(a),0===L.length&&(J?(J.removeEventListener("encrypted",M),J.setMediaKeys(null).then(function(){D.trigger(E.TEARDOWN_COMPLETE)})):D.trigger(E.TEARDOWN_COMPLETE))},d=0;d<a;d++)b=L[d],function(a){b.session.closed.then(function(){c(a)}),x(b).catch(function(){c(a)})}(b)}():D.trigger(E.TEARDOWN_COMPLETE)}function d(){for(var a=void 0,b=0;b<L.length;b++)a=L[b],a.getUsable()||x(a).catch(function(){z(a)})}function e(){return I}function f(){for(var a=[],b=0;b<L.length;b++)L[b].initData&&a.push(L[b].initData);return a}function h(a){w(a,0)}function j(a){a.mksa.createMediaKeys().then(function(b){I=a.keyS
var x=a.getAbrController(),y=v.bytesTotal-v.bytesLoaded,z=x.getBitrateList(f),A=x.getQualityForBitrate(f,v.measuredBandwidthInKbps*n.getBandwidthSafetyFactor());y>v.bytesTotal*z[A].bitrate/z[x.getQualityFor(h,f.streamInfo)].bitrate&&(b.quality=A,b.reason.throughput=v.measuredBandwidthInKbps,b.reason.fragmentID=v.id,t[v.id]=v,r.debug("( ",h,"frag id",v.id,") is asking to abandon and switch to quality to ",A," measured bandwidth was",v.measuredBandwidthInKbps),delete s[h][v.id])}}else v.bytesLoaded===v.bytesTotal&&delete s[h][v.id]}return b}function h(){s={},t={},u=[]}a=a||{};var i=1.8,j=500,l=5,m=this.context,n=a.mediaPlayerModel,o=a.metricsModel,p=a.dashMetrics,q=void 0,r=void 0,s=void 0,t=void 0,u=void 0;return q={shouldAbandon:f,reset:h},b(),q}Object.defineProperty(c,"__esModule",{value:!0});var f=a(176),g=d(f),h=a(48),i=d(h),j=a(46),k=d(j);e.__dashjs_factory_name="AbandonRequestsRule",c.default=i.default.getClassFactory(e),b.exports=c.default},{176:176,46:46,48:48}],181:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){function b(){P=(0,r.default)(J).getInstance().getLogger(O),H(),N.on(p.default.BUFFER_EMPTY,y,O),N.on(p.default.PLAYBACK_SEEKING,z,O),N.on(p.default.PERIOD_SWITCH_STARTED,A,O),N.on(p.default.MEDIA_FRAGMENT_LOADED,B,O),N.on(p.default.METRIC_ADDED,C,O),N.on(p.default.QUALITY_CHANGE_REQUESTED,E,O),N.on(p.default.FRAGMENT_LOADING_ABANDONED,F,O)}function c(a){return a.map(function(a){return Math.log(a)})}function d(a,b,c){var d=c.reduce(function(a,b,d){return b>c[a]?d:a},0);if(0===d)return null;var e=Math.max(a,v+w*b.length),f=(c[d]-1)/(e/v-1);return{gp:f,Vp:v/f}}function e(a){var b={},e=a.getMediaInfo(),g=e.bitrateList.map(function(a){return a.bandwidth}),h=c(g);h=h.map(function(a){return a-h[0]+1});var i=M.getStableBufferTime(),j=d(i,g,h);return j?(b.state=t,b.bitrates=g,b.utilities=h,b.stableBufferTime=i,b.Vp=j.Vp,b.gp=j.gp,b.lastQuality=0,f(b)):b.state=s,b}function f(a){a.placeholderBuffer=0,a.mostAdvancedSegmentStart=NaN,a.lastSegmentWasReplacement=!1,a.lastSegmentStart=NaN,a.lastSegmentDurationS=NaN,a.lastSegmentRequestTimeMs=NaN,a.lastSegmentFinishTimeMs=NaN}function h(a,b){var c=M.getStableBufferTime();if(a.stableBufferTime!==c){var e=d(c,a.bitrates,a.utilities);if(e.Vp!==a.Vp||e.gp!==a.gp){var f=K.getCurrentBufferLevel(L.getReadOnlyMetricsFor(b)),g=f+a.placeholderBuffer;g-=v,g*=e.Vp/a.Vp,g+=v,a.stableBufferTime=c,a.Vp=e.Vp,a.gp=e.gp,a.placeholderBuffer=Math.max(0,g-f)}}}function j(a){var b=a.getMediaType(),c=Q[b];return c?c.state!==s&&h(c,b):(c=e(a),Q[b]=c),c}function k(a,b){for(var c=a.bitrates.length,d=NaN,e=NaN,f=0;f<c;++f){var g=(a.Vp*(a.utilities[f]+a.gp)-b)/a.bitrates[f];(isNaN(e)||g>=e)&&(e=g,d=f)}return d}function m(a,b){return a.Vp*(a.utilities[b]+a.gp)}function o(a,b){for(var c=a.bitrates[b],d=a.utilities[b],e=0,f=b-1;f>=0;--f)if(a.utilities[f]<a.utilities[b]){var g=a.bitrates[f],h=a.utilities[f],i=a.Vp*(a.gp+(c*h-g*d)/(c-g));e=Math.max(e,i)}return e}function q(a,b){var c=Date.now();if(isNaN(a.lastSegmentFinishTimeMs)){if(!isNaN(a.lastCallTimeMs)){var d=.001*(c-a.lastCallTimeMs);a.placeholderBuffer+=Math.max(0,d)}}else{var d=.001*(c-a.lastSegmentFinishTimeMs);a.placeholderBuffer+=Math.max(0,d)}a.lastCallTimeMs=c,a.lastSegmentStart=NaN,a.lastSegmentRequestTimeMs=NaN,a.lastSegmentFinishTimeMs=NaN,h(a,b)}function y(){for(var a in Q)Q.hasOwnProperty(a)&&Q[a].state===u&&(Q[a].placeholderBuffer=0)}function z(){for(var a in Q)if(Q.hasOwnProperty(a)){var b=Q[a];b.state!==s&&(b.state=t,f(b))}}function A(){}function B(a){if(a&&a.chunk&&a.chunk.mediaInfo){var b=Q[a.chunk.mediaInfo.type];if(b&&b.state!==s){var c=a.chunk.start;isNaN(b.mostAdvancedSegmentStart)||c>b.mostAdvancedSegmentStart?(b.mostAdvancedSegmentStart=c,b.lastSegmentWasReplacement=!1):b.lastSegmentWasReplacement=!0,b.lastSegmentStart=c,b.lastSegmentDurationS=a.chunk.duration,b.lastQuality=a.chunk.quality,D(b,a.chunk.mediaInfo.type)}}}function C(a){if(a&&a.metric===g.default.HTTP_REQUEST&&a.value&&a.value.type===l.HTTPRequest.MEDIA_SEGMENT_TYPE&&a.value.trace&&a.value.trace.length){var b=Q[a.m
;var P=p.cts/Z,R=(p.cts+p.duration)/Z;D.push({start:P,end:R,data:L,styles:{}}),M.debug("VTT "+P+"-"+R+" : "+L)}}}}D.length>0&&W.addCaptions(ca,0,D)}else Y=!0,Z=N.getMediaTimescaleFromMoov(a);else if(m===g.default.TEXT){var s=new DataView(a,0,a.byteLength);k=x.default.Utils.dataViewToString(s,g.default.UTF8);try{c=E(o).parse(k,0),W.addCaptions(W.getCurrentTrackIdx(),0,c)}catch(ma){O.timedTextError(ma,"parse",k),O.error(new F.default(H.default.TIMED_TEXT_ERROR_ID_PARSE_CODE,H.default.TIMED_TEXT_ERROR_MESSAGE_PARSE+ma.message,k))}}else if(m===g.default.VIDEO)if(b.segmentType===h.HTTPRequest.INIT_SEGMENT_TYPE){if(0===fa)for(fa=N.getMediaTimescaleFromMoov(a),e=0;e<da.length;e++)w(null,da[e])}else{if(0===fa)return void M.warn("CEA-608: No timescale for embeddedTextTrack yet");var T=function(a,b){function c(a,c,d){var e=null;if(_.getTTMLRenderingDiv())e=ja.createHTMLCaptionsFromScreen(_.getElement(),a,c,d);else{e=[{start:a,end:c,data:d.getDisplayText(),styles:{}}]}e&&W.addCaptions(b,0,e)}return c};j=N.getSamplesInfo(a);var U=j.lastSequenceNumber;if(!ia[0]&&!ia[1]){var V=void 0,$=void 0;for(e=0;e<da.length;e++){if(da[e].id===g.default.CC1?(0,$=W.getTrackIdxForId(g.default.CC1)):da[e].id===g.default.CC3&&(1,$=W.getTrackIdxForId(g.default.CC3)),-1===$)return void M.warn("CEA-608: data before track is ready.");V=T(this,$),ia[e]=new z.default.Cea608Parser(e+1,{newCue:V},null)}}if(fa&&-1==ha.indexOf(U)){if(null!==ga&&U!==ga+j.numSequences)for(e=0;e<ia.length;e++)ia[e]&&ia[e].reset();for(var aa=A(a,j.sampleList),ea=0;ea<ia.length;ea++){var ka=aa.fields[ea],la=ia[ea];if(la)for(e=0;e<ka.length;e++)la.addData(ka[e][0]/fa,ka[e][1])}ga=U,ha.push(U)}}}function A(a,b){if(0===b.length)return null;for(var c={splits:[],fields:[[],[]]},d=new DataView(a),e=0;e<b.length;e++)for(var f=b[e],g=z.default.findCea608Nalus(d,f.offset,f.size),h=null,i=0,j=0;j<g.length;j++)for(var k=z.default.extractCea608DataFromRange(d,g[j]),l=0;l<2;l++)k[l].length>0&&(f.cts!==h?i=0:i+=1,c.fields[l].push([f.cts+ka*fa,k[l],i]),h=f.cts);return c.fields.forEach(function(a){a.sort(function(a,b){return a[0]===b[0]?a[2]-b[2]:a[0]-b[0]})}),c}function C(a){var b=!1;return da.length>1&&a.isEmbedded?b=a.id&&a.id===g.default.CC1:1===da.length?a.id&&"string"==typeof a.id&&"CC"===a.id.substring(0,2)&&(b=!0):0===da.length&&(b=a.index===V[0].index),b}function E(a){var b=void 0;return a.search(g.default.VTT)>=0?b=T:(a.search(g.default.TTML)>=0||a.search(g.default.STPP)>=0)&&(b=U),b}function G(a,b){void 0===a&&a===b&&(a=this.buffered.start(0),b=this.buffered.end(this.buffered.length-1)),this.buffered.remove(a,b)}var I=this.context,J=(0,B.default)(I).getInstance(),K=!1,L=void 0,M=void 0,N=void 0,O=void 0,P=void 0,Q=void 0,R=void 0,S=void 0,T=void 0,U=void 0,V=void 0,W=void 0,X=void 0,Y=void 0,Z=void 0,$=void 0,_=void 0,aa=void 0,ba=void 0,ca=void 0,da=void 0,ea=void 0,fa=void 0,ga=void 0,ha=void 0,ia=void 0,ja=void 0,ka=void 0;return L={initialize:d,append:y,abort:f,addEmbeddedTrack:p,resetEmbedded:o,setConfig:q,getConfig:s,setCurrentFragmentedTrackIdx:u,remove:G,reset:i},a(),L}Object.defineProperty(c,"__esModule",{value:!0});var f=a(101),g=d(f),h=a(235),i=a(227),j=d(i),k=a(197),l=d(k),m=a(199),n=d(m),o=a(48),p=d(o),q=a(46),r=d(q),s=a(193),t=d(s),u=a(188),v=d(u),w=a(6),x=d(w),y=a(2),z=d(y),A=a(47),B=d(A),C=a(53),D=d(C),E=a(215),F=d(E),G=a(50),H=d(G);e.__dashjs_factory_name="TextSourceBuffer",c.default=p.default.getSingletonFactory(e),b.exports=c.default},{101:101,188:188,193:193,197:197,199:199,2:2,215:215,227:227,235:235,46:46,47:47,48:48,50:50,53:53,6:6}],193:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){H=(0,o.default)(E).getInstance().getLogger(G)}function b(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(I=window.VTTCue||window.TextTrackCue,K=[],L=[],M=-1,N=0,O=0,P=0,Q=0,R=null,S=null,U=!1,W=2147483647,V=null,void 0!==document.fullscreenElement?T="fullscreenElement":void 0!==document.webkitIsFullScreen?T="webkitIsFullScreen":document.msFullscreenElement?T="msFullscreenElement":document.mozFullScreen&&(T="mozF
c.default=g.default.getSingletonFactory(e),b.exports=c.default},{48:48}],208:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a,b){if(typeof a!==b)throw j.default.BAD_ARGUMENT_ERROR}function f(a){if(null===a||isNaN(a)||a%1!=0)throw j.default.BAD_ARGUMENT_ERROR+" : argument is not an integer"}function g(a,b,c){if(a<b||a>c)throw j.default.BAD_ARGUMENT_ERROR+" : argument out of range"}function h(a){if("string"!=typeof a||a!==j.default.AUDIO&&a!==j.default.VIDEO)throw j.default.BAD_ARGUMENT_ERROR}Object.defineProperty(c,"__esModule",{value:!0}),c.checkParameterType=e,c.checkInteger=f,c.checkRange=g,c.checkIsVideoOrAudioType=h;var i=a(101),j=d(i)},{101:101}],209:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){g=(0,i.default)(d).getInstance().getLogger(f)}function b(){var a="cue_TTML_"+h;return h++,a}function c(a,c,d,f,h){var i="",j=[],k=void 0,l=void 0,o=void 0,p={},q={},r="",s="",t={onOpenTag:function(a,b,c){if("image"===b&&"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===a){if(!c[" imagetype"]||"PNG"!==c[" imagetype"].value)return void g.warn("smpte-tt imagetype != PNG. Discarded");r=c["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){r&&(q[r]=s.trim()),s="",r=""},onText:function(a){r&&(s+=a)}};if(!a)throw i="no ttml data to parse",new Error(i);p.data=a,e.trigger(m.default.TTML_TO_PARSE,p);var u=(0,n.fromXML)(p.data,function(a){i=a},t);e.trigger(m.default.TTML_PARSED,{ttmlString:p.data,ttmlDoc:u});var v=u.getMediaTimeEvents();for(o=0;o<v.length;o++){var w=(0,n.generateISD)(u,v[o],function(a){i=a});w.contents.some(function(a){return a.contents.length})&&(k=v[o]+c<d?d:v[o]+c,l=v[o+1]+c>f?f:v[o+1]+c,k<l&&j.push({start:k,end:l,type:"html",cueID:b(),isd:w,images:h,embeddedImages:q}))}if(""!==i)throw g.error(i),new Error(i);return j}var d=this.context,e=(0,k.default)(d).getInstance(),f=void 0,g=void 0,h=0;return f={parse:c},a(),f}Object.defineProperty(c,"__esModule",{value:!0});var f=a(48),g=d(f),h=a(46),i=d(h),j=a(47),k=d(j),l=a(53),m=d(l),n=a(41);e.__dashjs_factory_name="TTMLParser",c.default=g.default.getSingletonFactory(e),b.exports=c.default},{41:41,46:46,47:47,48:48,53:53}],210:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){try{new window.URL("x","http://y");k=p}catch(a){}finally{k=k||q}}function b(a){var b=a.indexOf("/"),c=a.lastIndexOf("/");return-1!==b?c===b+1?a:(-1!==a.indexOf("?")&&(a=a.substring(0,a.indexOf("?"))),a.substring(0,c+1)):""}function c(a){var b=a.match(o);return b?b[1]:""}function d(a){var b=a.match(l);return b?b[0]:""}function e(a){return!l.test(a)}function f(a){return e(a)&&"/"===a.charAt(0)}function g(a){return 0===a.indexOf("//")}function h(a){return m.test(a)}function i(a){return n.test(a)}function j(a,b){return k(a,b)}var k=void 0,l=/^[a-z][a-z0-9+\-.]*:/i,m=/^https?:\/\//i,n=/^https:\/\//i,o=/^([a-z][a-z0-9+\-.]*:\/\/[^\/]+)\/?/i,p=function(a,b){try{return new window.URL(a,b).toString()}catch(c){return a}},q=function(a,h){var i=b;if(!h)return a;if(!e(a))return a;f(a)&&(i=c),g(a)&&(i=d);var j=i(h);return[j,a].join("/"!==j.charAt(j.length-1)&&"/"!==a.charAt(0)?"/":"")};return a(),{parseBaseUrl:b,parseOrigin:c,parseScheme:d,isRelative:e,isPathAbsolute:f,isSchemeRelative:g,isHTTPURL:h,isHTTPS:i,resolve:j}}Object.defineProperty(c,"__esModule",{value:!0});var f=a(48),g=d(f);e.__dashjs_factory_name="URLUtils",c.default=g.default.getSingletonFactory(e),b.exports=c.default},{48:48}],211:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(){function a(){k=(0,i.default)(g).getInstance().getLogger(h),l=/(?:\r\n|\r|\n)/gm,m=/-->/,n=/(^[\s]+|[\s]+$)/g,o=/\s\b/g}function b(a){var b=[],e=void 0,g=void 0;if(!a)return b;a=a.split(l),e=a.length,g=-1;for(var h=0;h<e;h++){var i=a[h];if(i.length>0&&i!==j&&i.match(m)){var o=d(i),p=o.cuePoints,q=o.styles,r=f(a,h+1),s=c(p[0].replace(n,"")),t=c(p[1].replace(n,""));!isNaN(s)&&!isNaN(t)&&s>=g&&t>s?""!==r?(g=s,b.push({start:s,end:t,data:r,styles:q}
//# sourceMappingURL=dash.all.min.js.map