/* eslint-disable */
// Dash.JS
// Minified to reduce loading time (https://minify-js.com/)
let t;self,t=function(){return function(){var t={2096:function(t,e){e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=l(t),o=i[0],s=i[1],u=new a(function(t,e,n){return 3*(e+n)/4-n}(0,o,s)),c=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[c++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,a=r%3,i=[],o=16383,l=0,u=r-a;l<u;l+=o)i.push(s(t,l,l+o>u?u:l+o));return 1===a?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===a&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function s(t,e,r){for(var a,i,o=[],l=e;l<r;l+=3)a=(t[l]<<16&16711680)+(t[l+1]<<8&65280)+(255&t[l+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1549:function(t,e,n){
/*!
  * The buffer module from node.js, for the browser.
  *
  * @author   Feross Aboukhadijeh <https://feross.org>
  * @license  MIT
  */
var r=n(2096),a=n(8713),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function l(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|p(t,e),r=l(n),a=r.write(t,e);return a!==n&&(r=r.slice(0,a)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){var e=new Uint8Array(t);return m(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return m(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return m(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return s.from(r,e,n);var a=function(t){if(s.isBuffer(t)){var e=0|g(t.length),n=l(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||B(t.length)?l(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),l(t<0?0:0|g(t))}function d(t){for(var e=t.length<0?0:0|g(t.length),n=l(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function m(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,s.prototype),r}function g(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(a)return r?-1:j(t).length;e=(""+e).toLowerCase(),a=!0}}function h(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,a){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),B(n=+n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,a);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,a){var i,o=1,l=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,l/=2,s/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(a){var c=-1;for(i=n;i<l;i++)if(u(t,i)===u(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(u(t,i+d)!==u(e,d)){f=!1;break}if(f)return i}return-1}function E(t,e,n,r){n=Number(n)||0;var a=t.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=e.length;r>i/2&&(r=i/2);for(var o=0;o<r;++o){var l=parseInt(e.substr(2*o,2),16);if(B(l))return o;t[n+o]=l}return o}function _(t,e,n,r){return U(j(e,t.length-n),t,n,r)}function w(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function T(t,e,n,r){return U(F(e),t,n,r)}function S(t,e,n,r){return U(function(t,e){for(var n,r,a,i=[],o=0;o<t.length&&!((e-=2)<0);++o)r=(n=t.charCodeAt(o))>>8,a=n%256,i.push(a),i.push(r);return i}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],a=e;a<n;){var i,o,l,s,u=t[a],c=null,f=u>239?4:u>223?3:u>191?2:1;if(a+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=t[a+1]))&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=t[a+1],o=t[a+2],128==(192&i)&&128==(192&o)&&(s=(15&u)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=t[a+1],o=t[a+2],l=t[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&(s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=f}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=I));return n}(r)}e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return function(t,e,n){return c(t),t<=0?l(t):void 0!==e?"string"==typeof n?l(t).fill(e,n):l(t).fill(e):l(t)}(t,e,n)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,a=0,i=Math.min(n,r);a<i;++a)if(t[a]!==e[a]){n=t[a],r=e[a];break}return n<r?-1:r<n?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=s.allocUnsafe(e),a=0;for(n=0;n<t.length;++n){var i=t[n];if(q(i,Uint8Array))a+i.length>r.length?s.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,n,r,a){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),e<0||n>t.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&e>=n)return 0;if(r>=a)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(e>>>=0),l=Math.min(i,o),u=this.slice(r,a),c=t.slice(e,n),f=0;f<l;++f)if(u[f]!==c[f]){i=u[f],o=c[f];break}return i<o?-1:o<i?1:0},s.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},s.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-e;if((void 0===n||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":case"latin1":case"binary":return w(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function R(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(127&t[a]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function C(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=e;i<n;++i)a+=Z[t[i]];return a}function x(t,e,n){for(var r=t.slice(e,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function D(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,r,a,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function z(t,e,n,r,a,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,i){return e=+e,n>>>=0,i||z(t,0,n,4),a.write(t,e,n,r,23,4),n+4}function M(t,e,n,r,i){return e=+e,n>>>=0,i||z(t,0,n,8),a.write(t,e,n,r,52,8),n+8}s.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var r=this[t+--e],a=1;e>0&&(a*=256);)r+=this[t+--e]*a;return r},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var r=e,a=1,i=this[t+--r];r>0&&(a*=256);)i+=this[t+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||D(t,4,this.length),a.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||D(t,4,this.length),a.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||D(t,8,this.length),a.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||D(t,8,this.length),a.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||O(this,t,e,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=t/a&255;return e+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||O(this,t,e,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var a=Math.pow(2,8*n-1);O(this,t,e,n,a-1,-a)}var i=0,o=1,l=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===l&&0!==this[e+i-1]&&(l=1),this[e+i]=(t/o>>0)-l&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var a=Math.pow(2,8*n-1);O(this,t,e,n,a-1,-a)}var i=n-1,o=1,l=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===l&&0!==this[e+i+1]&&(l=1),this[e+i]=(t/o>>0)-l&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var a=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),a},s.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var a=t.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(t=a)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=s.isBuffer(t)?t:s.from(t,r),l=o.length;if(0===l)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%l]}return this};var L=/[^+/0-9A-Za-z-_]/g;function j(t,e){var n;e=e||1/0;for(var r=t.length,a=null,i=[],o=0;o<r;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function B(t){return t!=t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)e[r+a]=t[n]+t[a];return e}()},6934:function(t,e){
/*! codem-isoboxer v0.3.9 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
var n={parseBuffer:function(t){return new r(t).parse()},addBoxProcessor:function(t,e){"string"==typeof t&&"function"==typeof e&&(a.prototype._boxProcessors[t]=e)},createFile:function(){return new r},createBox:function(t,e,n){var r=a.create(t);return e&&e.append(r,n),r},createFullBox:function(t,e,r){var a=n.createBox(t,e,r);return a.version=0,a.flags=0,a},Utils:{}};n.Utils.dataViewToString=function(t,e){var n=e||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(t);var r=[],a=0;if("utf-8"===n)for(;a<t.byteLength;){var i=t.getUint8(a++);i<128||(i<224?(i=(31&i)<<6,i|=63&t.getUint8(a++)):i<240?(i=(15&i)<<12,i|=(63&t.getUint8(a++))<<6,i|=63&t.getUint8(a++)):(i=(7&i)<<18,i|=(63&t.getUint8(a++))<<12,i|=(63&t.getUint8(a++))<<6,i|=63&t.getUint8(a++))),r.push(String.fromCharCode(i))}else for(;a<t.byteLength;)r.push(String.fromCharCode(t.getUint8(a++)));return r.join("")},n.Utils.utf8ToByteArray=function(t){var e,n;if("undefined"!=typeof TextEncoder)e=(new TextEncoder).encode(t);else for(e=[],n=0;n<t.length;++n){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?(e.push(192|r>>6),e.push(128|63&r)):r<65536?(e.push(224|r>>12),e.push(128|63&r>>6),e.push(128|63&r)):(e.push(240|r>>18),e.push(128|63&r>>12),e.push(128|63&r>>6),e.push(128|63&r))}return e},n.Utils.appendBox=function(t,e,n){if(e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,-1!==n)if(null!=n){var r,a=-1;if("number"==typeof n)a=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void t.boxes.push(e);r=n.type}for(var i=0;i<t.boxes.length;i++)if(r===t.boxes[i].type){a=i+1;break}}t.boxes.splice(a,0,e)}else t.boxes.push(e)},e.parseBuffer=n.parseBuffer,e.addBoxProcessor=n.addBoxProcessor,e.createFile=n.createFile,e.createBox=n.createBox,e.createFullBox=n.createFullBox,e.Utils=n.Utils,n.Cursor=function(t){this.offset=void 0===t?0:t};var r=function(t){this._cursor=new n.Cursor,this.boxes=[],t&&(this._raw=new DataView(t))};r.prototype.fetch=function(t){var e=this.fetchAll(t,!0);return e.length?e[0]:null},r.prototype.fetchAll=function(t,e){var n=[];return r._sweep.call(this,t,n,e),n},r.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var t=a.parse(this);if(void 0===t.type)break;this.boxes.push(t)}return this},r._sweep=function(t,e,n){for(var a in this.type&&this.type==t&&e.push(this),this.boxes){if(e.length&&n)return;r._sweep.call(this.boxes[a],t,e,n)}},r.prototype.write=function(){var t,e=0;for(t=0;t<this.boxes.length;t++)e+=this.boxes[t].getLength(!1);var n=new Uint8Array(e);for(this._rawo=new DataView(n.buffer),this.bytes=n,this._cursor.offset=0,t=0;t<this.boxes.length;t++)this.boxes[t].write();return n.buffer},r.prototype.append=function(t,e){n.Utils.appendBox(this,t,e)};var a=function(){this._cursor=new n.Cursor};a.parse=function(t){var e=new a;return e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,e._parseBox(),t._cursor.offset=e._raw.byteOffset+e._raw.byteLength,e},a.create=function(t){var e=new a;return e.type=t,e.boxes=[],e},a.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],a.prototype._boxProcessors={},a.prototype._procField=function(t,e,n){this._parsing?this[t]=this._readField(e,n):this._writeField(e,n,this[t])},a.prototype._procFieldArray=function(t,e,n,r){var a;if(this._parsing)for(this[t]=[],a=0;a<e;a++)this[t][a]=this._readField(n,r);else for(a=0;a<this[t].length;a++)this._writeField(n,r,this[t][a])},a.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},a.prototype._procEntries=function(t,e,n){var r;if(this._parsing)for(this[t]=[],r=0;r<e;r++)this[t].push({}),n.call(this,this[t][r]);else for(r=0;r<e;r++)n.call(this,this[t][r])},a.prototype._procSubEntries=function(t,e,n,r){var a;if(this._parsing)for(t[e]=[],a=0;a<n;a++)t[e].push({}),r.call(this,t[e][a]);else for(a=0;a<n;a++)r.call(this,t[e][a])},a.prototype._procEntryField=function(t,e,n,r){this._parsing?t[e]=this._readField(n,r):this._writeField(n,r,t[e])},a.prototype._procSubBoxes=function(t,e){var n;if(this._parsing)for(this[t]=[],n=0;n<e;n++)this[t].push(a.parse(this));else for(n=0;n<e;n++)this._rawo?this[t][n].write():this.size+=this[t][n].getLength()},a.prototype._readField=function(t,e){switch(t){case"uint":return this._readUint(e);case"int":return this._readInt(e);case"template":return this._readTemplate(e);case"string":return-1===e?this._readTerminatedString():this._readString(e);case"data":return this._readData(e);case"utf8":return this._readUTF8String();default:return-1}},a.prototype._readInt=function(t){var e=null,n=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:e=this._raw.getInt8(n);break;case 16:e=this._raw.getInt16(n);break;case 32:e=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),a=this._raw.getInt32(n+4);e=r*Math.pow(2,32)+a}return this._cursor.offset+=t>>3,e},a.prototype._readUint=function(t){var e,n,r=null,a=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:r=this._raw.getUint8(a);break;case 16:r=this._raw.getUint16(a);break;case 24:r=((e=this._raw.getUint16(a))<<8)+(n=this._raw.getUint8(a+2));break;case 32:r=this._raw.getUint32(a);break;case 64:e=this._raw.getUint32(a),n=this._raw.getUint32(a+4),r=e*Math.pow(2,32)+n}return this._cursor.offset+=t>>3,r},a.prototype._readString=function(t){for(var e="",n=0;n<t;n++){var r=this._readUint(8);e+=String.fromCharCode(r)}return e},a.prototype._readTemplate=function(t){return this._readUint(t/2)+this._readUint(t/2)/Math.pow(2,t/2)},a.prototype._readTerminatedString=function(){for(var t="";this._cursor.offset-this._offset<this._raw.byteLength;){var e=this._readUint(8);if(0===e)break;t+=String.fromCharCode(e)}return t},a.prototype._readData=function(t){var e=t>0?t:this._raw.byteLength-(this._cursor.offset-this._offset);if(e>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,e);return this._cursor.offset+=e,n}return null},a.prototype._readUTF8String=function(){var t=this._raw.byteLength-(this._cursor.offset-this._offset),e=null;return t>0&&(e=new DataView(this._raw.buffer,this._cursor.offset,t),this._cursor.offset+=t),e?n.Utils.dataViewToString(e):e},a.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},a.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},a.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(a.parse(this))},a.prototype.append=function(t,e){n.Utils.appendBox(this,t,e)},a.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.size+=this.boxes[t].getLength();return this._data&&this._writeData(this._data),this.size},a.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.boxes[t].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},a.prototype._writeInt=function(t,e){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setInt8(n,e);break;case 16:this._rawo.setInt16(n,e);break;case 32:this._rawo.setInt32(n,e);break;case 64:var r=Math.floor(e/Math.pow(2,32)),a=e-r*Math.pow(2,32);this._rawo.setUint32(n,r),this._rawo.setUint32(n+4,a)}this._cursor.offset+=t>>3}else this.size+=t>>3},a.prototype._writeUint=function(t,e){if(this._rawo){var n,r,a=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setUint8(a,e);break;case 16:this._rawo.setUint16(a,e);break;case 24:n=(16776960&e)>>8,r=255&e,this._rawo.setUint16(a,n),this._rawo.setUint8(a+2,r);break;case 32:this._rawo.setUint32(a,e);break;case 64:r=e-(n=Math.floor(e/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(a,n),this._rawo.setUint32(a+4,r)}this._cursor.offset+=t>>3}else this.size+=t>>3},a.prototype._writeString=function(t,e){for(var n=0;n<t;n++)this._writeUint(8,e.charCodeAt(n))},a.prototype._writeTerminatedString=function(t){if(0!==t.length){for(var e=0;e<t.length;e++)this._writeUint(8,t.charCodeAt(e));this._writeUint(8,0)}},a.prototype._writeTemplate=function(t,e){var n=Math.floor(e),r=(e-n)*Math.pow(2,t/2);this._writeUint(t/2,n),this._writeUint(t/2,r)},a.prototype._writeData=function(t){if(t)if(this._rawo){if(t instanceof Array){for(var e=this._cursor.offset-this._rawo.byteOffset,n=0;n<t.length;n++)this._rawo.setInt8(e+n,t[n]);this._cursor.offset+=t.length}t instanceof Uint8Array&&(this._root.bytes.set(t,this._cursor.offset),this._cursor.offset+=t.length)}else this.size+=t.length},a.prototype._writeUTF8String=function(t){var e=n.Utils.utf8ToByteArray(t);if(this._rawo)for(var r=new DataView(this._rawo.buffer,this._cursor.offset,e.length),a=0;a<e.length;a++)r.setUint8(a,e[a]);else this.size+=e.length},a.prototype._writeField=function(t,e,n){switch(t){case"uint":this._writeUint(e,n);break;case"int":this._writeInt(e,n);break;case"template":this._writeTemplate(e,n);break;case"string":-1==e?this._writeTerminatedString(n):this._writeString(e,n);break;case"data":this._writeData(n);break;case"utf8":this._writeUTF8String(n)}},a.prototype._boxProcessors.avc1=a.prototype._boxProcessors.avc2=a.prototype._boxProcessors.avc3=a.prototype._boxProcessors.avc4=a.prototype._boxProcessors.hvc1=a.prototype._boxProcessors.hev1=a.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},a.prototype._boxProcessors.ctts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"sample_count","uint",32),this._procEntryField(t,"sample_offset",1===this.version?"int":"uint",32)}))},a.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},a.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"segment_duration","uint",1===this.version?64:32),this._procEntryField(t,"media_time","int",1===this.version?64:32),this._procEntryField(t,"media_rate_integer","int",16),this._procEntryField(t,"media_rate_fraction","int",16)}))},a.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},a.prototype._boxProcessors.free=a.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},a.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},a.prototype._boxProcessors.ftyp=a.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var t=-1;this._parsing&&(t=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",t,"string",4)},a.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},a.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},a.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},a.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},a.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},a.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},a.prototype._boxProcessors.mp4a=a.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},a.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},a.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},a.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField("reference_track_ID","uint",32),this._procField("ntp_timestamp_sec","uint",32),this._procField("ntp_timestamp_frac","uint",32),this._procField("media_time","uint",1==this.version?64:32)},a.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},a.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},a.prototype._boxProcessors.sdtp=function(){this._procFullBox();var t=-1;this._parsing&&(t=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",t,"uint",8)},a.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(t){this._parsing||(t.reference=(1&t.reference_type)<<31,t.reference|=2147483647&t.referenced_size,t.sap=(1&t.starts_with_SAP)<<31,t.sap|=(3&t.SAP_type)<<28,t.sap|=268435455&t.SAP_delta_time),this._procEntryField(t,"reference","uint",32),this._procEntryField(t,"subsegment_duration","uint",32),this._procEntryField(t,"sap","uint",32),this._parsing&&(t.reference_type=t.reference>>31&1,t.referenced_size=2147483647&t.reference,t.starts_with_SAP=t.sap>>31&1,t.SAP_type=t.sap>>28&7,t.SAP_delta_time=268435455&t.sap)}))},a.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},a.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(t){this._procEntryField(t,"ranges_count","uint",32),this._procSubEntries(t,"ranges",t.ranges_count,(function(t){this._procEntryField(t,"level","uint",8),this._procEntryField(t,"range_size","uint",24)}))}))},a.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},a.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},a.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"sample_count","uint",32),this._procEntryField(t,"sample_delta","uint",32)}))},a.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"sample_delta","uint",32),this._procEntryField(t,"subsample_count","uint",16),this._procSubEntries(t,"subsamples",t.subsample_count,(function(t){this._procEntryField(t,"subsample_size","uint",1===this.version?32:16),this._procEntryField(t,"subsample_priority","uint",8),this._procEntryField(t,"discardable","uint",8),this._procEntryField(t,"codec_specific_parameters","uint",32)}))}))},a.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},a.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},a.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},a.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(t){this._procEntryField(t,"time","uint",1===this.version?64:32),this._procEntryField(t,"moof_offset","uint",1===this.version?64:32),this._procEntryField(t,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(t,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(t,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},a.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},a.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},a.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(t){256&this.flags&&this._procEntryField(t,"sample_duration","uint",32),512&this.flags&&this._procEntryField(t,"sample_size","uint",32),1024&this.flags&&this._procEntryField(t,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(t,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},a.prototype._boxProcessors["url "]=a.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},a.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},a.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},a.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},a.prototype._boxProcessors.vtte=function(){}},5530:function(t,e,n){t.exports=n(6146).polyfill()},6146:function(t,e,n){
/*!
  * @overview es6-promise - a tiny implementation of Promises/A+.
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  * @license   Licensed under MIT license
  *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
  * @version   v4.2.8+1e68dce6
  */
t.exports=function(){function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a=0,i=void 0,o=void 0,l=function(t,e){E[a]=t,E[a+1]=e,2===(a+=2)&&(o?o(_):T())};function s(t){o=t}function u(t){l=t}var c="undefined"!=typeof window?window:void 0,f=c||{},d=f.MutationObserver||f.WebKitMutationObserver,m="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),g="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){return function(){return process.nextTick(_)}}function h(){return void 0!==i?function(){i(_)}:v()}function b(){var t=0,e=new d(_),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=_,function(){return t.port2.postMessage(0)}}function v(){var t=setTimeout;return function(){return t(_,1)}}var E=new Array(1e3);function _(){for(var t=0;t<a;t+=2)(0,E[t])(E[t+1]),E[t]=void 0,E[t+1]=void 0;a=0}function w(){try{var t=Function("return this")().require("vertx");return i=t.runOnLoop||t.runOnContext,h()}catch(t){return v()}}var T=void 0;function S(t,e){var n=this,r=new this.constructor(I);void 0===r[A]&&V(r);var a=n._state;if(a){var i=arguments[a-1];l((function(){return Z(a,r,i,n._result)}))}else q(n,r,t,e);return r}function k(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(I);return L(n,t),n}T=m?p():d?b():g?y():void 0===c?w():v();var A=Math.random().toString(36).substring(2);function I(){}var R=void 0,N=1,C=2;function x(){return new TypeError("You cannot resolve a promise with itself")}function D(){return new TypeError("A promises callback cannot return that same promise.")}function O(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function z(t,e,n){l((function(t){var r=!1,a=O(n,e,(function(n){r||(r=!0,e!==n?L(t,n):F(t,n))}),(function(e){r||(r=!0,U(t,e))}),"Settle: "+(t._label||" unknown promise"));!r&&a&&(r=!0,U(t,a))}),t)}function P(t,e){e._state===N?F(t,e._result):e._state===C?U(t,e._result):q(e,void 0,(function(e){return L(t,e)}),(function(e){return U(t,e)}))}function M(t,n,r){n.constructor===t.constructor&&r===S&&n.constructor.resolve===k?P(t,n):void 0===r?F(t,n):e(r)?z(t,n,r):F(t,n)}function L(e,n){if(e===n)U(e,x());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void U(e,t)}M(e,n,r)}else F(e,n)}function j(t){t._onerror&&t._onerror(t._result),B(t)}function F(t,e){t._state===R&&(t._result=e,t._state=N,0!==t._subscribers.length&&l(B,t))}function U(t,e){t._state===R&&(t._state=C,t._result=e,l(j,t))}function q(t,e,n,r){var a=t._subscribers,i=a.length;t._onerror=null,a[i]=e,a[i+N]=n,a[i+C]=r,0===i&&t._state&&l(B,t)}function B(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,a=void 0,i=t._result,o=0;o<e.length;o+=3)r=e[o],a=e[o+n],r?Z(n,r,a,i):a(i);t._subscribers.length=0}}function Z(t,n,r,a){var i=e(r),o=void 0,l=void 0,s=!0;if(i){try{o=r(a)}catch(t){s=!1,l=t}if(n===o)return void U(n,D())}else o=a;n._state!==R||(i&&s?L(n,o):!1===s?U(n,l):t===N?F(n,o):t===C&&U(n,o))}function G(t,e){try{e((function(e){L(t,e)}),(function(e){U(t,e)}))}catch(e){U(t,e)}}var H=0;function Y(){return H++}function V(t){t[A]=H++,t._state=void 0,t._result=void 0,t._subscribers=[]}function K(){return new Error("Array Methods must be provided an Array")}var W=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(I),this.promise[A]||V(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?F(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&F(this.promise,this._result))):U(this.promise,K())}return t.prototype._enumerate=function(t){for(var e=0;this._state===R&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===k){var a=void 0,i=void 0,o=!1;try{a=t.then}catch(t){o=!0,i=t}if(a===S&&t._state!==R)this._settledAt(t._state,e,t._result);else if("function"!=typeof a)this._remaining--,this._result[e]=t;else if(n===et){var l=new n(I);o?U(l,i):M(l,t,a),this._willSettleAt(l,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===R&&(this._remaining--,t===C?U(r,n):this._result[e]=n),0===this._remaining&&F(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;q(t,void 0,(function(t){return n._settledAt(N,e,t)}),(function(t){return n._settledAt(C,e,t)}))},t}();function X(t){return new W(this,t).promise}function Q(t){var e=this;return r(t)?new e((function(n,r){for(var a=t.length,i=0;i<a;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function $(t){var e=new this(I);return U(e,t),e}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[A]=Y(),this._result=this._state=void 0,this._subscribers=[],I!==e&&("function"!=typeof e&&J(),this instanceof t?G(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=S,et.all=X,et.race=Q,et.resolve=k,et.reject=$,et._setScheduler=s,et._setAsap=u,et._asap=l,et.polyfill=nt,et.Promise=et,et}()},1159:function(t){var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function a(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",a),n([].slice.call(arguments))}p(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&p(t,"error",e,n)}(t,a,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var a,i,o,u;if(l(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),o=i[e]),void 0===o)o=i[e]=n,++t._eventsCount;else if("function"==typeof o?o=i[e]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=s(t))>0&&o.length>a&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=o.length,u=c,console&&console.warn&&console.warn(u)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},a=c.bind(r);return a.listener=n,r.wrapFn=a,a}function d(t,e,n){var r=t._events;if(void 0===r)return[];var a=r[e];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(a):g(a,a.length)}function m(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function p(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function a(i){r.once&&t.removeEventListener(e,a),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");o=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var a="error"===t,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)r(s,this,e);else{var u=s.length,c=g(s,u);for(n=0;n<u;++n)r(c[n],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return l(e),this.on(t,f(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,f(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,a,i,o;if(l(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,a),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,o||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return d(this,t,!0)},i.prototype.rawListeners=function(t){return d(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},3101:function(t){var e=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;t.exports=function t(a,i){if(a===i)return!0;if(a&&i&&"object"==typeof a&&"object"==typeof i){var o,l,s,u=e(a),c=e(i);if(u&&c){if((l=a.length)!=i.length)return!1;for(o=l;0!=o--;)if(!t(a[o],i[o]))return!1;return!0}if(u!=c)return!1;var f=a instanceof Date,d=i instanceof Date;if(f!=d)return!1;if(f&&d)return a.getTime()==i.getTime();var m=a instanceof RegExp,g=i instanceof RegExp;if(m!=g)return!1;if(m&&g)return a.toString()==i.toString();var p=n(a);if((l=p.length)!==n(i).length)return!1;for(o=l;0!=o--;)if(!r.call(i,p[o]))return!1;for(o=l;0!=o--;)if(!t(a[s=p[o]],i[s]))return!1;return!0}return a!=a&&i!=i}},8713:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,r,a){var i,o,l=8*a-r-1,s=(1<<l)-1,u=s>>1,c=-7,f=n?a-1:0,d=n?-1:1,m=t[e+f];for(f+=d,i=m&(1<<-c)-1,m>>=-c,c+=l;c>0;i=256*i+t[e+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+t[e+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===s)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,r),i-=u}return(m?-1:1)*o*Math.pow(2,i-r)},e.write=function(t,e,n,r,a,i){var o,l,s,u=8*i-a-1,c=(1<<u)-1,f=c>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,g=r?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-o))<1&&(o--,s*=2),(e+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=c?(l=0,o=c):o+f>=1?(l=(e*s-1)*Math.pow(2,a),o+=f):(l=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[n+m]=255&l,m+=g,l/=256,a-=8);for(o=o<<a|l,u+=a;u>0;t[n+m]=255&o,m+=g,o/=256,u-=8);t[n+m-g]|=128*p}},3362:function(t,e,n){!function(t,e,n,r,a){function i(t){if("contents"in t)for(var e=("styleAttrs"in t?t.styleAttrs[r.byName.ruby.qname]:null),n="span"===t.kind&&("container"===e||"textContainer"===e||"baseContainer"===e),a=t.contents.length-1;a>=0;a--)!n||"styleAttrs"in t.contents[a]&&r.byName.ruby.qname in t.contents[a].styleAttrs?i(t.contents[a]):delete t.contents[a]}function o(t,e,n,r){var a=r&&"seq"===r.timeContainer,i=0;r&&(i=a&&n?n.end:r.begin),e.begin=e.explicit_begin?e.explicit_begin+i:i;var l=e.begin,s=null;if("sets"in e)for(var u=0;u<e.sets.length;u++)o(t,e.sets[u],s,e),l="seq"===e.timeContainer?e.sets[u].end:Math.max(l,e.sets[u].end),s=e.sets[u];if("contents"in e){if("contents"in e)for(var c=0;c<e.contents.length;c++)o(t,e.contents[c],s,e),l="seq"===e.timeContainer?e.contents[c].end:Math.max(l,e.contents[c].end),s=e.contents[c]}else l=a?e.begin:Number.POSITIVE_INFINITY;null!==e.explicit_end&&null!==e.explicit_dur?e.end=Math.min(e.begin+e.explicit_dur,i+e.explicit_end):null===e.explicit_end&&null!==e.explicit_dur?e.end=e.begin+e.explicit_dur:null!==e.explicit_end&&null===e.explicit_dur?e.end=i+e.explicit_end:e.end=l,delete e.explicit_begin,delete e.explicit_dur,delete e.explicit_end,t._registerEvent(e)}function l(t){this.node=t}function s(){this.events=[],this.head=new u,this.body=null}function u(){this.styling=new c,this.layout=new m}function c(){this.styles={},this.initials={}}function f(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function d(){this.styleAttrs=null}function m(){this.regions={}}function g(t,e){p.call(this,"image"),this.src=t,this.type=e}function p(t){this.kind=t}function h(t){this.id=t}function b(t){this.regionID=t}function y(t){this.styleAttrs=t}function v(t){this.sets=t}function E(t){this.contents=t}function _(t,e,n){this.explicit_begin=t,this.explicit_end=e,this.explicit_dur=n}function w(){p.call(this,"body")}function T(){p.call(this,"div")}function S(){p.call(this,"p")}function k(){p.call(this,"span")}function A(){p.call(this,"span")}function I(){p.call(this,"br")}function R(){}function N(){}function C(t){return t&&"xml:id"in t.attributes&&t.attributes["xml:id"].value||null}function x(t){return t&&"style"in t.attributes?t.attributes.style.value.split(" "):[]}function D(t,e){var n={};if(null!==t)for(var a in t.attributes){var i=t.attributes[a].uri+" "+t.attributes[a].local,o=r.byQName[i];if(void 0!==o){var l=o.parse(t.attributes[a].value);null!==l?(n[i]=l,o===r.byName.zIndex&&j(e,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):F(e,"Cannot parse styling attribute "+i+" --\x3e "+t.attributes[a].value)}}return n}function O(t,e,n){for(var r in t.attributes)if(t.attributes[r].uri===e&&t.attributes[r].local===n)return t.attributes[r].value;return null}function z(t,e,n){var r,a=null;return null!==(r=/^(\d+(?:\.\d+)?)f$/.exec(n))?null!==e&&(a=parseFloat(r[1])/e):null!==(r=/^(\d+(?:\.\d+)?)t$/.exec(n))?null!==t&&(a=parseFloat(r[1])/t):null!==(r=/^(\d+(?:\.\d+)?)ms$/.exec(n))?a=parseFloat(r[1])/1e3:null!==(r=/^(\d+(?:\.\d+)?)s$/.exec(n))?a=parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)h$/.exec(n))?a=3600*parseFloat(r[1]):null!==(r=/^(\d+(?:\.\d+)?)m$/.exec(n))?a=60*parseFloat(r[1]):null!==(r=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(n))?a=3600*parseInt(r[1])+60*parseInt(r[2])+parseFloat(r[3]):null!==(r=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(n))&&null!==e&&(a=3600*parseInt(r[1])+60*parseInt(r[2])+parseInt(r[3])+(null===r[4]?0:parseInt(r[4])/e)),a}function P(t,e,n){for(;e.styleRefs.length>0;){var r=e.styleRefs.pop();r in t.styles?(P(t,t.styles[r],n),L(t.styles[r].styleAttrs,e.styleAttrs)):F(n,"Non-existant style id referenced")}}function M(t,e,n,r){for(var a=e.length-1;a>=0;a--){var i=e[a];i in t.styles?L(t.styles[i].styleAttrs,n):F(r,"Non-existant style id referenced")}}function L(t,e){for(var n in t)t.hasOwnProperty(n)&&(n in e||(e[n]=t[n]))}function j(t,e){if(t&&t.warn&&t.warn(e))throw e}function F(t,e){if(t&&t.error&&t.error(e))throw e}function U(t,e){throw t&&t.fatal&&t.fatal(e),e}function q(t,e){for(var n,r=0,a=t.length-1;r<=a;){var i=t[n=Math.floor((r+a)/2)];if(i<e)r=n+1;else{if(!(i>e))return{found:!0,index:n};a=n-1}}return{found:!1,index:r}}t.fromXML=function(t,a,p){var h=e.parser(!0,{xmlns:!0}),b=[],y=[],v=[],E=0,_=null;h.onclosetag=function(t){if(b[0]instanceof R)null!==_.head&&null!==_.head.styling&&M(_.head.styling,b[0].styleRefs,b[0].styleAttrs,a),delete b[0].styleRefs;else if(b[0]instanceof c)for(var e in b[0].styles)b[0].styles.hasOwnProperty(e)&&P(b[0],b[0].styles[e],a);else if(b[0]instanceof S||b[0]instanceof k){if(b[0].contents.length>1){var r,i=[b[0].contents[0]];for(r=1;r<b[0].contents.length;r++)b[0].contents[r]instanceof A&&i[i.length-1]instanceof A?i[i.length-1].text+=b[0].contents[r].text:i.push(b[0].contents[r]);b[0].contents=i}b[0]instanceof k&&1===b[0].contents.length&&b[0].contents[0]instanceof A&&(b[0].text=b[0].contents[0].text,delete b[0].contents)}else b[0]instanceof l&&(b[0].node.uri===n.ns_tt&&"metadata"===b[0].node.local?E--:E>0&&p&&"onCloseTag"in p&&p.onCloseTag());v.shift(),y.shift(),b.shift()},h.ontext=function(t){if(void 0===b[0]);else if(b[0]instanceof k||b[0]instanceof S){if(b[0]instanceof k){var e=b[0].styleAttrs[r.byName.ruby.qname];if("container"===e||"textContainer"===e||"baseContainer"===e)return}var n=new A;n.initFromText(_,b[0],t,y[0],v[0],a),b[0].contents.push(n)}else b[0]instanceof l&&E>0&&p&&"onText"in p&&p.onText(t)},h.onopentag=function(t){var e=t.attributes["xml:space"];e?v.unshift(e.value):0===v.length?v.unshift("default"):v.unshift(v[0]);var i=t.attributes["xml:lang"];if(i?y.unshift(i.value):0===y.length?y.unshift(""):y.unshift(y[0]),t.uri===n.ns_tt)if("tt"===t.local)null!==_&&U(a,"Two <tt> elements at ("+this.line+","+this.column+")"),(_=new s).initFromNode(t,y[0],a),b.unshift(_);else if("head"===t.local)b[0]instanceof s||U(a,"Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),b.unshift(_.head);else if("styling"===t.local)b[0]instanceof u||U(a,"Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),b.unshift(_.head.styling);else if("style"===t.local){var o;b[0]instanceof c?((o=new f).initFromNode(t,a),o.id?_.head.styling.styles[o.id]=o:F(a,"<style> element missing @id attribute"),b.unshift(o)):b[0]instanceof R?((o=new f).initFromNode(t,a),L(o.styleAttrs,b[0].styleAttrs),b.unshift(o)):U(a,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("initial"===t.local){var h;if(b[0]instanceof c){for(var A in(h=new d).initFromNode(t,a),h.styleAttrs)h.styleAttrs.hasOwnProperty(A)&&(_.head.styling.initials[A]=h.styleAttrs[A]);b.unshift(h)}else U(a,"Parent of <initial> element is not <styling> at ("+this.line+","+this.column+")")}else if("layout"===t.local)b[0]instanceof u||U(a,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),b.unshift(_.head.layout);else if("region"===t.local){b[0]instanceof m||U(a,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var C=new R;C.initFromNode(_,t,y[0],a),!C.id||C.id in _.head.layout.regions?F(a,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):_.head.layout.regions[C.id]=C,b.unshift(C)}else if("body"===t.local){b[0]instanceof s||U(a,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==_.body&&U(a,"Second <body> element at "+this.line+","+this.column+")");var x=new w;x.initFromNode(_,t,y[0],a),_.body=x,b.unshift(x)}else if("div"===t.local){b[0]instanceof T||b[0]instanceof w||U(a,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var D=new T;D.initFromNode(_,b[0],t,y[0],a);var O=D.styleAttrs[r.byName.backgroundImage.qname];O&&(D.contents.push(new g(O)),delete D.styleAttrs[r.byName.backgroundImage.qname]),b[0].contents.push(D),b.unshift(D)}else if("image"===t.local){b[0]instanceof T||U(a,"Parent of <image> element is not <div> at "+this.line+","+this.column+")");var z=new g;z.initFromNode(_,b[0],t,y[0],a),b[0].contents.push(z),b.unshift(z)}else if("p"===t.local){b[0]instanceof T||U(a,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var P=new S;P.initFromNode(_,b[0],t,y[0],a),b[0].contents.push(P),b.unshift(P)}else if("span"===t.local){b[0]instanceof k||b[0]instanceof S||U(a,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var M=new k;M.initFromNode(_,b[0],t,y[0],v[0],a),b[0].contents.push(M),b.unshift(M)}else if("br"===t.local){b[0]instanceof k||b[0]instanceof S||U(a,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var j=new I;j.initFromNode(_,b[0],t,y[0],a),b[0].contents.push(j),b.unshift(j)}else if("set"===t.local){b[0]instanceof k||b[0]instanceof S||b[0]instanceof T||b[0]instanceof w||b[0]instanceof R||b[0]instanceof I||U(a,"Parent of <set> element is not a content element or a region at "+this.line+","+this.column+")");var q=new N;q.initFromNode(_,b[0],t,a),b[0].sets.push(q),b.unshift(q)}else b.unshift(new l(t));else b.unshift(new l(t));if(b[0]instanceof l)if(t.uri===n.ns_tt&&"metadata"===t.local)E++;else if(E>0&&p&&"onOpenTag"in p){var B=[];for(var Z in t.attributes)B[t.attributes[Z].uri+" "+t.attributes[Z].local]={uri:t.attributes[Z].uri,local:t.attributes[Z].local,value:t.attributes[Z].value};p.onOpenTag(t.uri,t.local,B)}},h.write(t).close(),delete _.head.styling.styles;var C=!1;for(var x in _.head.layout.regions)if(_.head.layout.regions.hasOwnProperty(x)){C=!0;break}if(!C){var D=R.prototype.createDefaultRegion(_.lang);_.head.layout.regions[D.id]=D}for(var O in _.head.layout.regions)_.head.layout.regions.hasOwnProperty(O)&&o(_,_.head.layout.regions[O],null,null);return _.body&&o(_,_.body,null,null),_.body&&i(_.body),_},s.prototype.initFromNode=function(t,e,r){var i=function(t,e){var r=O(t,n.ns_ttp,"cellResolution"),a=15,i=32;if(null!==r){var o=/(\d+) (\d+)/.exec(r);null!==o?(i=parseInt(o[1]),a=parseInt(o[2])):j(e,"Malformed cellResolution value (using initial value instead)")}return{w:i,h:a}}(t,r);this.cellLength={h:new a.ComputedLength(0,1/i.h),w:new a.ComputedLength(1/i.w,0)};var o=function(t,e){var r,a=O(t,n.ns_ttp,"frameRate"),i=30;null!==a&&(null!==(r=/(\d+)/.exec(a))?i=parseInt(r[1]):j(e,"Malformed frame rate attribute (using initial value instead)"));var o=O(t,n.ns_ttp,"frameRateMultiplier"),l=1;null!==o&&(null!==(r=/(\d+) (\d+)/.exec(o))?l=parseInt(r[1])/parseInt(r[2]):j(e,"Malformed frame rate multiplier attribute (using initial value instead)"));var s=l*i,u=1,c=O(t,n.ns_ttp,"tickRate");return null===c?null!==a&&(u=s):null!==(r=/(\d+)/.exec(c))?u=parseInt(r[1]):j(e,"Malformed tick rate attribute (using initial value instead)"),{effectiveFrameRate:s,tickRate:u}}(t,r);this.effectiveFrameRate=o.effectiveFrameRate,this.tickRate=o.tickRate,this.aspectRatio=function(t,e){var r=O(t,n.ns_ittp,"aspectRatio");null===r&&(r=O(t,n.ns_ttp,"displayAspectRatio"));var a=null;if(null!==r){var i=/(\d+)\s+(\d+)/.exec(r);if(null!==i){var o=parseInt(i[1]),l=parseInt(i[2]);0!==o&&0!==l?a=o/l:F(e,"Illegal aspectRatio values (ignoring)")}else F(e,"Malformed aspectRatio attribute (ignoring)")}return a}(t,r);var l=O(t,n.ns_ttp,"timeBase");null!==l&&"media"!==l&&U(r,"Unsupported time base");var s=function(t,e){var r=O(t,n.ns_tts,"extent");if(null===r)return null;var i=r.split(" ");if(2!==i.length)return j(e,"Malformed extent (ignoring)"),null;var o=a.parseLength(i[0]),l=a.parseLength(i[1]);return l&&o?{h:l,w:o}:(j(e,"Malformed extent values (ignoring)"),null)}(t,r);null===s?this.pxLength={h:null,w:null}:("px"===s.h.unit&&"px"===s.w.unit||U(r,"Extent on TT must be in px or absent"),this.pxLength={h:new a.ComputedLength(0,1/s.h.value),w:new a.ComputedLength(1/s.w.value,0)}),this.dimensions={h:new a.ComputedLength(0,1),w:new a.ComputedLength(1,0)},this.lang=e},s.prototype._registerEvent=function(t){if(!(t.end<=t.begin)){var e=q(this.events,t.begin);if(e.found||this.events.splice(e.index,0,t.begin),t.end!==Number.POSITIVE_INFINITY){var n=q(this.events,t.end);n.found||this.events.splice(n.index,0,t.end)}}},s.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},s.prototype.getMediaTimeEvents=function(){return this.events},f.prototype.initFromNode=function(t,e){this.id=C(t),this.styleAttrs=D(t,e),this.styleRefs=x(t)},d.prototype.initFromNode=function(t,e){for(var r in this.styleAttrs={},t.attributes)if(t.attributes[r].uri===n.ns_itts||t.attributes[r].uri===n.ns_ebutts||t.attributes[r].uri===n.ns_tts){var a=t.attributes[r].uri+" "+t.attributes[r].local;this.styleAttrs[a]=t.attributes[r].value}},g.prototype.initFromNode=function(t,e,n,r,a){this.src="src"in n.attributes?n.attributes.src.value:null,this.src||F(a,"Invalid image@src attribute"),this.type="type"in n.attributes?n.attributes.type.value:null,this.type||F(a,"Invalid image@type attribute"),y.prototype.initFromNode.call(this,t,e,n,a),_.prototype.initFromNode.call(this,t,e,n,a),v.prototype.initFromNode.call(this,t,e,n,a),b.prototype.initFromNode.call(this,t,e,n,a),this.lang=r},h.prototype.initFromNode=function(t,e,n,r){this.id=C(n)},b.prototype.initFromNode=function(t,e,n,r){this.regionID=function(t){return t&&"region"in t.attributes?t.attributes.region.value:""}(n)},y.prototype.initFromNode=function(t,e,n,r){this.styleAttrs=D(n,r),null!==t.head&&null!==t.head.styling&&M(t.head.styling,x(n),this.styleAttrs,r)},v.prototype.initFromNode=function(t,e,n,r){this.sets=[]},E.prototype.initFromNode=function(t,e,n,r){this.contents=[]},_.prototype.initFromNode=function(t,e,n,r){var a=function(t,e,n,r){var a=null;n&&"begin"in n.attributes&&null===(a=z(t.tickRate,t.effectiveFrameRate,n.attributes.begin.value))&&j(r,"Malformed begin value "+n.attributes.begin.value+" (using 0)");var i=null;n&&"dur"in n.attributes&&null===(i=z(t.tickRate,t.effectiveFrameRate,n.attributes.dur.value))&&j(r,"Malformed dur value "+n.attributes.dur.value+" (ignoring)");var o=null;return n&&"end"in n.attributes&&null===(o=z(t.tickRate,t.effectiveFrameRate,n.attributes.end.value))&&j(r,"Malformed end value (ignoring)"),{explicit_begin:a,explicit_end:o,explicit_dur:i}}(t,0,n,r);this.explicit_begin=a.explicit_begin,this.explicit_end=a.explicit_end,this.explicit_dur=a.explicit_dur,this.timeContainer=function(t,e){var n=t&&"timeContainer"in t.attributes?t.attributes.timeContainer.value:null;return n&&"par"!==n?"seq"===n?"seq":(F(e,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}(n,r)},w.prototype.initFromNode=function(t,e,n,r){y.prototype.initFromNode.call(this,t,null,e,r),_.prototype.initFromNode.call(this,t,null,e,r),v.prototype.initFromNode.call(this,t,null,e,r),b.prototype.initFromNode.call(this,t,null,e,r),E.prototype.initFromNode.call(this,t,null,e,r),this.lang=n},T.prototype.initFromNode=function(t,e,n,r,a){y.prototype.initFromNode.call(this,t,e,n,a),_.prototype.initFromNode.call(this,t,e,n,a),v.prototype.initFromNode.call(this,t,e,n,a),b.prototype.initFromNode.call(this,t,e,n,a),E.prototype.initFromNode.call(this,t,e,n,a),this.lang=r},S.prototype.initFromNode=function(t,e,n,r,a){y.prototype.initFromNode.call(this,t,e,n,a),_.prototype.initFromNode.call(this,t,e,n,a),v.prototype.initFromNode.call(this,t,e,n,a),b.prototype.initFromNode.call(this,t,e,n,a),E.prototype.initFromNode.call(this,t,e,n,a),this.lang=r},k.prototype.initFromNode=function(t,e,n,r,a,i){y.prototype.initFromNode.call(this,t,e,n,i),_.prototype.initFromNode.call(this,t,e,n,i),v.prototype.initFromNode.call(this,t,e,n,i),b.prototype.initFromNode.call(this,t,e,n,i),E.prototype.initFromNode.call(this,t,e,n,i),this.space=a,this.lang=r},A.prototype.initFromText=function(t,e,n,r,a,i){_.prototype.initFromNode.call(this,t,e,null,i),this.text=n,this.space=a,this.lang=r},I.prototype.initFromNode=function(t,e,n,r,a){b.prototype.initFromNode.call(this,t,e,n,a),_.prototype.initFromNode.call(this,t,e,n,a),this.lang=r},R.prototype.createDefaultRegion=function(t){var e=new R;return h.call(e,""),y.call(e,{}),v.call(e,[]),_.call(e,0,Number.POSITIVE_INFINITY,null),this.lang=t,e},R.prototype.initFromNode=function(t,e,n,r){h.prototype.initFromNode.call(this,t,null,e,r),_.prototype.initFromNode.call(this,t,null,e,r),v.prototype.initFromNode.call(this,t,null,e,r),this.styleAttrs=D(e,r),this.styleRefs=x(e),this.lang=n},N.prototype.initFromNode=function(t,e,n,r){_.prototype.initFromNode.call(this,t,e,n,r);var a=D(n,r);for(var i in this.qname=null,this.value=null,a)if(a.hasOwnProperty(i)){if(this.qname){F(r,"More than one style specified on set");break}this.qname=i,this.value=a[i]}}}(e,"undefined"==typeof sax?n(5378):sax,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)},506:function(t,e,n){var r=/firefox/i.test(navigator.userAgent);!function(t,e,n){function a(t,e,f,m){var g;if("region"===f.kind)(g=document.createElement("div")).style.position="absolute";else if("body"===f.kind)g=document.createElement("div");else if("div"===f.kind)g=document.createElement("div");else if("image"===f.kind){if(g=document.createElement("img"),null!==t.imgResolver&&null!==f.src){var b=t.imgResolver(f.src,g);b&&(g.src=b),g.height=t.regionH,g.width=t.regionW}}else if("p"===f.kind)g=document.createElement("p");else if("span"===f.kind)if("container"===f.styleAttrs[n.byName.ruby.qname])g=document.createElement("ruby"),t.ruby=!0;else if("base"===f.styleAttrs[n.byName.ruby.qname])g=document.createElement("span");else if("text"===f.styleAttrs[n.byName.ruby.qname])g=document.createElement("rt");else if("baseContainer"===f.styleAttrs[n.byName.ruby.qname])g=document.createElement("rbc");else if("textContainer"===f.styleAttrs[n.byName.ruby.qname])g=document.createElement("rtc");else{if("delimiter"===f.styleAttrs[n.byName.ruby.qname])return;g=document.createElement("span")}else"br"===f.kind&&(g=document.createElement("br"));if(g){if(f.lang&&("region"!==f.kind&&f.lang===m.lang||(g.lang=f.lang)),e.appendChild(g),g.style.margin="0","region"===f.kind){var E=f.styleAttrs[n.byName.writingMode.qname];"lrtb"===E||"lr"===E?(t.ipd="lr",t.bpd="tb"):"rltb"===E||"rl"===E?(t.ipd="rl",t.bpd="tb"):"tblr"===E?(t.ipd="tb",t.bpd="lr"):"tbrl"!==E&&"tb"!==E||(t.ipd="tb",t.bpd="rl")}else if("p"===f.kind&&"tb"===t.bpd){var _=f.styleAttrs[n.byName.direction.qname];t.ipd="ltr"===_?"lr":"rl"}for(var w=0;w<d.length;w++){var T=d[w],S=f.styleAttrs[T.qname];void 0!==S&&null!==T.map&&T.map(t,g,f,S)}var k=g,A=f.styleAttrs[n.byName.linePadding.qname];if(A&&!A.isZero()){var I=A.toUsedLength(t.w,t.h);if(I>0){var R=Math.ceil(I)+"px";"tb"===t.bpd?(k.style.paddingLeft=R,k.style.paddingRight=R):(k.style.paddingTop=R,k.style.paddingBottom=R),t.lp=A}}var N=f.styleAttrs[n.byName.multiRowAlign.qname];if(N&&"auto"!==N){var C=document.createElement("span");C.style.display="inline-block",C.style.textAlign=N,g.appendChild(C),k=C,t.mra=N}var x=f.styleAttrs[n.byName.rubyReserve.qname];if(x&&"none"!==x[0]&&(t.rubyReserve=x),f.styleAttrs[n.byName.fillLineGap.qname]&&(t.flg=!0),"span"===f.kind&&f.text){var D=f.styleAttrs[n.byName.textEmphasis.qname];if(D&&"none"!==D.style&&(t.textEmphasis=!0),n.byName.textCombine.qname in f.styleAttrs&&"all"===f.styleAttrs[n.byName.textCombine.qname])g.textContent=f.text,g._isd_element=f,D&&c(t,g,0,D);else for(var O="",z=0;z<f.text.length;z++){O+=f.text.charAt(z);var P=f.text.charCodeAt(z);if(P<55296||P>56319||z===f.text.length-1){var M=document.createElement("span");M.textContent=O,D&&c(t,M,0,D),g.appendChild(M),O="",M._isd_element=f}}}if("contents"in f)for(var L=0;L<f.contents.length;L++)a(t,k,f.contents[L],f);var j=[];if("p"===f.kind&&(u(t,k,j,null),t.rubyReserve&&(function(t,e){for(var n=0;n<t.length;n++){var r,a,i=document.createElement("ruby"),o=document.createElement("span");o.textContent="​",i.appendChild(o);var l,s=e.rubyReserve[1].toUsedLength(e.w,e.h)+"px";"both"===e.rubyReserve[0]||"outside"===e.rubyReserve[0]&&1==t.length?((r=document.createElement("rtc")).style[h]=p?"after":"under",r.textContent="​",r.style.fontSize=s,(a=document.createElement("rtc")).style[h]=p?"before":"over",a.textContent="​",a.style.fontSize=s,i.appendChild(r),i.appendChild(a)):((r=document.createElement("rtc")).textContent="​",r.style.fontSize=s,l="after"===e.rubyReserve[0]||"outside"===e.rubyReserve[0]&&n>0?p?"after":"tb"===e.bpd||"rl"===e.bpd?"under":"over":p?"before":"tb"===e.bpd||"rl"===e.bpd?"over":"under",r.style[h]=l,i.appendChild(r));for(var u=null,c=0;c<t[n].rbc.length;c++)if("ruby"===t[n].rbc[c].localName){u=t[n].rbc[c];for(var f=0;f<u.style.length;f++)i.style.setProperty(u.style.item(f),u.style.getPropertyValue(u.style.item(f)));break}(u=u||t[n].elements[0].node).parentElement.insertBefore(i,u)}}(j,t),t.rubyReserve=null),(t.ruby||t.rubyReserve)&&(function(t,e){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].rbc.length;r++){var a;t[n].rbc[r].style[h]||(a=p?0===n?"before":"after":"tb"===e.bpd||"rl"===e.bpd?0===n?"over":"under":0===n?"under":"over",t[n].rbc[r].style[h]=a)}}(j,t),t.ruby=null),t.textEmphasis&&(function(t,e){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].te.length;r++){var a;t[n].te[r].style[y]&&"none"!==t[n].te[r].style[y]||(a="tb"===e.bpd?0===n?"left over":"left under":"rl"===e.bpd?0===n?"right under":"left under":0===n?"left under":"right under",t[n].te[r].style[y]=a)}}(j,t),t.textEmphasis=null),t.mra&&(function(t){for(var e=0;e<t.length-1;e++){var n=t[e].elements.length;if(0!==n&&!1===t[e].br){var r=document.createElement("br"),a=t[e].elements[n-1].node;a.parentElement.insertBefore(r,a.nextSibling)}}}(j),t.mra=null),t.lp&&(function(t,e,n){if(null!==t)for(var a=0;a<t.length;a++){var i=t[a].elements.length,o=Math.ceil(e)+"px",l="-"+Math.ceil(e)+"px";if(0!==i){var s=t[a].elements[t[a].start_elem],u=t[a].elements[t[a].end_elem];if(s===u){var c=s.node.getBoundingClientRect();if(0==c.width||0==c.height)continue}"lr"===n.ipd?(s.node.style.marginLeft=l,s.node.style.paddingLeft=o):"rl"===n.ipd?(s.node.style.paddingRight=o,s.node.style.marginRight=l):"tb"===n.ipd&&(s.node.style.paddingTop=o,s.node.style.marginTop=l),"lr"===n.ipd?(r||(u.node.style.marginRight=l),u.node.style.paddingRight=o):"rl"===n.ipd?(u.node.style.paddingLeft=o,r||(u.node.style.marginLeft=l)):"tb"===n.ipd&&(u.node.style.paddingBottom=o,u.node.style.marginBottom=l)}}}(j,t.lp.toUsedLength(t.w,t.h),t),t.lp=null),function(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=1;a<r.elements.length;){var l=r.elements[a-1],s=r.elements[a];o(l.node,s.node,e)?r.elements.splice(a,1):a++}for(var u,c,f=[],d=0;d<t.length;d++)for(var m=0;m<t[d].elements.length;m++)(c=i(u=t[d].elements[m].node,f,!1))&&(u.style.backgroundColor=c);for(var g=0;g<f.length;g++)f[g].style.backgroundColor=""}(j,t),t.flg)){var F=s(k.getBoundingClientRect(),t);!function(t,e,n,r,a){for(var i=Math.sign(n-e),o=0;o<=t.length;o++){var l,s,u,c;if(l=0===o?Math.round(e):o===t.length?Math.round(n):Math.round((t[o-1].after+t[o].before)/2),o>0&&t[o-1])for(u=0;u<t[o-1].elements.length;u++)s=i*(l-(c=t[o-1].elements[u]).after)+"px","lr"===r.bpd?c.node.style.paddingRight=s:"rl"===r.bpd?c.node.style.paddingLeft=s:"tb"===r.bpd&&(c.node.style.paddingBottom=s);if(o<t.length)for(u=0;u<t[o].elements.length;u++)s=i*((c=t[o].elements[u]).before-l)+"px","lr"===r.bpd?c.node.style.paddingLeft=s:"rl"===r.bpd?c.node.style.paddingRight=s:"tb"===r.bpd&&(c.node.style.paddingTop=s)}}(j,F.before,F.after,t),t.flg=null}if("region"===f.kind&&"tb"===t.bpd&&t.enableRollUp&&f.contents.length>0&&"after"===f.styleAttrs[n.byName.displayAlign.qname]){u(t,k,j,null);var U=new l(""===f.id?"_":f.id,j);if(t.currentISDState[U.id]=U,t.previousISDState&&U.id in t.previousISDState&&t.previousISDState[U.id].plist.length>0&&U.plist.length>1&&U.plist[U.plist.length-2].text===t.previousISDState[U.id].plist[t.previousISDState[U.id].plist.length-1].text){var q=g.firstElementChild,B=U.plist[U.plist.length-1].after-U.plist[U.plist.length-1].before;q.style.bottom="-"+B+"px",q.style.transition="transform 0.4s",q.style.position="relative",q.style.transform="translateY(-"+B+"px)"}}}else v(t.errorHandler,"Error processing ISD element kind: "+f.kind)}function i(t,e,n){return t.style.backgroundColor?(n&&!e.includes(t)&&e.push(t),t.style.backgroundColor):"SPAN"===t.parentElement.nodeName||"RUBY"===t.parentElement.nodeName||"RBC"===t.parentElement.nodeName||"RTC"===t.parentElement.nodeName||"RT"===t.parentElement.nodeName?i(t.parentElement,e,!0):void 0}function o(t,e,n){if("SPAN"===t.tagName&&"SPAN"===e.tagName&&t._isd_element===e._isd_element){if(!t._isd_element)return v(n.errorHandler,"Internal error: HTML span is not linked to a source element; cannot merge spans."),!1;t.textContent+=e.textContent;for(var r=0;r<e.style.length;r++){var a=e.style[r];(a.indexOf("border")>=0||a.indexOf("padding")>=0||a.indexOf("margin")>=0)&&(t.style[a]=e.style[a])}return e.parentElement.removeChild(e),!0}return!1}function l(t,e){this.id=t,this.plist=e}function s(t,e){var n={before:null,after:null,start:null,end:null};return"tb"===e.bpd?(n.before=t.top,n.after=t.bottom,"lr"===e.ipd?(n.start=t.left,n.end=t.right):(n.start=t.right,n.end=t.left)):"lr"===e.bpd?(n.before=t.left,n.after=t.right,n.start=t.top,n.end=t.bottom):"rl"===e.bpd&&(n.before=t.right,n.after=t.left,n.start=t.top,n.end=t.bottom),n}function u(t,e,n,r){if("rt"!==e.localName&&"rtc"!==e.localName){var a,i,o,l,c=e.style.backgroundColor||r;if(0===e.childElementCount)if("span"===e.localName||"rb"===e.localName){var f=s(e.getBoundingClientRect(),t);if(0!==n.length&&(a=f.before,i=f.after,o=n[n.length-1].before,l=n[n.length-1].after,i<l&&a>o||l<=i&&o>=a)){var d=Math.sign(f.after-f.before),m=Math.sign(f.end-f.start);d*(f.before-n[n.length-1].before)<0&&(n[n.length-1].before=f.before),d*(f.after-n[n.length-1].after)>0&&(n[n.length-1].after=f.after),m*(f.start-n[n.length-1].start)<0&&(n[n.length-1].start=f.start,n[n.length-1].start_elem=n[n.length-1].elements.length),m*(f.end-n[n.length-1].end)>0&&(n[n.length-1].end=f.end,n[n.length-1].end_elem=n[n.length-1].elements.length)}else n.push({before:f.before,after:f.after,start:f.start,end:f.end,start_elem:0,end_elem:0,elements:[],rbc:[],te:[],text:"",br:!1});n[n.length-1].text+=e.textContent,n[n.length-1].elements.push({node:e,bgcolor:c,before:f.before,after:f.after})}else"br"===e.localName&&0!==n.length&&(n[n.length-1].br=!0);else for(var g=e.firstChild;g;)g.nodeType===Node.ELEMENT_NODE&&(u(t,g,n,c),"ruby"===g.localName||"rtc"===g.localName?n.length>0&&n[n.length-1].rbc.push(g):"span"===g.localName&&g.style[b]&&"none"!==g.style[b]&&n.length>0&&n[n.length-1].te.push(g)),g=g.nextSibling}}function c(t,e,n,r){var a;"none"!==r.style&&("auto"===r.style?e.style[b]="filled":e.style[b]=r.style+" "+r.symbol,("before"===r.position||"after"===r.position)&&(a="tb"===t.bpd?"before"===r.position?"left over":"left under":"rl"===t.bpd?"before"===r.position?"right under":"left under":"before"===r.position?"left under":"right under",e.style[y]=a))}function f(t,e){this.qname=t,this.map=e}t.render=function(t,e,n,r,i,o,l,s,u){var c=r||e.clientHeight,f=i||e.clientWidth;if(null!==t.aspectRatio){var d=c*t.aspectRatio;d>f?c=Math.round(f/t.aspectRatio):f=d}var m=document.createElement("div");m.style.position="relative",m.style.width=f+"px",m.style.height=c+"px",m.style.margin="auto",m.style.top=0,m.style.bottom=0,m.style.left=0,m.style.right=0,m.style.zIndex=0;var g={h:c,w:f,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:o||!1,isd:t,errorHandler:l,previousISDState:s,enableRollUp:u||!1,currentISDState:{},flg:null,lp:null,mra:null,ipd:null,bpd:null,ruby:null,textEmphasis:null,rubyReserve:null};if(e.appendChild(m),"contents"in t)for(var p=0;p<t.contents.length;p++)a(g,m,t.contents[p],t);return g.currentISDState};for(var d=[new f("http://www.w3.org/ns/ttml#styling backgroundColor",(function(t,e,n,r){0!==r[3]&&(e.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")")})),new f("http://www.w3.org/ns/ttml#styling color",(function(t,e,n,r){e.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"})),new f("http://www.w3.org/ns/ttml#styling direction",(function(t,e,n,r){e.style.direction=r})),new f("http://www.w3.org/ns/ttml#styling display",(function(t,e,n,r){})),new f("http://www.w3.org/ns/ttml#styling displayAlign",(function(t,e,n,r){e.style.display="flex",e.style.flexDirection="column","before"===r?e.style.justifyContent="flex-start":"center"===r?e.style.justifyContent="center":"after"===r&&(e.style.justifyContent="flex-end")})),new f("http://www.w3.org/ns/ttml#styling extent",(function(t,e,n,r){t.regionH=r.h.toUsedLength(t.w,t.h),t.regionW=r.w.toUsedLength(t.w,t.h);var a=0,i=0,o=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];o&&(a=o[0].toUsedLength(t.w,t.h)+o[2].toUsedLength(t.w,t.h),i=o[1].toUsedLength(t.w,t.h)+o[3].toUsedLength(t.w,t.h)),e.style.height=t.regionH-a+"px",e.style.width=t.regionW-i+"px"})),new f("http://www.w3.org/ns/ttml#styling fontFamily",(function(t,e,n,r){for(var a=[],i=0;i<r.length;i++)r[i]=r[i].trim(),"monospaceSerif"===r[i]?(a.push("Courier New"),a.push('"Liberation Mono"'),a.push("Courier"),a.push("monospace")):"proportionalSansSerif"===r[i]?(a.push("Arial"),a.push("Helvetica"),a.push('"Liberation Sans"'),a.push("sans-serif")):"monospace"===r[i]?a.push("monospace"):"sansSerif"===r[i]?a.push("sans-serif"):"serif"===r[i]?a.push("serif"):"monospaceSansSerif"===r[i]?(a.push("Consolas"),a.push("monospace")):"proportionalSerif"===r[i]?a.push("serif"):a.push(r[i]);if(a.length>0){for(var o=[a[0]],l=1;l<a.length;l++)-1==o.indexOf(a[l])&&o.push(a[l]);a=o}e.style.fontFamily=a.join(",")})),new f("http://www.w3.org/ns/ttml#styling shear",(function(t,e,n,r){if(0!==r){var a=-.9*r;"tb"===t.bpd?e.style.transform="skewX("+a+"deg)":e.style.transform="skewY("+a+"deg)"}})),new f("http://www.w3.org/ns/ttml#styling fontSize",(function(t,e,n,r){e.style.fontSize=r.toUsedLength(t.w,t.h)+"px"})),new f("http://www.w3.org/ns/ttml#styling fontStyle",(function(t,e,n,r){e.style.fontStyle=r})),new f("http://www.w3.org/ns/ttml#styling fontWeight",(function(t,e,n,r){e.style.fontWeight=r})),new f("http://www.w3.org/ns/ttml#styling lineHeight",(function(t,e,n,r){e.style.lineHeight="normal"===r?"normal":r.toUsedLength(t.w,t.h)+"px"})),new f("http://www.w3.org/ns/ttml#styling opacity",(function(t,e,n,r){e.style.opacity=r})),new f("http://www.w3.org/ns/ttml#styling origin",(function(t,e,n,r){e.style.top=r.h.toUsedLength(t.w,t.h)+"px",e.style.left=r.w.toUsedLength(t.w,t.h)+"px"})),new f("http://www.w3.org/ns/ttml#styling overflow",(function(t,e,n,r){e.style.overflow=r})),new f("http://www.w3.org/ns/ttml#styling padding",(function(t,e,n,r){var a=[];a[0]=r[0].toUsedLength(t.w,t.h)+"px",a[1]=r[3].toUsedLength(t.w,t.h)+"px",a[2]=r[2].toUsedLength(t.w,t.h)+"px",a[3]=r[1].toUsedLength(t.w,t.h)+"px",e.style.padding=a.join(" ")})),new f("http://www.w3.org/ns/ttml#styling position",(function(t,e,n,r){e.style.top=r.h.toUsedLength(t.w,t.h)+"px",e.style.left=r.w.toUsedLength(t.w,t.h)+"px"})),new f("http://www.w3.org/ns/ttml#styling rubyAlign",(function(t,e,n,r){e.style.rubyAlign="spaceAround"===r?"space-around":"center"})),new f("http://www.w3.org/ns/ttml#styling rubyPosition",(function(t,e,n,r){var a;"before"!==r&&"after"!==r||(a=p?r:"tb"===t.bpd||"rl"===t.bpd?"before"===r?"over":"under":"before"===r?"under":"over",e.parentElement.style[h]=a)})),new f("http://www.w3.org/ns/ttml#styling showBackground",null),new f("http://www.w3.org/ns/ttml#styling textAlign",(function(t,e,n,r){var a;a="start"===r?"rl"===t.ipd?"right":"left":"end"===r?"rl"===t.ipd?"left":"right":r,e.style.textAlign=a})),new f("http://www.w3.org/ns/ttml#styling textDecoration",(function(t,e,n,r){e.style.textDecoration=r.join(" ").replace("lineThrough","line-through")})),new f("http://www.w3.org/ns/ttml#styling textOutline",(function(t,e,n,r){})),new f("http://www.w3.org/ns/ttml#styling textShadow",(function(t,e,r,a){var i=r.styleAttrs[n.byName.textOutline.qname];if("none"===a&&"none"===i)e.style.textShadow="";else{var o=[];if("none"!==i){var l="rgba("+i.color[0].toString()+","+i.color[1].toString()+","+i.color[2].toString()+","+(i.color[3]/255).toString()+")";o.push("1px 1px 1px "+l),o.push("-1px 1px 1px "+l),o.push("1px -1px 1px "+l),o.push("-1px -1px 1px "+l)}if("none"!==a)for(var s=0;s<a.length;s++)o.push(a[s].x_off.toUsedLength(t.w,t.h)+"px "+a[s].y_off.toUsedLength(t.w,t.h)+"px "+a[s].b_radius.toUsedLength(t.w,t.h)+"px rgba("+a[s].color[0].toString()+","+a[s].color[1].toString()+","+a[s].color[2].toString()+","+(a[s].color[3]/255).toString()+")");e.style.textShadow=o.join(",")}})),new f("http://www.w3.org/ns/ttml#styling textCombine",(function(t,e,n,r){e.style.textCombineUpright=r})),new f("http://www.w3.org/ns/ttml#styling textEmphasis",(function(t,e,n,r){})),new f("http://www.w3.org/ns/ttml#styling unicodeBidi",(function(t,e,n,r){var a;a="bidiOverride"===r?"bidi-override":r,e.style.unicodeBidi=a})),new f("http://www.w3.org/ns/ttml#styling visibility",(function(t,e,n,r){e.style.visibility=r})),new f("http://www.w3.org/ns/ttml#styling wrapOption",(function(t,e,n,r){"wrap"===r?"preserve"===n.space?e.style.whiteSpace="pre-wrap":e.style.whiteSpace="normal":"preserve"===n.space?e.style.whiteSpace="pre":e.style.whiteSpace="noWrap"})),new f("http://www.w3.org/ns/ttml#styling writingMode",(function(t,e,n,r){"lrtb"===r||"lr"===r||"rltb"===r||"rl"===r?e.style.writingMode="horizontal-tb":"tblr"===r?e.style.writingMode="vertical-lr":"tbrl"!==r&&"tb"!==r||(e.style.writingMode="vertical-rl")})),new f("http://www.w3.org/ns/ttml#styling zIndex",(function(t,e,n,r){e.style.zIndex=r})),new f("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",(function(t,e,n,r){t.displayForcedOnlyMode&&!1===r&&(e.style.visibility="hidden")}))],m={},g=0;g<d.length;g++)m[d[g].qname]=d[g];var p="webkitRubyPosition"in window.getComputedStyle(document.documentElement),h=p?"webkitRubyPosition":"rubyPosition",b="webkitTextEmphasisStyle"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisStyle":"textEmphasisStyle",y="webkitTextEmphasisPosition"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisPosition":"textEmphasisPosition";function v(t,e){if(t&&t.error&&t.error(e))throw e}}(e,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)},4080:function(t,e,n){!function(t,e,n,r){t.generateISD=function(t,e,r){var a=new s(t),o={},l={},u={},c=t.head.styling.initials[n.byName.showBackground.qname],f=t.head.styling.initials[n.byName.backgroundColor.qname];for(var d in t.head.layout.regions)if(t.head.layout.regions.hasOwnProperty(d)){var m=t.head.layout.regions[d],g=m.styleAttrs[n.byName.showBackground.qname]||c,p=m.styleAttrs[n.byName.backgroundColor.qname]||f;u[m.id]=("always"===g||void 0===g)&&void 0!==p&&!(e<m.begin||e>=m.end)}for(var h in t.body&&t.body.regionID&&(u[t.body.regionID]=!0),l=null!==t.body?function t(e,n){if(n.contents){var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a]);return r.contents=[],n.contents.filter((function(t){return!(e<t.begin||e>=t.end)})).forEach((function(n){var a=t(e,n);a.regionID&&(u[a.regionID]=!0),null!==a&&r.contents.push(a)})),r}return n}(e,t.body):null,void 0!==u[""]&&(u[""]=!0),u)if(u[h]){var b=i(t,e,t.head.layout.regions[h],l,null,"",t.head.layout.regions[h],r,o);null!==b&&a.contents.push(b.element)}return a};var a=[n.byName.color.qname,n.byName.textCombine.qname,n.byName.textDecoration.qname,n.byName.textEmphasis.qname,n.byName.textOutline.qname,n.byName.textShadow.qname];function i(t,e,s,f,d,m,g,p,h){if(e<g.begin||e>=g.end)return null;var b="regionID"in g&&""!==g.regionID?g.regionID:m;if(null!==d&&b!==s.id&&(!("contents"in g)||"contents"in g&&0===g.contents.length||""!==b))return null;var y=new u(g);if("sets"in g)for(var v=0;v<g.sets.length;v++)e<g.sets[v].begin||e>=g.sets[v].end||(y.styleAttrs[g.sets[v].qname]=g.sets[v].value);var E={};for(var _ in y.styleAttrs)if(y.styleAttrs.hasOwnProperty(_)&&(E[_]=!0,"region"===y.kind&&_===n.byName.writingMode.qname&&!(n.byName.direction.qname in y.styleAttrs))){var w=y.styleAttrs[_];"lrtb"===w||"lr"===w?y.styleAttrs[n.byName.direction.qname]="ltr":"rltb"!==w&&"rl"!==w||(y.styleAttrs[n.byName.direction.qname]="rtl")}if(null!==d)for(var T=0;T<n.all.length;T++){var S=n.all[T];if(S.qname===n.byName.textDecoration.qname){var k=d.styleAttrs[S.qname],A=y.styleAttrs[S.qname],I=[];void 0===A?I=k:-1===A.indexOf("none")?((-1===A.indexOf("noUnderline")&&-1!==k.indexOf("underline")||-1!==A.indexOf("underline"))&&I.push("underline"),(-1===A.indexOf("noLineThrough")&&-1!==k.indexOf("lineThrough")||-1!==A.indexOf("lineThrough"))&&I.push("lineThrough"),(-1===A.indexOf("noOverline")&&-1!==k.indexOf("overline")||-1!==A.indexOf("overline"))&&I.push("overline")):I.push("none"),y.styleAttrs[S.qname]=I}else if(S.qname!==n.byName.fontSize.qname||S.qname in y.styleAttrs||"span"!==y.kind||"textContainer"!==y.styleAttrs[n.byName.ruby.qname])if(S.qname!==n.byName.fontSize.qname||S.qname in y.styleAttrs||"span"!==y.kind||"text"!==y.styleAttrs[n.byName.ruby.qname])S.inherit&&S.qname in d.styleAttrs&&!(S.qname in y.styleAttrs)&&(y.styleAttrs[S.qname]=d.styleAttrs[S.qname]);else{var R=d.styleAttrs[n.byName.fontSize.qname];"textContainer"===d.styleAttrs[n.byName.ruby.qname]?y.styleAttrs[S.qname]=R:y.styleAttrs[S.qname]=new r.ComputedLength(.5*R.rw,.5*R.rh)}else{var N=d.styleAttrs[n.byName.fontSize.qname];y.styleAttrs[S.qname]=new r.ComputedLength(.5*N.rw,.5*N.rh)}}for(var C=0;C<n.all.length;C++){var x=n.all[C];if(!(x.qname in y.styleAttrs)&&!(x.qname===n.byName.position.qname&&n.byName.origin.qname in y.styleAttrs||x.qname===n.byName.origin.qname&&n.byName.position.qname in y.styleAttrs)){var D=t.head.styling.initials[x.qname]||x.initial;if(null!==D&&("region"===y.kind||!1===x.inherit&&null!==D)){var O=x.parse(D);null!==O?(y.styleAttrs[x.qname]=O,E[x.qname]=!0):c(p,"Invalid initial value for '"+x.qname+"' on element '"+y.kind)}}}for(var z=0;z<n.all.length;z++){var P=n.all[z];if(P.qname in E&&null!==P.compute){var M=P.compute(t,d,y,y.styleAttrs[P.qname],h);null!==M?y.styleAttrs[P.qname]=M:(y.styleAttrs[P.qname]=P.compute(t,d,y,P.parse(P.initial),h),c(p,"Style '"+P.qname+"' on element '"+y.kind+"' cannot be computed"))}}if("none"===y.styleAttrs[n.byName.display.qname])return null;var L=null;null===d?L=null===f?[]:[f]:"contents"in g&&(L=g.contents);for(var j=0;null!==L&&j<L.length;j++){var F=i(t,e,s,f,y,b,L[j],p,h);null!==F&&y.contents.push(F.element)}for(var U in y.styleAttrs)if(y.styleAttrs.hasOwnProperty(U)){var q=!1;if("span"===y.kind){var B=y.styleAttrs[n.byName.ruby.qname];(q=("container"===B||"textContainer"===B||"baseContainer"===B)&&-1!==a.indexOf(U))||(q="container"!==B&&U===n.byName.rubyAlign.qname),q||(q=!("textContainer"===B||"text"===B)&&U===n.byName.rubyPosition.qname)}if(!q){var Z=n.byQName[U];"applies"in Z&&(q=-1===Z.applies.indexOf(y.kind))}q&&delete y.styleAttrs[U]}var G=y.styleAttrs[n.byName.ruby.qname];if("p"===y.kind||"span"===y.kind&&("textContainer"===G||"text"===G)){var H=[];o(y,H),function(t){function e(t){return"br"===t.kind||/[\r\n\t ]$/.test(t.text)}function n(t){return"br"===t.kind||"preserve"===t.space&&/^[\r\n]/.test(t.text)}for(var r,a=0;a<t.length;)if("br"!==(r=t[a]).kind&&"preserve"!==r.space){var i=r.text.replace(/[\t\r\n ]+/g," ");/^[ ]/.test(i)&&(0===a||e(t[a-1]))&&(i=i.substring(1)),r.text=i,0===i.length?t.splice(a,1):a++}else a++;for(a=0;a<t.length;a++)"br"!==(r=t[a]).kind&&"preserve"!==r.space?/[ ]$/.test(r.text)&&(a===t.length-1||n(t[a+1]))&&(r.text=r.text.slice(0,-1)):a++}(H),l(y)}return"div"===y.kind&&n.byName.backgroundImage.qname in y.styleAttrs||"br"===y.kind||"image"===y.kind||"contents"in y&&y.contents.length>0||"span"===y.kind&&null!==y.text||"region"===y.kind&&"always"===y.styleAttrs[n.byName.showBackground.qname]?{region_id:b,element:y}:null}function o(t,e){if("contents"in t)for(var r=0;r<t.contents.length;r++){var a=t.contents[r],i=a.styleAttrs[n.byName.ruby.qname];("span"!==a.kind||"textContainer"!==i&&"text"!==i)&&("contents"in a?o(a,e):("span"===a.kind&&0!==a.text.length||"br"===a.kind)&&e.push(a))}}function l(t){if("br"===t.kind)return!1;if("text"in t)return 0===t.text.length;if("contents"in t){for(var e=t.contents.length;e--;)l(t.contents[e])&&t.contents.splice(e,1);return 0===t.contents.length}}function s(t){this.contents=[],this.aspectRatio=t.aspectRatio,this.lang=t.lang}function u(t){for(var e in this.kind=t.kind||"region",this.lang=t.lang,t.id&&(this.id=t.id),this.styleAttrs={},t.styleAttrs)t.styleAttrs.hasOwnProperty(e)&&(this.styleAttrs[e]=t.styleAttrs[e]);"src"in t&&(this.src=t.src),"type"in t&&(this.type=t.type),"text"in t?this.text=t.text:("region"===this.kind||"contents"in t)&&(this.contents=[]),"space"in t&&(this.space=t.space)}function c(t,e){if(t&&t.error&&t.error(e))throw e}}(e,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscStyles?n(6811):imscStyles,"undefined"==typeof imscUtils?n(5926):imscUtils)},4403:function(t,e,n){e.generateISD=n(4080).generateISD,e.fromXML=n(3362).fromXML,e.renderHTML=n(506).render},210:function(t,e){!function(t){t.ns_tt="http://www.w3.org/ns/ttml",t.ns_tts="http://www.w3.org/ns/ttml#styling",t.ns_ttp="http://www.w3.org/ns/ttml#parameter",t.ns_xml="http://www.w3.org/XML/1998/namespace",t.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",t.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",t.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",t.ns_ebutts="urn:ebu:tt:style"}(e)},6811:function(t,e,n){!function(t,e,n){function r(t,e,n,r,a,i,o,l){this.name=e,this.ns=t,this.qname=t+" "+e,this.inherit=a,this.animatable=i,this.initial=n,this.applies=r,this.parse=o,this.compute=l}for(var a in t.all=[new r(e.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],!1,!0,n.parseColor,null),new r(e.ns_tts,"color","white",["span"],!0,!0,n.parseColor,null),new r(e.ns_tts,"direction","ltr",["p","span"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"display","auto",["body","div","p","region","span"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"displayAlign","before",["region"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"extent","auto",["tt","region"],!1,!0,(function(t){if("auto"===t)return t;var e=t.split(" ");if(2!==e.length)return null;var r=n.parseLength(e[0]),a=n.parseLength(e[1]);return a&&r?{h:a,w:r}:null}),(function(t,e,r,a,i){var o,l;if("auto"===a)o=new n.ComputedLength(0,1);else if(null===(o=n.toComputedLength(a.h.value,a.h.unit,null,t.dimensions.h,null,t.pxLength.h)))return null;if("auto"===a)l=new n.ComputedLength(1,0);else if(null===(l=n.toComputedLength(a.w.value,a.w.unit,null,t.dimensions.w,null,t.pxLength.w)))return null;return{h:o,w:l}})),new r(e.ns_tts,"fontFamily","default",["span","p"],!0,!0,(function(t){for(var e=t.split(","),n=[],r=0;r<e.length;r++)e[r]=e[r].trim(),"'"!==e[r].charAt(0)&&'"'!==e[r].charAt(0)&&"default"===e[r]?n.push("monospaceSerif"):n.push(e[r]);return n}),null),new r(e.ns_tts,"shear","0%",["p"],!0,!0,n.parseLength,(function(t,e,n,r){return"%"!==r.unit?null:Math.abs(r.value)>100?100*Math.sign(r.value):r.value})),new r(e.ns_tts,"fontSize","1c",["span","p"],!0,!0,n.parseLength,(function(e,r,a,i,o){return n.toComputedLength(i.value,i.unit,null!==r?r.styleAttrs[t.byName.fontSize.qname]:e.cellLength.h,null!==r?r.styleAttrs[t.byName.fontSize.qname]:e.cellLength.h,e.cellLength.h,e.pxLength.h)})),new r(e.ns_tts,"fontStyle","normal",["span","p"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"fontWeight","normal",["span","p"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"lineHeight","normal",["p"],!0,!0,(function(t){return"normal"===t?t:n.parseLength(t)}),(function(e,r,a,i,o){var l;if("normal"===i)l=i;else if(null===(l=n.toComputedLength(i.value,i.unit,a.styleAttrs[t.byName.fontSize.qname],a.styleAttrs[t.byName.fontSize.qname],e.cellLength.h,e.pxLength.h)))return null;return l})),new r(e.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new r(e.ns_tts,"origin","auto",["region"],!1,!0,(function(t){if("auto"===t)return t;var e=t.split(" ");if(2!==e.length)return null;var r=n.parseLength(e[0]),a=n.parseLength(e[1]);return a&&r?{h:a,w:r}:null}),(function(t,e,r,a,i){var o,l;if("auto"===a)o=new n.ComputedLength(0,0);else if(null===(o=n.toComputedLength(a.h.value,a.h.unit,null,t.dimensions.h,null,t.pxLength.h)))return null;if("auto"===a)l=new n.ComputedLength(0,0);else if(null===(l=n.toComputedLength(a.w.value,a.w.unit,null,t.dimensions.w,null,t.pxLength.w)))return null;return{h:o,w:l}})),new r(e.ns_tts,"overflow","hidden",["region"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"padding","0px",["region"],!1,!0,(function(t){var e=t.split(" ");if(e.length>4)return null;for(var r=[],a=0;a<e.length;a++){var i=n.parseLength(e[a]);if(!i)return null;r.push(i)}return r}),(function(e,r,a,i,o){var l;if(1===i.length)l=[i[0],i[0],i[0],i[0]];else if(2===i.length)l=[i[0],i[1],i[0],i[1]];else if(3===i.length)l=[i[0],i[1],i[2],i[1]];else{if(4!==i.length)return null;l=[i[0],i[1],i[2],i[3]]}var s=a.styleAttrs[t.byName.writingMode.qname];if("lrtb"===s||"lr"===s)l=[l[0],l[3],l[2],l[1]];else if("rltb"===s||"rl"===s)l=[l[0],l[1],l[2],l[3]];else if("tblr"===s)l=[l[3],l[0],l[1],l[2]];else{if("tbrl"!==s&&"tb"!==s)return null;l=[l[3],l[2],l[1],l[0]]}for(var u=[],c=0;c<l.length;c++)if(0===l[c].value)u[c]=new n.ComputedLength(0,0);else if(u[c]=n.toComputedLength(l[c].value,l[c].unit,a.styleAttrs[t.byName.fontSize.qname],0===c||2===c?a.styleAttrs[t.byName.extent.qname].h:a.styleAttrs[t.byName.extent.qname].w,0===c||2===c?e.cellLength.h:e.cellLength.w,0===c||2===c?e.pxLength.h:e.pxLength.w),null===u[c])return null;return u})),new r(e.ns_tts,"position","top left",["region"],!1,!0,(function(t){return n.parsePosition(t)}),(function(e,r,a,i){var o,l;return null===(o=n.toComputedLength(i.v.offset.value,i.v.offset.unit,null,new n.ComputedLength(-a.styleAttrs[t.byName.extent.qname].h.rw,e.dimensions.h.rh-a.styleAttrs[t.byName.extent.qname].h.rh),null,e.pxLength.h))?null:("bottom"===i.v.edge&&(o=new n.ComputedLength(-o.rw-a.styleAttrs[t.byName.extent.qname].h.rw,e.dimensions.h.rh-o.rh-a.styleAttrs[t.byName.extent.qname].h.rh)),l=n.toComputedLength(i.h.offset.value,i.h.offset.unit,null,new n.ComputedLength(e.dimensions.w.rw-a.styleAttrs[t.byName.extent.qname].w.rw,-a.styleAttrs[t.byName.extent.qname].w.rh),null,e.pxLength.w),null===o?null:("right"===i.h.edge&&(l=new n.ComputedLength(e.dimensions.w.rw-l.rw-a.styleAttrs[t.byName.extent.qname].w.rw,-l.rh-a.styleAttrs[t.byName.extent.qname].w.rh)),{h:o,w:l}))})),new r(e.ns_tts,"ruby","none",["span"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"rubyAlign","center",["span"],!0,!0,(function(t){return"center"!==t&&"spaceAround"!==t?null:t}),null),new r(e.ns_tts,"rubyPosition","outside",["span"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"rubyReserve","none",["p"],!0,!0,(function(t){var e=t.split(" "),r=[null,null];if(0===e.length||e.length>2)return null;if("none"!==e[0]&&"both"!==e[0]&&"after"!==e[0]&&"before"!==e[0]&&"outside"!==e[0])return null;if(r[0]=e[0],2===e.length&&"none"!==e[0]){var a=n.parseLength(e[1]);if(!a)return null;r[1]=a}return r}),(function(e,r,a,i,o){if("none"===i[0])return i;var l=null;return null===(l=null===i[1]?new n.ComputedLength(.5*a.styleAttrs[t.byName.fontSize.qname].rw,.5*a.styleAttrs[t.byName.fontSize.qname].rh):n.toComputedLength(i[1].value,i[1].unit,a.styleAttrs[t.byName.fontSize.qname],a.styleAttrs[t.byName.fontSize.qname],e.cellLength.h,e.pxLength.h))?null:[i[0],l]})),new r(e.ns_tts,"showBackground","always",["region"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"textAlign","start",["p"],!0,!0,(function(t){return t}),(function(t,e,n,r,a){return"left"===r?"start":"right"===r?"end":r})),new r(e.ns_tts,"textCombine","none",["span"],!0,!0,(function(t){return"none"===t||"all"===t?t:null}),null),new r(e.ns_tts,"textDecoration","none",["span"],!0,!0,(function(t){return t.split(" ")}),null),new r(e.ns_tts,"textEmphasis","none",["span"],!0,!0,(function(t){for(var e=t.split(" "),r={style:null,symbol:null,color:null,position:null},a=0;a<e.length;a++)if("none"===e[a]||"auto"===e[a])r.style=e[a];else if("filled"===e[a]||"open"===e[a])r.style=e[a];else if("circle"===e[a]||"dot"===e[a]||"sesame"===e[a])r.symbol=e[a];else if("current"===e[a])r.color=e[a];else if("outside"===e[a]||"before"===e[a]||"after"===e[a])r.position=e[a];else if(r.color=n.parseColor(e[a]),null===r.color)return null;return null==r.style&&null==r.symbol?r.style="auto":(r.symbol=r.symbol||"circle",r.style=r.style||"filled"),r.position=r.position||"outside",r.color=r.color||"current",r}),null),new r(e.ns_tts,"textOutline","none",["span"],!0,!0,(function(t){if("none"===t)return t;var e={},r=t.split(" ");if(0===r.length||r.length>2)return null;var a=n.parseColor(r[0]);if(e.color=a,null!==a&&r.shift(),1!==r.length)return null;var i=n.parseLength(r[0]);return i?(e.thickness=i,e):null}),(function(e,r,a,i,o){if("none"===i)return i;var l={};return null===i.color?l.color=a.styleAttrs[t.byName.color.qname]:l.color=i.color,l.thickness=n.toComputedLength(i.thickness.value,i.thickness.unit,a.styleAttrs[t.byName.fontSize.qname],a.styleAttrs[t.byName.fontSize.qname],e.cellLength.h,e.pxLength.h),null===l.thickness?null:l})),new r(e.ns_tts,"textShadow","none",["span"],!0,!0,n.parseTextShadow,(function(e,r,a,i){if("none"===i)return i;for(var o=[],l=0;l<i.length;l++){var s={};if(s.x_off=n.toComputedLength(i[l][0].value,i[l][0].unit,null,a.styleAttrs[t.byName.fontSize.qname],null,e.pxLength.w),null===s.x_off)return null;if(s.y_off=n.toComputedLength(i[l][1].value,i[l][1].unit,null,a.styleAttrs[t.byName.fontSize.qname],null,e.pxLength.h),null===s.y_off)return null;if(null===i[l][2])s.b_radius=0;else if(s.b_radius=n.toComputedLength(i[l][2].value,i[l][2].unit,null,a.styleAttrs[t.byName.fontSize.qname],null,e.pxLength.h),null===s.b_radius)return null;null===i[l][3]?s.color=a.styleAttrs[t.byName.color.qname]:s.color=i[l][3],o.push(s)}return o})),new r(e.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"wrapOption","wrap",["span"],!0,!0,(function(t){return t}),null),new r(e.ns_tts,"writingMode","lrtb",["region"],!1,!0,(function(t){return t}),null),new r(e.ns_tts,"zIndex","auto",["region"],!1,!0,(function(t){var e;return"auto"===t?e=t:(e=parseInt(t),isNaN(e)&&(e=null)),e}),null),new r(e.ns_ebutts,"linePadding","0c",["p"],!0,!1,n.parseLength,(function(t,e,r,a,i){return n.toComputedLength(a.value,a.unit,null,null,t.cellLength.w,null)})),new r(e.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,(function(t){return t}),null),new r(e.ns_smpte,"backgroundImage",null,["div"],!1,!1,(function(t){return t}),null),new r(e.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,(function(t){return"true"===t}),null),new r(e.ns_itts,"fillLineGap","false",["p"],!0,!0,(function(t){return"true"===t}),null)],t.byQName={},t.all)t.byQName[t.all[a].qname]=t.all[a];for(var i in t.byName={},t.all)t.byName[t.all[i].name]=t.all[i]}(e,"undefined"==typeof imscNames?n(210):imscNames,"undefined"==typeof imscUtils?n(5926):imscUtils)},5926:function(t,e){!function(t){var e=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,n=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,r=/rgba\(\s*(\d+),\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,a={transparent:[0,0,0,0],black:[0,0,0,255],silver:[192,192,192,255],gray:[128,128,128,255],white:[255,255,255,255],maroon:[128,0,0,255],red:[255,0,0,255],purple:[128,0,128,255],fuchsia:[255,0,255,255],magenta:[255,0,255,255],green:[0,128,0,255],lime:[0,255,0,255],olive:[128,128,0,255],yellow:[255,255,0,255],navy:[0,0,128,255],blue:[0,0,255,255],teal:[0,128,128,255],aqua:[0,255,255,255],cyan:[0,255,255,255]};t.parseColor=function(t){var i,o=null,l=a[t.toLowerCase()];return void 0!==l?o=l:null!==(i=e.exec(t))?o=[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),void 0!==i[4]?parseInt(i[4],16):255]:null!==(i=n.exec(t))?o=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3]),255]:null!==(i=r.exec(t))&&(o=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3]),parseInt(i[4])]),o};var i=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%|rh|rw)$/;t.parseLength=function(t){var e,n=null;return null!==(e=i.exec(t))&&(n={value:parseFloat(e[1]),unit:e[2]}),n},t.parseTextShadow=function(e){for(var n=e.match(/([^\(,\)]|\([^\)]+\))+/g),r=[],a=0;a<n.length;a++){var i=n[a].split(" ");if(1===i.length&&"none"===i[0])return"none";if(i.length>1&&i.length<5){var o=[null,null,null,null],l=t.parseLength(i.shift());if(null===l)return null;if(o[0]=l,null===(l=t.parseLength(i.shift())))return null;if(o[1]=l,0===i.length){r.push(o);continue}if(null!==(l=t.parseLength(i[0]))&&(o[2]=l,i.shift()),0===i.length){r.push(o);continue}var s=t.parseColor(i[0]);if(null===s)return null;o[3]=s,r.push(o)}}return r},t.parsePosition=function(e){var n=e.split(" "),r=function(t){return"center"===t||"left"===t||"top"===t||"bottom"===t||"right"===t};if(n.length>4)return null;for(var a=0;a<n.length;a++)if(!r(n[a])){var i=t.parseLength(n[a]);if(null===i)return null;n[a]=i}for(var o={h:{edge:"left",offset:{value:50,unit:"%"}},v:{edge:"top",offset:{value:50,unit:"%"}}},l=0;l<n.length;){var s=n[l++];if(r(s)){var u={value:0,unit:"%"};2!==n.length&&l<n.length&&!r(n[l])&&(u=n[l++]),"right"===s?(o.h.edge=s,o.h.offset=u):"bottom"===s?(o.v.edge=s,o.v.offset=u):"left"===s?o.h.offset=u:"top"===s&&(o.v.offset=u)}else{if(1!==n.length&&2!==n.length)return null;1===l?o.h.offset=s:o.v.offset=s}}return o},t.ComputedLength=function(t,e){this.rw=t,this.rh=e},t.ComputedLength.prototype.toUsedLength=function(t,e){return t*this.rw+e*this.rh},t.ComputedLength.prototype.isZero=function(){return 0===this.rw&&0===this.rh},t.toComputedLength=function(e,n,r,a,i,o){return"%"===n&&a?new t.ComputedLength(a.rw*e/100,a.rh*e/100):"em"===n&&r?new t.ComputedLength(r.rw*e,r.rh*e):"c"===n&&i?new t.ComputedLength(e*i.rw,e*i.rh):"px"===n&&o?new t.ComputedLength(e*o.rw,e*o.rh):"rh"===n?new t.ComputedLength(0,e/100):"rw"===n?new t.ComputedLength(e/100,0):null}}(e)},4368:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},3875:function(t){function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var n,r="",a=0,i=-1,o=0,l=0;l<=t.length;++l){if(l<t.length)n=t.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===o);else if(i!==l-1&&2===o){if(r.length<2||2!==a||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){-1===s?(r="",a=0):a=(r=r.slice(0,s)).length-1-r.lastIndexOf("/"),i=l,o=0;continue}}else if(2===r.length||1===r.length){r="",a=0,i=l,o=0;continue}e&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+="/"+t.slice(i+1,l):r=t.slice(i+1,l),a=l-i-1;i=l,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var t,r="",a=!1,i=arguments.length-1;i>=-1&&!a;i--){var o;i>=0?o=arguments[i]:(void 0===t&&(t=process.cwd()),o=t),e(o),0!==o.length&&(r=o+"/"+r,a=47===o.charCodeAt(0))}return r=n(r,!a),a?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),a=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&a&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var a=arguments[n];e(a),a.length>0&&(void 0===t?t=a:t+="/"+a)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var i=t.length,o=i-a,l=1;l<n.length&&47===n.charCodeAt(l);++l);for(var s=n.length-l,u=o<s?o:s,c=-1,f=0;f<=u;++f){if(f===u){if(s>u){if(47===n.charCodeAt(l+f))return n.slice(l+f+1);if(0===f)return n.slice(l+f)}else o>u&&(47===t.charCodeAt(a+f)?c=f:0===f&&(c=0));break}var d=t.charCodeAt(a+f);if(d!==n.charCodeAt(l+f))break;47===d&&(c=f)}var m="";for(f=a+c+1;f<=i;++f)f!==i&&47!==t.charCodeAt(f)||(0===m.length?m+="..":m+="/..");return m.length>0?m+n.slice(l+c):(l+=c,47===n.charCodeAt(l)&&++l,n.slice(l))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,a=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!i){a=o;break}}else i=!1;return-1===a?r?"/":".":r&&1===a?"//":t.slice(0,a)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,a=0,i=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var l=n.length-1,s=-1;for(r=t.length-1;r>=0;--r){var u=t.charCodeAt(r);if(47===u){if(!o){a=r+1;break}}else-1===s&&(o=!1,s=r+1),l>=0&&(u===n.charCodeAt(l)?-1==--l&&(i=r):(l=-1,i=s))}return a===i?i=s:-1===i&&(i=t.length),t.slice(a,i)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){a=r+1;break}}else-1===i&&(o=!1,i=r+1);return-1===i?"":t.slice(a,i)},extname:function(t){e(t);for(var n=-1,r=0,a=-1,i=!0,o=0,l=t.length-1;l>=0;--l){var s=t.charCodeAt(l);if(47!==s)-1===a&&(i=!1,a=l+1),46===s?-1===n?n=l:1!==o&&(o=1):-1!==n&&(o=-1);else if(!i){r=l+1;break}}return-1===n||-1===a||0===o||1===o&&n===a-1&&n===r+1?"":t.slice(n,a)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}("/",t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,a=t.charCodeAt(0),i=47===a;i?(n.root="/",r=1):r=0;for(var o=-1,l=0,s=-1,u=!0,c=t.length-1,f=0;c>=r;--c)if(47!==(a=t.charCodeAt(c)))-1===s&&(u=!1,s=c+1),46===a?-1===o?o=c:1!==f&&(f=1):-1!==o&&(f=-1);else if(!u){l=c+1;break}return-1===o||-1===s||0===f||1===f&&o===s-1&&o===l+1?-1!==s&&(n.base=n.name=0===l&&i?t.slice(1,s):t.slice(l,s)):(0===l&&i?(n.name=t.slice(1,o),n.base=t.slice(1,s)):(n.name=t.slice(l,o),n.base=t.slice(l,s)),n.ext=t.slice(o,s)),l>0?n.dir=t.slice(0,l-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r},5378:function(t,e,n){!function(t){t.parser=function(t,e){return new a(t,e)},t.SAXParser=a,t.SAXStream=o,t.createStream=function(t,e){return new o(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(e,n){if(!(this instanceof a))return new a(e,n);var i=this;!function(t){for(var e=0,n=r.length;e<n;e++)t[r[e]]=""}(i),i.q=i.c="",i.bufferCheckPosition=t.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!e,i.noscript=!(!e&&!i.opt.noscript),i.state=I.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(h)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),N(i,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),a.prototype={end:function(){z(this)},write:function(e){var n=this;if(this.error)throw this.error;if(n.closed)return O(n,"Cannot write after close. Assign an onready handler.");if(null===e)return z(n);"object"==typeof e&&(e=e.toString());for(var a=0,i="";i=Z(e,a++),n.c=i,i;)switch(n.trackPosition&&(n.position++,"\n"===i?(n.line++,n.column=0):n.column++),n.state){case I.BEGIN:if(n.state=I.BEGIN_WHITESPACE,"\ufeff"===i)continue;B(n,i);continue;case I.BEGIN_WHITESPACE:B(n,i);continue;case I.TEXT:if(n.sawRoot&&!n.closedRoot){for(var o=a-1;i&&"<"!==i&&"&"!==i;)(i=Z(e,a++))&&n.trackPosition&&(n.position++,"\n"===i?(n.line++,n.column=0):n.column++);n.textNode+=e.substring(o,a-1)}"<"!==i||n.sawRoot&&n.closedRoot&&!n.strict?(!T(l,i)||n.sawRoot&&!n.closedRoot||P(n,"Text data outside of root node."),"&"===i?n.state=I.TEXT_ENTITY:n.textNode+=i):(n.state=I.OPEN_WAKA,n.startTagPosition=n.position);continue;case I.SCRIPT:"<"===i?n.state=I.SCRIPT_ENDING:n.script+=i;continue;case I.SCRIPT_ENDING:"/"===i?n.state=I.CLOSE_TAG:(n.script+="<"+i,n.state=I.SCRIPT);continue;case I.OPEN_WAKA:if("!"===i)n.state=I.SGML_DECL,n.sgmlDecl="";else if(w(l,i));else if(w(b,i))n.state=I.OPEN_TAG,n.tagName=i;else if("/"===i)n.state=I.CLOSE_TAG,n.tagName="";else if("?"===i)n.state=I.PROC_INST,n.procInstName=n.procInstBody="";else{if(P(n,"Unencoded <"),n.startTagPosition+1<n.position){var s=n.position-n.startTagPosition;i=new Array(s).join(" ")+i}n.textNode+="<"+i,n.state=I.TEXT}continue;case I.SGML_DECL:(n.sgmlDecl+i).toUpperCase()===d?(C(n,"onopencdata"),n.state=I.CDATA,n.sgmlDecl="",n.cdata=""):n.sgmlDecl+i==="--"?(n.state=I.COMMENT,n.comment="",n.sgmlDecl=""):(n.sgmlDecl+i).toUpperCase()===m?(n.state=I.DOCTYPE,(n.doctype||n.sawRoot)&&P(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):">"===i?(C(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=I.TEXT):w(c,i)?(n.state=I.SGML_DECL_QUOTED,n.sgmlDecl+=i):n.sgmlDecl+=i;continue;case I.SGML_DECL_QUOTED:i===n.q&&(n.state=I.SGML_DECL,n.q=""),n.sgmlDecl+=i;continue;case I.DOCTYPE:">"===i?(n.state=I.TEXT,C(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=i,"["===i?n.state=I.DOCTYPE_DTD:w(c,i)&&(n.state=I.DOCTYPE_QUOTED,n.q=i));continue;case I.DOCTYPE_QUOTED:n.doctype+=i,i===n.q&&(n.q="",n.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:n.doctype+=i,"]"===i?n.state=I.DOCTYPE:w(c,i)&&(n.state=I.DOCTYPE_DTD_QUOTED,n.q=i);continue;case I.DOCTYPE_DTD_QUOTED:n.doctype+=i,i===n.q&&(n.state=I.DOCTYPE_DTD,n.q="");continue;case I.COMMENT:"-"===i?n.state=I.COMMENT_ENDING:n.comment+=i;continue;case I.COMMENT_ENDING:"-"===i?(n.state=I.COMMENT_ENDED,n.comment=D(n.opt,n.comment),n.comment&&C(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+i,n.state=I.COMMENT);continue;case I.COMMENT_ENDED:">"!==i?(P(n,"Malformed comment"),n.comment+="--"+i,n.state=I.COMMENT):n.state=I.TEXT;continue;case I.CDATA:"]"===i?n.state=I.CDATA_ENDING:n.cdata+=i;continue;case I.CDATA_ENDING:"]"===i?n.state=I.CDATA_ENDING_2:(n.cdata+="]"+i,n.state=I.CDATA);continue;case I.CDATA_ENDING_2:">"===i?(n.cdata&&C(n,"oncdata",n.cdata),C(n,"onclosecdata"),n.cdata="",n.state=I.TEXT):"]"===i?n.cdata+="]":(n.cdata+="]]"+i,n.state=I.CDATA);continue;case I.PROC_INST:"?"===i?n.state=I.PROC_INST_ENDING:w(l,i)?n.state=I.PROC_INST_BODY:n.procInstName+=i;continue;case I.PROC_INST_BODY:if(!n.procInstBody&&w(l,i))continue;"?"===i?n.state=I.PROC_INST_ENDING:n.procInstBody+=i;continue;case I.PROC_INST_ENDING:">"===i?(C(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=I.TEXT):(n.procInstBody+="?"+i,n.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:w(y,i)?n.tagName+=i:(M(n),">"===i?F(n):"/"===i?n.state=I.OPEN_TAG_SLASH:(T(l,i)&&P(n,"Invalid character in tag name"),n.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:">"===i?(F(n,!0),U(n)):(P(n,"Forward-slash in opening tag not followed by >"),n.state=I.ATTRIB);continue;case I.ATTRIB:if(w(l,i))continue;">"===i?F(n):"/"===i?n.state=I.OPEN_TAG_SLASH:w(b,i)?(n.attribName=i,n.attribValue="",n.state=I.ATTRIB_NAME):P(n,"Invalid attribute name");continue;case I.ATTRIB_NAME:"="===i?n.state=I.ATTRIB_VALUE:">"===i?(P(n,"Attribute without value"),n.attribValue=n.attribName,j(n),F(n)):w(l,i)?n.state=I.ATTRIB_NAME_SAW_WHITE:w(y,i)?n.attribName+=i:P(n,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if("="===i)n.state=I.ATTRIB_VALUE;else{if(w(l,i))continue;P(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",C(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===i?F(n):w(b,i)?(n.attribName=i,n.state=I.ATTRIB_NAME):(P(n,"Invalid attribute name"),n.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(w(l,i))continue;w(c,i)?(n.q=i,n.state=I.ATTRIB_VALUE_QUOTED):(P(n,"Unquoted attribute value"),n.state=I.ATTRIB_VALUE_UNQUOTED,n.attribValue=i);continue;case I.ATTRIB_VALUE_QUOTED:if(i!==n.q){"&"===i?n.state=I.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=i;continue}j(n),n.q="",n.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:w(l,i)?n.state=I.ATTRIB:">"===i?F(n):"/"===i?n.state=I.OPEN_TAG_SLASH:w(b,i)?(P(n,"No whitespace between attributes"),n.attribName=i,n.attribValue="",n.state=I.ATTRIB_NAME):P(n,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(T(f,i)){"&"===i?n.state=I.ATTRIB_VALUE_ENTITY_U:n.attribValue+=i;continue}j(n),">"===i?F(n):n.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(n.tagName)">"===i?U(n):w(y,i)?n.tagName+=i:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=I.SCRIPT):(T(l,i)&&P(n,"Invalid tagname in closing tag"),n.state=I.CLOSE_TAG_SAW_WHITE);else{if(w(l,i))continue;T(b,i)?n.script?(n.script+="</"+i,n.state=I.SCRIPT):P(n,"Invalid tagname in closing tag."):n.tagName=i}continue;case I.CLOSE_TAG_SAW_WHITE:if(w(l,i))continue;">"===i?U(n):P(n,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var u,g;switch(n.state){case I.TEXT_ENTITY:u=I.TEXT,g="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:u=I.ATTRIB_VALUE_QUOTED,g="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:u=I.ATTRIB_VALUE_UNQUOTED,g="attribValue"}";"===i?(n[g]+=q(n),n.entity="",n.state=u):w(n.entity.length?E:v,i)?n.entity+=i:(P(n,"Invalid character in entity name"),n[g]+="&"+n.entity+i,n.entity="",n.state=u);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),a=0,i=0,o=r.length;i<o;i++){var l=e[r[i]].length;if(l>n)switch(r[i]){case"textNode":x(e);break;case"cdata":C(e,"oncdata",e.cdata),e.cdata="";break;case"script":C(e,"onscript",e.script),e.script="";break;default:O(e,"Max buffer length exceeded: "+r[i])}a=Math.max(a,l)}var s=t.MAX_BUFFER_LENGTH-a;e.bufferCheckPosition=s+e.position}(n),n}
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;x(t=this),""!==t.cdata&&(C(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(C(t,"onscript",t.script),t.script="")}};try{e=n(182).Stream}catch(t){e=function(){}}var i=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function o(t,n){if(!(this instanceof o))return new o(t,n);e.apply(this),this._parser=new a(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,i.forEach((function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(e.prototype,{constructor:{value:o}}),o.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(7503).s;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===i.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var l="\r\n\t ",s="0124356789",u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",c="'\"",f=l+">",d="[CDATA[",m="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",h={xml:g,xmlns:p};l=_(l),s=_(s),u=_(u);var b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function _(t){return t.split("").reduce((function(t,e){return t[e]=!0,t}),{})}function w(t,e){return function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(t)?!!e.match(t):t[e]}function T(t,e){return!w(t,e)}c=_(c),f=_(f);var S,k,A,I=0;for(var R in t.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r})),t.STATE)t.STATE[t.STATE[R]]=R;function N(t,e,n){t[e]&&t[e](n)}function C(t,e,n){t.textNode&&x(t),N(t,e,n)}function x(t){t.textNode=D(t.opt,t.textNode),t.textNode&&N(t,"ontext",t.textNode),t.textNode=""}function D(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function O(t,e){return x(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,N(t,"onerror",e),t}function z(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==I.BEGIN&&t.state!==I.BEGIN_WHITESPACE&&t.state!==I.TEXT&&O(t,"Unexpected end"),x(t),t.c="",t.closed=!0,N(t,"onend"),a.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof a))throw new Error("bad call to strictFail");t.strict&&O(t,e)}function M(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,C(t,"onopentagstart",n)}function L(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],a=n[1];return e&&"xmlns"===t&&(r="xmlns",a=""),{prefix:r,local:a}}function j(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=L(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==g)P(t,"xml: prefix must be bound to "+g+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==p)P(t,"xmlns: prefix must be bound to "+p+"\nActual: "+t.attribValue);else{var a=t.tag,i=t.tags[t.tags.length-1]||t;a.ns===i.ns&&(a.ns=Object.create(i.ns)),a.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,C(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function F(t,e){if(t.opt.xmlns){var n=t.tag,r=L(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var a=t.tags[t.tags.length-1]||t;n.ns&&a.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){C(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var i=0,o=t.attribList.length;i<o;i++){var l=t.attribList[i],s=l[0],u=l[1],c=L(s,!0),f=c.prefix,d=c.local,m=""===f?"":n.ns[f]||"",g={name:s,value:u,prefix:f,local:d,uri:m};f&&"xmlns"!==f&&!m&&(P(t,"Unbound namespace prefix: "+JSON.stringify(f)),g.uri=f),t.tag.attributes[s]=g,C(t,"onattribute",g)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),C(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=I.TEXT:t.state=I.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function U(t){if(!t.tagName)return P(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=I.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=I.SCRIPT);C(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--&&t.tags[e].name!==r;)P(t,"Unexpected close tag");if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=I.TEXT);t.tagName=n;for(var a=t.tags.length;a-- >e;){var i=t.tag=t.tags.pop();t.tagName=t.tag.name,C(t,"onclosetag",t.tagName);var o={};for(var l in i.ns)o[l]=i.ns[l];var s=t.tags[t.tags.length-1]||t;t.opt.xmlns&&i.ns!==s.ns&&Object.keys(i.ns).forEach((function(e){var n=i.ns[e];C(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=I.TEXT}function q(t){var e,n=t.entity,r=n.toLowerCase(),a="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),a=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),a=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),a.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function B(t,e){"<"===e?(t.state=I.OPEN_WAKA,t.startTagPosition=t.position):T(l,e)&&(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=I.TEXT)}function Z(t,e){var n="";return e<t.length&&(n=t.charAt(e)),n}I=t.STATE,String.fromCodePoint||(S=String.fromCharCode,k=Math.floor,A=function(){var t,e,n=[],r=-1,a=arguments.length;if(!a)return"";for(var i="";++r<a;){var o=Number(arguments[r]);if(!isFinite(o)||o<0||o>1114111||k(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(t=55296+((o-=65536)>>10),e=o%1024+56320,n.push(t,e)),(r+1===a||n.length>16384)&&(i+=S.apply(null,n),n.length=0)}return i},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A)}(e)},182:function(t,e,n){t.exports=a;var r=n(1159).EventEmitter;function a(){r.call(this)}n(4368)(a,r),a.Readable=n(2846),a.Writable=n(8318),a.Duplex=n(6138),a.Transform=n(9798),a.PassThrough=n(5472),a.finished=n(8800),a.pipeline=n(7295),a.Stream=a,a.prototype.pipe=function(t,e){var n=this;function a(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",a),t.on("drain",i),t._isStdio||e&&!1===e.end||(n.on("end",l),n.on("close",s));var o=!1;function l(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",a),t.removeListener("drain",i),n.removeListener("end",l),n.removeListener("close",s),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},3690:function(t){var e={};function n(t,n,r){r||(r=Error);var a=function(t){var e,r;function a(e,r,a){return t.call(this,function(t,e,r){return"string"==typeof n?n:n(t,e,r)}(e,r,a))||this}return r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,a}(r);a.prototype.name=r.name,a.prototype.code=t,e[t]=a}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var a,i,o,l;if("string"==typeof e&&(i="not ",e.substr(!o||o<0?0:+o,i.length)===i)?(a="must not be",e=e.replace(/^not /,"")):a="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))l="The ".concat(t," ").concat(a," ").concat(r(e,"type"));else{var s=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";l='The "'.concat(t,'" ').concat(s," ").concat(a," ").concat(r(e,"type"))}return l+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},6138:function(t,e,n){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var a=n(2846),i=n(8318);n(4368)(u,a);for(var o=r(i.prototype),l=0;l<o.length;l++){var s=o[l];u.prototype[s]||(u.prototype[s]=i.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),i.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||process.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},5472:function(t,e,n){t.exports=a;var r=n(9798);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}n(4368)(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},2846:function(t,e,n){var r;t.exports=S,S.ReadableState=T,n(1159).EventEmitter;var a,i=function(t,e){return t.listeners(e).length},o=n(9299),l=n(1549).Buffer,s=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=n(964);a=u&&u.debuglog?u.debuglog("stream"):function(){};var c,f,d,m=n(8393),g=n(6163),p=n(7269).getHighWaterMark,h=n(3690).q,b=h.ERR_INVALID_ARG_TYPE,y=h.ERR_STREAM_PUSH_AFTER_EOF,v=h.ERR_METHOD_NOT_IMPLEMENTED,E=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(4368)(S,o);var _=g.errorOrDestroy,w=["error","close","destroy","pause","resume"];function T(t,e,a){r=r||n(6138),t=t||{},"boolean"!=typeof a&&(a=e instanceof r),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=p(this,t,"readableHighWaterMark",a),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=n(7503).s),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function S(t){if(r=r||n(6138),!(this instanceof S))return new S(t);var e=this instanceof r;this._readableState=new T(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function k(t,e,n,r,i){a("readableAddChunk",e);var o,u=t._readableState;if(null===e)u.reading=!1,function(t,e){if(a("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,C(t)))}}(t,u);else if(i||(o=function(t,e){var n,r;return r=e,l.isBuffer(r)||r instanceof s||"string"==typeof e||void 0===e||t.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],e)),n}(u,e)),o)_(t,o);else if(u.objectMode||e&&e.length>0)if("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r)u.endEmitted?_(t,new E):A(t,u,e,!0);else if(u.ended)_(t,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(e=u.decoder.write(e),u.objectMode||0!==e.length?A(t,u,e,!1):x(t,u)):A(t,u,e,!1)}else r||(u.reading=!1,x(t,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function A(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&N(t)),x(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=l.from(t,e),e=""),n=!0),k(this,t,e,!1,n)},S.prototype.unshift=function(t){return k(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){c||(c=n(7503).s);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,a="";null!==r;)a+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var I=1073741824;function R(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function N(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(C,t))}function C(t){var e=t._readableState;a("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,M(t)}function x(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(D,t,e))}function D(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(a("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function O(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){a("readable nexttick read 0"),t.read(0)}function P(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),M(t),e.flowing&&!e.reading&&t.read(0)}function M(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function j(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(F,e,t))}function F(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function U(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}S.prototype.read=function(t){a("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return a("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?j(this):N(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&j(this),null;var r,i=e.needReadable;return a("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&a("length less than watermark",i=!0),e.ended||e.reading?a("reading or ended",i=!1):i&&(a("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=R(n,e))),null===(r=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&j(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(t){_(this,new v("_read()"))},S.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?p:s;function l(e,i){a("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,a("cleanup"),t.removeListener("close",m),t.removeListener("finish",g),t.removeListener("drain",u),t.removeListener("error",d),t.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",p),n.removeListener("data",f),c=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function s(){a("onend"),t.end()}r.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",l);var u=function(t){return function(){var e=t._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,M(t))}}(n);t.on("drain",u);var c=!1;function f(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==U(r.pipes,t))&&!c&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function d(e){a("onerror",e),p(),t.removeListener("error",d),0===i(t,"error")&&_(t,e)}function m(){t.removeListener("finish",g),p()}function g(){a("onfinish"),t.removeListener("close",m),p()}function p(){a("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",m),t.once("finish",g),t.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=U(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},S.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?N(this):r.reading||process.nextTick(z,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(O,this),n},S.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(O,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(a("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(P,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(a("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<w.length;o++)t.on(w[o],this.emit.bind(this,w[o]));return this._read=function(e){a("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(7299)),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===d&&(d=n(6233)),d(S,t,e)})},9798:function(t,e,n){t.exports=c;var r=n(3690).q,a=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=r.ERR_TRANSFORM_WITH_LENGTH_0,s=n(6138);function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new i);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);s.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,n){d(t,e,n)}))}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new l;if(t._transformState.transforming)throw new o;return t.push(null)}n(4368)(c,s),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new a("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){s.prototype._destroy.call(this,t,(function(t){e(t)}))}},8318:function(t,e,n){function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;for(t.entry=null;r;){var a=r.callback;e.pendingcb--,a(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var a;t.exports=S,S.WritableState=T;var i,o={deprecate:n(7839)},l=n(9299),s=n(1549).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},c=n(6163),f=n(7269).getHighWaterMark,d=n(3690).q,m=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,p=d.ERR_MULTIPLE_CALLBACK,h=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,v=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,_=c.errorOrDestroy;function w(){}function T(t,e,i){a=a||n(6138),t=t||{},"boolean"!=typeof i&&(i=e instanceof a),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,a=n.writecb;if("function"!=typeof a)throw new p;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,a){--e.pendingcb,n?(process.nextTick(a,r),process.nextTick(C,t,e),t._writableState.errorEmitted=!0,_(t,r)):(a(r),t._writableState.errorEmitted=!0,_(t,r),C(t,e))}(t,n,r,e,a);else{var i=R(n)||t.destroyed;i||n.corked||n.bufferProcessing||!n.bufferedRequest||I(t,n),r?process.nextTick(A,t,n,i,a):A(t,n,i,a)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function S(t){var e=this instanceof(a=a||n(6138));if(!e&&!i.call(S,this))return new S(t);this._writableState=new T(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function k(t,e,n,r,a,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):n?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function A(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),C(t,e)}function I(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var a=e.bufferedRequestCount,i=new Array(a),o=e.corkedRequestsFree;o.entry=n;for(var l=0,s=!0;n;)i[l]=n,n.isBuf||(s=!1),n=n.next,l+=1;i.allBuffers=s,k(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,f=n.callback;if(k(t,e,!1,e.objectMode?1:u.length,u,c,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(n){e.pendingcb--,n&&_(t,n),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var n=R(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}n(4368)(S,l),T.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(T.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!i.call(this,t)||this===S&&t&&t._writableState instanceof T}})):i=function(t){return t instanceof this},S.prototype.pipe=function(){_(this,new h)},S.prototype.write=function(t,e,n){var r,a=this._writableState,i=!1,o=!a.objectMode&&(r=t,s.isBuffer(r)||r instanceof u);return o&&!s.isBuffer(t)&&(t=function(t){return s.from(t)}(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=a.defaultEncoding),"function"!=typeof n&&(n=w),a.ending?function(t,e){var n=new v;_(t,n),process.nextTick(e,n)}(this,n):(o||function(t,e,n,r){var a;return null===n?a=new y:"string"==typeof n||e.objectMode||(a=new m("chunk",["string","Buffer"],n)),!a||(_(t,a),process.nextTick(r,a),!1)}(this,a,t,n))&&(a.pendingcb++,i=function(t,e,n,r,a,i){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=s.from(e,n)),e}(e,r,a);r!==o&&(n=!0,a="buffer",r=o)}var l=e.objectMode?1:r.length;e.length+=l;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:a,isBuf:n,callback:i,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else k(t,e,!1,l,r,a,i);return u}(this,a,o,t,e,n)),i},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new E(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,C(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(t,e){e(t)}},7299:function(t,e,n){var r;function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(8800),o=Symbol("lastResolve"),l=Symbol("lastReject"),s=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function m(t,e){return{value:t,done:e}}function g(t){var e=t[o];if(null!==e){var n=t[d].read();null!==n&&(t[c]=null,t[o]=null,t[l]=null,e(m(n,!1)))}}function p(t){process.nextTick(g,t)}var h=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((a(r={get stream(){return this[d]},next:function(){var t=this,e=this[s];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(m(void 0,!0));if(this[d].destroyed)return new Promise((function(e,n){process.nextTick((function(){t[s]?n(t[s]):e(m(void 0,!0))}))}));var n,r=this[c];if(r)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[u]?n(m(void 0,!0)):e[f](n,r)}),r)}}(r,this));else{var a=this[d].read();if(null!==a)return Promise.resolve(m(a,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(m(void 0,!0))}))}))})),r),h);t.exports=function(t){var e,n=Object.create(b,(a(e={},d,{value:t,writable:!0}),a(e,o,{value:null,writable:!0}),a(e,l,{value:null,writable:!0}),a(e,s,{value:null,writable:!0}),a(e,u,{value:t._readableState.endEmitted,writable:!0}),a(e,f,{value:function(t,e){var r=n[d].read();r?(n[c]=null,n[o]=null,n[l]=null,t(m(r,!1))):(n[o]=t,n[l]=e)},writable:!0}),e));return n[c]=null,i(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[l];return null!==e&&(n[c]=null,n[o]=null,n[l]=null,e(t)),void(n[s]=t)}var r=n[o];null!==r&&(n[c]=null,n[o]=null,n[l]=null,r(m(void 0,!0))),n[u]=!0})),t.on("readable",p.bind(null,n)),n}},8393:function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var s=n(1549).Buffer,u=n(9862).inspect,c=u&&u.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,r;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,n,r,a=s.allocUnsafe(t>>>0),i=this.head,o=0;i;)e=i.data,n=a,r=o,s.prototype.copy.call(e,n,r),o+=i.data.length,i=i.next;return a}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;for(t-=r.length;e=e.next;){var a=e.data,i=t>a.length?a.length:t;if(i===a.length?r+=a:r+=a.slice(0,t),0==(t-=i)){i===a.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=a.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var a=n.data,i=t>a.length?a.length:t;if(a.copy(e,e.length-t,0,i),0==(t-=i)){i===a.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(i));break}++r}return this.length-=r,e}},{key:c,value:function(t,e){return u(this,a(a({},e),{},{depth:0,customInspect:!1}))}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},6163:function(t){function e(t,e){r(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,a){var i=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?(a?a(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,t)):process.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!a&&t?i._writableState?i._writableState.errorEmitted?process.nextTick(n,i):(i._writableState.errorEmitted=!0,process.nextTick(e,i,t)):process.nextTick(e,i,t):a?(process.nextTick(n,i),a(t)):process.nextTick(n,i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}},8800:function(t,e,n){var r=n(3690).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}t.exports=function t(e,n,i){if("function"==typeof n)return t(e,null,n);n||(n={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.apply(this,r)}}}(i||a);var o=n.readable||!1!==n.readable&&e.readable,l=n.writable||!1!==n.writable&&e.writable,s=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){l=!1,u=!0,o||i.call(e)},f=e._readableState&&e._readableState.endEmitted,d=function(){o=!1,f=!0,l||i.call(e)},m=function(t){i.call(e,t)},g=function(){var t;return o&&!f?(e._readableState&&e._readableState.ended||(t=new r),i.call(e,t)):l&&!u?(e._writableState&&e._writableState.ended||(t=new r),i.call(e,t)):void 0},p=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",g),e.req?p():e.on("request",p)):l&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",d),e.on("finish",c),!1!==n.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",c),e.removeListener("abort",g),e.removeListener("request",p),e.req&&e.req.removeListener("finish",c),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",c),e.removeListener("end",d),e.removeListener("error",m),e.removeListener("close",g)}}},6233:function(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},7295:function(t,e,n){var r,a=n(3690).q,i=a.ERR_MISSING_ARGS,o=a.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function s(t){t()}function u(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var c,f=function(t){return t.length?"function"!=typeof t[t.length-1]?l:t.pop():l}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new i("streams");var d=e.map((function(t,a){var i=a<e.length-1;return function(t,e,a,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n(8800)),r(t,{readable:e,writable:a},(function(t){if(t)return i(t);l=!0,i()}));var s=!1;return function(e){if(!l&&!s)return s=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new o("pipe"))}}(t,i,a>0,(function(t){c||(c=t),t&&d.forEach(s),i||(d.forEach(s),f(c))}))}));return e.reduce(u)}},7269:function(t,e,n){var r=n(3690).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,a){var i=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,a,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new r(a?n:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},9299:function(t,e,n){t.exports=n(1159).EventEmitter},7503:function(t,e,n){var r=n(2695).Buffer,a=r.isEncoding||function(t){switch((t=""+t)&&t.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}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===a||!a(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=u,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=c,this.end=f,e=3;break;default:return this.write=d,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function l(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}e.s=i,i.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var a=o(e[r]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--r<n||-2===a?0:(a=o(e[r]))>=0?(a>0&&(t.lastNeed=a-2),a):--r<n||-2===a?0:(a=o(e[r]))>=0?(a>0&&(2===a?a=0:t.lastNeed=a-3),a):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},2695:function(t,e,n){var r=n(1549),a=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return a(t,e,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=o),i(a,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=a(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},1067:function(t,e,n){var r;!function(a,i){var o="function",l="undefined",s="object",u="string",c="major",f="model",d="name",m="type",g="vendor",p="version",h="architecture",b="console",y="mobile",v="tablet",E="smarttv",_="wearable",w="embedded",T="Amazon",S="Apple",k="ASUS",A="BlackBerry",I="Browser",R="Chrome",N="Firefox",C="Google",x="Huawei",D="LG",O="Microsoft",z="Motorola",P="Opera",M="Samsung",L="Sharp",j="Sony",F="Xiaomi",U="Zebra",q="Facebook",B="Chromium OS",Z="Mac OS",G=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},H=function(t,e){return typeof t===u&&-1!==Y(e).indexOf(Y(t))},Y=function(t){return t.toLowerCase()},V=function(t,e){if(typeof t===u)return t=t.replace(/^\s\s*/,""),typeof e===l?t:t.substring(0,500)},K=function(t,e){for(var n,r,a,l,u,c,f=0;f<e.length&&!u;){var d=e[f],m=e[f+1];for(n=r=0;n<d.length&&!u&&d[n];)if(u=d[n++].exec(t))for(a=0;a<m.length;a++)c=u[++r],typeof(l=m[a])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):i:this[l[0]]=c?l[1].call(this,c,l[2]):i:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):i):this[l]=c||i;f+=2}},W=function(t,e){for(var n in e)if(typeof e[n]===s&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(H(e[n][r],t))return"?"===n?i:n}else if(H(e[n],t))return"?"===n?i:n;return t},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[d,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+I],p],[/\bfocus\/([\w\.]+)/i],[p,[d,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[p,[d,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+I]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+I],p],[/samsungbrowser\/([\w\.]+)/i],[p,[d,M+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,q],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,R+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,Y]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",Y]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,Y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,M],[m,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,M],[m,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[g,S],[m,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,S],[m,v]],[/(macintosh);/i],[f,[g,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,L],[m,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,x],[m,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[g,x],[m,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,F],[m,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,F],[m,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[g,"OPPO"],[m,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[m,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[m,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,z],[m,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,z],[m,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,D],[m,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,D],[m,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[m,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[m,y]],[/(pixel c)\b/i],[f,[g,C],[m,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,C],[m,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,j],[m,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,j],[m,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[m,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,T],[m,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,T],[m,y]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[m,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,A],[m,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,k],[m,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,k],[m,y]],[/(nexus 9)/i],[f,[g,"HTC"],[m,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[m,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[m,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[m,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[g,"Ulefone"],[m,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[m,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[m,v]],[/(surface duo)/i],[f,[g,O],[m,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[m,y]],[/(u304aa)/i],[f,[g,"AT&T"],[m,y]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[m,y]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[m,v]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[m,v]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[m,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[m,v]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[m,v]],[/\b(k88) b/i],[f,[g,"ZTE"],[m,v]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[m,y]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[m,y]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[m,v]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[m,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[m,v]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[m,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[m,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[m,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[m,y]],[/\b(ph-1) /i],[f,[g,"Essential"],[m,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[m,v]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[m,v]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[m,v]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[m,v]],[/(sprint) (\w+)/i],[g,f,[m,y]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,O],[m,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,U],[m,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,U],[m,y]],[/smart-tv.+(samsung)/i],[g,[m,E]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,M],[m,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,D],[m,E]],[/(apple) ?tv/i],[g,[f,S+" TV"],[m,E]],[/crkey/i],[[f,R+"cast"],[g,C],[m,E]],[/droid.+aft(\w+)( bui|\))/i],[f,[g,T],[m,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[g,L],[m,E]],[/(bravia[\w ]+)( bui|\))/i],[f,[g,j],[m,E]],[/(mitv-\w{5}) bui/i],[f,[g,F],[m,E]],[/Hbbtv.*(technisat) (.*);/i],[g,f,[m,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,V],[f,V],[m,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[m,b]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[m,b]],[/(playstation [345portablevi]+)/i],[f,[g,j],[m,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,O],[m,b]],[/((pebble))app/i],[g,f,[m,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[g,S],[m,_]],[/droid.+; (glass) \d/i],[f,[g,C],[m,_]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,U],[m,_]],[/(quest( 2| pro)?)/i],[f,[g,q],[m,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,w]],[/(aeobc)\b/i],[f,[g,T],[m,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[m,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,y]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[p,W,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,W,X],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,Z],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[d,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,B],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,p]]},$=function(t,e){if(typeof t===s&&(e=t,t=i),!(this instanceof $))return new $(t,e).getResult();var n=typeof a!==l&&a.navigator?a.navigator:i,r=t||(n&&n.userAgent?n.userAgent:""),b=n&&n.userAgentData?n.userAgentData:i,E=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(Q,e):Q,_=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[d]=i,e[p]=i,K.call(e,r,E.browser),e[c]=typeof(t=e[p])===u?t.replace(/[^\d\.]/g,"").split(".")[0]:i,_&&n&&n.brave&&typeof n.brave.isBrave==o&&(e[d]="Brave"),e},this.getCPU=function(){var t={};return t[h]=i,K.call(t,r,E.cpu),t},this.getDevice=function(){var t={};return t[g]=i,t[f]=i,t[m]=i,K.call(t,r,E.device),_&&!t[m]&&b&&b.mobile&&(t[m]=y),_&&"Macintosh"==t[f]&&n&&typeof n.standalone!==l&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[f]="iPad",t[m]=v),t},this.getEngine=function(){var t={};return t[d]=i,t[p]=i,K.call(t,r,E.engine),t},this.getOS=function(){var t={};return t[d]=i,t[p]=i,K.call(t,r,E.os),_&&!t[d]&&b&&"Unknown"!=b.platform&&(t[d]=b.platform.replace(/chrome os/i,B).replace(/macos/i,Z)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===u&&t.length>500?V(t,500):t,this},this.setUA(r),this};$.VERSION="1.0.37",$.BROWSER=G([d,p,c]),$.CPU=G([h]),$.DEVICE=G([f,g,m,b,y,E,v,_,w]),$.ENGINE=$.OS=G([d,p]),typeof e!==l?(t.exports&&(e=t.exports=$),e.UAParser=$):n.amdO?(r=function(){return $}.call(e,n,e,t))===i||(t.exports=r):typeof a!==l&&(a.UAParser=$);var J=typeof a!==l&&(a.jQuery||a.Zepto);if(J&&!J.ua){var tt=new $;J.ua=tt.getResult(),J.ua.get=function(){return tt.getUA()},J.ua.set=function(t){tt.setUA(t);var e=tt.getResult();for(var n in e)J.ua[n]=e[n]}}}("object"==typeof window?window:this)},7839:function(t,e,n){function r(t){try{if(!n.g.localStorage)return!1}catch(t){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}},9862:function(){},964:function(){},3114:function(t,e,n){var r=n(987),a=n(145),i=n(4267),o=n(6514),l=(n(5530),"undefined"!=typeof window&&window||global),s=l.dashjs;s||(s=l.dashjs={}),s.MediaPlayer=r.Z,s.FactoryMaker=a.Z,s.Debug=i.Z,s.Version=(0,o.e)()},4267:function(t,e,n){var r=n(4700),a=n(8926),i=n(145),o=1,l=2,s=3,u=4,c=5;function f(t){t=t||{};var e,n,i,f,d=this.context,m=(0,r.Z)(d).getInstance(),g=t.settings,p=[];function h(t){return t&&t.bind?t.bind(window.console):window.console.log.bind(window.console)}function b(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];w.apply(void 0,[o,this].concat(e))}function y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];w.apply(void 0,[l,this].concat(e))}function v(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];w.apply(void 0,[s,this].concat(e))}function E(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];w.apply(void 0,[u,this].concat(e))}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];w.apply(void 0,[c,this].concat(e))}function w(t,e){var r="",o=null;n&&(o=(new Date).getTime(),r+="["+(o-f)+"]"),i&&e&&e.getClassName&&(r+="["+e.getClassName()+"]",e.getType&&(r+="["+e.getType()+"]")),r.length>0&&(r+=" ");for(var l=arguments.length,s=new Array(l>2?l-2:0),u=2;u<l;u++)s[u-2]=arguments[u];Array.apply(null,s).forEach((function(t){r+=t+" "})),p[t]&&g&&g.get().debug.logLevel>=t&&p[t](r),g&&g.get().debug.dispatchEvent&&m.trigger(a.Z.LOG,{message:r,level:t})}return e={getLogger:function(t){return{fatal:b.bind(t),error:y.bind(t),warn:v.bind(t),info:E.bind(t),debug:_.bind(t)}},setLogTimestampVisible:function(t){n=t},setCalleeNameVisible:function(t){i=t}},n=!0,i=!0,f=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(p[o]=h(window.console.error),p[l]=h(window.console.error),p[s]=h(window.console.warn),p[u]=h(window.console.info),p[c]=h(window.console.debug)),e}f.__dashjs_factory_name="Debug";var d=i.Z.getSingletonFactory(f);d.LOG_LEVEL_NONE=0,d.LOG_LEVEL_FATAL=o,d.LOG_LEVEL_ERROR=l,d.LOG_LEVEL_WARNING=s,d.LOG_LEVEL_INFO=u,d.LOG_LEVEL_DEBUG=c,i.Z.updateSingletonFactory(f.__dashjs_factory_name,d),e.Z=d},4700:function(t,e,n){var r=n(145),a=n(5848);function i(){var t={};function e(e,n,r){var a=-1;return t[e]?(t[e].some((function(t,e){if(t&&t.callback===n&&(!r||r===t.scope))return a=e,!0})),a):a}var n={on:function(n,r,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n)throw new Error("event type cannot be null or undefined");if(!r||"function"!=typeof r)throw new Error("listener must be a function: "+r);var o=i.priority||0;if(!(e(n,r,a)>=0)){t[n]=t[n]||[];var l={callback:r,scope:a,priority:o};a&&a.getStreamId&&(l.streamId=a.getStreamId()),a&&a.getType&&(l.mediaType=a.getType()),i&&i.mode&&(l.mode=i.mode),t[n].some((function(e,r){if(e&&o>e.priority)return t[n].splice(r,0,l),!0}))||t[n].push(l)}},off:function(n,r,a){if(n&&r&&t[n]){var i=e(n,r,a);i<0||(t[n][i]=null)}},trigger:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t[e]){if((n=n||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");n.type=e,r.streamId&&(n.streamId=r.streamId),r.mediaType&&(n.mediaType=r.mediaType),t[e].filter((function(t){return!(!t||r.streamId&&t.streamId&&t.streamId!==r.streamId||r.mediaType&&t.mediaType&&t.mediaType!==r.mediaType||r.mode&&t.mode&&t.mode!==r.mode||!t.mode&&r.mode&&r.mode===a.Z.EVENT_MODE_ON_RECEIVE)})).forEach((function(t){return t&&t.callback.call(t.scope,n)}))}},reset:function(){t={}}};return n}i.__dashjs_factory_name="EventBus";var o=r.Z.getSingletonFactory(i);o.EVENT_PRIORITY_LOW=0,o.EVENT_PRIORITY_HIGH=5e3,r.Z.updateSingletonFactory(i.__dashjs_factory_name,o),e.Z=o},145:function(t,e){var n=function(){var t,e=[],n={},r={};function a(t,n){for(var r in e){var a=e[r];if(a.context===t&&a.name===n)return a.instance}return null}function i(t,e){return e[t]}function o(t,e,n){t in n&&(n[t]=e)}function l(e,n,r){var a,i=e.__dashjs_factory_name,o=n[i];if(o){var l=o.instance;if(!o.override)return l.apply({context:n,factory:t},r);for(var s in a=e.apply({context:n},r),l=l.apply({context:n,factory:t,parent:a},r))a.hasOwnProperty(s)&&(a[s]=l[s])}else a=e.apply({context:n},r);return a.getClassName=function(){return i},a}return t={extend:function(t,e,n,r){!r[t]&&e&&(r[t]={instance:e,override:n})},getSingletonInstance:a,setSingletonInstance:function(t,n,r){for(var a in e){var i=e[a];if(i.context===t&&i.name===n)return void(e[a].instance=r)}e.push({name:n,context:t,instance:r})},deleteSingletonInstances:function(t){e=e.filter((function(e){return e.context!==t}))},getSingletonFactory:function(t){var r=i(t.__dashjs_factory_name,n);return r||(r=function(n){var r;return void 0===n&&(n={}),{getInstance:function(){return r||(r=a(n,t.__dashjs_factory_name)),r||(r=l(t,n,arguments),e.push({name:t.__dashjs_factory_name,context:n,instance:r})),r}}},n[t.__dashjs_factory_name]=r),r},getSingletonFactoryByName:function(t){return i(t,n)},updateSingletonFactory:function(t,e){o(t,e,n)},getClassFactory:function(t){var e=i(t.__dashjs_factory_name,r);return e||(e=function(e){return void 0===e&&(e={}),{create:function(){return l(t,e,arguments)}}},r[t.__dashjs_factory_name]=e),e},getClassFactoryByName:function(t){return i(t,r)},updateClassFactory:function(t,e){o(t,e,r)}},t}();e.Z=n},2683:function(t,e,n){var r=n(145),a=n(4294),i=n(4267),o=n(3814),l=n(4019),s=n(4700),u=n(8926);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(){var t,e,n=this.context,r=(0,s.Z)(n).getInstance(),m={"streaming.delay.liveDelay":u.Z.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":u.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":u.Z.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,"streaming.abr.rules.throughputRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.bolaRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.insufficientBufferRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.switchHistoryRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.droppedFramesRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.abandonRequestsRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.l2ARule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.loLPRule.active":u.Z.SETTING_UPDATED_ABR_ACTIVE_RULES},g={debug:{logLevel:i.Z.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,liveUpdateTimeThresholdInMilliseconds:0,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,supportedEssentialProperties:[{schemeIdUri:o.Z.FONT_DOWNLOAD_DVB_SCHEME},{schemeIdUri:o.Z.COLOUR_PRIMARIES_SCHEME_ID_URI,value:/5|6/},{schemeIdUri:o.Z.MATRIX_COEFFICIENTS_SCHEME_ID_URI,value:/5|6/},{schemeIdUri:o.Z.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI,value:"6"}].concat(d(o.Z.THUMBNAILS_SCHEME_ID_URIS.map((function(t){return{schemeIdUri:t}})))),useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,bufferTimeDefault:18,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeTypeForTrackSwitch:!0,mediaSourceDurationInfinity:!0,resetSourceBuffersForTrackSwitch:!1},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0,dispatchForManualRendering:!1,extendSegmentedCues:!0,imsc:{displayForcedOnlyMode:!1,enableRollUp:!0},webvtt:{customRenderingEnabled:!1}},liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN},playbackBufferMin:.5,enabled:null,mode:o.Z.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},saveLastMediaSettingsForCurrentStreamingSession:!0,cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:o.Z.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:o.Z.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:o.Z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:(t={},f(t,l.w.MPD_TYPE,500),f(t,l.w.XLINK_EXPANSION_TYPE,500),f(t,l.w.MEDIA_SEGMENT_TYPE,1e3),f(t,l.w.INIT_SEGMENT_TYPE,1e3),f(t,l.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),f(t,l.w.INDEX_SEGMENT_TYPE,1e3),f(t,l.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),f(t,l.w.LICENSE,1e3),f(t,l.w.OTHER_TYPE,1e3),f(t,"lowLatencyReductionFactor",10),t),retryAttempts:(e={},f(e,l.w.MPD_TYPE,3),f(e,l.w.XLINK_EXPANSION_TYPE,1),f(e,l.w.MEDIA_SEGMENT_TYPE,3),f(e,l.w.INIT_SEGMENT_TYPE,3),f(e,l.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),f(e,l.w.INDEX_SEGMENT_TYPE,3),f(e,l.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),f(e,l.w.LICENSE,3),f(e,l.w.OTHER_TYPE,3),f(e,"lowLatencyMultiplyFactor",5),e),abr:{limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,enableSupplementalPropertyAdaptationSetSwitching:!0,rules:{throughputRule:{active:!0},bolaRule:{active:!0},insufficientBufferRule:{active:!0,parameters:{throughputSafetyFactor:.7,segmentIgnoreCount:2}},switchHistoryRule:{active:!0,parameters:{sampleSize:8,switchPercentageThreshold:.075}},droppedFramesRule:{active:!0,parameters:{minimumSampleSize:375,droppedFramesPercentageThreshold:.15}},abandonRequestsRule:{active:!0,parameters:{abandonDurationMultiplier:1.8,minSegmentDownloadTimeThresholdInMs:500,minThroughputSamplesThreshold:6}},l2ARule:{active:!1},loLPRule:{active:!1}},throughput:{averageCalculationMode:o.Z.THROUGHPUT_CALCULATION_MODES.EWMA,lowLatencyDownloadTimeCalculationMode:o.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING,useResourceTimingApi:!0,useNetworkInformationApi:{xhr:!1,fetch:!0},useDeadTimeLatency:!0,bandwidthSafetyFactor:.9,sampleSettings:{live:3,vod:4,enableSampleSizeAdjustment:!0,decreaseScale:.7,increaseScale:1.3,maxMeasurementsToKeep:20,averageLatencySampleAmount:4},ewma:{throughputSlowHalfLifeSeconds:8,throughputFastHalfLifeSeconds:3,latencySlowHalfLifeCount:2,latencyFastHalfLifeCount:1,weightDownloadTimeMultiplicationFactor:.0015}},maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},initialBitrate:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0}},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:o.Z.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}},defaultSchemeIdUri:{viewpoint:"",audioChannelConfiguration:"urn:mpeg:mpegB:cicp:ChannelConfiguration",role:"urn:mpeg:dash:role:2011",accessibility:"urn:mpeg:dash:role:2011"}},errors:{recoverAttempts:{mediaErrorDecode:5}}},p=a.Z.clone(g);function h(t,e,n){for(var i in t)t.hasOwnProperty(i)&&(e.hasOwnProperty(i)?"object"!==c(t[i])||t[i]instanceof RegExp||t[i]instanceof Array||null===t[i]?(e[i]=a.Z.clone(t[i]),m[n+i]&&r.trigger(m[n+i])):h(t[i],e[i],n.slice()+i+"."):console.error("Settings parameter "+n+i+" is not supported"))}return{get:function(){return p},update:function(t){"object"===c(t)&&h(t,p,"")},reset:function(){p=a.Z.clone(g)}}}g.__dashjs_factory_name="Settings";var p=r.Z.getSingletonFactory(g);e.Z=p},4294:function(t,e,n){var r=n(3875),a=n(1067);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,o=void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===i(o)?o:String(o)),r)}var a,o}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,l;return e=t,l=[{key:"mixin",value:function(e,n,r){var a,o={};if(e)for(var l in n)n.hasOwnProperty(l)&&(a=n[l],l in e&&(e[l]===a||l in o&&o[l]===a)||("object"===i(e[l])&&null!==e[l]?e[l]=t.mixin(e[l],a,r):e[l]=r(a)));return e}},{key:"clone",value:function(e){if(!e||"object"!==i(e))return e;if(e instanceof RegExp)return new RegExp(e);var n;if(e instanceof Array){n=[];for(var r=0,a=e.length;r<a;++r)r in e&&n.push(t.clone(e[r]))}else n={};return t.mixin(n,e,t.clone)}},{key:"addAditionalQueryParameterToUrl",value:function(t,e){try{if(!e||0===e.length)return t;var n=new URL(t);return e.forEach((function(t){t.key&&t.value&&n.searchParams.set(t.key,t.value)})),n.href}catch(e){return t}}},{key:"parseHttpHeaders",value:function(t){var e={};if(!t)return e;for(var n=t.trim().split("\r\n"),r=0,a=n.length;r<a;r++){var i=n[r],o=i.indexOf(": ");o>0&&(e[i.substring(0,o)]=i.substring(o+2))}return e}},{key:"generateUuid",value:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}},{key:"generateHashCode",value:function(t){var e=0;if(0===t.length)return e;for(var n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return e}},{key:"getRelativeUrl",value:function(t,e){try{var n=new URL(t),a=new URL(e);if(n.protocol=a.protocol,n.origin!==a.origin)return e;var i=r.relative(n.pathname.substr(0,n.pathname.lastIndexOf("/")),a.pathname.substr(0,a.pathname.lastIndexOf("/"))),o=0===i.length?1:0;return i+=a.pathname.substr(a.pathname.lastIndexOf("/")+o,a.pathname.length-1),a.pathname.length<i.length?a.pathname:i}catch(t){return e}}},{key:"getHostFromUrl",value:function(t){return new URL(t).host}},{key:"parseUserAgent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var e=null===t&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return(0,a.UAParser)(e)}catch(t){return{}}}},{key:"stringHasProtocol",value:function(t){return/(http(s?)):\/\//i.test(t)}}],(n=null)&&o(e.prototype,n),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.Z=l},6514:function(t,e,n){n.d(e,{e:function(){return a}});var r="5.0.0";function a(){return r}},5156:function(t,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(o)?o:String(o)),a)}var i,o}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,(n=[{key:"extend",value:function(t,e){if(t){var n=!!e&&e.override,r=!!e&&e.publicOnly;for(var a in t)!t.hasOwnProperty(a)||this[a]&&!n||r&&-1===t[a].indexOf("public_")||(this[a]=t[a])}}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.Z=a},9877:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,n,r,l=o(s);function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroundSync",t.BUFFERING_COMPLETED="bufferingCompleted",t.BUFFER_CLEARED="bufferCleared",t.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",t.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",t.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",t.CMSD_STATIC_HEADER="cmsdStaticHeader",t.CURRENT_TRACK_CHANGED="currentTrackChanged",t.DATA_UPDATE_COMPLETED="dataUpdateCompleted",t.INBAND_EVENTS="inbandEvents",t.INITIAL_STREAM_SWITCH="initialStreamSwitch",t.INIT_FRAGMENT_LOADED="initFragmentLoaded",t.INIT_FRAGMENT_NEEDED="initFragmentNeeded",t.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",t.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",t.LOADING_COMPLETED="loadingCompleted",t.LOADING_PROGRESS="loadingProgress",t.LOADING_DATA_PROGRESS="loadingDataProgress",t.LOADING_ABANDONED="loadingAborted",t.MANIFEST_UPDATED="manifestUpdated",t.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",t.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",t.QUOTA_EXCEEDED="quotaExceeded",t.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",t.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",t.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",t.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",t.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",t.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",t.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",t.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",t.SOURCE_BUFFER_ERROR="sourceBufferError",t.STREAMS_COMPOSED="streamsComposed",t.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",t.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",t.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",t.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",t.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",t.URL_RESOLUTION_FAILED="urlResolutionFailed",t.VIDEO_CHUNK_RECEIVED="videoChunkReceived",t.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",t.XLINK_ELEMENT_LOADED="xlinkElementLoaded",t.XLINK_READY="xlinkReady",t.SEEK_TARGET="seekTarget",t.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",t.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",t.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",t.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",t.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",t.SETTING_UPDATED_ABR_ACTIVE_RULES="settingUpdatedAbrActiveRules",t}return e=s,n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(6424).Z);e.Z=s},8926:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,n,r,l=o(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),l.apply(this,arguments)}return e=s,n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(9877).Z),u=new s;e.Z=u},6424:function(t,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(o)?o:String(o)),a)}var i,o}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,(n=[{key:"extend",value:function(t,e){if(t){var n=!!e&&e.override,r=!!e&&e.publicOnly;for(var a in t)!t.hasOwnProperty(a)||this[a]&&!n||r&&-1===t[a].indexOf("public_")||(this[a]=t[a])}}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.Z=a},3562:function(t,e){e.Z={ACCESSIBILITY:"Accessibility",ADAPTATION_SET:"AdaptationSet",ADAPTATION_SET_SWITCHING_SCHEME_ID_URI:"urn:mpeg:dash:adaptation-set-switching:2016",ADD:"add",ASSET_IDENTIFIER:"AssetIdentifier",AUDIO_CHANNEL_CONFIGURATION:"AudioChannelConfiguration",AUDIO_SAMPLING_RATE:"audioSamplingRate",AVAILABILITY_END_TIME:"availabilityEndTime",AVAILABILITY_START_TIME:"availabilityStartTime",AVAILABILITY_TIME_COMPLETE:"availabilityTimeComplete",AVAILABILITY_TIME_OFFSET:"availabilityTimeOffset",BANDWITH:"bandwidth",BASE_URL:"BaseURL",BITSTREAM_SWITCHING:"BitstreamSwitching",BITSTREAM_SWITCHING_MINUS:"bitstreamSwitching",BYTE_RANGE:"byteRange",CENC_DEFAULT_KID:"cenc:default_KID",CLIENT_REQUIREMENT:"clientRequirement",CODECS:"codecs",CODEC_PRIVATE_DATA:"codecPrivateData",CODING_DEPENDENCY:"codingDependency",CONTENT_COMPONENT:"ContentComponent",CONTENT_PROTECTION:"ContentProtection",CONTENT_STEERING:"ContentSteering",CONTENT_STEERING_RESPONSE:{VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",PATHWAY_PRIORITY:"PATHWAY-PRIORITY",PATHWAY_CLONES:"PATHWAY-CLONES",BASE_ID:"BASE-ID",ID:"ID",URI_REPLACEMENT:"URI-REPLACEMENT",HOST:"HOST",PARAMS:"PARAMS"},CONTENT_TYPE:"contentType",DEFAULT_SERVICE_LOCATION:"defaultServiceLocation",DEPENDENCY_ID:"dependencyId",DURATION:"duration",DVB_PRIORITY:"dvb:priority",DVB_WEIGHT:"dvb:weight",DVB_URL:"dvb:url",DVB_MIMETYPE:"dvb:mimeType",DVB_FONTFAMILY:"dvb:fontFamily",DYNAMIC:"dynamic",ESSENTIAL_PROPERTY:"EssentialProperty",EVENT:"Event",EVENT_STREAM:"EventStream",FRAMERATE:"frameRate",FRAME_PACKING:"FramePacking",GROUP_LABEL:"GroupLabel",HEIGHT:"height",ID:"id",INBAND:"inband",INBAND_EVENT_STREAM:"InbandEventStream",INDEX:"index",INDEX_RANGE:"indexRange",INITIALIZATION:"Initialization",INITIALIZATION_MINUS:"initialization",LA_URL:"Laurl",LABEL:"Label",LANG:"lang",LOCATION:"Location",MAIN:"main",MAXIMUM_SAP_PERIOD:"maximumSAPPeriod",MAX_PLAYOUT_RATE:"maxPlayoutRate",MAX_SEGMENT_DURATION:"maxSegmentDuration",MAX_SUBSEGMENT_DURATION:"maxSubsegmentDuration",MEDIA:"media",MEDIA_PRESENTATION_DURATION:"mediaPresentationDuration",MEDIA_RANGE:"mediaRange",MEDIA_STREAM_STRUCTURE_ID:"mediaStreamStructureId",METRICS:"Metrics",METRICS_MINUS:"metrics",MIME_TYPE:"mimeType",MINIMUM_UPDATE_PERIOD:"minimumUpdatePeriod",MIN_BUFFER_TIME:"minBufferTime",MP4_PROTECTION_SCHEME:"urn:mpeg:dash:mp4protection:2011",MPD:"MPD",ORIGINAL_MPD_ID:"mpdId",ORIGINAL_PUBLISH_TIME:"originalPublishTime",PATCH_LOCATION:"PatchLocation",PERIOD:"Period",PRESENTATION_TIME:"presentationTime",PRESENTATION_TIME_OFFSET:"presentationTimeOffset",PRO:"pro",PRODUCER_REFERENCE_TIME:"ProducerReferenceTime",PRODUCER_REFERENCE_TIME_TYPE:{ENCODER:"encoder",CAPTURED:"captured",APPLICATION:"application"},PROFILES:"profiles",PSSH:"pssh",PUBLISH_TIME:"publishTime",QUALITY_RANKING:"qualityRanking",QUERY_BEFORE_START:"queryBeforeStart",RANGE:"range",RATING:"Rating",REF:"ref",REF_ID:"refId",REMOVE:"remove",REPLACE:"replace",REPORTING:"Reporting",REPRESENTATION:"Representation",REPRESENTATION_INDEX:"RepresentationIndex",ROBUSTNESS:"robustness",ROLE:"Role",S:"S",SAR:"sar",SCAN_TYPE:"scanType",SEGMENT_ALIGNMENT:"segmentAlignment",SEGMENT_BASE:"SegmentBase",SEGMENT_LIST:"SegmentList",SEGMENT_PROFILES:"segmentProfiles",SEGMENT_TEMPLATE:"SegmentTemplate",SEGMENT_TIMELINE:"SegmentTimeline",SEGMENT_URL:"SegmentURL",SERVICE_DESCRIPTION:"ServiceDescription",SERVICE_DESCRIPTION_LATENCY:"Latency",SERVICE_DESCRIPTION_OPERATING_BANDWIDTH:"OperatingBandwidth",SERVICE_DESCRIPTION_OPERATING_QUALITY:"OperatingQuality",SERVICE_DESCRIPTION_PLAYBACK_RATE:"PlaybackRate",SERVICE_DESCRIPTION_SCOPE:"Scope",SERVICE_LOCATION:"serviceLocation",SOURCE_URL:"sourceURL",START:"start",START_NUMBER:"startNumber",START_WITH_SAP:"startWithSAP",STATIC:"static",SUBSET:"Subset",SUB_REPRESENTATION:"SubRepresentation",SUB_SEGMENT_ALIGNMENT:"subsegmentAlignment",SUGGESTED_PRESENTATION_DELAY:"suggestedPresentationDelay",SUPPLEMENTAL_PROPERTY:"SupplementalProperty",TIMESCALE:"timescale",TIMESHIFT_BUFFER_DEPTH:"timeShiftBufferDepth",TTL:"ttl",TYPE:"type",UTC_TIMING:"UTCTiming",VALUE:"value",VIEWPOINT:"Viewpoint",WALL_CLOCK_TIME:"wallClockTime",WIDTH:"width"}},8871:function(t,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(o)?o:String(o)),a)}var i,o}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var i=a((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.schemeIdUri="",this.value=""}));e.Z=i},987:function(t,e,n){n.d(e,{Z:function(){return jf}});var r={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},i=function(t){var e=t;return r.hasOwnProperty(t)&&(e=r[t]),String.fromCharCode(e)},o=15,l=32,u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},c={17:2,18:4,21:6,22:8,23:10,19:13,20:15},f={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},d={25:2,26:4,29:6,30:8,31:10,27:13,28:15},m=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],g={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(t){this.time=t},log:function(t,e){var n=this.verboseFilter[t];this.verboseLevel>=n&&console.log(this.time+" ["+t+"] "+e)}},p=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].toString(16));return e},h=function(t,e,n,r,a){this.foreground=t||"white",this.underline=e||!1,this.italics=n||!1,this.background=r||"black",this.flash=a||!1};h.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(t){for(var e=["foreground","underline","italics","background","flash"],n=0;n<e.length;n++){var r=e[n];t.hasOwnProperty(r)&&(this[r]=t[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},copy:function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var b=function(t,e,n,r,a,i){this.uchar=t||" ",this.penState=new h(e,n,r,a,i)};b.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(t,e){this.uchar=t,this.penState.copy(e)},setPenState:function(t){this.penState.copy(t)},equals:function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},copy:function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var y=function(){this.chars=[];for(var t=0;t<l;t++)this.chars.push(new b);this.pos=0,this.currPenState=new h};y.prototype={equals:function(t){for(var e=!0,n=0;n<l;n++)if(!this.chars[n].equals(t.chars[n])){e=!1;break}return e},copy:function(t){for(var e=0;e<l;e++)this.chars[e].copy(t.chars[e])},isEmpty:function(){for(var t=!0,e=0;e<l;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},setCursor:function(t){this.pos!==t&&(this.pos=t),this.pos<0?(g.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>l&&(g.log("ERROR","Too large cursor position "+this.pos),this.pos=l)},moveCursor:function(t){var e=this.pos+t;if(t>1)for(var n=this.pos+1;n<e+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(e)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(t){t>=144&&this.backSpace();var e=i(t);this.pos>=l?g.log("ERROR","Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},clearFromPos:function(t){var e;for(e=t;e<l;e++)this.chars[e].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var t=[],e=!0,n=0;n<l;n++){var r=this.chars[n].uchar;" "!==r&&(e=!1),t.push(r)}return e?"":t.join("")},setPenStyles:function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)}};var v=function(){this.rows=[];for(var t=0;t<o;t++)this.rows.push(new y);this.currRow=14,this.nrRollUpRows=null,this.reset()};v.prototype={reset:function(){for(var t=0;t<o;t++)this.rows[t].clear();this.currRow=14},equals:function(t){for(var e=!0,n=0;n<o;n++)if(!this.rows[n].equals(t.rows[n])){e=!1;break}return e},copy:function(t){for(var e=0;e<o;e++)this.rows[e].copy(t.rows[e])},isEmpty:function(){for(var t=!0,e=0;e<o;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(t){this.rows[this.currRow].insertChar(t)},setPen:function(t){this.rows[this.currRow].setPenStyles(t)},moveCursor:function(t){this.rows[this.currRow].moveCursor(t)},setCursor:function(t){g.log("INFO","setCursor: "+t),this.rows[this.currRow].setCursor(t)},setPAC:function(t){g.log("INFO","pacData = "+JSON.stringify(t));var e=t.row-1;this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.currRow=e;var n=this.rows[this.currRow];if(null!==t.indent){var r=t.indent,a=Math.max(r-1,0);n.setCursor(t.indent),t.color=n.chars[a].penState.foreground}var i={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(i)},setBkgData:function(t){g.log("INFO","bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},setRollUpRows:function(t){this.nrRollUpRows=t},rollUp:function(){if(null!==this.nrRollUpRows){g.log("TEXT",this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),g.log("INFO","Rolling up")}else g.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(t){t=t||!1;for(var e=[],n="",r=-1,a=0;a<o;a++){var i=this.rows[a].getTextString();i&&(r=a+1,t?e.push("Row "+r+': "'+i+'"'):e.push(i.trim()))}return e.length>0&&(n=t?"["+e.join(" | ")+"]":e.join("\n")),n},getTextAndFormat:function(){return this.rows}};var E=function(t,e){this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new v,this.nonDisplayedMemory=new v,this.lastOutputScreen=new v,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};E.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(t){this.outputFilter=t},setPAC:function(t){this.writeScreen.setPAC(t)},setBkgData:function(t){this.writeScreen.setBkgData(t)},setMode:function(t){t!==this.mode&&(this.mode=t,g.log("INFO","MODE="+t),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},insertChars:function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";g.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(g.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){g.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){g.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){g.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(t){g.log("INFO","RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},cc_FON:function(){g.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){g.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){g.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){g.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){g.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){g.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){g.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(g.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,g.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(t){g.log("INFO","TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},cc_MIDROW:function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var n=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}g.log("INFO","MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},outputDataUpdate:function(){var t=g.time;null!==t&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(t,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}};var _=function(t,e,n){this.field=t||1,this.outputs=[e,n],this.channels=[new E(1,e),new E(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};_.prototype={getHandler:function(t){return this.channels[t].getHandler()},setHandler:function(t,e){this.channels[t].setHandler(e)},addData:function(t,e){var n,r,a,i=!1;this.lastTime=t,g.setTime(t);for(var o=0;o<e.length;o+=2)r=127&e[o],a=127&e[o+1],r>=16&&r<=31&&r===this.lastCmdA&&a===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,g.log("DEBUG","Repeated command ("+p([r,a])+") is dropped")):0!==r||0!==a?(g.log("DATA","["+p([e[o],e[o+1]])+"] -> ("+p([r,a])+")"),(n=this.parseCmd(r,a))||(n=this.parseMidrow(r,a)),n||(n=this.parsePAC(r,a)),n||(n=this.parseBackgroundAttributes(r,a)),n||(i=this.parseChars(r,a))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(i):g.log("WARNING","No channel found yet. TEXT-MODE?")),n?this.dataCounters.cmd+=2:i?this.dataCounters.char+=2:(this.dataCounters.other+=2,g.log("WARNING","Couldn't parse cleaned data "+p([r,a])+" orig: "+p([e[o],e[o+1]])))):this.dataCounters.padding+=2},parseCmd:function(t,e){var n=null;if(!((20===t||21===t||28===t||29===t)&&32<=e&&e<=47||(23===t||31===t)&&33<=e&&e<=35))return!1;n=20===t||21===t||23===t?1:2;var r=this.channels[n-1];return 20===t||21===t||28===t||29===t?32===e?r.cc_RCL():33===e?r.cc_BS():34===e?r.cc_AOF():35===e?r.cc_AON():36===e?r.cc_DER():37===e?r.cc_RU(2):38===e?r.cc_RU(3):39===e?r.cc_RU(4):40===e?r.cc_FON():41===e?r.cc_RDC():42===e?r.cc_TR():43===e?r.cc_RTD():44===e?r.cc_EDM():45===e?r.cc_CR():46===e?r.cc_ENM():47===e&&r.cc_EOC():r.cc_TO(e-32),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=n,!0},parseMidrow:function(t,e){var n=null;if((17===t||25===t)&&32<=e&&e<=47){if((n=17===t?1:2)!==this.currChNr)return g.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(e),g.log("DEBUG","MIDROW ("+p([t,e])+")"),this.lastCmdA=t,this.lastCmdB=e,!0}return!1},parsePAC:function(t,e){var n,r=null;if(!((17<=t&&t<=23||25<=t&&t<=31)&&64<=e&&e<=127||(16===t||24===t)&&64<=e&&e<=95))return!1;n=t<=23?1:2,r=64<=e&&e<=95?1===n?u[t]:f[t]:1===n?c[t]:d[t];var a=this.interpretPAC(r,e);return this.channels[n-1].setPAC(a),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=n,!0},interpretPAC:function(t,e){var n=e,r={color:null,italics:!1,indent:null,underline:!1,row:t};return n=e>95?e-96:e-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(t,e){var n=null,r=null,a=null;if(t>=25?(n=2,a=t-8):(n=1,a=t),17<=a&&a<=19){var o=e;o=17===a?e+80:18===a?e+112:e+144,g.log("INFO","Special char '"+i(o)+"' in channel "+n),r=[o],this.lastCmdA=t,this.lastCmdB=e}else 32<=t&&t<=127&&(r=0===e?[t]:[t,e],this.lastCmdA=null,this.lastCmdB=null);if(r){var l=p(r);g.log("DEBUG","Char codes =  "+l.join(","))}return r},parseBackgroundAttributes:function(t,e){var n,r,a;return((16===t||24===t)&&32<=e&&e<=47||(23===t||31===t)&&45<=e&&e<=47)&&(n={},16===t||24===t?(r=Math.floor((e-32)/2),n.background=m[r],e%2==1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0)),a=t<24?1:2,this.channels[a-1].setBkgData(n),this.lastCmdA=t,this.lastCmdB=e,!0)},reset:function(){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(t){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].cueSplitAtTime(t)}};var w={};w.logger=g,w.PenState=h,w.CaptionScreen=v,w.Cea608Parser=_,w.findCea608Nalus=function(t,e,n){for(var r=0,a=e,i=[],o=function(t,e,n,r){if(4!==t||e<8)return null;var a=n.getUint8(r),i=n.getUint16(r+1),o=n.getUint32(r+3),l=n.getUint8(r+7);return 181==a&&49==i&&1195456820==o&&3==l};a<e+n;){if(r=t.getUint32(a),6==(31&t.getUint8(a+4)))for(var l=a+5,s=-1;l<a+4+r-1;){s=0;for(var u=255;255===u;)s+=u=t.getUint8(l),l++;var c=0;for(u=255;255===u;)c+=u=t.getUint8(l),l++;o(s,c,t,l)&&i.push([l,c]),l+=c}a+=r+4}return i},w.extractCea608DataFromRange=function(t,e){var n=e[0],r=[[],[]];n+=8;var a=31&t.getUint8(n);n+=2;for(var i=0;i<a;i++){var o=t.getUint8(n),l=4&o,s=3&o;n++;var u=t.getUint8(n);n++;var c=t.getUint8(n);n++,l&&(127&u)+(127&c)!=0&&(0===s?(r[0].push(u),r[0].push(c)):1===s&&(r[1].push(u),r[1].push(c)))}return r};var T=w,S=n(3814),k=n(3562),A={TCP_CONNECTION:"TcpList",HTTP_REQUEST:"HttpList",TRACK_SWITCH:"RepSwitchList",BUFFER_LEVEL:"BufferLevel",BUFFER_LOADED:"bufferLoaded",ABANDON_LOAD:"abandonload",ALLOW_LOAD:"allowload",BUFFER_EMPTY:"bufferStalled",BUFFER_STATE:"BufferState",DVR_INFO:"DVRInfo",DROPPED_FRAMES:"DroppedFrames",SCHEDULING_INFO:"SchedulingInfo",REQUESTS_QUEUE:"RequestsQueue",MANIFEST_UPDATE:"ManifestUpdate",MANIFEST_UPDATE_STREAM_INFO:"ManifestUpdatePeriodInfo",MANIFEST_UPDATE_TRACK_INFO:"ManifestUpdateRepresentationInfo",PLAY_LIST:"PlayList",DVB_ERRORS:"DVBErrors",HTTP_REQUEST_DVB_REPORTING_TYPE:"DVBReporting"},I=n(4700),R=n(8926),N=n(145),C=n(4267),x=n(5848);function D(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E,_,w,T,k,N=this.context,D=(0,I.Z)(N).getInstance();function O(){L(),m=!1,u=0,c=0,h=0,w=!1,b=!0,y=!1,T=!1,v=NaN,p=NaN,o&&(D.off(R.Z.DATA_UPDATE_COMPLETED,Q,t),D.off(R.Z.MANIFEST_UPDATED,Et,t),D.off(R.Z.STREAMS_COMPOSED,_t,t),D.off(x.Z.PLAYBACK_ENDED,gt,t),D.off(x.Z.STREAM_INITIALIZING,yt,t),D.off(x.Z.REPRESENTATION_SWITCH,vt,t),D.off(x.Z.BUFFER_LEVEL_STATE_CHANGED,tt,t),X(),o.removeEventListener("canplay",$),o.removeEventListener("canplaythrough",J),o.removeEventListener("play",et),o.removeEventListener("waiting",nt),o.removeEventListener("playing",rt),o.removeEventListener("pause",at),o.removeEventListener("error",pt),o.removeEventListener("seeking",it),o.removeEventListener("seeked",ot),o.removeEventListener("timeupdate",lt),o.removeEventListener("progress",st),o.removeEventListener("ratechange",ut),o.removeEventListener("loadedmetadata",ct),o.removeEventListener("loadeddata",ft),o.removeEventListener("stalled",bt),o.removeEventListener("ended",dt),o.removeEventListener("volumechange",mt)),s=null,o=null,f=null,d=null}function z(){return parseFloat((P(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)-q()).toFixed(5))}function P(t){var e=t||f;return e.start+e.duration}function M(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f&&o&&o.getElement()?(t&&d&&U(q()),o.play()):m=!0}function L(){f&&o&&o.pause()}function j(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];f&&o&&o.getElement()&&t!==(isNaN(v)?o.getTime():v)&&((E=!0===r)||(v=t),e.info("Requesting seek to time: "+t+(E?" (internal)":"")),d&&a&&U(t),o.setCurrentTime(t,n))}function F(){if(f&&o&&d){var t=n&&n.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,e=a.getCurrentDVRInfo(t);return e&&e.range?e.range.end:0}}function U(t){var e=new Date(l.getClientReferenceTime()),n=i.getRegularPeriods()[0],r=l.calcPresentationTimeFromWallTime(e,n);u=r-t}function q(){return f&&o?o.getTime():null}function B(){return f&&o?o.isPaused():null}function Z(){return f&&o?o.isSeeking():null}function G(){return f&&o?o.isStalled():null}function H(){return f&&o?o.getPlaybackRate():null}function Y(){return f&&o?o.getEnded():null}function V(){return d}function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!B()&&d&&0!==o.getReadyState()&&!Z()&&!w){t||(t=n.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO);var r=q(),i=function(t,e){var n=a.getCurrentDVRInfo(e),r=n?n.range:null;return r?t>r.end?Math.max(r.end-u,r.start):t>0&&t+.25<r.start&&Math.abs(t-r.start)<31536e4?y?Math.max(r.end-u,r.start):r.start:t:NaN}(r,t);!isNaN(i)&&i!==r&&!Z()&&(G()||_||1===o.getReadyState())&&(e.debug("UpdateCurrentTime: Seek to actual time: ".concat(i," from currentTime: ").concat(r)),j(i,!1,!1))}}function W(){null===s&&(s=setInterval((function(){!function(){if(D.trigger(R.Z.WALLCLOCK_TIME_UPDATED,{isDynamic:d,time:new Date}),V()){var t=Date.now();(isNaN(p)||t>p+k.get().streaming.liveUpdateTimeThresholdInMilliseconds)&&(n.addDVRMetric(),B()?function(){var t=Date.now();(!g||t>g+500)&&(g=t,lt())}():K(),p=t)}}()}),k.get().streaming.wallclockTimeUpdateInterval))}function X(){clearInterval(s),s=null}function Q(t){var e=t.currentRepresentation,n=e?e.mediaInfo.streamInfo:null;null!==n&&f.id===n.id&&(f=n)}function $(){D.trigger(R.Z.CAN_PLAY)}function J(){D.trigger(R.Z.CAN_PLAY_THROUGH)}function tt(t){t.streamId===n.getActiveStreamInfo().id&&(_=t.state===A.BUFFER_EMPTY,k.get().streaming.buffer.setStallState&&o.setStallState(t.mediaType,t.state===A.BUFFER_EMPTY))}function et(){e.info("Native video element event: play"),K(),W(),D.trigger(R.Z.PLAYBACK_STARTED,{startTime:q()})}function nt(){e.info("Native video element event: waiting"),D.trigger(R.Z.PLAYBACK_WAITING,{playingTime:q()})}function rt(){e.info("Native video element event: playing"),E=!1,D.trigger(R.Z.PLAYBACK_PLAYING,{playingTime:q()})}function at(){e.info("Native video element event: pause"),D.trigger(R.Z.PLAYBACK_PAUSED,{ended:Y()})}function it(){if(!E){var t=q();isNaN(v)||v===t||(t=v),v=NaN,e.info("Seeking to: "+t),W(),D.trigger(R.Z.PLAYBACK_SEEKING,{seekTime:t,streamId:f.id})}}function ot(){e.info("Native video element event: seeked"),E=!1,D.trigger(R.Z.PLAYBACK_SEEKED)}function lt(){f&&D.trigger(R.Z.PLAYBACK_TIME_UPDATED,{timeToEnd:z(),time:q(),streamId:f.id})}function st(){D.trigger(R.Z.PLAYBACK_PROGRESS,{streamId:f.id})}function ut(){var t=H();e.info("Native video element event: ratechange: ",t),D.trigger(R.Z.PLAYBACK_RATE_CHANGED,{playbackRate:t})}function ct(){e.info("Native video element event: loadedmetadata"),D.trigger(R.Z.PLAYBACK_METADATA_LOADED),W()}function ft(){e.info("Native video element event: loadeddata"),D.trigger(R.Z.PLAYBACK_LOADED_DATA)}function dt(){e.info("Native video element event: ended"),L(),X();var t=n?n.getActiveStreamInfo():null;t&&D.trigger(R.Z.PLAYBACK_ENDED,{isLast:t.isLast})}function mt(){D.trigger(R.Z.PLAYBACK_VOLUME_CHANGED)}function gt(t){if(s&&t.isLast){e.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended");var n=t.seekTime?t.seekTime:P();o.setCurrentTime(n),L(),X()}}function pt(t){var e=t.target||t.srcElement;D.trigger(R.Z.PLAYBACK_ERROR,{error:e.error})}function ht(){d=!1}function bt(t){D.trigger(R.Z.PLAYBACK_STALLED,{e:t})}function yt(t){var n;(n=t.mediaInfo)&&n.supplementalProperties&&n.supplementalProperties.find((function(t){return t.schemeIdUri===S.Z.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME}))&&(e.debug("Low Latency critical SupplementalProperty set: Enabling low Latency"),y=!0)}function vt(t){var e=n.getActiveStreamInfo();t&&e&&t.currentRepresentation&&t.streamId&&t.streamId===e.id&&t.mediaType&&(t.mediaType===S.Z.VIDEO||t.mediaType===S.Z.AUDIO)&&(b=t.currentRepresentation.availabilityTimeComplete,(y=!b)&&!T&&(T=!0))}function Et(){w=!0}function _t(){w=!1}return t={initialize:function(e,n){f=e,!0!==n&&(o.addEventListener("canplay",$),o.addEventListener("canplaythrough",J),o.addEventListener("play",et),o.addEventListener("waiting",nt),o.addEventListener("playing",rt),o.addEventListener("pause",at),o.addEventListener("error",pt),o.addEventListener("seeking",it),o.addEventListener("seeked",ot),o.addEventListener("timeupdate",lt),o.addEventListener("progress",st),o.addEventListener("ratechange",ut),o.addEventListener("loadedmetadata",ct),o.addEventListener("loadeddata",ft),o.addEventListener("stalled",bt),o.addEventListener("ended",dt),o.addEventListener("volumechange",mt),d=f.manifestInfo.isDynamic,_=!1,E=!1,D.on(R.Z.DATA_UPDATE_COMPLETED,Q,t),D.on(R.Z.MANIFEST_UPDATED,Et,t),D.on(R.Z.STREAMS_COMPOSED,_t,t),D.on(x.Z.PLAYBACK_ENDED,gt,t,{priority:I.Z.EVENT_PRIORITY_HIGH}),D.on(x.Z.STREAM_INITIALIZING,yt,t),D.on(x.Z.REPRESENTATION_SWITCH,vt,t),D.on(x.Z.BUFFER_LEVEL_STATE_CHANGED,tt,t),D.on(x.Z.DYNAMIC_TO_STATIC,ht,t),m&&(m=!1,M()))},setConfig:function(t){t&&(t.streamController&&(n=t.streamController),t.serviceDescriptionController&&(r=t.serviceDescriptionController),t.dashMetrics&&(a=t.dashMetrics),t.adapter&&(i=t.adapter),t.videoModel&&(o=t.videoModel),t.timelineConverter&&(l=t.timelineConverter),t.settings&&(k=t.settings))},getTimeToStreamEnd:z,getBufferLevel:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=null;return n.getActiveStreamProcessors().forEach((function(n){if(!t||0===t.length||-1===t.indexOf(n.getType())){var r=n.getBufferLevel();e=null===e?r:Math.min(e,r)}})),e},getPlaybackStalled:function(){return _},getTime:q,getLowLatencyModeEnabled:function(){return y},getInitialCatchupModeActivated:function(){return T},getIsManifestUpdateInProgress:function(){return w},getPlaybackRate:H,getPlayedRanges:function(){return f&&o?o.getPlayedRanges():null},getEnded:Y,getIsDynamic:V,getStreamController:function(){return n},computeAndSetLiveDelay:function(t,e){var n,a,o,l=!isNaN(t)&&isFinite(t)?t:NaN,s=i.getSuggestedPresentationDelay(),d=r.getServiceDescriptionSettings();return n=isNaN(k.get().streaming.delay.liveDelay)?null===k.get().streaming.delay.liveDelayFragmentCount||isNaN(k.get().streaming.delay.liveDelayFragmentCount)||isNaN(l)?d&&!isNaN(d.liveDelay)&&d.liveDelay>0?d.liveDelay:!0===k.get().streaming.delay.useSuggestedPresentationDelay&&null!==s&&!isNaN(s)&&s>0?s:isNaN(l)?e&&!isNaN(e.minBufferTime)?4*e.minBufferTime:4*f.manifestInfo.minBufferTime:4*l:l*k.get().streaming.delay.liveDelayFragmentCount:k.get().streaming.delay.liveDelay,null!==(o=i.getAvailabilityStartTime())&&(h=o),a=e&&e.dvrWindowSize>0?Math.min(n,e.dvrWindowSize):n,u=a,c=a,a},getLiveDelay:function(){return u},getOriginalLiveDelay:function(){return c},getCurrentLiveLatency:function(){if(!d||isNaN(h))return NaN;var t=q();if(isNaN(t)||0===t)return 0;var e=(new Date).getTime()+1e3*l.getClientTimeOffset();return Math.max(((e-h-1e3*t)/1e3).toFixed(3),0)},play:M,isPaused:B,isStalled:G,pause:L,isSeeking:Z,getStreamEndTime:P,seek:j,seekToOriginalLive:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=F();0!==r&&j(r-(u=c),t,e,n)},seekToCurrentLive:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=F();0!==r&&j(r-u,t,e,n)},reset:O,updateCurrentTime:K,getAvailabilityStartTime:function(){return h}},e=(0,C.Z)(N).getInstance().getLogger(t),O(),t}D.__dashjs_factory_name="PlaybackController";var O=N.Z.getSingletonFactory(D),z=n(4019);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==P(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===P(i)?i:String(i)),r)}var a,i}var L=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.action=t.ACTION_DOWNLOAD,this.availabilityEndTime=null,this.availabilityStartTime=null,this.bandwidth=NaN,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.duration=NaN,this.endDate=null,this.firstByteDate=null,this.index=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.quality=NaN,this.range=null,this.representation=null,this.responseType="arraybuffer",this.serviceLocation=null,this.startDate=null,this.startTime=NaN,this.timescale=NaN,this.type=null,this.url=e||null,this.wallStartTime=null}var e,n,r;return e=t,(n=[{key:"isInitializationRequest",value:function(){return this.type&&this.type===z.w.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(t){this.type=t&&t.init?z.w.INIT_SEGMENT_TYPE:z.w.MEDIA_SEGMENT_TYPE,this.url=t&&t.url?t.url:null,this.range=t&&t.range?t.range.start+"-"+t.range.end:null,this.mediaType=t&&t.mediaType?t.mediaType:null}}])&&M(e.prototype,n),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();L.ACTION_DOWNLOAD="download",L.ACTION_COMPLETE="complete";var j=L,F="loading",U="executed",q="failed";function B(t){var e,n,r,a,i=(t=t||{}).eventBus,o=t.events,l=t.dashMetrics,s=t.fragmentLoader,u=t.debug,c=t.streamInfo,f=t.type;function d(t){var e;return!!t&&(e=!1,r.some((function(n){if(r=t,a=n,!isNaN(r.index)&&r.startTime===a.startTime&&r.adaptationIndex===a.adaptationIndex&&r.type===a.type||function(t,e){return t.representation.id===e.representation.id}(t,n)||function(t,e){return t.action===j.ACTION_COMPLETE&&t.action===e.action}(t,n))return e=!0;var r,a})),e)}function m(t){return isNaN(t.duration)?.25:Math.min(t.duration/8,.5)}function g(t){r=r.filter((function(e){var n=m(e);return isNaN(e.startTime)||void 0!==t&&e.startTime>=t-n}))}function p(t,e){e<=t+.5||(r=r.filter((function(n){var r=m(n);return isNaN(n.startTime)||n.startTime>=e-r||isNaN(n.duration)||n.startTime+n.duration<=t+r})))}function h(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r],i=a.startTime,o=i+a.duration;if(n=isNaN(n)?m(a):n,!isNaN(i)&&!isNaN(o)&&e+n>=i&&e-n<o||isNaN(i)&&isNaN(e))return a}return null}function b(t,e){l.addSchedulingInfo(t,e),l.addRequestsQueue(t.mediaType,a,r)}function y(t){t.sender===s&&(a.splice(a.indexOf(t.request),1),t.response&&!t.error&&r.push(t.request),b(t.request,t.error?q:U),i.trigger(o.FRAGMENT_LOADING_COMPLETED,{request:t.request,response:t.response,error:t.error,sender:this},{streamId:c.id,mediaType:f}))}function v(t){t.sender===s&&i.trigger(o.FRAGMENT_LOADING_PROGRESS,{request:t.request,response:t.response,error:t.error,sender:this},{streamId:c.id,mediaType:f})}function E(t){t.sender===s&&i.trigger(o.FRAGMENT_LOADING_ABANDONED,{request:t.request},{streamId:c.id,mediaType:f})}function _(){r=[],a=[]}return e={abortRequests:function(){n.debug("abort requests"),s.abort(),a=[]},executeRequest:function(t){t.action===j.ACTION_DOWNLOAD?(b(t,F),a.push(t),function(t){i.trigger(o.FRAGMENT_LOADING_STARTED,{request:t},{streamId:c.id,mediaType:f}),s.load(t)}(t)):n.warn("Unknown request action.")},getRequests:function(t){var e=t?t.state instanceof Array?t.state:[t.state]:[],n=[];return e.forEach((function(e){var i=function(t){var e;switch(t){case F:e=a;break;case U:e=r;break;default:e=[]}return e}(e);n=n.concat(function(t,e){return e.hasOwnProperty("time")?[h(t,e.time,e.threshold)]:t.filter((function(t){for(var n in e)if("state"!==n&&e.hasOwnProperty(n)&&t[n]!=e[n])return!1;return!0}))}(i,t))})),n},getStreamId:function(){return c.id},getType:function(){return f},isFragmentLoaded:d,isFragmentLoadedOrPending:function(t){var e,n=!1,r=0;if(!(n=d(t)))for(r=0;r<a.length;r++)e=a[r],t.url===e.url&&t.startTime===e.startTime&&(n=!0);return n},removeExecutedRequestsAfterTime:function(t){r=r.filter((function(e){return isNaN(e.startTime)||void 0!==t&&e.startTime<t}))},removeExecutedRequestsBeforeTime:g,reset:function(){i.off(o.LOADING_COMPLETED,y,this),i.off(o.LOADING_DATA_PROGRESS,v,this),i.off(o.LOADING_ABANDONED,E,this),s&&s.reset(),_()},resetInitialSettings:_,syncExecutedRequestsWithBufferedRange:function(t,e){if(t&&0!==t.length){for(var n=0,r=0,a=t.length;r<a;r++)p(n,t.start(r)),n=t.end(r);e>0&&p(n,e)}else g()}},n=u.getLogger(e),_(),i.on(o.LOADING_COMPLETED,y,e),i.on(o.LOADING_DATA_PROGRESS,v,e),i.on(o.LOADING_ABANDONED,E,e),e}B.__dashjs_factory_name="FragmentModel";var Z=N.Z.getClassFactory(B);Z.FRAGMENT_MODEL_LOADING=F,Z.FRAGMENT_MODEL_EXECUTED=U,Z.FRAGMENT_MODEL_CANCELED="canceled",Z.FRAGMENT_MODEL_FAILED=q,N.Z.updateClassFactory(B.__dashjs_factory_name,Z);var G=Z,H=n(7665);function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Y(i)?i:String(i)),r)}var a,i}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=X(t);if(e){var a=X(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function X(t){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X(t)}var Q=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(i,t);var e,n,r,a=W(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,t.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,t.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,t.SEGMENT_BASE_LOADER_ERROR_CODE=15,t.TIME_SYNC_FAILED_ERROR_CODE=16,t.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,t.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,t.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,t.APPEND_ERROR_CODE=20,t.REMOVE_ERROR_CODE=21,t.DATA_UPDATE_FAILED_ERROR_CODE=22,t.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,t.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,t.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,t.DOWNLOAD_ERROR_ID_SIDX_CODE=26,t.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,t.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,t.DOWNLOAD_ERROR_ID_XLINK_CODE=29,t.MANIFEST_ERROR_ID_PARSE_CODE=31,t.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,t.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,t.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,t.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,t.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",t.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",t.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",t.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",t.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",t.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",t.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",t.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",t.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",t.APPEND_ERROR_MESSAGE="chunk is not defined",t.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",t.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",t.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",t.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",t.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",t.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",t}return e=i,n&&V(e.prototype,n),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(5156).Z)),$=n(2683);function J(t){var e,n,r,a,i,o,l=this.context,s=(0,$.Z)(l).getInstance(),u=t.textController,c=t.eventBus,f=[],d=[],m=!1,g=t.mediaSource,p=null;function h(t){return t.mimeType+';codecs="'+t.codecs+'"'}function b(t){var e=h(t);return new Promise((function(t){I((function(){a.changeType&&(r.debug("Changing SourceBuffer codec to ".concat(e)),a.changeType(e)),t()}))}))}function y(t){return a=u.getTextSourceBuffer(t),Promise.resolve()}function v(){if("function"==typeof a.addEventListener)try{a.addEventListener("updateend",k,!1),a.addEventListener("error",A,!1),a.addEventListener("abort",A,!1)}catch(t){o=setInterval(k,50)}else o=setInterval(k,50)}function E(t){return new Promise((function(e){a&&s.get().streaming.buffer.useAppendWindow?I((function(){try{if(!a)return void e();var n=g.duration,o=0;t&&!isNaN(t.start)&&!isNaN(t.duration)&&isFinite(t.duration)&&(n=t.start+t.duration),t&&!isNaN(t.start)&&(o=t.start),a.appendWindowEnd===n&&a.appendWindowStart===o||(a.appendWindowStart=0,a.appendWindowEnd=n+.01,a.appendWindowStart=Math.max(o-.1,0),r.debug("Updated append window for ".concat(i.type,". Set start to ").concat(a.appendWindowStart," and end to ").concat(a.appendWindowEnd))),e()}catch(t){r.warn("Failed to set append window"),e()}})):e()}))}function _(t){return new Promise((function(e){a?I((function(){try{a.timestampOffset===t||isNaN(t)||(a.timestampOffset=t,r.debug("Set MSE timestamp offset to ".concat(t))),e()}catch(t){e()}})):e()}))}function w(){if(!m&&d.length>0){m=!0;var t=d[0];d.splice(0,1);var e=function(){m=!1,d.length>0&&w.call(this),t&&t.data&&t.data.segmentType&&t.data.segmentType!==z.w.INIT_SEGMENT_TYPE&&delete t.data.bytes,t.promise.resolve({chunk:t.data})};try{p=t.request,0===t.data.bytes.byteLength?e.call(this):(a.appendBuffer?a.appendBuffer(t.data.bytes):a.append(t.data.bytes,t.data),I(e.bind(this)))}catch(e){r.fatal('SourceBuffer append failed "'+e+'"'),d.length>0?w():m=!1,delete t.data.bytes,t.promise.reject({chunk:t.data,error:new H.Z(e.code,e.message)})}}}function T(){f.length>0&&(a.updating||(f.shift()(),T()))}function k(){a.updating||T()}function A(t){var e,r,a=t.target||{};e=R.Z.SOURCE_BUFFER_ERROR,r={error:a,lastRequestAppended:p}||{},c.trigger(e,r,{streamId:i.streamInfo.id,mediaType:n})}function I(t){f.push(t),a.updating||T()}return e={abort:function(){return new Promise((function(t){try{d=[],"open"===g.readyState?I((function(){try{a&&a.abort(),t()}catch(e){t()}})):a&&a.setTextTrack&&"ended"===g.readyState?(a.abort(),t()):t()}catch(e){t()}}))},append:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(r,a){t?(d.push({data:t,promise:{resolve:r,reject:a},request:n}),I(w.bind(e))):a({chunk:t,error:new H.Z(Q.APPEND_ERROR_CODE,Q.APPEND_ERROR_MESSAGE)})}))},changeType:b,getAllBufferRanges:function(){try{return a.buffered}catch(t){return r.error("getAllBufferRanges exception: "+t.message),null}},getBuffer:function(){return a},getType:function(){return n},initializeForFirstUse:function(t,e,r){n=(i=e).type;var o=r?h(r):e.codec;try{if(o.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))return y(t);a=g.addSourceBuffer(o),v();var l=[];return l.push(E(i.streamInfo)),r&&void 0!==r.mseTimeOffset&&l.push(_(r.mseTimeOffset)),Promise.all(l)}catch(e){return i.type==S.Z.TEXT&&!i.isFragmented||-1!==o.indexOf('codecs="stpp')||-1!==o.indexOf('codecs="vtt')||-1!==o.indexOf("text/vtt")?y(t):Promise.reject(e)}},initializeForStreamSwitch:function(t,e,r){n=(i=t).type,function(t){a=t.getBuffer()}(r),v();var o=[];return o.push(new Promise((function(t){I((function(){var e=a.appendWindowStart,n=a.appendWindowEnd;a&&(a.abort(),a.appendWindowStart=e,a.appendWindowEnd=n),t()}))}))),o.push(E(i.streamInfo)),s.get().streaming.buffer.useChangeTypeForTrackSwitch&&o.push(b(e)),e&&void 0!==e.mseTimeOffset&&o.push(_(e.mseTimeOffset)),Promise.all(o)},remove:function(t){return new Promise((function(e,n){var r=t.start,i=t.end;r>=0&&i>r?I((function(){try{a.remove(r,i),I((function(){e({from:r,to:i,unintended:!1}),t.resolve&&t.resolve()}))}catch(e){n({from:r,to:i,unintended:!1,error:new H.Z(Q.REMOVE_ERROR_CODE,Q.REMOVE_ERROR_MESSAGE)}),t.reject&&t.reject(e)}})):e()}))},reset:function(){if(a){try{f=[],function(){try{"function"==typeof a.removeEventListener&&(a.removeEventListener("updateend",k,!1),a.removeEventListener("error",A,!1),a.removeEventListener("abort",A,!1)),clearInterval(o)}catch(t){r.error(t)}}(),m=!1,d=[],a.getClassName&&"TextSourceBuffer"===a.getClassName()||(r.debug("Removing sourcebuffer from media source"),g.removeSourceBuffer(a))}catch(t){}a=null}p=null},updateAppendWindow:E,updateTimestampOffset:_},r=(0,C.Z)(l).getInstance().getLogger(e),e}J.__dashjs_factory_name="SourceBufferSink";var tt=N.Z.getClassFactory(J);function et(t){var e,n,r,a=this.context,i=[],o=t;function l(t,e){return i=i.filter((function(n){return!((isNaN(e)||n.start<e)&&(isNaN(t)||n.end>t))})),Promise.resolve()}return e={getAllBufferRanges:function(){for(var t=[],e=0;e<i.length;e++){var n=i[e];0===t.length||n.start>t[t.length-1].end?t.push({start:n.start,end:n.end}):t[t.length-1].end=n.end}var r={start:function(e){return t[e].start},end:function(e){return t[e].end}};return Object.defineProperty(r,"length",{get:function(){return t.length}}),r},append:function(t){return"InitializationSegment"!==t.segmentType?(i.push(t),i.sort((function(t,e){return t.start-e.start})),r=null):r=t,n.debug("PreBufferSink appended chunk s: "+t.start+"; e: "+t.end),o&&o({chunk:t}),Promise.resolve()},remove:l,abort:function(){return Promise.resolve()},discharge:function(t,e){var n=function(t,e){return i.filter((function(n){return(isNaN(e)||n.start<e)&&(isNaN(t)||n.end>t)}))}(t,e);return r&&(n.push(r),r=null),l(t,e),n},reset:function(){i=[],r=null,o=null},updateTimestampOffset:function(){return Promise.resolve()},waitForUpdateEnd:function(t){t()},getBuffer:function(){return this}},n=(0,C.Z)(a).getInstance().getLogger(e),e}et.__dashjs_factory_name="PreBufferSink";var nt=N.Z.getClassFactory(et);function rt(){var t={};return{save:function(e){var n=e.streamId,r=e.representation.id;t[n]=t[n]||{},t[n][r]=e},extract:function(e,n){return t&&t[e]&&t[e][n]?t[e][n]:null},reset:function(){t={}}}}rt.__dashjs_factory_name="InitCache";var at=N.Z.getSingletonFactory(rt),it=.01,ot="BufferController";function lt(t){t=t||{};var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E,_,w=this.context,T=(0,I.Z)(w).getInstance(),k=t.errHandler,N=t.fragmentModel,D=t.representationController,O=t.textController,P=t.playbackController,M=t.streamInfo,L=t.type,j=t.settings;function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(n,r){o=t,u&&e&&"function"==typeof u.discharge?(c=u,U(e).then((function(){n()})).catch((function(t){r(t)}))):n()}))}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise((function(r,a){y&&t?o?(f=!1,function(t,e){return new Promise((function(r,a){u=tt(w).create({mediaSource:o,textController:O,eventBus:T}),function(t,e){var n=D.getCurrentRepresentation();return e&&e[L]&&(L===S.Z.VIDEO||L===S.Z.AUDIO)?u.initializeForStreamSwitch(t,n,e[L]):u.initializeForFirstUse(M,t,n)}(t,e).then((function(){return pt(D.getCurrentRepresentation())})).then((function(){r(u)})).catch((function(t){n.fatal("Caught error on create SourceBuffer: "+t),k.error(new H.Z(Q.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,Q.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+L)),a(t)}))}))}(t,e).then((function(t){r(t)})).catch((function(t){a(t)}))):(f=!0,function(){var t=this;return new Promise((function(e,n){u=nt(w).create(V.bind(t)),pt(D.getCurrentRepresentation()).then((function(){e(u)})).catch((function(){n()}))}))}().then((function(t){r(t)})).catch((function(t){a(t)}))):r(null)}))}function q(t){j.get().streaming.cacheInitSegments&&(n.info("Init fragment finished loading saving to",L+"'s init cache"),y.save(t.chunk)),n.debug("Append Init fragment",L," with representationId:",t.chunk.representation.id," and quality:",t.chunk.quality,", data size:",t.chunk.bytes.byteLength),Z(t.chunk)}function B(t){Z(t.chunk,t.request)}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;u&&(u.append(t,e).then((function(t){V(t)})).catch((function(t){V(t)})),t.representation.mediaInfo.type===S.Z.VIDEO&&Tt(R.Z.VIDEO_CHUNK_RECEIVED,{chunk:t}))}function Y(t){if(t&&t.length>0)for(var e=0,r=t.length;e<r;e++)n.debug("Buffered range: "+t.start(e)+" - "+t.end(e)+", currentTime = ",P.getTime())}function V(t){if(t.error)return 22===t.error.code&&function(){if(b=!0,i=.8*Et(),n.warn("Quota exceeded, Critical Buffer: "+i),i>0){var t=Math.max(.2*i,1),e=i-t,r=Math.min(j.get().streaming.buffer.bufferTimeAtTopQuality,.9*e),a=Math.min(j.get().streaming.buffer.bufferTimeAtTopQualityLongForm,.9*e),o={streaming:{buffer:{bufferToKeep:parseFloat(t.toFixed(5)),bufferTimeAtTopQuality:parseFloat(r.toFixed(5)),bufferTimeAtTopQualityLongForm:parseFloat(a.toFixed(5))}}};j.update(o)}}(),void(22!==t.error.code&&wt()||(n.warn("Clearing playback buffer to overcome quota exceed situation"),Tt(R.Z.QUOTA_EXCEEDED,{criticalBufferLevel:i,quotaExceededTime:t.chunk.start}),dt(ft())));if(u&&(rt(),b=!1,(g=t.chunk)&&g.endFragment)){g&&!isNaN(g.index)&&(l=Math.max(g.index,l),lt());var e=u.getAllBufferRanges();g.segmentType===z.w.MEDIA_SEGMENT_TYPE&&(Y(e),X(),function(){if(!isNaN(_)&&!f)if(L===S.Z.AUDIO||L===S.Z.VIDEO){var t=P.getTime(),e=et(t,0),n=et(_,0);if(e&&n&&e.start===n.start)_=NaN;else{var r=D.getCurrentRepresentation().segmentDuration,a=et(_,r);a&&(j.get().streaming.buffer.enableSeekDecorrelationFix&&Math.abs(t-_)>r?_<=a.end&&P.seek(Math.max(_,a.start),!1,!0):t<a.start&&P.seek(a.start,!1,!0))}}else _=NaN}());var r=!1;d&&(d.indexOf(g)>0&&(r=!0),d=null),g&&!r&&Tt(R.Z.BYTES_APPENDED_END_FRAGMENT,{startTime:g.start,index:g.index,bufferedRanges:e,segmentType:g.segmentType,mediaType:L,representationId:g.representation.id})}}function K(){return new Promise((function(t,e){var n=W();if(!n||0===n.length)return X(),void t();dt(n).then((function(){t()})).catch((function(t){e(t)}))}))}function W(t){var e=[],r=u.getAllBufferRanges();if(!r||0===r.length)return e;if(!t&&0!==t||isNaN(t))e.push({start:r.start(0),end:r.end(r.length-1)+.5});else{var a=function(t,e){var n=j.get().streaming.buffer.bufferToKeep,r=e.start(0);if(t-r>n){var a=Math.max(0,t-n),i=N.getRequests({state:G.FRAGMENT_MODEL_EXECUTED,time:t,threshold:it})[0];if(i&&(a=Math.min(i.startTime,a)),a>0)return{start:r,end:a}}return null}(t,r),i=function(t,e){var r=e.end(e.length-1)+.5,a=_t(t),i=M.manifestInfo.duration>=j.get().streaming.buffer.longFormContentDurationThreshold?j.get().streaming.buffer.bufferTimeAtTopQualityLongForm:j.get().streaming.buffer.bufferTimeAtTopQuality,o=isNaN(a)?t:Math.min(a,t+i);if(o>=e.end(e.length-1))return null;var l=N.getRequests({state:G.FRAGMENT_MODEL_EXECUTED,time:t,threshold:it})[0];if(l&&(o=Math.max(l.startTime+l.duration,o)),j.get().streaming.buffer.avoidCurrentTimeRangePruning)for(var s=0;s<e.length;s++)if(e.start(s)<=t&&t<=e.end(s)&&e.start(s)<=o&&o<=e.end(s)){var u=o;o=s+1<e.length?e.start(s+1):e.end(s)+1,n.debug("Buffered range ["+e.start(s)+", "+e.end(s)+"] overlaps with targetTime "+t+" and range to be pruned ["+u+", "+r+"], using ["+o+", "+r+"] instead"+(o<r?"":" (no actual pruning)"));break}return o<e.end(e.length-1)?{start:o,end:r}:null}(t,r);a&&e.push(a),i&&e.push(i)}return e}function X(){(!E||L===S.Z.TEXT&&O.isTextEnabled())&&rt()}function $(){st()}function J(){st(),_=NaN}function et(t,e){if(!u)return null;var n,r,a=u.getAllBufferRanges(),i=0,o=0,l=null,s=null,c=0,f=isNaN(e)?.15:e;if(null!=a){for(r=0,n=a.length;r<n;r++)if(i=a.start(r),o=a.end(r),null===l)c=Math.abs(i-t),(t>=i&&t<o||c<=f)&&(l=i,s=o);else{if(!((c=i-s)<=f))break;s=o}if(null!==l)return{start:l,end:s}}return null}function rt(){if(P){var t=P.getTime()||0;f&&(t=isNaN(_)?0:_);var e=j.get().streaming.gaps.jumpGaps&&!isNaN(j.get().streaming.gaps.smallGapLimit)?j.get().streaming.gaps.smallGapLimit:NaN;a=Math.max(function(t,e){var n;return j.get().streaming.gaps.jumpGaps&&(e=j.get().streaming.gaps.smallGapLimit),null===(n=et(t,e))?0:n.end-t}(t,e),0),Tt(R.Z.BUFFER_LEVEL_UPDATED,{mediaType:L,bufferLevel:a}),st()}}function lt(){var t=l>=s-1,e=P.getTimeToStreamEnd(M)-a<1e-5;!t&&!e||r||(vt(!0),n.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED for stream id ".concat(M.id," and type ").concat(L)))}function st(){L!==S.Z.AUDIO&&L!==S.Z.VIDEO||((!P.getLowLatencyModeEnabled()&&a<j.get().streaming.buffer.stallThreshold||0===a)&&!r?ut(A.BUFFER_EMPTY):(r||a>=j.get().streaming.buffer.stallThreshold||P.getLowLatencyModeEnabled()&&a>0)&&ut(A.BUFFER_LOADED))}function ut(t){m===t||t===A.BUFFER_EMPTY&&0===P.getTime()||L===S.Z.TEXT&&!O.isTextEnabled()||(m=t,Tt(R.Z.BUFFER_LEVEL_STATE_CHANGED,{state:t}),Tt(t===A.BUFFER_LOADED?R.Z.BUFFER_LOADED:R.Z.BUFFER_EMPTY),n.debug(t===A.BUFFER_LOADED?"Got enough buffer to start":"Waiting for more buffer before starting playback"))}function ct(){u&&L!==S.Z.TEXT&&(r||dt(ft()))}function ft(){var t=[],e=u.getAllBufferRanges();if(!e||0===e.length)return t;var n=P.getTime(),r=Math.max(0,n-j.get().streaming.buffer.bufferToKeep),a=N.getRequests({state:G.FRAGMENT_MODEL_EXECUTED,time:n,threshold:it})[0];if(a)r=Math.min(a.startTime,r);else if(0===n&&P.getIsDynamic())return[];if(e.start(0)<=r){for(var i={start:0,end:r},o=0;o<e.length&&e.end(o)<=r;o++)i.end=e.end(o);i.start<i.end&&t.push(i)}return t}function dt(t){return new Promise((function(e,n){if(t&&u&&0!==t.length){var r=[];t.forEach((function(t){r.push(function(t){return new Promise((function(e,n){t.resolve=e,t.reject=n,v.push(t)}))}(t))})),h||mt(),Promise.all(r).then((function(){e()})).catch((function(t){n(t)}))}else e()}))}function mt(){try{if(0===v.length||!u)return n.debug("Nothing to prune, halt pruning"),v=[],void(h=!1);var t=u.getBuffer();if(!t||!t.buffered||0===t.buffered.length)return n.debug("SourceBuffer is empty (or does not exist), halt pruning"),v=[],void(h=!1);var e=v.shift();n.debug("".concat(L,": Removing buffer from: ").concat(e.start," to ").concat(e.end)),h=!0,P.getTime()<e.end&&vt(!1),u.remove(e).then((function(t){gt(t)})).catch((function(t){gt(t)}))}catch(t){h=!1}}function gt(t){n.debug("onRemoved buffer from:",t.from,"to",t.to),u&&(Y(u.getAllBufferRanges()),0===v.length&&(h=!1,rt()),t.unintended&&(n.warn("Detected unintended removal from:",t.from,"to",t.to,"setting streamprocessor time to",t.from),Tt(R.Z.SEEK_TARGET,{time:t.from})),h?mt():(E?E=!1:rt(),Tt(R.Z.BUFFER_CLEARED,{from:t.from,to:t.to,unintended:t.unintended,hasEnoughSpaceToAppend:wt(),quotaExceeded:b})))}function pt(t){return new Promise((function(e){t&&void 0!==t.mseTimeOffset&&u&&u.updateTimestampOffset?u.updateTimestampOffset(t.mseTimeOffset).then((function(){e()})).catch((function(){e()})):e()}))}function ht(){return u&&!r?u.updateAppendWindow(M):Promise.resolve()}function bt(){++p*(j.get().streaming.wallclockTimeUpdateInterval/1e3)>=j.get().streaming.buffer.bufferPruningInterval&&(p=0,ct())}function yt(){st()}function vt(t){(r=t)?Tt(R.Z.BUFFERING_COMPLETED):s=Number.POSITIVE_INFINITY}function Et(){try{var t,e,n=u.getAllBufferRanges(),r=0;if(!n)return r;for(e=0,t=n.length;e<t;e++)r+=n.end(e)-n.start(e);return r}catch(t){return 0}}function _t(t){try{var e=t,n=u.getAllBufferRanges();if(!n||0===n.length)return NaN;for(var r=0;e===t&&r<n.length;){var a=n.start(r),i=n.end(r);e>=a&&e<=i&&(e=i),r+=1}return e===t?NaN:e}catch(t){}}function wt(){var t=Et();return isNaN(t)||t<i}function Tt(t,e){var n=e||{};T.trigger(t,n,{streamId:M.id,mediaType:L})}function St(t,e){if(i=Number.POSITIVE_INFINITY,m=void 0,s=Number.POSITIVE_INFINITY,l=0,g=null,r=!1,h=!1,b=!1,a=0,p=0,v=[],_=NaN,f=!1,u){var n=u;u=null,t||e||n.abort().then((function(){n.reset(e),n=null}))}E=!1}return e={appendInitSegmentFromCache:function(t){var e=y.extract(M.id,t);return!!e&&(n.info("Append Init fragment",L," with representationId:",e.representation.id," and quality:",e.quality,", data size:",e.bytes.byteLength),Z(e),!0)},clearBuffers:dt,createBufferSink:U,dischargePreBuffer:function(){if(u&&c&&"function"==typeof c.discharge){var t=c.getAllBufferRanges();if(t.length>0){for(var e="Beginning "+L+"PreBuffer discharge, adding buffer for:",r=0;r<t.length;r++)e+=" start: "+t.start(r)+", end: "+t.end(r)+";";n.debug(e)}else n.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");d=[];for(var a=c.discharge(),i=null,o=0;o<a.length;o++){var l=a[o];if(l.segmentType!==z.w.INIT_SEGMENT_TYPE){var s=y.extract(l.streamId,l.representation.id);s&&i!==s&&(d.push(s),u.append(s),i=s)}d.push(l),u.append(l)}c.reset(),c=null}},getAllRangesWithSafetyFactor:W,getBuffer:function(){return u},getBufferControllerType:function(){return ot},getBufferLevel:function(){return a},getContinuousBufferTimeForTargetTime:_t,getIsBufferingCompleted:function(){return r},getIsPruningInProgress:function(){return h},getMediaSource:function(){return o},getRangeAt:et,getStreamId:function(){return M.id},getType:function(){return L},hasBufferAtTime:function(t){try{var e=u.getAllBufferRanges();if(!e||0===e.length)return!1;for(var r=0;r<e.length;){var a=e.start(r),i=e.end(r);if(t>=a&&t<=i)return!0;r+=1}return!1}catch(t){return n.error(t),!1}},initialize:function(t){F(t),T.on(R.Z.INIT_FRAGMENT_LOADED,q,e),T.on(R.Z.MEDIA_FRAGMENT_LOADED,B,e),T.on(R.Z.WALLCLOCK_TIME_UPDATED,bt,e),T.on(x.Z.PLAYBACK_PLAYING,J,e),T.on(x.Z.PLAYBACK_PROGRESS,X,e),T.on(x.Z.PLAYBACK_TIME_UPDATED,X,e),T.on(x.Z.PLAYBACK_RATE_CHANGED,yt,e),T.on(x.Z.PLAYBACK_STALLED,$,e)},prepareForForceReplacementQualitySwitch:function(t){return new Promise((function(e,n){u.abort().then((function(){return ht()})).then((function(){return K()})).then((function(){return pt(t)})).then((function(){vt(!1),e()})).catch((function(t){n(t)}))}))},prepareForNonReplacementTrackSwitch:function(t){return new Promise((function(e,n){ht().then((function(){return j.get().streaming.buffer.useChangeTypeForTrackSwitch?u.changeType(t):Promise.resolve()})).then((function(){e()})).catch((function(t){n(t)}))}))},prepareForPlaybackSeek:function(){return r&&vt(!1),u.abort()},prepareForReplacementTrackSwitch:function(t){return new Promise((function(e,n){u.abort().then((function(){return ht()})).then((function(){return j.get().streaming.buffer.useChangeTypeForTrackSwitch?u.changeType(t):Promise.resolve()})).then((function(){return K()})).then((function(){vt(!1),e()})).catch((function(t){n(t)}))}))},pruneAllSafely:K,pruneBuffer:ct,reset:function(t,e){T.off(R.Z.INIT_FRAGMENT_LOADED,q,this),T.off(R.Z.MEDIA_FRAGMENT_LOADED,B,this),T.off(R.Z.WALLCLOCK_TIME_UPDATED,bt,this),T.off(x.Z.PLAYBACK_PLAYING,J,this),T.off(x.Z.PLAYBACK_PROGRESS,X,this),T.off(x.Z.PLAYBACK_TIME_UPDATED,X,this),T.off(x.Z.PLAYBACK_RATE_CHANGED,yt,this),T.off(x.Z.PLAYBACK_STALLED,$,this),St(t,e)},segmentRequestingCompleted:function(t){isNaN(t)||(s=t,lt())},setIsBufferingCompleted:vt,setMediaSource:F,setSeekTarget:function(t){_=t},updateAppendWindow:ht,updateBufferTimestampOffset:pt},n=(0,C.Z)(w).getInstance().getLogger(e),y=at(w).getInstance(),St(),e}lt.__dashjs_factory_name=ot;var st=N.Z.getClassFactory(lt),ut="NotFragmentedTextBufferController";function ct(t){t=t||{};var e,n,r,a,i,o,l=this.context,s=(0,I.Z)(l).getInstance(),u=t.textController,c=t.errHandler,f=t.streamInfo,d=t.type;function m(t){a=t}function g(t){var e,r,a;n!==t&&(n=t)&&(e=R.Z.BUFFERING_COMPLETED,a=r||{},s.trigger(e,a,{streamId:f.id,mediaType:d}))}function p(t){t.chunk.bytes&&!n&&(o.save(t.chunk),i.append(t.chunk),g(!0))}return e={initialize:function(t){m(t)},getStreamId:function(){return f.id},getType:function(){return d},getBufferControllerType:function(){return ut},createBufferSink:function(t){return new Promise((function(e,n){try{(i=tt(l).create({mediaSource:a,textController:u,eventBus:s})).initializeForFirstUse(f,t),r||(i.getBuffer()&&"function"==typeof i.getBuffer().initialize&&i.getBuffer().initialize(),r=!0),e(i)}catch(t){c.error(new H.Z(Q.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,Q.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+d)),n(t)}}))},dischargePreBuffer:function(){},getBuffer:function(){return i},getBufferLevel:function(){return 0},getRangeAt:function(){return null},pruneBuffer:function(){},hasBufferAtTime:function(){return!0},getAllRangesWithSafetyFactor:function(){return[]},getContinuousBufferTimeForTargetTime:function(){return Number.POSITIVE_INFINITY},setMediaSource:m,getMediaSource:function(){return a},appendInitSegmentFromCache:function(t){return null!==o.extract(f.id,t)},getIsBufferingCompleted:function(){return n},setIsBufferingCompleted:g,getIsPruningInProgress:function(){return!1},reset:function(t){s.off(R.Z.INIT_FRAGMENT_LOADED,p,e),!t&&i&&(i.abort(),i.reset(),i=null)},clearBuffers:function(){return Promise.resolve()},prepareForPlaybackSeek:function(){return Promise.resolve()},prepareForReplacementTrackSwitch:function(){return n=!1,Promise.resolve()},setSeekTarget:function(){},updateAppendWindow:function(){return Promise.resolve()},pruneAllSafely:function(){return Promise.resolve()},updateBufferTimestampOffset:function(){return Promise.resolve()},segmentRequestingCompleted:function(){}},r=!1,a=null,n=!1,o=at(l).getInstance(),s.on(R.Z.INIT_FRAGMENT_LOADED,p,e),e}ct.__dashjs_factory_name=ut;var ft=N.Z.getClassFactory(ct);function dt(t){t=t||{};var e,n,r,a,i,o,l,s,u,c,f,d,m=this.context,g=(0,I.Z)(m).getInstance(),p=t.dashMetrics,h=t.mediaPlayerModel,b=t.fragmentModel,y=t.abrController,v=t.playbackController,E=t.textController,_=t.type,w=t.bufferController,T=t.representationController,k=t.settings;function N(){f=!0}function D(){f=!1}function O(t){if(!w.getIsBufferingCompleted()){z();var e=isNaN(t)?0:t;i=setTimeout(P,e)}}function z(){i&&(clearTimeout(i),i=null)}function P(){try{if(function(){try{return _===S.Z.TEXT&&!E.isTextEnabled()||v.isPaused()&&(!v.getStreamController().getInitialPlayback()||!v.getStreamController().getAutoPlay())&&!k.get().streaming.scheduling.scheduleWhilePaused}catch(t){return!1}}())return void z();if(function(){try{return!!f&&T.getCurrentRepresentation()&&(null==s||u||function(){var t=T.getCurrentRepresentation();return!_||!t||p.getCurrentBufferLevel(_)<M()}())}catch(t){return!1}}()){var t=!1;d&&(t=y.checkPlaybackQuality(_,n.id)),t||(a=T.getCurrentRepresentation(),c||a.id!==s||u?(u?(r.debug("Switch track for "+_+", representation id = "+a.id),u=!1):r.debug("Quality has changed, get init request for representationid = "+a.id),g.trigger(R.Z.INIT_FRAGMENT_NEEDED,{representationId:a.id,sender:e},{streamId:n.id,mediaType:_}),d=!1,c=!1):(r.debug("Media segment needed for ".concat(_," and stream id ").concat(n.id)),g.trigger(R.Z.MEDIA_FRAGMENT_NEEDED,{},{streamId:n.id,mediaType:_}),d=!0))}else O(v.getLowLatencyModeEnabled()?k.get().streaming.scheduling.lowLatencyTimeout:k.get().streaming.scheduling.defaultTimeout)}catch(t){O(v.getLowLatencyModeEnabled()?k.get().streaming.scheduling.lowLatencyTimeout:k.get().streaming.scheduling.defaultTimeout)}var a}function M(){var t=NaN,e=T.getCurrentRepresentation();return _&&e?(t=_===S.Z.TEXT?function(){try{if(E.isTextEnabled()){var t=T.getCurrentRepresentation();if(isNaN(t.fragmentDuration)){var e=p.getCurrentSchedulingInfo(A.SCHEDULING_INFO);return e?e.duration:0}return t.fragmentDuration}return 0}catch(t){return 0}}():_===S.Z.AUDIO&&o?function(){try{var t=p.getCurrentBufferLevel(S.Z.VIDEO),e=T.getCurrentRepresentation();return isNaN(e.fragmentDuration)?t+1:Math.max(t+1,e.fragmentDuration)}catch(t){return 0}}():function(){try{var t=T.getCurrentRepresentation(),e=t.mediaInfo.streamInfo;return y.isPlayingAtTopQuality(t)?e.manifestInfo.duration>=k.get().streaming.buffer.longFormContentDurationThreshold?k.get().streaming.buffer.bufferTimeAtTopQualityLongForm:k.get().streaming.buffer.bufferTimeAtTopQuality:h.getBufferTimeDefault()}catch(t){return h.getBufferTimeDefault()}}(),t):t}function L(){j(!0)}function j(t){if(v&&b){var e=b.getRequests({state:G.FRAGMENT_MODEL_EXECUTED,time:v.getTime(),threshold:0})[0];e&&v.getTime()>=e.startTime&&((!l.representation||e.representation.mediaInfo.type===l.representation.mediaInfo.type&&e.representation.mediaInfo.index!==l.representation.mediaInfo.index)&&t&&(r.debug("Track change rendered for streamId ".concat(n.id," and type ").concat(_)),g.trigger(R.Z.TRACK_CHANGE_RENDERED,{mediaType:_,oldMediaInfo:l&&l.representation&&l.representation.mediaInfo?l.representation.mediaInfo:null,newMediaInfo:e.representation.mediaInfo,streamId:n.id})),l.representation&&e.representation.id===l.representation.id||!t||(r.debug("Quality change rendered for streamId ".concat(n.id," and type ").concat(_)),g.trigger(R.Z.QUALITY_CHANGE_RENDERED,{mediaType:_,oldRepresentation:l.representation?l.representation:null,newRepresentation:e.representation,streamId:n.id})),l.representation=e.representation)}}function F(){b.abortRequests(),z()}function U(){k.get().streaming.scheduling.scheduleWhilePaused||O()}function q(t){p.updatePlayListTraceMetrics({playbackspeed:t.playbackRate.toString()})}function B(){d=!0,a=0,s=null,l={representation:null},u=!1,c=!1,f=!0}return e={initialize:function(t){o=t,g.on(R.Z.URL_RESOLUTION_FAILED,F,e),g.on(x.Z.PLAYBACK_STARTED,U,e),g.on(x.Z.PLAYBACK_RATE_CHANGED,q,e),g.on(x.Z.PLAYBACK_TIME_UPDATED,L,e),g.on(x.Z.MANAGED_MEDIA_SOURCE_START_STREAMING,N,e),g.on(x.Z.MANAGED_MEDIA_SOURCE_END_STREAMING,D,e)},getType:function(){return _},getStreamId:function(){return n.id},setTimeToLoadDelay:function(t){a=t},getTimeToLoadDelay:function(){return a},setSwitchTrack:function(t){u=t},getSwitchTrack:function(){return u},startScheduleTimer:O,clearScheduleTimer:z,reset:function(){g.off(R.Z.URL_RESOLUTION_FAILED,F,e),g.off(x.Z.PLAYBACK_STARTED,U,e),g.off(x.Z.PLAYBACK_RATE_CHANGED,q,e),g.off(x.Z.PLAYBACK_TIME_UPDATED,L,e),g.off(x.Z.MANAGED_MEDIA_SOURCE_START_STREAMING,N,e),g.off(x.Z.MANAGED_MEDIA_SOURCE_END_STREAMING,D,e),z(),j(!1),B(),n=null},getBufferTarget:M,getPlaybackController:function(){return v},setCheckPlaybackQuality:function(t){d=t},setInitSegmentRequired:function(t){c=t},setLastInitializedRepresentationId:function(t){s=t}},r=(0,C.Z)(m).getInstance().getLogger(e),B(),n=t.streamInfo,e}dt.__dashjs_factory_name="ScheduleController";var mt=N.Z.getClassFactory(dt);function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==gt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===gt(i)?i:String(i)),r)}var a,i}function ht(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var bt=ht((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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.wallStartTime=NaN,this.representation=null}));function yt(t,e){for(;t.length<e;)t="0"+t;return t}function vt(t){return t?t.split("$$").join("$"):t}function Et(t,e){if(!e||!t||-1===t.indexOf("$RepresentationID$"))return t;var n=e.toString();return t.split("$RepresentationID$").join(n)}function _t(t,e,n){var r,a,i,o,l,s,u=e.length;if(!t)return t;for(;;){if((r=t.indexOf("$"+e))<0)return t;if((a=t.indexOf("$",r+u))<0)return t;if((i=t.indexOf("%0",r+u))>r&&i<a)switch(o=t.charAt(a-1),l=parseInt(t.substring(i+2,a-1),10),o){case"d":case"i":case"u":s=yt(n.toString(),l);break;case"x":s=yt(n.toString(16),l);break;case"X":s=yt(n.toString(16),l).toUpperCase();break;case"o":s=yt(n.toString(8),l);break;default:return t}else s=n;t=t.substring(0,r)+s+t.substring(a+1)}}function wt(t,e,n,r,a,i,o,l){var s,u=new bt;return u.representation=t,u.duration=e,u.presentationStartTime=n,u.mediaStartTime=r,u.availabilityStartTime=a.calcAvailabilityStartTimeFromPresentationTime(i,t,o),u.availabilityEndTime=a.calcAvailabilityEndTimeFromPresentationTime(i+e,t,o),u.wallStartTime=a.calcWallTimeForSegment(u,o),u.replacementNumber=(s=l,u.representation.startNumber+s),u.index=l,u}function Tt(t,e,n,r){var a=e.adaptation.period;if(isFinite(a.duration)&&a.start+a.duration<=n.presentationStartTime)return!1;if(r){if("INF"===e.availabilityTimeOffset)return!0;var i=t.getClientReferenceTime();return n.availabilityStartTime.getTime()<=i&&(!isFinite(n.availabilityEndTime)||n.availabilityEndTime.getTime()>=i)}return!0}function St(t,e,n,r){var a,i,o;a=n.segmentDuration,isNaN(a)&&(a=n.adaptation.period.duration),i=parseFloat((n.adaptation.period.start+r*a).toFixed(5)),o=parseFloat((i+a).toFixed(5));var l=wt(n,a,i,t.calcMediaTimeFromPresentationTime(i,n),t,o,e,r);return Tt(t,n,l,e)?l:null}function kt(t,e,n,r,a,i,o,l,s,u){var c,f,d=r/i,m=a/i;return c=t.calcPresentationTimeFromMediaTime(d,n),Tt(t,n,f=wt(n,m,c,d,t,c+m,e,s),e)?(f.replacementTime=u||r,o=_t(o,"Number",f.replacementNumber),o=_t(o,"Time",f.replacementTime),f.media=o,f.mediaRange=l,f):null}function At(t){var e,n,r,a=(t=t||{}).eventBus,i=t.events,o=t.abrController,l=t.dashMetrics,s=t.playbackController,u=t.timelineConverter,c=t.type,f=t.streamInfo,d=t.segmentsController,m=t.isDynamic;function g(){return c}function p(){return r}function h(){n=[]}function b(t){return new Promise((function(e,n){var r=t.hasInitialization(),a=t.hasSegments(),i=[];i.push(d.updateInitData(t,r)),i.push(d.updateSegmentData(t,a)),Promise.all(i).then((function(n){var r;n[0]&&!n[0].error&&(t=function(t,e){return e&&!e.error&&e.representation?e.representation:t}(t,n[0])),n[1]&&!n[1].error&&(t=function(t,e){if(e&&!e.error){var n,r,a,i,o=e.segments,l=[],s=0;for(n=0,r=o?o.length:0;n<r;n++)a=o[n],(i=kt(u,m,t,a.startTime,a.duration,a.timescale,a.media,a.mediaRange,s))&&(l.push(i),i=null,s++);return l.length>0&&(t.segments=l),t}}(t,n[1])),t.fragmentDuration=t.segmentDuration?t.segmentDuration:t.segments&&t.segments.length>0?t.segments[0].duration:NaN,(r=t).mediaFinishedInformation=d.getMediaFinishedInformation(r),function(t){var e,n=l.getCurrentManifestUpdate(),r=!1;if(n){for(var a=0;a<n.representationInfo.length;a++)if((e=n.representationInfo[a]).index===t.index&&e.mediaType===g()){r=!0;break}r||l.addManifestUpdateRepresentationInfo(t,g())}}(t),e()})).catch((function(t){n(t)}))}))}function y(t){!function(){if(!(o&&l&&s&&u))throw new Error(S.Z.MISSING_CONFIG_ERROR)}();var e=new Date,n=1e3*s.getTime();t&&l.addRepresentationSwitch(t.adaptation.type,e,n,t.id),a.trigger(x.Z.REPRESENTATION_SWITCH,{mediaType:c,streamId:f.id,currentRepresentation:t},{streamId:f.id,mediaType:c})}function v(t){if(!n||0===n.length)return null;var e=n.filter((function(e){return e.id===t}));return e.length>0?e[0]:null}function E(t){a.trigger(i.DATA_UPDATE_COMPLETED,{currentRepresentation:r,error:t},{streamId:f.id,mediaType:c})}function _(t){r&&r.id===t.id||y(t),r=t}function w(t){if(t.newDuration){var e=p();e&&e.adaptation.period&&(e.adaptation.period.duration=t.newDuration)}}return e={getCurrentRepresentation:p,getRepresentationById:v,getStreamId:function(){return f.id},getType:g,prepareQualityChange:function(t){var e=n.filter((function(e){return e.id===t.id}));e.length>0&&_(e[0])},reset:function(){a.off(x.Z.MANIFEST_VALIDITY_CHANGED,w,e),h()},updateData:function(t,e,a){return new Promise((function(i,u){if(n=t,_(v(a)),c!==S.Z.VIDEO&&c!==S.Z.AUDIO&&(c!==S.Z.TEXT||!e))return E(),void i();for(var d=[],m=0,g=n.length;m<g;m++){var p=n[m];d.push(b(p))}Promise.all(d).then((function(){!function(){o.setPlaybackQuality(c,f,r);var t=l.getCurrentDVRInfo(c);t&&l.updateManifestUpdateInfo({latency:t.range.end-s.getTime()}),E()}(),i()})).catch((function(t){u(t)}))}))}},h(),a.on(x.Z.MANIFEST_VALIDITY_CHANGED,w,e),e}At.__dashjs_factory_name="RepresentationController";var It=N.Z.getClassFactory(At),Rt=n(3644);function Nt(t){var e,n,r,a,i,o=(t=t||{}).eventBus,l=t.debug,s=t.urlUtils,u=t.type,c=t.streamInfo,f=t.segmentsController,d=t.timelineConverter,m=t.baseURLController;function g(){return u}function p(){r=null}function h(t,e,n){var r,a,i=m.resolve(n.path),o={};return i&&e!==i.url&&s.isRelative(e)?(r=i.url,a=i.serviceLocation,o=i.queryParams,e&&(r=s.resolve(e,r))):r=e,!s.isRelative(r)&&(t.url=r,t.serviceLocation=a,t.queryParams=o,!0)}function b(t,e){if(null==e)return null;var n=new j,r=e.representation,a=r.bandwidth,i=e.media;return i=_t(i,"Number",e.replacementNumber),i=_t(i,"Time",e.replacementTime),i=vt(i=Et(i=_t(i,"Bandwidth",a),r.id)),n.mediaType=g(),n.bandwidth=r.bandwidth,n.type=z.w.MEDIA_SEGMENT_TYPE,n.range=e.mediaRange,n.startTime=e.presentationStartTime,n.mediaStartTime=e.mediaStartTime,n.duration=e.duration,n.timescale=r.timescale,n.availabilityStartTime=e.availabilityStartTime,n.availabilityEndTime=e.availabilityEndTime,n.availabilityTimeComplete=r.availabilityTimeComplete,n.wallStartTime=e.wallStartTime,n.index=e.index,n.adaptationIndex=r.adaptation.index,n.representation=r,h(n,i,r)?n:void 0}function y(t,e,a){var i=null;if(!e||!e.segmentInfoType)return i;var o=f.getSegmentByTime(e,a);return o&&(r=o,n.debug("Index for time "+a+" is "+o.index),i=b(0,o)),i}function v(t,e,o){var l=null,s=f.getSegmentByIndex(e,o,r?r.mediaStartTime:-1);if(s)l=b(0,s),r=s;else{if(a&&!i)return n.debug(g()+" No segment found at index: "+o+". Wait for next loop"),null;i=!0}return l}function E(){n.debug("Dynamic stream complete"),i=!0}return e={getCurrentIndex:function(){return r?r.index:-1},getInitRequest:function(t,e){return e?function(t,e,n){var r=new j,i=e.adaptation.period,o=i.start;if(r.mediaType=n,r.type=z.w.INIT_SEGMENT_TYPE,r.range=e.range,r.availabilityStartTime=d.calcAvailabilityStartTimeFromPresentationTime(o,e,a),r.availabilityEndTime=d.calcAvailabilityEndTimeFromPresentationTime(o+i.duration,e,a),r.representation=e,h(r,e.initialization,e))return r.url=_t(r.url,"Bandwidth",e.bandwidth),r}(0,e,g()):null},getNextSegmentRequest:function(t,e){return e&&e.segmentInfoType?v(0,e,r?r.index+1:0):null},getNextSegmentRequestIdempotent:function(t,e){var n=r?r.index+1:0,a=f.getSegmentByIndex(e,n,r?r.mediaStartTime:-1);return a?b(0,a):null},getSegmentRequestForTime:y,getStreamId:function(){return c.id},getStreamInfo:function(){return c},getType:g,getValidTimeAheadOfTargetTime:function(t,e,n,r){try{if(isNaN(t)||!e||!n)return NaN;if(t<0&&(t=0),isNaN(r)&&(r=.5),y(0,n,t))return t;if(n.adaptation.period.start+n.adaptation.period.duration<t)return NaN;for(var a=isFinite(n.adaptation.period.duration)?n.adaptation.period.start+n.adaptation.period.duration:t+30,i=Math.min(t+r,a),o=NaN,l=null;i<=a;){var s=null;if(i<=a&&(s=y(0,n,i)),s){o=i,l=s;break}i+=r}if(l){var u=l.startTime+l.duration;return t>l.startTime&&u-t>r?t:!isNaN(l.startTime)&&t<l.startTime&&o>l.startTime?l.startTime+.001:Math.min(u-r,o)}return o}catch(t){return NaN}},initialize:function(t){a=t,i=!1,f.initialize(t)},isLastSegmentRequested:function(t,e){if(!t||!r)return!1;if(i)return!0;if(!isFinite(t.adaptation.period.duration))return!1;if(r.presentationStartTime+r.duration>e)return!1;if(t.mediaFinishedInformation&&!isNaN(t.mediaFinishedInformation.numberOfSegments)&&!isNaN(r.index)&&r.index>=t.mediaFinishedInformation.numberOfSegments-1){if(!a||t.segmentInfoType===k.Z.SEGMENT_TEMPLATE)return!0;if(a&&t.segmentInfoType===k.Z.SEGMENT_LIST&&t.adaptation.period.nextPeriodId)return!0}return!!(a&&t.adaptation.period.nextPeriodId&&t.segmentInfoType===k.Z.SEGMENT_TIMELINE&&t.mediaFinishedInformation&&!isNaN(t.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&r&&!isNaN(r.mediaStartTime)&&!isNaN(r.duration)&&r.mediaStartTime+r.duration>=t.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},repeatSegmentRequest:function(t,e){return e&&e.segmentInfoType?v(0,e,r?r.index:0):null},reset:function(){p(),o.off(x.Z.DYNAMIC_TO_STATIC,E,e)},_getRequestForSegment:b},n=l.getLogger(e),p(),o.on(x.Z.DYNAMIC_TO_STATIC,E,e),e}Nt.__dashjs_factory_name="DashHandler";var Ct=N.Z.getClassFactory(Nt);function xt(){var t,e=/^[a-z][a-z0-9+\-_.]*:/i,n=/^https?:\/\//i,r=/^https:\/\//i,a=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,i=function(t,e){try{return new window.URL(t,e).toString()}catch(e){return t}},o=function(t,e){var n=l;if(!e)return t;if(!c(t))return t;f(t)&&(n=s),d(t)&&(n=u);var r=n(e),a="/"!==r.charAt(r.length-1)&&"/"!==t.charAt(0)?"/":"";return[r,t].join(a)};function l(t){var e=t.indexOf("/"),n=t.lastIndexOf("/");return-1!==e?n===e+1?t:(-1!==t.indexOf("?")&&(t=t.substring(0,t.indexOf("?"))),t.substring(0,n+1)):""}function s(t){var e=t.match(a);return e?e[1]:""}function u(t){var n=t.match(e);return n?n[0]:""}function c(t){return!e.test(t)}function f(t){return c(t)&&"/"===t.charAt(0)}function d(t){return 0===t.indexOf("//")}return function(){try{new window.URL("x","http://y"),t=i}catch(t){}finally{t=t||o}}(),{parseBaseUrl:l,parseOrigin:s,parseScheme:u,isRelative:c,isPathAbsolute:f,isSchemeRelative:d,isHTTPURL:function(t){return n.test(t)},isHTTPS:function(t){return r.test(t)},removeHostname:function(t){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(t)[2].substring(1)},resolve:function(e,n){return t(e,n)}}}xt.__dashjs_factory_name="DefaultURLUtils";var Dt=N.Z.getSingletonFactory(xt);function Ot(){var t,e=[],n=this.context;function r(n,r,a){var i=function(n){var r;for(r=0;r<e.length;r++)if(e[r].regex.test(n))return e[r].utils;return t}(a||r);return i&&"function"==typeof i[n]?i[n](r,a):t[n](r,a)}return t=Dt(n).getInstance(),{registerUrlRegex:function(t,n){e.push({regex:t,utils:n})},parseBaseUrl:function(t){return r("parseBaseUrl",t)},parseOrigin:function(t){return r("parseOrigin",t)},parseScheme:function(t){return r("parseScheme",t)},isRelative:function(t){return r("isRelative",t)},isPathAbsolute:function(t){return r("isPathAbsolute",t)},isSchemeRelative:function(t){return r("isSchemeRelative",t)},isHTTPURL:function(t){return r("isHTTPURL",t)},isHTTPS:function(t){return r("isHTTPS",t)},removeHostname:function(t){return r("removeHostname",t)},resolve:function(t,e){return r("resolve",t,e)}}}Ot.__dashjs_factory_name="URLUtils";var zt=N.Z.getSingletonFactory(Ot);function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Pt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Pt(i)?i:String(i)),r)}var a,i}function Lt(t,e,n){return e&&Mt(t.prototype,e),n&&Mt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ft=Lt((function t(){jt(this,t),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]}));Ft.INITIAL_PLAYOUT_START_REASON="initial_playout",Ft.SEEK_START_REASON="seek",Ft.RESUME_FROM_PAUSE_START_REASON="resume",Ft.METRICS_COLLECTION_START_REASON="metrics_collection_start";var Ut=Lt((function t(){jt(this,t),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null}));function qt(t,e){var n=(t=t||{}).timelineConverter,r=t.dashMetrics;function a(){if(!n)throw new Error(S.Z.MISSING_CONFIG_ERROR)}function i(t,e){var n,r,a,i,l,s,u,c=t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentTemplate||t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentList,f=c.SegmentTimeline,d=c.SegmentURL,m=0,g=-1;u=t.timescale;var p=!1;for(a=0,i=(n=f.S).length;a<i&&!p;a++)for(s=0,(r=n[a]).hasOwnProperty("r")&&(s=r.r),r.hasOwnProperty("t")&&(m=r.t),s<0&&(s=o(t,n[a+1],r,u,m/u)),l=0;l<=s&&!p;l++)(p=e(m,c,d,r,u,++g,a))&&(t.segmentDuration=r.d/u),m+=r.d}function o(t,e,a,i,o){var l;if(e&&e.hasOwnProperty("t"))l=e.t/i;else try{var s=0;if(isNaN(t.adaptation.period.start)||isNaN(t.adaptation.period.duration)||!isFinite(t.adaptation.period.duration)){var u=r.getCurrentDVRInfo();s=isNaN(u.end)?0:u.end}else s=t.adaptation.period.start+t.adaptation.period.duration;l=n.calcMediaTimeFromPresentationTime(s,t),t.segmentDuration=a.d/i}catch(t){l=0}return Math.max(Math.ceil((l-o)/(a.d/i))-1,0)}return{getAllSegments:function(t){if(a(),!t)return null;var r=[];return i(t,(function(a,i,o,l,s,u,c){var f=i.media,d=l.mediaRange;o&&(f=o[c].media||"",d=o[c].mediaRange);var m=kt(n,e,t,a,l.d,s,f,d,u,l.tManifest);return r.push(m),!1})),r},getSegmentByIndex:function(t,r,o){if(a(),!t)return null;var l=null,s=!1;return i(t,(function(r,a,i,u,c,f,d){if(s||o<0){var m=a.media,g=u.mediaRange;return i&&(m=i[d].media||"",g=i[d].mediaRange),l=kt(n,e,t,r,u.d,c,m,g,f,u.tManifest),!0}return r>=o*c-.5*u.d&&(s=!0),!1})),l},getSegmentByTime:function(t,r){if(a(),!t)return null;void 0===r&&(r=null);var o=null,l=n.calcMediaTimeFromPresentationTime(r,t);return i(t,(function(r,a,i,s,u,c,f){var d=parseFloat((l*u).toPrecision(15));if(d<r+s.d&&d>=r){var m=a.media,g=s.mediaRange;return i&&(m=i[f].media||"",g=i[f].mediaRange),o=kt(n,e,t,r,s.d,u,m,g,c,s.tManifest),!0}return!1})),o},getMediaFinishedInformation:function(t){if(!t)return 0;var e,n,r,a,i,l,s,u=(t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentTemplate||t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentList).SegmentTimeline,c=0,f=0,d=0;for(s=t.timescale,a=(e=u.S).length,r=0;r<a;r++)for(l=0,(n=e[r]).hasOwnProperty("r")&&(l=n.r),n.hasOwnProperty("t")&&(f=(c=n.t)/s),l<0&&(l=o(t,e[r+1],n,s,f)),i=0;i<=l;i++)d++,f=(c+=n.d)/s;return{numberOfSegments:d,mediaTimeOfLastSignaledSegment:f}}}}Ut.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",Ut.REBUFFERING_REASON="rebuffering",Ut.USER_REQUEST_STOP_REASON="user_request",Ut.END_OF_PERIOD_STOP_REASON="end_of_period",Ut.END_OF_CONTENT_STOP_REASON="end_of_content",Ut.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",Ut.FAILURE_STOP_REASON="failure",qt.__dashjs_factory_name="TimelineSegmentsGetter";var Bt=N.Z.getClassFactory(qt);function Zt(t,e){var n=(t=t||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(S.Z.MISSING_CONFIG_ERROR)}function a(t,a){if(r(),!t)return null;var i=t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentTemplate;a=Math.max(a,0);var o=St(n,e,t,a);if(o){o.replacementTime=Math.round((a-1)*t.segmentDuration*t.timescale,10);var l=i.media;l=_t(l,"Number",o.replacementNumber),l=_t(l,"Time",o.replacementTime),o.media=l}return o}return{getAllSegments:function(t){r();for(var e=0,n=[];;){var i=a(t,e);if(!i||i.index!==e)break;n.push(i),e++}return n},getSegmentByIndex:a,getSegmentByTime:function(t,e){if(r(),!t)return null;var i=t.segmentDuration;if(isNaN(i))return null;var o=n.calcPeriodRelativeTimeFromMpdRelativeTime(t,e);return a(t,Math.floor(o/i))},getMediaFinishedInformation:function(t){var e={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!t)return e;var n=t.segmentDuration;return isNaN(n)?e.numberOfSegments=1:e.numberOfSegments=Math.ceil(t.adaptation.period.duration/n),e}}}Zt.__dashjs_factory_name="TemplateSegmentsGetter";var Gt=N.Z.getClassFactory(Zt);function Ht(t,e){var n=(t=t||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(S.Z.MISSING_CONFIG_ERROR)}function a(t,a){if(r(),!t)return null;var i=t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentList,o=i.SegmentURL.length,l=t&&!isNaN(t.startNumber)?t.startNumber:1,s=Math.max(l-1,0),u=Math.max(a-s,0),c=null;if(u<o){var f=i.SegmentURL[u];(c=St(n,e,t,a))&&(c.replacementTime=(l+a-1)*t.segmentDuration,c.media=f.media?f.media:"",c.mediaRange=f.mediaRange,c.indexRange=f.indexRange)}return c}return{getAllSegments:function(t){r();for(var e=0,n=[];;){var i=a(t,e);if(!i||i.index!==e)break;n.push(i),e++}return n},getSegmentByIndex:a,getSegmentByTime:function(t,e){if(r(),!t)return null;var i=t.segmentDuration;if(isNaN(i))return null;var o=n.calcPeriodRelativeTimeFromMpdRelativeTime(t,e);return a(t,Math.floor(o/i))},getMediaFinishedInformation:function(t){var e={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!t)return e;var n=t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index].Representation[t.index].SegmentList,r=t&&!isNaN(t.startNumber)?t.startNumber:1,a=Math.max(r-1,0);return e.numberOfSegments=a+n.SegmentURL.length,e}}}Ht.__dashjs_factory_name="ListSegmentsGetter";var Yt=N.Z.getClassFactory(Ht);function Vt(t){var e=(t=t||{}).timelineConverter;function n(){if(!e||!e.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(S.Z.MISSING_CONFIG_ERROR)}function r(t,e){if(n(),!t)return null;var r,a=t.segments?t.segments.length:-1;if(e<a&&(r=t.segments[e])&&r.index===e)return r;for(var i=0;i<a;i++)if((r=t.segments[i])&&r.index===e)return r;return null}return{getAllSegments:function(t){n();for(var e=0,a=[];;){var i=r(t,e);if(!i||i.index!==e)break;a.push(i),e++}return a},getSegmentByIndex:r,getSegmentByTime:function(t,e){n();var a=function(t,e){if(!t)return-1;var n,r,a,i,o,l=t.segments,s=l?l.length:null,u=-1;if(l&&s>0)for(o=0;o<s;o++)if(a=(r=l[o]).presentationStartTime,e+(n=(i=r.duration)/2)>=a&&e-n<a+i){u=r.index;break}return u}(t,e);return r(t,a)},getMediaFinishedInformation:function(t){var e={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return t&&t.segments?(e.numberOfSegments=t.segments.length,e):e}}}Vt.__dashjs_factory_name="SegmentBaseGetter";var Kt=N.Z.getClassFactory(Vt);function Wt(t){t=t||{};var e,n,r=this.context,a=t.dashConstants,i=t.type,o=t.segmentBaseController;function l(t){return t?t.segments?n[a.SEGMENT_BASE]:n[t.segmentInfoType]:null}return e={initialize:function(e){n[a.SEGMENT_TIMELINE]=Bt(r).create(t,e),n[a.SEGMENT_TEMPLATE]=Gt(r).create(t,e),n[a.SEGMENT_LIST]=Yt(r).create(t,e),n[a.SEGMENT_BASE]=Kt(r).create(t,e)},updateInitData:function(t,e){return e?Promise.resolve():o.getSegmentBaseInitSegment({representation:t,mediaType:i})},updateSegmentData:function(t,e){return e?Promise.resolve():o.getSegmentList({mimeType:t.mimeType,representation:t,mediaType:i})},getSegmentByIndex:function(t,e,n){var r=l(t);return r?r.getSegmentByIndex(t,e,n):null},getSegmentByTime:function(t,e){var n=l(t);return n?n.getSegmentByTime(t,e):null},getAllSegments:function(t){var e=l(t);return e?e.getAllSegments(t):null},getMediaFinishedInformation:function(t){var e=l(t);return e?e.getMediaFinishedInformation(t):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},n={},e}Wt.__dashjs_factory_name="SegmentsController";var Xt=N.Z.getClassFactory(Wt);function Qt(){return{ntpToUTC:function(t){var e=new Date(Date.UTC(1900,0,1,0,0,0));return new Date(e.getTime()+t).getTime()}}}Qt.__dashjs_factory_name="TimeUtils";var $t=N.Z.getSingletonFactory(Qt);function Jt(t){t=t||{};var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h=this.context,b=(0,I.Z)(h).getInstance(),y=t.streamInfo,v=t.type,E=t.errHandler,_=t.mimeType,w=t.timelineConverter,T=t.adapter,N=t.manifestModel,D=t.mediaPlayerModel,O=t.fragmentModel,P=t.abrController,M=t.playbackController,L=t.mediaController,j=t.textController,F=t.dashMetrics,U=t.settings,q=t.boxParser,B=t.segmentBlacklistController;function Z(){return y.id}function Y(){return v}function V(){i=[],a=null,g=0,u=!1,c=!1,f=!1,p=null}function K(t){return!isNaN(t)&&!isNaN(y.duration)&&isFinite(y.duration)&&t>=y.start+y.duration}function W(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.sender)if(M.getIsManifestUpdateInProgress())$();else if((!a.isText||j.isTextEnabled())&&o&&t.representationId&&!o.appendInitSegmentFromCache(t.representationId)){var n=s.getCurrentRepresentation();if(0===n.range)return void X();var r=d?d.getInitRequest(a,n):null;r?O.executeRequest(r):e&&(l.setInitSegmentRequired(!0),$())}}function X(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(M.getIsManifestUpdateInProgress()||o.getIsPruningInProgress())$();else{var i=function(){var t;if(isNaN(g)||Y()===S.Z.TEXT&&!j.isTextEnabled())return null;if(d){var e=ht();t=u?d.getSegmentRequestForTime(a,e,g):c?d.repeatSegmentRequest(a,e):d.getNextSegmentRequest(a,e)}return t}();i?(u=!1,c=!1,function(t){isNaN(t.startTime+t.duration)||(g=t.startTime+t.duration),t.delayLoadingTime=(new Date).getTime()+l.getTimeToLoadDelay(),l.setTimeToLoadDelay(0),function(t){var e=t.url;return t.range&&(e=e.concat("_",t.range)),B.contains(e)}(t)?(n.warn("Fragment request url ".concat(t.url," for stream id ").concat(y.id," and media type ").concat(v," is on the ignore list and will be skipped")),$()):(n.debug("Next fragment request url for stream id ".concat(y.id," and media type ").concat(v," is ").concat(t.url," with request range ").concat(t.range)),O.executeRequest(t))}(i)):function(t){var e,i=s.getCurrentRepresentation();if(U.get().streaming.gaps.enableSeekFix&&(u||0===M.getTime())&&(r?r&&i.segmentInfoType===k.Z.SEGMENT_TIMELINE&&(e=d.getValidTimeAheadOfTargetTime(g,a,i,U.get().streaming.gaps.threshold)):e=d.getValidTimeAheadOfTargetTime(g,a,i,U.get().streaming.gaps.threshold),!isNaN(e)&&e!==g))return void(M.isSeeking()||0===M.getTime()?(n.warn("Adjusting playback time ".concat(e," because of gap in the manifest. Seeking by ").concat(e-g)),M.seek(e,!1,!1)):(n.warn("Adjusting buffering time ".concat(e," because of gap in the manifest. Adjusting time by ").concat(e-g)),St(e),t&&$()));if(d.isLastSegmentRequested(i,g)){var c=d.getCurrentIndex();return n.debug("Segment requesting for stream ".concat(y.id," has finished")),b.trigger(R.Z.STREAM_REQUESTING_COMPLETED,{segmentIndex:c},{streamId:y.id,mediaType:v}),o.segmentRequestingCompleted(c),void l.clearScheduleTimer()}t&&$()}(e)}}function $(){l.startScheduleTimer(M.getLowLatencyModeEnabled()?U.get().streaming.scheduling.lowLatencyTimeout:U.get().streaming.scheduling.defaultTimeout)}function J(t){F.addBufferState(v,t.state,l.getBufferTarget()),t.state!==A.BUFFER_EMPTY||M.isSeeking()||(n.info("Buffer is empty! Stalling!"),F.pushPlayListTraceMetrics(new Date,Ut.REBUFFERING_REASON))}function tt(t){O.syncExecutedRequestsWithBufferedRange(o.getBuffer().getAllBufferRanges(),y.duration),t.quotaExceeded&&t.from>M.getTime()&&St(t.from),t.hasEnoughSpaceToAppend&&t.quotaExceeded&&l.startScheduleTimer()}function et(t){if(t&&t.lastRequestAppended&&t.lastRequestAppended.url){var e=t.lastRequestAppended.url;t.lastRequestAppended.range&&(e=e.concat("_",t.lastRequestAppended.range)),n.warn("Blacklisting segment with url ".concat(e)),B.add(e)}}function nt(t){if(n.debug("Appended bytes for ".concat(t.mediaType," and stream id ").concat(t.streamId)),t.segmentType===z.w.INIT_SEGMENT_TYPE){var e=t.representationId;l.setLastInitializedRepresentationId(e),n.info("["+v+"] lastInitializedRepresentationId changed to "+e)}p?it(p):l.startScheduleTimer(0)}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(r){if(s){if(e)a=t;else if(null!==a&&T.areMediaInfosEqual(a,t))a=t,e=s.getCurrentRepresentation();else{a=t;var i=P.getInitialBitrateFor(v);e=P.getOptimalRepresentationForBitrate(a,i,!1)}var l=P.getPossibleVoRepresentations(a,!1);t.representations=l;var u=e.id;return s.updateData(l,a.isFragmented,u).then((function(){var t;t=s.getCurrentRepresentation(),o.getIsBufferingCompleted()||o.updateBufferTimestampOffset(t),r()})).catch((function(t){n.error(t),r()}))}return Promise.resolve()}))}function at(t,e){var n;t.reason&&t.reason.forceReplace?(n=e,O.abortRequests(),b.trigger(R.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:v,streamId:y.id},{mediaType:v,streamId:y.id}),l.setCheckPlaybackQuality(!1),o.prepareForForceReplacementQualitySwitch(n).then((function(){_t(),p=null,f=!1})).catch((function(){_t(),p=null,f=!1}))):t&&t.reason&&t.reason.forceAbandon?function(t){o.updateBufferTimestampOffset(t).then((function(){O.abortRequests(),c=!0,l.setCheckPlaybackQuality(!1),l.startScheduleTimer(),f=!1})).catch((function(){f=!1}))}(e):U.get().streaming.buffer.fastSwitchEnabled?function(t){var e=M.getTime(),n=1.5*(isNaN(t.fragmentDuration)?1:t.fragmentDuration),r=O.getRequests({state:G.FRAGMENT_MODEL_EXECUTED,time:e+n,threshold:0})[0];if(r&&!a.isText){var i=o.getBufferLevel(),s=P.getAbandonmentStateFor(y.id,v);r.bandwidth<t.bandwidth&&i>=n&&s===A.ALLOW_LOAD?o.updateBufferTimestampOffset(t).then((function(){O.abortRequests(),St(e+n),l.setCheckPlaybackQuality(!1),l.startScheduleTimer(),f=!1})).catch((function(){f=!1})):it(t)}else it(t)}(e):it(e),F.pushPlayListTraceMetrics(new Date,Ut.REPRESENTATION_SWITCH_STOP_REASON),F.createPlaylistTraceMetrics(e.id,1e3*M.getTime(),M.getPlaybackRate())}function it(t){var e=O.getRequests({state:G.FRAGMENT_MODEL_LOADING});if(e&&e.length>0)return n.debug("Preparing for default quality switch: Waiting for ongoing segment request to be finished before applying switch."),void(p=t);o.updateBufferTimestampOffset(t).then((function(){l.setCheckPlaybackQuality(!1),a.segmentAlignment||a.subSegmentAlignment?l.startScheduleTimer():wt(),p=null,f=!1})).catch((function(){p=null,f=!1}))}function ot(t){n.info("onFragmentLoadingAbandoned request: "+t.request.url+" has been aborted"),M.isSeeking()||l.getSwitchTrack()||f||(n.info("onFragmentLoadingAbandoned request: "+t.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),t.request&&t.request.isInitializationRequest()?l.setInitSegmentRequired(!0):St(t.request.startTime+t.request.duration/2),l.startScheduleTimer(0))}function lt(t){n.info("OnFragmentLoadingCompleted for stream id "+y.id+" and media type "+v+" - Url:",t.request?t.request.url:"undefined",t.request.range?", Range:"+t.request.range:""),a.isText&&l.startScheduleTimer(0),t.error&&t.request.serviceLocation&&function(t){n.info("Fragment loading completed with an error"),t&&t.request&&t.request.type&&(t.request.type===z.w.INIT_SEGMENT_TYPE?W({representationId:t.request.representationId,sender:{}},!1):t.request.type===z.w.MEDIA_SEGMENT_TYPE&&(St(t.request.startTime+t.request.duration/2),X({},!1)))}(t)}function ut(){St(M.getTime()),pt().startScheduleTimer()}function ct(t){var e=t.currentTrackInfo;if(e){var n=i.find((function(t){return t.index===e.index&&t.lang===e.lang}));n&&rt(n).then((function(){o.setIsBufferingCompleted(!1),St(M.getTime()),l.setInitSegmentRequired(!0),l.startScheduleTimer()}))}}function dt(t){St(t.quotaExceededTime),l.clearScheduleTimer()}function gt(){return o?o.getBuffer():null}function pt(){return l}function ht(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN;return isNaN(e)?t=s?s.getCurrentRepresentation():null:((0,Rt.SE)(e),t=s?s.getRepresentationById(e):null),t}function bt(){return!!o&&o.getIsBufferingCompleted()}function yt(t){if(U.get().streaming.enableManifestTimescaleMismatchFix){var e=t.chunk,n=e.bytes,r=ht(e.representation.id);r&&(r.timescale=q.getMediaTimescaleFromMoov(n))}}function vt(t){var e=t.chunk,n=e.bytes,r=ht(e.representation.id);if(r){var a;if(U.get().streaming.parseInbandPrft&&t.request.type===z.w.MEDIA_SEGMENT_TYPE){var i=function(t,e){var n=t.getBoxes("prft"),r=[];return n.forEach((function(t){r.push(function(t,e){var n="unknown";switch(t.flags){case 0:n=k.Z.PRODUCER_REFERENCE_TIME_TYPE.ENCODER;break;case 16:n=k.Z.PRODUCER_REFERENCE_TIME_TYPE.APPLICATION;break;case 24:n=k.Z.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED}var r=1e3*t.ntp_timestamp_sec+t.ntp_timestamp_frac/Math.pow(2,32)*1e3;r=$t(h).getInstance().ntpToUTC(r);var a=t.media_time/e;return{type:n,ntpTimestamp:r,mediaTime:a}}(t,e))})),r}(a=a||q.parse(n),r.timescale);i&&i.length&&b.trigger(x.Z.INBAND_PRFT,{data:i},{streamId:y.id,mediaType:v})}var o=T.getEventsFor(r.mediaInfo,null,y),l=T.getEventsFor(r,r,y);if(o&&o.length>0||l&&l.length>0){var u=t.request,c=function(t,e,n,r){try{for(var a={},i=[],o=n.concat(r),l=0,u=o.length;l<u;l++)a[o[l].schemeIdUri+"/"+o[l].value]=o[l];var c=t.getBoxes("emsg");if(!c||0===c.length)return i;for(var f=t.getBox("sidx"),d=!f||isNaN(f.earliest_presentation_time)||isNaN(f.timescale)?e&&!isNaN(e.mediaStartTime)?e.mediaStartTime:0:f.earliest_presentation_time/f.timescale,m=Math.max(d,0),g=s.getCurrentRepresentation(),p=0,h=c.length;p<h;p++){var b=T.getEvent(c[p],a,m,g);b&&i.push(b)}return i}catch(t){return[]}}(a=a||q.parse(n),u,o,l);b.trigger(R.Z.INBAND_EVENTS,{events:c},{streamId:y.id})}}}function Et(){return new Promise((function(t){n.debug("Preparing track switch for type ".concat(v));var e=v===S.Z.TEXT||U.get().streaming.trackSwitchMode[v]===S.Z.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&M.getTimeToStreamEnd(y)>U.get().streaming.buffer.stallThreshold;if(o.getIsBufferingCompleted()&&!e){var r=s.getCurrentRepresentation();return o.prepareForNonReplacementTrackSwitch(r).then((function(){b.trigger(R.Z.BUFFERING_COMPLETED,{},{streamId:y.id,mediaType:v})})).catch((function(){b.trigger(R.Z.BUFFERING_COMPLETED,{},{streamId:y.id,mediaType:v})})),void t()}if(l.clearScheduleTimer(),l.setSwitchTrack(!0),e){b.trigger(R.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:v,streamId:y.id},{mediaType:v,streamId:y.id}),O.abortRequests();var a=ht();o.prepareForReplacementTrackSwitch(a).then((function(){return o.updateBufferTimestampOffset(a)})).then((function(){_t(),t()})).catch((function(){_t(),t()}))}else{var i=ht();o.prepareForNonReplacementTrackSwitch(i).then((function(){wt(),t()})).catch((function(){wt(),t()}))}}))}function _t(){var t=M.getTime();U.get().streaming.buffer.flushBufferAtTrackSwitch&&M.seek(t+.001,!1,!0),St(t),o.setSeekTarget(t),l.startScheduleTimer()}function wt(){var t=M.getTime(),e=o.getContinuousBufferTimeForTargetTime(t);St(isNaN(e)?t:e),l.startScheduleTimer()}function Tt(t){t&&!isNaN(t.time)&&(St(t.time),o.setSeekTarget(t.time))}function St(t){g=t,u=!0}return e={createBufferSinks:function(t){var e=gt();return e?Promise.resolve(e):o?o.createBufferSink(a,t):Promise.resolve(null)},dischargePreBuffer:function(){o.dischargePreBuffer()},finalisePlayList:function(t,e){F.pushPlayListTraceMetrics(t,e)},getAllMediaInfos:function(){return i},getBuffer:gt,getBufferController:function(){return o},getBufferLevel:function(){return o?o.getBufferLevel():0},getFragmentModel:function(){return O},getMediaInfo:function(){return a},getMediaSource:function(){return o.getMediaSource()},getRepresentationController:function(){return s},getRepresentation:ht,getScheduleController:pt,getStreamId:Z,getStreamInfo:function(){return y},getType:Y,initialize:function(n,a,i){m=Xt(h).create({events:R.Z,eventBus:b,streamInfo:y,timelineConverter:w,dashConstants:k.Z,segmentBaseController:t.segmentBaseController,type:v}),d=Ct(h).create({streamInfo:y,type:v,timelineConverter:w,dashMetrics:F,mediaPlayerModel:D,baseURLController:t.baseURLController,errHandler:E,segmentsController:m,settings:U,boxParser:q,events:R.Z,eventBus:b,errors:Q,debug:(0,C.Z)(h).getInstance(),dashConstants:k.Z,constants:S.Z,urlUtils:zt(h).getInstance()}),r=y.manifestInfo.isDynamic,d.initialize(r),P.registerStreamType(v,e),s=It(h).create({streamInfo:y,type:v,abrController:P,dashMetrics:F,playbackController:M,timelineConverter:w,dashConstants:k.Z,events:R.Z,eventBus:b,errors:Q,isDynamic:r,adapter:T,segmentsController:m}),o=function(t,e){return t?t!==S.Z.TEXT||e?st(h).create({streamInfo:y,type:t,mediaPlayerModel:D,manifestModel:N,fragmentModel:O,errHandler:E,mediaController:L,representationController:s,textController:j,abrController:P,playbackController:M,settings:U}):ft(h).create({streamInfo:y,type:t,mimeType:_,fragmentModel:O,textController:j,errHandler:E,settings:U}):(E.error(new H.Z(Q.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,Q.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+"not properly defined")),null)}(v,i),o&&o.initialize(n),(l=mt(h).create({streamInfo:y,type:v,mimeType:_,adapter:T,dashMetrics:F,mediaPlayerModel:D,fragmentModel:O,abrController:P,playbackController:M,textController:j,mediaController:L,bufferController:o,representationController:s,settings:U})).initialize(a),g=0,u=!1,c=!1},isBufferingCompleted:bt,prepareInnerPeriodPlaybackSeeking:function(t){return new Promise((function(e){if(o.hasBufferAtTime(t.seekTime))return o.pruneBuffer(),K(o.getContinuousBufferTimeForTargetTime(t.seekTime))&&o.setIsBufferingCompleted(!0),void e();l.clearScheduleTimer(),O.abortRequests(),o.prepareForPlaybackSeek().then((function(){var e=o.getAllRangesWithSafetyFactor(t.seekTime);return o.clearBuffers(e)})).then((function(){var n=o.getContinuousBufferTimeForTargetTime(t.seekTime);if(K(n))o.setIsBufferingCompleted(!0),e();else{var r=isNaN(n)?t.seekTime:n;St(r),o.setSeekTarget(r);var a=[];a.push(o.updateAppendWindow());var i=ht();a.push(o.updateBufferTimestampOffset(i)),Promise.all(a).then((function(){l.setInitSegmentRequired(!0),l.setCheckPlaybackQuality(!1),l.startScheduleTimer(),e()}))}})).catch((function(t){n.error(t)}))}))},prepareOuterPeriodPlaybackSeeking:function(){return new Promise((function(t,e){try{l.clearScheduleTimer(),O.abortRequests(),o.prepareForPlaybackSeek().then((function(){return o.pruneAllSafely()})).then((function(){t()}))}catch(t){e(t)}}))},prepareQualityChange:function(t){t.newRepresentation&&(p&&n.warn("Canceling queued representation switch to ".concat(p.id," for ").concat(v)),t.isAdaptationSetSwitch?(n.debug("Preparing quality switch to different AdaptationSet for type ".concat(v)),function(t){var e=t.newRepresentation;f=!0,l.clearScheduleTimer();var n=e.mediaInfo;a=n,rt(n,e).then((function(){Et(),at(t,e)}))}(t)):(n.debug("Preparing quality within the same AdaptationSet for type ".concat(v)),function(t){var e=t.newRepresentation;f=!0,l.clearScheduleTimer(),s.prepareQualityChange(e),at(t,e)}(t)))},prepareTrackSwitch:Et,probeNextRequest:function(){var t=ht();return d.getNextSegmentRequestIdempotent(a,t)},reset:function(t,n){d&&d.reset(),o&&(o.reset(t,n),o=null),l&&(l.reset(),l=null),s&&(s.reset(),s=null),m&&(m=null),P&&P.unRegisterStreamType(Z(),v),b.off(R.Z.INIT_FRAGMENT_NEEDED,W,e),b.off(R.Z.MEDIA_FRAGMENT_NEEDED,X,e),b.off(R.Z.INIT_FRAGMENT_LOADED,yt,e),b.off(R.Z.MEDIA_FRAGMENT_LOADED,vt,e),b.off(R.Z.BUFFER_LEVEL_STATE_CHANGED,J,e),b.off(R.Z.BUFFER_CLEARED,tt,e),b.off(R.Z.SEEK_TARGET,Tt,e),b.off(R.Z.FRAGMENT_LOADING_ABANDONED,ot,e),b.off(R.Z.FRAGMENT_LOADING_COMPLETED,lt,e),b.off(R.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,ut,e),b.off(R.Z.SET_NON_FRAGMENTED_TEXT,ct,e),b.off(R.Z.QUOTA_EXCEEDED,dt,e),b.off(R.Z.SOURCE_BUFFER_ERROR,et,e),b.off(R.Z.BYTES_APPENDED_END_FRAGMENT,nt,e),V(),v=null,y=null},setMediaInfoArray:function(t){i=t},selectMediaInfo:rt,setExplicitBufferingTime:St,setMediaSource:function(t){return o.setMediaSource(t,a)},updateStreamInfo:function(t){return y=t,bt()?Promise.resolve():o.updateAppendWindow()},getSegmentsController:function(){return m},getDashHandler:function(){return d}},n=(0,C.Z)(h).getInstance().getLogger(e),V(),b.on(R.Z.INIT_FRAGMENT_NEEDED,W,e),b.on(R.Z.MEDIA_FRAGMENT_NEEDED,X,e),b.on(R.Z.INIT_FRAGMENT_LOADED,yt,e),b.on(R.Z.MEDIA_FRAGMENT_LOADED,vt,e),b.on(R.Z.BUFFER_LEVEL_STATE_CHANGED,J,e),b.on(R.Z.BUFFER_CLEARED,tt,e),b.on(R.Z.SEEK_TARGET,Tt,e),b.on(R.Z.FRAGMENT_LOADING_ABANDONED,ot,e),b.on(R.Z.FRAGMENT_LOADING_COMPLETED,lt,e),b.on(R.Z.QUOTA_EXCEEDED,dt,e),b.on(R.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,ut,e),b.on(R.Z.SET_NON_FRAGMENTED_TEXT,ct,e),b.on(R.Z.SOURCE_BUFFER_ERROR,et,e),b.on(R.Z.BYTES_APPENDED_END_FRAGMENT,nt,e),e}Jt.__dashjs_factory_name="StreamProcessor";var te=N.Z.getClassFactory(Jt);function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===ee(i)?i:String(i)),r)}var a,i}function re(t,e,n){return e&&ne(t.prototype,e),n&&ne(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var ae=re((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.streamId=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representation=null,this.endFragment=null})),ie=n(4294);function oe(){var t;function e(){t.onloadend=t.onerror=t.onprogress=null,t.abort()}return{load:function(n,r){if((t=new XMLHttpRequest).open(n.method,n.url,!0),n.responseType&&(t.responseType=n.responseType),n.headers)for(var a in n.headers){var i=n.headers[a];i&&t.setRequestHeader(a,i)}return t.withCredentials="include"===n.credentials,t.timeout=n.timeout,t.onload=function(t){r.url=this.responseURL,r.status=this.status,r.statusText=this.statusText,r.headers=ie.Z.parseHttpHeaders(this.getAllResponseHeaders()),r.data=this.response,n.customData.onload(t)},t.onloadend=n.customData.onloadend,t.onerror=n.customData.onerror,t.onprogress=n.customData.onprogress,t.onabort=n.customData.onabort,t.ontimeout=n.customData.ontimeout,t.send(),n.customData.abort=e.bind(this),!0},abort:e,getXhr:function(){return t}}}oe.__dashjs_factory_name="XHRLoader";var le=N.Z.getClassFactory(oe);function se(){var t,e,n=this.context,r={};function a(){e=(0,C.Z)(n).getInstance().getLogger(t)}function i(t){for(var e={},n=0,r=0,a=0,i=0,o=t.length,l=0;l<o;++l)n+=t[l].chunkDownloadTimeRelativeMS,r+=t[l].bufferLevel,a+=t[l].chunkDownloadTimeRelativeMS*t[l].bufferLevel,i+=t[l].chunkDownloadTimeRelativeMS*t[l].chunkDownloadTimeRelativeMS;return e.m=(a-n*r/o)/(i-n*n/o),e.b=r/o-e.m*n/o,function(t){return e.m*t+e.b}}function o(t){var e,n=!0,r=t.reduce((function(t,e){return t+e.bufferLevelAtSegmentEnd}),0)/t.length;return t.forEach((function(t){Math.abs(t.bufferLevelAtSegmentEnd/t.bufferLevelAtSegmentStart)<.95&&(n=!1),t.bufferLevelAtSegmentEnd/r<.8&&(n=!1),e?e>t.bitrate&&(n=!1):e=t.bitrate})),n}return t={addMeasurement:function(t,e,n,a,o){t&&t.mediaType&&!r[t.mediaType]&&(r[t.mediaType]=[]);var l=t.representation.mediaInfo.bitrateList.find((function(e){return e.id===t.representation.id}));r[t.mediaType].push({index:t.index,repId:t.representationId,mediaType:t.mediaType,requestTimeMS:a,adjustedAvailabilityStartTimeMS:t.availabilityStartTime.getTime(),segDurationMS:1e3*t.duration,chunksDurationMS:n.reduce((function(t,e){return t+e.chunkDownloadDurationMS}),0),segmentBytes:n.reduce((function(t,e){return t+e.chunkBytes}),0),bitrate:l&&l.bandwidth,bitrateList:t.representation.mediaInfo.bitrateList,chunkMeasurements:n,fetchDownloadDurationMS:e,throughputCapacityDelayMS:o,getEstimatedBufferLevel:i(n.slice(1))}),r[t.mediaType].length>10&&r[t.mediaType].shift()},getEstimatedDownloadDurationMS:function(t){var n=r[t.mediaType].slice(-1).pop(),a=r[t.mediaType].slice(-3),i=n.chunkMeasurements.slice(-1).pop().chunkDownloadTimeRelativeMS;n.bufferLevelAtSegmentStart=n.getEstimatedBufferLevel(i/2),n.bufferLevelAtSegmentEnd=n.getEstimatedBufferLevel(i);var l=o(a),s=l?.6:.8;if(n.isBufferStable&&1.05*n.segDurationMS<n.fetchDownloadDurationMS)return n.fetchDownloadDurationMS;if(!l||n.segDurationMS<n.fetchDownloadDurationMS)return.8*n.fetchDownloadDurationMS;if(n.adjustedAvailabilityStartTimeMS<=n.requestTimeMS+n.throughputCapacityDelayMS-n.segDurationMS)return.8*n.fetchDownloadDurationMS;for(var u=n.requestTimeMS+n.throughputCapacityDelayMS-n.adjustedAvailabilityStartTimeMS,c=0,f=0,d=0,m=0;m<n.chunkMeasurements.length;m++){var g=n.chunkMeasurements[m];if(u<f+g.chunkDownloadDurationMS)break;f+=g.chunkDownloadDurationMS,c+=g.chunkBytes,d++}if(u<0&&e.warn("request time was before adjusted availibitly start time"),c&&f&&d>.2*n.chunkMeasurements.length){var p=c/f,h=n.segmentBytes/p;return n.fetchDownloadDurationMS<h?n.fetchDownloadDurationMS*s:h*s}var b=n.bitrate;return n.bitrateList.some((function(t){if(t.bandwidth>n.bitrate)return b=t.bandwidth,!0})),b===n.bitrate?n.fetchDownloadDurationMS*s:s*n.segmentBytes*8*1e3/b},getThroughputCapacityDelayMS:function(t,e){var n=r[t.mediaType]&&r[t.mediaType].slice(-3);return!n||n.length<3?0:o(n)?e/4>250?250:e/4:0},setup:a},a(),t}se.__dashjs_factory_name="AastLowLatencyThroughputModel";var ue=N.Z.getSingletonFactory(se);function ce(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,a=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}(t,e)||fe(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(t,e){if(t){if("string"==typeof t)return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(t,e):void 0}}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function me(){var t,e,n=this.context,r=ue(n).getInstance(),a=(0,$.Z)(n).getInstance();function i(t,e,n){t.customData.reader.read().then(n).catch((function(n){t.customData.onerror&&200===e.status&&t.customData.onerror(n)}))}function o(){if(this.customData.abortController)this.customData.abortController.abort();else if(this.customData.reader)try{this.customData.reader.cancel(),this.onabort()}catch(t){}}function l(t,e){try{if((t=t.filter((function(n){return n.bytes>e/4/t.length}))).length>1){var n=0,r=(t[t.length-1].ts-t[0].ts)/t.length;return t.forEach((function(e,a){var i=t[a+1];if(i){var o=i.ts-e.ts;n+=o<r?o:0}})),n}return null}catch(t){return null}}return{load:function(n,s){var u,c=n.customData.request,f=new Headers;if(n.headers)for(var d in n.headers){var m=n.headers[d];m&&f.append(d,m)}"function"==typeof window.AbortController&&(u=new AbortController,n.customData.abortController=u,u.signal.onabort=n.customData.onabort),n.customData.abort=o.bind(n);var g={method:n.method,headers:f,credentials:n.credentials,signal:u?u.signal:void 0},p=a.get().streaming.abr.throughput.lowLatencyDownloadTimeCalculationMode,h=performance.now(),b=0;new Promise((function(e){if(p===S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.AAST&&r&&(b=r.getThroughputCapacityDelayMS(c,1e3*t.getCurrentBufferLevel(c.mediaType))))return setTimeout(e,b);e()})).then((function(){var a=performance.now();fetch(n.url,g).then((function(o){s.status=o.status,s.statusText=o.statusText,s.url=o.url,o.ok||n.customData.onerror();var u,c={},f=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=fe(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(o.headers.keys());try{for(f.s();!(u=f.n()).done;){var d=u.value;c[d]=o.headers.get(d)}}catch(t){f.e(t)}finally{f.f()}s.headers=c;var m=parseInt(o.headers.get("Content-Length"),10),g=0,y=!1,v=new Uint8Array,E=0;p===S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.AAST&&r?function(e,n,a,i,o,l){var s=e,u=0;function c(l){var c=l.getReader(),f=[],d=n.customData.request;c.read().then((function l(m){var g=m.value,p=m.done;if(u=performance.now(),g&&g.length){var h=u-s,b=g.length;f.push({chunkDownloadTimeRelativeMS:u-e,chunkDownloadDurationMS:h,chunkBytes:b,kbps:Math.round(8*b/(h/1e3)),bufferLevel:t.getCurrentBufferLevel(d.mediaType)})}if(p){var y=u-e,v=f.reduce((function(t,e){return t+e.chunkBytes}),0);return r.addMeasurement(d,y,f,a,i,o),void n.progress({loaded:v,total:v,lengthComputable:!0,time:r.getEstimatedDownloadDurationMS(d)})}return s=performance.now(),c.read().then(l)}))}var f=l.body.tee(),d=ce(f,2),m=d[0],g=d[1];c(m),n.customData.reader=g.getReader()}(a,n,h,b,c,o):n.customData.reader=o.body.getReader();var _=[],w=[],T=[],k=!0;i(n,s,(function t(r){var a=r.value;r.done?function(){if(v){if(p!==S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.AAST){var t=null,e=null;p===S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING?(t=function(t,e){try{var n,r;n=t.filter((function(e,n){return n<t.length-1})),r=e.filter((function(t,n){return n<e.length-1}));var a=[];if(n.length>1){for(var i=0,o=0,l=0;l<n.length;l++)if(n[l]&&r[l]){var s=r[l].ts-n[l].ts;if(s>1)a.push(8*r[l].bytes/s),o=0;else{0===o&&(o=n[l].ts,i=0);var u=r[l].ts-o;u>1?(i+=r[l].bytes,a.push(8*i/u),o=0):i+=r[l].bytes}}if(a.length>0)return a.reduce((function(t,e){return t+e}),0)/a.length}return null}catch(t){return null}}(w,T))&&(e=8*g/t):p===S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.DOWNLOADED_DATA&&(e=l(_,g)),n.customData.onprogress({loaded:g,total:isNaN(m)?g:m,lengthComputable:!0,time:e})}s.data=v.buffer}n.customData.onload(),n.customData.onloadend()}():(a&&a.length>0&&function(t){v=function(t,e){if(0===t.length)return e;var n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}(v,t),g+=t.length,_.push({ts:performance.now(),bytes:t.length}),p===S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING&&k&&e.findLastTopIsoBoxCompleted(["moof"],v,E).found&&(k=!1,w.push({ts:performance.now(),bytes:t.length}));var r=e.findLastTopIsoBoxCompleted(["moov","mdat"],v,E);if(r.found){var a,i=r.lastCompletedOffset+r.size;p!==S.Z.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING||k||(k=!0,T.push({ts:performance.now(),bytes:v.length})),i===v.length?(a=v,v=new Uint8Array):(a=new Uint8Array(v.subarray(0,i)),v=v.subarray(i)),n.customData.onprogress({data:a.buffer,lengthComputable:!1,noTrace:!0}),E=0}else E=r.lastCompletedOffset,y||(n.customData.onprogress({lengthComputable:!1,noTrace:!0}),y=!0)}(a),i(n,s,t))}))})).catch((function(t){n.customData.onerror&&n.customData.onerror(t)}))}))},abort:o,setConfig:function(n){t=n.dashMetrics,e=n.boxParser},calculateDownloadedTime:l}}me.__dashjs_factory_name="FetchLoader";var ge=N.Z.getClassFactory(me),pe=n(3890);function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==he(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===he(i)?i:String(i)),r)}var a,i}var ye=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.absoluteIndex=NaN,this.adaptation=null,this.availabilityTimeComplete=!0,this.availabilityTimeOffset=0,this.bandwidth=NaN,this.bitrateInKbit=NaN,this.codecPrivateData=null,this.codecs=null,this.fragmentDuration=null,this.frameRate=null,this.height=NaN,this.id=null,this.indexRange=null,this.initialization=null,this.maxPlayoutRate=NaN,this.mediaFinishedInformation={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN},this.mediaInfo=null,this.mimeType=null,this.mseTimeOffset=NaN,this.presentationTimeOffset=0,this.qualityRanking=NaN,this.range=null,this.scanType=null,this.segments=null,this.segmentDuration=NaN,this.segmentInfoType=null,this.startNumber=1,this.timescale=1,this.width=NaN}var e,n,r;return e=t,(n=[{key:"hasInitialization",value:function(){return null!==this.initialization||null!==this.range}},{key:"hasSegments",value:function(){return this.segmentInfoType!==k.Z.BASE_URL&&this.segmentInfoType!==k.Z.SEGMENT_BASE&&!this.indexRange}}])&&be(e.prototype,n),r&&be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ve(t){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(t)}function Ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==ve(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===ve(i)?i:String(i)),r)}var a,i}function _e(t,e,n){return e&&Ee(t.prototype,e),n&&Ee(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var we=_e((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.period=null,this.index=-1,this.type=null}));function Te(t){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(t)}function Se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Te(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Te(i)?i:String(i)),r)}var a,i}function ke(t,e,n){return e&&Se(t.prototype,e),n&&Se(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ae=ke((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null,this.nextPeriodId=null,this.isEncrypted=!1}));Ae.DEFAULT_ID="defaultId";var Ie=Ae;function Re(t){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(t)}function Ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Re(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Re(i)?i:String(i)),r)}var a,i}function Ce(t,e,n){return e&&Ne(t.prototype,e),n&&Ne(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var xe=Ce((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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.publishTime=null,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN})),De=n(8871);function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Oe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Oe(i)?i:String(i)),r)}var a,i}function Pe(t,e,n){return e&&ze(t.prototype,e),n&&ze(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Me=Pe((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="",this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN,this.parsedMessageData=null}));function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Le(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Le(i)?i:String(i)),r)}var a,i}function Fe(t,e,n){return e&&je(t.prototype,e),n&&je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ue=Fe((function t(e,n,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||"",this.serviceLocation=n||e||"",this.dvbPriority=r||1,this.dvbWeight=a||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.queryParams={}}));Ue.DEFAULT_DVB_PRIORITY=1,Ue.DEFAULT_DVB_WEIGHT=1;var qe=Ue;function Be(t){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(t)}function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Be(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Be(i)?i:String(i)),r)}var a,i}function Ge(t,e,n){return e&&Ze(t.prototype,e),n&&Ze(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var He=Ge((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri="",this.presentationTimeOffset=0}));function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ye(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ye(i)?i:String(i)),r)}var a,i}function Ke(t,e,n){return e&&Ve(t.prototype,e),n&&Ve(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var We=Ke((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.inband=!1,this.type="encoder",this.applicationScheme=null,this.wallClockTime=null,this.presentationTime=NaN,this.UTCTiming=null}));function Xe(t){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(t)}function Qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Xe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Xe(i)?i:String(i)),r)}var a,i}function $e(t,e,n){return e&&Qe(t.prototype,e),n&&Qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Je=$e((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defaultServiceLocation=null,this.defaultServiceLocationArray=[],this.queryBeforeStart=!1,this.serverUrl=null,this.clientRequirement=!0}));function tn(t){return tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(t)}function en(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==tn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===tn(i)?i:String(i)),r)}var a,i}var nn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.schemeIdUri=null,this.value=null,this.id=null}var e,n,r;return e=t,(n=[{key:"init",value:function(t){t&&(this.schemeIdUri=t.schemeIdUri?t.schemeIdUri:null,this.value=t.value?t.value:null,this.id=t.id?t.id:null,t[k.Z.DVB_URL]&&(this.dvbUrl=t[k.Z.DVB_URL]),t[k.Z.DVB_MIMETYPE]&&(this.dvbMimeType=t[k.Z.DVB_MIMETYPE]),t[k.Z.DVB_FONTFAMILY]&&(this.dvbFontFamily=t[k.Z.DVB_FONTFAMILY]))}},{key:"inArray",value:function(t){var e=this;return!!t&&t.some((function(t){return e.schemeIdUri===t.schemeIdUri&&(e.value?e.value.match(t.value):"".match(t.value))}))}}])&&en(e.prototype,n),r&&en(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),rn=n(3101);function an(){return{areEqual:function(t,e){return rn(t,e)}}}an.__dashjs_factory_name="ObjectUtils";var on=N.Z.getSingletonFactory(an);function ln(t){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(t)}function sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==ln(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===ln(i)?i:String(i)),r)}var a,i}function un(t,e,n){return e&&sn(t.prototype,e),n&&sn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var cn=un((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||"",this.serviceLocation=n||null,this.queryParams={}}));function fn(t){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(t)}function dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==fn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===fn(i)?i:String(i)),r)}var a,i}function mn(t,e,n){return e&&dn(t.prototype,e),n&&dn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var gn=mn((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||"",this.serviceLocation=n||null,this.ttl=r||NaN,this.queryParams={}}));function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}function hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==pn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===pn(i)?i:String(i)),r)}var a,i}function bn(){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=En(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}},bn.apply(this,arguments)}function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yn(t,e)}function vn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=En(t);if(e){var a=En(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===pn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},En(t)}var _n=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}(i,t);var e,n,r,a=vn(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).ref=null,t.refId=null,t.robustness=null,t.keyId=null,t.pssh=null,t.pro=null,t.laUrl=null,t}return e=i,(n=[{key:"init",value:function(t){bn(En(i.prototype),"init",this).call(this,t),t&&(this.ref=t.hasOwnProperty(k.Z.REF)?t[k.Z.REF]:null,this.refId=t.hasOwnProperty(k.Z.REF_ID)?t[k.Z.REF_ID]:null,this.robustness=t.hasOwnProperty(k.Z.ROBUSTNESS)?t[k.Z.ROBUSTNESS]:null,this.cencDefaultKid=t.hasOwnProperty(k.Z.CENC_DEFAULT_KID)?t[k.Z.CENC_DEFAULT_KID]:null,this.pssh=t.hasOwnProperty(k.Z.PSSH)?t[k.Z.PSSH]:null,this.pro=t.hasOwnProperty(k.Z.PRO)?t[k.Z.PRO]:null,this.laUrl=t.hasOwnProperty(k.Z.LA_URL)?t[k.Z.LA_URL]:null)}},{key:"mergeAttributesFromReference",value:function(t){var e=this;["schemeIdUri","value","id","robustness","cencDefaultKid","pro","pssh","laUrl"].forEach((function(n){null===e[n]&&(e[n]=t[n])}))}}])&&hn(e.prototype,n),r&&hn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(nn);function wn(t){return function(t){if(Array.isArray(t))return Sn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Tn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(t,e){if(t){if("string"==typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kn(){var t,e,n,r,a=this.context,i=zt(a).getInstance(),o=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function l(t,e){if(!t)throw new Error("adaptation is not defined");if(!e)throw new Error("type is not defined");if(t.Representation&&t.Representation.length){var n=_(t.Representation[0]);if(n&&n.length>0&&S.Z.THUMBNAILS_SCHEME_ID_URIS.indexOf(n[0].schemeIdUri)>=0)return e===S.Z.IMAGE}if(t.ContentComponent&&t.ContentComponent.length>0){if(t.ContentComponent.length>1)return e===S.Z.MUXED;if(t.ContentComponent[0].contentType===e)return!0}var r=e===S.Z.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(e);if(t.Representation&&t.Representation.length){var a=t.Representation[0].codecs;if(r.test(a))return!0}if(t.hasOwnProperty(k.Z.MIME_TYPE))return r.test(t.mimeType);if(t.Representation)for(var i,o=0;o<t.Representation.length;o++)if((i=t.Representation[o]).hasOwnProperty(k.Z.MIME_TYPE))return r.test(i.mimeType);return!1}function s(t){if(!t)throw new Error("adaptation is not defined");if(t.hasOwnProperty(k.Z.SEGMENT_TEMPLATE)||t.hasOwnProperty(k.Z.SEGMENT_TIMELINE)||t.hasOwnProperty(k.Z.SEGMENT_LIST)||t.hasOwnProperty(k.Z.SEGMENT_BASE))return!0;if(t.Representation&&t.Representation.length>0){var e=t.Representation[0];if(e.hasOwnProperty(k.Z.SEGMENT_TEMPLATE)||e.hasOwnProperty(k.Z.SEGMENT_TIMELINE)||e.hasOwnProperty(k.Z.SEGMENT_LIST)||e.hasOwnProperty(k.Z.SEGMENT_BASE))return!0}return!1}function u(t){return l(t,S.Z.AUDIO)}function c(t){return l(t,S.Z.VIDEO)}function f(t){return l(t,S.Z.TEXT)}function d(t){return l(t,S.Z.IMAGE)}function m(){return function(t,e){return t.bandwidth-e.bandwidth}}function g(t){return t&&t.Representation&&t.Representation.sort((function(t,e){return t.bandwidth-e.bandwidth})),t}function p(t,e){return t&&t.Period&&o(e)&&t.Period[e]?t.Period[e].AdaptationSet:[]}function h(t){return t&&t.Period?t.Period:[]}function b(t){var e=y(t);return e&&e.length>0}function y(t){var e=[];if(!t)return e;var n=v(t);return e=e.concat(n),t.hasOwnProperty(k.Z.ADAPTATION_SET)&&t[k.Z.ADAPTATION_SET].length>0&&t[k.Z.ADAPTATION_SET].forEach((function(t){var n=v(t);e=e.concat(n)})),e}function v(t){return t&&t.hasOwnProperty(k.Z.CONTENT_PROTECTION)&&0!==t.ContentProtection.length?t[k.Z.CONTENT_PROTECTION].map((function(t){var e=new _n;return e.init(t),e})):[]}function E(t){var e=!1;return t&&t.hasOwnProperty("type")&&(e=t.type===k.Z.DYNAMIC),e}function _(t){return t&&t.EssentialProperty&&t.EssentialProperty.length?t.EssentialProperty.map((function(t){var e=new nn;return e.init(t),e})):[]}function w(t){if(!t||!t.S)return NaN;var e=t.S[0],n=t.S[1];return e.hasOwnProperty("d")?e.d:n.t-e.t}function T(t,e){if(!t)throw new Error("Period cannot be null or undefined");var n=Ie.DEFAULT_ID+"_"+e;return t.hasOwnProperty(k.Z.ID)&&t.id.length>0&&"__proto__"!==t.id&&(n=t.id),n}function A(t,e,n){var r,a=[];if(!t)return a;for(r=0;r<t.length;r++){var i=new He;if(i.timescale=1,i.representation=e,!t[r].hasOwnProperty(S.Z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");i.schemeIdUri=t[r].schemeIdUri,t[r].hasOwnProperty(k.Z.TIMESCALE)&&(i.timescale=t[r].timescale),t[r].hasOwnProperty(k.Z.VALUE)&&(i.value=t[r].value),a.push(i),i.period=n}return a}function I(t){var e=[],n=t.BaseURL||[t.baseUri],r=!1;return n.some((function(n){if(n){var a=new qe,o=n.__text||n;return i.isRelative(o)&&(r=!0,t.baseUri&&(o=i.resolve(o,t.baseUri))),a.url=o,n.hasOwnProperty(k.Z.SERVICE_LOCATION)&&n.serviceLocation.length?a.serviceLocation=n.serviceLocation:a.serviceLocation=o,n.hasOwnProperty(k.Z.DVB_PRIORITY)&&(a.dvbPriority=n[k.Z.DVB_PRIORITY]),n.hasOwnProperty(k.Z.DVB_WEIGHT)&&(a.dvbWeight=n[k.Z.DVB_WEIGHT]),n.hasOwnProperty(k.Z.AVAILABILITY_TIME_OFFSET)&&(a.availabilityTimeOffset=n[k.Z.AVAILABILITY_TIME_OFFSET]),n.hasOwnProperty(k.Z.AVAILABILITY_TIME_COMPLETE)&&(a.availabilityTimeComplete="false"!==n[k.Z.AVAILABILITY_TIME_COMPLETE]),e.push(a),r}})),e}function R(t){var e=new Je;return e.serverUrl=t.__text,t.hasOwnProperty(k.Z.DEFAULT_SERVICE_LOCATION)&&(e.defaultServiceLocation=t[k.Z.DEFAULT_SERVICE_LOCATION],e.defaultServiceLocationArray=e.defaultServiceLocation.split(" ")),t.hasOwnProperty(k.Z.QUERY_BEFORE_START)&&(e.queryBeforeStart="true"===t[k.Z.QUERY_BEFORE_START].toLowerCase()),t.hasOwnProperty(k.Z.CLIENT_REQUIREMENT)&&(e.clientRequirement="false"!==t[k.Z.CLIENT_REQUIREMENT].toLowerCase()),e}return t={getAccessibilityForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.ACCESSIBILITY)&&t[k.Z.ACCESSIBILITY].length?t[k.Z.ACCESSIBILITY].map((function(t){var e=new nn;return e.init(t),e})):[]},getAdaptationForId:function(t,e,n){var r,a,i=p(e,n);for(r=0,a=i.length;r<a;r++)if(i[r].hasOwnProperty(k.Z.ID)&&i[r].id===t)return i[r];return null},getAdaptationForIndex:function(t,e,n){var r=p(e,n);return r.length>0&&o(t)?r[t]:null},getAdaptationsForPeriod:function(t){var n,r,a,i=t&&o(t.index)?t.mpd.manifest.Period[t.index]:null,s=[];if(i&&i.AdaptationSet)for(a=0;a<i.AdaptationSet.length;a++)r=i.AdaptationSet[a],n=new we,r.hasOwnProperty(k.Z.ID)&&(n.id=r.id),n.index=a,n.period=t,l(r,S.Z.MUXED)?n.type=S.Z.MUXED:u(r)?n.type=S.Z.AUDIO:c(r)?n.type=S.Z.VIDEO:f(r)?n.type=S.Z.TEXT:d(r)?n.type=S.Z.IMAGE:e.warn("Unknown Adaptation stream type"),s.push(n);return s},getAdaptationsForType:function(t,e,n){var r,a,i=p(t,e),o=[];for(r=0,a=i.length;r<a;r++)l(i[r],n)&&o.push(g(i[r]));return o},getAudioChannelConfigurationForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.AUDIO_CHANNEL_CONFIGURATION)&&t[k.Z.AUDIO_CHANNEL_CONFIGURATION].length?t[k.Z.AUDIO_CHANNEL_CONFIGURATION].map((function(t){var e=new nn;return e.init(t),e})):[]},getAudioChannelConfigurationForRepresentation:function(t){return t&&t.hasOwnProperty(k.Z.AUDIO_CHANNEL_CONFIGURATION)&&t[k.Z.AUDIO_CHANNEL_CONFIGURATION].length?t[k.Z.AUDIO_CHANNEL_CONFIGURATION].map((function(t){var e=new nn;return e.init(t),e})):[]},getAvailabilityStartTime:function(t){return t&&t.hasOwnProperty(k.Z.AVAILABILITY_START_TIME)&&null!==t.availabilityStartTime?t.availabilityStartTime.getTime():null},getBandwidth:function(t){return t&&t.bandwidth?t.bandwidth:NaN},getBaseURLsFromElement:I,getBitrateListForAdaptation:function(t){var e=g(t);return(e&&e.Representation?e.Representation:[]).map((function(t){return{bandwidth:t.bandwidth,width:t.width||0,height:t.height||0,scanType:t.scanType||null,id:t.id||null}}))},getCodec:function(t,e,n){var r=null;if(t&&t.Representation&&t.Representation.length>0){var a=o(e)&&e>=0&&e<t.Representation.length?t.Representation[e]:t.Representation[0];a&&(r=a.mimeType+';codecs="'+a.codecs+'"',n&&void 0!==a.width&&(r+=';width="'+a.width+'";height="'+a.height+'"'))}return r&&(r=r.replace(/\sprofiles=[^;]*/g,"")),r},getContentProtectionByAdaptation:function(t){return v(t)},getContentProtectionByManifest:function(t){var e=[];if(!t)return e;var n=v(t);return e=e.concat(n),t.hasOwnProperty(k.Z.PERIOD)&&t[k.Z.PERIOD].length>0&&t[k.Z.PERIOD].forEach((function(t){var n=y(t);e=e.concat(n)})),e},getContentProtectionByPeriod:y,getContentSteering:function(t){if(t&&t.hasOwnProperty(k.Z.CONTENT_STEERING))return R(t[k.Z.CONTENT_STEERING][0])},getDuration:function(t){return t&&t.hasOwnProperty(k.Z.MEDIA_PRESENTATION_DURATION)?t.mediaPresentationDuration:t&&"dynamic"==t.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getEssentialPropertiesForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.ESSENTIAL_PROPERTY)&&t.EssentialProperty.length?t.EssentialProperty.map((function(t){var e=new nn;return e.init(t),e})):[]},getEssentialPropertiesForRepresentation:_,getEventStreamForAdaptationSet:function(t,e,n){var r,a,i;return t&&t.Period&&e&&e.period&&o(e.period.index)&&(a=t.Period[e.period.index])&&a.AdaptationSet&&o(e.index)&&(i=a.AdaptationSet[e.index])&&(r=i.InbandEventStream),A(r,null,n)},getEventStreamForRepresentation:function(t,e,n){var r,a,i,l;return t&&t.Period&&e&&e.adaptation&&e.adaptation.period&&o(e.adaptation.period.index)&&(a=t.Period[e.adaptation.period.index])&&a.AdaptationSet&&o(e.adaptation.index)&&(i=a.AdaptationSet[e.adaptation.index])&&i.Representation&&o(e.index)&&(l=i.Representation[e.index])&&(r=l.InbandEventStream),A(r,e,n)},getEventsForPeriod:function(t){var e,n,a=t&&t.mpd&&t.mpd.manifest?t.mpd.manifest:null,i=a?a.Period:null,l=i&&t&&o(t.index)?i[t.index].EventStream:null,s=[];if(l)for(e=0;e<l.length;e++){var u=new He;if(u.period=t,u.timescale=1,!l[e].hasOwnProperty(S.Z.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(u.schemeIdUri=l[e][S.Z.SCHEME_ID_URI],l[e].hasOwnProperty(k.Z.TIMESCALE)&&(u.timescale=l[e][k.Z.TIMESCALE]),l[e].hasOwnProperty(k.Z.VALUE)&&(u.value=l[e][k.Z.VALUE]),l[e].hasOwnProperty(k.Z.PRESENTATION_TIME_OFFSET)&&(u.presentationTimeOffset=l[e][k.Z.PRESENTATION_TIME_OFFSET]),n=0;l[e].Event&&n<l[e].Event.length;n++){var c=l[e].Event[n],f=new Me;f.presentationTime=0,f.eventStream=u,c.hasOwnProperty(k.Z.PRESENTATION_TIME)&&(f.presentationTime=c.presentationTime);var d=u.presentationTimeOffset?u.presentationTimeOffset/u.timescale:0;f.calculatedPresentationTime=f.presentationTime/u.timescale+t.start-d,c.hasOwnProperty(k.Z.DURATION)&&(f.duration=c.duration/u.timescale),c.hasOwnProperty(k.Z.ID)?f.id=c.id:f.id=null,c.Signal&&c.Signal.Binary?f.messageData=r.decodeArray(c.Signal.Binary.toString()):f.messageData=c.messageData||c.__cdata||c.__text,s.push(f)}}return s},getId:function(t){return t&&t[k.Z.ID]||null},getIndexForAdaptation:function(t,e,n){if(!t)return-1;for(var r=p(e,n),i=0;i<r.length;i++)if(on(a).getInstance().areEqual(r[i],t))return i;return-1},getIsDynamic:E,getIsFragmented:s,getIsText:f,getIsTypeOf:l,getLabelsForAdaptation:function(t){if(!t||!t.Label)return[];for(var e=[],n=0;n<t.Label.length;n++)e.push({lang:t.Label[n].lang,text:t.Label[n].__text||t.Label[n]});return e},getLanguageForAdaptation:function(t){var e="";return t&&t.hasOwnProperty(k.Z.LANG)&&(e=t.lang),e},getLocation:function(t){return t&&t.hasOwnProperty(k.Z.LOCATION)?t[k.Z.LOCATION].map((function(t){var e=t.__text||t,n=t.hasOwnProperty(k.Z.SERVICE_LOCATION)?t[k.Z.SERVICE_LOCATION]:null;return new cn(e,n)})):[]},getManifestUpdatePeriod:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=NaN;return t&&t.hasOwnProperty(k.Z.MINIMUM_UPDATE_PERIOD)&&(n=t.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-e,1)},getMimeType:function(t){return t&&t.Representation&&t.Representation.length>0?t.Representation[0].mimeType:null},getMpd:function(t){var e=new xe;return t&&(e.manifest=t,t.hasOwnProperty(k.Z.AVAILABILITY_START_TIME)?e.availabilityStartTime=new Date(t.availabilityStartTime.getTime()):t.loadedTime&&(e.availabilityStartTime=new Date(t.loadedTime.getTime())),t.hasOwnProperty(k.Z.AVAILABILITY_END_TIME)&&(e.availabilityEndTime=new Date(t.availabilityEndTime.getTime())),t.hasOwnProperty(k.Z.MINIMUM_UPDATE_PERIOD)&&(e.minimumUpdatePeriod=t.minimumUpdatePeriod),t.hasOwnProperty(k.Z.MEDIA_PRESENTATION_DURATION)&&(e.mediaPresentationDuration=t.mediaPresentationDuration),t.hasOwnProperty(k.Z.SUGGESTED_PRESENTATION_DELAY)&&(e.suggestedPresentationDelay=t.suggestedPresentationDelay),t.hasOwnProperty(k.Z.TIMESHIFT_BUFFER_DEPTH)&&(e.timeShiftBufferDepth=t.timeShiftBufferDepth),t.hasOwnProperty(k.Z.MAX_SEGMENT_DURATION)&&(e.maxSegmentDuration=t.maxSegmentDuration),t.hasOwnProperty(k.Z.PUBLISH_TIME)&&(e.publishTime=new Date(t.publishTime))),e},getPatchLocation:function(t){return t&&t.hasOwnProperty(k.Z.PATCH_LOCATION)?t[k.Z.PATCH_LOCATION].map((function(t){var e=t.__text||t,n=t.hasOwnProperty(k.Z.SERVICE_LOCATION)?t[k.Z.SERVICE_LOCATION]:null,r=t.hasOwnProperty(k.Z.TTL)?1e3*parseFloat(t[k.Z.TTL]):NaN;return new gn(e,n,r)})):[]},getProducerReferenceTimesForAdaptation:function(t){var e=t&&t.hasOwnProperty(k.Z.PRODUCER_REFERENCE_TIME)?t[k.Z.PRODUCER_REFERENCE_TIME]:[];(t&&t.hasOwnProperty(k.Z.REPRESENTATION)?t[k.Z.REPRESENTATION]:[]).forEach((function(t){t.hasOwnProperty(k.Z.PRODUCER_REFERENCE_TIME)&&e.push.apply(e,wn(t[k.Z.PRODUCER_REFERENCE_TIME]))}));var n=[];return e.forEach((function(t){var e=new We;t.hasOwnProperty(k.Z.ID)&&(e[k.Z.ID]=t[k.Z.ID],t.hasOwnProperty(k.Z.WALL_CLOCK_TIME)&&(e[k.Z.WALL_CLOCK_TIME]=t[k.Z.WALL_CLOCK_TIME],t.hasOwnProperty(k.Z.PRESENTATION_TIME)&&(e[k.Z.PRESENTATION_TIME]=t[k.Z.PRESENTATION_TIME],t.hasOwnProperty(k.Z.INBAND)&&(e[k.Z.INBAND]="false"!==t[k.Z.INBAND]),t.hasOwnProperty(k.Z.TYPE)&&(e[k.Z.TYPE]=t[k.Z.TYPE]),n.push(e))))})),n},getPublishTime:function(t){return t&&t.hasOwnProperty(k.Z.PUBLISH_TIME)?new Date(t[k.Z.PUBLISH_TIME]):null},getRealPeriodForIndex:function(t,e){var n=h(e);return n.length>0&&o(t)?n[t]:null},getRealPeriods:h,getRegularPeriods:function(t){var r,a,i=!!t&&E(t.manifest),o=[],l=null,s=null,u=null,c=null;for(a=0,r=t&&t.manifest&&t.manifest.Period?t.manifest.Period.length:0;a<r;a++)(s=t.manifest.Period[a]).hasOwnProperty(k.Z.START)?(c=new Ie).start=s.start:null!==l&&l.hasOwnProperty(k.Z.DURATION)&&null!==u?(c=new Ie).start=parseFloat((u.start+u.duration).toFixed(5)):0!==a||i||((c=new Ie).start=0),null!==u&&isNaN(u.duration)&&(null!==c?u.duration=parseFloat((c.start-u.start).toFixed(5)):e.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==c&&(c.id=T(s,a),c.index=a,c.mpd=t,c.isEncrypted=b(s),s.hasOwnProperty(k.Z.DURATION)&&(c.duration=s.duration),u&&(u.nextPeriodId=c.id),o.push(c),l=s,u=c),s=null,c=null;return 0===o.length||null!==u&&isNaN(u.duration)&&(u.duration=parseFloat((function(t){!function(){if(!n||!n.hasOwnProperty("error"))throw new Error(S.Z.MISSING_CONFIG_ERROR)}();var e,r=E(t.mpd.manifest);return t.mpd.manifest.mediaPresentationDuration?e=t.mpd.manifest.mediaPresentationDuration:t.duration?e=t.duration:r?e=Number.POSITIVE_INFINITY:n.error(new H.Z(Q.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",t)),e}(u)-u.start).toFixed(5))),o},getRepresentationCount:function(t){return t&&t.Representation?t.Representation.length:0},getRepresentationFor:function(t,e){return e&&e.Representation&&e.Representation.length>0&&o(t)?e.Representation[t]:null},getRepresentationSortFunction:m,getRepresentationsForAdaptation:function(t,e){var n,r,a,i,l=[],u=function(t){if(t&&t.period&&o(t.period.index)){var e=t.period.mpd.manifest.Period[t.period.index];if(e&&e.AdaptationSet&&o(t.index))return g(e.AdaptationSet[t.index])}}(t);if(u&&u.Representation){if(t&&t.period&&o(t.period.index)){var c=I(t.period.mpd.manifest);c&&(r=c[0])}for(var d=0,m=u.Representation.length;d<m;++d){var p=u.Representation[d],h=new ye;if(h.index=d,h.adaptation=t,h.mediaInfo=e,p.hasOwnProperty(k.Z.ID)&&(h.id=p.id),p.hasOwnProperty(k.Z.CODECS)&&(h.codecs=p.codecs),p.hasOwnProperty(k.Z.MIME_TYPE)&&(h.mimeType=p[k.Z.MIME_TYPE]),p.hasOwnProperty(k.Z.CODEC_PRIVATE_DATA)&&(h.codecPrivateData=p.codecPrivateData),p.hasOwnProperty(k.Z.BANDWITH)&&(h.bandwidth=p.bandwidth,h.bitrateInKbit=p.bandwidth/1e3),p.hasOwnProperty(k.Z.WIDTH)&&(h.width=p.width),p.hasOwnProperty(k.Z.HEIGHT)&&(h.height=p.height),p.hasOwnProperty(k.Z.SCAN_TYPE)&&(h.scanType=p.scanType),p.hasOwnProperty(k.Z.QUALITY_RANKING)&&(h.qualityRanking=p[k.Z.QUALITY_RANKING]),p.hasOwnProperty(k.Z.MAX_PLAYOUT_RATE)&&(h.maxPlayoutRate=p.maxPlayoutRate),p.hasOwnProperty(k.Z.SEGMENT_BASE)?(n=p.SegmentBase,h.segmentInfoType=k.Z.SEGMENT_BASE):p.hasOwnProperty(k.Z.SEGMENT_LIST)?(n=p.SegmentList).hasOwnProperty(k.Z.SEGMENT_TIMELINE)?h.segmentInfoType=k.Z.SEGMENT_TIMELINE:h.segmentInfoType=k.Z.SEGMENT_LIST:p.hasOwnProperty(k.Z.SEGMENT_TEMPLATE)?((n=p.SegmentTemplate).hasOwnProperty(k.Z.SEGMENT_TIMELINE)?h.segmentInfoType=k.Z.SEGMENT_TIMELINE:h.segmentInfoType=k.Z.SEGMENT_TEMPLATE,n.hasOwnProperty(k.Z.INITIALIZATION_MINUS)&&(h.initialization=n.initialization.split("$Bandwidth$").join(p.bandwidth).split("$RepresentationID$").join(p.id))):h.segmentInfoType=k.Z.BASE_URL,h.essentialProperties=_(p),n){if(n.hasOwnProperty(k.Z.INITIALIZATION)){var b=n.Initialization;b.hasOwnProperty(k.Z.SOURCE_URL)&&(h.initialization=b.sourceURL),b.hasOwnProperty(k.Z.RANGE)&&(h.range=b.range)}else f(u)&&s(u)&&u.mimeType&&-1===u.mimeType.indexOf("application/mp4")&&(h.range=0);n.hasOwnProperty(k.Z.TIMESCALE)&&(h.timescale=n.timescale),n.hasOwnProperty(k.Z.DURATION)?h.segmentDuration=n.duration/h.timescale:p.hasOwnProperty(k.Z.SEGMENT_TEMPLATE)&&(n=p.SegmentTemplate).hasOwnProperty(k.Z.SEGMENT_TIMELINE)&&(h.segmentDuration=w(n.SegmentTimeline)/h.timescale),n.hasOwnProperty(k.Z.MEDIA)&&(h.media=n.media),n.hasOwnProperty(k.Z.START_NUMBER)&&(h.startNumber=n.startNumber),n.hasOwnProperty(k.Z.INDEX_RANGE)&&(h.indexRange=n.indexRange),n.hasOwnProperty(k.Z.PRESENTATION_TIME_OFFSET)&&(h.presentationTimeOffset=n.presentationTimeOffset/h.timescale),n.hasOwnProperty(k.Z.AVAILABILITY_TIME_OFFSET)?h.availabilityTimeOffset=n.availabilityTimeOffset:r&&void 0!==r.availabilityTimeOffset&&(h.availabilityTimeOffset=r.availabilityTimeOffset),n.hasOwnProperty(k.Z.AVAILABILITY_TIME_COMPLETE)?h.availabilityTimeComplete="false"!==n.availabilityTimeComplete:r&&void 0!==r.availabilityTimeComplete&&(h.availabilityTimeComplete=r.availabilityTimeComplete)}h.mseTimeOffset=(i=void 0,i=(a=h).presentationTimeOffset,a.adaptation.period.start-i),h.path=[t.period.index,t.index,d],l.push(h)}}return l},getRolesForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.ROLE)&&t[k.Z.ROLE].length?t[k.Z.ROLE].map((function(t){var e=new nn;return e.init(t),e})):[]},getSegmentAlignment:function(t){return!(!t||!t.hasOwnProperty(k.Z.SEGMENT_ALIGNMENT))&&"true"===t[k.Z.SEGMENT_ALIGNMENT]},getSelectionPriority:function(t){try{var e=t&&void 0!==t.selectionPriority?parseInt(t.selectionPriority):1;return isNaN(e)?1:e}catch(t){return 1}},getServiceDescriptions:function(t){var e=[];if(t&&t.hasOwnProperty(k.Z.SERVICE_DESCRIPTION)){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Tn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(t.ServiceDescription);try{for(r.s();!(n=r.n()).done;){var a=n.value,i=null,o=null,l=null,s=null,u=null,c=null,f=null;for(var d in a)a.hasOwnProperty(d)&&(d===k.Z.ID?i=a[d]:d===k.Z.SERVICE_DESCRIPTION_SCOPE?o=a[d].schemeIdUri:d===k.Z.SERVICE_DESCRIPTION_LATENCY?l={target:parseInt(a[d].target),max:parseInt(a[d].max),min:parseInt(a[d].min),referenceId:parseInt(a[d].referenceId)}:d===k.Z.SERVICE_DESCRIPTION_PLAYBACK_RATE?s={max:parseFloat(a[d].max),min:parseFloat(a[d].min)}:d===k.Z.SERVICE_DESCRIPTION_OPERATING_QUALITY?u={mediaType:a[d].mediaType,max:parseInt(a[d].max),min:parseInt(a[d].min),target:parseInt(a[d].target),type:a[d].type,maxQualityDifference:parseInt(a[d].maxQualityDifference)}:d===k.Z.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH?c={mediaType:a[d].mediaType,max:parseInt(a[d].max),min:parseInt(a[d].min),target:parseInt(a[d].target)}:d===k.Z.CONTENT_STEERING&&(f=R(a[d])));e.push({id:i,schemeIdUri:o,latency:l,playbackRate:s,operatingQuality:u,operatingBandwidth:c,contentSteering:f})}}catch(t){r.e(t)}finally{r.f()}}return e},getSubSegmentAlignment:function(t){return!(!t||!t.hasOwnProperty(k.Z.SUB_SEGMENT_ALIGNMENT))&&"true"===t[k.Z.SUB_SEGMENT_ALIGNMENT]},getSuggestedPresentationDelay:function(t){return t&&t.hasOwnProperty(k.Z.SUGGESTED_PRESENTATION_DELAY)?t.suggestedPresentationDelay:null},getSupplementalPropertiesForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.SUPPLEMENTAL_PROPERTY)&&t.SupplementalProperty.length?t.SupplementalProperty.map((function(t){var e=new nn;return e.init(t),e})):[]},getSupplementalPropertiesForRepresentation:function(t){return t&&t.hasOwnProperty(k.Z.SUPPLEMENTAL_PROPERTY)&&t.SupplementalProperty.length?t.SupplementalProperty.map((function(t){var e=new nn;return e.init(t),e})):[]},getUTCTimingSources:function(t){var e=E(t),n=!!t&&t.hasOwnProperty(k.Z.AVAILABILITY_START_TIME),r=t?t.UTCTiming:null,a=[];return(e||n)&&r&&r.forEach((function(t){var e=new De.Z;t.hasOwnProperty(S.Z.SCHEME_ID_URI)&&(e.schemeIdUri=t.schemeIdUri,t.hasOwnProperty(k.Z.VALUE)&&(e.value=t.value.toString(),a.push(e)))})),a},getViewpointForAdaptation:function(t){return t&&t.hasOwnProperty(k.Z.VIEWPOINT)&&t[k.Z.VIEWPOINT].length?t[k.Z.VIEWPOINT].map((function(t){var e=new nn;return e.init(t),e})):[]},hasProfile:function(t,e){var n=!1;return t&&t.profiles&&t.profiles.length>0&&(n=-1!==t.profiles.indexOf(e)),n},isPeriodEncrypted:b,setConfig:function(t){t&&(t.errHandler&&(n=t.errHandler),t.BASE64&&(r=t.BASE64))}},e=(0,C.Z)(a).getInstance().getLogger(t),t}kn.__dashjs_factory_name="DashManifestModel";var An,In,Rn,Nn=N.Z.getSingletonFactory(kn);!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(An||(An={})),function(t){t.VOD="v",t.LIVE="l"}(In||(In={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(Rn||(Rn={}));class Cn{value;params;constructor(t,e){Array.isArray(t)&&(t=t.map((t=>t instanceof Cn?t:new Cn(t)))),this.value=t,this.params=e}}const xn="Dict";function Dn(t,e,n,r){return new Error(`failed to ${t} "${a=e,Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":"object"==typeof a?JSON.stringify(a):String(a)}" as ${n}`,{cause:r});var a}function On(t,e,n){return Dn("serialize",t,e,n)}class zn{description;constructor(t){this.description=t}}const Pn="Bare Item",Mn="Boolean",Ln="Byte Sequence";function jn(t){if(!1===ArrayBuffer.isView(t))throw On(t,Ln);return`:${e=t,btoa(String.fromCharCode(...e))}:`;var e}const Fn="Integer";function Un(t){return t<-999999999999999||999999999999999<t}function qn(t){if(Un(t))throw On(t,Fn);return t.toString()}function Bn(t,e){if(t<0)return-Bn(-t,e);const n=Math.pow(10,e);if(Math.abs(t*n%1-.5)<Number.EPSILON){const e=Math.floor(t*n);return(e%2==0?e:e+1)/n}return Math.round(t*n)/n}const Zn="Decimal";function Gn(t){const e=Bn(t,3);if(Math.floor(Math.abs(e)).toString().length>12)throw On(t,Zn);const n=e.toString();return n.includes(".")?n:`${n}.0`}const Hn="String",Yn=/[\x00-\x1f\x7f]+/;function Vn(t){return t.description||t.toString().slice(7,-1)}const Kn="Token";function Wn(t){const e=Vn(t);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e))throw On(e,Kn);return e}function Xn(t){switch(typeof t){case"number":if(!Number.isFinite(t))throw On(t,Pn);return Number.isInteger(t)?qn(t):Gn(t);case"string":return function(t){if(Yn.test(t))throw On(t,Hn);return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(t);case"symbol":return Wn(t);case"boolean":return function(t){if("boolean"!=typeof t)throw On(t,Mn);return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return`@${qn(t.getTime()/1e3)}`}(t);if(t instanceof Uint8Array)return jn(t);if(t instanceof zn)return Wn(t);default:throw On(t,Pn)}}const Qn="Key";function $n(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw On(t,Qn);return t}function Jn(t){return null==t?"":Object.entries(t).map((([t,e])=>!0===e?`;${$n(t)}`:`;${$n(t)}=${Xn(e)}`)).join("")}function tr(t){return t instanceof Cn?`${Xn(t.value)}${Jn(t.params)}`:Xn(t)}function er(t,e={whitespace:!0}){if("object"!=typeof t)throw On(t,xn);const n=t instanceof Map?t.entries():Object.entries(t),r=e?.whitespace?" ":"";return Array.from(n).map((([t,e])=>{e instanceof Cn==0&&(e=new Cn(e));let n=$n(t);var r;return!0===e.value?n+=Jn(e.params):(n+="=",Array.isArray(e.value)?n+=`(${(r=e).value.map(tr).join(" ")})${Jn(r.params)}`:n+=tr(e)),n})).join(`,${r}`)}const nr=t=>"ot"===t||"sf"===t||"st"===t,rr=t=>"number"==typeof t?Number.isFinite(t):null!=t&&""!==t&&!1!==t,ar=t=>Math.round(t),ir=t=>100*ar(t/100),or={br:ar,d:ar,bl:ir,dl:ir,mtp:ir,nor:(t,e)=>(e?.baseUrl&&(t=function(t,e){const n=new URL(t),r=new URL(e);if(n.origin!==r.origin)return t;const a=n.pathname.split("/").slice(1),i=r.pathname.split("/").slice(1,-1);for(;a[0]===i[0];)a.shift(),i.shift();for(;i.length;)i.shift(),a.unshift("..");return a.join("/")}(t,e.baseUrl)),encodeURIComponent(t)),rtp:ir,tb:ar};function lr(t,e={}){return t?function(t,e){return er(t,e)}(function(t,e){const n={};if(null==t||"object"!=typeof t)return n;const r=Object.keys(t).sort(),a=Object.assign({},or,e?.formatters),i=e?.filter;return r.forEach((r=>{if(i?.(r))return;let o=t[r];const l=a[r];l&&(o=l(o,e)),"v"===r&&1===o||"pr"==r&&1===o||rr(o)&&(nr(r)&&"string"==typeof o&&(o=new zn(o)),n[r]=o)})),n}(t,e),Object.assign({whitespace:!1},e)):""}var sr;!function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"}(sr||(sr={}));const ur={[sr.OBJECT]:["br","d","ot","tb"],[sr.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[sr.SESSION]:["cid","pr","sf","sid","st","v"],[sr.STATUS]:["bs","rtp"]};function cr(t){return function(t){if(Array.isArray(t))return dr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fr(t,e){if(t){if("string"==typeof t)return dr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(t,e):void 0}}function dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mr(){var t,e,n,r,a,i,o,l,s,u,c,f=this.context,d=(0,I.Z)(f).getInstance(),m=(0,$.Z)(f).getInstance();function g(){n={pr:1,nor:null,st:null,sf:null,sid:"".concat(ie.Z.generateUuid()),cid:null},u={},s={},c={},h()}function p(){h()}function h(){if(i){var t=i.getStreamController();if(t&&"function"==typeof t.getActiveStream){var e=t.getActiveStream();e&&(l=e.getProcessors())}}}function b(t){try{var e=m.get().streaming.cmcd.enabledKeys;return Object.keys(t).filter((function(t){return e.includes(t)})).reduce((function(e,n){return e[n]=t[n],e}),{})}catch(e){return t}}function y(t){try{return t.type===z.w.MPD_TYPE?((f=v()).ot=An.MANIFEST,f):t.type===z.w.MEDIA_SEGMENT_TYPE?(e=t.mediaType,c.hasOwnProperty(e)||(c[e]=!1),s.hasOwnProperty(e)||(s[e]=!1),u.hasOwnProperty(e)||(u[e]=!1),function(t){var e,f=v(),d=function(t){try{return parseInt(t.bandwidth/1e3)}catch(t){return null}}(t),g=function(t){try{return isNaN(t.duration)?NaN:Math.round(1e3*t.duration)}catch(t){return null}}(t),p=function(t){try{return 100*parseInt(o.getSafeAverageThroughput(t)/100)}catch(t){return null}}(t.mediaType),h=function(t){try{var e=n.pr,r=a.getCurrentBufferLevel(t);return isNaN(e)||isNaN(r)?null:100*parseInt(r/e*10)}catch(t){return null}}(t.mediaType),b=E(t.mediaType),y=function(t){try{var e=r.getPossibleVoRepresentations(t).map((function(t){return t.bitrateInKbit}));return Math.max.apply(Math,cr(e))}catch(t){return null}}(t.representation.mediaInfo),_=n.pr,w=function(t){if(l&&0!==l.length){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=fr(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(l);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.getType()===t)return r.probeNextRequest()}}catch(t){n.e(t)}finally{n.f()}}}(t.mediaType);t.mediaType===S.Z.VIDEO&&(e=An.VIDEO),t.mediaType===S.Z.AUDIO&&(e=An.AUDIO),t.mediaType===S.Z.TEXT&&(e="application/mp4"===t.representation.mediaInfo.mimeType?An.TIMED_TEXT:An.CAPTION);var T=m.get().streaming.cmcd.rtp;return T||(T=function(t){try{var e=i.getPlaybackRate();e||(e=1);var n=t.bandwidth,r=t.mediaType,a=t.representation,o=t.duration;if(!a.mediaInfo)return NaN;var l=E(r);0===l&&(l=500);var s=n*o/1e3/(l/e/1e3),u=m.get().streaming.cmcd.rtpSafetyFactor&&!isNaN(m.get().streaming.cmcd.rtpSafetyFactor)?m.get().streaming.cmcd.rtpSafetyFactor:5;return 100*(parseInt(s*u/100)+1)}catch(t){return NaN}}(t)),isNaN(T)||(f.rtp=T),w&&(t.url!==w.url?f.nor=encodeURIComponent(ie.Z.getRelativeUrl(t.url,w.url)):w.range&&(f.nrr=w.range)),d&&(f.br=d),e&&(f.ot=e),isNaN(g)||(f.d=g),isNaN(p)||(f.mtp=p),isNaN(h)||(f.dl=h),isNaN(b)||(f.bl=b),isNaN(y)||(f.tb=y),isNaN(_)||1===_||(f.pr=_),u[t.mediaType]&&(f.bs=!0,u[t.mediaType]=!1),!s[t.mediaType]&&c[t.mediaType]||(f.su=!0,s[t.mediaType]=!1,c[t.mediaType]=!0),f}(t)):t.type===z.w.INIT_SEGMENT_TYPE?function(){var t=v();return t.ot=An.INIT,t.su=!0,t}():t.type===z.w.OTHER_TYPE||t.type===z.w.XLINK_EXPANSION_TYPE?function(){var t=v();return t.ot=An.OTHER,t}():t.type===z.w.LICENSE?function(t){var e=v();return e.ot=An.KEY,e}():null}catch(t){return null}var e,f}function v(){var t={},e=m.get().streaming.cmcd.cid?m.get().streaming.cmcd.cid:n.cid;return t.v=1,t.sid=m.get().streaming.cmcd.sid?m.get().streaming.cmcd.sid:n.sid,t.sid="".concat(t.sid),e&&(t.cid="".concat(e)),isNaN(n.pr)||1===n.pr||null===n.pr||(t.pr=n.pr),n.st&&(t.st=n.st),n.sf&&(t.sf=n.sf),t}function E(t){try{var e=a.getCurrentBufferLevel(t);return isNaN(e)?null:100*parseInt(10*e)}catch(t){return null}}function _(t){try{n.pr=t.playbackRate}catch(t){}}function w(e){try{var r=t.getIsDynamic(e.data)?In.LIVE:In.VOD,a=e.protocol&&"MSS"===e.protocol?Rn.SMOOTH:Rn.DASH;n.st="".concat(r),n.sf="".concat(a)}catch(t){}}function T(t){try{t.state&&t.mediaType&&t.state===x.Z.BUFFER_EMPTY&&(u[t.mediaType]||(u[t.mediaType]=!0),s[t.mediaType]||(s[t.mediaType]=!0))}catch(t){}}function k(){for(var t in u)u.hasOwnProperty(t)&&(u[t]=!0);for(var e in s)s.hasOwnProperty(e)&&(s[e]=!0)}return e={getCmcdData:y,getQueryParameter:function(t){try{if(m.get().streaming.cmcd&&m.get().streaming.cmcd.enabled){var e=y(t),n=lr(b(e));return d.trigger(pe.Z.CMCD_DATA_GENERATED,{url:t.url,mediaType:t.mediaType,cmcdData:e,cmcdString:n}),{key:"CMCD",value:n}}return null}catch(t){return null}},getHeaderParameters:function(t){try{if(m.get().streaming.cmcd&&m.get().streaming.cmcd.enabled){var e=y(t),n=function(t,e={}){if(!t)return{};const n=Object.entries(t),r=Object.entries(ur).concat(Object.entries(e?.customHeaderMap||{})),a=n.reduce(((t,e)=>{const[n,a]=e,i=r.find((t=>t[1].includes(n)))?.[0]||sr.REQUEST;return t[i]??={},t[i][n]=a,t}),{});return Object.entries(a).reduce(((t,[n,r])=>(t[n]=lr(r,e),t)),{})}(b(e));return d.trigger(pe.Z.CMCD_DATA_GENERATED,{url:t.url,mediaType:t.mediaType,cmcdData:e,headers:n}),n}return null}catch(t){return null}},setConfig:function(t){t&&(t.abrController&&(r=t.abrController),t.dashMetrics&&(a=t.dashMetrics),t.throughputController&&(o=t.throughputController),t.playbackController&&(i=t.playbackController))},reset:function(){d.off(x.Z.PLAYBACK_RATE_CHANGED,_,this),d.off(x.Z.MANIFEST_LOADED,w,this),d.off(x.Z.BUFFER_LEVEL_STATE_CHANGED,T,e),d.off(x.Z.PLAYBACK_SEEKED,k,e),g()},initialize:function(){d.on(x.Z.PLAYBACK_RATE_CHANGED,_,e),d.on(x.Z.MANIFEST_LOADED,w,e),d.on(x.Z.BUFFER_LEVEL_STATE_CHANGED,T,e),d.on(x.Z.PLAYBACK_SEEKED,k,e),d.on(x.Z.PERIOD_SWITCH_COMPLETED,p,e)}},t=Nn(f).getInstance(),g(),e}mr.__dashjs_factory_name="CmcdModel";var gr=N.Z.getSingletonFactory(mr);const pr="CMSD-Dynamic",hr="CMSD-Static";function br(t,e,n){return Dn("parse",t,e,n)}const yr="List";function vr(t,e){return{value:t,src:e}}const Er="Inner List";function _r(t){if(":"!==t[0])throw br(t,Ln);if(!1===(t=t.substring(1)).includes(":"))throw br(t,Ln);const e=/(^.*?)(:)/g,n=e.exec(t)[1];return t=t.substring(e.lastIndex),vr(new Uint8Array([...atob(n)].map((t=>t.charCodeAt(0)))),t)}const wr="Date",Tr=`${Fn} or ${Zn}`;function Sr(t){let e,n=1,r="";const a=br(t,Tr);if("-"===t[0]&&(n=-1,t=t.substring(1)),t.length<=0)throw a;const i=/^(\d+)?/g,o=i.exec(t);if(0===o[0].length)throw a;if(r+=o[1],"."===(t=t.substring(i.lastIndex))[0]){if(r.length>12)throw a;const i=/^(\.\d+)?/g,o=i.exec(t);if(t=t.substring(i.lastIndex),0===o[0].length||o[1].length>4)throw a;if(r+=o[1],r.length>16)throw a;e=parseFloat(r)*n}else{if(r.length>15)throw a;if(e=parseInt(r)*n,Un(e))throw br(r,Tr)}return vr(e,t)}function kr(t,e){const n=t[0];if('"'===n)return function(t){let e="",n=0;if('"'!==t[n])throw br(t,Hn);for(n++;t.length>n;){if("\\"===t[n]){if(t.length<=n+1)throw br(t,Hn);if(n++,'"'!==t[n]&&"\\"!==t[n])throw br(t,Hn);e+=t[n]}else{if('"'===t[n])return vr(e,t.substring(++n));if(Yn.test(t[n]))throw br(t,Hn);e+=t[n]}n++}throw br(t,Hn)}(t);if(/^[-0-9]/.test(n))return Sr(t);if("?"===n)return function(t){let e=0;if("?"!==t[e])throw br(t,Mn);if(e++,"1"===t[e])return vr(!0,t.substring(++e));if("0"===t[e])return vr(!1,t.substring(++e));throw br(t,Mn)}(t);if(":"===n)return _r(t);if(/^[a-zA-Z*]/.test(n))return function(t,e){if(!1===/^[a-zA-Z*]$/.test(t[0]))throw br(t,Kn);const n=/^([!#$%&'*+\-.^_`|~\w:/]+)/g,r=n.exec(t)[1];return t=t.substring(n.lastIndex),vr(!1===e?.useSymbol?new zn(r):Symbol.for(r),t)}(t,e);if("@"===n)return function(t){let e=0;if("@"!==t[e])throw br(t,wr);e++;const n=Sr(t.substring(e));if(!1===Number.isInteger(n.value))throw br(t,wr);return vr(new Date(1e3*n.value),n.src)}(t);throw br(t,Pn)}function Ar(t){let e=0;if(!1===/^[a-z*]$/.test(t[e]))throw br(t,Qn);let n="";for(;t.length>e;){if(!1===/^[a-z0-9_\-.*]$/.test(t[e]))return vr(n,t.substring(e));n+=t[e],e++}return vr(n,t.substring(e))}function Ir(t,e){let n;for(;t.length>0&&";"===t[0];){const r=Ar(t=t.substring(1).trim()),a=r.value;let i=!0;if("="===(t=r.src)[0]){const n=kr(t=t.substring(1),e);i=n.value,t=n.src}null==n&&(n={}),n[a]=i}return vr(n,t)}function Rr(t,e){const n=kr(t,e),r=Ir(t=n.src,e);return t=r.src,vr(new Cn(n.value,r.value),t)}function Nr(t,e){return"("===t[0]?function(t,e){if("("!==t[0])throw br(t,Er);t=t.substring(1);const n=[];for(;t.length>0;){if(")"===(t=t.trim())[0]){const r=Ir(t=t.substring(1),e);return vr(new Cn(n,r.value),r.src)}const r=Rr(t,e);if(n.push(r.value)," "!==(t=r.src)[0]&&")"!==t[0])throw br(t,Er)}throw br(t,Er)}(t,e):Rr(t,e)}function Cr(t,e){try{const{src:n,value:r}=function(t,e){const n=[];for(;t.length>0;){const r=Nr(t,e);if(n.push(r.value),0===(t=r.src.trim()).length)return vr(n,t);if(","!==t[0])throw br(t,yr);if(0===(t=t.substring(1).trim()).length||","===t[0])throw br(t,yr)}return vr(n,t)}(t.trim(),e);if(""!==n)throw br(n,yr);return r}catch(e){throw br(t,yr,e)}}function xr(t,e){try{const{src:n,value:r}=function(t,e){const n={};for(;t.length>0;){let r;const a=Ar(t),i=a.value;if("="===(t=a.src)[0]){const n=Nr(t.substring(1),e);r=n.value,t=n.src}else{const n=Ir(t,e);r=new Cn(!0,n.value),t=n.src}if(n[i]=r,0===(t=t.trim()).length)return vr(n,t);if(","!==t[0])throw br(t,xn);if(0===(t=t.substring(1).trim()).length||","===t[0])throw br(t,xn)}return vr(n,t)}(t.trim(),e);if(""!==n)throw br(n,xn);return r}catch(e){throw br(t,xn,e)}}var Dr=hr.toLowerCase(),Or=pr.toLowerCase(),zr="etp",Pr="mb",Mr="ot",Lr="rd",jr="rtt",Fr=[Pr,"st","sf","v"],Ur="stream",qr={video:An.VIDEO,audio:An.AUDIO,text:An.TIMED_TEXT,stream:Ur};function Br(){var t,e,n,r,a=this.context,i=(0,I.Z)(a).getInstance();function o(){n={},r={}}function l(t){t&&Object.keys(t).forEach((function(e){Fr.includes(e)||delete t[e]}))}function s(t){try{return(n=t)?Object.entries(xr(n)).reduce(((t,[e,n])=>{const{value:r}=n;return t[e]="symbol"==typeof r?Vn(r):r,t}),{}):{}}catch(t){e.error("Failed to parse CMSD-Static response header value:",t)}var n}function u(t){try{var n=(a=t)?Cr(a):[],r=n[n.length-1];return(null==r?void 0:r.params)||{}}catch(t){return e.error("Failed to parse CMSD-Dynamic response header value:",t),{}}var a}function c(t){return qr[t]||An.OTHER}function f(t,e,a){var i=t===hr?n:r,o=i[e]||{},l=i[Ur]||{};return o[a]||l[a]}return t={setConfig:function(){},initialize:function(){},reset:function(){o()},parseResponseHeaders:function(t,e){var a=null,o=null;for(var f in t){var d=t[f];switch(f){case Dr:a=s(d),i.trigger(R.Z.CMSD_STATIC_HEADER,a);break;case Or:o||(o=u(d))}}var m=Ur;return a&&a[Mr]?m=a[Mr]:e&&(m=c(e)),l(n[m]),l(r[m]),a&&(n[m]=Object.assign(n[m]||{},a)),o&&(r[m]=Object.assign(r[m]||{},o)),{static:a,dynamic:o}},getMaxBitrate:function(t){var e=c(t),n=f(pr,e,Pr);return n||-1},getEstimatedThroughput:function(t){var e=c(t),n=f(pr,e,zr);return n||null},getResponseDelay:function(t){var e=c(t),n=f(pr,e,Lr);return n||null},getRoundTripTime:function(t){var e=c(t),n=f(pr,e,jr);return n||null}},e=(0,C.Z)(a).getInstance().getLogger(t),o(),t}Br.__dashjs_factory_name="CmsdModel";var Zr=N.Z.getSingletonFactory(Br),Gr=n(592);function Hr(){var t,e;function n(){e={}}return t={reset:function(){n()},processResponseHeaders:function(t){if(t&&t.headers&&t.request&&t.request.url){var n=t.headers[S.Z.COMMON_ACCESS_TOKEN_HEADER],r=ie.Z.getHostFromUrl(t.request.url);e[r]=n}},getCommonAccessTokenForUrl:function(t){if(!t)return null;var n=ie.Z.getHostFromUrl(t);return e[n]?e[n]:null}},n(),t}Hr.__dashjs_factory_name="CommonAccessTokenController";var Yr=N.Z.getSingletonFactory(Hr);function Vr(t){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(t)}function Kr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Vr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wr(t){t=t||{};var e,n,r,a,i,o,l,s,u,c,f,d,m,g=this.context,p=t.errHandler,h=t.dashMetrics,b=t.mediaPlayerModel,y=t.boxParser,v=t.errors,E=t.requestTimeout||0,_=(0,I.Z)(g).getInstance(),w=(0,$.Z)(g).getInstance();function T(t,e){var l,m,v,A,I,N,C,x=function(){-1!==n.indexOf(N)&&n.splice(n.indexOf(N),1),I&&(clearTimeout(I),I=null)},D=function(e){var n=new Date;l&&(l=!1,(!e.lengthComputable||e.lengthComputable&&e.total!==e.loaded)&&(G.firstByteDate=n,C.resourceTiming.responseStart=n.getTime())),e.lengthComputable&&(G.bytesLoaded=C.length=e.loaded,G.bytesTotal=C.resourceTiming.encodedBodySize=e.total,C.length=e.total,C.resourceTiming.encodedBodySize=e.loaded),e.noTrace||(Y.push({s:v,d:e.time?e.time:n.getTime()-v.getTime(),b:[e.loaded?e.loaded-A:0],t:e.throughput}),G.traces=Y,v=n,A=e.loaded),I&&(clearTimeout(I),I=null),w.get().streaming.fragmentRequestProgressTimeout>0&&(I=setTimeout((function(){d.warn("Abort request "+N.url+" due to progress timeout"),K.abort(N),x()}),w.get().streaming.fragmentRequestProgressTimeout)),t.progress&&e&&t.progress(e)},O=function(){G.startDate=m,G.endDate=new Date,G.firstByteDate=G.firstByteDate||m,C.resourceTiming.responseEnd=G.endDate.getTime(),f.processResponseHeaders(C),function(t,e){if(w.get().streaming.abr.throughput.useResourceTimingApi&&"undefined"!=typeof performance&&!t.range){var n=performance.getEntriesByType("resource");if(!(void 0===n||n.length<=0)){for(var r=0,a=null;r<n.length;){if(n[r].name===t.url){a=n[r];break}r+=1}(function(t){return t&&!isNaN(t.responseStart)&&t.responseStart>0&&!isNaN(t.responseEnd)&&t.responseEnd>0&&!isNaN(t.transferSize)&&t.transferSize>0})(a)&&(t.customData.request.resourceTimingValues=a,e.resourceTiming.startTime=a.startTime,e.resourceTiming.encodedBodySize=a.encodedBodySize,e.resourceTiming.responseStart=a.startTime,e.resourceTiming.responseEnd=a.responseEnd,e.resourceTiming.duration=a.duration)}}}(N,C)},P=function(){x()},M=function(){F(),x()},L=function(e,n){G.type===z.w.MPD_TYPE&&(h.addManifestUpdate(G),_.trigger(R.Z.MANIFEST_LOADING_FINISHED,{requestObject:G})),t.success&&t.success(e,"4 DONE OK",n),t.complete&&t.complete(G,"4 DONE OK"),x()},j=function(){var e,n;O(),(e=C,n=c.getResponseInterceptors(),n?n.reduce((function(t,e){return t.then((function(t){return e(t)}))}),Promise.resolve(e)):Promise.resolve(e)).then((function(e){k(N,C=e,Y),G.type===z.w.MPD_TYPE&&(h.addManifestUpdate(G),_.trigger(R.Z.MANIFEST_LOADING_FINISHED,{requestObject:G})),C.status>=200&&C.status<=299?(t.success&&t.success(C.data,C.statusText,C.url),t.complete&&t.complete(G,C.statusText)):q()}))},F=function(){O(),k(N,C,Y),I&&(clearTimeout(I),I=null),t.abort&&t.abort(G)},U=function(t){var e;if(O(),t.lengthComputable){var n=t.loaded/t.total*100;e="Request timeout: loaded: "+t.loaded+", out of: "+t.total+" : "+n.toFixed(3)+"% Completed"}else e="Request timeout: non-computable download size";d.warn(e),k(N,C,Y),Z()},q=function(){try{404===C.status&&w.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&G.type===z.w.MEDIA_SEGMENT_TYPE&&b.getRetryAttemptsForType(z.w.MEDIA_SEGMENT_TYPE)===e&&_.trigger(R.Z.ATTEMPT_BACKGROUND_SYNC)}catch(t){}Z()},B=function(t,e,n){return new Promise((function(r){(function(t){var e=c.getRequestInterceptors();return e?e.reduce((function(t,e){return t.then((function(t){return e(t)}))}),Promise.resolve(t)):Promise.resolve(t)})(e).then((function(a){(e=a).customData.onload=j,e.customData.onloadend=x,e.customData.onerror=x,e.customData.onprogress=D,e.customData.onabort=F,e.customData.ontimeout=U,e.customData.onFail=P,e.customData.onSuccess=L,e.customData.onAbort=M,n.resourceTiming.startTime=Date.now(),t.load(e,n),r()}))}))},Z=function(){if(e>0){e--;var n={config:t};a.push(n),n.timeout=setTimeout((function(){-1!==a.indexOf(n)&&(a.splice(a.indexOf(n),1),T(t,e))}),b.getRetryIntervalsForType(G.type))}else{if(G.type===z.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;p.error(new H.Z(i[G.type],G.url+" is not available",{request:G,response:C})),t.error&&t.error(G,"error",C.statusText,C),t.complete&&t.complete(G,C.statusText)}},G=t.request,Y=[];if(G.bytesLoaded=NaN,G.bytesTotal=NaN,G.firstByteDate=null,G.traces=[],l=!0,m=new Date,v=m,A=0,I=null,!h||!p)throw new Error("config object is not correct or missing");var V=function(t){var e,n;return t.hasOwnProperty("availabilityTimeComplete")&&!1===t.availabilityTimeComplete&&window.fetch&&"arraybuffer"===t.responseType&&t.type===z.w.MEDIA_SEGMENT_TYPE?(u||(u=ge(g).create()).setConfig({dashMetrics:h,boxParser:y}),e=u,n=S.Z.FILE_LOADER_TYPES.FETCH):(s||(s=le(g).create()),e=s,n=S.Z.FILE_LOADER_TYPES.XHR),{loader:e,fileLoaderType:n}}(G),K=V.loader;G.fileLoaderType=V.fileLoaderType,G.headers={},function(t){if(w.get().streaming.cmcd&&w.get().streaming.cmcd.enabled){var e=w.get().streaming.cmcd.mode;if(e===S.Z.CMCD_MODE_QUERY){var n=function(t){try{var e=[],n=o.getQueryParameter(t);return n&&e.push(n),e}catch(t){return[]}}(t);t.url=ie.Z.addAditionalQueryParameterToUrl(t.url,n)}else e===S.Z.CMCD_MODE_HEADER&&(t.headers=Object.assign(t.headers,o.getHeaderParameters(t)))}if(t.queryParams){var r=Object.keys(t.queryParams).map((function(e){return{key:e,value:t.queryParams[e]}}));t.url=ie.Z.addAditionalQueryParameterToUrl(t.url,r)}var a=f.getCommonAccessTokenForUrl(t.url);a&&(t.headers[S.Z.COMMON_ACCESS_TOKEN_HEADER]=a)}(G),G.range&&(G.headers.Range="bytes="+G.range);var W=c.getXHRWithCredentialsForType(G.type);N={url:G.url,method:z.w.GET,responseType:G.responseType,headers:G.headers,credentials:W?"include":"omit",timeout:E,cmcd:o.getCmcdData(G),customData:{request:G}},C={request:N,resourceTiming:{startTime:Date.now(),encodedBodySize:0}};var X=(new Date).getTime();if(isNaN(G.delayLoadingTime)||X>=G.delayLoadingTime)return n.push(N),B(K,N,C);var Q={httpRequest:N,httpResponse:C};return r.push(Q),Q.delayTimeout=setTimeout((function(){if(-1!==r.indexOf(Q)){r.splice(r.indexOf(Q),1);try{m=new Date,v=m,n.push(Q.httpRequest),B(K,Q.httpRequest,Q.httpResponse)}catch(t){Q.httpRequest.onerror()}}}),G.delayLoadingTime-X),Promise.resolve()}function k(t,e,n){var r=t.customData.request,a=w.get().streaming.cmsd&&w.get().streaming.cmsd.enabled?l.parseResponseHeaders(e.headers,r.mediaType):null;h.addHttpRequest(r,e.url,e.status,e.headers,n,a)}return e={load:function(t){return t.request?T(t,b.getRetryAttemptsForType(t.request.type)):(t.error&&t.error(t.request,"error"),Promise.resolve())},abort:function(){a.forEach((function(t){clearTimeout(t.timeout),t.config.request&&t.config.abort&&t.config.abort(t.config.request)})),a=[],r.forEach((function(t){return clearTimeout(t.delayTimeout)})),r=[],n.forEach((function(t){var e=t.customData;e&&(e.request&&e.request.type===z.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE||(e.onloadend=e.onerror=e.onprogress=void 0,e.abort&&e.abort()))})),n=[]},setConfig:function(t){t&&t.commonAccessTokenController&&(f=t.commonAccessTokenController)}},d=(0,C.Z)(g).getInstance().getLogger(e),n=[],r=[],a=[],o=gr(g).getInstance(),l=Zr(g).getInstance(),c=(0,Gr.Z)(g).getInstance(),f=Yr(g).getInstance(),Kr(m={},z.w.MPD_TYPE,v.DOWNLOAD_ERROR_ID_MANIFEST_CODE),Kr(m,z.w.XLINK_EXPANSION_TYPE,v.DOWNLOAD_ERROR_ID_XLINK_CODE),Kr(m,z.w.INIT_SEGMENT_TYPE,v.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),Kr(m,z.w.MEDIA_SEGMENT_TYPE,v.DOWNLOAD_ERROR_ID_CONTENT_CODE),Kr(m,z.w.INDEX_SEGMENT_TYPE,v.DOWNLOAD_ERROR_ID_CONTENT_CODE),Kr(m,z.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,v.DOWNLOAD_ERROR_ID_CONTENT_CODE),Kr(m,z.w.OTHER_TYPE,v.DOWNLOAD_ERROR_ID_CONTENT_CODE),i=m,e}Wr.__dashjs_factory_name="HTTPLoader";var Xr=N.Z.getClassFactory(Wr);function Qr(){var t;function e(){t={}}function n(){e()}return n(),{getLoader:function(e){for(var n in t)if(t.hasOwnProperty(n)&&e.startsWith(n))return t[n];return Xr},registerLoader:function(e,n){t[e]=n},unregisterLoader:function(e){t[e]&&delete t[e]},unregisterAllLoader:e,reset:n}}Qr.__dashjs_factory_name="SchemeLoaderFactory";var $r=N.Z.getSingletonFactory(Qr);function Jr(t){t=t||{};var e,n,r=this.context;return e=$r(r).getInstance(),{load:function(a){if(!n){var i=e.getLoader(a&&a.request?a.request.url:null);n=i(r).create({errHandler:t.errHandler,mediaPlayerModel:t.mediaPlayerModel,dashMetrics:t.dashMetrics,boxParser:t.boxParser?t.boxParser:null,constants:t.constants?t.constants:null,dashConstants:t.dashConstants?t.dashConstants:null,urlUtils:t.urlUtils?t.urlUtils:null,requestTimeout:isNaN(t.requestTimeout)?0:t.requestTimeout,errors:t.errors})}n.load(a)},abort:function(){n&&n.abort()}}}Jr.__dashjs_factory_name="URLLoader";var ta=N.Z.getClassFactory(Jr);function ea(t){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(t)}function na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==ea(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===ea(i)?i:String(i)),r)}var a,i}function ra(t,e){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ra(t,e)}function aa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ia(t);if(e){var a=ia(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ia(t){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ia(t)}var oa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ra(t,e)}(i,t);var e,n,r,a=aa(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this,t)).checkForExistenceOnly=!0,e}return e=i,n&&na(e.prototype,n),r&&na(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(j);function la(t){t=t||{};var e,n,r=this.context,a=t.eventBus,i=t.events,o=t.urlUtils,l=t.errors,s=t.streamId;return e={checkForExistence:function(t){var e=function(e){a.trigger(i.CHECK_FOR_EXISTENCE_COMPLETED,{request:t,exists:e})};if(t){var r=new oa(t.url);n.load({request:r,success:function(){e(!0)},error:function(){e(!1)}})}else e(!1)},load:function(t){var r=function(n,r){a.trigger(i.LOADING_COMPLETED,{request:t,response:n||null,error:r||null,sender:e})};t?n.load({request:t,progress:function(n){a.trigger(i.LOADING_PROGRESS,{request:t,stream:n.stream,streamId:s}),n.data&&a.trigger(i.LOADING_DATA_PROGRESS,{request:t,response:n.data||null,error:null,sender:e})},success:function(t){r(t)},error:function(t,e,n){r(void 0,new H.Z(l.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,n,e))},abort:function(t){t&&a.trigger(i.LOADING_ABANDONED,{mediaType:t.mediaType,request:t,sender:e})}}):r(void 0,new H.Z(l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){n&&n.abort()},reset:function(){n&&(n.abort(),n=null)}},n=ta(r).create({errHandler:t.errHandler,errors:l,dashMetrics:t.dashMetrics,mediaPlayerModel:t.mediaPlayerModel,urlUtils:o,constants:S.Z,boxParser:t.boxParser,dashConstants:t.dashConstants,requestTimeout:t.settings.get().streaming.fragmentRequestTimeout}),e}la.__dashjs_factory_name="FragmentLoader";var sa=N.Z.getClassFactory(la);function ua(t){t=t||{};var e,n,r,a=this.context,i=(0,I.Z)(a).getInstance(),o=t.errHandler,l=t.mediaPlayerModel,s=t.dashMetrics,u=(0,C.Z)(a).getInstance(),c=t.streamInfo;function f(){return c.id}function d(){for(var t in r)r[t].reset();r={}}function m(t){if(t.sender){var e=t.request,r=t.response,a=e.isInitializationRequest(),o=e.representation.mediaInfo.streamInfo;if(t.error&&(e.mediaType===S.Z.AUDIO||e.mediaType===S.Z.VIDEO||e.mediaType===S.Z.TEXT&&e.representation.mediaInfo.isFragmented)&&i.trigger(R.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD,{entry:t.request.serviceLocation}),r&&o){var l=function(t,e,n,r){var a=new ae;return a.streamId=n,a.segmentType=e.type,a.start=e.startTime,a.duration=e.duration,a.end=a.start+a.duration,a.bytes=t,a.index=e.index,a.quality=e.quality,a.representation=e.representation,a.endFragment=r,a}(r,e,c.id,t.type!==R.Z.FRAGMENT_LOADING_PROGRESS);i.trigger(a?R.Z.INIT_FRAGMENT_LOADED:R.Z.MEDIA_FRAGMENT_LOADED,{chunk:l,request:e},{streamId:o.id,mediaType:e.mediaType})}else n.warn("No "+e.mediaType+" bytes to push or stream is inactive.")}}return e={getStreamId:f,getModel:function(e){var n=r[e];return n||(n=G(a).create({streamInfo:c,type:e,dashMetrics:s,fragmentLoader:sa(a).create({dashMetrics:s,mediaPlayerModel:l,errHandler:o,settings:t.settings,boxParser:t.boxParser,eventBus:i,events:R.Z,errors:Q,dashConstants:t.dashConstants,urlUtils:t.urlUtils,streamId:f()}),debug:u,eventBus:i,events:R.Z}),r[e]=n),n},reset:function(){i.off(x.Z.FRAGMENT_LOADING_COMPLETED,m,this),i.off(x.Z.FRAGMENT_LOADING_PROGRESS,m,this),d()}},n=u.getLogger(e),d(),i.on(x.Z.FRAGMENT_LOADING_COMPLETED,m,e),i.on(x.Z.FRAGMENT_LOADING_PROGRESS,m,e),e}ua.__dashjs_factory_name="FragmentController";var ca=N.Z.getClassFactory(ua);function fa(t){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(t)}function da(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==fa(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===fa(i)?i:String(i)),r)}var a,i}function ma(t,e,n){return e&&da(t.prototype,e),n&&da(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var ga=ma((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=null,this.width=null,this.height=null,this.x=null,this.y=null}));function pa(t){return pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pa(t)}function ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==pa(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===pa(i)?i:String(i)),r)}var a,i}function ba(t,e,n){return e&&ha(t.prototype,e),n&&ha(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var ya=ba((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""}));function va(t){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(t)}function Ea(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==va(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===va(i)?i:String(i)),r)}var a,i}var _a=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.offset=e._offset,this.type=e.type,this.size=e.size,this.boxes=[],e.boxes)for(var n=0;n<e.boxes.length;n++)this.boxes.push(new t(e.boxes[n]));switch(this.isComplete=!0,e.type){case"sidx":if(this.timescale=e.timescale,this.earliest_presentation_time=e.earliest_presentation_time,this.first_offset=e.first_offset,this.references=e.references,e.references){this.references=[];for(var r=0;r<e.references.length;r++){var a={reference_type:e.references[r].reference_type,referenced_size:e.references[r].referenced_size,subsegment_duration:e.references[r].subsegment_duration};this.references.push(a)}}break;case"emsg":this.id=e.id,this.version=1===e.version?1:0,this.value=e.value,this.timescale=e.timescale,this.scheme_id_uri=e.scheme_id_uri,this.presentation_time_delta=1===e.version?e.presentation_time:e.presentation_time_delta,this.event_duration=e.event_duration,this.message_data=e.message_data;break;case"mdhd":this.timescale=e.timescale;break;case"mfhd":this.sequence_number=e.sequence_number;break;case"subs":this.entry_count=e.entry_count,this.entries=e.entries;break;case"tfhd":this.base_data_offset=e.base_data_offset,this.sample_description_index=e.sample_description_index,this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"tfdt":this.version=e.version,this.baseMediaDecodeTime=e.baseMediaDecodeTime,this.flags=e.flags;break;case"trun":if(this.sample_count=e.sample_count,this.first_sample_flags=e.first_sample_flags,this.data_offset=e.data_offset,this.flags=e.flags,this.samples=e.samples,e.samples){this.samples=[];for(var i=0,o=e.samples.length;i<o;i++){var l={sample_size:e.samples[i].sample_size,sample_duration:e.samples[i].sample_duration,sample_composition_time_offset:e.samples[i].sample_composition_time_offset};this.samples.push(l)}}break;case"prft":this.version=e.version,this.reference_track_ID=e.reference_track_ID,this.ntp_timestamp_sec=e.ntp_timestamp_sec,this.ntp_timestamp_frac=e.ntp_timestamp_frac,this.media_time=e.media_time,this.flags=e.flags}}var e,n,r;return e=t,(n=[{key:"getChildBox",value:function(t){for(var e=0;e<this.boxes.length;e++)if(this.boxes[e].type===t)return this.boxes[e]}},{key:"getChildBoxes",value:function(t){for(var e=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===t&&e.push(this.boxes[n]);return e}}])&&Ea(e.prototype,n),r&&Ea(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function wa(){var t;function e(e){var r=[];if(!e||!t||"function"!=typeof t.fetchAll)return r;for(var a,i=t.fetchAll(e),o=0,l=i.length;o<l;o++)(a=n(i[o]))&&r.push(a);return r}function n(t){if(!t)return null;var e=new _a(t);return t.hasOwnProperty("_incomplete")&&(e.isComplete=!t._incomplete),e}return{getBox:function(e){return e&&t&&t.boxes&&0!==t.boxes.length&&"function"==typeof t.fetch?n(t.fetch(e)):null},getBoxes:e,setData:function(e){t=e},getLastBox:function(){if(!t||!t.boxes||!t.boxes.length)return null;var n=e(t.boxes[t.boxes.length-1].type);return n.length>0?n[n.length-1]:null}}}wa.__dashjs_factory_name="IsoFile";var Ta=N.Z.getClassFactory(wa),Sa=n(6934);function ka(t){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(t)}function Aa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==ka(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ka(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===ka(i)?i:String(i)),r)}var a,i}function Ia(t,e,n){return e&&Aa(t.prototype,e),n&&Aa(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ra=Ia((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lastCompletedOffset=e,this.found=n,this.size=r}));function Na(){var t,e,n=this.context;function r(t){if(!t)return null;void 0===t.fileStart&&(t.fileStart=0);var e=Sa.parseBuffer(t),r=Ta(n).create();return r.setData(e),r}function a(t,e){return t[e+3]>>>0|t[e+2]<<8>>>0|t[e+1]<<16>>>0|t[e]<<24>>>0}function i(t,e){return String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e])}return e={parse:r,findLastTopIsoBoxCompleted:function(t,e,n){if(void 0===n&&(n=0),!e||n+8>=e.byteLength)return new Ra(0,!1);for(var r,o=e instanceof ArrayBuffer?new Uint8Array(e):e,l=0;n<o.byteLength;){var s=a(o,n),u=i(o,n+4);if(0===s)break;n+s<=o.byteLength&&(t.indexOf(u)>=0?r=new Ra(n,!0,s):l=n+s),n+=s}return r||new Ra(l,!1)},getMediaTimescaleFromMoov:function(t){var e=r(t),n=e?e.getBox("mdhd"):void 0;return n?n.timescale:NaN},getSamplesInfo:function(t){if(!t||0===t.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var e,n,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y=r(t),v=y.getBoxes("moof"),E=y.getBoxes("mfhd");h=y.getBoxes("moof").length,p=E[E.length-1].sequence_number,n=0,o=[];var _=-1,w=-1;for(f=0;f<v.length;f++){var T=v[f],S=T.getChildBoxes("traf");for(u=0;u<S.length;u++){var k=S[u],A=k.getChildBox("tfhd"),I=k.getChildBox("tfdt");i=I.baseMediaDecodeTime;var R=k.getChildBoxes("trun"),N=k.getChildBoxes("subs");for(c=0;c<R.length;c++){var C=R[c];for(n=C.sample_count,g=(A.base_data_offset||0)+(C.data_offset||0),s=0;s<n;s++){e=void 0!==(l=C.samples[s]).sample_duration?l.sample_duration:A.default_sample_duration,a=void 0!==l.sample_size?l.sample_size:A.default_sample_size;var x={dts:i,cts:i+(void 0!==l.sample_composition_time_offset?l.sample_composition_time_offset:0),duration:e,offset:T.offset+g,size:a,subSizes:[a]};if(N)for(d=0;d<N.length;d++){var D=N[d];if(_<D.entry_count-1&&s>w&&(_++,w+=D.entries[_].sample_delta),s==w){x.subSizes=[];var O=D.entries[_];for(m=0;m<O.subsample_count;m++)x.subSizes.push(O.subsamples[m].subsample_size)}}o.push(x),g+=a,i+=e}}b=i-I.baseMediaDecodeTime}}return{sampleList:o,lastSequenceNumber:p,totalDuration:b,numSequences:h}},findInitRange:function(e){var n=null,a=r(e);if(!a)return n;var i=a.getBox("ftyp"),o=a.getBox("moov");return t.debug("Searching for initialization."),o&&o.isComplete&&(n=(i?i.offset:o.offset)+"-"+(o.offset+o.size-1),t.debug("Found the initialization.  Range: "+n)),n},parsePayload:function(t,e,n){if(void 0===n&&(n=0),!e||n+8>=e.byteLength)return new Ra(0,!1);for(var r,o=e instanceof ArrayBuffer?new Uint8Array(e):e,l=0;n<o.byteLength;){var s=a(o,n),u=i(o,n+4);if(0===s)break;n+s<=o.byteLength&&(t.indexOf(u)>=0?r=new Ra(n,!0,s,u):l=n+s),n+=s}return r||new Ra(l,!1)}},t=(0,C.Z)(n).getInstance().getLogger(e),e}Na.__dashjs_factory_name="BoxParser";var Ca=N.Z.getSingletonFactory(Na);function xa(t){var e,n,r,a,i,o,l,s,u,c=this.context,f=t.adapter,d=t.baseURLController,m=t.streamInfo,g=t.timelineConverter,p=t.debug,h=t.eventBus,b=t.events,y=t.dashConstants,v=zt(c).getInstance();function E(t,e){var r=new ya;r.id=t.id,r.bitrate=t.bandwidth,r.width=t.width,r.height=t.height,r.tilesHor=1,r.tilesVert=1,t.essentialProperties&&t.essentialProperties.forEach((function(t){if(S.Z.THUMBNAILS_SCHEME_ID_URIS.indexOf(t.schemeIdUri)>=0&&t.value){var e=t.value.split("x");2!==e.length||isNaN(e[0])||isNaN(e[1])||(r.tilesHor=parseInt(e[0],10),r.tilesVert=parseInt(e[1],10))}})),e?l.updateSegmentData(t).then((function(e){!function(t,e,n){var r=[],a=function(t,e){var n,r,a,i,o=[],l=0;for(n=0,r=t.segments.length;n<r;n++)a=t.segments[n],(i=kt(g,f.getIsDynamic(),e,a.startTime,a.duration,a.timescale,a.media,a.mediaRange,l))&&(o.push(i),i=null,l++);return o}(n,e);e.segments=a,e.fragmentDuration=e.segmentDuration||(e.segments&&e.segments.length>0?e.segments[0].duration:NaN),t.segmentDuration=e.segments[0].duration,t.readThumbnail=function(t,n){var a=null;r.some((function(e){if(e.start<=t&&e.end>t)return a=e.url,!0})),a?n(a):e.segments.some((function(a){if(a.mediaStartTime<=t&&a.mediaStartTime+a.duration>t){var i=d.resolve(e.path);return s.load({method:"get",url:i.url,request:{range:a.mediaRange,responseType:"arraybuffer"},onload:function(t){var e=u.getSamplesInfo(t.target.response),i=new Blob([t.target.response.slice(e.sampleList[0].offset,e.sampleList[0].offset+e.sampleList[0].size)],{type:"image/jpeg"}),o=window.URL.createObjectURL(i);r.push({start:a.mediaStartTime,end:a.mediaStartTime+a.duration,url:o}),n&&n(o)}}),!0}}))}}(r,t,e)})):(r.startNumber=t.startNumber,r.segmentDuration=t.segmentDuration,r.timescale=t.timescale,r.templateUrl=function(t){var e=v.isRelative(t.media)?v.resolve(t.media,d.resolve(t.path).url):t.media;return e?Et(e,t.id):""}(t)),r.tilesHor>0&&r.tilesVert>0&&(r.widthPerTile=r.width/r.tilesHor,r.heightPerTile=r.height/r.tilesVert,n.push(r))}function _(){n=[],r=[],i=-1,o=null}return e={addTracks:function(){if(m&&f&&(o=f.getMediaInfoForType(m,S.Z.IMAGE))){var t=f.getVoRepresentations(o);t&&t.length>0&&t.forEach((function(t){(t.segmentInfoType===k.Z.SEGMENT_TEMPLATE&&t.segmentDuration>0&&t.media||t.segmentInfoType===k.Z.SEGMENT_TIMELINE)&&E(t),t.segmentInfoType===k.Z.SEGMENT_BASE&&E(t,!0),r.push(t)})),n.length>0&&n.sort((function(t,e){return t.bitrate-e.bitrate}))}},getCurrentTrack:function(){return i<0?null:n[i]},getCurrentTrackIndex:function(){return i},getRepresentations:function(){return r},getThumbnailRequestForTime:function(t){for(var e,r=f.getVoRepresentations(o),l=0;l<r.length;l++)if(n[i].id===r[l].id){e=r[l];break}return a.getSegmentRequestForTime(o,e,t)},getTracks:function(){return n},reset:_,setTrackById:function(t){if(n&&0!==n.length){var e=n.findIndex((function(e){return e.id===t}));-1!==e&&(i=e)}},setTrackByIndex:function(t){n&&0!==n.length&&(t>=n.length&&(t=n.length-1),i=t)}},_(),s=le(c).create({}),u=Ca(c).getInstance(),l=Xt(c).create({events:b,eventBus:h,streamInfo:m,timelineConverter:g,dashConstants:y,dashMetrics:t.dashMetrics,segmentBaseController:t.segmentBaseController,type:S.Z.IMAGE}),(a=Ct(c).create({streamInfo:m,type:S.Z.IMAGE,timelineConverter:g,segmentsController:l,baseURLController:d,debug:p,eventBus:h,events:b,dashConstants:y,urlUtils:v})).initialize(!!f&&f.getIsDynamic()),e}xa.__dashjs_factory_name="ThumbnailTracks";var Da=N.Z.getClassFactory(xa);function Oa(t){var e,n,r=this.context,a=t.streamInfo;function i(t){n.setTrackByIndex(t)}function o(){n&&n.reset()}return e={getCurrentTrack:function(){return n.getCurrentTrack()},getCurrentTrackIndex:function(){return n.getCurrentTrackIndex()},getPossibleVoRepresentations:function(){return n.getRepresentations()},getStreamId:function(){return a.id},initialize:function(){n.addTracks();var t=n.getTracks();t&&t.length>0&&i(0)},provide:function(t,e){if("function"==typeof e){var r,a,i=n.getCurrentTrack();if(!i||i.segmentDuration<=0||null==t)e(null);else{(a=n.getThumbnailRequestForTime(t))&&(i.segmentDuration=a.duration),r=t%i.segmentDuration;var o=Math.floor(r*i.tilesHor*i.tilesVert/i.segmentDuration),l=new ga;if(l.width=Math.floor(i.widthPerTile),l.height=Math.floor(i.heightPerTile),l.x=Math.floor(o%i.tilesHor)*i.widthPerTile,l.y=Math.floor(o/i.tilesHor)*i.heightPerTile,"readThumbnail"in i)return i.readThumbnail(t,(function(t){l.url=t,e(l)}));if(a)l.url=a.url,i.segmentDuration=NaN;else{var s=Math.floor(t/i.segmentDuration);l.url=function(t,e){var n=e+t.startNumber,r=_t(t.templateUrl,"Number",n);return r=_t(r,"Time",(n-1)*t.segmentDuration*t.timescale),vt(r=_t(r,"Bandwidth",t.bandwidth))}(i,s)}e(l)}}},reset:o,setTrackByIndex:i,setTrackById:function(t){n.setTrackById(t)}},o(),n=Da(r).create({streamInfo:a,adapter:t.adapter,baseURLController:t.baseURLController,timelineConverter:t.timelineConverter,debug:t.debug,eventBus:t.eventBus,events:t.events,dashConstants:t.dashConstants,dashMetrics:t.dashMetrics,segmentBaseController:t.segmentBaseController}),e}Oa.__dashjs_factory_name="ThumbnailController";var za=N.Z.getClassFactory(Oa);function Pa(t){var e;t=t||{};var n=[],r=(0,I.Z)(this.context).getInstance(),a=t.updateEventName,i=t.addBlacklistEventName;function o(t){-1===n.indexOf(t)&&(n.push(t),r.trigger(a,{entry:t}))}function l(t){o(t.entry)}return e={add:o,contains:function(t){return!!(n.length&&t&&t.length)&&-1!==n.indexOf(t)},reset:function(){n=[]}},i&&r.on(i,l,e),e}Pa.__dashjs_factory_name="BlackListController";var Ma=N.Z.getClassFactory(Pa),La=[S.Z.VIDEO,S.Z.AUDIO,S.Z.TEXT,S.Z.MUXED,S.Z.IMAGE];function ja(t){t=t||{};var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b=this.context,y=(0,I.Z)(b).getInstance(),v=zt(b).getInstance(),E=t.manifestModel,_=t.mediaPlayerModel,w=t.dashMetrics,T=t.manifestUpdater,A=t.adapter,N=t.timelineConverter,x=t.capabilities,D=t.errHandler,O=t.abrController,z=t.playbackController,P=t.throughputController,M=t.eventController,L=t.mediaController,j=t.protectionController,F=t.textController,U=t.videoModel,q=t.streamInfo,B=t.settings;function Z(t,e){return new Promise((function(a,i){J(),et();var o=U.getElement(),l=[];La.forEach((function(e){(e!==S.Z.TEXT||t)&&(e!==S.Z.VIDEO||!o||o&&/^VIDEO$/i.test(o.nodeName))&&l.push(G(e,t))})),Promise.all(l).then((function(){return y.trigger("initialInit",{streamProcessors:r}),t=e,new Promise((function(e){var n={},a=r.map((function(e){return e.createBufferSinks(t)}));Promise.all(a).then((function(t){t.forEach((function(t){t&&(n[t.getType()]=t)})),e(n)})).catch((function(){e(n)}))}));var t})).then((function(e){if(0===r.length){var i="No streams to play.";D.error(new H.Z(Q.MANIFEST_ERROR_ID_NOSTREAMS_CODE,i,E.getValue())),n.fatal(i)}else st();t&&F.createTracks(q),a(e)})).catch((function(t){i(t)}))}))}function G(e,a){var i,o=A.getAllMediaInfoForType(q,e),d=[],p=null;if(!o||0===o.length)return n.info("No "+e+" data."),Promise.resolve();e===S.Z.VIDEO&&(l=!0),e===S.Z.AUDIO&&(s=!0);for(var h=0,v=o.length;h<v;h++)p=o[h],e===S.Z.TEXT&&p.isEmbedded&&(F.addEmbeddedTrack(q,p),d.push(p)),Y(p)&&L.addTrack(p);if(d.length>0&&(L.setInitialMediaSettingsForType(e,q),F.addMediaInfosToBuffer(q,e,d)),o=o.filter((function(t){return!t.isEmbedded})),0===o.length)return Promise.resolve();if(e===S.Z.IMAGE)return(c=za(b).create({streamInfo:q,adapter:A,baseURLController:t.baseURLController,timelineConverter:t.timelineConverter,debug:g,eventBus:y,events:R.Z,dashConstants:k.Z,dashMetrics:t.dashMetrics,segmentBaseController:t.segmentBaseController})).initialize(),Promise.resolve();y.trigger(R.Z.STREAM_INITIALIZING,{streamInfo:q,mediaInfo:p}),L.setInitialMediaSettingsForType(e,q);var w=function(e,n){var a=e&&e.length>0?e[0]:null,i=u.getModel(a?a.type:null),o=a?a.type:null,s=a?a.mimeType:null,c=a?a.isFragmented:null,d=te(b).create({streamInfo:q,type:o,mimeType:s,timelineConverter:N,adapter:A,manifestModel:E,mediaPlayerModel:_,fragmentModel:i,dashMetrics:t.dashMetrics,baseURLController:t.baseURLController,segmentBaseController:t.segmentBaseController,abrController:O,playbackController:z,throughputController:P,mediaController:L,textController:F,errHandler:D,settings:B,boxParser:m,segmentBlacklistController:f});return d.initialize(n,l,c),r.push(d),d.setMediaInfoArray(e),o===S.Z.TEXT&&F.addMediaInfosToBuffer(q,o,e,i),d}(o,a);return(i=L.getCurrentTrackFor(e,q.id))?w.selectMediaInfo(e===S.Z.TEXT&&i.isEmbedded?o[0]:i):Promise.resolve()}function Y(t){var e,r=t?t.type:null;return r===S.Z.MUXED?(e="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",n.fatal(e),D.error(new H.Z(Q.MANIFEST_ERROR_ID_MULTIPLEXED_CODE,e,E.getValue())),!1):!(r!==S.Z.TEXT&&r!==S.Z.IMAGE&&t.contentProtection&&t.contentProtection.length>0&&!x.supportsEncryptedMedia()&&(D.error(new H.Z(Q.CAPABILITY_MEDIAKEYS_ERROR_CODE,Q.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE)),1))}function V(t){for(var e=r?r.length:0,n=0;n<e;n++){var a=r[n].getFragmentModel();a.abortRequests(),a.resetInitialSettings(),r[n].reset(!1,t)}F&&F.deactivateStream(q),r=[],i=!1,o=!1,ut(!1),W(!1),y.trigger(R.Z.STREAM_DEACTIVATED,{streamInfo:q})}function K(t){V(t),a=!1,l=!1,s=!1,p=!1,h=[]}function W(t){p=t}function X(){return q?q.start:NaN}function $(){return q?q.id:null}function J(){if(!U||!O)throw new Error(S.Z.MISSING_CONFIG_ERROR)}function tt(t){t.error&&(D.error(t.error),n.fatal(t.error.message))}function et(){if(M){var t=A.getEventsFor(q);t&&t.length>0&&M.addInlineEvents(t,q.id)}}function nt(t){for(var e=null,n=0;n<r.length;n++)if((e=r[n]).getType()===t)return e.getMediaInfo();return null}function rt(){var t=lt(),e=t.length;if(0!==e){for(var r=0;r<e;r++)if(!t[r].isBufferingCompleted()&&(t[r].getType()===S.Z.AUDIO||t[r].getType()===S.Z.VIDEO))return void n.debug("onBufferingCompleted - One streamProcessor has finished but",t[r].getType(),"one is not buffering completed");n.debug("onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),o=!0,y.trigger(R.Z.STREAM_BUFFERING_COMPLETED,{streamInfo:q},{streamInfo:q})}else n.warn("onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}function at(t){M&&M.addInbandEvents(t.events,q.id)}function it(t){return t&&t.type?ot(t.type):null}function ot(t){return t?lt().filter((function(e){return e.getType()===t}))[0]:null}function lt(){for(var t,e,n=[],a=0;a<r.length;a++)(t=(e=r[a]).getType())!==S.Z.AUDIO&&t!==S.Z.VIDEO&&t!==S.Z.TEXT||n.push(e);return n}function st(){var t=r.length;if(j){j.clearMediaInfoArray();for(var e=0;e<t&&r[e];e++){var n=r[e].getType(),i=r[e].getMediaInfo();if(n===S.Z.AUDIO||n===S.Z.VIDEO||n===S.Z.TEXT&&i.isFragmented){var o=r[e].getMediaInfo();o&&j.initializeForMedia(o)}}j.handleKeySystemFromManifest()}a||(a=!0,U.waitForReadyState(S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,(function(){y.trigger(R.Z.STREAM_INITIALIZED,{streamInfo:q})})))}function ut(t){d=t}function ct(){return d}return e={activate:function(t,e){return new Promise((function(n,r){if(!i)return ct()?(i=!0,y.trigger(R.Z.STREAM_ACTIVATED,{streamInfo:q}),void n(e)):void function(t,e){return Z(t,e)}(t,e).then((function(t){i=!0,y.trigger(R.Z.STREAM_ACTIVATED,{streamInfo:q}),n(t)})).catch((function(t){r(t)}));n(e)}))},deactivate:V,getAdapter:function(){return A},getCurrentMediaInfoForType:function(t){var e=ot(t);return e?e.getMediaInfo():null},getCurrentRepresentationForType:function(t){var e=ot(t);return e?e.getRepresentation():null},getDuration:function(){return q?q.duration:NaN},getHasAudioTrack:function(){return s},getHasFinishedBuffering:function(){return o},getHasVideoTrack:function(){return l},getId:$,getIsActive:function(){return i},getIsEndedEventSignaled:function(){return p},getPreloaded:ct,getProcessors:lt,getRepresentationForTypeById:function(t,e){var n;if(t===S.Z.IMAGE){if(!c)return null;n=c.getPossibleVoRepresentations()}else{var r=nt(t);n=O.getPossibleVoRepresentations(r,!0)}if(!n||0===n.length)return null;var a=n.filter((function(t){return t.id===e}));return a&&a.length>0?a[0]:null},getRepresentationForTypeByIndex:function(t,e){var n;if(t===S.Z.IMAGE){if(!c)return null;n=c.getPossibleVoRepresentations()}else{var r=nt(t);n=O.getPossibleVoRepresentations(r,!0)}return n[e=Math.max(Math.min(e,n.length-1),0)]},getRepresentationsByType:function(t){if(J(),t===S.Z.IMAGE)return c?c.getPossibleVoRepresentations():[];var e=nt(t);return O.getPossibleVoRepresentations(e,!0)},getStartTime:X,getStreamId:function(){return q?q.id:null},getStreamInfo:function(){return q},getThumbnailController:function(){return c},initialize:function(){y.on(R.Z.BUFFERING_COMPLETED,rt,e),y.on(R.Z.INBAND_EVENTS,at,e),j&&(y.on(R.Z.KEY_ERROR,tt,e),y.on(R.Z.SERVER_CERTIFICATE_UPDATED,tt,e),y.on(R.Z.LICENSE_REQUEST_COMPLETE,tt,e),y.on(R.Z.KEY_SYSTEM_SELECTED,tt,e),y.on(R.Z.KEY_SESSION_CREATED,tt,e),y.on(R.Z.KEY_STATUSES_CHANGED,tt,e)),F.initializeForStream(q),y.trigger(R.Z.STREAM_UPDATED,{streamInfo:q})},initializeForTextWithMediaSource:function(t){return new Promise((function(e,n){G(S.Z.TEXT,t).then((function(){return(t=ot(S.Z.TEXT))?t.createBufferSinks():Promise.resolve();var t})).then((function(){F.createTracks(q),e()})).catch((function(t){n(t)}))}))},prepareQualityChange:function(t){var e=ot(t.mediaType);e&&e.prepareQualityChange(t)},prepareTrackChange:function(t){if(i&&q){o=!1;var e=t.newMediaInfo,r=E.getValue(),a=it(e);if(a){var l=z.getTime();n.info("Stream -  Process track changed at current time "+l),r.refreshManifestOnSwitchTrack?(h.push(t),T.getIsUpdating()||(n.debug("Stream -  Refreshing manifest for switch track"),T.refreshManifest())):a.selectMediaInfo(e).then((function(){a.prepareTrackSwitch()}))}}},reset:function(t){u&&(u.reset(),u=null),O&&q&&O.clearDataForStream(q.id),f&&(f.reset(),f=null),K(t),q=null,y.off(R.Z.BUFFERING_COMPLETED,rt,e),y.off(R.Z.INBAND_EVENTS,at,e),j&&(y.off(R.Z.KEY_ERROR,tt,e),y.off(R.Z.SERVER_CERTIFICATE_UPDATED,tt,e),y.off(R.Z.LICENSE_REQUEST_COMPLETE,tt,e),y.off(R.Z.KEY_SYSTEM_SELECTED,tt,e),y.off(R.Z.KEY_SESSION_CREATED,tt,e),y.off(R.Z.KEY_STATUSES_CHANGED,tt,e))},setIsEndedEventSignaled:W,setMediaSource:function(t){return new Promise((function(e,a){for(var i=[],o=0;o<r.length;)Y(r[o].getMediaInfo())?(i.push(r[o].setMediaSource(t)),o++):(r[o].reset(),r.splice(o,1));Promise.all(i).then((function(){for(var t=0;t<r.length;t++)r[t].dischargePreBuffer();if(0===r.length){var a="No streams to play.";D.error(new H.Z(Q.MANIFEST_ERROR_ID_NOSTREAMS_CODE,a+"nostreams",E.getValue())),n.fatal(a)}e()})).catch((function(t){n.error(t),a(t)}))}))},setPreloaded:ut,startPreloading:function(t,e){return new Promise((function(a,i){ct()?i():(n.info("[startPreloading] Preloading next stream with id ".concat($())),ut(!0),Z(t,e).then((function(){for(var t=0;t<r.length&&r[t];t++)r[t].setExplicitBufferingTime(X()),r[t].getScheduleController().startScheduleTimer();a()})).catch((function(){ut(!1),i()})))}))},startScheduleControllers:function(){for(var t=r.length,e=0;e<t&&r[e];e++)r[e].getScheduleController().startScheduleTimer()},updateData:function(t){return new Promise((function(e){q=t,M&&et();for(var n=[],a=0,i=r.length;a<i;a++){var o=r[a],l=o.getMediaInfo();n.push(o.updateStreamInfo(q));var s=A.getAllMediaInfoForType(q,o.getType());if(s=s.filter((function(t){return!t.isEmbedded})),o.setMediaInfoArray(s),s)for(var u=0;u<s.length;u++)A.areMediaInfosEqual(l,s[u])&&n.push(o.selectMediaInfo(s[u]))}Promise.all(n).then((function(){for(var t=[];h.length>0;){var e=h.pop(),n=e.newMediaInfo,r=it(e.oldMediaInfo);if(!r)return;t.push(r.prepareTrackSwitch()),t.push(r.selectMediaInfo(n))}return Promise.all(t)})).then((function(){st(),y.trigger(R.Z.STREAM_UPDATED,{streamInfo:q}),e()})).catch((function(t){D.error(t)}))}))}},function(){try{g=(0,C.Z)(b).getInstance(),n=g.getLogger(e),K(),m=Ca(b).getInstance(),f=Ma(b).create({updateEventName:R.Z.SEGMENT_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:R.Z.SEGMENT_LOCATION_BLACKLIST_ADD}),u=ca(b).create({streamInfo:q,mediaPlayerModel:_,dashMetrics:w,errHandler:D,settings:B,boxParser:m,dashConstants:k.Z,urlUtils:v})}catch(t){throw t}}(),e}ja.__dashjs_factory_name="Stream";var Fa=N.Z.getClassFactory(ja);function Ua(t){return Ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(t)}function qa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ua(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ua(i)?i:String(i)),r)}var a,i}function Ba(t,e,n){return e&&qa(t.prototype,e),n&&qa(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Za=Ba((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||null,this.type=z.w.CONTENT_STEERING_TYPE,this.responseType="json"}));function Ga(t){return Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(t)}function Ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ga(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ga(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ga(i)?i:String(i)),r)}var a,i}function Ya(t,e,n){return e&&Ha(t.prototype,e),n&&Ha(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Va=Ya((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.version=null,this.ttl=300,this.reloadUri=null,this.pathwayPriority=[],this.pathwayClones=[]})),Ka="_DASH_throughput",Wa="_DASH_pathway";function Xa(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p=this.context,h=zt(p).getInstance();function b(t){E(t,"baseUrl")}function y(t){E(t,"location")}function v(t){var e,n;t&&t.throughputValues&&t.throughputValues.serviceLocation&&(e=t.throughputValues.serviceLocation,n=t.throughputValues,a[e]||(a[e]=[]),a[e].push(n),a[e].length>4&&a[e].shift())}function E(t,e){if(t&&t.request&&t.request.serviceLocation){var n=t.request.serviceLocation;-1===r[e].all.indexOf(n)&&r[e].all.push(n),r[e].current=n}}function _(){var t=c.getValue(),e=g.getContentSteering(t);return e||(e=f.getServiceDescriptionSettings().contentSteering),e}function w(){return new Promise((function(t){try{var i=_();if(!i||!i.serverUrl)return void t();var l=function(t){var e=t.serverUrl;n&&n.reloadUri&&(e=h.isRelative(n.reloadUri)?h.resolve(n.reloadUri,t.serverUrl):n.reloadUri);var i=[],o=r.baseUrl.all.concat(r.location.all);if(o.length>0){var l=o.map((function(t){var e=function(t){if(!t||!a[t]||0===a[t].length)return-1;var e=d.getArithmeticMean(a[t],a[t].length,!0);return parseInt(1e3*e)}(t);return{serviceLocation:t,throughput:e}}));l.sort((function(t,e){return e.throughput-t.throughput}));var s="",u="";l.forEach((function(t,e){0!==e&&(s="".concat(s,","),t.throughput>-1&&(u="".concat(u,","))),s="".concat(s).concat(t.serviceLocation),t.throughput>-1&&(u="".concat(u).concat(t.throughput))})),i.push({key:Wa,value:'"'.concat(s,'"')}),i.push({key:Ka,value:u})}return e=ie.Z.addAditionalQueryParameterToUrl(e,i)}(i),s=new Za(l);o.load({request:s,success:function(e){!function(t){t&&t[k.Z.CONTENT_STEERING_RESPONSE.VERSION]&&1===parseInt(t[k.Z.CONTENT_STEERING_RESPONSE.VERSION])&&((n=new Va).version=t[k.Z.CONTENT_STEERING_RESPONSE.VERSION],t[k.Z.CONTENT_STEERING_RESPONSE.TTL]&&!isNaN(t[k.Z.CONTENT_STEERING_RESPONSE.TTL])&&(n.ttl=t[k.Z.CONTENT_STEERING_RESPONSE.TTL]),t[k.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]&&(n.reloadUri=t[k.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]),t[k.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]&&(n.pathwayPriority=t[k.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]),t[k.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES]&&(n.pathwayClones=t[k.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES],n.pathwayClones=n.pathwayClones.filter((function(t){return function(t){return t[k.Z.CONTENT_STEERING_RESPONSE.BASE_ID]&&t[k.Z.CONTENT_STEERING_RESPONSE.ID]&&t[k.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT]&&t[k.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][k.Z.CONTENT_STEERING_RESPONSE.HOST]}(t)}))),A())}(e),m.trigger(x.Z.CONTENT_STEERING_REQUEST_COMPLETED,{currentSteeringResponseData:n,url:l}),t()},error:function(r,a,i,o){!function(t,r){try{switch(e.warn("Error fetching data from content steering server",t),r.status){case 410:break;case 429:var a=r&&r.getResponseHeader?r.getResponseHeader("retry-after"):null;null!==a&&(n||(n={}),n.ttl=parseInt(a)),A();break;default:A()}}catch(t){e.error(t)}}(r,o),t(r)},complete:function(){r.baseUrl.all=T(r.baseUrl),r.location.all=T(r.location)}})}catch(e){t(e)}}))}function T(t){return t.all&&0!==t.all.length&&t.current?t.all.filter((function(e){return e===t.current})):[]}function S(t){try{var r=[];return t&&0!==t.length&&n&&n.pathwayClones&&0!==n.pathwayClones.length?(n.pathwayClones.forEach((function(e){var n=t.filter((function(t){return e[k.Z.CONTENT_STEERING_RESPONSE.BASE_ID]===t.serviceLocation})),a=null;if(n&&n.length>0&&(a=n[0]),a){var i=new URL(a.url),o=e[k.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][k.Z.CONTENT_STEERING_RESPONSE.HOST];o=ie.Z.stringHasProtocol(o)?o:"".concat(i.protocol,"//").concat(o);var l={synthesizedUrl:"".concat(o).concat(i.pathname),serviceLocation:e[k.Z.CONTENT_STEERING_RESPONSE.ID],queryParams:e[k.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][k.Z.CONTENT_STEERING_RESPONSE.PARAMS],reference:a};r.push(l)}})),r):r}catch(t){return e.error(t),[]}}function A(){n&&n.ttl&&!isNaN(n.ttl)&&(i&&clearTimeout(i),i=setTimeout((function(){w()}),1e3*n.ttl))}function I(){i&&clearTimeout(i),i=null}function R(){n=null,a={},r={baseUrl:{current:null,all:[]},location:{current:null,all:[]}},I()}return t={reset:function(){R(),m.off(x.Z.FRAGMENT_LOADING_STARTED,b,t),m.off(x.Z.MANIFEST_LOADING_STARTED,y,t),m.off(x.Z.THROUGHPUT_MEASUREMENT_STORED,v,t)},setConfig:function(t){t&&(t.adapter&&(g=t.adapter),t.errHandler&&(l=t.errHandler),t.dashMetrics&&(s=t.dashMetrics),t.mediaPlayerModel&&(u=t.mediaPlayerModel),t.manifestModel&&(c=t.manifestModel),t.serviceDescriptionController&&(f=t.serviceDescriptionController),t.throughputController&&(d=t.throughputController),t.eventBus&&(m=t.eventBus))},loadSteeringData:w,getCurrentSteeringResponseData:function(){return n},shouldQueryBeforeStart:function(){var t=_();return!!t&&t.queryBeforeStart},getSteeringDataFromManifest:_,stopSteeringRequestTimer:I,getSynthesizedBaseUrlElements:function(t){try{return S(t).map((function(t){var e=new qe(t.synthesizedUrl,t.serviceLocation);return e.queryParams=t.queryParams,e.dvbPriority=t.reference.dvbPriority,e.dvbWeight=t.reference.dvbWeight,e.availabilityTimeOffset=t.reference.availabilityTimeOffset,e.availabilityTimeComplete=t.reference.availabilityTimeComplete,e}))}catch(t){return e.error(t),[]}},getSynthesizedLocationElements:function(t){try{return S(t).map((function(t){var e=new cn(t.synthesizedUrl,t.serviceLocation);return e.queryParams=t.queryParams,e}))}catch(t){return e.error(t),[]}},initialize:function(){o=ta(p).create({errHandler:l,dashMetrics:s,mediaPlayerModel:u,errors:Q}),m.on(x.Z.FRAGMENT_LOADING_STARTED,b,t),m.on(x.Z.MANIFEST_LOADING_STARTED,y,t),m.on(x.Z.THROUGHPUT_MEASUREMENT_STORED,v,t)}},e=(0,C.Z)(p).getInstance().getLogger(t),R(),t}Xa.__dashjs_factory_name="ContentSteeringController";var Qa=N.Z.getSingletonFactory(Xa);function $a(){var t,e,n,r=this.context,a=(0,$.Z)(r).getInstance();return t={select:function(t){if(!t||0===t.length)return null;var r=null;return a.get().streaming.applyContentSteering&&(r=function(t){var r=n.getCurrentSteeringResponseData();return r&&r.pathwayPriority&&r.pathwayPriority.length>0?function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,a=null,i=function(){var i=t[r],o=n.findIndex((function(t){return t.serviceLocation&&t.serviceLocation===i}));if(-1!==o&&!e.contains(n[o].serviceLocation))return a=n[o],1;r+=1};r<t.length&&!i(););return a}(r.pathwayPriority,t):null}(t)),r||(r=function(t){return t[0]}(t)),r},setConfig:function(t){t.blacklistController&&(e=t.blacklistController),t.contentSteeringController&&(n=t.contentSteeringController)},reset:function(){e.reset()}},e=Ma(r).create({updateEventName:R.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:R.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD}),n=Qa(r).getInstance(),t}$a.__dashjs_factory_name="LocationSelector";var Ja=N.Z.getClassFactory($a);function ti(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g=this.context,p=(0,I.Z)(g).getInstance(),h=zt(g).getInstance();function b(){n=NaN,o=!1,a=!0,i=!1,y()}function y(){null!==r&&(clearTimeout(r),r=null)}function v(t){y(),i||(isNaN(t)&&!isNaN(n)&&(t=1e3*n),isNaN(t)||(e.debug("Refresh manifest in "+t+" milliseconds."),r=setTimeout(w,t)))}function E(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o=!0;var e=s.getValue(),n=e.url,r=null,a=c.getPatchLocation(e),i=u.select(a),f=null;if(i&&!t)n=i.url,r=i.serviceLocation,f=i.queryParams;else{var m=function(t){var e=c.getLocation(t),n=d.getSynthesizedLocationElements(e);return e.concat(n)}(e),g=u.select(m);g&&(n=g.url,r=g.serviceLocation,f=g.queryParams)}h.isRelative(n)&&(n=h.resolve(n,e.url)),l.load(n,r,f)}function _(t){if(t){if(c.getIsPatch(t)){var r=t;t=s.getValue();var l=c.isPatchValid(t,r),u=l;if(l){var f=c.getPublishTime(t);u=c.applyPatchToManifest(t,r);var d=c.getPublishTime(t);u=f.getTime()!=d.getTime()}if(!u)return e.debug("Patch provided is invalid, performing full manifest refresh"),void E(!0);t.loadedTime=new Date}}else(t=s.getValue()).loadedTime=new Date;if(s.getValue()&&s.getValue().type===k.Z.DYNAMIC&&t.type===k.Z.STATIC)return p.trigger(R.Z.DYNAMIC_TO_STATIC),o=!1,void(i=!0);s.setValue(t);var m=new Date,g=(m.getTime()-t.loadedTime.getTime())/1e3;1e3*(n=c.getManifestUpdatePeriod(t,g))>2147483647&&(n=2147483.647),p.trigger(R.Z.MANIFEST_UPDATED,{manifest:t}),e.info("Manifest has been refreshed at "+m+"["+m.getTime()/1e3+"] "),a||v()}function w(){a||(o?v(m.get().streaming.manifestUpdateRetryInterval):E())}function T(t){t.error?t.error.code===Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&f.error(t.error):_(t.manifest)}function S(){a=!1,v()}function A(){(a=!m.get().streaming.scheduling.scheduleWhilePaused)&&y()}function N(){o=!1}return t={initialize:function(){b(),p.on(R.Z.STREAMS_COMPOSED,N,this),p.on(x.Z.PLAYBACK_STARTED,S,this),p.on(x.Z.PLAYBACK_PAUSED,A,this),p.on(R.Z.INTERNAL_MANIFEST_LOADED,T,this)},setManifest:function(t){_(t)},refreshManifest:E,getIsUpdating:function(){return o},setConfig:function(t){t&&(t.manifestModel&&(s=t.manifestModel),t.adapter&&(c=t.adapter),t.manifestLoader&&(l=t.manifestLoader),t.errHandler&&(f=t.errHandler),t.locationSelector&&(u=t.locationSelector),t.settings&&(m=t.settings),t.contentSteeringController&&(d=t.contentSteeringController))},reset:function(){p.off(x.Z.PLAYBACK_STARTED,S,this),p.off(x.Z.PLAYBACK_PAUSED,A,this),p.off(R.Z.STREAMS_COMPOSED,N,this),p.off(R.Z.INTERNAL_MANIFEST_LOADED,T,this),b()}},e=(0,C.Z)(g).getInstance().getLogger(t),u=Ja(g).create(),t}ti.__dashjs_factory_name="ManifestUpdater";var ei=N.Z.getClassFactory(ti);function ni(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h=this.context,b=(0,I.Z)(h).getInstance(),y=zt(h).getInstance();function v(){l=[],s=[],u=null,c=null,d=null,f=NaN,n=!1,r=!1,m=a.get().streaming.utcSynchronization.timeBetweenSyncAttempts}function E(){a.get().streaming.utcSynchronization.enabled&&!n&&!r&&d&&d.value&&d.schemeIdUri&&!isNaN(f)&&!isNaN(a.get().streaming.utcSynchronization.backgroundAttempts)&&(c&&(Date.now()-c)/1e3<30||(l=[],r=!0,_(isNaN(a.get().streaming.utcSynchronization.backgroundAttempts)?2:a.get().streaming.utcSynchronization.backgroundAttempts)))}function _(t){try{if(t<=0)return void L();var e=Date.now();i[d.schemeIdUri](d.value,(function(n){var r=Date.now(),a=T(e,r,n);l.push(a),_(t-1)}),(function(){L()}))}catch(t){L()}}function w(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||0;if(!s||0===s.length||t>=s.length)S();else{var e=s[t];if(e)if(i.hasOwnProperty(e.schemeIdUri)){var n=(new Date).getTime();i[e.schemeIdUri](e.value,(function(t){var r=(new Date).getTime(),a=T(n,r,t);d=e,S(a)}),(function(){w(t+1)}))}else w(t+1);else S()}}function T(t,e,n){return n-(e-(e-t)/2)}function S(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN,r=isNaN(n);r&&a.get().streaming.utcSynchronization.useManifestDateHeaderTimeSource?(t=o.getLatestMPDRequestHeaderValueByID("Date"),e=null!==t?new Date(t).getTime():Number.NaN,isNaN(e)?M(!0):M(!1,e-Date.now())):M(r,n)}function k(t){var e=Date.parse(t);return isNaN(e)&&(e=function(t){var e,n,r=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(t);return e=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&(parseInt(r[6],10)||0),r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]&&(n=60*parseInt(r[9],10)+parseInt(r[10],10),e+=("+"===r[8]?-1:1)*n*60*1e3),new Date(e).getTime()}(t)),e}function A(t){return Date.parse(t)}function N(t){return Date.parse(t)}function x(t,e,n){n()}function D(t,e,n){var r=k(t);isNaN(r)?n():e(r)}function O(t,e,n,r,a){var i,o,l=!1,s=new XMLHttpRequest,u=a?z.w.HEAD:z.w.GET,c=e.match(/\S+/g);if(e=c.shift(),i=function(){l||(l=!0,c.length?O(t,c.join(" "),n,r,a):r())},o=function(){var e,r;200===s.status&&(e=a?s.getResponseHeader("Date"):s.response,r=t(e),isNaN(r)||(n(r),l=!0))},y.isRelative(e)){var f=p.resolve();f&&(e=y.resolve(e,f.url))}s.open(u,e),s.timeout=5e3,s.onload=o,s.onloadend=i,s.send()}function P(t,e,n){O(N,t,e,n,!0)}function M(t,r){if(isNaN(f)||isNaN(r)||t||function(t){try{var n,r=j(t),i=isNaN(m)?30:m,o=isNaN(a.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor)?2:a.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor,l=isNaN(a.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts)?600:a.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts,s=isNaN(a.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts)?2:a.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts;r?(n=Math.min(i*o,l),e.debug("Increasing timeBetweenSyncAttempts to ".concat(n))):(n=Math.max(i/o,s),e.debug("Decreasing timeBetweenSyncAttempts to ".concat(n))),m=n}catch(t){}}(r),!t&&!isNaN(r)){u=Date.now(),n=!1;var i=isNaN(f);f=r,i&&E(),e.debug("Completed UTC sync. Setting client - server offset to ".concat(r))}t&&(d=null,n=!1,g.error(new H.Z(Q.TIME_SYNC_FAILED_ERROR_CODE,Q.TIME_SYNC_FAILED_ERROR_MESSAGE))),b.trigger(R.Z.UPDATE_TIME_SYNC_OFFSET,{offset:r}),b.trigger(R.Z.TIME_SYNCHRONIZATION_COMPLETED)}function L(){if(l&&0!==l.length){var t=l.reduce((function(t,e){return t+e}),0)/l.length;j(t)?e.debug("Completed background UTC sync. Offset is within allowed threshold and is not adjusted."):(e.debug("Completed background UTC sync. Setting client - server offset to ".concat(t)),f=t,b.trigger(R.Z.UPDATE_TIME_SYNC_OFFSET,{offset:f})),r=!1,c=Date.now()}}function j(t){try{if(isNaN(f))return!0;var e=a.get().streaming.utcSynchronization.maximumAllowedDrift&&!isNaN(a.get().streaming.utcSynchronization.maximumAllowedDrift)?a.get().streaming.utcSynchronization.maximumAllowedDrift:100;return t>=f-e&&t<=f+e}catch(t){return!0}}return t={initialize:function(){v(),i={"urn:mpeg:dash:utc:http-head:2014":P,"urn:mpeg:dash:utc:http-xsdate:2014":O.bind(null,k),"urn:mpeg:dash:utc:http-iso:2014":O.bind(null,A),"urn:mpeg:dash:utc:direct:2014":D,"urn:mpeg:dash:utc:http-head:2012":P,"urn:mpeg:dash:utc:http-xsdate:2012":O.bind(null,k),"urn:mpeg:dash:utc:http-iso:2012":O.bind(null,A),"urn:mpeg:dash:utc:direct:2012":D,"urn:mpeg:dash:utc:http-ntp:2014":x,"urn:mpeg:dash:utc:ntp:2014":x,"urn:mpeg:dash:utc:sntp:2014":x}},attemptSync:function(t,e){s=t,n||(function(t){try{if(!t||!a.get().streaming.utcSynchronization.enabled)return!1;var e=isNaN(m)?30:m;return!(u&&e&&!isNaN(e))||(Date.now()-u)/1e3>=e}catch(t){return!0}}(e)?(n=!0,w()):b.trigger(R.Z.TIME_SYNCHRONIZATION_COMPLETED))},setConfig:function(t){t&&(t.dashMetrics&&(o=t.dashMetrics),t.baseURLController&&(p=t.baseURLController),t.errHandler&&(g=t.errHandler),t.settings&&(a=t.settings))},reset:function(){v(),b.off(R.Z.ATTEMPT_BACKGROUND_SYNC,E,t)}},e=(0,C.Z)(h).getInstance().getLogger(t),b.on(R.Z.ATTEMPT_BACKGROUND_SYNC,E,t),t}ni.__dashjs_factory_name="TimeSyncController";var ri=N.Z.getSingletonFactory(ni);ri.HTTP_TIMEOUT_MS=5e3,N.Z.updateSingletonFactory(ni.__dashjs_factory_name,ri);var ai=ri;function ii(){var t,e,n,r,a,i=this.context,o=(0,I.Z)(i).getInstance();return t={attachMediaSource:function(t){var n=window.URL.createObjectURL(e);return t.setSource(n),"managedMediaSource"===r&&(t.setDisableRemotePlayback(!0),e.addEventListener("startstreaming",(function(){o.trigger(x.Z.MANAGED_MEDIA_SOURCE_START_STREAMING)})),e.addEventListener("endstreaming",(function(){o.trigger(x.Z.MANAGED_MEDIA_SOURCE_END_STREAMING)}))),n},createMediaSource:function(){var t="WebKitMediaSource"in window,n="MediaSource"in window;return"ManagedMediaSource"in window?(e=new ManagedMediaSource,r="managedMediaSource",a.info("Created ManagedMediaSource")):n?(e=new MediaSource,r="mediaSource",a.info("Created MediaSource")):t&&(e=new WebKitMediaSource,a.info("Created WebkitMediaSource")),e},detachMediaSource:function(t){t.setSource(null)},setConfig:function(t){t&&t.settings&&(n=t.settings)},setDuration:function t(r){e&&"open"===e.readyState&&(null===r&&isNaN(r)||e.duration!==r&&(r!==1/0||n.get().streaming.buffer.mediaSourceDurationInfinity||(r=Math.pow(2,32)),function(t){for(var e=t.sourceBuffers,n=0;n<e.length;n++)if(e[n].updating)return!0;return!1}(e)?setTimeout(t.bind(null,r),50):(a.info("Set MediaSource duration:"+r),e.duration=r)))},setSeekable:function(t,n){e&&"function"==typeof e.setLiveSeekableRange&&"function"==typeof e.clearLiveSeekableRange&&"open"===e.readyState&&t>=0&&t<n&&(e.clearLiveSeekableRange(),e.setLiveSeekableRange(t,n))},signalEndOfStream:function(t){if(t&&"open"===t.readyState){for(var e=t.sourceBuffers,n=0;n<e.length;n++){if(e[n].updating)return;if(0===e[n].buffered.length)return}a.info("call to mediaSource endOfStream"),t.endOfStream()}}},a=(0,C.Z)(i).getInstance().getLogger(t),t}ii.__dashjs_factory_name="MediaSourceController";var oi=N.Z.getSingletonFactory(ii);function li(){var t,e,n,r,a,i,o,l,s,u,c,f="urn:mpeg:dash:event:2012",d=1,m="urn:mpeg:dash:event:callback:2015",g=1,p=300,h={DISCARDED:"discarded",UPDATED:"updated",ADDED:"added"},b=this.context,y=(0,I.Z)(b).getInstance();function v(){if(!o||!l)throw new Error("setConfig function has to be called previously")}function E(){c=!1,n={},r={},a=null,u=!1,i=Date.now()/1e3}function _(){try{null!==a&&c&&(clearInterval(a),a=null,c=!1,function(){try{R(r),R(n)}catch(t){e.error(t)}}())}catch(t){throw t}}function w(){try{if(!u){u=!0;var t=l.getTime(),a=t-i;a=i>0?Math.max(0,a):0,T(r,a,t),T(n,a,t),S(r),S(n),i=t,u=!1}}catch(t){u=!1,e.error(t)}}function T(t,n,r){try{N(t,(function(a){if(void 0!==a){var i=isNaN(a.duration)?0:a.duration;a.calculatedPresentationTime<=r&&a.calculatedPresentationTime+n+i>=r?O(a,x.Z.EVENT_MODE_ON_START):(D(r,i+n,a.calculatedPresentationTime)||function(t){try{var n=t.eventStream.period.start+t.eventStream.period.duration;return t.calculatedPresentationTime>n}catch(t){return e.error(t),!1}}(a))&&(e.debug("Removing event ".concat(a.id," from period ").concat(a.eventStream.period.id," as it is expired or invalid")),function(t,n){try{var r=n.eventStream.schemeIdUri,a=n.eventStream.period.id,i=n.eventStream.value,o=n.id;t[a][r]=t[a][r].filter((function(t){return i&&t.eventStream.value&&t.eventStream.value!==i||t.id!==o})),0===t[a][r].length&&delete t[a][r]}catch(t){e.error(t)}}(t,a))}}))}catch(t){e.error(t)}}function S(t){try{for(var n in t)t.hasOwnProperty(n)&&0===Object.keys(t[n]).length&&delete t[n]}catch(t){e.error(t)}}function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.eventStream.schemeIdUri,a=t.eventStream.value,i=t.id,o=h.DISCARDED;e[r]||(e[r]=[]);var l=e[r].findIndex((function(t){return(!a||t.eventStream.value&&t.eventStream.value===a)&&t.id===i}));if(-1===l)e[r].push(t),t.triggeredReceivedEvent=!1,t.triggeredStartEvent=!1,o=h.ADDED;else if(n){var s=e[r][l];t.triggeredReceivedEvent=s.triggeredReceivedEvent,t.triggeredStartEvent=s.triggeredStartEvent,e[r][l]=t,o=h.UPDATED}return o}function A(t){try{if(t.eventStream.value==d){var n,r=t.calculatedPresentationTime;n=4294967295==t.calculatedPresentationTime?NaN:t.calculatedPresentationTime+t.duration,y.trigger(x.Z.MANIFEST_VALIDITY_CHANGED,{id:t.id,validUntil:r,newDuration:n,newManifestValidAfter:NaN},{mode:x.Z.EVENT_MODE_ON_START})}}catch(t){e.error(t)}}function R(t){try{var n=l.getTime();N(t,(function(t){var e=t.eventStream&&t.eventStream.period&&!isNaN(t.eventStream.period.duration)?t.eventStream.period.duration:NaN,r=t.eventStream&&t.eventStream.period&&!isNaN(t.eventStream.period.start)?t.eventStream.period.start:NaN;if(!isNaN(e)&&!isNaN(r)){var a=t.calculatedPresentationTime;Math.abs(a-n)<p&&O(t,x.Z.EVENT_MODE_ON_START)}}))}catch(t){e.error(t)}}function N(t,n){try{if(t)for(var r=Object.keys(t),a=0;a<r.length;a++)for(var i=t[r[a]],o=Object.keys(i),l=0;l<o.length;l++)i[o[l]].forEach((function(t){void 0!==t&&n(t)}))}catch(t){e.error(t)}}function D(t,n,r){try{return t-n>r}catch(t){return e.error(t),!1}}function O(t,n){try{var r=l.getTime(),a=t.id;if(n===x.Z.EVENT_MODE_ON_RECEIVE&&!t.triggeredReceivedEvent)return e.debug("Received event ".concat(a)),t.triggeredReceivedEvent=!0,void y.trigger(t.eventStream.schemeIdUri,{event:t},{mode:n});t.triggeredStartEvent||(t.eventStream.schemeIdUri===f&&t.eventStream.value==d?0===t.duration&&0===t.presentationTimeDelta||(e.debug("Starting manifest refresh event ".concat(a," at ").concat(r)),function(){try{v(),o.refreshManifest()}catch(t){e.error(t)}}()):t.eventStream.schemeIdUri===m&&t.eventStream.value==g?(e.debug("Starting callback event ".concat(a," at ").concat(r)),function(t){try{le(b).create({}).load({method:"get",url:t,request:{responseType:"arraybuffer"}})}catch(t){e.error(t)}}(t.messageData)):(e.debug("Starting event ".concat(a," from period ").concat(t.eventStream.period.id," at ").concat(r)),y.trigger(t.eventStream.schemeIdUri,{event:t},{mode:n})),t.triggeredStartEvent=!0)}catch(t){e.error(t)}}return t={addInlineEvents:function(t,r){try{if(v(),n[r]||(n[r]={}),t)for(var a=0;a<t.length;a++){var i=t[a];if(!D(l.getTime(),isNaN(i.duration)?0:i.duration,i.calculatedPresentationTime)){var o=k(i,n[r],!0);o===h.ADDED?(e.debug("Added inline event with id ".concat(i.id," from period ").concat(r)),O(i,x.Z.EVENT_MODE_ON_RECEIVE)):o===h.UPDATED&&e.debug("Updated inline event with id ".concat(i.id," from period ").concat(r))}}}catch(t){throw t}},addInbandEvents:function(t,n){try{v(),r[n]||(r[n]={});for(var a=0;a<t.length;a++){var i=t[a];D(l.getTime(),isNaN(i.duration)?0:i.duration,i.calculatedPresentationTime)||(k(i,r[n],!1)===h.ADDED?(i.eventStream.schemeIdUri===f&&A(i),e.debug("Added inband event with id ".concat(i.id," from period ").concat(n)),O(i,x.Z.EVENT_MODE_ON_RECEIVE)):e.debug("Inband event with scheme_id_uri ".concat(i.eventStream.schemeIdUri,", value ").concat(i.eventStream.value,", period id ").concat(n," and event id ").concat(i.id," was ignored because it has been added before.")))}w()}catch(t){throw t}},getInbandEvents:function(){return r},getInlineEvents:function(){return n},start:function(){try{v(),e.debug("Start Event Controller");var t=s.get().streaming.eventControllerRefreshDelay;c||isNaN(t)||(c=!0,a=setInterval(w,t))}catch(t){throw t}},setConfig:function(t){try{if(!t)return;t.manifestUpdater&&(o=t.manifestUpdater),t.playbackController&&(l=t.playbackController),t.settings&&(s=t.settings)}catch(t){throw t}},reset:function(){_(),E()}},e=(0,C.Z)(b).getInstance().getLogger(t),E(),t}li.__dashjs_factory_name="EventController";var si=N.Z.getSingletonFactory(li),ui={LEVELS:{SUGGESTION:"Suggestion",WARNING:"Warning",ERROR:"Error"},EVENTS:{NO_UTC_TIMING_ELEMENT:{key:"NO_UTC_TIMING_ELEMENT",message:"No UTCTiming element is present in the manifest. You may experience playback failures. For a detailed validation use https://conformance.dashif.org/"},NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE:{key:"NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE",message:'SMPTE 2052-1:2013 defines the attribute name as "imageType" and does not define "imagetype"'},INVALID_DVR_WINDOW:{key:"INVALID_DVR_WINDOW",message:"No valid segment found when applying a specification compliant DVR window calculation. Using SegmentTimeline entries as a fallback."}}};function ci(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E,_,w,T,k,N,D,O,z,P,M,L,j,F,U,q,B,Z,G,Y,V,K,W,X,$,J,tt,et,nt,rt=this.context,it=(0,I.Z)(rt).getInstance();function ot(){if(!(i&&i.hasOwnProperty("load")&&_&&_.hasOwnProperty("initialize")&&_.hasOwnProperty("reset")&&_.hasOwnProperty("getClientTimeOffset")&&o&&E&&s&&F))throw new Error(S.Z.MISSING_CONFIG_ERROR)}function lt(){!function(){try{var t=l.getStreamsInfo();if(!T&&0===t.length)throw new Error("There are no periods in the MPD");T&&t.length>0&&s.updateManifestUpdateInfo({currentTime:F.getTime(),buffered:j.getBufferRange(),presentationStartTime:t[0].start,clientTimeOffset:_.getClientTimeOffset()}),w.length>0&&function(t){0!==t.length?w=w.filter((function(n){var r=t.filter((function(t){return t.id===n.getId()})).length>0||n.getId()===T.getId();return r||(e.debug("Removing stream ".concat(n.getId())),n.reset(!0)),r})):e.warn("No periods included in the current manifest. Skipping the filtering of outdated stream objects.")}(t);for(var n=[],r=0,a=t.length;r<a;r++){var i=t[r];n.push(ut(i)),s.addManifestUpdateStreamInfo(i)}Promise.all(n).then((function(){return new Promise((function(e,n){T?e():ct(t,e,n)}))})).then((function(){it.trigger(R.Z.STREAMS_COMPOSED),Ct()})).catch((function(t){throw t}))}catch(t){E.error(new H.Z(Q.MANIFEST_ERROR_ID_NOSTREAMS_CODE,t.message+" nostreamscomposed",o.getValue())),M=!0,Qt()}}()}function st(){J=!0}function ut(t){var e=Kt(t.id);return e?e.updateData(t):(e=Fa(rt).create({manifestModel:o,mediaPlayerModel:q,dashMetrics:s,manifestUpdater:a,adapter:l,timelineConverter:_,capabilities:n,capabilitiesFilter:r,errHandler:E,baseURLController:d,segmentBaseController:m,textController:N,abrController:p,playbackController:F,throughputController:h,eventController:y,mediaController:b,protectionController:k,videoModel:j,streamInfo:t,settings:$}),w.push(e),e.initialize(),Promise.resolve())}function ct(t,n,r){try{wt();var a=s.getCurrentDVRInfo().range;if(a.end<a.start){tt&&clearTimeout(tt);var i=Math.min(1e3*(-1*(a.end-a.start)+2),2147483647);return e.debug("Waiting for ".concat(i," ms before playback can start")),it.trigger(R.Z.AST_IN_FUTURE,{delay:i}),void(tt=setTimeout((function(){ct(t,n,r)}),i))}$.get().streaming.applyProducerReferenceTime&&U.calculateProducerReferenceTimeOffsets(t);var u=t[0].manifestInfo;if($.get().streaming.applyServiceDescription&&U.applyServiceDescription(u),l.getIsDynamic()){var c=jt(0,u);F.computeAndSetLiveDelay(c,u)}($.get().streaming.applyContentSteering&&f.shouldQueryBeforeStart()?f.loadSteeringData():Promise.resolve()).then((function(){var t=o.getValue();t&&d.update(t),ft(),n()})).catch((function(t){e.error(t),ft(),n()}))}catch(t){r(t)}}function ft(){var t=function(){var t;if(l.getIsDynamic()){var n=s.getCurrentDVRInfo();t=(n&&n.range?n.range.end:0)-F.getOriginalLiveDelay();var r=n?n.range:null;if(r){if(isNaN(et)&&-1===et.toString().indexOf("posix:")){var a=Pt(!0);isNaN(a)||(e.info("Start time from URI parameters: ".concat(a)),t=Math.min(t,a))}else{e.info("Start time provided by the app: ".concat(et));var i=Mt(!0,et);isNaN(i)||(t=Math.min(t,i))}var o=$.get().streaming.timeShiftBuffer.calcFromSegmentTimeline?.1:0;t=Math.max(t,r.start+o)}}else if(t=Jt()[0].getStreamInfo().start,isNaN(et)){var u=Pt(!1);isNaN(u)||(e.info("Start time from URI parameters: ".concat(u)),t=Math.max(t,u))}else{e.info("Start time provided by the app: ".concat(et));var c=Mt(!1,et);isNaN(c)||(t=Math.max(t,c))}return t}(),n=_t(t),r=null!==n?n:w[0];it.trigger(R.Z.INITIAL_STREAM_SWITCH,{startTime:t}),dt(r,null,t),V||(V=setInterval((function(){!z&&F.getTimeToStreamEnd()<=0&&!F.isSeeking()&&it.trigger(R.Z.PLAYBACK_ENDED,{isLast:Vt().isLast})}),200))}function dt(t,n,r){try{if(z||!t||n===t&&t.getIsActive())return;z=!0,it.trigger(R.Z.PERIOD_SWITCH_STARTED,{fromStreamInfo:n?n.getStreamInfo():null,toStreamInfo:t.getStreamInfo()});var a=!1;T=t,n&&(a=vt(t,n),n.deactivate(a)),r=isNaN(r)?!a&&n?t.getStreamInfo().start:NaN:r,e.info("Switch to stream ".concat(t.getId(),". Seektime is ").concat(r,", current playback time is ").concat(F.getTime(),". Seamless period switch is set to ").concat(a)),W=W.filter((function(t){return t.getId()!==T.getId()})),F.initialize(Vt(),!!n),j.getElement()?mt(r,a,!1):gt(r,a)}catch(t){z=!1}}function mt(t,n){var r,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];function i(){if(L&&"open"===L.readyState){e.debug("MediaSource is open!"),window.URL.revokeObjectURL(r),L.removeEventListener("sourceopen",i),L.removeEventListener("webkitsourceopen",i),zt();var o=s.getCurrentDVRInfo();u.setSeekable(o.range.start,o.range.end),a?(isNaN(t)||F.seek(t,!0,!0),T.setMediaSource(L).then((function(){T.initializeForTextWithMediaSource(L)}))):gt(t,n)}}function o(){L.addEventListener("sourceopen",i,!1),L.addEventListener("webkitsourceopen",i,!1),r=u.attachMediaSource(j),e.debug("MediaSource attached to element.  Waiting on open...")}L?n?gt(t,n):(u.detachMediaSource(j),o()):(L=u.createMediaSource(),o())}function gt(t,e){T.activate(L,e?K:void 0,t).then((function(e){if(e){var n=Object.keys(e);n.length>0&&e[n[0]].getBuffer().changeType&&(X=!0),K=e}isNaN(t)||(it.trigger(R.Z.SEEK_TARGET,{time:t},{streamId:T.getId()}),F.seek(t,!1,!0),T.startScheduleControllers()),z=!1,it.trigger(R.Z.PERIOD_SWITCH_COMPLETED,{toStreamInfo:Vt()})}))}function pt(t){var e=_t(t.seekTime);e&&e!==T?e&&e!==T&&(ht(e),function(t,e){var n=t&&!isNaN(t.seekTime)?t.seekTime:NaN,r=T.getProcessors().map((function(e){return e.prepareOuterPeriodPlaybackSeeking(t)}));Promise.all(r).then((function(){dt(e,T,n)})).catch((function(t){E.error(t)}))}(t,e)):(ht(),function(t){T.getProcessors().forEach((function(e){return e.prepareInnerPeriodPlaybackSeeking(t)})),Gt(Ut.USER_REQUEST_STOP_REASON)}(t)),Ht(Ft.SEEK_START_REASON)}function ht(){bt()}function bt(){W&&W.length>0&&(W.forEach((function(t){t.deactivate(!0)})),W=[])}function yt(t){if(t.newMediaInfo.streamInfo.id===T.getId()){if(bt(),$.get().streaming.buffer.resetSourceBuffersForTrackSwitch&&t.oldMediaInfo&&t.oldMediaInfo.codec!==t.newMediaInfo.codec){var e=F.getTime();return T.deactivate(!1),void mt(e,!1,!1)}T.prepareTrackChange(t)}}function vt(t,e){try{return $.get().streaming.buffer.reuseExistingSourceBuffers&&(n.isProtectionCompatible(e.getStreamInfo(),t.getStreamInfo())||J)&&X&&$.get().streaming.buffer.useChangeTypeForTrackSwitch}catch(t){return!1}}function Et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;L&&!t.getPreloaded()&&vt(t,e)&&t.startPreloading(L,K).then((function(){W.push(t)}))}function _t(t){if(isNaN(t))return null;for(var e=w.length,n=0;n<e;n++){var r=w[n];if(t<parseFloat((r.getStartTime()+r.getDuration()).toFixed(5)))return r}return null}function wt(){try{var t=l.getIsDynamic(),e=l.getStreamsInfo()[0].manifestInfo,n=F.getTime(),r=_.calcTimeShiftBufferWindow(w,t),a=Dt();if(void 0===r.start||void 0===r.end)return;a&&0!==a.length?a.forEach((function(t){s.addDVRInfo(t.getType(),n,e,r)})):s.addDVRInfo(S.Z.VIDEO,n,e,r)}catch(t){}}function Tt(t){if(G&&O){var e=q.getInitialBufferLevel(),n=[S.Z.TEXT];(isNaN(e)||e<=F.getBufferLevel(n)||l.getIsDynamic()&&e>F.getLiveDelay())&&(G=!1,Ht(Ft.INITIAL_PLAYOUT_START_REASON),F.play())}t&&t.mediaType&&s.addBufferLevel(t.mediaType,new Date,1e3*t.bufferLevel)}function St(t){t.streamInfo.id===T.getId()&&t.reason&&t.reason.forceReplace&&bt(),Kt(t.streamInfo.id).prepareQualityChange(t)}function kt(){if(l.getIsDynamic()&&0!==F.getOriginalLiveDelay()&&T){var t=l.getStreamsInfo();if(t.length>0){var e=t[0].manifestInfo,n=jt(0,e);F.computeAndSetLiveDelay(n,e)}}}function At(){if(Bt()){var t=j.getPlaybackQuality();t&&s.addDroppedFrames(t)}}function It(){e.debug("[onPlaybackStarted]"),!G&&Z&&Ht(Ft.RESUME_FROM_PAUSE_START_REASON),G&&(G=!1),Y&&(Y=!1,$.get().streaming.applyContentSteering&&!f.shouldQueryBeforeStart()&&f.loadSteeringData()),Z=!1}function Rt(t){e.debug("[onPlaybackPaused]"),t.ended||(Z=!0,Gt(Ut.USER_REQUEST_STOP_REASON))}function Nt(t){e.debug("Stream with id ".concat(t.streamInfo.id," finished buffering"));var n=t.streamInfo.isLast;L&&n?(e.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),u.signalEndOfStream(L)):Ct()}function Ct(){if(T&&T.getHasFinishedBuffering())for(var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var e=t||T||null;if(e){var n=e.getStreamInfo();return w.filter((function(t){var e=t.getStreamInfo();return e.start>n.start&&n.id!==e.id}))}}catch(t){return[]}}(T),e=0;e<t.length;){var n=t[e],r=0===e?T:t[e-1];!n.getPreloaded()&&r.getHasFinishedBuffering()&&L&&Et(n,r),e+=1}}function xt(){V&&(clearInterval(V),V=null)}function Dt(){return T?T.getProcessors():[]}function Ot(t){if(T&&!T.getIsEndedEventSignaled()){T.setIsEndedEventSignaled(!0);var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=t||T||null;if(!e)return null;for(var n=e.getStreamInfo(),r=n.start,a=0,i=-1,o=NaN;a<w.length;){var l=w[a].getStreamInfo(),s=l.start-r;s>0&&(isNaN(o)||s<o)&&n.id!==l.id&&(o=s,i=a),a+=1}return i>=0?w[i]:null}();n?(e.debug("StreamController onEnded, found next stream with id ".concat(n.getStreamInfo().id,". Switching from ").concat(T.getStreamInfo().id," to ").concat(n.getStreamInfo().id)),dt(n,T,NaN)):(e.debug("StreamController no next stream found"),T.setIsEndedEventSignaled(!1)),Gt(n?Ut.END_OF_PERIOD_STOP_REASON:Ut.END_OF_CONTENT_STOP_REASON)}t&&t.isLast&&(xt(),f.stopSteeringRequestTimer())}function zt(t){var e=t||Vt().manifestInfo.duration;u.setDuration(e)}function Pt(t){var e=g.getURIFragmentData();if(!e||!e.t)return NaN;var n=Jt()[0].getStreamInfo().start;return e.t=e.t.split(",")[0],Lt(t,e.t,n)}function Mt(t,e){var n=0;return t||(n=Jt()[0].getStreamInfo().start),Lt(t,e,n)}function Lt(t,e,n){var r=l.getRegularPeriods()[0],a=e.toString(),i=-1!==a.indexOf("posix:")?"now"===a.substring(6)?Date.now()/1e3:parseFloat(a.substring(6)):NaN;return t&&!isNaN(i)?_.calcPresentationTimeFromWallTime(new Date(1e3*i),r):parseFloat(a)+n}function jt(t,e){try{return e&&!isNaN(e.maxFragmentDuration)&&isFinite(e.maxFragmentDuration)?e.maxFragmentDuration:(isFinite(NaN),NaN)}catch(t){return NaN}}function qt(t){if(t.error)M=!0,Qt();else{e.info("Manifest updated... updating data system wide.");var n=t.manifest;l.updatePeriods(n),r.filterUnsupportedFeatures(n).then((function(){d.initialize(n);var t=l.getUTCTimingSources();!l.getIsDynamic()||t&&0!==t.length||it.trigger(x.Z.CONFORMANCE_VIOLATION,{level:ui.LEVELS.WARNING,event:ui.EVENTS.NO_UTC_TIMING_ELEMENT});var e=l.getIsDynamic()?t.concat(B.getUTCTimingSources()):t;c.attemptSync(e,l.getIsDynamic())}))}}function Bt(){return!!T&&T.getHasVideoTrack()}function Zt(){return!!T&&T.getHasAudioTrack()}function Gt(t,e){e=e||new Date,Dt().forEach((function(n){n.finalisePlayList(e,t)})),s.addPlayList()}function Ht(t){s.createPlaylistMetrics(1e3*F.getTime(),t)}function Yt(t){if(t.error){var n;switch(t.error.code){case 1:n="MEDIA_ERR_ABORTED";break;case 2:n="MEDIA_ERR_NETWORK";break;case 3:n="MEDIA_ERR_DECODE",nt.counts.mediaErrorDecode+=1;break;case 4:n="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:n="MEDIA_ERR_ENCRYPTED";break;default:n="UNKNOWN"}"MEDIA_ERR_DECODE"===n&&$.get().errors.recoverAttempts.mediaErrorDecode>=nt.counts.mediaErrorDecode?function(){e.warn("A MEDIA_ERR_DECODE occured: Resetting the MediaSource");var t=F.getTime();T.deactivate(!1),e.warn("MediaSource has been resetted. Resuming playback from time ".concat(t)),mt(t,!1,!1)}():(P=!0,t.error.message&&(n+=" ("+t.error.message+")"),t.error.msExtendedCode&&(n+=" (0x"+(t.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),e.fatal("Video Element Error: "+n),t.error&&e.fatal(t.error),E.error(new H.Z(t.error.code,n)),Qt())}}function Vt(){return T?T.getStreamInfo():null}function Kt(t){for(var e=0,n=w.length;e<n;e++)if(w[e].getId()===t)return w[e];return null}function Wt(t){isNaN(t.newDuration)||zt(t.newDuration)}function Xt(){w=[],et=NaN,k=null,z=!1,T=null,P=!1,M=!1,G=!0,Y=!0,Z=!1,O=!0,V=null,J=!1,X=!1,W=[],tt=null,nt={counts:{mediaErrorDecode:0}}}function Qt(){ot(),c.reset(),Gt(P||M?Ut.FAILURE_STOP_REASON:Ut.USER_REQUEST_STOP_REASON);for(var e=0,n=w?w.length:0;e<n;e++)w[e].reset(P);it.off(x.Z.PLAYBACK_TIME_UPDATED,At,t),it.off(x.Z.PLAYBACK_SEEKING,pt,t),it.off(x.Z.PLAYBACK_ERROR,Yt,t),it.off(x.Z.PLAYBACK_STARTED,It,t),it.off(x.Z.PLAYBACK_PAUSED,Rt,t),it.off(x.Z.PLAYBACK_ENDED,Ot,t),it.off(x.Z.METRIC_ADDED,$t,t),it.off(x.Z.MANIFEST_VALIDITY_CHANGED,Wt,t),it.off(x.Z.BUFFER_LEVEL_UPDATED,Tt,t),it.off(x.Z.QUALITY_CHANGE_REQUESTED,St,t),R.Z.KEY_SESSION_UPDATED&&it.off(R.Z.KEY_SESSION_UPDATED,st,t),it.off(R.Z.MANIFEST_UPDATED,qt,t),it.off(R.Z.STREAM_BUFFERING_COMPLETED,Nt,t),it.off(R.Z.TIME_SYNCHRONIZATION_COMPLETED,lt,t),it.off(R.Z.CURRENT_TRACK_CHANGED,yt,t),it.off(R.Z.SETTING_UPDATED_LIVE_DELAY,kt,t),it.off(R.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,kt,t),d.reset(),a.reset(),y.reset(),s.clearAllCurrentMetrics(),o.setValue(null),i.reset(),_.reset(),v.reset(),L&&(u.detachMediaSource(j),L=null),j=null,k&&(k=null,D=null,o.getValue()&&it.trigger(R.Z.PROTECTION_DESTROYED,{data:o.getValue().url})),xt(),it.trigger(R.Z.STREAM_TEARDOWN_COMPLETE),Xt()}function $t(t){if(t.metric===A.DVR_INFO){var e=Zt()?S.Z.AUDIO:S.Z.VIDEO;t.mediaType===e&&u.setSeekable(t.value.range.start,t.value.range.end)}}function Jt(){return w}return t={addDVRMetric:wt,getActiveStream:function(){return T},getActiveStreamInfo:Vt,getActiveStreamProcessors:Dt,getAutoPlay:function(){return O},getHasMediaOrInitialisationError:function(){return P||M},getInitialPlayback:function(){return G},getIsStreamSwitchInProgress:function(){return z},getStreamById:Kt,getStreamForTime:_t,getStreams:Jt,getTimeRelativeToStreamId:function(t,e){for(var n=null,r=0,a=0,i=null,o=0;o<w.length;o++){if(a=(n=w[o]).getStartTime(),i=n.getDuration(),Number.isFinite(a)&&(r=a),n.getId()===e)return t-r;Number.isFinite(i)&&(r+=i)}return null},hasAudioTrack:Zt,hasVideoTrack:Bt,initialize:function(e,n){ot(),O=e,D=n,_.initialize(),(a=ei(rt).create()).setConfig({manifestModel:o,adapter:l,manifestLoader:i,errHandler:E,settings:$,contentSteeringController:f}),a.initialize(),(y=si(rt).getInstance()).setConfig({manifestUpdater:a,playbackController:F,settings:$}),y.start(),c.setConfig({dashMetrics:s,baseURLController:d,errHandler:E,settings:$}),c.initialize(),u.setConfig({settings:$}),k&&(it.trigger(R.Z.PROTECTION_CREATED,{controller:k}),k.setMediaElement(j.getElement()),D&&k.setProtectionData(D)),it.on(x.Z.PLAYBACK_TIME_UPDATED,At,t),it.on(x.Z.PLAYBACK_SEEKING,pt,t),it.on(x.Z.PLAYBACK_ERROR,Yt,t),it.on(x.Z.PLAYBACK_STARTED,It,t),it.on(x.Z.PLAYBACK_PAUSED,Rt,t),it.on(x.Z.PLAYBACK_ENDED,Ot,t),it.on(x.Z.METRIC_ADDED,$t,t),it.on(x.Z.MANIFEST_VALIDITY_CHANGED,Wt,t),it.on(x.Z.BUFFER_LEVEL_UPDATED,Tt,t),it.on(x.Z.QUALITY_CHANGE_REQUESTED,St,t),R.Z.KEY_SESSION_UPDATED&&it.on(R.Z.KEY_SESSION_UPDATED,st,t),it.on(R.Z.MANIFEST_UPDATED,qt,t),it.on(R.Z.STREAM_BUFFERING_COMPLETED,Nt,t),it.on(R.Z.TIME_SYNCHRONIZATION_COMPLETED,lt,t),it.on(R.Z.CURRENT_TRACK_CHANGED,yt,t),it.on(R.Z.SETTING_UPDATED_LIVE_DELAY,kt,t),it.on(R.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,kt,t)},load:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;ot(),et=e,i.load(t)},loadWithManifest:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;!function(){if(!a||!a.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}(),et=e,a.setManifest(t)},refreshManifest:function(){a.getIsUpdating()||a.refreshManifest()},reset:Qt,setConfig:function(t){t&&(t.capabilities&&(n=t.capabilities),t.capabilitiesFilter&&(r=t.capabilitiesFilter),t.manifestLoader&&(i=t.manifestLoader),t.manifestModel&&(o=t.manifestModel),t.mediaPlayerModel&&(q=t.mediaPlayerModel),t.customParametersModel&&(B=t.customParametersModel),t.protectionController&&(k=t.protectionController),t.adapter&&(l=t.adapter),t.dashMetrics&&(s=t.dashMetrics),t.errHandler&&(E=t.errHandler),t.timelineConverter&&(_=t.timelineConverter),t.videoModel&&(j=t.videoModel),t.playbackController&&(F=t.playbackController),t.throughputController&&(h=t.throughputController),t.serviceDescriptionController&&(U=t.serviceDescriptionController),t.contentSteeringController&&(f=t.contentSteeringController),t.textController&&(N=t.textController),t.abrController&&(p=t.abrController),t.mediaController&&(b=t.mediaController),t.settings&&($=t.settings),t.baseURLController&&(d=t.baseURLController),t.uriFragmentModel&&(g=t.uriFragmentModel),t.segmentBaseController&&(m=t.segmentBaseController),t.manifestUpdater&&(a=t.manifestUpdater))},setProtectionData:function(t){D=t,k&&k.setProtectionData(D)},switchToVideoElement:function(t){T&&(F.initialize(Vt()),mt(t,!1,!0))}},e=(0,C.Z)(rt).getInstance().getLogger(t),c=ai(rt).getInstance(),u=oi(rt).getInstance(),v=at(rt).getInstance(),Xt(),t}ci.__dashjs_factory_name="StreamController";var fi=N.Z.getSingletonFactory(ci);function di(){var t,e,n,r,a,i,o,l,s,u,c,f,d=this.context,m=(0,I.Z)(d).getInstance();function g(){f.debug("Stopping the gap controller"),a&&(clearInterval(a),a=null),function(){m.off(R.Z.WALLCLOCK_TIME_UPDATED,v,this),m.off(R.Z.INITIAL_STREAM_SWITCH,y,this),m.off(R.Z.PLAYBACK_SEEKING,p,this),m.off(R.Z.BUFFER_REPLACEMENT_STARTED,h,t),m.off(R.Z.TRACK_CHANGE_RENDERED,b,t)}(),a=null,i=NaN,r=0,u=null,c={}}function p(){u&&(clearTimeout(u),u=null)}function h(t){try{if(t.streamId!==l.getActiveStreamInfo().id||t.mediaType!==S.Z.VIDEO&&t.mediaType!==S.Z.AUDIO)return;t.streamId===l.getActiveStreamInfo().id&&(c[t.mediaType]=!0)}catch(t){f.error(t)}}function b(t){t&&t.mediaType&&(c[t.mediaType]=!1)}function y(){a||function(){try{a||(f.debug("Starting the gap controller"),a=setInterval((function(){E()&&_(o.getTime())}),100))}catch(t){}}()}function v(){if(E(n.get().streaming.gaps.enableSeekFix)&&++r>=10){var t=o.getTime();e===t?_(t,!0):(e=t,i=NaN),r=0}}function E(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!l.getActiveStream())return!1;var e,r,a=Object.keys(c).some((function(t){return c[t]})),i=!!t&&(e=l.getActiveStream(),r=parseFloat((e.getStartTime()+e.getDuration()).toFixed(5)),o.getTime()+n.get().streaming.gaps.threshold>=r);return!a&&n.get().streaming.gaps.jumpGaps&&l.getActiveStreamProcessors().length>0&&(!o.isSeeking()||i)&&!o.isPaused()&&!l.getIsStreamSwitchInProgress()&&!l.getHasMediaOrInitialisationError()}function _(t){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=n.get().streaming.gaps.enableStallFix,c=n.get().streaming.gaps.stallSeek,d=n.get().streaming.gaps.smallGapLimit,m=n.get().streaming.gaps.jumpLargeGaps,g=s.getBufferRange(),p=NaN,h=!1;if(e=function(t,e){try{if(!t||t.length<=1&&e>0)return NaN;for(var r=NaN,a=0;isNaN(r)&&a<t.length;){var i=a>0?t.end(a-1):0;e<t.start(a)&&i-e<n.get().streaming.gaps.threshold&&(r=a),a+=1}return r}catch(t){return null}}(g,t),!isNaN(e)){var b=g.start(e),y=b-t;y>0&&(y<=d||m)&&(p=b)}var v=o.getTimeToStreamEnd();if(isNaN(p)&&r&&isFinite(v)&&!isNaN(v)&&v<d&&(p=parseFloat(o.getStreamEndTime().toFixed(5)),h=!0),a&&isNaN(p)&&r&&isNaN(e)&&function(t,e){for(var n=0,r=t.length;n<r;n++)if(e>=t.start(n)&&e<=t.end(n))return!0;return!1}(g,t)&&(0===c?(f.warn("Toggle play pause to break stall"),s.pause(),s.play()):(f.warn("Jumping ".concat(c,"s to break stall")),p=t+c)),p>0&&i!==p&&p>t&&!u){var E=p-t;if(h){var _=l.getStreamForTime(p),w=_&&!!_.getPreloaded();f.warn("Jumping to end of stream because of gap from ".concat(t," to ").concat(p,". Gap duration: ").concat(E)),o.seek(p,!0,w)}else{var T=o.getIsDynamic(),S=e>0?g.end(e-1):t,k=T?1e3*Math.max(0,E-.1):0;u=window.setTimeout((function(){o.seek(p,!0,!0),f.warn("Jumping gap occuring in period ".concat(l.getActiveStream().getStreamId()," starting at ").concat(S," and ending at ").concat(p,". Jumping by: ").concat(p-S)),u=null}),k)}i=p}}return t={reset:g,setConfig:function(t){t&&(t.settings&&(n=t.settings),t.playbackController&&(o=t.playbackController),t.streamController&&(l=t.streamController),t.videoModel&&(s=t.videoModel))},initialize:function(){!function(){m.on(R.Z.WALLCLOCK_TIME_UPDATED,v,this),m.on(R.Z.INITIAL_STREAM_SWITCH,y,this),m.on(R.Z.PLAYBACK_SEEKING,p,this),m.on(R.Z.BUFFER_REPLACEMENT_STARTED,h,t),m.on(R.Z.TRACK_CHANGE_RENDERED,b,t)}()}},f=(0,C.Z)(d).getInstance().getLogger(t),g(),t}di.__dashjs_factory_name="GapController";var mi=N.Z.getSingletonFactory(di);function gi(){var t,e,n,r,a,i,o,l,s,u,c=this.context,f=(0,I.Z)(c).getInstance();function d(){e=!1;var t=ie.Z.parseUserAgent();n=t&&t.browser&&t.browser.name&&"safari"===t.browser.name.toLowerCase()}function m(){e=!1}function g(t){if(t.streamId===i.getActiveStreamInfo().id&&s){var e=o.getLiveDelay();o.getBufferLevel()>e/2&&(s=!1)}}function p(t){t.streamId===i.getActiveStreamInfo().id&&(s=t.state===A.BUFFER_EMPTY)}function h(){l.getCatchupModeEnabled()||r.setPlaybackRate(1)}function b(){o.getIsDynamic()&&l.getCatchupModeEnabled()&&(l.getCatchupPlaybackRates().max>0||l.getCatchupPlaybackRates().min<0)&&!o.isPaused()&&!o.isSeeking()&&function(){try{return!(!o.getTime()>0||e)&&(v()===S.Z.LIVE_CATCHUP_MODE_LOLP?function(t,e){try{return Math.abs(y())>0||t<e}catch(t){return!1}}(o.getBufferLevel(),a.get().streaming.liveCatchup.playbackBufferMin):function(){try{return Math.abs(y())>0}catch(t){return!1}}())}catch(t){return!1}}()&&function(){if(!e&&r){var t,i=r.getPlaybackRate(),c=l.getCatchupPlaybackRates(),f=o.getBufferLevel(),d=y(),m=l.getCatchupMaxDrift();if(!isNaN(m)&&m>0&&d>m)u.info("[CatchupController]: Low Latency catchup mechanism. Latency too high, doing a seek to live point"),e=!0,o.seekToCurrentLive(!0,!1);else{var g=o.getCurrentLiveLatency(),p=o.getLiveDelay();t=v()===S.Z.LIVE_CATCHUP_MODE_LOLP?function(t,e,n,r,a){var i;if(a<r){var o=Math.abs(t.min),l=5*(a-r);i=1-o+2*o/(1+Math.pow(Math.E,-l)),u.debug("[LoL+ playback control_buffer-based] bufferLevel: "+a+", newRate: "+i)}else{var s=.02;if(Math.abs(e-n)<=s*n)i=1;else{var c=e-n,f=c<0?Math.abs(t.min):t.max,d=5*c;i=1-f+2*f/(1+Math.pow(Math.E,-d))}u.debug("[LoL+ playback control_latency-based] latency: "+e+", newRate: "+i)}return i}(c,g,p,a.get().streaming.liveCatchup.playbackBufferMin,f):function(t,e,n,r){if(s)return 1;var a=e-n,i=a<0?Math.abs(t.min):t.max,l=5*a,u=2*i/(1+Math.pow(Math.E,-l)),c=1-i+u;return o.getPlaybackStalled()&&r<=n/2&&a>0&&(c=1),c}(c,g,p,f);var h=n?.25:.02/(.5/c.max);t&&Math.abs(i-t)>=h&&(u.debug("[CatchupController]: Setting playback rate to ".concat(t)),r.setPlaybackRate(t))}}}()}function y(){return o.getCurrentLiveLatency()-o.getLiveDelay()}function v(){var t=a.get().streaming.liveCatchup.playbackBufferMin;return a.get().streaming.liveCatchup.mode!==S.Z.LIVE_CATCHUP_MODE_LOLP||null===t||isNaN(t)?S.Z.LIVE_CATCHUP_MODE_DEFAULT:S.Z.LIVE_CATCHUP_MODE_LOLP}function E(){l.getCatchupPlaybackRates(!0)}return t={reset:function(){f.off(x.Z.BUFFER_LEVEL_UPDATED,g,t),f.off(x.Z.BUFFER_LEVEL_STATE_CHANGED,p,t),f.off(x.Z.PLAYBACK_PROGRESS,b,t),f.off(x.Z.PLAYBACK_TIME_UPDATED,b,t),f.off(x.Z.PLAYBACK_SEEKED,m,t),f.off(R.Z.SETTING_UPDATED_CATCHUP_ENABLED,h,t),f.off(R.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,E,t),f.off(R.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,E,t),f.off(x.Z.STREAM_INITIALIZED,E,t),d(),r.setPlaybackRate(1,!0)},setConfig:function(t){t&&(t.settings&&(a=t.settings),t.videoModel&&(r=t.videoModel),t.streamController&&(i=t.streamController),t.playbackController&&(o=t.playbackController),t.mediaPlayerModel&&(l=t.mediaPlayerModel))},initialize:function(){f.on(x.Z.BUFFER_LEVEL_UPDATED,g,t),f.on(x.Z.BUFFER_LEVEL_STATE_CHANGED,p,t),f.on(x.Z.PLAYBACK_PROGRESS,b,t),f.on(x.Z.PLAYBACK_TIME_UPDATED,b,t),f.on(x.Z.PLAYBACK_SEEKED,m,t),f.on(R.Z.SETTING_UPDATED_CATCHUP_ENABLED,h,t),f.on(R.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,E,t),f.on(R.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,E,t),f.on(x.Z.STREAM_INITIALIZED,E,t),E()}},u=(0,C.Z)(c).getInstance().getLogger(t),d(),t}gi.__dashjs_factory_name="CatchupController";var pi=N.Z.getSingletonFactory(gi),hi=[S.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME],bi="video",yi="audio",vi="any",Ei="all";function _i(){var t,e,n,r,a,i=this.context;function o(){e={liveDelay:NaN,liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN}},minBitrate:{},maxBitrate:{},initialBitrate:{},contentSteering:null},n=[]}function l(t,n,a){try{e[t][n]=a/1e3}catch(t){r.error(t)}}return t={getServiceDescriptionSettings:function(){return e},getProducerReferenceTimeOffsets:function(){return n},calculateProducerReferenceTimeOffsets:function(t){try{var e=[];if(t&&t.length>0){var i=[S.Z.VIDEO,S.Z.AUDIO,S.Z.TEXT],o=a.getAvailabilityStartTime()/1e3;t.forEach((function(t){var n=i.reduce((function(e,n){return e=e.concat(a.getAllMediaInfoForType(t,n))}),[]).reduce((function(e,n){return a.getProducerReferenceTimes(t,n).forEach((function(r){var i=a.getVoRepresentations(n);if(i&&i.length>0&&i[0].adaptation&&i[0].segmentInfoType===k.Z.SEGMENT_TEMPLATE){var l=i[0],s=new Date(r[k.Z.WALL_CLOCK_TIME]).getTime()/1e3-(r[k.Z.PRESENTATION_TIME]/l[k.Z.TIMESCALE]-l[k.Z.PRESENTATION_TIME_OFFSET]+t.start),u=o-s;e.push({id:r[k.Z.ID],to:u})}})),e}),[]);e=e.concat(n)}))}n=e}catch(t){r.error(t),n=[]}},applyServiceDescription:function(t){if(t&&t.serviceDescriptions){var a=t.serviceDescriptions.filter((function(t){return hi.includes(t.schemeIdUri)})),i=t.serviceDescriptions.filter((function(t){return null==t.schemeIdUri})),o=a.length>0?a[a.length-1]:i[i.length-1];o&&(o.latency&&o.latency.target>0&&function(t){var a;if(a=t.schemeIdUri===S.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME?function(t){var e=t.latency.target/1e3,n=!isNaN(t.latency.max)&&t.latency.max>t.latency.target?(t.latency.max-t.latency.target+500)/1e3:NaN,r=t.latency.referenceId||NaN;return{liveDelay:e,maxDrift:n,referenceId:r}}(t):function(t){var e=t.latency.target/1e3,n=!isNaN(t.latency.max)&&t.latency.max>t.latency.target?(t.latency.max-t.latency.target+500)/1e3:NaN,r=t.latency.referenceId||NaN;return{liveDelay:e,maxDrift:n,referenceId:r}}(t),n.length>0){var i=function(t){var e,r=0,a=n.filter((function(e){return e.id===t.referenceId}));return 0===a.length?(r=n.length>0?n[0].to:0,e=n[0].id||NaN):(r=a[0].to||0,e=a[0].id||NaN),{to:r,id:e}}(a),o=i.to,l=i.id;e.liveDelay=a.liveDelay-o,e.liveCatchup.maxDrift=a.maxDrift,r.debug("\n                Found latency properties coming from service description. Applied time offset of ".concat(o," from ProducerReferenceTime element with id ").concat(l,".\n                Live Delay: ").concat(a.liveDelay-o,", Live catchup max drift: ").concat(a.maxDrift,"\n            "))}else e.liveDelay=a.liveDelay,e.liveCatchup.maxDrift=a.maxDrift,r.debug("Found latency properties coming from service description: Live Delay: ".concat(a.liveDelay,", Live catchup max drift: ").concat(a.maxDrift))}(o),o.playbackRate&&function(t){var n=t.playbackRate.min?Math.round(1e3*(t.playbackRate.min-1))/1e3:NaN,a=t.playbackRate.max?Math.round(1e3*(t.playbackRate.max-1))/1e3:NaN;e.liveCatchup.playbackRate.min=n,e.liveCatchup.playbackRate.max=a,r.debug("Found latency properties coming from service description: Live catchup min playback rate: ".concat(n)),r.debug("Found latency properties coming from service description: Live catchup max playback rate: ".concat(a))}(o),o.operatingQuality,o.operatingBandwidth&&function(t){if(t&&t.operatingBandwidth&&t.operatingBandwidth.mediaType&&t.operatingBandwidth.mediaType!==Ei){var e={};e.minBandwidth=t.operatingBandwidth.min,e.maxBandwidth=t.operatingBandwidth.max,e.targetBandwidth=t.operatingBandwidth.target;var n=[];t.operatingBandwidth.mediaType===bi||t.operatingBandwidth.mediaType===yi?n.push(t.operatingBandwidth.mediaType):t.operatingBandwidth.mediaType===vi&&(n.push(yi),n.push(bi)),n.forEach((function(t){isNaN(e.minBandwidth)||l("minBitrate",t,e.minBandwidth),isNaN(e.maxBandwidth)||l("maxBitrate",t,e.maxBandwidth),isNaN(e.targetBandwidth)||l("initialBitrate",t,e.targetBandwidth)}))}}(o),o.contentSteering&&function(t){e.contentSteering=t.contentSteering}(o))}},reset:function(){o()},setConfig:function(t){t&&t.adapter&&(a=t.adapter)}},r=(0,C.Z)(i).getInstance().getLogger(t),o(),t}_i.__dashjs_factory_name="ServiceDescriptionController";var wi=N.Z.getSingletonFactory(_i);function Ti(t={}){let e=[];if(t.irregular)return t.irregular;if(t.regular)return t.regular;if(t.language){e=e.concat(t.language,t.extendedLanguageSubtags||[],t.script||[],t.region||[],t.variants||[]);const n=t.extensions||[];let r=-1;for(;++r<n.length;){const t=n[r];t.singleton&&t.extensions&&t.extensions.length>0&&e.push(t.singleton,...t.extensions)}}return t.privateuse&&t.privateuse.length>0&&e.push("x",...t.privateuse),e.join("-")}function Si(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}function ki(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}function Ai(t){return Si(t)||ki(t)}const Ii=["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"],Ri={"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"},Ni={}.hasOwnProperty;function Ci(t,e={}){const n={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},r=String(t),a=r.toLowerCase();let i=0;if(null==t)throw new Error("Expected string, got `"+t+"`");if(Ni.call(Ri,a)){const t=Ri[a];return void 0!==e.normalize&&null!==e.normalize&&!e.normalize||"string"!=typeof t?(n[Ii.includes(a)?"regular":"irregular"]=r,n):Ci(t)}for(;Si(a.charCodeAt(i))&&i<9;)i++;if(i>1&&i<9){if(n.language=r.slice(0,i),i<4){let t=0;for(;45===a.charCodeAt(i)&&Si(a.charCodeAt(i+1))&&Si(a.charCodeAt(i+2))&&Si(a.charCodeAt(i+3))&&!Si(a.charCodeAt(i+4));){if(t>2)return o(i,3,"Too many extended language subtags, expected at most 3 subtags");n.extendedLanguageSubtags.push(r.slice(i+1,i+4)),i+=4,t++}}for(45===a.charCodeAt(i)&&Si(a.charCodeAt(i+1))&&Si(a.charCodeAt(i+2))&&Si(a.charCodeAt(i+3))&&Si(a.charCodeAt(i+4))&&!Si(a.charCodeAt(i+5))&&(n.script=r.slice(i+1,i+5),i+=5),45===a.charCodeAt(i)&&(Si(a.charCodeAt(i+1))&&Si(a.charCodeAt(i+2))&&!Si(a.charCodeAt(i+3))?(n.region=r.slice(i+1,i+3),i+=3):ki(a.charCodeAt(i+1))&&ki(a.charCodeAt(i+2))&&ki(a.charCodeAt(i+3))&&!ki(a.charCodeAt(i+4))&&(n.region=r.slice(i+1,i+4),i+=4));45===a.charCodeAt(i);){const t=i+1;let e=t;for(;Ai(a.charCodeAt(e));){if(e-t>7)return o(e,1,"Too long variant, expected at most 8 characters");e++}if(!(e-t>4||e-t>3&&ki(a.charCodeAt(t))))break;n.variants.push(r.slice(t,e)),i=e}for(;45===a.charCodeAt(i)&&120!==a.charCodeAt(i+1)&&Ai(a.charCodeAt(i+1))&&45===a.charCodeAt(i+2)&&Ai(a.charCodeAt(i+3));){let t=i+2,e=0;for(;45===a.charCodeAt(t)&&Ai(a.charCodeAt(t+1))&&Ai(a.charCodeAt(t+2));){const n=t+1;for(t=n+2,e++;Ai(a.charCodeAt(t));){if(t-n>7)return o(t,2,"Too long extension, expected at most 8 characters");t++}}if(!e)return o(t,4,"Empty extension, extensions must have at least 2 characters of content");n.extensions.push({singleton:r.charAt(i+1),extensions:r.slice(i+3,t).split("-")}),i=t}}else i=0;if(0===i&&120===a.charCodeAt(i)||45===a.charCodeAt(i)&&120===a.charCodeAt(i+1)){i=i?i+2:1;let t=i;for(;45===a.charCodeAt(t)&&Ai(a.charCodeAt(t+1));){const e=i+1;for(t=e;Ai(a.charCodeAt(t));){if(t-e>7)return o(t,5,"Too long private-use area, expected at most 8 characters");t++}n.privateuse.push(r.slice(i+1,t)),i=t}}return i!==r.length?o(i,6,"Found superfluous content after tag"):n;function o(t,r,a){return e.warning&&e.warning(a,r,t),e.forgiving?n:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}}function xi(t,e){return function(n,r){let a=Oi(n,"tag");const i=Oi(null==r?"*":r,"range"),o=[];let l=-1;for(;++l<i.length;){const n=i[l].toLowerCase();if(!e&&"*"===n)continue;let r=-1;const s=[];for(;++r<a.length;)if(t(a[r].toLowerCase(),n)){if(!e)return a[r];o.push(a[r])}else s.push(a[r]);a=s}return e?o:void 0}}xi((function(t,e){return"*"===e||t===e||t.includes(e+"-")}),!0);const Di=xi((function(t,e){const n=t.split("-"),r=e.split("-");let a=0,i=0;if("*"!==r[i]&&n[a]!==r[i])return!1;for(a++,i++;i<r.length;)if("*"!==r[i]){if(!n[a])return!1;if(n[a]!==r[i]){if(1===n[a].length)return!1;a++}else a++,i++}else i++;return!0}),!0);function Oi(t,e){const n=t&&"string"==typeof t?[t]:t;if(!n||"object"!=typeof n||!("length"in n))throw new Error("Invalid "+e+" `"+n+"`, expected non-empty string");return n}xi((function(t,e){let n=e;for(;;){if("*"===n||t===n)return!0;let e=n.lastIndexOf("-");if(e<0)return!1;"-"===n.charAt(e-2)&&(e-=2),n=n.slice(0,e)}}),!1);const zi=[{from:"in",to:"id"},{from:"iw",to:"he"},{from:"ji",to:"yi"},{from:"jw",to:"jv"},{from:"mo",to:"ro"},{from:"scc",to:"sr"},{from:"scr",to:"hr"},{from:"aam",to:"aas"},{from:"adp",to:"dz"},{from:"aue",to:"ktz"},{from:"ayx",to:"nun"},{from:"bgm",to:"bcg"},{from:"bjd",to:"drl"},{from:"ccq",to:"rki"},{from:"cjr",to:"mom"},{from:"cka",to:"cmr"},{from:"cmk",to:"xch"},{from:"coy",to:"pij"},{from:"cqu",to:"quh"},{from:"drh",to:"mn"},{from:"drw",to:"fa-af"},{from:"gav",to:"dev"},{from:"gfx",to:"vaj"},{from:"ggn",to:"gvr"},{from:"gti",to:"nyc"},{from:"guv",to:"duz"},{from:"hrr",to:"jal"},{from:"ibi",to:"opa"},{from:"ilw",to:"gal"},{from:"jeg",to:"oyb"},{from:"kgc",to:"tdf"},{from:"kgh",to:"kml"},{from:"koj",to:"kwv"},{from:"krm",to:"bmf"},{from:"ktr",to:"dtp"},{from:"kvs",to:"gdj"},{from:"kwq",to:"yam"},{from:"kxe",to:"tvd"},{from:"kzj",to:"dtp"},{from:"kzt",to:"dtp"},{from:"lii",to:"raq"},{from:"lmm",to:"rmx"},{from:"meg",to:"cir"},{from:"mst",to:"mry"},{from:"mwj",to:"vaj"},{from:"myt",to:"mry"},{from:"nad",to:"xny"},{from:"ncp",to:"kdz"},{from:"nnx",to:"ngv"},{from:"nts",to:"pij"},{from:"oun",to:"vaj"},{from:"pcr",to:"adx"},{from:"pmc",to:"huw"},{from:"pmu",to:"phr"},{from:"ppa",to:"bfy"},{from:"ppr",to:"lcq"},{from:"pry",to:"prt"},{from:"puz",to:"pub"},{from:"sca",to:"hle"},{from:"skk",to:"oyb"},{from:"tdu",to:"dtp"},{from:"thc",to:"tpo"},{from:"thx",to:"oyb"},{from:"tie",to:"ras"},{from:"tkk",to:"twm"},{from:"tlw",to:"weo"},{from:"tmp",to:"tyj"},{from:"tne",to:"kak"},{from:"tnf",to:"fa-af"},{from:"tsf",to:"taj"},{from:"uok",to:"ema"},{from:"xba",to:"cax"},{from:"xia",to:"acn"},{from:"xkh",to:"waw"},{from:"xsj",to:"suj"},{from:"ybd",to:"rki"},{from:"yma",to:"lrr"},{from:"ymt",to:"mtm"},{from:"yos",to:"zom"},{from:"yuu",to:"yug"},{from:"asd",to:"snz"},{from:"dit",to:"dif"},{from:"llo",to:"ngt"},{from:"myd",to:"aog"},{from:"nns",to:"nbr"},{from:"agp",to:"apf"},{from:"ais",to:"ami"},{from:"ajt",to:"aeb"},{from:"baz",to:"nvo"},{from:"bhk",to:"fbl"},{from:"bic",to:"bir"},{from:"bjq",to:"bzc"},{from:"bkb",to:"ebk"},{from:"blg",to:"iba"},{from:"btb",to:"beb"},{from:"daf",to:"dnj"},{from:"dap",to:"njz"},{from:"djl",to:"dze"},{from:"dkl",to:"aqd"},{from:"drr",to:"kzk"},{from:"dud",to:"uth"},{from:"duj",to:"dwu"},{from:"dwl",to:"dbt"},{from:"elp",to:"amq"},{from:"gbc",to:"wny"},{from:"ggo",to:"esg"},{from:"ggr",to:"gtu"},{from:"gio",to:"aou"},{from:"gli",to:"kzk"},{from:"ill",to:"ilm"},{from:"izi",to:"eza"},{from:"jar",to:"jgk"},{from:"kdv",to:"zkd"},{from:"kgd",to:"ncq"},{from:"kpp",to:"jkm"},{from:"kxl",to:"kru"},{from:"kzh",to:"dgl"},{from:"lak",to:"ksp"},{from:"leg",to:"enl"},{from:"mgx",to:"jbk"},{from:"mnt",to:"wnn"},{from:"mof",to:"xnt"},{from:"mwd",to:"dmw"},{from:"nbf",to:"nru"},{from:"nbx",to:"ekc"},{from:"nln",to:"azd"},{from:"nlr",to:"nrk"},{from:"noo",to:"dtd"},{from:"nxu",to:"bpp"},{from:"pat",to:"kxr"},{from:"rmr",to:"emx"},{from:"sap",to:"aqt"},{from:"sgl",to:"isk"},{from:"smd",to:"kmb"},{from:"snb",to:"iba"},{from:"sul",to:"sgd"},{from:"sum",to:"ulw"},{from:"tgg",to:"bjp"},{from:"thw",to:"ola"},{from:"tid",to:"itd"},{from:"unp",to:"wro"},{from:"wgw",to:"wgb"},{from:"wit",to:"nol"},{from:"wiw",to:"nwo"},{from:"xrq",to:"dmw"},{from:"yen",to:"ynq"},{from:"yiy",to:"yrm"},{from:"zir",to:"scv"},{from:"sgn-br",to:"bzs"},{from:"sgn-co",to:"csn"},{from:"sgn-de",to:"gsg"},{from:"sgn-dk",to:"dsl"},{from:"sgn-fr",to:"fsl"},{from:"sgn-gb",to:"bfi"},{from:"sgn-gr",to:"gss"},{from:"sgn-ie",to:"isg"},{from:"sgn-it",to:"ise"},{from:"sgn-jp",to:"jsl"},{from:"sgn-mx",to:"mfs"},{from:"sgn-ni",to:"ncs"},{from:"sgn-nl",to:"dse"},{from:"sgn-no",to:"nsi"},{from:"sgn-pt",to:"psr"},{from:"sgn-se",to:"swl"},{from:"sgn-us",to:"ase"},{from:"sgn-za",to:"sfs"},{from:"sgn-es",to:"ssp"},{from:"zh-cmn",to:"zh"},{from:"zh-cmn-hans",to:"zh-hans"},{from:"zh-cmn-hant",to:"zh-hant"},{from:"zh-gan",to:"gan"},{from:"zh-wuu",to:"wuu"},{from:"zh-yue",to:"yue"},{from:"no-bokmal",to:"nb"},{from:"no-nynorsk",to:"nn"},{from:"aa-saaho",to:"ssy"},{from:"sh",to:"sr-latn"},{from:"cnr",to:"sr-me"},{from:"tl",to:"fil"},{from:"aju",to:"jrb"},{from:"als",to:"sq"},{from:"arb",to:"ar"},{from:"ayr",to:"ay"},{from:"azj",to:"az"},{from:"bcc",to:"bal"},{from:"bcl",to:"bik"},{from:"bxk",to:"luy"},{from:"bxr",to:"bua"},{from:"cld",to:"syr"},{from:"cmn",to:"zh"},{from:"cwd",to:"cr"},{from:"dgo",to:"doi"},{from:"dhd",to:"mwr"},{from:"dik",to:"din"},{from:"diq",to:"zza"},{from:"lbk",to:"bnc"},{from:"ekk",to:"et"},{from:"emk",to:"man"},{from:"esk",to:"ik"},{from:"fat",to:"ak"},{from:"fuc",to:"ff"},{from:"gaz",to:"om"},{from:"gbo",to:"grb"},{from:"gno",to:"gon"},{from:"gug",to:"gn"},{from:"gya",to:"gba"},{from:"hdn",to:"hai"},{from:"hea",to:"hmn"},{from:"ike",to:"iu"},{from:"kmr",to:"ku"},{from:"knc",to:"kr"},{from:"kng",to:"kg"},{from:"knn",to:"kok"},{from:"kpv",to:"kv"},{from:"lvs",to:"lv"},{from:"mhr",to:"chm"},{from:"mup",to:"raj"},{from:"khk",to:"mn"},{from:"npi",to:"ne"},{from:"ojg",to:"oj"},{from:"ory",to:"or"},{from:"pbu",to:"ps"},{from:"pes",to:"fa"},{from:"plt",to:"mg"},{from:"pnb",to:"lah"},{from:"quz",to:"qu"},{from:"rmy",to:"rom"},{from:"spy",to:"kln"},{from:"src",to:"sc"},{from:"swh",to:"sw"},{from:"ttq",to:"tmh"},{from:"tw",to:"ak"},{from:"umu",to:"del"},{from:"uzn",to:"uz"},{from:"xpe",to:"kpe"},{from:"xsl",to:"den"},{from:"ydd",to:"yi"},{from:"zai",to:"zap"},{from:"zsm",to:"ms"},{from:"zyb",to:"za"},{from:"him",to:"srx"},{from:"mnk",to:"man"},{from:"bh",to:"bho"},{from:"prs",to:"fa-af"},{from:"swc",to:"sw-cd"},{from:"aar",to:"aa"},{from:"abk",to:"ab"},{from:"ave",to:"ae"},{from:"afr",to:"af"},{from:"aka",to:"ak"},{from:"amh",to:"am"},{from:"arg",to:"an"},{from:"ara",to:"ar"},{from:"asm",to:"as"},{from:"ava",to:"av"},{from:"aym",to:"ay"},{from:"aze",to:"az"},{from:"bak",to:"ba"},{from:"bel",to:"be"},{from:"bul",to:"bg"},{from:"bih",to:"bho"},{from:"bis",to:"bi"},{from:"bam",to:"bm"},{from:"ben",to:"bn"},{from:"bod",to:"bo"},{from:"bre",to:"br"},{from:"bos",to:"bs"},{from:"cat",to:"ca"},{from:"che",to:"ce"},{from:"cha",to:"ch"},{from:"cos",to:"co"},{from:"cre",to:"cr"},{from:"ces",to:"cs"},{from:"chu",to:"cu"},{from:"chv",to:"cv"},{from:"cym",to:"cy"},{from:"dan",to:"da"},{from:"deu",to:"de"},{from:"div",to:"dv"},{from:"dzo",to:"dz"},{from:"ewe",to:"ee"},{from:"ell",to:"el"},{from:"eng",to:"en"},{from:"epo",to:"eo"},{from:"spa",to:"es"},{from:"est",to:"et"},{from:"eus",to:"eu"},{from:"fas",to:"fa"},{from:"ful",to:"ff"},{from:"fin",to:"fi"},{from:"fij",to:"fj"},{from:"fao",to:"fo"},{from:"fra",to:"fr"},{from:"fry",to:"fy"},{from:"gle",to:"ga"},{from:"gla",to:"gd"},{from:"glg",to:"gl"},{from:"grn",to:"gn"},{from:"guj",to:"gu"},{from:"glv",to:"gv"},{from:"hau",to:"ha"},{from:"heb",to:"he"},{from:"hin",to:"hi"},{from:"hmo",to:"ho"},{from:"hrv",to:"hr"},{from:"hat",to:"ht"},{from:"hun",to:"hu"},{from:"hye",to:"hy"},{from:"her",to:"hz"},{from:"ina",to:"ia"},{from:"ind",to:"id"},{from:"ile",to:"ie"},{from:"ibo",to:"ig"},{from:"iii",to:"ii"},{from:"ipk",to:"ik"},{from:"ido",to:"io"},{from:"isl",to:"is"},{from:"ita",to:"it"},{from:"iku",to:"iu"},{from:"jpn",to:"ja"},{from:"jav",to:"jv"},{from:"kat",to:"ka"},{from:"kon",to:"kg"},{from:"kik",to:"ki"},{from:"kua",to:"kj"},{from:"kaz",to:"kk"},{from:"kal",to:"kl"},{from:"khm",to:"km"},{from:"kan",to:"kn"},{from:"kor",to:"ko"},{from:"kau",to:"kr"},{from:"kas",to:"ks"},{from:"kur",to:"ku"},{from:"kom",to:"kv"},{from:"cor",to:"kw"},{from:"kir",to:"ky"},{from:"lat",to:"la"},{from:"ltz",to:"lb"},{from:"lug",to:"lg"},{from:"lim",to:"li"},{from:"lin",to:"ln"},{from:"lao",to:"lo"},{from:"lit",to:"lt"},{from:"lub",to:"lu"},{from:"lav",to:"lv"},{from:"mlg",to:"mg"},{from:"mah",to:"mh"},{from:"mri",to:"mi"},{from:"mkd",to:"mk"},{from:"mal",to:"ml"},{from:"mon",to:"mn"},{from:"mol",to:"ro"},{from:"mar",to:"mr"},{from:"msa",to:"ms"},{from:"mlt",to:"mt"},{from:"mya",to:"my"},{from:"nau",to:"na"},{from:"nob",to:"nb"},{from:"nde",to:"nd"},{from:"nep",to:"ne"},{from:"ndo",to:"ng"},{from:"nld",to:"nl"},{from:"nno",to:"nn"},{from:"nor",to:"no"},{from:"nbl",to:"nr"},{from:"nav",to:"nv"},{from:"nya",to:"ny"},{from:"oci",to:"oc"},{from:"oji",to:"oj"},{from:"orm",to:"om"},{from:"ori",to:"or"},{from:"oss",to:"os"},{from:"pan",to:"pa"},{from:"pli",to:"pi"},{from:"pol",to:"pl"},{from:"pus",to:"ps"},{from:"por",to:"pt"},{from:"que",to:"qu"},{from:"roh",to:"rm"},{from:"run",to:"rn"},{from:"ron",to:"ro"},{from:"rus",to:"ru"},{from:"kin",to:"rw"},{from:"san",to:"sa"},{from:"srd",to:"sc"},{from:"snd",to:"sd"},{from:"sme",to:"se"},{from:"sag",to:"sg"},{from:"hbs",to:"sr-latn"},{from:"sin",to:"si"},{from:"slk",to:"sk"},{from:"slv",to:"sl"},{from:"smo",to:"sm"},{from:"sna",to:"sn"},{from:"som",to:"so"},{from:"sqi",to:"sq"},{from:"srp",to:"sr"},{from:"ssw",to:"ss"},{from:"sot",to:"st"},{from:"sun",to:"su"},{from:"swe",to:"sv"},{from:"swa",to:"sw"},{from:"tam",to:"ta"},{from:"tel",to:"te"},{from:"tgk",to:"tg"},{from:"tha",to:"th"},{from:"tir",to:"ti"},{from:"tuk",to:"tk"},{from:"tgl",to:"fil"},{from:"tsn",to:"tn"},{from:"ton",to:"to"},{from:"tur",to:"tr"},{from:"tso",to:"ts"},{from:"tat",to:"tt"},{from:"twi",to:"ak"},{from:"tah",to:"ty"},{from:"uig",to:"ug"},{from:"ukr",to:"uk"},{from:"urd",to:"ur"},{from:"uzb",to:"uz"},{from:"ven",to:"ve"},{from:"vie",to:"vi"},{from:"vol",to:"vo"},{from:"wln",to:"wa"},{from:"wol",to:"wo"},{from:"xho",to:"xh"},{from:"yid",to:"yi"},{from:"yor",to:"yo"},{from:"zha",to:"za"},{from:"zho",to:"zh"},{from:"zul",to:"zu"},{from:"alb",to:"sq"},{from:"arm",to:"hy"},{from:"baq",to:"eu"},{from:"bur",to:"my"},{from:"chi",to:"zh"},{from:"cze",to:"cs"},{from:"dut",to:"nl"},{from:"fre",to:"fr"},{from:"geo",to:"ka"},{from:"ger",to:"de"},{from:"gre",to:"el"},{from:"ice",to:"is"},{from:"mac",to:"mk"},{from:"mao",to:"mi"},{from:"may",to:"ms"},{from:"per",to:"fa"},{from:"rum",to:"ro"},{from:"slo",to:"sk"},{from:"tib",to:"bo"},{from:"wel",to:"cy"},{from:"und-aaland",to:"und-ax"},{from:"hy-arevmda",to:"hyw"},{from:"und-arevmda",to:"und"},{from:"und-arevela",to:"und"},{from:"und-lojban",to:"und"},{from:"und-saaho",to:"und"},{from:"und-bokmal",to:"und"},{from:"und-nynorsk",to:"und"},{from:"und-hakka",to:"und"},{from:"und-xiang",to:"und"},{from:"und-hepburn-heploc",to:"und-alalc97"}],Pi=[{from:{field:"script",value:"qaai"},to:{field:"script",value:"zinh"}},{from:{field:"region",value:"bu"},to:{field:"region",value:"mm"}},{from:{field:"region",value:"ct"},to:{field:"region",value:"ki"}},{from:{field:"region",value:"dd"},to:{field:"region",value:"de"}},{from:{field:"region",value:"dy"},to:{field:"region",value:"bj"}},{from:{field:"region",value:"fx"},to:{field:"region",value:"fr"}},{from:{field:"region",value:"hv"},to:{field:"region",value:"bf"}},{from:{field:"region",value:"jt"},to:{field:"region",value:"um"}},{from:{field:"region",value:"mi"},to:{field:"region",value:"um"}},{from:{field:"region",value:"nh"},to:{field:"region",value:"vu"}},{from:{field:"region",value:"nq"},to:{field:"region",value:"aq"}},{from:{field:"region",value:"pu"},to:{field:"region",value:"um"}},{from:{field:"region",value:"pz"},to:{field:"region",value:"pa"}},{from:{field:"region",value:"qu"},to:{field:"region",value:"eu"}},{from:{field:"region",value:"rh"},to:{field:"region",value:"zw"}},{from:{field:"region",value:"tp"},to:{field:"region",value:"tl"}},{from:{field:"region",value:"uk"},to:{field:"region",value:"gb"}},{from:{field:"region",value:"vd"},to:{field:"region",value:"vn"}},{from:{field:"region",value:"wk"},to:{field:"region",value:"um"}},{from:{field:"region",value:"yd"},to:{field:"region",value:"ye"}},{from:{field:"region",value:"zr"},to:{field:"region",value:"cd"}},{from:{field:"region",value:"230"},to:{field:"region",value:"et"}},{from:{field:"region",value:"280"},to:{field:"region",value:"de"}},{from:{field:"region",value:"736"},to:{field:"region",value:"sd"}},{from:{field:"region",value:"886"},to:{field:"region",value:"ye"}},{from:{field:"region",value:"958"},to:{field:"region",value:"aa"}},{from:{field:"region",value:"020"},to:{field:"region",value:"ad"}},{from:{field:"region",value:"784"},to:{field:"region",value:"ae"}},{from:{field:"region",value:"004"},to:{field:"region",value:"af"}},{from:{field:"region",value:"028"},to:{field:"region",value:"ag"}},{from:{field:"region",value:"660"},to:{field:"region",value:"ai"}},{from:{field:"region",value:"008"},to:{field:"region",value:"al"}},{from:{field:"region",value:"051"},to:{field:"region",value:"am"}},{from:{field:"region",value:"024"},to:{field:"region",value:"ao"}},{from:{field:"region",value:"010"},to:{field:"region",value:"aq"}},{from:{field:"region",value:"032"},to:{field:"region",value:"ar"}},{from:{field:"region",value:"016"},to:{field:"region",value:"as"}},{from:{field:"region",value:"040"},to:{field:"region",value:"at"}},{from:{field:"region",value:"036"},to:{field:"region",value:"au"}},{from:{field:"region",value:"533"},to:{field:"region",value:"aw"}},{from:{field:"region",value:"248"},to:{field:"region",value:"ax"}},{from:{field:"region",value:"031"},to:{field:"region",value:"az"}},{from:{field:"region",value:"070"},to:{field:"region",value:"ba"}},{from:{field:"region",value:"052"},to:{field:"region",value:"bb"}},{from:{field:"region",value:"050"},to:{field:"region",value:"bd"}},{from:{field:"region",value:"056"},to:{field:"region",value:"be"}},{from:{field:"region",value:"854"},to:{field:"region",value:"bf"}},{from:{field:"region",value:"100"},to:{field:"region",value:"bg"}},{from:{field:"region",value:"048"},to:{field:"region",value:"bh"}},{from:{field:"region",value:"108"},to:{field:"region",value:"bi"}},{from:{field:"region",value:"204"},to:{field:"region",value:"bj"}},{from:{field:"region",value:"652"},to:{field:"region",value:"bl"}},{from:{field:"region",value:"060"},to:{field:"region",value:"bm"}},{from:{field:"region",value:"096"},to:{field:"region",value:"bn"}},{from:{field:"region",value:"068"},to:{field:"region",value:"bo"}},{from:{field:"region",value:"535"},to:{field:"region",value:"bq"}},{from:{field:"region",value:"076"},to:{field:"region",value:"br"}},{from:{field:"region",value:"044"},to:{field:"region",value:"bs"}},{from:{field:"region",value:"064"},to:{field:"region",value:"bt"}},{from:{field:"region",value:"104"},to:{field:"region",value:"mm"}},{from:{field:"region",value:"074"},to:{field:"region",value:"bv"}},{from:{field:"region",value:"072"},to:{field:"region",value:"bw"}},{from:{field:"region",value:"112"},to:{field:"region",value:"by"}},{from:{field:"region",value:"084"},to:{field:"region",value:"bz"}},{from:{field:"region",value:"124"},to:{field:"region",value:"ca"}},{from:{field:"region",value:"166"},to:{field:"region",value:"cc"}},{from:{field:"region",value:"180"},to:{field:"region",value:"cd"}},{from:{field:"region",value:"140"},to:{field:"region",value:"cf"}},{from:{field:"region",value:"178"},to:{field:"region",value:"cg"}},{from:{field:"region",value:"756"},to:{field:"region",value:"ch"}},{from:{field:"region",value:"384"},to:{field:"region",value:"ci"}},{from:{field:"region",value:"184"},to:{field:"region",value:"ck"}},{from:{field:"region",value:"152"},to:{field:"region",value:"cl"}},{from:{field:"region",value:"120"},to:{field:"region",value:"cm"}},{from:{field:"region",value:"156"},to:{field:"region",value:"cn"}},{from:{field:"region",value:"170"},to:{field:"region",value:"co"}},{from:{field:"region",value:"188"},to:{field:"region",value:"cr"}},{from:{field:"region",value:"192"},to:{field:"region",value:"cu"}},{from:{field:"region",value:"132"},to:{field:"region",value:"cv"}},{from:{field:"region",value:"531"},to:{field:"region",value:"cw"}},{from:{field:"region",value:"162"},to:{field:"region",value:"cx"}},{from:{field:"region",value:"196"},to:{field:"region",value:"cy"}},{from:{field:"region",value:"203"},to:{field:"region",value:"cz"}},{from:{field:"region",value:"278"},to:{field:"region",value:"de"}},{from:{field:"region",value:"276"},to:{field:"region",value:"de"}},{from:{field:"region",value:"262"},to:{field:"region",value:"dj"}},{from:{field:"region",value:"208"},to:{field:"region",value:"dk"}},{from:{field:"region",value:"212"},to:{field:"region",value:"dm"}},{from:{field:"region",value:"214"},to:{field:"region",value:"do"}},{from:{field:"region",value:"012"},to:{field:"region",value:"dz"}},{from:{field:"region",value:"218"},to:{field:"region",value:"ec"}},{from:{field:"region",value:"233"},to:{field:"region",value:"ee"}},{from:{field:"region",value:"818"},to:{field:"region",value:"eg"}},{from:{field:"region",value:"732"},to:{field:"region",value:"eh"}},{from:{field:"region",value:"232"},to:{field:"region",value:"er"}},{from:{field:"region",value:"724"},to:{field:"region",value:"es"}},{from:{field:"region",value:"231"},to:{field:"region",value:"et"}},{from:{field:"region",value:"246"},to:{field:"region",value:"fi"}},{from:{field:"region",value:"242"},to:{field:"region",value:"fj"}},{from:{field:"region",value:"238"},to:{field:"region",value:"fk"}},{from:{field:"region",value:"583"},to:{field:"region",value:"fm"}},{from:{field:"region",value:"234"},to:{field:"region",value:"fo"}},{from:{field:"region",value:"250"},to:{field:"region",value:"fr"}},{from:{field:"region",value:"249"},to:{field:"region",value:"fr"}},{from:{field:"region",value:"266"},to:{field:"region",value:"ga"}},{from:{field:"region",value:"826"},to:{field:"region",value:"gb"}},{from:{field:"region",value:"308"},to:{field:"region",value:"gd"}},{from:{field:"region",value:"268"},to:{field:"region",value:"ge"}},{from:{field:"region",value:"254"},to:{field:"region",value:"gf"}},{from:{field:"region",value:"831"},to:{field:"region",value:"gg"}},{from:{field:"region",value:"288"},to:{field:"region",value:"gh"}},{from:{field:"region",value:"292"},to:{field:"region",value:"gi"}},{from:{field:"region",value:"304"},to:{field:"region",value:"gl"}},{from:{field:"region",value:"270"},to:{field:"region",value:"gm"}},{from:{field:"region",value:"324"},to:{field:"region",value:"gn"}},{from:{field:"region",value:"312"},to:{field:"region",value:"gp"}},{from:{field:"region",value:"226"},to:{field:"region",value:"gq"}},{from:{field:"region",value:"300"},to:{field:"region",value:"gr"}},{from:{field:"region",value:"239"},to:{field:"region",value:"gs"}},{from:{field:"region",value:"320"},to:{field:"region",value:"gt"}},{from:{field:"region",value:"316"},to:{field:"region",value:"gu"}},{from:{field:"region",value:"624"},to:{field:"region",value:"gw"}},{from:{field:"region",value:"328"},to:{field:"region",value:"gy"}},{from:{field:"region",value:"344"},to:{field:"region",value:"hk"}},{from:{field:"region",value:"334"},to:{field:"region",value:"hm"}},{from:{field:"region",value:"340"},to:{field:"region",value:"hn"}},{from:{field:"region",value:"191"},to:{field:"region",value:"hr"}},{from:{field:"region",value:"332"},to:{field:"region",value:"ht"}},{from:{field:"region",value:"348"},to:{field:"region",value:"hu"}},{from:{field:"region",value:"360"},to:{field:"region",value:"id"}},{from:{field:"region",value:"372"},to:{field:"region",value:"ie"}},{from:{field:"region",value:"376"},to:{field:"region",value:"il"}},{from:{field:"region",value:"833"},to:{field:"region",value:"im"}},{from:{field:"region",value:"356"},to:{field:"region",value:"in"}},{from:{field:"region",value:"086"},to:{field:"region",value:"io"}},{from:{field:"region",value:"368"},to:{field:"region",value:"iq"}},{from:{field:"region",value:"364"},to:{field:"region",value:"ir"}},{from:{field:"region",value:"352"},to:{field:"region",value:"is"}},{from:{field:"region",value:"380"},to:{field:"region",value:"it"}},{from:{field:"region",value:"832"},to:{field:"region",value:"je"}},{from:{field:"region",value:"388"},to:{field:"region",value:"jm"}},{from:{field:"region",value:"400"},to:{field:"region",value:"jo"}},{from:{field:"region",value:"392"},to:{field:"region",value:"jp"}},{from:{field:"region",value:"404"},to:{field:"region",value:"ke"}},{from:{field:"region",value:"417"},to:{field:"region",value:"kg"}},{from:{field:"region",value:"116"},to:{field:"region",value:"kh"}},{from:{field:"region",value:"296"},to:{field:"region",value:"ki"}},{from:{field:"region",value:"174"},to:{field:"region",value:"km"}},{from:{field:"region",value:"659"},to:{field:"region",value:"kn"}},{from:{field:"region",value:"408"},to:{field:"region",value:"kp"}},{from:{field:"region",value:"410"},to:{field:"region",value:"kr"}},{from:{field:"region",value:"414"},to:{field:"region",value:"kw"}},{from:{field:"region",value:"136"},to:{field:"region",value:"ky"}},{from:{field:"region",value:"398"},to:{field:"region",value:"kz"}},{from:{field:"region",value:"418"},to:{field:"region",value:"la"}},{from:{field:"region",value:"422"},to:{field:"region",value:"lb"}},{from:{field:"region",value:"662"},to:{field:"region",value:"lc"}},{from:{field:"region",value:"438"},to:{field:"region",value:"li"}},{from:{field:"region",value:"144"},to:{field:"region",value:"lk"}},{from:{field:"region",value:"430"},to:{field:"region",value:"lr"}},{from:{field:"region",value:"426"},to:{field:"region",value:"ls"}},{from:{field:"region",value:"440"},to:{field:"region",value:"lt"}},{from:{field:"region",value:"442"},to:{field:"region",value:"lu"}},{from:{field:"region",value:"428"},to:{field:"region",value:"lv"}},{from:{field:"region",value:"434"},to:{field:"region",value:"ly"}},{from:{field:"region",value:"504"},to:{field:"region",value:"ma"}},{from:{field:"region",value:"492"},to:{field:"region",value:"mc"}},{from:{field:"region",value:"498"},to:{field:"region",value:"md"}},{from:{field:"region",value:"499"},to:{field:"region",value:"me"}},{from:{field:"region",value:"663"},to:{field:"region",value:"mf"}},{from:{field:"region",value:"450"},to:{field:"region",value:"mg"}},{from:{field:"region",value:"584"},to:{field:"region",value:"mh"}},{from:{field:"region",value:"807"},to:{field:"region",value:"mk"}},{from:{field:"region",value:"466"},to:{field:"region",value:"ml"}},{from:{field:"region",value:"496"},to:{field:"region",value:"mn"}},{from:{field:"region",value:"446"},to:{field:"region",value:"mo"}},{from:{field:"region",value:"580"},to:{field:"region",value:"mp"}},{from:{field:"region",value:"474"},to:{field:"region",value:"mq"}},{from:{field:"region",value:"478"},to:{field:"region",value:"mr"}},{from:{field:"region",value:"500"},to:{field:"region",value:"ms"}},{from:{field:"region",value:"470"},to:{field:"region",value:"mt"}},{from:{field:"region",value:"480"},to:{field:"region",value:"mu"}},{from:{field:"region",value:"462"},to:{field:"region",value:"mv"}},{from:{field:"region",value:"454"},to:{field:"region",value:"mw"}},{from:{field:"region",value:"484"},to:{field:"region",value:"mx"}},{from:{field:"region",value:"458"},to:{field:"region",value:"my"}},{from:{field:"region",value:"508"},to:{field:"region",value:"mz"}},{from:{field:"region",value:"516"},to:{field:"region",value:"na"}},{from:{field:"region",value:"540"},to:{field:"region",value:"nc"}},{from:{field:"region",value:"562"},to:{field:"region",value:"ne"}},{from:{field:"region",value:"574"},to:{field:"region",value:"nf"}},{from:{field:"region",value:"566"},to:{field:"region",value:"ng"}},{from:{field:"region",value:"558"},to:{field:"region",value:"ni"}},{from:{field:"region",value:"528"},to:{field:"region",value:"nl"}},{from:{field:"region",value:"578"},to:{field:"region",value:"no"}},{from:{field:"region",value:"524"},to:{field:"region",value:"np"}},{from:{field:"region",value:"520"},to:{field:"region",value:"nr"}},{from:{field:"region",value:"570"},to:{field:"region",value:"nu"}},{from:{field:"region",value:"554"},to:{field:"region",value:"nz"}},{from:{field:"region",value:"512"},to:{field:"region",value:"om"}},{from:{field:"region",value:"591"},to:{field:"region",value:"pa"}},{from:{field:"region",value:"604"},to:{field:"region",value:"pe"}},{from:{field:"region",value:"258"},to:{field:"region",value:"pf"}},{from:{field:"region",value:"598"},to:{field:"region",value:"pg"}},{from:{field:"region",value:"608"},to:{field:"region",value:"ph"}},{from:{field:"region",value:"586"},to:{field:"region",value:"pk"}},{from:{field:"region",value:"616"},to:{field:"region",value:"pl"}},{from:{field:"region",value:"666"},to:{field:"region",value:"pm"}},{from:{field:"region",value:"612"},to:{field:"region",value:"pn"}},{from:{field:"region",value:"630"},to:{field:"region",value:"pr"}},{from:{field:"region",value:"275"},to:{field:"region",value:"ps"}},{from:{field:"region",value:"620"},to:{field:"region",value:"pt"}},{from:{field:"region",value:"585"},to:{field:"region",value:"pw"}},{from:{field:"region",value:"600"},to:{field:"region",value:"py"}},{from:{field:"region",value:"634"},to:{field:"region",value:"qa"}},{from:{field:"region",value:"959"},to:{field:"region",value:"qm"}},{from:{field:"region",value:"960"},to:{field:"region",value:"qn"}},{from:{field:"region",value:"962"},to:{field:"region",value:"qp"}},{from:{field:"region",value:"963"},to:{field:"region",value:"qq"}},{from:{field:"region",value:"964"},to:{field:"region",value:"qr"}},{from:{field:"region",value:"965"},to:{field:"region",value:"qs"}},{from:{field:"region",value:"966"},to:{field:"region",value:"qt"}},{from:{field:"region",value:"967"},to:{field:"region",value:"eu"}},{from:{field:"region",value:"968"},to:{field:"region",value:"qv"}},{from:{field:"region",value:"969"},to:{field:"region",value:"qw"}},{from:{field:"region",value:"970"},to:{field:"region",value:"qx"}},{from:{field:"region",value:"971"},to:{field:"region",value:"qy"}},{from:{field:"region",value:"972"},to:{field:"region",value:"qz"}},{from:{field:"region",value:"638"},to:{field:"region",value:"re"}},{from:{field:"region",value:"642"},to:{field:"region",value:"ro"}},{from:{field:"region",value:"688"},to:{field:"region",value:"rs"}},{from:{field:"region",value:"643"},to:{field:"region",value:"ru"}},{from:{field:"region",value:"646"},to:{field:"region",value:"rw"}},{from:{field:"region",value:"682"},to:{field:"region",value:"sa"}},{from:{field:"region",value:"090"},to:{field:"region",value:"sb"}},{from:{field:"region",value:"690"},to:{field:"region",value:"sc"}},{from:{field:"region",value:"729"},to:{field:"region",value:"sd"}},{from:{field:"region",value:"752"},to:{field:"region",value:"se"}},{from:{field:"region",value:"702"},to:{field:"region",value:"sg"}},{from:{field:"region",value:"654"},to:{field:"region",value:"sh"}},{from:{field:"region",value:"705"},to:{field:"region",value:"si"}},{from:{field:"region",value:"744"},to:{field:"region",value:"sj"}},{from:{field:"region",value:"703"},to:{field:"region",value:"sk"}},{from:{field:"region",value:"694"},to:{field:"region",value:"sl"}},{from:{field:"region",value:"674"},to:{field:"region",value:"sm"}},{from:{field:"region",value:"686"},to:{field:"region",value:"sn"}},{from:{field:"region",value:"706"},to:{field:"region",value:"so"}},{from:{field:"region",value:"740"},to:{field:"region",value:"sr"}},{from:{field:"region",value:"728"},to:{field:"region",value:"ss"}},{from:{field:"region",value:"678"},to:{field:"region",value:"st"}},{from:{field:"region",value:"222"},to:{field:"region",value:"sv"}},{from:{field:"region",value:"534"},to:{field:"region",value:"sx"}},{from:{field:"region",value:"760"},to:{field:"region",value:"sy"}},{from:{field:"region",value:"748"},to:{field:"region",value:"sz"}},{from:{field:"region",value:"796"},to:{field:"region",value:"tc"}},{from:{field:"region",value:"148"},to:{field:"region",value:"td"}},{from:{field:"region",value:"260"},to:{field:"region",value:"tf"}},{from:{field:"region",value:"768"},to:{field:"region",value:"tg"}},{from:{field:"region",value:"764"},to:{field:"region",value:"th"}},{from:{field:"region",value:"762"},to:{field:"region",value:"tj"}},{from:{field:"region",value:"772"},to:{field:"region",value:"tk"}},{from:{field:"region",value:"626"},to:{field:"region",value:"tl"}},{from:{field:"region",value:"795"},to:{field:"region",value:"tm"}},{from:{field:"region",value:"788"},to:{field:"region",value:"tn"}},{from:{field:"region",value:"776"},to:{field:"region",value:"to"}},{from:{field:"region",value:"792"},to:{field:"region",value:"tr"}},{from:{field:"region",value:"780"},to:{field:"region",value:"tt"}},{from:{field:"region",value:"798"},to:{field:"region",value:"tv"}},{from:{field:"region",value:"158"},to:{field:"region",value:"tw"}},{from:{field:"region",value:"834"},to:{field:"region",value:"tz"}},{from:{field:"region",value:"804"},to:{field:"region",value:"ua"}},{from:{field:"region",value:"800"},to:{field:"region",value:"ug"}},{from:{field:"region",value:"581"},to:{field:"region",value:"um"}},{from:{field:"region",value:"840"},to:{field:"region",value:"us"}},{from:{field:"region",value:"858"},to:{field:"region",value:"uy"}},{from:{field:"region",value:"860"},to:{field:"region",value:"uz"}},{from:{field:"region",value:"336"},to:{field:"region",value:"va"}},{from:{field:"region",value:"670"},to:{field:"region",value:"vc"}},{from:{field:"region",value:"862"},to:{field:"region",value:"ve"}},{from:{field:"region",value:"092"},to:{field:"region",value:"vg"}},{from:{field:"region",value:"850"},to:{field:"region",value:"vi"}},{from:{field:"region",value:"704"},to:{field:"region",value:"vn"}},{from:{field:"region",value:"548"},to:{field:"region",value:"vu"}},{from:{field:"region",value:"876"},to:{field:"region",value:"wf"}},{from:{field:"region",value:"882"},to:{field:"region",value:"ws"}},{from:{field:"region",value:"973"},to:{field:"region",value:"xa"}},{from:{field:"region",value:"974"},to:{field:"region",value:"xb"}},{from:{field:"region",value:"975"},to:{field:"region",value:"xc"}},{from:{field:"region",value:"976"},to:{field:"region",value:"xd"}},{from:{field:"region",value:"977"},to:{field:"region",value:"xe"}},{from:{field:"region",value:"978"},to:{field:"region",value:"xf"}},{from:{field:"region",value:"979"},to:{field:"region",value:"xg"}},{from:{field:"region",value:"980"},to:{field:"region",value:"xh"}},{from:{field:"region",value:"981"},to:{field:"region",value:"xi"}},{from:{field:"region",value:"982"},to:{field:"region",value:"xj"}},{from:{field:"region",value:"983"},to:{field:"region",value:"xk"}},{from:{field:"region",value:"984"},to:{field:"region",value:"xl"}},{from:{field:"region",value:"985"},to:{field:"region",value:"xm"}},{from:{field:"region",value:"986"},to:{field:"region",value:"xn"}},{from:{field:"region",value:"987"},to:{field:"region",value:"xo"}},{from:{field:"region",value:"988"},to:{field:"region",value:"xp"}},{from:{field:"region",value:"989"},to:{field:"region",value:"xq"}},{from:{field:"region",value:"990"},to:{field:"region",value:"xr"}},{from:{field:"region",value:"991"},to:{field:"region",value:"xs"}},{from:{field:"region",value:"992"},to:{field:"region",value:"xt"}},{from:{field:"region",value:"993"},to:{field:"region",value:"xu"}},{from:{field:"region",value:"994"},to:{field:"region",value:"xv"}},{from:{field:"region",value:"995"},to:{field:"region",value:"xw"}},{from:{field:"region",value:"996"},to:{field:"region",value:"xx"}},{from:{field:"region",value:"997"},to:{field:"region",value:"xy"}},{from:{field:"region",value:"998"},to:{field:"region",value:"xz"}},{from:{field:"region",value:"720"},to:{field:"region",value:"ye"}},{from:{field:"region",value:"887"},to:{field:"region",value:"ye"}},{from:{field:"region",value:"175"},to:{field:"region",value:"yt"}},{from:{field:"region",value:"710"},to:{field:"region",value:"za"}},{from:{field:"region",value:"894"},to:{field:"region",value:"zm"}},{from:{field:"region",value:"716"},to:{field:"region",value:"zw"}},{from:{field:"region",value:"999"},to:{field:"region",value:"zz"}},{from:{field:"variants",value:"polytoni"},to:{field:"variants",value:"polyton"}},{from:{field:"variants",value:"heploc"},to:{field:"variants",value:"alalc97"}}],Mi={region:{172:["ru","am","az","by","ge","kg","kz","md","tj","tm","ua","uz"],200:["cz","sk"],530:["cw","sx","bq"],532:["cw","sx","bq"],536:["sa","iq"],582:["fm","mh","mp","pw"],810:["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],830:["je","gg"],890:["rs","me","si","hr","mk","ba"],891:["rs","me"],an:["cw","sx","bq"],cs:["rs","me"],fq:["aq","tf"],nt:["sa","iq"],pc:["fm","mh","mp","pw"],su:["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],yu:["rs","me"],"062":["034","143"],ant:["cw","sx","bq"],scg:["rs","me"],ntz:["sa","iq"],sun:["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],yug:["rs","me"]}},Li={aa:"aa-latn-et",aaa:"aaa-latn-ng",aab:"aab-latn-ng",aac:"aac-latn-pg",aad:"aad-latn-pg",aae:"aae-latn-it","aae-grek":"aae-grek-it",aaf:"aaf-mlym-in","aaf-arab":"aaf-arab-in",aag:"aag-latn-pg",aah:"aah-latn-pg",aai:"aai-latn-zz",aak:"aak-latn-zz",aal:"aal-latn-cm",aan:"aan-latn-br",aao:"aao-arab-dz",aap:"aap-latn-br",aaq:"aaq-latn-us",aas:"aas-latn-tz",aat:"aat-grek-gr",aau:"aau-latn-zz",aaw:"aaw-latn-pg",aax:"aax-latn-id",aaz:"aaz-latn-id",ab:"ab-cyrl-ge",aba:"aba-latn-ci",abb:"abb-latn-cm",abc:"abc-latn-ph",abd:"abd-latn-ph",abe:"abe-latn-ca",abf:"abf-latn-my",abg:"abg-latn-pg",abh:"abh-arab-tj",abi:"abi-latn-zz",abl:"abl-rjng-id","abl-latn":"abl-latn-id",abm:"abm-latn-ng",abn:"abn-latn-ng",abo:"abo-latn-ng",abp:"abp-latn-ph",abq:"abq-cyrl-zz",abr:"abr-latn-gh",abs:"abs-latn-id",abt:"abt-latn-zz",abu:"abu-latn-ci",abv:"abv-arab-bh",abw:"abw-latn-pg",abx:"abx-latn-ph",aby:"aby-latn-zz",abz:"abz-latn-id",aca:"aca-latn-co",acb:"acb-latn-ng",acd:"acd-latn-zz",ace:"ace-latn-id",acf:"acf-latn-lc",ach:"ach-latn-ug",acm:"acm-arab-iq",acn:"acn-latn-cn",acp:"acp-latn-ng",acq:"acq-arab-ye",acr:"acr-latn-gt",acs:"acs-latn-br",act:"act-latn-nl",acu:"acu-latn-ec",acv:"acv-latn-us",acw:"acw-arab-sa",acx:"acx-arab-om",acy:"acy-latn-cy","acy-arab":"acy-arab-cy","acy-grek":"acy-grek-cy",acz:"acz-latn-sd",ada:"ada-latn-gh",adb:"adb-latn-tl",add:"add-latn-cm",ade:"ade-latn-zz",adf:"adf-arab-om",adg:"adg-latn-au",adh:"adh-latn-ug",adi:"adi-latn-in","adi-tibt":"adi-tibt-cn",adj:"adj-latn-zz",adl:"adl-latn-in",adn:"adn-latn-id",ado:"ado-latn-pg",adp:"adp-tibt-bt",adq:"adq-latn-gh",adr:"adr-latn-id",adt:"adt-latn-au",adu:"adu-latn-ng",adw:"adw-latn-br",adx:"adx-tibt-cn",ady:"ady-cyrl-ru",adz:"adz-latn-zz",ae:"ae-avst-ir",aea:"aea-latn-au",aeb:"aeb-arab-tn",aec:"aec-arab-eg",aee:"aee-arab-af",aek:"aek-latn-nc",ael:"ael-latn-cm",aem:"aem-latn-vn",aeq:"aeq-arab-pk",aer:"aer-latn-au",aeu:"aeu-latn-cn",aew:"aew-latn-pg",aey:"aey-latn-zz",aez:"aez-latn-pg",af:"af-latn-za",afb:"afb-arab-kw",afd:"afd-latn-pg",afe:"afe-latn-ng",afh:"afh-latn-gh",afi:"afi-latn-pg",afk:"afk-latn-pg",afn:"afn-latn-ng",afo:"afo-latn-ng",afp:"afp-latn-pg",afs:"afs-latn-mx",afu:"afu-latn-gh",afz:"afz-latn-id",aga:"aga-latn-pe",agb:"agb-latn-ng",agc:"agc-latn-zz",agd:"agd-latn-zz",age:"age-latn-pg",agf:"agf-latn-id",agg:"agg-latn-zz",agh:"agh-latn-cd",agi:"agi-deva-in",agj:"agj-ethi-et","agj-arab":"agj-arab-et",agk:"agk-latn-ph",agl:"agl-latn-pg",agm:"agm-latn-zz",agn:"agn-latn-ph",ago:"ago-latn-zz",agq:"agq-latn-cm",agr:"agr-latn-pe",ags:"ags-latn-cm",agt:"agt-latn-ph",agu:"agu-latn-gt",agv:"agv-latn-ph",agw:"agw-latn-sb",agx:"agx-cyrl-ru",agy:"agy-latn-ph",agz:"agz-latn-ph",aha:"aha-latn-zz",ahb:"ahb-latn-vu",ahg:"ahg-ethi-et",ahh:"ahh-latn-id",ahi:"ahi-latn-ci",ahk:"ahk-latn-mm","ahk-mymr":"ahk-mymr-mm","ahk-th":"ahk-latn-th","ahk-thai":"ahk-thai-th",ahl:"ahl-latn-zz",ahm:"ahm-latn-ci",ahn:"ahn-latn-ng",aho:"aho-ahom-in",ahp:"ahp-latn-ci",ahr:"ahr-deva-in",ahs:"ahs-latn-ng",aht:"aht-latn-us",aia:"aia-latn-sb",aib:"aib-arab-cn",aic:"aic-latn-pg",aid:"aid-latn-au",aie:"aie-latn-pg",aif:"aif-latn-pg",aig:"aig-latn-ag",aij:"aij-hebr-il",aik:"aik-latn-ng",ail:"ail-latn-pg",aim:"aim-latn-in",ain:"ain-kana-jp","ain-latn":"ain-latn-jp",aio:"aio-mymr-in",aip:"aip-latn-id",aiq:"aiq-arab-af",air:"air-latn-id",ait:"ait-latn-br",aiw:"aiw-latn-et","aiw-arab":"aiw-arab-et","aiw-ethi":"aiw-ethi-et",aix:"aix-latn-pg",aiy:"aiy-latn-cf",aja:"aja-latn-ss",ajg:"ajg-latn-zz",aji:"aji-latn-nc",ajn:"ajn-latn-au",ajp:"ajp-arab-jo",ajt:"ajt-arab-tn",ajw:"ajw-latn-ng",ajz:"ajz-latn-in",ak:"ak-latn-gh",akb:"akb-latn-id","akb-batk":"akb-batk-id",akc:"akc-latn-id",akd:"akd-latn-ng",ake:"ake-latn-gy",akf:"akf-latn-ng",akg:"akg-latn-id",akh:"akh-latn-pg",aki:"aki-latn-pg",akk:"akk-xsux-iq",akl:"akl-latn-ph",ako:"ako-latn-sr",akp:"akp-latn-gh",akq:"akq-latn-pg",akr:"akr-latn-vu",aks:"aks-latn-tg",akt:"akt-latn-pg",aku:"aku-latn-cm",akv:"akv-cyrl-ru",akw:"akw-latn-cg",akz:"akz-latn-us",ala:"ala-latn-zz",alc:"alc-latn-cl",ald:"ald-latn-ci",ale:"ale-latn-us",alf:"alf-latn-ng",alh:"alh-latn-au",ali:"ali-latn-zz",alj:"alj-latn-ph",alk:"alk-laoo-la",all:"all-mlym-in",alm:"alm-latn-vu",aln:"aln-latn-xk",alo:"alo-latn-id",alp:"alp-latn-id",alq:"alq-latn-ca",alr:"alr-cyrl-ru",alt:"alt-cyrl-ru",alu:"alu-latn-sb",alw:"alw-ethi-et",alx:"alx-latn-pg",aly:"aly-latn-au",alz:"alz-latn-cd",am:"am-ethi-et",ama:"ama-latn-br",amb:"amb-latn-ng",amc:"amc-latn-pe",ame:"ame-latn-pe",amf:"amf-latn-et","amf-ethi":"amf-ethi-et",amg:"amg-latn-au",ami:"ami-latn-tw",amj:"amj-latn-td",amk:"amk-latn-id",amm:"amm-latn-zz",amn:"amn-latn-zz",amo:"amo-latn-ng",amp:"amp-latn-zz",amq:"amq-latn-id",amr:"amr-latn-pe",ams:"ams-jpan-jp",amt:"amt-latn-pg",amu:"amu-latn-mx",amv:"amv-latn-id",amw:"amw-syrc-sy","amw-arab":"amw-arab-sy","amw-armi":"amw-armi-sy","amw-latn":"amw-latn-sy",amx:"amx-latn-au",amy:"amy-latn-au",amz:"amz-latn-au",an:"an-latn-es",ana:"ana-latn-co",anb:"anb-latn-pe",anc:"anc-latn-zz",and:"and-latn-id",ane:"ane-latn-nc",anf:"anf-latn-gh",ang:"ang-latn-gb",anh:"anh-latn-pg",ani:"ani-cyrl-ru",anj:"anj-latn-pg",ank:"ank-latn-zz",anl:"anl-latn-mm",anm:"anm-latn-in",ann:"ann-latn-ng",ano:"ano-latn-co",anp:"anp-deva-in",anr:"anr-deva-in",ans:"ans-latn-co",ant:"ant-latn-au",anu:"anu-ethi-et","anu-arab":"anu-arab-ss","anu-latn":"anu-latn-ss",anv:"anv-latn-cm",anw:"anw-latn-ng",anx:"anx-latn-pg",any:"any-latn-zz",anz:"anz-latn-pg",aoa:"aoa-latn-st",aob:"aob-latn-pg",aoc:"aoc-latn-ve",aod:"aod-latn-pg",aoe:"aoe-latn-pg",aof:"aof-latn-pg",aog:"aog-latn-pg",aoi:"aoi-latn-au",aoj:"aoj-latn-zz",aok:"aok-latn-nc",aol:"aol-latn-id",aom:"aom-latn-zz",aon:"aon-latn-pg",aor:"aor-latn-vu",aos:"aos-latn-id",aot:"aot-beng-bd","aot-latn":"aot-latn-in",aox:"aox-latn-gy",aoz:"aoz-latn-id",apb:"apb-latn-sb",apc:"apc-arab-sy",apd:"apd-arab-tg",ape:"ape-latn-zz",apf:"apf-latn-ph",apg:"apg-latn-id",aph:"aph-deva-np",api:"api-latn-br",apj:"apj-latn-us",apk:"apk-latn-us",apl:"apl-latn-us",apm:"apm-latn-us",apn:"apn-latn-br",apo:"apo-latn-pg",app:"app-latn-vu",apr:"apr-latn-zz",aps:"aps-latn-zz",apt:"apt-latn-in",apu:"apu-latn-br",apv:"apv-latn-br",apw:"apw-latn-us",apx:"apx-latn-id",apy:"apy-latn-br",apz:"apz-latn-zz",aqc:"aqc-cyrl-ru",aqd:"aqd-latn-ml",aqg:"aqg-latn-ng",aqk:"aqk-latn-ng",aqm:"aqm-latn-id",aqn:"aqn-latn-ph",aqr:"aqr-latn-nc",aqt:"aqt-latn-py",aqz:"aqz-latn-br",ar:"ar-arab-eg",arc:"arc-armi-ir","arc-nbat":"arc-nbat-jo","arc-palm":"arc-palm-sy",ard:"ard-latn-au",are:"are-latn-au",arh:"arh-latn-zz",ari:"ari-latn-us",arj:"arj-latn-br",ark:"ark-latn-br",arl:"arl-latn-pe",arn:"arn-latn-cl",aro:"aro-latn-bo",arp:"arp-latn-us",arq:"arq-arab-dz",arr:"arr-latn-br",ars:"ars-arab-sa",aru:"aru-latn-br",arw:"arw-latn-sr",arx:"arx-latn-br",ary:"ary-arab-ma",arz:"arz-arab-eg",as:"as-beng-in",asa:"asa-latn-tz",asb:"asb-latn-ca",asc:"asc-latn-id",ase:"ase-sgnw-us",asg:"asg-latn-zz",ash:"ash-latn-pe",asi:"asi-latn-id",asj:"asj-latn-cm",ask:"ask-arab-af",asl:"asl-latn-id",asn:"asn-latn-br",aso:"aso-latn-zz",ass:"ass-latn-cm",ast:"ast-latn-es",asu:"asu-latn-br",asv:"asv-latn-cd",asx:"asx-latn-pg",asy:"asy-latn-id",asz:"asz-latn-id",ata:"ata-latn-zz",atb:"atb-latn-cn","atb-lisu":"atb-lisu-cn",atc:"atc-latn-pe",atd:"atd-latn-ph",ate:"ate-latn-pg",atg:"atg-latn-zz",ati:"ati-latn-ci",atj:"atj-latn-ca",atk:"atk-latn-ph",atl:"atl-latn-ph",atm:"atm-latn-ph",atn:"atn-arab-ir",ato:"ato-latn-cm",atp:"atp-latn-ph",atq:"atq-latn-id",atr:"atr-latn-br",ats:"ats-latn-us",att:"att-latn-ph",atu:"atu-latn-ss",atv:"atv-cyrl-ru",atw:"atw-latn-us",atx:"atx-latn-br",aty:"aty-latn-vu",atz:"atz-latn-ph",aua:"aua-latn-sb",auc:"auc-latn-ec",aud:"aud-latn-sb",aug:"aug-latn-bj",auh:"auh-latn-zm",aui:"aui-latn-pg",auj:"auj-arab-ly","auj-latn":"auj-latn-ly","auj-tfng":"auj-tfng-ly",auk:"auk-latn-pg",aul:"aul-latn-vu",aum:"aum-latn-ng",aun:"aun-latn-pg",auo:"auo-latn-ng",aup:"aup-latn-pg",auq:"auq-latn-id",aur:"aur-latn-pg",aut:"aut-latn-pf",auu:"auu-latn-id",auw:"auw-latn-id",auy:"auy-latn-zz",auz:"auz-arab-uz",av:"av-cyrl-ru",avb:"avb-latn-pg",avd:"avd-arab-ir",avi:"avi-latn-ci",avk:"avk-latn-001",avl:"avl-arab-zz",avm:"avm-latn-au",avn:"avn-latn-zz",avo:"avo-latn-br",avs:"avs-latn-pe",avt:"avt-latn-zz",avu:"avu-latn-zz",avv:"avv-latn-br",awa:"awa-deva-in",awb:"awb-latn-zz",awc:"awc-latn-ng",awe:"awe-latn-br",awg:"awg-latn-au",awh:"awh-latn-id",awi:"awi-latn-pg",awk:"awk-latn-au",awm:"awm-latn-pg",awn:"awn-ethi-et",awo:"awo-latn-zz",awr:"awr-latn-id",aws:"aws-latn-id",awt:"awt-latn-br",awu:"awu-latn-id",awv:"awv-latn-id",aww:"aww-latn-pg",awx:"awx-latn-zz",awy:"awy-latn-id",axb:"axb-latn-ar",axe:"axe-latn-au",axg:"axg-latn-br",axk:"axk-latn-cf",axl:"axl-latn-au",axm:"axm-armn-am",axx:"axx-latn-nc",ay:"ay-latn-bo",aya:"aya-latn-pg",ayb:"ayb-latn-zz",ayc:"ayc-latn-pe",ayd:"ayd-latn-au",aye:"aye-latn-ng",ayg:"ayg-latn-tg",ayh:"ayh-arab-ye",ayi:"ayi-latn-ng",ayk:"ayk-latn-ng",ayl:"ayl-arab-ly",ayn:"ayn-arab-ye",ayo:"ayo-latn-py",ayp:"ayp-arab-iq",ayq:"ayq-latn-pg",ays:"ays-latn-ph",ayt:"ayt-latn-ph",ayu:"ayu-latn-ng",ayz:"ayz-latn-id",az:"az-latn-az","az-arab":"az-arab-ir","az-iq":"az-arab-iq","az-ir":"az-arab-ir","az-ru":"az-cyrl-ru",azb:"azb-arab-ir","azb-cyrl":"azb-cyrl-az","azb-latn":"azb-latn-az",azd:"azd-latn-mx",azg:"azg-latn-mx",azm:"azm-latn-mx",azn:"azn-latn-mx",azo:"azo-latn-cm",azt:"azt-latn-ph",azz:"azz-latn-mx",ba:"ba-cyrl-ru",baa:"baa-latn-sb",bab:"bab-latn-gw",bac:"bac-latn-id",bae:"bae-latn-ve",baf:"baf-latn-cm",bag:"bag-latn-cm",bah:"bah-latn-bs",baj:"baj-latn-id",bal:"bal-arab-pk",ban:"ban-latn-id",bao:"bao-latn-co",bap:"bap-deva-np",bar:"bar-latn-at",bas:"bas-latn-cm",bau:"bau-latn-ng",bav:"bav-latn-zz",baw:"baw-latn-cm",bax:"bax-bamu-cm",bay:"bay-latn-id",bba:"bba-latn-zz",bbb:"bbb-latn-zz",bbc:"bbc-latn-id",bbd:"bbd-latn-zz",bbe:"bbe-latn-cd",bbf:"bbf-latn-pg",bbg:"bbg-latn-ga",bbi:"bbi-latn-cm",bbj:"bbj-latn-cm",bbk:"bbk-latn-cm",bbl:"bbl-geor-ge",bbm:"bbm-latn-cd",bbn:"bbn-latn-pg",bbo:"bbo-latn-bf",bbp:"bbp-latn-zz",bbq:"bbq-latn-cm",bbr:"bbr-latn-zz",bbs:"bbs-latn-ng",bbt:"bbt-latn-ng",bbu:"bbu-latn-ng",bbv:"bbv-latn-pg",bbw:"bbw-latn-cm",bbx:"bbx-latn-cm",bby:"bby-latn-cm",bca:"bca-latn-cn","bca-hani":"bca-hani-cn",bcb:"bcb-latn-sn",bcd:"bcd-latn-id",bce:"bce-latn-cm",bcf:"bcf-latn-zz",bcg:"bcg-latn-gn",bch:"bch-latn-zz",bci:"bci-latn-ci",bcj:"bcj-latn-au",bck:"bck-latn-au",bcm:"bcm-latn-zz",bcn:"bcn-latn-zz",bco:"bco-latn-zz",bcp:"bcp-latn-cd",bcq:"bcq-ethi-zz",bcr:"bcr-latn-ca",bcs:"bcs-latn-ng",bct:"bct-latn-cd",bcu:"bcu-latn-zz",bcv:"bcv-latn-ng",bcw:"bcw-latn-cm",bcy:"bcy-latn-ng",bcz:"bcz-latn-sn",bda:"bda-latn-sn",bdb:"bdb-latn-id",bdc:"bdc-latn-co",bdd:"bdd-latn-zz",bde:"bde-latn-ng",bdf:"bdf-latn-pg",bdg:"bdg-latn-my",bdh:"bdh-latn-ss",bdi:"bdi-latn-sd",bdj:"bdj-latn-ss",bdk:"bdk-latn-az",bdl:"bdl-latn-id",bdm:"bdm-latn-td",bdn:"bdn-latn-cm",bdo:"bdo-latn-td",bdp:"bdp-latn-tz",bdq:"bdq-latn-vn",bdr:"bdr-latn-my",bds:"bds-latn-tz",bdt:"bdt-latn-cf",bdu:"bdu-latn-cm",bdv:"bdv-orya-in",bdw:"bdw-latn-id",bdx:"bdx-latn-id",bdy:"bdy-latn-au",bdz:"bdz-arab-pk",be:"be-cyrl-by",bea:"bea-latn-ca","bea-cans":"bea-cans-ca",beb:"beb-latn-cm",bec:"bec-latn-cm",bed:"bed-latn-id",bee:"bee-deva-in",bef:"bef-latn-zz",beh:"beh-latn-zz",bei:"bei-latn-id",bej:"bej-arab-sd",bek:"bek-latn-pg",bem:"bem-latn-zm",beo:"beo-latn-pg",bep:"bep-latn-id",beq:"beq-latn-cg",bes:"bes-latn-td",bet:"bet-latn-zz",beu:"beu-latn-id",bev:"bev-latn-ci",bew:"bew-latn-id",bex:"bex-latn-zz",bey:"bey-latn-pg",bez:"bez-latn-tz",bfa:"bfa-latn-ss","bfa-arab":"bfa-arab-ss",bfb:"bfb-deva-in",bfc:"bfc-latn-cn",bfd:"bfd-latn-cm",bfe:"bfe-latn-id",bff:"bff-latn-cf",bfg:"bfg-latn-id",bfh:"bfh-latn-pg",bfj:"bfj-latn-cm",bfl:"bfl-latn-cf",bfm:"bfm-latn-cm",bfn:"bfn-latn-tl",bfo:"bfo-latn-bf",bfp:"bfp-latn-cm",bfq:"bfq-taml-in",bfs:"bfs-latn-cn","bfs-hani":"bfs-hani-cn",bft:"bft-arab-pk",bfu:"bfu-tibt-in","bfu-takr":"bfu-takr-in",bfw:"bfw-orya-in",bfx:"bfx-latn-ph",bfy:"bfy-deva-in",bfz:"bfz-deva-in",bg:"bg-cyrl-bg",bga:"bga-latn-ng",bgb:"bgb-latn-id",bgc:"bgc-deva-in",bgd:"bgd-deva-in",bgf:"bgf-latn-cm",bgg:"bgg-latn-in",bgi:"bgi-latn-ph",bgj:"bgj-latn-cm",bgn:"bgn-arab-pk",bgo:"bgo-latn-gn",bgp:"bgp-arab-pk",bgq:"bgq-deva-in",bgr:"bgr-latn-in",bgs:"bgs-latn-ph",bgt:"bgt-latn-sb",bgu:"bgu-latn-ng",bgv:"bgv-latn-id",bgw:"bgw-deva-in",bgx:"bgx-grek-tr",bgy:"bgy-latn-id",bgz:"bgz-latn-id",bha:"bha-deva-in",bhb:"bhb-deva-in",bhc:"bhc-latn-id",bhd:"bhd-deva-in","bhd-arab":"bhd-arab-in","bhd-takr":"bhd-takr-in",bhe:"bhe-arab-pk",bhf:"bhf-latn-pg",bhg:"bhg-latn-zz",bhh:"bhh-cyrl-il","bhh-hebr":"bhh-hebr-il","bhh-latn":"bhh-latn-il",bhi:"bhi-deva-in",bhj:"bhj-deva-np",bhl:"bhl-latn-zz",bhm:"bhm-arab-om",bhn:"bhn-syrc-ge",bho:"bho-deva-in",bhp:"bhp-latn-id",bhq:"bhq-latn-id",bhr:"bhr-latn-mg",bhs:"bhs-latn-cm",bht:"bht-takr-in","bht-deva":"bht-deva-in","bht-latn":"bht-latn-in",bhu:"bhu-deva-in",bhv:"bhv-latn-id",bhw:"bhw-latn-id",bhy:"bhy-latn-zz",bhz:"bhz-latn-id",bi:"bi-latn-vu",bia:"bia-latn-au",bib:"bib-latn-zz",bid:"bid-latn-td",bie:"bie-latn-pg",bif:"bif-latn-gw",big:"big-latn-zz",bik:"bik-latn-ph",bil:"bil-latn-ng",bim:"bim-latn-zz",bin:"bin-latn-ng",bio:"bio-latn-zz",bip:"bip-latn-cd",biq:"biq-latn-zz",bir:"bir-latn-pg",bit:"bit-latn-pg",biu:"biu-latn-in",biv:"biv-latn-gh",biw:"biw-latn-cm",biy:"biy-deva-in",biz:"biz-latn-cd",bja:"bja-latn-cd",bjb:"bjb-latn-au",bjc:"bjc-latn-pg",bjf:"bjf-syrc-il",bjg:"bjg-latn-gw",bjh:"bjh-latn-zz",bji:"bji-ethi-zz",bjj:"bjj-deva-in",bjk:"bjk-latn-pg",bjl:"bjl-latn-pg",bjm:"bjm-arab-iq",bjn:"bjn-latn-id",bjo:"bjo-latn-zz",bjp:"bjp-latn-pg",bjr:"bjr-latn-zz",bjs:"bjs-latn-bb",bjt:"bjt-latn-sn",bju:"bju-latn-cm",bjv:"bjv-latn-td",bjw:"bjw-latn-ci",bjx:"bjx-latn-ph",bjy:"bjy-latn-au",bjz:"bjz-latn-zz",bka:"bka-latn-ng",bkc:"bkc-latn-zz",bkd:"bkd-latn-ph",bkf:"bkf-latn-cd",bkg:"bkg-latn-cf",bkh:"bkh-latn-cm",bki:"bki-latn-vu",bkj:"bkj-latn-cf",bkl:"bkl-latn-id",bkm:"bkm-latn-cm",bkn:"bkn-latn-id",bko:"bko-latn-cm",bkp:"bkp-latn-cd",bkq:"bkq-latn-zz",bkr:"bkr-latn-id",bks:"bks-latn-ph",bkt:"bkt-latn-cd",bku:"bku-latn-ph",bkv:"bkv-latn-zz",bkw:"bkw-latn-cg",bkx:"bkx-latn-tl",bky:"bky-latn-ng",bkz:"bkz-latn-id",bla:"bla-latn-ca",blb:"blb-latn-sb",blc:"blc-latn-ca",bld:"bld-latn-id",ble:"ble-latn-gw",blf:"blf-latn-id",blg:"blg-latn-my",blh:"blh-latn-lr",bli:"bli-latn-cd",blj:"blj-latn-id",blk:"blk-mymr-mm",blm:"blm-latn-ss",bln:"bln-latn-ph",blo:"blo-latn-bj",blp:"blp-latn-sb",blq:"blq-latn-pg",blr:"blr-latn-cn","blr-tale":"blr-tale-cn","blr-thai":"blr-thai-th",bls:"bls-latn-id",blt:"blt-tavt-vn",blv:"blv-latn-ao",blw:"blw-latn-ph",blx:"blx-latn-ph",bly:"bly-latn-bj",blz:"blz-latn-id",bm:"bm-latn-ml",bma:"bma-latn-ng",bmb:"bmb-latn-cd",bmc:"bmc-latn-pg",bmd:"bmd-latn-gn",bme:"bme-latn-cf",bmf:"bmf-latn-sl",bmg:"bmg-latn-cd",bmh:"bmh-latn-zz",bmi:"bmi-latn-td",bmj:"bmj-deva-np",bmk:"bmk-latn-zz",bml:"bml-latn-cd",bmm:"bmm-latn-mg",bmn:"bmn-latn-pg",bmo:"bmo-latn-cm",bmp:"bmp-latn-pg",bmq:"bmq-latn-ml",bmr:"bmr-latn-co",bms:"bms-latn-ne",bmu:"bmu-latn-zz",bmv:"bmv-latn-cm",bmw:"bmw-latn-cg",bmx:"bmx-latn-pg",bmz:"bmz-latn-pg",bn:"bn-beng-bd",bna:"bna-latn-id",bnb:"bnb-latn-my",bnc:"bnc-latn-ph",bnd:"bnd-latn-id",bne:"bne-latn-id",bnf:"bnf-latn-id",bng:"bng-latn-zz",bni:"bni-latn-cd",bnj:"bnj-latn-ph",bnk:"bnk-latn-vu",bnm:"bnm-latn-zz",bnn:"bnn-latn-tw",bno:"bno-latn-ph",bnp:"bnp-latn-zz",bnq:"bnq-latn-id",bnr:"bnr-latn-vu",bns:"bns-deva-in",bnu:"bnu-latn-id",bnv:"bnv-latn-id",bnw:"bnw-latn-pg",bnx:"bnx-latn-cd",bny:"bny-latn-my",bnz:"bnz-latn-cm",bo:"bo-tibt-cn",boa:"boa-latn-pe",bob:"bob-latn-ke",boe:"boe-latn-cm",bof:"bof-latn-bf",boh:"boh-latn-cd",boj:"boj-latn-zz",bok:"bok-latn-cg",bol:"bol-latn-ng",bom:"bom-latn-zz",bon:"bon-latn-zz",boo:"boo-latn-ml",bop:"bop-latn-pg",boq:"boq-latn-pg",bor:"bor-latn-br",bot:"bot-latn-ss",bou:"bou-latn-tz",bov:"bov-latn-gh",bow:"bow-latn-pg",box:"box-latn-bf",boy:"boy-latn-cf",boz:"boz-latn-ml","boz-arab":"boz-arab-ml",bpa:"bpa-latn-vu",bpc:"bpc-latn-cm",bpd:"bpd-latn-cf",bpe:"bpe-latn-pg",bpg:"bpg-latn-id",bph:"bph-cyrl-ru",bpi:"bpi-latn-pg",bpj:"bpj-latn-cd",bpk:"bpk-latn-nc",bpl:"bpl-latn-au",bpm:"bpm-latn-pg",bpo:"bpo-latn-id",bpp:"bpp-latn-id",bpq:"bpq-latn-id",bpr:"bpr-latn-ph",bps:"bps-latn-ph",bpt:"bpt-latn-au",bpu:"bpu-latn-pg",bpv:"bpv-latn-id",bpw:"bpw-latn-pg",bpx:"bpx-deva-in",bpy:"bpy-beng-in",bpz:"bpz-latn-id",bqa:"bqa-latn-bj",bqb:"bqb-latn-id",bqc:"bqc-latn-zz",bqd:"bqd-latn-cm",bqf:"bqf-latn-gn","bqf-arab":"bqf-arab-gn",bqg:"bqg-latn-tg",bqi:"bqi-arab-ir",bqj:"bqj-latn-sn",bqk:"bqk-latn-cf",bql:"bql-latn-pg",bqm:"bqm-latn-cm",bqo:"bqo-latn-cm",bqp:"bqp-latn-zz",bqq:"bqq-latn-id",bqr:"bqr-latn-id",bqs:"bqs-latn-pg",bqt:"bqt-latn-cm",bqu:"bqu-latn-cd",bqv:"bqv-latn-ci",bqw:"bqw-latn-ng",bqx:"bqx-latn-ng",bqz:"bqz-latn-cm",br:"br-latn-fr",bra:"bra-deva-in",brb:"brb-khmr-kh","brb-laoo":"brb-laoo-la","brb-latn":"brb-latn-vn",brc:"brc-latn-gy",brd:"brd-deva-np",brf:"brf-latn-cd",brg:"brg-latn-bo",brh:"brh-arab-pk",bri:"bri-latn-cm",brj:"brj-latn-vu",brk:"brk-arab-sd",brl:"brl-latn-bw",brm:"brm-latn-cd",brn:"brn-latn-cr",brp:"brp-latn-id",brq:"brq-latn-pg",brr:"brr-latn-sb",brs:"brs-latn-id",brt:"brt-latn-ng",bru:"bru-latn-vn","bru-laoo":"bru-laoo-la","bru-thai":"bru-thai-la",brv:"brv-laoo-la",brx:"brx-deva-in",bry:"bry-latn-pg",brz:"brz-latn-zz",bs:"bs-latn-ba",bsa:"bsa-latn-id",bsb:"bsb-latn-bn",bsc:"bsc-latn-sn",bse:"bse-latn-cm",bsf:"bsf-latn-ng",bsh:"bsh-arab-af",bsi:"bsi-latn-cm",bsj:"bsj-latn-zz",bsk:"bsk-arab-pk","bsk-latn":"bsk-latn-pk",bsl:"bsl-latn-ng",bsm:"bsm-latn-id",bsn:"bsn-latn-co",bso:"bso-latn-td",bsp:"bsp-latn-gn",bsq:"bsq-bass-lr",bsr:"bsr-latn-ng",bss:"bss-latn-cm",bst:"bst-ethi-zz",bsu:"bsu-latn-id",bsv:"bsv-latn-gn","bsv-arab":"bsv-arab-gn",bsw:"bsw-latn-et","bsw-ethi":"bsw-ethi-et",bsx:"bsx-latn-ng",bsy:"bsy-latn-my",bta:"bta-latn-ng",btc:"btc-latn-cm",btd:"btd-batk-id",bte:"bte-latn-ng",btf:"btf-latn-td",btg:"btg-latn-ci",bth:"bth-latn-my",bti:"bti-latn-id",btj:"btj-latn-id",btm:"btm-batk-id",btn:"btn-latn-ph",bto:"bto-latn-ph",btp:"btp-latn-pg",btq:"btq-latn-my",btr:"btr-latn-vu",bts:"bts-latn-id","bts-batk":"bts-batk-id",btt:"btt-latn-zz",btu:"btu-latn-ng",btv:"btv-deva-pk",btw:"btw-latn-ph",btx:"btx-latn-id","btx-batk":"btx-batk-id",bty:"bty-latn-id",btz:"btz-latn-id",bua:"bua-cyrl-ru",bub:"bub-latn-td",buc:"buc-latn-yt",bud:"bud-latn-zz",bue:"bue-latn-ca",buf:"buf-latn-cd",bug:"bug-latn-id",buh:"buh-latn-cn",bui:"bui-latn-cg",buj:"buj-latn-ng",buk:"buk-latn-zz",bum:"bum-latn-cm",bun:"bun-latn-sl",buo:"buo-latn-zz",bup:"bup-latn-id",buq:"buq-latn-pg",bus:"bus-latn-zz",but:"but-latn-pg",buu:"buu-latn-zz",buv:"buv-latn-pg",buw:"buw-latn-ga",bux:"bux-latn-ng",buy:"buy-latn-sl",buz:"buz-latn-ng",bva:"bva-latn-td",bvb:"bvb-latn-gq",bvc:"bvc-latn-sb",bvd:"bvd-latn-sb",bve:"bve-latn-id",bvf:"bvf-latn-td",bvg:"bvg-latn-cm",bvh:"bvh-latn-ng",bvi:"bvi-latn-ss",bvj:"bvj-latn-ng",bvk:"bvk-latn-id",bvm:"bvm-latn-cm",bvn:"bvn-latn-pg",bvo:"bvo-latn-td",bvq:"bvq-latn-cf",bvr:"bvr-latn-au",bvt:"bvt-latn-id",bvu:"bvu-latn-id",bvv:"bvv-latn-ve",bvw:"bvw-latn-ng",bvx:"bvx-latn-cg",bvy:"bvy-latn-ph",bvz:"bvz-latn-id",bwa:"bwa-latn-nc",bwb:"bwb-latn-fj",bwc:"bwc-latn-zm",bwd:"bwd-latn-zz",bwe:"bwe-mymr-mm","bwe-latn":"bwe-latn-mm",bwf:"bwf-latn-pg",bwg:"bwg-latn-mz",bwh:"bwh-latn-cm",bwi:"bwi-latn-ve",bwj:"bwj-latn-bf",bwk:"bwk-latn-pg",bwl:"bwl-latn-cd",bwm:"bwm-latn-pg",bwo:"bwo-latn-et","bwo-ethi":"bwo-ethi-et",bwp:"bwp-latn-id",bwq:"bwq-latn-bf",bwr:"bwr-latn-zz",bws:"bws-latn-cd",bwt:"bwt-latn-cm",bwu:"bwu-latn-gh",bww:"bww-latn-cd",bwx:"bwx-latn-cn",bwy:"bwy-latn-bf",bwz:"bwz-latn-cg",bxa:"bxa-latn-sb",bxb:"bxb-latn-ss",bxc:"bxc-latn-gq",bxf:"bxf-latn-pg",bxg:"bxg-latn-cd",bxh:"bxh-latn-zz",bxi:"bxi-latn-au",bxj:"bxj-latn-au",bxl:"bxl-latn-bf",bxm:"bxm-cyrl-mn","bxm-latn":"bxm-latn-mn","bxm-mong":"bxm-mong-mn",bxn:"bxn-latn-au",bxo:"bxo-latn-ng",bxp:"bxp-latn-cm",bxq:"bxq-latn-ng",bxs:"bxs-latn-cm",bxu:"bxu-mong-cn","bxu-cyrl":"bxu-cyrl-cn","bxu-latn":"bxu-latn-cn",bxv:"bxv-latn-td",bxw:"bxw-latn-ml",bxz:"bxz-latn-pg",bya:"bya-latn-ph",byb:"byb-latn-cm",byc:"byc-latn-ng",byd:"byd-latn-id",bye:"bye-latn-zz",byf:"byf-latn-ng",byh:"byh-deva-np",byi:"byi-latn-cd",byj:"byj-latn-ng",byk:"byk-latn-cn",byl:"byl-latn-id",bym:"bym-latn-au",byn:"byn-ethi-er",byp:"byp-latn-ng",byr:"byr-latn-zz",bys:"bys-latn-zz",byv:"byv-latn-cm",byw:"byw-deva-np",byx:"byx-latn-zz",byz:"byz-latn-pg",bza:"bza-latn-zz",bzb:"bzb-latn-id",bzc:"bzc-latn-mg",bzd:"bzd-latn-cr",bze:"bze-latn-ml",bzf:"bzf-latn-zz",bzh:"bzh-latn-zz",bzi:"bzi-thai-th",bzj:"bzj-latn-bz",bzk:"bzk-latn-ni",bzl:"bzl-latn-id",bzm:"bzm-latn-cd",bzn:"bzn-latn-id",bzo:"bzo-latn-cd",bzp:"bzp-latn-id",bzq:"bzq-latn-id",bzr:"bzr-latn-au",bzt:"bzt-latn-001",bzu:"bzu-latn-id",bzv:"bzv-latn-cm",bzw:"bzw-latn-zz",bzx:"bzx-latn-ml",bzy:"bzy-latn-ng",bzz:"bzz-latn-ng",ca:"ca-latn-es",caa:"caa-latn-gt",cab:"cab-latn-hn",cac:"cac-latn-gt",cad:"cad-latn-us",cae:"cae-latn-sn",caf:"caf-latn-ca","caf-cans":"caf-cans-ca",cag:"cag-latn-py",cah:"cah-latn-pe",caj:"caj-latn-ar",cak:"cak-latn-gt",cal:"cal-latn-mp",cam:"cam-latn-nc",can:"can-latn-zz",cao:"cao-latn-bo",cap:"cap-latn-bo",caq:"caq-latn-in",car:"car-latn-ve",cas:"cas-latn-bo",cav:"cav-latn-bo",caw:"caw-latn-bo",cax:"cax-latn-bo",cay:"cay-latn-ca",caz:"caz-latn-bo",cbb:"cbb-latn-co",cbc:"cbc-latn-co",cbd:"cbd-latn-co",cbg:"cbg-latn-co",cbi:"cbi-latn-ec",cbj:"cbj-latn-zz",cbk:"cbk-latn-ph","cbk-brai":"cbk-brai-ph",cbl:"cbl-latn-mm",cbn:"cbn-thai-th",cbo:"cbo-latn-ng",cbq:"cbq-latn-ng",cbr:"cbr-latn-pe",cbs:"cbs-latn-pe",cbt:"cbt-latn-pe",cbu:"cbu-latn-pe",cbv:"cbv-latn-co",cbw:"cbw-latn-ph",cby:"cby-latn-co",ccc:"ccc-latn-pe",ccd:"ccd-latn-br",cce:"cce-latn-mz",ccg:"ccg-latn-ng",cch:"cch-latn-ng",ccj:"ccj-latn-gw",ccl:"ccl-latn-tz",ccm:"ccm-latn-my",cco:"cco-latn-mx",ccp:"ccp-cakm-bd",ccr:"ccr-latn-sv",cde:"cde-telu-in",cdf:"cdf-latn-in","cdf-beng":"cdf-beng-in",cdh:"cdh-deva-in","cdh-takr":"cdh-takr-in",cdi:"cdi-gujr-in",cdj:"cdj-deva-in",cdm:"cdm-deva-np","cdm-latn":"cdm-latn-np",cdo:"cdo-hans-cn","cdo-hant":"cdo-hant-cn","cdo-latn":"cdo-latn-cn",cdr:"cdr-latn-ng",cdz:"cdz-beng-in",ce:"ce-cyrl-ru",cea:"cea-latn-us",ceb:"ceb-latn-ph",ceg:"ceg-latn-py",cek:"cek-latn-mm",cen:"cen-latn-ng",cet:"cet-latn-ng",cey:"cey-latn-mm",cfa:"cfa-latn-zz",cfd:"cfd-latn-ng",cfg:"cfg-latn-ng",cfm:"cfm-latn-mm","cfm-beng":"cfm-beng-in",cga:"cga-latn-pg",cgc:"cgc-latn-ph",cgg:"cgg-latn-ug",cgk:"cgk-tibt-bt",ch:"ch-latn-gu",chb:"chb-latn-co",chd:"chd-latn-mx",chf:"chf-latn-mx",chg:"chg-arab-tm",chh:"chh-latn-us",chj:"chj-latn-mx",chk:"chk-latn-fm",chl:"chl-latn-us",chm:"chm-cyrl-ru",chn:"chn-latn-us","chn-dupl":"chn-dupl-us",cho:"cho-latn-us",chp:"chp-latn-ca",chq:"chq-latn-mx",chr:"chr-cher-us",cht:"cht-latn-pe",chw:"chw-latn-mz",chx:"chx-deva-np",chy:"chy-latn-us",chz:"chz-latn-mx",cia:"cia-latn-id","cia-arab":"cia-arab-id","cia-hang":"cia-hang-id",cib:"cib-latn-bj",cic:"cic-latn-us",cie:"cie-latn-ng",cih:"cih-deva-in",cim:"cim-latn-it",cin:"cin-latn-br",cip:"cip-latn-mx",cir:"cir-latn-nc",ciw:"ciw-latn-us","ciw-cans":"ciw-cans-us",ciy:"ciy-latn-ve",cja:"cja-arab-kh",cje:"cje-latn-vn",cjh:"cjh-latn-us",cji:"cji-cyrl-ru",cjk:"cjk-latn-ao",cjm:"cjm-cham-vn",cjn:"cjn-latn-pg",cjo:"cjo-latn-pe",cjp:"cjp-latn-cr",cjs:"cjs-latn-ru","cjs-cyrl":"cjs-cyrl-ru",cjv:"cjv-latn-zz",cjy:"cjy-hans-cn","cjy-hant":"cjy-hant-cn",ckb:"ckb-arab-iq",ckl:"ckl-latn-zz",ckm:"ckm-latn-hr","ckm-glag":"ckm-glag-hr",ckn:"ckn-latn-mm",cko:"cko-latn-zz",ckq:"ckq-latn-td",ckr:"ckr-latn-pg",cks:"cks-latn-nc",ckt:"ckt-cyrl-ru",cku:"cku-latn-us",ckv:"ckv-latn-tw",ckx:"ckx-latn-cm",cky:"cky-latn-zz",ckz:"ckz-latn-gt",cla:"cla-latn-zz",clc:"clc-latn-ca",cle:"cle-latn-mx",clh:"clh-arab-pk",cli:"cli-latn-gh",clj:"clj-latn-mm",clk:"clk-latn-in","clk-tibt":"clk-tibt-cn",cll:"cll-latn-gh",clm:"clm-latn-us",clo:"clo-latn-mx",clt:"clt-latn-mm",clu:"clu-latn-ph",clw:"clw-cyrl-ru",cly:"cly-latn-mx",cma:"cma-latn-vn",cme:"cme-latn-zz",cmg:"cmg-soyo-mn",cmi:"cmi-latn-co",cml:"cml-latn-id",cmo:"cmo-latn-vn","cmo-kh":"cmo-latn-kh","cmo-khmr":"cmo-khmr-kh",cmr:"cmr-latn-mm",cms:"cms-latn-it",cmt:"cmt-latn-za",cna:"cna-tibt-in",cnb:"cnb-latn-mm",cnc:"cnc-latn-vn",cng:"cng-latn-cn",cnh:"cnh-latn-mm",cni:"cni-latn-pe",cnk:"cnk-latn-mm",cnl:"cnl-latn-mx",cnp:"cnp-hans-cn","cnp-hant":"cnp-hant-cn",cnq:"cnq-latn-cm",cns:"cns-latn-id",cnt:"cnt-latn-mx",cnw:"cnw-latn-mm",cnx:"cnx-latn-gb",co:"co-latn-fr",coa:"coa-latn-au",cob:"cob-latn-mx",coc:"coc-latn-mx",cod:"cod-latn-pe",coe:"coe-latn-co",cof:"cof-latn-ec",cog:"cog-thai-th",coh:"coh-latn-ke",coj:"coj-latn-mx",cok:"cok-latn-mx",col:"col-latn-us",com:"com-latn-us",coo:"coo-latn-ca",cop:"cop-copt-eg",coq:"coq-latn-us",cot:"cot-latn-pe",cou:"cou-latn-sn",cox:"cox-latn-pe",coz:"coz-latn-mx",cpa:"cpa-latn-mx",cpb:"cpb-latn-pe",cpc:"cpc-latn-pe",cpg:"cpg-grek-gr",cpi:"cpi-latn-nr",cpn:"cpn-latn-gh",cpo:"cpo-latn-bf",cps:"cps-latn-ph",cpu:"cpu-latn-pe",cpx:"cpx-latn-cn",cpy:"cpy-latn-pe",cqd:"cqd-latn-cn",cr:"cr-cans-ca",crb:"crb-latn-vc",crc:"crc-latn-vu",crd:"crd-latn-us",crf:"crf-latn-co",crg:"crg-latn-ca",crh:"crh-cyrl-ua",cri:"cri-latn-st",crj:"crj-cans-ca","crj-latn":"crj-latn-ca",crk:"crk-cans-ca",crl:"crl-cans-ca",crm:"crm-cans-ca",crn:"crn-latn-mx",cro:"cro-latn-us",crq:"crq-latn-ar",crs:"crs-latn-sc",crt:"crt-latn-ar",crv:"crv-latn-in",crw:"crw-latn-vn",crx:"crx-latn-ca","crx-cans":"crx-cans-ca",cry:"cry-latn-ng",crz:"crz-latn-us",cs:"cs-latn-cz",csa:"csa-latn-mx",csb:"csb-latn-pl",csh:"csh-mymr-mm","csh-latn":"csh-latn-mm",csj:"csj-latn-mm",csk:"csk-latn-sn",csm:"csm-latn-us",cso:"cso-latn-mx",csp:"csp-hans-cn","csp-hant":"csp-hant-cn",css:"css-latn-us",cst:"cst-latn-us",csv:"csv-latn-mm",csw:"csw-cans-ca",csy:"csy-latn-mm",csz:"csz-latn-us",cta:"cta-latn-mx",ctc:"ctc-latn-us",ctd:"ctd-pauc-mm",cte:"cte-latn-mx",ctg:"ctg-beng-bd","ctg-arab":"ctg-arab-bd","ctg-latn":"ctg-latn-bd",cth:"cth-latn-mm",ctl:"ctl-latn-mx",ctm:"ctm-latn-us",ctn:"ctn-deva-np",cto:"cto-latn-co",ctp:"ctp-latn-mx",cts:"cts-latn-ph",ctt:"ctt-taml-in",ctu:"ctu-latn-mx",ctz:"ctz-latn-mx",cu:"cu-cyrl-ru","cu-glag":"cu-glag-bg",cua:"cua-latn-vn",cub:"cub-latn-co",cuc:"cuc-latn-mx",cuh:"cuh-latn-ke",cui:"cui-latn-co",cuj:"cuj-latn-pe",cuk:"cuk-latn-pa",cul:"cul-latn-br",cuo:"cuo-latn-ve",cup:"cup-latn-us",cut:"cut-latn-mx",cuu:"cuu-lana-cn",cuv:"cuv-latn-cm",cux:"cux-latn-mx",cv:"cv-cyrl-ru",cvg:"cvg-latn-in","cvg-tibt":"cvg-tibt-in",cvn:"cvn-latn-mx",cwa:"cwa-latn-tz",cwb:"cwb-latn-mz",cwe:"cwe-latn-tz",cwg:"cwg-latn-my",cwt:"cwt-latn-sn",cy:"cy-latn-gb",cya:"cya-latn-mx",cyb:"cyb-latn-bo",cyo:"cyo-latn-ph",czh:"czh-hans-cn","czh-hant":"czh-hant-cn",czk:"czk-hebr-cz",czn:"czn-latn-mx",czt:"czt-latn-mm",da:"da-latn-dk",daa:"daa-latn-td",dac:"dac-latn-pg",dad:"dad-latn-zz",dae:"dae-latn-cm",daf:"daf-latn-ci",dag:"dag-latn-zz",dah:"dah-latn-zz",dai:"dai-latn-td",daj:"daj-latn-sd",dak:"dak-latn-us",dal:"dal-latn-ke",dam:"dam-latn-ng",dao:"dao-latn-mm",daq:"daq-deva-in",dar:"dar-cyrl-ru",das:"das-latn-ci",dau:"dau-latn-td",dav:"dav-latn-ke",daw:"daw-latn-ph",dax:"dax-latn-au",daz:"daz-latn-id",dba:"dba-latn-ml",dbb:"dbb-latn-ng",dbd:"dbd-latn-zz",dbe:"dbe-latn-id",dbf:"dbf-latn-id",dbg:"dbg-latn-ml",dbi:"dbi-latn-ng",dbj:"dbj-latn-my","dbj-arab":"dbj-arab-my",dbl:"dbl-latn-au",dbm:"dbm-latn-ng",dbn:"dbn-latn-id",dbo:"dbo-latn-ng",dbp:"dbp-latn-ng",dbq:"dbq-latn-zz",dbt:"dbt-latn-ml",dbu:"dbu-latn-ml",dbv:"dbv-latn-ng",dbw:"dbw-latn-ml",dby:"dby-latn-pg",dcc:"dcc-arab-in",dcr:"dcr-latn-vi",dda:"dda-latn-au",ddd:"ddd-latn-ss",dde:"dde-latn-cg",ddg:"ddg-latn-tl",ddi:"ddi-latn-pg",ddj:"ddj-latn-au",ddn:"ddn-latn-zz",ddo:"ddo-cyrl-ru",ddr:"ddr-latn-au",dds:"dds-latn-ml",ddw:"ddw-latn-id",de:"de-latn-de",dec:"dec-latn-sd",ded:"ded-latn-zz",dee:"dee-latn-lr",def:"def-arab-ir",deg:"deg-latn-ng",deh:"deh-arab-pk",dei:"dei-latn-id",dek:"dek-latn-cm",del:"del-latn-us",dem:"dem-latn-id",den:"den-latn-ca",deq:"deq-latn-cf",der:"der-beng-in","der-latn":"der-latn-in",des:"des-latn-br",dev:"dev-latn-pg",dez:"dez-latn-cd",dga:"dga-latn-zz",dgb:"dgb-latn-ml",dgc:"dgc-latn-ph",dgd:"dgd-latn-bf",dge:"dge-latn-pg",dgg:"dgg-latn-pg",dgh:"dgh-latn-zz",dgi:"dgi-latn-zz",dgk:"dgk-latn-cf",dgl:"dgl-arab-zz",dgn:"dgn-latn-au",dgr:"dgr-latn-ca",dgs:"dgs-latn-bf",dgt:"dgt-latn-au",dgw:"dgw-latn-au",dgx:"dgx-latn-pg",dgz:"dgz-latn-zz",dhg:"dhg-latn-au",dhi:"dhi-deva-np",dhl:"dhl-latn-au",dhm:"dhm-latn-ao",dhn:"dhn-gujr-in",dho:"dho-deva-in",dhr:"dhr-latn-au",dhs:"dhs-latn-tz",dhu:"dhu-latn-au",dhv:"dhv-latn-nc",dhw:"dhw-deva-np",dhx:"dhx-latn-au",dia:"dia-latn-zz",dib:"dib-latn-ss",dic:"dic-latn-ci",did:"did-latn-ss",dif:"dif-latn-au",dig:"dig-latn-ke",dih:"dih-latn-mx",dii:"dii-latn-cm",dij:"dij-latn-id",dil:"dil-latn-sd",din:"din-latn-ss","din-arab":"din-arab-ss",dio:"dio-latn-ng",dip:"dip-latn-ss",dir:"dir-latn-ng",dis:"dis-latn-in","dis-beng":"dis-beng-in",diu:"diu-latn-na",diw:"diw-latn-ss",dix:"dix-latn-vu",diy:"diy-latn-id",diz:"diz-latn-cd",dja:"dja-latn-au",djb:"djb-latn-au",djc:"djc-latn-td",djd:"djd-latn-au",dje:"dje-latn-ne",djf:"djf-latn-au",dji:"dji-latn-au",djj:"djj-latn-au",djk:"djk-latn-sr",djm:"djm-latn-ml",djn:"djn-latn-au",djo:"djo-latn-id",djr:"djr-latn-au",dju:"dju-latn-pg",djw:"djw-latn-au",dka:"dka-tibt-bt",dkg:"dkg-latn-ng",dkk:"dkk-latn-id",dkr:"dkr-latn-my",dks:"dks-latn-ss",dkx:"dkx-latn-cm",dlg:"dlg-cyrl-ru",dlm:"dlm-latn-hr",dln:"dln-latn-in",dma:"dma-latn-ga",dmb:"dmb-latn-ml",dmc:"dmc-latn-pg",dmd:"dmd-latn-au",dme:"dme-latn-cm",dmf:"dmf-medf-ng",dmg:"dmg-latn-my",dmk:"dmk-arab-pk",dml:"dml-arab-pk",dmm:"dmm-latn-cm",dmo:"dmo-latn-cm",dmr:"dmr-latn-id",dms:"dms-latn-id",dmu:"dmu-latn-id",dmv:"dmv-latn-my",dmw:"dmw-latn-au",dmx:"dmx-latn-mz",dmy:"dmy-latn-id",dna:"dna-latn-id",dnd:"dnd-latn-pg",dne:"dne-latn-tz",dng:"dng-cyrl-kg","dng-arab":"dng-arab-kg",dni:"dni-latn-id",dnj:"dnj-latn-ci",dnk:"dnk-latn-id",dnn:"dnn-latn-bf",dno:"dno-latn-cd",dnr:"dnr-latn-pg",dnt:"dnt-latn-id",dnu:"dnu-mymr-mm",dnv:"dnv-mymr-mm",dnw:"dnw-latn-id",dny:"dny-latn-br",doa:"doa-latn-pg",dob:"dob-latn-zz",doc:"doc-latn-cn",doe:"doe-latn-tz",dof:"dof-latn-pg",doh:"doh-latn-ng",doi:"doi-deva-in",dok:"dok-latn-id",dol:"dol-latn-pg",don:"don-latn-pg",doo:"doo-latn-cd",dop:"dop-latn-zz",dor:"dor-latn-sb",dos:"dos-latn-bf",dot:"dot-latn-ng",dov:"dov-latn-zw",dow:"dow-latn-zz",dox:"dox-ethi-et",doy:"doy-latn-gh",dpp:"dpp-latn-my",drc:"drc-latn-pt",dre:"dre-tibt-np",drg:"drg-latn-my",drh:"drh-mong-cn",dri:"dri-latn-zz",drl:"drl-latn-au",drn:"drn-latn-id",dro:"dro-latn-my",drq:"drq-deva-np",drs:"drs-ethi-zz",drt:"drt-latn-nl",dru:"dru-latn-tw",dry:"dry-deva-np",dsb:"dsb-latn-de",dsh:"dsh-latn-ke",dsi:"dsi-latn-td",dsn:"dsn-latn-id",dso:"dso-orya-in",dsq:"dsq-latn-ml","dsq-arab":"dsq-arab-ml",dta:"dta-latn-cn","dta-cyrl":"dta-cyrl-cn","dta-hans":"dta-hans-cn",dtb:"dtb-latn-my",dtd:"dtd-latn-ca",dth:"dth-latn-au",dti:"dti-latn-ml",dtk:"dtk-latn-ml",dtm:"dtm-latn-ml",dto:"dto-latn-ml",dtp:"dtp-latn-my",dtr:"dtr-latn-my",dts:"dts-latn-zz",dtt:"dtt-latn-ml",dtu:"dtu-latn-ml",dty:"dty-deva-np",dua:"dua-latn-cm",dub:"dub-gujr-in",duc:"duc-latn-zz",dud:"dud-latn-zz",due:"due-latn-ph",duf:"duf-latn-nc",dug:"dug-latn-zz",duh:"duh-deva-in","duh-gujr":"duh-gujr-in",dui:"dui-latn-pg",duk:"duk-latn-pg",dul:"dul-latn-ph",dum:"dum-latn-nl",dun:"dun-latn-id",duo:"duo-latn-ph",dup:"dup-latn-id",duq:"duq-latn-id",dur:"dur-latn-cm",dus:"dus-deva-np",duu:"duu-latn-cn",duv:"duv-latn-id",duw:"duw-latn-id",dux:"dux-latn-ml",duy:"duy-latn-ph",duz:"duz-latn-cm",dv:"dv-thaa-mv",dva:"dva-latn-zz",dwa:"dwa-latn-ng",dwk:"dwk-orya-in",dwr:"dwr-latn-et","dwr-ethi":"dwr-ethi-et",dws:"dws-latn-001",dwu:"dwu-latn-au",dww:"dww-latn-zz",dwy:"dwy-latn-au",dwz:"dwz-deva-np",dya:"dya-latn-bf",dyb:"dyb-latn-au",dyd:"dyd-latn-au",dyg:"dyg-latn-ph",dyi:"dyi-latn-ci",dym:"dym-latn-ml",dyn:"dyn-latn-au",dyo:"dyo-latn-sn",dyu:"dyu-latn-bf",dyy:"dyy-latn-au",dz:"dz-tibt-bt",dza:"dza-latn-ng",dze:"dze-latn-au",dzg:"dzg-latn-zz",dzl:"dzl-tibt-bt",dzn:"dzn-latn-cd",eaa:"eaa-latn-au",ebc:"ebc-latn-id",ebg:"ebg-latn-ng",ebk:"ebk-latn-ph",ebo:"ebo-latn-cg",ebr:"ebr-latn-ci",ebu:"ebu-latn-ke",ecr:"ecr-grek-gr",ecy:"ecy-cprt-cy",ee:"ee-latn-gh",efa:"efa-latn-ng",efe:"efe-latn-cd",efi:"efi-latn-ng",ega:"ega-latn-ci",egl:"egl-latn-it",egm:"egm-latn-tz",ego:"ego-latn-ng",egy:"egy-egyp-eg",ehu:"ehu-latn-ng",eip:"eip-latn-id",eit:"eit-latn-pg",eiv:"eiv-latn-pg",eja:"eja-latn-gw",eka:"eka-latn-zz",eke:"eke-latn-ng",ekg:"ekg-latn-id",eki:"eki-latn-ng",ekl:"ekl-latn-bd",ekm:"ekm-latn-cm",eko:"eko-latn-mz","eko-arab":"eko-arab-mz",ekp:"ekp-latn-ng",ekr:"ekr-latn-ng",eky:"eky-kali-mm",el:"el-grek-gr",ele:"ele-latn-pg",elk:"elk-latn-pg",elm:"elm-latn-ng",elo:"elo-latn-ke",elu:"elu-latn-pg",ema:"ema-latn-zz",emb:"emb-latn-id",eme:"eme-latn-gf",emg:"emg-deva-np",emi:"emi-latn-zz",emm:"emm-latn-mx",emn:"emn-latn-cm",emp:"emp-latn-pa",ems:"ems-latn-us","ems-cyrl":"ems-cyrl-us",emu:"emu-deva-in",emw:"emw-latn-id",emx:"emx-latn-fr",emz:"emz-latn-cm",en:"en-latn-us","en-shaw":"en-shaw-gb",ena:"ena-latn-pg",enb:"enb-latn-ke",enc:"enc-latn-vn",end:"end-latn-id",enf:"enf-cyrl-ru",enh:"enh-cyrl-ru",enl:"enl-latn-py",enm:"enm-latn-gb",enn:"enn-latn-zz",eno:"eno-latn-id",enq:"enq-latn-zz",enr:"enr-latn-id",env:"env-latn-ng",enw:"enw-latn-ng",enx:"enx-latn-py",eo:"eo-latn-001",eot:"eot-latn-ci",epi:"epi-latn-ng",era:"era-taml-in",erg:"erg-latn-vu",erh:"erh-latn-ng",eri:"eri-latn-zz",erk:"erk-latn-vu",err:"err-latn-au",ert:"ert-latn-id",erw:"erw-latn-id",es:"es-latn-es",ese:"ese-latn-bo",esg:"esg-gonm-in",esh:"esh-arab-ir",esi:"esi-latn-us",esm:"esm-latn-ci",ess:"ess-latn-us","ess-cyrl":"ess-cyrl-us",esu:"esu-latn-us",esy:"esy-latn-ph",et:"et-latn-ee",etb:"etb-latn-ng",etn:"etn-latn-vu",eto:"eto-latn-cm",etr:"etr-latn-zz",ets:"ets-latn-ng",ett:"ett-ital-it",etu:"etu-latn-zz",etx:"etx-latn-zz",etz:"etz-latn-id",eu:"eu-latn-es",eve:"eve-cyrl-ru",evh:"evh-latn-ng",evn:"evn-cyrl-ru","evn-latn":"evn-latn-cn","evn-mong":"evn-mong-cn",ewo:"ewo-latn-cm",ext:"ext-latn-es",eya:"eya-latn-us",eyo:"eyo-latn-ke",eza:"eza-latn-zz",eze:"eze-latn-ng",fa:"fa-arab-ir",faa:"faa-latn-zz",fab:"fab-latn-zz",fad:"fad-latn-pg",faf:"faf-latn-sb",fag:"fag-latn-zz",fah:"fah-latn-ng",fai:"fai-latn-zz",faj:"faj-latn-pg",fak:"fak-latn-cm",fal:"fal-latn-cm",fam:"fam-latn-ng",fan:"fan-latn-gq",fap:"fap-latn-sn",far:"far-latn-sb",fau:"fau-latn-id",fax:"fax-latn-es",fay:"fay-arab-ir",faz:"faz-arab-ir",fbl:"fbl-latn-ph",fer:"fer-latn-ss",ff:"ff-latn-sn","ff-adlm":"ff-adlm-gn",ffi:"ffi-latn-zz",ffm:"ffm-latn-ml",fgr:"fgr-latn-td",fi:"fi-latn-fi",fia:"fia-arab-sd",fie:"fie-latn-ng",fif:"fif-latn-sa",fil:"fil-latn-ph",fip:"fip-latn-tz",fir:"fir-latn-ng",fit:"fit-latn-se",fiw:"fiw-latn-pg",fj:"fj-latn-fj",fkk:"fkk-latn-ng",fkv:"fkv-latn-no",fla:"fla-latn-us",flh:"flh-latn-id",fli:"fli-latn-ng",fll:"fll-latn-cm",fln:"fln-latn-au",flr:"flr-latn-zz",fly:"fly-latn-za",fmp:"fmp-latn-zz",fmu:"fmu-deva-in",fnb:"fnb-latn-vu",fng:"fng-latn-za",fni:"fni-latn-td",fo:"fo-latn-fo",fod:"fod-latn-zz",foi:"foi-latn-pg",fom:"fom-latn-cd",fon:"fon-latn-bj",for:"for-latn-zz",fos:"fos-latn-tw",fpe:"fpe-latn-zz",fqs:"fqs-latn-zz",fr:"fr-latn-fr",frc:"frc-latn-us",frd:"frd-latn-id",frk:"frk-latn-de",frm:"frm-latn-fr",fro:"fro-latn-fr",frp:"frp-latn-fr",frq:"frq-latn-pg",frr:"frr-latn-de",frs:"frs-latn-de",frt:"frt-latn-vu",fub:"fub-arab-cm",fud:"fud-latn-wf",fue:"fue-latn-zz",fuf:"fuf-latn-gn",fuh:"fuh-latn-zz",fui:"fui-latn-td",fum:"fum-latn-ng",fun:"fun-latn-br",fuq:"fuq-latn-ne",fur:"fur-latn-it",fut:"fut-latn-vu",fuu:"fuu-latn-cd",fuv:"fuv-latn-ng",fuy:"fuy-latn-zz",fvr:"fvr-latn-sd",fwa:"fwa-latn-nc",fwe:"fwe-latn-na",fy:"fy-latn-nl",ga:"ga-latn-ie",gaa:"gaa-latn-gh",gab:"gab-latn-td",gac:"gac-latn-in","gac-deva":"gac-deva-in",gad:"gad-latn-ph",gae:"gae-latn-ve",gaf:"gaf-latn-zz",gag:"gag-latn-md",gah:"gah-latn-zz",gai:"gai-latn-pg",gaj:"gaj-latn-zz",gak:"gak-latn-id",gal:"gal-latn-tl",gam:"gam-latn-zz",gan:"gan-hans-cn",gao:"gao-latn-pg",gap:"gap-latn-pg",gaq:"gaq-orya-in",gar:"gar-latn-pg",gas:"gas-gujr-in",gat:"gat-latn-pg",gau:"gau-telu-in",gaw:"gaw-latn-zz",gax:"gax-latn-et","gax-ethi":"gax-ethi-et",gay:"gay-latn-id",gba:"gba-latn-zz",gbb:"gbb-latn-au",gbd:"gbd-latn-au",gbe:"gbe-latn-pg",gbf:"gbf-latn-zz",gbg:"gbg-latn-cf",gbh:"gbh-latn-bj",gbi:"gbi-latn-id",gbj:"gbj-orya-in",gbk:"gbk-deva-in","gbk-takr":"gbk-takr-in",gbl:"gbl-gujr-in","gbl-deva":"gbl-deva-in",gbm:"gbm-deva-in",gbn:"gbn-latn-ss",gbp:"gbp-latn-cf",gbq:"gbq-latn-cf",gbr:"gbr-latn-ng",gbs:"gbs-latn-bj",gbu:"gbu-latn-au",gbv:"gbv-latn-cf",gbw:"gbw-latn-au",gbx:"gbx-latn-bj",gby:"gby-latn-zz",gbz:"gbz-arab-ir",gcc:"gcc-latn-pg",gcd:"gcd-latn-au",gcf:"gcf-latn-gp",gcl:"gcl-latn-gd",gcn:"gcn-latn-pg",gcr:"gcr-latn-gf",gct:"gct-latn-ve",gd:"gd-latn-gb",gdb:"gdb-orya-in","gdb-telu":"gdb-telu-in",gdc:"gdc-latn-au",gdd:"gdd-latn-pg",gde:"gde-latn-zz",gdf:"gdf-latn-ng",gdg:"gdg-latn-ph",gdh:"gdh-latn-au",gdi:"gdi-latn-cf",gdj:"gdj-latn-au",gdk:"gdk-latn-td",gdl:"gdl-latn-et","gdl-ethi":"gdl-ethi-et",gdm:"gdm-latn-td",gdn:"gdn-latn-zz",gdo:"gdo-cyrl-ru",gdq:"gdq-latn-ye",gdr:"gdr-latn-zz",gdt:"gdt-latn-au",gdu:"gdu-latn-ng",gdx:"gdx-deva-in",gea:"gea-latn-ng",geb:"geb-latn-zz",gec:"gec-latn-lr",ged:"ged-latn-ng",gef:"gef-latn-id",geg:"geg-latn-ng",geh:"geh-latn-ca",gei:"gei-latn-id",gej:"gej-latn-zz",gek:"gek-latn-ng",gel:"gel-latn-zz",geq:"geq-latn-cf",ges:"ges-latn-id",gev:"gev-latn-ga",gew:"gew-latn-ng",gex:"gex-latn-so",gey:"gey-latn-cd",gez:"gez-ethi-et",gfk:"gfk-latn-zz",gga:"gga-latn-sb",ggb:"ggb-latn-lr",ggd:"ggd-latn-au",gge:"gge-latn-au",ggg:"ggg-arab-pk",ggk:"ggk-latn-au",ggl:"ggl-latn-pg",ggn:"ggn-deva-np",ggt:"ggt-latn-pg",ggu:"ggu-latn-ci",ggw:"ggw-latn-pg",gha:"gha-arab-ly","gha-latn":"gha-latn-ly","gha-tfng":"gha-tfng-ly",ghc:"ghc-latn-gb",ghe:"ghe-deva-np",ghk:"ghk-latn-mm",ghn:"ghn-latn-sb",ghr:"ghr-arab-pk",ghs:"ghs-latn-zz",ght:"ght-tibt-np",gia:"gia-latn-au",gib:"gib-latn-ng",gic:"gic-latn-za",gid:"gid-latn-cm",gie:"gie-latn-ci",gig:"gig-arab-pk",gih:"gih-latn-au",gil:"gil-latn-ki",gim:"gim-latn-zz",gin:"gin-cyrl-ru",gip:"gip-latn-pg",giq:"giq-latn-vn",gir:"gir-latn-vn",gis:"gis-latn-cm",git:"git-latn-ca",gix:"gix-latn-cd",giy:"giy-latn-au",giz:"giz-latn-cm",gjk:"gjk-arab-pk",gjm:"gjm-latn-au",gjn:"gjn-latn-zz",gjr:"gjr-latn-au",gju:"gju-arab-pk",gka:"gka-latn-pg",gkd:"gkd-latn-pg",gke:"gke-latn-cm",gkn:"gkn-latn-zz",gko:"gko-latn-au",gkp:"gkp-latn-zz",gku:"gku-latn-za",gl:"gl-latn-es",glb:"glb-latn-ng",glc:"glc-latn-td",gld:"gld-cyrl-ru",glh:"glh-arab-af",glj:"glj-latn-td",glk:"glk-arab-ir",gll:"gll-latn-au",glo:"glo-latn-ng",glr:"glr-latn-lr",glu:"glu-latn-td",glw:"glw-latn-ng",gma:"gma-latn-au",gmb:"gmb-latn-sb",gmd:"gmd-latn-ng",gmg:"gmg-latn-pg",gmh:"gmh-latn-de",gmm:"gmm-latn-zz",gmn:"gmn-latn-cm",gmr:"gmr-latn-au",gmu:"gmu-latn-pg",gmv:"gmv-ethi-zz",gmx:"gmx-latn-tz",gmy:"gmy-linb-gr",gmz:"gmz-latn-ng",gn:"gn-latn-py",gna:"gna-latn-bf",gnb:"gnb-latn-in",gnc:"gnc-latn-es",gnd:"gnd-latn-zz",gne:"gne-latn-ng",gng:"gng-latn-zz",gnh:"gnh-latn-ng",gni:"gni-latn-au",gnj:"gnj-latn-ci",gnk:"gnk-latn-bw",gnl:"gnl-latn-au",gnm:"gnm-latn-pg",gnn:"gnn-latn-au",gnq:"gnq-latn-my",gnr:"gnr-latn-au",gnt:"gnt-latn-pg",gnu:"gnu-latn-pg",gnw:"gnw-latn-bo",gnz:"gnz-latn-cf",goa:"goa-latn-ci",gob:"gob-latn-co",goc:"goc-latn-pg",god:"god-latn-zz",goe:"goe-tibt-bt",gof:"gof-ethi-zz",gog:"gog-latn-tz",goh:"goh-latn-de",goi:"goi-latn-zz",gok:"gok-deva-in",gol:"gol-latn-lr",gom:"gom-deva-in",gon:"gon-telu-in",goo:"goo-latn-fj",gop:"gop-latn-id",goq:"goq-latn-id",gor:"gor-latn-id",gos:"gos-latn-nl",got:"got-goth-ua",gou:"gou-latn-cm",gov:"gov-latn-ci",gow:"gow-latn-tz",gox:"gox-latn-cd",goy:"goy-latn-td",gpa:"gpa-latn-ng",gpe:"gpe-latn-gh",gpn:"gpn-latn-pg",gqa:"gqa-latn-ng",gqn:"gqn-latn-br",gqr:"gqr-latn-td",gra:"gra-deva-in","gra-gujr":"gra-gujr-in",grb:"grb-latn-zz",grc:"grc-cprt-cy","grc-linb":"grc-linb-gr",grd:"grd-latn-ng",grg:"grg-latn-pg",grh:"grh-latn-ng",gri:"gri-latn-sb",grj:"grj-latn-lr",grm:"grm-latn-my",grq:"grq-latn-pg",grs:"grs-latn-id",grt:"grt-beng-in",gru:"gru-ethi-et","gru-latn":"gru-latn-et",grv:"grv-latn-lr",grw:"grw-latn-zz",grx:"grx-latn-pg",gry:"gry-latn-lr",grz:"grz-latn-pg",gsl:"gsl-latn-sn",gsn:"gsn-latn-pg",gso:"gso-latn-cf",gsp:"gsp-latn-pg",gsw:"gsw-latn-ch",gta:"gta-latn-br",gtu:"gtu-latn-au",gu:"gu-gujr-in",gua:"gua-latn-ng",gub:"gub-latn-br",guc:"guc-latn-co",gud:"gud-latn-zz",gue:"gue-latn-au",guf:"guf-latn-au",guh:"guh-latn-co",gui:"gui-latn-bo",guk:"guk-latn-et","guk-ethi":"guk-ethi-et",gul:"gul-latn-us",gum:"gum-latn-co",gun:"gun-latn-br",guo:"guo-latn-co",gup:"gup-latn-au",guq:"guq-latn-py",gur:"gur-latn-gh",gut:"gut-latn-cr",guu:"guu-latn-ve",guw:"guw-latn-zz",gux:"gux-latn-zz",guz:"guz-latn-ke",gv:"gv-latn-im",gva:"gva-latn-py",gvc:"gvc-latn-br",gve:"gve-latn-pg",gvf:"gvf-latn-zz",gvj:"gvj-latn-br",gvl:"gvl-latn-td",gvm:"gvm-latn-ng",gvn:"gvn-latn-au",gvo:"gvo-latn-br",gvp:"gvp-latn-br",gvr:"gvr-deva-np",gvs:"gvs-latn-zz",gvy:"gvy-latn-au",gwa:"gwa-latn-ci",gwb:"gwb-latn-ng",gwc:"gwc-arab-zz",gwd:"gwd-latn-et",gwe:"gwe-latn-tz",gwf:"gwf-arab-pk",gwg:"gwg-latn-ng",gwi:"gwi-latn-ca",gwj:"gwj-latn-bw",gwm:"gwm-latn-au",gwn:"gwn-latn-ng",gwr:"gwr-latn-ug",gwt:"gwt-arab-zz",gwu:"gwu-latn-au",gww:"gww-latn-au",gwx:"gwx-latn-gh",gxx:"gxx-latn-ci",gyb:"gyb-latn-pg",gyd:"gyd-latn-au",gye:"gye-latn-ng",gyf:"gyf-latn-au",gyg:"gyg-latn-cf",gyi:"gyi-latn-zz",gyl:"gyl-latn-et","gyl-ethi":"gyl-ethi-et",gym:"gym-latn-pa",gyn:"gyn-latn-gy",gyo:"gyo-deva-np",gyr:"gyr-latn-bo",gyy:"gyy-latn-au",gyz:"gyz-latn-ng",gza:"gza-latn-sd",gzi:"gzi-arab-ir",gzn:"gzn-latn-id",ha:"ha-latn-ng","ha-cm":"ha-arab-cm","ha-sd":"ha-arab-sd",haa:"haa-latn-us",hac:"hac-arab-ir",had:"had-latn-id",hae:"hae-latn-et",hag:"hag-latn-zz",hah:"hah-latn-pg",hai:"hai-latn-ca",haj:"haj-latn-in","haj-beng":"haj-beng-in",hak:"hak-hans-cn",hal:"hal-latn-vn",ham:"ham-latn-zz",han:"han-latn-tz",hao:"hao-latn-pg",hap:"hap-latn-id",haq:"haq-latn-tz",har:"har-ethi-et","har-arab":"har-arab-et","har-latn":"har-latn-et",has:"has-latn-ca",hav:"hav-latn-cd",haw:"haw-latn-us",hax:"hax-latn-ca",hay:"hay-latn-tz",haz:"haz-arab-af",hba:"hba-latn-cd",hbb:"hbb-latn-zz",hbn:"hbn-latn-sd",hbo:"hbo-hebr-il",hbu:"hbu-latn-tl",hch:"hch-latn-mx",hdy:"hdy-ethi-zz",he:"he-hebr-il",hed:"hed-latn-td",heg:"heg-latn-id",heh:"heh-latn-tz",hei:"hei-latn-ca",hem:"hem-latn-cd",hgm:"hgm-latn-na",hgw:"hgw-latn-pg",hhi:"hhi-latn-pg",hhr:"hhr-latn-sn",hhy:"hhy-latn-zz",hi:"hi-deva-in","hi-latn":"hi-latn-in",hia:"hia-latn-zz",hib:"hib-latn-pe",hid:"hid-latn-us",hif:"hif-latn-fj",hig:"hig-latn-zz",hih:"hih-latn-zz",hii:"hii-takr-in","hii-deva":"hii-deva-in",hij:"hij-latn-cm",hik:"hik-latn-id",hil:"hil-latn-ph",hio:"hio-latn-bw",hir:"hir-latn-br",hit:"hit-xsux-tr",hiw:"hiw-latn-vu",hix:"hix-latn-br",hji:"hji-latn-id",hka:"hka-latn-tz",hke:"hke-latn-cd",hkh:"hkh-arab-in","hkh-deva":"hkh-deva-in","hkh-latn":"hkh-latn-in",hkk:"hkk-latn-pg",hla:"hla-latn-zz",hlb:"hlb-deva-in",hld:"hld-latn-vn",hlt:"hlt-latn-mm",hlu:"hlu-hluw-tr",hma:"hma-latn-cn",hmb:"hmb-latn-ml",hmd:"hmd-plrd-cn",hmf:"hmf-latn-vn",hmj:"hmj-bopo-cn",hmm:"hmm-latn-cn",hmn:"hmn-latn-cn","hmn-bopo":"hmn-bopo-cn","hmn-hmng":"hmn-hmng-cn",hmp:"hmp-latn-cn",hmq:"hmq-bopo-cn",hmr:"hmr-latn-in",hms:"hms-latn-cn",hmt:"hmt-latn-zz",hmu:"hmu-latn-id",hmv:"hmv-latn-vn",hmw:"hmw-latn-cn",hmy:"hmy-latn-cn",hmz:"hmz-latn-cn","hmz-plrd":"hmz-plrd-cn",hna:"hna-latn-cm",hnd:"hnd-arab-pk",hne:"hne-deva-in",hng:"hng-latn-ao",hnh:"hnh-latn-bw",hni:"hni-latn-cn",hnj:"hnj-hmnp-us","hnj-au":"hnj-laoo-au","hnj-cn":"hnj-laoo-cn","hnj-fr":"hnj-laoo-fr","hnj-gf":"hnj-laoo-gf","hnj-la":"hnj-laoo-la","hnj-laoo":"hnj-laoo-la","hnj-mm":"hnj-laoo-mm","hnj-sr":"hnj-laoo-sr","hnj-th":"hnj-laoo-th","hnj-us":"hnj-hmnp-us","hnj-vn":"hnj-laoo-vn",hnn:"hnn-latn-ph",hno:"hno-arab-pk",hns:"hns-latn-sr",ho:"ho-latn-pg",hoa:"hoa-latn-sb",hob:"hob-latn-pg",hoc:"hoc-deva-in",hod:"hod-latn-ng",hoe:"hoe-latn-ng",hoh:"hoh-arab-om",hoi:"hoi-latn-us",hoj:"hoj-deva-in",hol:"hol-latn-ao",hom:"hom-latn-ss",hoo:"hoo-latn-cd",hop:"hop-latn-us",hor:"hor-latn-td",hot:"hot-latn-zz",hov:"hov-latn-id",how:"how-hani-cn",hoy:"hoy-deva-in",hpo:"hpo-mymr-mm",hr:"hr-latn-hr",hra:"hra-latn-in",hrc:"hrc-latn-pg",hre:"hre-latn-vn",hrk:"hrk-latn-id",hrm:"hrm-latn-cn","hrm-hmng":"hrm-hmng-cn",hro:"hro-latn-vn",hrp:"hrp-latn-au",hrt:"hrt-syrc-tr",hru:"hru-latn-in",hrw:"hrw-latn-pg",hrx:"hrx-latn-br",hrz:"hrz-arab-ir",hsb:"hsb-latn-de",hsn:"hsn-hans-cn",hss:"hss-arab-om",ht:"ht-latn-ht",hti:"hti-latn-id",hto:"hto-latn-co",hts:"hts-latn-tz",htu:"htu-latn-id",htx:"htx-xsux-tr",hu:"hu-latn-hu",hub:"hub-latn-pe",huc:"huc-latn-bw",hud:"hud-latn-id",hue:"hue-latn-mx",huf:"huf-latn-pg",hug:"hug-latn-pe",huh:"huh-latn-cl",hui:"hui-latn-zz",huk:"huk-latn-id",hul:"hul-latn-pg",hum:"hum-latn-cd",hup:"hup-latn-us",hur:"hur-latn-ca",hus:"hus-latn-mx",hut:"hut-deva-np","hut-tibt":"hut-tibt-np",huu:"huu-latn-pe",huv:"huv-latn-mx",huw:"huw-latn-id",hux:"hux-latn-pe",huy:"huy-hebr-il",huz:"huz-cyrl-ru",hvc:"hvc-latn-ht",hve:"hve-latn-mx",hvk:"hvk-latn-nc",hvn:"hvn-latn-id",hvv:"hvv-latn-mx",hwa:"hwa-latn-ci",hwc:"hwc-latn-us",hwo:"hwo-latn-ng",hy:"hy-armn-am",hya:"hya-latn-cm",hyw:"hyw-armn-am",hz:"hz-latn-na",ia:"ia-latn-001",iai:"iai-latn-nc",ian:"ian-latn-zz",iar:"iar-latn-zz",iba:"iba-latn-my",ibb:"ibb-latn-ng",ibd:"ibd-latn-au",ibe:"ibe-latn-ng",ibg:"ibg-latn-ph",ibh:"ibh-latn-vn",ibl:"ibl-latn-ph",ibm:"ibm-latn-ng",ibn:"ibn-latn-ng",ibr:"ibr-latn-ng",ibu:"ibu-latn-id",iby:"iby-latn-zz",ica:"ica-latn-zz",ich:"ich-latn-zz",icr:"icr-latn-co",id:"id-latn-id",ida:"ida-latn-ke",idb:"idb-latn-in",idc:"idc-latn-ng",idd:"idd-latn-zz",ide:"ide-latn-ng",idi:"idi-latn-zz",idr:"idr-latn-ss",ids:"ids-latn-ng",idt:"idt-latn-tl",idu:"idu-latn-zz",ie:"ie-latn-001",ifa:"ifa-latn-ph",ifb:"ifb-latn-ph",ife:"ife-latn-tg",iff:"iff-latn-vu",ifk:"ifk-latn-ph",ifm:"ifm-latn-cg",ifu:"ifu-latn-ph",ify:"ify-latn-ph",ig:"ig-latn-ng",igb:"igb-latn-zz",ige:"ige-latn-zz",igg:"igg-latn-pg",igl:"igl-latn-ng",igm:"igm-latn-pg",ign:"ign-latn-bo",igo:"igo-latn-pg",igs:"igs-latn-001","igs-grek":"igs-grek-001",igw:"igw-latn-ng",ihb:"ihb-latn-id",ihi:"ihi-latn-ng",ihp:"ihp-latn-id",ihw:"ihw-latn-au",ii:"ii-yiii-cn",iin:"iin-latn-au",ijc:"ijc-latn-ng",ije:"ije-latn-ng",ijj:"ijj-latn-zz",ijn:"ijn-latn-ng",ijs:"ijs-latn-ng",ik:"ik-latn-us",iki:"iki-latn-ng",ikk:"ikk-latn-zz",ikl:"ikl-latn-ng",iko:"iko-latn-ng",ikp:"ikp-latn-ng",ikr:"ikr-latn-au",ikt:"ikt-latn-ca","ikt-cans":"ikt-cans-ca",ikv:"ikv-latn-ng",ikw:"ikw-latn-zz",ikx:"ikx-latn-zz",ikz:"ikz-latn-tz",ila:"ila-latn-id",ilb:"ilb-latn-zm",ilg:"ilg-latn-au",ili:"ili-latn-cn","ili-arab":"ili-arab-cn","ili-cyrl":"ili-cyrl-kz",ilk:"ilk-latn-ph",ilm:"ilm-latn-my",ilo:"ilo-latn-ph",ilp:"ilp-latn-ph",ilu:"ilu-latn-id",ilv:"ilv-latn-ng",imi:"imi-latn-pg",iml:"iml-latn-us",imn:"imn-latn-pg",imo:"imo-latn-zz",imr:"imr-latn-id",ims:"ims-latn-it",imt:"imt-latn-ss",imy:"imy-lyci-tr",in:"in-latn-id",inb:"inb-latn-co",ing:"ing-latn-us",inh:"inh-cyrl-ru",inj:"inj-latn-co",inn:"inn-latn-ph",ino:"ino-latn-pg",inp:"inp-latn-pe",int:"int-mymr-mm",io:"io-latn-001",ior:"ior-ethi-et",iou:"iou-latn-zz",iow:"iow-latn-us",ipi:"ipi-latn-pg",ipo:"ipo-latn-pg",iqu:"iqu-latn-pe",iqw:"iqw-latn-ng",ire:"ire-latn-id",irh:"irh-latn-id",iri:"iri-latn-zz",irk:"irk-latn-tz",irn:"irn-latn-br",iru:"iru-taml-in","iru-mlym":"iru-mlym-in",irx:"irx-latn-id",iry:"iry-latn-ph",is:"is-latn-is",isa:"isa-latn-pg",isc:"isc-latn-pe",isd:"isd-latn-ph",ish:"ish-latn-ng",isi:"isi-latn-ng",isk:"isk-arab-af","isk-cyrl":"isk-cyrl-tj",ism:"ism-latn-id",isn:"isn-latn-tz",iso:"iso-latn-ng",ist:"ist-latn-hr",isu:"isu-latn-cm",it:"it-latn-it",itb:"itb-latn-ph",itd:"itd-latn-id",ite:"ite-latn-bo",iti:"iti-latn-ph",itk:"itk-hebr-it",itl:"itl-cyrl-ru",itm:"itm-latn-ng",ito:"ito-latn-bo",itr:"itr-latn-pg",its:"its-latn-ng",itt:"itt-latn-ph",itv:"itv-latn-ph",itw:"itw-latn-ng",itx:"itx-latn-id",ity:"ity-latn-ph",itz:"itz-latn-gt",iu:"iu-cans-ca",ium:"ium-latn-cn","ium-hani":"ium-hani-cn","ium-laoo":"ium-laoo-la","ium-thai":"ium-thai-th",ivb:"ivb-latn-ph",ivv:"ivv-latn-ph",iw:"iw-hebr-il",iwk:"iwk-latn-ph",iwm:"iwm-latn-zz",iwo:"iwo-latn-id",iws:"iws-latn-zz",ixc:"ixc-latn-mx",ixl:"ixl-latn-gt",iya:"iya-latn-ng",iyo:"iyo-latn-cm",iyx:"iyx-latn-cg",izh:"izh-latn-ru",izi:"izi-latn-zz",izr:"izr-latn-ng",izz:"izz-latn-ng",ja:"ja-jpan-jp",jaa:"jaa-latn-br",jab:"jab-latn-zz",jac:"jac-latn-gt",jad:"jad-arab-gn",jae:"jae-latn-pg",jaf:"jaf-latn-ng",jah:"jah-latn-my",jaj:"jaj-latn-sb",jak:"jak-latn-my",jal:"jal-latn-id",jam:"jam-latn-jm",jan:"jan-latn-au",jao:"jao-latn-au",jaq:"jaq-latn-id",jar:"jar-latn-zz",jas:"jas-latn-nc",jat:"jat-arab-af",jau:"jau-latn-id",jax:"jax-latn-id",jay:"jay-latn-au",jaz:"jaz-latn-nc",jbe:"jbe-hebr-il",jbi:"jbi-latn-au",jbj:"jbj-latn-id",jbk:"jbk-latn-pg",jbm:"jbm-latn-ng",jbn:"jbn-arab-ly",jbo:"jbo-latn-001",jbr:"jbr-latn-id",jbt:"jbt-latn-br",jbu:"jbu-latn-zz",jbw:"jbw-latn-au",jct:"jct-cyrl-ua","jct-latn":"jct-latn-ua",jda:"jda-tibt-in",jdg:"jdg-arab-pk",jdt:"jdt-cyrl-ru","jdt-hebr":"jdt-hebr-ru","jdt-latn":"jdt-latn-az",jeb:"jeb-latn-pe",jee:"jee-deva-np",jeh:"jeh-latn-vn","jeh-laoo":"jeh-laoo-la",jei:"jei-latn-id",jek:"jek-latn-ci",jel:"jel-latn-id",jen:"jen-latn-zz",jer:"jer-latn-ng",jet:"jet-latn-pg",jeu:"jeu-latn-td",jgb:"jgb-latn-cd",jge:"jge-geor-ge","jge-hebr":"jge-hebr-il",jgk:"jgk-latn-zz",jgo:"jgo-latn-cm",jhi:"jhi-latn-my",ji:"ji-hebr-ua",jia:"jia-latn-cm",jib:"jib-latn-zz",jic:"jic-latn-hn",jid:"jid-latn-ng",jie:"jie-latn-ng",jig:"jig-latn-au",jil:"jil-latn-pg",jim:"jim-latn-cm",jit:"jit-latn-tz",jiu:"jiu-latn-cn",jiv:"jiv-latn-ec",jiy:"jiy-latn-cn",jje:"jje-hang-kr",jjr:"jjr-latn-ng",jka:"jka-latn-id",jkm:"jkm-mymr-mm","jkm-brai":"jkm-brai-mm","jkm-latn":"jkm-latn-mm",jko:"jko-latn-pg",jku:"jku-latn-ng",jle:"jle-latn-sd",jma:"jma-latn-pg",jmb:"jmb-latn-ng",jmc:"jmc-latn-tz",jmd:"jmd-latn-id",jmi:"jmi-latn-ng",jml:"jml-deva-np",jmn:"jmn-latn-mm",jmr:"jmr-latn-gh",jms:"jms-latn-ng",jmw:"jmw-latn-pg",jmx:"jmx-latn-mx",jna:"jna-takr-in",jnd:"jnd-arab-pk",jng:"jng-latn-au",jni:"jni-latn-ng",jnj:"jnj-latn-et","jnj-ethi":"jnj-ethi-et",jnl:"jnl-deva-in",jns:"jns-deva-in","jns-latn":"jns-latn-in","jns-takr":"jns-takr-in",job:"job-latn-cd",jod:"jod-latn-ci",jog:"jog-arab-pk",jor:"jor-latn-bo",jow:"jow-latn-ml",jpa:"jpa-hebr-ps",jpr:"jpr-hebr-il",jqr:"jqr-latn-pe",jra:"jra-latn-zz",jrr:"jrr-latn-ng",jrt:"jrt-latn-ng",jru:"jru-latn-ve",jua:"jua-latn-br",jub:"jub-latn-ng",jud:"jud-latn-ci",juh:"juh-latn-ng",jui:"jui-latn-au",juk:"juk-latn-ng",jul:"jul-deva-np",jum:"jum-latn-sd",jun:"jun-orya-in",juo:"juo-latn-ng",jup:"jup-latn-br",jur:"jur-latn-br",jut:"jut-latn-dk",juu:"juu-latn-ng",juw:"juw-latn-ng",juy:"juy-orya-in",jv:"jv-latn-id",jvd:"jvd-latn-id",jvn:"jvn-latn-sr",jw:"jw-latn-id",jwi:"jwi-latn-gh",jya:"jya-tibt-cn",jye:"jye-hebr-il",jyy:"jyy-latn-td",ka:"ka-geor-ge",kaa:"kaa-cyrl-uz",kab:"kab-latn-dz",kac:"kac-latn-mm",kad:"kad-latn-zz",kag:"kag-latn-my",kah:"kah-latn-cf",kai:"kai-latn-zz",kaj:"kaj-latn-ng",kak:"kak-latn-ph",kam:"kam-latn-ke",kao:"kao-latn-ml",kap:"kap-cyrl-ru",kaq:"kaq-latn-pe",kav:"kav-latn-br",kaw:"kaw-kawi-id",kax:"kax-latn-id",kay:"kay-latn-br",kba:"kba-latn-au",kbb:"kbb-latn-br",kbc:"kbc-latn-br",kbd:"kbd-cyrl-ru",kbe:"kbe-latn-au",kbh:"kbh-latn-co",kbi:"kbi-latn-id",kbj:"kbj-latn-cd",kbk:"kbk-latn-pg",kbl:"kbl-latn-td",kbm:"kbm-latn-zz",kbn:"kbn-latn-cf",kbo:"kbo-latn-ss",kbp:"kbp-latn-zz",kbq:"kbq-latn-zz",kbr:"kbr-latn-et","kbr-ethi":"kbr-ethi-et",kbs:"kbs-latn-ga",kbt:"kbt-latn-pg",kbu:"kbu-arab-pk",kbv:"kbv-latn-id",kbw:"kbw-latn-pg",kbx:"kbx-latn-zz",kby:"kby-arab-ne",kbz:"kbz-latn-ng",kca:"kca-cyrl-ru",kcb:"kcb-latn-pg",kcc:"kcc-latn-ng",kcd:"kcd-latn-id",kce:"kce-latn-ng",kcf:"kcf-latn-ng",kcg:"kcg-latn-ng",kch:"kch-latn-ng",kci:"kci-latn-ng",kcj:"kcj-latn-gw",kck:"kck-latn-zw",kcl:"kcl-latn-zz",kcm:"kcm-latn-cf",kcn:"kcn-latn-ug",kco:"kco-latn-pg",kcp:"kcp-latn-sd",kcq:"kcq-latn-ng",kcs:"kcs-latn-ng",kct:"kct-latn-zz",kcu:"kcu-latn-tz",kcv:"kcv-latn-cd",kcw:"kcw-latn-cd",kcz:"kcz-latn-tz",kda:"kda-latn-au",kdc:"kdc-latn-tz",kdd:"kdd-latn-au",kde:"kde-latn-tz",kdf:"kdf-latn-pg",kdg:"kdg-latn-cd",kdh:"kdh-latn-tg",kdi:"kdi-latn-ug",kdj:"kdj-latn-ug",kdk:"kdk-latn-nc",kdl:"kdl-latn-zz",kdm:"kdm-latn-ng",kdn:"kdn-latn-zw",kdp:"kdp-latn-ng",kdq:"kdq-beng-in",kdr:"kdr-latn-lt","kdr-cyrl":"kdr-cyrl-ua",kdt:"kdt-thai-th",kdw:"kdw-latn-id",kdx:"kdx-latn-ng",kdy:"kdy-latn-id",kdz:"kdz-latn-cm",kea:"kea-latn-cv",keb:"keb-latn-ga",kec:"kec-latn-sd",ked:"ked-latn-tz",kee:"kee-latn-us",kef:"kef-latn-tg",keg:"keg-latn-sd",keh:"keh-latn-pg",kei:"kei-latn-id",kek:"kek-latn-gt",kel:"kel-latn-cd",kem:"kem-latn-tl",ken:"ken-latn-cm",keo:"keo-latn-ug",ker:"ker-latn-td",kes:"kes-latn-ng",ket:"ket-cyrl-ru",keu:"keu-latn-tg",kew:"kew-latn-pg",kex:"kex-deva-in","kex-gujr":"kex-gujr-in",key:"key-telu-in",kez:"kez-latn-zz",kfa:"kfa-knda-in",kfb:"kfb-deva-in",kfc:"kfc-telu-in",kfd:"kfd-knda-in",kfe:"kfe-taml-in",kff:"kff-latn-in","kff-deva":"kff-deva-in","kff-orya":"kff-orya-in","kff-telu":"kff-telu-in",kfh:"kfh-mlym-in",kfi:"kfi-taml-in","kfi-knda":"kfi-knda-in",kfk:"kfk-deva-in","kfk-takr":"kfk-takr-in",kfl:"kfl-latn-cm",kfm:"kfm-arab-ir",kfn:"kfn-latn-cm",kfo:"kfo-latn-ci",kfp:"kfp-deva-in",kfq:"kfq-deva-in",kfr:"kfr-deva-in",kfs:"kfs-deva-in",kfv:"kfv-latn-in",kfw:"kfw-latn-in",kfx:"kfx-deva-in","kfx-takr":"kfx-takr-in",kfy:"kfy-deva-in",kfz:"kfz-latn-bf",kg:"kg-latn-cd",kga:"kga-latn-ci",kgb:"kgb-latn-id",kge:"kge-latn-id",kgf:"kgf-latn-zz",kgj:"kgj-deva-np",kgk:"kgk-latn-br",kgl:"kgl-latn-au",kgm:"kgm-latn-br",kgo:"kgo-latn-sd",kgp:"kgp-latn-br",kgq:"kgq-latn-id",kgr:"kgr-latn-id",kgs:"kgs-latn-au",kgt:"kgt-latn-ng",kgu:"kgu-latn-pg",kgv:"kgv-latn-id",kgw:"kgw-latn-id",kgx:"kgx-latn-id",kgy:"kgy-deva-np",kha:"kha-latn-in",khb:"khb-talu-cn",khc:"khc-latn-id",khd:"khd-latn-id",khe:"khe-latn-id",khf:"khf-thai-la",khg:"khg-tibt-cn",khh:"khh-latn-id",khj:"khj-latn-ng",khl:"khl-latn-pg",khn:"khn-deva-in",khp:"khp-latn-id",khq:"khq-latn-ml",khr:"khr-latn-in","khr-deva":"khr-deva-in",khs:"khs-latn-zz",kht:"kht-mymr-in",khu:"khu-latn-ao",khv:"khv-cyrl-ru",khw:"khw-arab-pk",khx:"khx-latn-cd",khy:"khy-latn-cd",khz:"khz-latn-zz",ki:"ki-latn-ke",kia:"kia-latn-td",kib:"kib-latn-sd",kic:"kic-latn-us",kid:"kid-latn-cm",kie:"kie-latn-td",kif:"kif-deva-np",kig:"kig-latn-id",kih:"kih-latn-pg",kij:"kij-latn-zz",kil:"kil-latn-ng",kim:"kim-cyrl-ru",kio:"kio-latn-us",kip:"kip-deva-np",kiq:"kiq-latn-id",kis:"kis-latn-pg",kit:"kit-latn-pg",kiu:"kiu-latn-tr",kiv:"kiv-latn-tz",kiw:"kiw-latn-zz",kix:"kix-latn-in",kiy:"kiy-latn-id",kiz:"kiz-latn-tz",kj:"kj-latn-na",kja:"kja-latn-id",kjb:"kjb-latn-gt",kjc:"kjc-latn-id",kjd:"kjd-latn-zz",kje:"kje-latn-id",kjg:"kjg-laoo-la",kjh:"kjh-cyrl-ru",kji:"kji-latn-sb",kjj:"kjj-latn-az",kjk:"kjk-latn-id",kjl:"kjl-deva-np",kjm:"kjm-latn-vn",kjn:"kjn-latn-au",kjo:"kjo-deva-in",kjp:"kjp-mymr-mm","kjp-thai":"kjp-thai-th",kjq:"kjq-latn-us",kjr:"kjr-latn-id",kjs:"kjs-latn-zz",kjt:"kjt-thai-th",kju:"kju-latn-us",kjx:"kjx-latn-pg",kjy:"kjy-latn-zz",kk:"kk-cyrl-kz","kk-af":"kk-arab-af","kk-arab":"kk-arab-cn","kk-cn":"kk-arab-cn","kk-ir":"kk-arab-ir","kk-mn":"kk-arab-mn",kka:"kka-latn-ng",kkb:"kkb-latn-id",kkc:"kkc-latn-zz",kkd:"kkd-latn-ng",kke:"kke-latn-gn","kke-arab":"kke-arab-gn",kkf:"kkf-tibt-in",kkg:"kkg-latn-ph",kkh:"kkh-lana-mm",kki:"kki-latn-tz",kkj:"kkj-latn-cm",kkk:"kkk-latn-sb",kkl:"kkl-latn-id",kkm:"kkm-latn-ng",kko:"kko-latn-sd",kkp:"kkp-latn-au",kkq:"kkq-latn-cd",kkr:"kkr-latn-ng",kks:"kks-latn-ng",kkt:"kkt-deva-np",kku:"kku-latn-ng",kkv:"kkv-latn-id",kkw:"kkw-latn-cg",kkx:"kkx-latn-id",kky:"kky-latn-au",kkz:"kkz-latn-ca",kl:"kl-latn-gl",kla:"kla-latn-us",klb:"klb-latn-mx",klc:"klc-latn-cm",kld:"kld-latn-au",kle:"kle-deva-np",klf:"klf-latn-td",klg:"klg-latn-ph",klh:"klh-latn-pg",kli:"kli-latn-id",klj:"klj-arab-ir",klk:"klk-latn-ng",kll:"kll-latn-ph",klm:"klm-latn-pg",kln:"kln-latn-ke",klo:"klo-latn-ng",klp:"klp-latn-pg",klq:"klq-latn-zz",klr:"klr-deva-np",kls:"kls-latn-pk","kls-arab":"kls-arab-pk",klt:"klt-latn-zz",klu:"klu-latn-lr",klv:"klv-latn-vu",klw:"klw-latn-id",klx:"klx-latn-zz",kly:"kly-latn-id",klz:"klz-latn-id",km:"km-khmr-kh",kma:"kma-latn-gh",kmb:"kmb-latn-ao",kmc:"kmc-latn-cn","kmc-hani":"kmc-hani-cn",kmd:"kmd-latn-ph",kme:"kme-latn-cm",kmf:"kmf-latn-pg",kmg:"kmg-latn-pg",kmh:"kmh-latn-zz",kmi:"kmi-latn-ng",kmj:"kmj-deva-in",kmk:"kmk-latn-ph",kml:"kml-latn-ph",kmm:"kmm-latn-in",kmn:"kmn-latn-pg",kmo:"kmo-latn-zz",kmp:"kmp-latn-cm",kmq:"kmq-latn-et",kms:"kms-latn-zz",kmt:"kmt-latn-id",kmu:"kmu-latn-zz",kmv:"kmv-latn-br",kmw:"kmw-latn-zz",kmx:"kmx-latn-pg",kmy:"kmy-latn-ng",kmz:"kmz-arab-ir",kn:"kn-knda-in",kna:"kna-latn-ng",knb:"knb-latn-ph",knd:"knd-latn-id",kne:"kne-latn-ph",knf:"knf-latn-gw",kni:"kni-latn-ng",knj:"knj-latn-gt",knk:"knk-latn-sl","knk-arab":"knk-arab-sl",knl:"knl-latn-id",knm:"knm-latn-br",kno:"kno-latn-sl",knp:"knp-latn-zz",knq:"knq-latn-my",knr:"knr-latn-pg",kns:"kns-latn-my","kns-thai":"kns-thai-th",knt:"knt-latn-br",knu:"knu-latn-gn",knv:"knv-latn-pg",knw:"knw-latn-na",knx:"knx-latn-id",kny:"kny-latn-cd",knz:"knz-latn-bf",ko:"ko-kore-kr",koa:"koa-latn-pg",koc:"koc-latn-ng",kod:"kod-latn-id",koe:"koe-latn-ss",kof:"kof-latn-ng",kog:"kog-latn-co",koh:"koh-latn-cg",koi:"koi-cyrl-ru",kok:"kok-deva-in",kol:"kol-latn-zz",koo:"koo-latn-ug",kop:"kop-latn-pg",koq:"koq-latn-ga",kos:"kos-latn-fm",kot:"kot-latn-cm",kou:"kou-latn-td",kov:"kov-latn-ng",kow:"kow-latn-ng",koy:"koy-latn-us",koz:"koz-latn-zz",kpa:"kpa-latn-ng",kpc:"kpc-latn-co",kpd:"kpd-latn-id",kpe:"kpe-latn-lr",kpf:"kpf-latn-zz",kpg:"kpg-latn-fm",kph:"kph-latn-gh",kpi:"kpi-latn-id",kpj:"kpj-latn-br",kpk:"kpk-latn-ng",kpl:"kpl-latn-cd",kpm:"kpm-latn-vn",kpn:"kpn-latn-br",kpo:"kpo-latn-zz",kpq:"kpq-latn-id",kpr:"kpr-latn-zz",kps:"kps-latn-id",kpt:"kpt-cyrl-ru",kpu:"kpu-latn-id",kpw:"kpw-latn-pg",kpx:"kpx-latn-zz",kpy:"kpy-cyrl-ru",kpz:"kpz-latn-ug",kqa:"kqa-latn-pg",kqb:"kqb-latn-zz",kqc:"kqc-latn-pg",kqd:"kqd-syrc-iq",kqe:"kqe-latn-ph",kqf:"kqf-latn-zz",kqg:"kqg-latn-bf",kqh:"kqh-latn-tz",kqi:"kqi-latn-pg",kqj:"kqj-latn-pg",kqk:"kqk-latn-bj",kql:"kql-latn-pg",kqm:"kqm-latn-ci",kqn:"kqn-latn-zm",kqo:"kqo-latn-lr",kqp:"kqp-latn-td",kqq:"kqq-latn-br",kqr:"kqr-latn-my",kqs:"kqs-latn-zz",kqt:"kqt-latn-my",kqu:"kqu-latn-za",kqv:"kqv-latn-id",kqw:"kqw-latn-pg",kqx:"kqx-latn-cm",kqy:"kqy-ethi-zz",kqz:"kqz-latn-za",kr:"kr-latn-zz",kra:"kra-deva-np",krb:"krb-latn-us",krc:"krc-cyrl-ru",krd:"krd-latn-tl",kre:"kre-latn-br",krf:"krf-latn-vu",krh:"krh-latn-ng",kri:"kri-latn-sl",krj:"krj-latn-ph",krk:"krk-cyrl-ru",krl:"krl-latn-ru",krn:"krn-latn-lr",krp:"krp-latn-ng",krr:"krr-khmr-kh",krs:"krs-latn-zz",krt:"krt-latn-ne",kru:"kru-deva-in",krv:"krv-khmr-kh",krw:"krw-latn-lr",krx:"krx-latn-sn",kry:"kry-latn-az",krz:"krz-latn-id",ks:"ks-arab-in",ksa:"ksa-latn-ng",ksb:"ksb-latn-tz",ksc:"ksc-latn-ph",ksd:"ksd-latn-zz",kse:"kse-latn-pg",ksf:"ksf-latn-cm",ksg:"ksg-latn-sb",ksh:"ksh-latn-de",ksi:"ksi-latn-pg",ksj:"ksj-latn-zz",ksk:"ksk-latn-us",ksl:"ksl-latn-pg",ksm:"ksm-latn-ng",ksn:"ksn-latn-ph",kso:"kso-latn-ng",ksp:"ksp-latn-cf",ksq:"ksq-latn-ng",ksr:"ksr-latn-zz",kss:"kss-latn-lr",kst:"kst-latn-bf",ksu:"ksu-mymr-in",ksv:"ksv-latn-cd",ksw:"ksw-mymr-mm","ksw-latn":"ksw-latn-mm",ksx:"ksx-latn-id",ksz:"ksz-deva-in",kta:"kta-latn-vn",ktb:"ktb-ethi-zz",ktc:"ktc-latn-ng",ktd:"ktd-latn-au",ktf:"ktf-latn-cd",ktg:"ktg-latn-au",kth:"kth-latn-td",kti:"kti-latn-id",ktj:"ktj-latn-ci",ktk:"ktk-latn-pg",ktl:"ktl-arab-ir",ktm:"ktm-latn-zz",ktn:"ktn-latn-br",kto:"kto-latn-zz",ktp:"ktp-plrd-cn",ktq:"ktq-latn-ph",ktr:"ktr-latn-my",kts:"kts-latn-id",ktt:"ktt-latn-id",ktu:"ktu-latn-cd",ktv:"ktv-latn-vn",ktw:"ktw-latn-us",ktx:"ktx-latn-br",kty:"kty-latn-cd",ktz:"ktz-latn-na",ku:"ku-latn-tr","ku-arab":"ku-arab-iq","ku-lb":"ku-arab-lb","ku-yezi":"ku-yezi-ge",kub:"kub-latn-zz",kuc:"kuc-latn-id",kud:"kud-latn-zz",kue:"kue-latn-zz",kuf:"kuf-laoo-la",kug:"kug-latn-ng",kuh:"kuh-latn-ng",kui:"kui-latn-br",kuj:"kuj-latn-zz",kuk:"kuk-latn-id",kul:"kul-latn-ng",kum:"kum-cyrl-ru",kun:"kun-latn-zz",kuo:"kuo-latn-pg",kup:"kup-latn-zz",kuq:"kuq-latn-br",kus:"kus-latn-zz",kut:"kut-latn-ca",kuu:"kuu-latn-us",kuv:"kuv-latn-id",kuw:"kuw-latn-cf",kux:"kux-latn-au",kuy:"kuy-latn-au",kuz:"kuz-latn-cl",kv:"kv-cyrl-ru",kva:"kva-cyrl-ru",kvb:"kvb-latn-id",kvc:"kvc-latn-pg",kvd:"kvd-latn-id",kve:"kve-latn-my",kvf:"kvf-latn-td",kvg:"kvg-latn-zz",kvh:"kvh-latn-id",kvi:"kvi-latn-td",kvj:"kvj-latn-cm",kvl:"kvl-latn-mm",kvm:"kvm-latn-cm",kvn:"kvn-latn-co",kvo:"kvo-latn-id",kvp:"kvp-latn-id",kvq:"kvq-mymr-mm","kvq-latn":"kvq-latn-mm",kvr:"kvr-latn-id",kvt:"kvt-mymr-mm",kvv:"kvv-latn-id",kvw:"kvw-latn-id",kvx:"kvx-arab-pk",kvy:"kvy-kali-mm",kvz:"kvz-latn-id",kw:"kw-latn-gb",kwa:"kwa-latn-br",kwb:"kwb-latn-ng",kwc:"kwc-latn-cg",kwd:"kwd-latn-sb",kwe:"kwe-latn-id",kwf:"kwf-latn-sb",kwg:"kwg-latn-td",kwh:"kwh-latn-id",kwi:"kwi-latn-co",kwj:"kwj-latn-zz",kwk:"kwk-latn-ca",kwl:"kwl-latn-ng",kwm:"kwm-latn-na",kwn:"kwn-latn-na",kwo:"kwo-latn-zz",kwp:"kwp-latn-ci",kwq:"kwq-latn-zz",kwr:"kwr-latn-id",kws:"kws-latn-cd",kwt:"kwt-latn-id",kwu:"kwu-latn-cm",kwv:"kwv-latn-td",kww:"kww-latn-sr",kwy:"kwy-latn-cd",kwz:"kwz-latn-ao",kxa:"kxa-latn-zz",kxb:"kxb-latn-ci",kxc:"kxc-ethi-zz",kxd:"kxd-latn-bn","kxd-arab":"kxd-arab-bn",kxe:"kxe-latn-zz",kxf:"kxf-mymr-mm","kxf-latn":"kxf-latn-mm",kxi:"kxi-latn-my",kxj:"kxj-latn-td",kxk:"kxk-mymr-mm",kxl:"kxl-deva-in",kxm:"kxm-thai-th",kxn:"kxn-latn-my",kxo:"kxo-latn-br",kxp:"kxp-arab-pk",kxq:"kxq-latn-id",kxr:"kxr-latn-pg",kxt:"kxt-latn-pg",kxv:"kxv-orya-in","kxv-latn":"kxv-latn-in","kxv-telu":"kxv-telu-in",kxw:"kxw-latn-zz",kxx:"kxx-latn-cg",kxy:"kxy-latn-vn",kxz:"kxz-latn-zz",ky:"ky-cyrl-kg","ky-arab":"ky-arab-cn","ky-cn":"ky-arab-cn","ky-latn":"ky-latn-tr","ky-tr":"ky-latn-tr",kya:"kya-latn-tz",kyb:"kyb-latn-ph",kyc:"kyc-latn-pg",kyd:"kyd-latn-id",kye:"kye-latn-zz",kyf:"kyf-latn-ci",kyg:"kyg-latn-pg",kyh:"kyh-latn-us",kyi:"kyi-latn-my",kyj:"kyj-latn-ph",kyk:"kyk-latn-ph",kyl:"kyl-latn-us",kym:"kym-latn-cf",kyn:"kyn-latn-ph",kyo:"kyo-latn-id",kyq:"kyq-latn-td",kyr:"kyr-latn-br",kys:"kys-latn-my",kyt:"kyt-latn-id",kyu:"kyu-kali-mm","kyu-latn":"kyu-latn-mm","kyu-mymr":"kyu-mymr-mm",kyv:"kyv-deva-np",kyw:"kyw-deva-in","kyw-beng":"kyw-beng-in","kyw-orya":"kyw-orya-in",kyx:"kyx-latn-zz",kyy:"kyy-latn-pg",kyz:"kyz-latn-br",kza:"kza-latn-bf",kzb:"kzb-latn-id",kzc:"kzc-latn-ci",kzd:"kzd-latn-id",kze:"kze-latn-pg",kzf:"kzf-latn-id",kzh:"kzh-arab-zz",kzi:"kzi-latn-my",kzj:"kzj-latn-my",kzk:"kzk-latn-sb",kzl:"kzl-latn-id",kzm:"kzm-latn-id",kzn:"kzn-latn-mw",kzo:"kzo-latn-ga",kzp:"kzp-latn-id",kzr:"kzr-latn-zz",kzs:"kzs-latn-my",kzt:"kzt-latn-my",kzu:"kzu-latn-id",kzv:"kzv-latn-id",kzw:"kzw-latn-br",kzx:"kzx-latn-id",kzy:"kzy-latn-cd",kzz:"kzz-latn-id",la:"la-latn-va",laa:"laa-latn-ph",lab:"lab-lina-gr",lac:"lac-latn-mx",lad:"lad-hebr-il",lae:"lae-deva-in","lae-tibt":"lae-tibt-in",lag:"lag-latn-tz",lah:"lah-arab-pk",lai:"lai-latn-mw",laj:"laj-latn-ug",lal:"lal-latn-cd",lam:"lam-latn-zm",lan:"lan-latn-ng",lap:"lap-latn-td",laq:"laq-latn-vn",lar:"lar-latn-gh",las:"las-latn-zz",lau:"lau-latn-id",law:"law-latn-id",lax:"lax-latn-in","lax-beng":"lax-beng-in",laz:"laz-latn-pg",lb:"lb-latn-lu",lbb:"lbb-latn-pg",lbc:"lbc-lisu-cn",lbe:"lbe-cyrl-ru",lbf:"lbf-deva-in","lbf-tibt":"lbf-tibt-cn",lbi:"lbi-latn-cm",lbj:"lbj-tibt-in","lbj-arab":"lbj-arab-in",lbl:"lbl-latn-ph",lbm:"lbm-deva-in",lbn:"lbn-latn-la","lbn-laoo":"lbn-laoo-la",lbo:"lbo-laoo-la","lbo-latn":"lbo-latn-us",lbq:"lbq-latn-pg",lbr:"lbr-deva-np",lbt:"lbt-latn-vn",lbu:"lbu-latn-zz",lbv:"lbv-latn-pg",lbw:"lbw-latn-id",lbx:"lbx-latn-id",lby:"lby-latn-au",lbz:"lbz-latn-au",lcc:"lcc-latn-id",lcd:"lcd-latn-id",lce:"lce-latn-id",lcf:"lcf-latn-id",lch:"lch-latn-ao",lcl:"lcl-latn-id",lcm:"lcm-latn-zz",lcp:"lcp-thai-cn",lcq:"lcq-latn-id",lcs:"lcs-latn-id",lda:"lda-latn-ci",ldb:"ldb-latn-zz",ldd:"ldd-latn-ng",ldg:"ldg-latn-ng",ldh:"ldh-latn-ng",ldi:"ldi-latn-cg",ldj:"ldj-latn-ng",ldk:"ldk-latn-ng",ldl:"ldl-latn-ng",ldm:"ldm-latn-gn",ldn:"ldn-latn-001",ldo:"ldo-latn-ng",ldp:"ldp-latn-ng",ldq:"ldq-latn-ng",lea:"lea-latn-cd",leb:"leb-latn-zm",lec:"lec-latn-bo",led:"led-latn-zz",lee:"lee-latn-zz",lef:"lef-latn-gh",leh:"leh-latn-zm",lei:"lei-latn-pg",lej:"lej-latn-cd",lek:"lek-latn-pg",lel:"lel-latn-cd",lem:"lem-latn-zz",len:"len-latn-hn",leo:"leo-latn-cm",lep:"lep-lepc-in",leq:"leq-latn-zz",ler:"ler-latn-pg",les:"les-latn-cd",let:"let-latn-pg",leu:"leu-latn-zz",lev:"lev-latn-id",lew:"lew-latn-id",lex:"lex-latn-id",ley:"ley-latn-id",lez:"lez-cyrl-ru",lfa:"lfa-latn-cm",lfn:"lfn-latn-001","lfn-cyrl":"lfn-cyrl-001",lg:"lg-latn-ug",lga:"lga-latn-sb",lgb:"lgb-latn-sb",lgg:"lgg-latn-zz",lgh:"lgh-latn-vn",lgi:"lgi-latn-id",lgk:"lgk-latn-vu",lgl:"lgl-latn-sb",lgm:"lgm-latn-cd",lgn:"lgn-latn-et",lgo:"lgo-latn-ss",lgq:"lgq-latn-gh",lgr:"lgr-latn-sb",lgt:"lgt-latn-pg",lgu:"lgu-latn-sb",lgz:"lgz-latn-cd",lha:"lha-latn-vn",lhh:"lhh-latn-id",lhi:"lhi-latn-cn",lhm:"lhm-deva-np",lhn:"lhn-latn-my",lhs:"lhs-syrc-sy",lht:"lht-latn-vu",lhu:"lhu-latn-cn",li:"li-latn-nl",lia:"lia-latn-zz",lib:"lib-latn-pg",lic:"lic-latn-cn",lid:"lid-latn-zz",lie:"lie-latn-cd",lif:"lif-deva-np","lif-limb":"lif-limb-in",lig:"lig-latn-zz",lih:"lih-latn-zz",lij:"lij-latn-it",lik:"lik-latn-cd",lil:"lil-latn-ca",lio:"lio-latn-id",lip:"lip-latn-gh",liq:"liq-latn-et",lir:"lir-latn-lr",lis:"lis-lisu-cn",liu:"liu-latn-sd",liv:"liv-latn-lv",liw:"liw-latn-id",lix:"lix-latn-id",liy:"liy-latn-cf",liz:"liz-latn-cd",lja:"lja-latn-au",lje:"lje-latn-id",lji:"lji-latn-id",ljl:"ljl-latn-id",ljp:"ljp-latn-id",ljw:"ljw-latn-au",ljx:"ljx-latn-au",lka:"lka-latn-tl",lkb:"lkb-latn-ke",lkc:"lkc-latn-vn",lkd:"lkd-latn-br",lke:"lke-latn-ug",lkh:"lkh-tibt-bt",lki:"lki-arab-ir",lkj:"lkj-latn-my",lkl:"lkl-latn-pg",lkm:"lkm-latn-au",lkn:"lkn-latn-vu",lko:"lko-latn-ke",lkr:"lkr-latn-ss",lks:"lks-latn-ke",lkt:"lkt-latn-us",lku:"lku-latn-au",lky:"lky-latn-ss",lla:"lla-latn-ng",llb:"llb-latn-mz",llc:"llc-latn-gn",lld:"lld-latn-it",lle:"lle-latn-zz",llf:"llf-latn-pg",llg:"llg-latn-id",lli:"lli-latn-cg",llj:"llj-latn-au",llk:"llk-latn-my",lll:"lll-latn-pg",llm:"llm-latn-id",lln:"lln-latn-zz",llp:"llp-latn-vu",llq:"llq-latn-id",llu:"llu-latn-sb",llx:"llx-latn-fj",lma:"lma-latn-gn",lmb:"lmb-latn-vu",lmc:"lmc-latn-au",lmd:"lmd-latn-sd",lme:"lme-latn-td",lmf:"lmf-latn-id",lmg:"lmg-latn-pg",lmh:"lmh-deva-np",lmi:"lmi-latn-cd",lmj:"lmj-latn-id",lmk:"lmk-latn-in","lmk-mymr":"lmk-mymr-in",lml:"lml-latn-vu",lmn:"lmn-telu-in",lmo:"lmo-latn-it",lmp:"lmp-latn-zz",lmq:"lmq-latn-id",lmr:"lmr-latn-id",lmu:"lmu-latn-vu",lmv:"lmv-latn-fj",lmw:"lmw-latn-us",lmx:"lmx-latn-cm",lmy:"lmy-latn-id",ln:"ln-latn-cd",lna:"lna-latn-cf",lnb:"lnb-latn-na",lnd:"lnd-latn-id",lnh:"lnh-latn-my",lni:"lni-latn-pg",lnj:"lnj-latn-au",lnl:"lnl-latn-cf",lnm:"lnm-latn-pg",lnn:"lnn-latn-vu",lns:"lns-latn-zz",lnu:"lnu-latn-zz",lnw:"lnw-latn-au",lnz:"lnz-latn-cd",lo:"lo-laoo-la",loa:"loa-latn-id",lob:"lob-latn-bf",loc:"loc-latn-ph",loe:"loe-latn-id",log:"log-latn-cd",loh:"loh-latn-ss",loi:"loi-latn-ci",loj:"loj-latn-zz",lok:"lok-latn-zz",lol:"lol-latn-cd",lom:"lom-latn-lr",lon:"lon-latn-mw",loo:"loo-latn-cd",lop:"lop-latn-ng",loq:"loq-latn-cd",lor:"lor-latn-zz",los:"los-latn-zz",lot:"lot-latn-ss","lot-arab":"lot-arab-ss",lou:"lou-latn-us",low:"low-latn-my",lox:"lox-latn-id",loy:"loy-deva-np","loy-tibt":"loy-tibt-np",loz:"loz-latn-zm",lpa:"lpa-latn-vu",lpe:"lpe-latn-id",lpn:"lpn-latn-mm",lpo:"lpo-plrd-cn","lpo-lisu":"lpo-lisu-cn",lpx:"lpx-latn-ss",lqr:"lqr-latn-ss",lra:"lra-latn-my",lrc:"lrc-arab-ir",lrg:"lrg-latn-au",lri:"lri-latn-ke",lrk:"lrk-arab-pk",lrl:"lrl-arab-ir",lrm:"lrm-latn-ke",lrn:"lrn-latn-id",lro:"lro-latn-sd",lrt:"lrt-latn-id",lrv:"lrv-latn-vu",lrz:"lrz-latn-vu",lsa:"lsa-arab-ir",lsd:"lsd-hebr-il",lse:"lse-latn-cd",lsi:"lsi-latn-mm",lsm:"lsm-latn-ug",lsr:"lsr-latn-pg",lss:"lss-arab-pk",lt:"lt-latn-lt",ltg:"ltg-latn-lv",lth:"lth-latn-ug",lti:"lti-latn-id",ltn:"ltn-latn-br",lto:"lto-latn-ke",lts:"lts-latn-ke",ltu:"ltu-latn-id",lu:"lu-latn-cd",lua:"lua-latn-cd",luc:"luc-latn-ug",lud:"lud-latn-ru",lue:"lue-latn-zm",luf:"luf-latn-pg",lui:"lui-latn-us",luj:"luj-latn-cd",luk:"luk-tibt-bt",lul:"lul-latn-ss",lum:"lum-latn-ao",lun:"lun-latn-zm",luo:"luo-latn-ke",lup:"lup-latn-ga",luq:"luq-latn-cu",lur:"lur-latn-id",lus:"lus-latn-in","lus-beng":"lus-beng-bd","lus-brai":"lus-brai-in",lut:"lut-latn-us",luu:"luu-deva-np",luv:"luv-arab-om",luw:"luw-latn-cm",luy:"luy-latn-ke",luz:"luz-arab-ir",lv:"lv-latn-lv",lva:"lva-latn-tl",lvi:"lvi-latn-la",lvk:"lvk-latn-sb",lvu:"lvu-latn-id",lwa:"lwa-latn-cd",lwe:"lwe-latn-id",lwg:"lwg-latn-ke",lwh:"lwh-latn-vn",lwl:"lwl-thai-th",lwm:"lwm-thai-cn",lwo:"lwo-latn-ss","lwo-za":"lwo-latn-za",lwt:"lwt-latn-id",lww:"lww-latn-vu",lxm:"lxm-latn-pg",lya:"lya-tibt-bt",lyn:"lyn-latn-zm",lzh:"lzh-hans-cn",lzl:"lzl-latn-vu",lzn:"lzn-latn-mm",lzz:"lzz-latn-tr",maa:"maa-latn-mx",mab:"mab-latn-mx",mad:"mad-latn-id",mae:"mae-latn-ng",maf:"maf-latn-cm",mag:"mag-deva-in",mai:"mai-deva-in",maj:"maj-latn-mx",mak:"mak-latn-id",mam:"mam-latn-gt",man:"man-latn-gm","man-gn":"man-nkoo-gn","man-nkoo":"man-nkoo-gn",maq:"maq-latn-mx",mas:"mas-latn-ke",mat:"mat-latn-mx",mau:"mau-latn-mx",mav:"mav-latn-br",maw:"maw-latn-zz",max:"max-latn-id",maz:"maz-latn-mx",mba:"mba-latn-ph",mbb:"mbb-latn-ph",mbc:"mbc-latn-br",mbd:"mbd-latn-ph",mbf:"mbf-latn-sg",mbh:"mbh-latn-zz",mbi:"mbi-latn-ph",mbj:"mbj-latn-br",mbk:"mbk-latn-pg",mbl:"mbl-latn-br",mbm:"mbm-latn-cg",mbn:"mbn-latn-co",mbo:"mbo-latn-zz",mbp:"mbp-latn-co",mbq:"mbq-latn-zz",mbr:"mbr-latn-co",mbs:"mbs-latn-ph",mbt:"mbt-latn-ph",mbu:"mbu-latn-zz",mbv:"mbv-latn-gn",mbw:"mbw-latn-zz",mbx:"mbx-latn-pg",mby:"mby-arab-pk",mbz:"mbz-latn-mx",mca:"mca-latn-py",mcb:"mcb-latn-pe",mcc:"mcc-latn-pg",mcd:"mcd-latn-pe",mce:"mce-latn-mx",mcf:"mcf-latn-pe",mcg:"mcg-latn-ve",mch:"mch-latn-ve",mci:"mci-latn-zz",mcj:"mcj-latn-ng",mck:"mck-latn-ao",mcl:"mcl-latn-co",mcm:"mcm-latn-my",mcn:"mcn-latn-td",mco:"mco-latn-mx",mcp:"mcp-latn-zz",mcq:"mcq-latn-zz",mcr:"mcr-latn-zz",mcs:"mcs-latn-cm",mct:"mct-latn-cm",mcu:"mcu-latn-zz",mcv:"mcv-latn-pg",mcw:"mcw-latn-td",mcx:"mcx-latn-cf",mcy:"mcy-latn-pg",mcz:"mcz-latn-pg",mda:"mda-latn-zz",mdb:"mdb-latn-pg",mdc:"mdc-latn-pg",mdd:"mdd-latn-cm",mde:"mde-arab-zz",mdf:"mdf-cyrl-ru",mdg:"mdg-latn-td",mdh:"mdh-latn-ph",mdi:"mdi-latn-cd",mdj:"mdj-latn-zz",mdk:"mdk-latn-cd",mdm:"mdm-latn-cd",mdn:"mdn-latn-cf",mdp:"mdp-latn-cd",mdq:"mdq-latn-cd",mdr:"mdr-latn-id",mds:"mds-latn-pg",mdt:"mdt-latn-cg",mdu:"mdu-latn-cg",mdv:"mdv-latn-mx",mdw:"mdw-latn-cg",mdx:"mdx-ethi-zz",mdy:"mdy-ethi-et","mdy-latn":"mdy-latn-et",mdz:"mdz-latn-br",mea:"mea-latn-cm",meb:"meb-latn-pg",mec:"mec-latn-au",med:"med-latn-zz",mee:"mee-latn-zz",meh:"meh-latn-mx",mej:"mej-latn-id",mek:"mek-latn-zz",mel:"mel-latn-my",mem:"mem-latn-au",men:"men-latn-sl",meo:"meo-latn-my","meo-arab":"meo-arab-my",mep:"mep-latn-au",meq:"meq-latn-cm",mer:"mer-latn-ke",mes:"mes-latn-td",met:"met-latn-zz",meu:"meu-latn-zz",mev:"mev-latn-lr",mew:"mew-latn-ng",mey:"mey-latn-mr","mey-arab":"mey-arab-mr",mez:"mez-latn-us",mfa:"mfa-arab-th",mfb:"mfb-latn-id",mfc:"mfc-latn-cd",mfd:"mfd-latn-cm",mfe:"mfe-latn-mu",mff:"mff-latn-cm",mfg:"mfg-latn-gn","mfg-arab":"mfg-arab-gn",mfh:"mfh-latn-cm",mfi:"mfi-arab-cm","mfi-latn":"mfi-latn-cm",mfj:"mfj-latn-cm",mfk:"mfk-latn-cm",mfl:"mfl-latn-ng",mfm:"mfm-latn-ng",mfn:"mfn-latn-zz",mfo:"mfo-latn-zz",mfp:"mfp-latn-id",mfq:"mfq-latn-zz",mfr:"mfr-latn-au",mft:"mft-latn-pg",mfu:"mfu-latn-ao",mfv:"mfv-latn-gw",mfw:"mfw-latn-pg",mfx:"mfx-latn-et","mfx-ethi":"mfx-ethi-et",mfy:"mfy-latn-mx",mfz:"mfz-latn-ss",mg:"mg-latn-mg",mgb:"mgb-latn-td",mgc:"mgc-latn-ss",mgd:"mgd-latn-ss","mgd-arab":"mgd-arab-ss",mge:"mge-latn-td",mgf:"mgf-latn-id",mgg:"mgg-latn-cm",mgh:"mgh-latn-mz",mgi:"mgi-latn-ng",mgj:"mgj-latn-ng",mgk:"mgk-latn-id",mgl:"mgl-latn-zz",mgm:"mgm-latn-tl",mgn:"mgn-latn-cf",mgo:"mgo-latn-cm",mgp:"mgp-deva-np",mgq:"mgq-latn-tz",mgr:"mgr-latn-zm",mgs:"mgs-latn-tz",mgt:"mgt-latn-pg",mgu:"mgu-latn-pg",mgv:"mgv-latn-tz",mgw:"mgw-latn-tz",mgy:"mgy-latn-tz",mgz:"mgz-latn-tz",mh:"mh-latn-mh",mhb:"mhb-latn-ga",mhc:"mhc-latn-mx",mhd:"mhd-latn-tz",mhe:"mhe-latn-my",mhf:"mhf-latn-pg",mhg:"mhg-latn-au",mhi:"mhi-latn-zz",mhj:"mhj-arab-af",mhk:"mhk-latn-cm",mhl:"mhl-latn-zz",mhm:"mhm-latn-mz",mhn:"mhn-latn-it",mho:"mho-latn-zm",mhp:"mhp-latn-id",mhq:"mhq-latn-us",mhs:"mhs-latn-id",mht:"mht-latn-ve",mhu:"mhu-latn-in",mhw:"mhw-latn-bw",mhx:"mhx-latn-mm",mhy:"mhy-latn-id",mhz:"mhz-latn-id",mi:"mi-latn-nz",mia:"mia-latn-us",mib:"mib-latn-mx",mic:"mic-latn-ca",mid:"mid-mand-iq",mie:"mie-latn-mx",mif:"mif-latn-zz",mig:"mig-latn-mx",mih:"mih-latn-mx",mii:"mii-latn-mx",mij:"mij-latn-cm",mik:"mik-latn-us",mil:"mil-latn-mx",mim:"mim-latn-mx",min:"min-latn-id",mio:"mio-latn-mx",mip:"mip-latn-mx",miq:"miq-latn-ni",mir:"mir-latn-mx",mit:"mit-latn-mx",miu:"miu-latn-mx",miw:"miw-latn-zz",mix:"mix-latn-mx",miy:"miy-latn-mx",miz:"miz-latn-mx",mjb:"mjb-latn-tl",mjc:"mjc-latn-mx",mjd:"mjd-latn-us",mje:"mje-latn-td",mjg:"mjg-latn-cn",mjh:"mjh-latn-tz",mji:"mji-latn-cn",mjj:"mjj-latn-pg",mjk:"mjk-latn-pg",mjl:"mjl-deva-in","mjl-takr":"mjl-takr-in",mjm:"mjm-latn-pg",mjn:"mjn-latn-pg",mjq:"mjq-mlym-in",mjr:"mjr-mlym-in",mjs:"mjs-latn-ng",mjt:"mjt-deva-in","mjt-beng":"mjt-beng-bd",mju:"mju-telu-in",mjv:"mjv-mlym-in",mjw:"mjw-latn-in",mjx:"mjx-latn-bd","mjx-beng":"mjx-beng-bd",mjy:"mjy-latn-us",mjz:"mjz-deva-np",mk:"mk-cyrl-mk",mka:"mka-latn-ci",mkb:"mkb-deva-in",mkc:"mkc-latn-pg",mke:"mke-deva-in",mkf:"mkf-latn-ng",mki:"mki-arab-zz",mkj:"mkj-latn-fm",mkk:"mkk-latn-cm",mkl:"mkl-latn-zz",mkm:"mkm-thai-th",mkn:"mkn-latn-id",mko:"mko-latn-ng",mkp:"mkp-latn-zz",mkr:"mkr-latn-pg",mks:"mks-latn-mx",mkt:"mkt-latn-nc",mku:"mku-latn-gn",mkv:"mkv-latn-vu",mkw:"mkw-latn-zz",mkx:"mkx-latn-ph",mky:"mky-latn-id",mkz:"mkz-latn-tl",ml:"ml-mlym-in",mla:"mla-latn-vu",mlb:"mlb-latn-cm",mlc:"mlc-latn-vn",mle:"mle-latn-zz",mlf:"mlf-thai-la","mlf-latn":"mlf-latn-la",mlh:"mlh-latn-pg",mli:"mli-latn-id",mlj:"mlj-latn-td",mlk:"mlk-latn-ke",mll:"mll-latn-vu",mln:"mln-latn-sb",mlo:"mlo-latn-sn",mlp:"mlp-latn-zz",mlq:"mlq-latn-sn","mlq-arab":"mlq-arab-sn",mlr:"mlr-latn-cm",mls:"mls-latn-sd",mlu:"mlu-latn-sb",mlv:"mlv-latn-vu",mlw:"mlw-latn-cm",mlx:"mlx-latn-vu",mlz:"mlz-latn-ph",mma:"mma-latn-ng",mmb:"mmb-latn-id",mmc:"mmc-latn-mx",mmd:"mmd-latn-cn","mmd-hans":"mmd-hans-cn","mmd-hant":"mmd-hant-cn",mme:"mme-latn-vu",mmf:"mmf-latn-ng",mmg:"mmg-latn-vu",mmh:"mmh-latn-br",mmi:"mmi-latn-pg",mmm:"mmm-latn-vu",mmn:"mmn-latn-ph",mmo:"mmo-latn-zz",mmp:"mmp-latn-pg",mmq:"mmq-latn-pg",mmr:"mmr-latn-cn",mmt:"mmt-latn-pg",mmu:"mmu-latn-zz",mmv:"mmv-latn-br",mmw:"mmw-latn-vu",mmx:"mmx-latn-zz",mmy:"mmy-latn-td",mmz:"mmz-latn-cd",mn:"mn-cyrl-mn","mn-cn":"mn-mong-cn","mn-mong":"mn-mong-cn",mna:"mna-latn-zz",mnb:"mnb-latn-id",mnd:"mnd-latn-br",mne:"mne-latn-td",mnf:"mnf-latn-zz",mng:"mng-latn-vn",mnh:"mnh-latn-cd",mni:"mni-beng-in",mnj:"mnj-arab-af",mnl:"mnl-latn-vu",mnm:"mnm-latn-pg",mnn:"mnn-latn-vn",mnp:"mnp-latn-cn",mnq:"mnq-latn-my",mnr:"mnr-latn-us",mns:"mns-cyrl-ru",mnu:"mnu-latn-id",mnv:"mnv-latn-sb",mnw:"mnw-mymr-mm",mnx:"mnx-latn-id",mny:"mny-latn-mz",mnz:"mnz-latn-id",mo:"mo-latn-ro",moa:"moa-latn-zz",moc:"moc-latn-ar",mod:"mod-latn-us",moe:"moe-latn-ca",mog:"mog-latn-id",moh:"moh-latn-ca",moi:"moi-latn-ng",moj:"moj-latn-cg",mok:"mok-latn-id",mom:"mom-latn-ni",moo:"moo-latn-vn",mop:"mop-latn-bz",moq:"moq-latn-id",mor:"mor-latn-sd",mos:"mos-latn-bf",mot:"mot-latn-co",mou:"mou-latn-td",mov:"mov-latn-us",mow:"mow-latn-cg",mox:"mox-latn-zz",moy:"moy-latn-et","moy-ethi":"moy-ethi-et",moz:"moz-latn-td",mpa:"mpa-latn-tz",mpb:"mpb-latn-au",mpc:"mpc-latn-au",mpd:"mpd-latn-br",mpe:"mpe-latn-et","mpe-ethi":"mpe-ethi-et",mpg:"mpg-latn-td",mph:"mph-latn-au",mpi:"mpi-latn-cm",mpj:"mpj-latn-au",mpk:"mpk-latn-td",mpl:"mpl-latn-pg",mpm:"mpm-latn-mx",mpn:"mpn-latn-pg",mpo:"mpo-latn-pg",mpp:"mpp-latn-zz",mpq:"mpq-latn-br",mpr:"mpr-latn-sb",mps:"mps-latn-zz",mpt:"mpt-latn-zz",mpu:"mpu-latn-br",mpv:"mpv-latn-pg",mpw:"mpw-latn-br",mpx:"mpx-latn-zz",mpy:"mpy-latn-id",mpz:"mpz-thai-th",mqa:"mqa-latn-id",mqb:"mqb-latn-cm",mqc:"mqc-latn-id",mqe:"mqe-latn-pg",mqf:"mqf-latn-id",mqg:"mqg-latn-id",mqh:"mqh-latn-mx",mqi:"mqi-latn-id",mqj:"mqj-latn-id",mqk:"mqk-latn-ph",mql:"mql-latn-zz",mqm:"mqm-latn-pf",mqn:"mqn-latn-id",mqo:"mqo-latn-id",mqp:"mqp-latn-id",mqq:"mqq-latn-my",mqr:"mqr-latn-id",mqs:"mqs-latn-id",mqu:"mqu-latn-ss",mqv:"mqv-latn-pg",mqw:"mqw-latn-pg",mqx:"mqx-latn-id","mqx-bugi":"mqx-bugi-id",mqy:"mqy-latn-id",mqz:"mqz-latn-pg",mr:"mr-deva-in",mra:"mra-thai-th",mrb:"mrb-latn-vu",mrc:"mrc-latn-us",mrd:"mrd-deva-np",mrf:"mrf-latn-id",mrg:"mrg-latn-in","mrg-beng":"mrg-beng-in","mrg-deva":"mrg-deva-in",mrh:"mrh-latn-in",mrj:"mrj-cyrl-ru",mrk:"mrk-latn-nc",mrl:"mrl-latn-fm",mrm:"mrm-latn-vu",mrn:"mrn-latn-sb",mro:"mro-mroo-bd",mrp:"mrp-latn-vu",mrq:"mrq-latn-pf",mrr:"mrr-deva-in",mrs:"mrs-latn-vu",mrt:"mrt-latn-ng",mru:"mru-latn-cm",mrv:"mrv-latn-pf",mrw:"mrw-latn-ph","mrw-arab":"mrw-arab-ph",mrx:"mrx-latn-id",mry:"mry-latn-ph",mrz:"mrz-latn-id",ms:"ms-latn-my","ms-cc":"ms-arab-cc",msb:"msb-latn-ph",msc:"msc-latn-gn",mse:"mse-latn-td",msf:"msf-latn-id",msg:"msg-latn-id",msh:"msh-latn-mg",msi:"msi-latn-my",msj:"msj-latn-cd",msk:"msk-latn-ph",msl:"msl-latn-id",msm:"msm-latn-ph",msn:"msn-latn-vu",mso:"mso-latn-id",msp:"msp-latn-br",msq:"msq-latn-nc",mss:"mss-latn-id",msu:"msu-latn-pg",msv:"msv-latn-cm",msw:"msw-latn-gw",msx:"msx-latn-pg",msy:"msy-latn-pg",msz:"msz-latn-pg",mt:"mt-latn-mt",mta:"mta-latn-ph",mtb:"mtb-latn-ci",mtc:"mtc-latn-zz",mtd:"mtd-latn-id",mte:"mte-latn-sb",mtf:"mtf-latn-zz",mtg:"mtg-latn-id",mth:"mth-latn-id",mti:"mti-latn-zz",mtj:"mtj-latn-id",mtk:"mtk-latn-cm",mtl:"mtl-latn-ng",mtm:"mtm-cyrl-ru",mtn:"mtn-latn-ni",mto:"mto-latn-mx",mtp:"mtp-latn-bo",mtq:"mtq-latn-vn",mtr:"mtr-deva-in",mts:"mts-latn-pe",mtt:"mtt-latn-vu",mtu:"mtu-latn-mx",mtv:"mtv-latn-pg",mtw:"mtw-latn-ph",mtx:"mtx-latn-mx",mty:"mty-latn-pg",mua:"mua-latn-cm",mub:"mub-latn-td",muc:"muc-latn-cm",mud:"mud-cyrl-ru",mue:"mue-latn-ec",mug:"mug-latn-cm",muh:"muh-latn-ss",mui:"mui-latn-id",muj:"muj-latn-td",muk:"muk-tibt-np",mum:"mum-latn-pg",muo:"muo-latn-cm",muq:"muq-latn-cn",mur:"mur-latn-zz",mus:"mus-latn-us",mut:"mut-deva-in",muu:"muu-latn-ke",muv:"muv-taml-in",mux:"mux-latn-pg",muy:"muy-latn-cm",muz:"muz-ethi-et","muz-latn":"muz-latn-et",mva:"mva-latn-zz",mvd:"mvd-latn-id",mvf:"mvf-mong-cn","mvf-phag":"mvf-phag-cn",mvg:"mvg-latn-mx",mvh:"mvh-latn-td",mvk:"mvk-latn-pg",mvl:"mvl-latn-au",mvn:"mvn-latn-zz",mvo:"mvo-latn-sb",mvp:"mvp-latn-id",mvq:"mvq-latn-pg",mvr:"mvr-latn-id",mvs:"mvs-latn-id",mvt:"mvt-latn-vu",mvu:"mvu-latn-td",mvv:"mvv-latn-my",mvw:"mvw-latn-tz",mvx:"mvx-latn-id",mvy:"mvy-arab-pk",mvz:"mvz-ethi-et","mvz-arab":"mvz-arab-et",mwa:"mwa-latn-pg",mwb:"mwb-latn-pg",mwc:"mwc-latn-pg",mwe:"mwe-latn-tz",mwf:"mwf-latn-au",mwg:"mwg-latn-pg",mwh:"mwh-latn-pg",mwi:"mwi-latn-vu",mwk:"mwk-latn-ml",mwl:"mwl-latn-pt",mwm:"mwm-latn-td",mwn:"mwn-latn-zm",mwo:"mwo-latn-vu",mwp:"mwp-latn-au",mwq:"mwq-latn-mm",mwr:"mwr-deva-in",mws:"mws-latn-ke",mwt:"mwt-mymr-mm","mwt-thai":"mwt-thai-th",mwu:"mwu-latn-ss",mwv:"mwv-latn-id",mww:"mww-hmnp-us",mwz:"mwz-latn-cd",mxa:"mxa-latn-mx",mxb:"mxb-latn-mx",mxc:"mxc-latn-zw",mxd:"mxd-latn-id",mxe:"mxe-latn-vu",mxf:"mxf-latn-cm",mxg:"mxg-latn-ao",mxh:"mxh-latn-cd",mxi:"mxi-latn-es",mxj:"mxj-latn-in",mxk:"mxk-latn-pg",mxl:"mxl-latn-bj",mxm:"mxm-latn-zz",mxn:"mxn-latn-id",mxo:"mxo-latn-zm",mxp:"mxp-latn-mx",mxq:"mxq-latn-mx",mxr:"mxr-latn-my",mxs:"mxs-latn-mx",mxt:"mxt-latn-mx",mxu:"mxu-latn-cm",mxv:"mxv-latn-mx",mxw:"mxw-latn-pg",mxx:"mxx-latn-ci",mxy:"mxy-latn-mx",mxz:"mxz-latn-id",my:"my-mymr-mm",myb:"myb-latn-td",myc:"myc-latn-cd",mye:"mye-latn-ga",myf:"myf-latn-et",myg:"myg-latn-cm",myh:"myh-latn-us",myj:"myj-latn-ss",myk:"myk-latn-zz",myl:"myl-latn-id",mym:"mym-ethi-zz",myp:"myp-latn-br",myr:"myr-latn-pe",myu:"myu-latn-br",myv:"myv-cyrl-ru",myw:"myw-latn-zz",myx:"myx-latn-ug",myy:"myy-latn-co",myz:"myz-mand-ir",mza:"mza-latn-mx",mzd:"mzd-latn-cm",mze:"mze-latn-pg",mzh:"mzh-latn-ar",mzi:"mzi-latn-mx",mzj:"mzj-latn-lr",mzk:"mzk-latn-zz",mzl:"mzl-latn-mx",mzm:"mzm-latn-zz",mzn:"mzn-arab-ir",mzo:"mzo-latn-br",mzp:"mzp-latn-zz",mzq:"mzq-latn-id",mzr:"mzr-latn-br",mzt:"mzt-latn-my",mzu:"mzu-latn-pg",mzv:"mzv-latn-cf",mzw:"mzw-latn-zz",mzx:"mzx-latn-gy",mzz:"mzz-latn-zz",na:"na-latn-nr",naa:"naa-latn-id",nab:"nab-latn-br",nac:"nac-latn-zz",nae:"nae-latn-id",naf:"naf-latn-zz",nag:"nag-latn-in",naj:"naj-latn-gn",nak:"nak-latn-zz",nal:"nal-latn-pg",nam:"nam-latn-au",nan:"nan-hans-cn",nao:"nao-deva-np",nap:"nap-latn-it",naq:"naq-latn-na",nar:"nar-latn-ng",nas:"nas-latn-zz",nat:"nat-latn-ng",naw:"naw-latn-gh",nax:"nax-latn-pg",nay:"nay-latn-au",naz:"naz-latn-mx",nb:"nb-latn-no",nba:"nba-latn-ao",nbb:"nbb-latn-ng",nbc:"nbc-latn-in",nbd:"nbd-latn-cd",nbe:"nbe-latn-in",nbh:"nbh-latn-ng",nbi:"nbi-latn-in",nbj:"nbj-latn-au",nbk:"nbk-latn-pg",nbm:"nbm-latn-cf",nbn:"nbn-latn-id",nbo:"nbo-latn-ng",nbp:"nbp-latn-ng",nbq:"nbq-latn-id",nbr:"nbr-latn-ng",nbt:"nbt-latn-in","nbt-deva":"nbt-deva-in",nbu:"nbu-latn-in",nbv:"nbv-latn-cm",nbw:"nbw-latn-cd",nby:"nby-latn-pg",nca:"nca-latn-zz",ncb:"ncb-latn-in","ncb-deva":"ncb-deva-in",ncc:"ncc-latn-pg",ncd:"ncd-deva-np",nce:"nce-latn-zz",ncf:"ncf-latn-zz",ncg:"ncg-latn-ca",nch:"nch-latn-mx",nci:"nci-latn-mx",ncj:"ncj-latn-mx",nck:"nck-latn-au",ncl:"ncl-latn-mx",ncm:"ncm-latn-pg",ncn:"ncn-latn-pg",nco:"nco-latn-zz",ncq:"ncq-laoo-la","ncq-thai":"ncq-thai-la",ncr:"ncr-latn-cm",nct:"nct-latn-in","nct-beng":"nct-beng-in",ncu:"ncu-latn-zz",ncx:"ncx-latn-mx",ncz:"ncz-latn-us",nd:"nd-latn-zw",nda:"nda-latn-cg",ndb:"ndb-latn-cm",ndc:"ndc-latn-mz",ndd:"ndd-latn-ng",ndf:"ndf-cyrl-ru",ndg:"ndg-latn-tz",ndh:"ndh-latn-tz",ndi:"ndi-latn-ng",ndj:"ndj-latn-tz",ndk:"ndk-latn-cd",ndl:"ndl-latn-cd",ndm:"ndm-latn-td",ndn:"ndn-latn-cg",ndp:"ndp-latn-ug",ndq:"ndq-latn-ao",ndr:"ndr-latn-ng",nds:"nds-latn-de",ndt:"ndt-latn-cd",ndu:"ndu-latn-cm",ndv:"ndv-latn-sn",ndw:"ndw-latn-cd",ndx:"ndx-latn-id",ndy:"ndy-latn-cf","ndy-td":"ndy-latn-td",ndz:"ndz-latn-ss",ne:"ne-deva-np",nea:"nea-latn-id",neb:"neb-latn-zz",nec:"nec-latn-id",ned:"ned-latn-ng",nee:"nee-latn-nc",neg:"neg-cyrl-ru",neh:"neh-tibt-bt",nei:"nei-xsux-tr",nej:"nej-latn-pg",nek:"nek-latn-nc",nem:"nem-latn-nc",nen:"nen-latn-nc",neo:"neo-latn-vn",neq:"neq-latn-mx",ner:"ner-latn-id",net:"net-latn-pg",neu:"neu-latn-001",new:"new-deva-np",nex:"nex-latn-zz",ney:"ney-latn-ci",nez:"nez-latn-us",nfa:"nfa-latn-id",nfd:"nfd-latn-ng",nfl:"nfl-latn-sb",nfr:"nfr-latn-zz",nfu:"nfu-latn-cm",ng:"ng-latn-na",nga:"nga-latn-zz",ngb:"ngb-latn-zz",ngc:"ngc-latn-cd",ngd:"ngd-latn-cf",nge:"nge-latn-cm",ngg:"ngg-latn-cf",ngh:"ngh-latn-za",ngi:"ngi-latn-ng",ngj:"ngj-latn-cm",ngk:"ngk-latn-au",ngl:"ngl-latn-mz",ngm:"ngm-latn-fm",ngn:"ngn-latn-cm",ngp:"ngp-latn-tz",ngq:"ngq-latn-tz",ngr:"ngr-latn-sb",ngs:"ngs-latn-ng",ngt:"ngt-laoo-la",ngu:"ngu-latn-mx",ngv:"ngv-latn-cm",ngw:"ngw-latn-ng",ngx:"ngx-latn-ng",ngy:"ngy-latn-cm",ngz:"ngz-latn-cg",nha:"nha-latn-au",nhb:"nhb-latn-zz",nhc:"nhc-latn-mx",nhd:"nhd-latn-py",nhe:"nhe-latn-mx",nhf:"nhf-latn-au",nhg:"nhg-latn-mx",nhi:"nhi-latn-mx",nhk:"nhk-latn-mx",nhm:"nhm-latn-mx",nhn:"nhn-latn-mx",nho:"nho-latn-pg",nhp:"nhp-latn-mx",nhq:"nhq-latn-mx",nhr:"nhr-latn-bw",nht:"nht-latn-mx",nhu:"nhu-latn-cm",nhv:"nhv-latn-mx",nhw:"nhw-latn-mx",nhx:"nhx-latn-mx",nhy:"nhy-latn-mx",nhz:"nhz-latn-mx",nia:"nia-latn-id",nib:"nib-latn-pg",nid:"nid-latn-au",nie:"nie-latn-td",nif:"nif-latn-zz",nig:"nig-latn-au",nih:"nih-latn-tz",nii:"nii-latn-zz",nij:"nij-latn-id",nil:"nil-latn-id",nim:"nim-latn-tz",nin:"nin-latn-zz",nio:"nio-cyrl-ru",niq:"niq-latn-ke",nir:"nir-latn-id",nis:"nis-latn-pg",nit:"nit-telu-in",niu:"niu-latn-nu",niv:"niv-cyrl-ru","niv-latn":"niv-latn-ru",niw:"niw-latn-pg",nix:"nix-latn-cd",niy:"niy-latn-zz",niz:"niz-latn-zz",nja:"nja-latn-ng",njb:"njb-latn-in",njd:"njd-latn-tz",njh:"njh-latn-in",nji:"nji-latn-au",njj:"njj-latn-cm",njl:"njl-latn-ss",njm:"njm-latn-in",njn:"njn-latn-in",njo:"njo-latn-in",njr:"njr-latn-ng",njs:"njs-latn-id",njt:"njt-latn-sr",nju:"nju-latn-au",njx:"njx-latn-cg",njy:"njy-latn-cm",njz:"njz-latn-in","njz-beng":"njz-beng-in",nka:"nka-latn-zm",nkb:"nkb-latn-in",nkc:"nkc-latn-cm",nkd:"nkd-latn-in",nke:"nke-latn-sb",nkf:"nkf-latn-in",nkg:"nkg-latn-zz",nkh:"nkh-latn-in",nki:"nki-latn-in","nki-beng":"nki-beng-in",nkj:"nkj-latn-id",nkk:"nkk-latn-vu",nkm:"nkm-latn-pg",nkn:"nkn-latn-ao",nko:"nko-latn-zz",nkq:"nkq-latn-gh",nkr:"nkr-latn-fm",nks:"nks-latn-id",nkt:"nkt-latn-tz",nku:"nku-latn-ci",nkv:"nkv-latn-mw",nkw:"nkw-latn-cd",nkx:"nkx-latn-ng",nkz:"nkz-latn-ng",nl:"nl-latn-nl",nla:"nla-latn-cm",nlc:"nlc-latn-id",nle:"nle-latn-ke",nlg:"nlg-latn-sb",nli:"nli-arab-af",nlj:"nlj-latn-cd",nlk:"nlk-latn-id",nlm:"nlm-arab-pk",nlo:"nlo-latn-cd",nlq:"nlq-latn-mm",nlu:"nlu-latn-gh",nlv:"nlv-latn-mx",nlw:"nlw-latn-au",nlx:"nlx-deva-in",nly:"nly-latn-au",nlz:"nlz-latn-sb",nma:"nma-latn-in",nmb:"nmb-latn-vu",nmc:"nmc-latn-td",nmd:"nmd-latn-ga",nme:"nme-latn-in",nmf:"nmf-latn-in",nmg:"nmg-latn-cm",nmh:"nmh-latn-in",nmi:"nmi-latn-ng",nmj:"nmj-latn-cf",nmk:"nmk-latn-vu",nml:"nml-latn-cm",nmm:"nmm-deva-np","nmm-tibt":"nmm-tibt-np",nmn:"nmn-latn-bw",nmo:"nmo-latn-in","nmo-beng":"nmo-beng-in",nmp:"nmp-latn-au",nmq:"nmq-latn-zw",nmr:"nmr-latn-cm",nms:"nms-latn-vu",nmt:"nmt-latn-fm",nmu:"nmu-latn-us",nmv:"nmv-latn-au",nmw:"nmw-latn-pg",nmx:"nmx-latn-pg",nmz:"nmz-latn-zz",nn:"nn-latn-no",nna:"nna-latn-au",nnb:"nnb-latn-cd",nnc:"nnc-latn-td",nnd:"nnd-latn-vu",nne:"nne-latn-ao",nnf:"nnf-latn-zz",nng:"nng-latn-in","nng-beng":"nng-beng-in",nnh:"nnh-latn-cm",nni:"nni-latn-id",nnj:"nnj-latn-et",nnk:"nnk-latn-zz",nnl:"nnl-latn-in",nnm:"nnm-latn-zz",nnn:"nnn-latn-td",nnp:"nnp-wcho-in",nnq:"nnq-latn-tz",nnr:"nnr-latn-au",nnt:"nnt-latn-us",nnu:"nnu-latn-gh",nnv:"nnv-latn-au",nnw:"nnw-latn-bf",nny:"nny-latn-au",nnz:"nnz-latn-cm",no:"no-latn-no",noa:"noa-latn-co",noc:"noc-latn-pg",nod:"nod-lana-th",noe:"noe-deva-in",nof:"nof-latn-pg",nog:"nog-cyrl-ru",noh:"noh-latn-pg",noi:"noi-deva-in",noj:"noj-latn-co",nok:"nok-latn-us",nom:"nom-latn-pe",non:"non-runr-se",nop:"nop-latn-zz",noq:"noq-latn-cd",nos:"nos-yiii-cn",not:"not-latn-pe",nou:"nou-latn-zz",nov:"nov-latn-001",now:"now-latn-tz",noy:"noy-latn-td",npb:"npb-tibt-bt",npg:"npg-latn-mm",nph:"nph-latn-in",npl:"npl-latn-mx",npn:"npn-latn-pg",npo:"npo-latn-in",nps:"nps-latn-id",npu:"npu-latn-in",npx:"npx-latn-sb",npy:"npy-latn-id",nqg:"nqg-latn-bj",nqk:"nqk-latn-bj",nql:"nql-latn-ao",nqm:"nqm-latn-id",nqn:"nqn-latn-pg",nqo:"nqo-nkoo-gn",nqq:"nqq-latn-mm",nqt:"nqt-latn-ng",nqy:"nqy-latn-mm",nr:"nr-latn-za",nra:"nra-latn-ga",nrb:"nrb-latn-zz",nre:"nre-latn-in",nrf:"nrf-latn-je",nrg:"nrg-latn-vu",nri:"nri-latn-in",nrk:"nrk-latn-au",nrl:"nrl-latn-au",nrm:"nrm-latn-my",nrp:"nrp-latn-it",nru:"nru-latn-cn","nru-hans":"nru-hans-cn","nru-hant":"nru-hant-cn",nrx:"nrx-latn-au",nrz:"nrz-latn-pg",nsa:"nsa-latn-in",nsb:"nsb-latn-za",nsc:"nsc-latn-ng",nsd:"nsd-yiii-cn",nse:"nse-latn-zm",nsf:"nsf-yiii-cn",nsg:"nsg-latn-tz",nsh:"nsh-latn-cm",nsk:"nsk-cans-ca",nsm:"nsm-latn-in",nsn:"nsn-latn-zz",nso:"nso-latn-za",nsq:"nsq-latn-us",nss:"nss-latn-zz",nst:"nst-tnsa-in",nsu:"nsu-latn-mx",nsv:"nsv-yiii-cn",nsw:"nsw-latn-vu",nsx:"nsx-latn-ao",nsy:"nsy-latn-id",nsz:"nsz-latn-us",ntd:"ntd-latn-my",nte:"nte-latn-mz",ntg:"ntg-latn-au",nti:"nti-latn-bf",ntj:"ntj-latn-au",ntk:"ntk-latn-tz",ntm:"ntm-latn-zz",nto:"nto-latn-cd",ntp:"ntp-latn-mx",ntr:"ntr-latn-zz",ntu:"ntu-latn-sb",ntx:"ntx-latn-mm",nty:"nty-yiii-vn",ntz:"ntz-arab-ir",nua:"nua-latn-nc",nuc:"nuc-latn-br",nud:"nud-latn-pg",nue:"nue-latn-cd",nuf:"nuf-latn-cn",nug:"nug-latn-au",nuh:"nuh-latn-ng",nui:"nui-latn-zz",nuj:"nuj-latn-ug",nuk:"nuk-latn-ca",num:"num-latn-to",nun:"nun-latn-mm",nuo:"nuo-latn-vn",nup:"nup-latn-zz",nuq:"nuq-latn-pg",nur:"nur-latn-pg",nus:"nus-latn-ss",nut:"nut-latn-vn",nuu:"nuu-latn-cd",nuv:"nuv-latn-zz",nuw:"nuw-latn-fm",nux:"nux-latn-zz",nuy:"nuy-latn-au",nuz:"nuz-latn-mx",nv:"nv-latn-us",nvh:"nvh-latn-vu",nvm:"nvm-latn-pg",nvo:"nvo-latn-cm",nwb:"nwb-latn-zz",nwc:"nwc-newa-np","nwc-brah":"nwc-brah-np","nwc-deva":"nwc-deva-np","nwc-sidd":"nwc-sidd-np",nwe:"nwe-latn-cm",nwg:"nwg-latn-au",nwi:"nwi-latn-vu",nwm:"nwm-latn-ss",nwo:"nwo-latn-au",nwr:"nwr-latn-pg",nww:"nww-latn-tz",nwx:"nwx-deva-np",nxa:"nxa-latn-tl",nxd:"nxd-latn-cd",nxe:"nxe-latn-id",nxg:"nxg-latn-id",nxi:"nxi-latn-tz",nxl:"nxl-latn-id",nxn:"nxn-latn-au",nxo:"nxo-latn-ga",nxq:"nxq-latn-cn",nxr:"nxr-latn-zz",nxx:"nxx-latn-id",ny:"ny-latn-mw",nyb:"nyb-latn-gh",nyc:"nyc-latn-cd",nyd:"nyd-latn-ke",nye:"nye-latn-ao",nyf:"nyf-latn-ke",nyg:"nyg-latn-cd",nyh:"nyh-latn-au",nyi:"nyi-latn-sd",nyj:"nyj-latn-cd",nyk:"nyk-latn-ao",nyl:"nyl-thai-th",nym:"nym-latn-tz",nyn:"nyn-latn-ug",nyo:"nyo-latn-ug",nyp:"nyp-latn-ug",nyq:"nyq-arab-ir",nyr:"nyr-latn-mw",nys:"nys-latn-au",nyt:"nyt-latn-au",nyu:"nyu-latn-mz",nyv:"nyv-latn-au",nyx:"nyx-latn-au",nyy:"nyy-latn-tz",nza:"nza-latn-cm",nzb:"nzb-latn-ga",nzd:"nzd-latn-cd",nzi:"nzi-latn-gh",nzk:"nzk-latn-cf",nzm:"nzm-latn-in",nzu:"nzu-latn-cg",nzy:"nzy-latn-td",nzz:"nzz-latn-ml",oaa:"oaa-cyrl-ru",oac:"oac-cyrl-ru",oar:"oar-syrc-sy",oav:"oav-geor-ge",obi:"obi-latn-us",obk:"obk-latn-ph",obl:"obl-latn-cm",obm:"obm-phnx-jo",obo:"obo-latn-ph",obr:"obr-mymr-mm",obt:"obt-latn-fr",obu:"obu-latn-ng",oc:"oc-latn-fr",oca:"oca-latn-pe",oco:"oco-latn-gb",ocu:"ocu-latn-mx",oda:"oda-latn-ng",odk:"odk-arab-pk",odt:"odt-latn-nl",odu:"odu-latn-ng",ofu:"ofu-latn-ng",ogb:"ogb-latn-ng",ogc:"ogc-latn-zz",ogg:"ogg-latn-ng",ogo:"ogo-latn-ng",ogu:"ogu-latn-ng",oht:"oht-xsux-tr",oia:"oia-latn-id",oie:"oie-latn-ss",oin:"oin-latn-pg",oj:"oj-cans-ca",ojb:"ojb-latn-ca","ojb-cans":"ojb-cans-ca",ojc:"ojc-latn-ca",ojs:"ojs-cans-ca",ojv:"ojv-latn-sb",ojw:"ojw-latn-ca","ojw-cans":"ojw-cans-ca",oka:"oka-latn-ca",okb:"okb-latn-ng",okc:"okc-latn-cd",okd:"okd-latn-ng",oke:"oke-latn-ng",okg:"okg-latn-au",oki:"oki-latn-ke",okk:"okk-latn-pg",okm:"okm-hang-kr",oko:"oko-hani-kr",okr:"okr-latn-zz",oks:"oks-latn-ng",oku:"oku-latn-cm",okv:"okv-latn-zz",okx:"okx-latn-ng",okz:"okz-khmr-kh",ola:"ola-deva-np","ola-tibt":"ola-tibt-cn",old:"old-latn-tz",ole:"ole-tibt-bt",olk:"olk-latn-au",olm:"olm-latn-ng",olo:"olo-latn-ru",olr:"olr-latn-vu",olt:"olt-latn-lt",olu:"olu-latn-ao",om:"om-latn-et",oma:"oma-latn-us",omb:"omb-latn-vu",omc:"omc-latn-pe",omg:"omg-latn-pe",omi:"omi-latn-cd",omk:"omk-cyrl-ru",oml:"oml-latn-cd",omo:"omo-latn-pg",omp:"omp-mtei-in",omr:"omr-modi-in",omt:"omt-latn-ke",omu:"omu-latn-pe",omw:"omw-latn-pg",ona:"ona-latn-ar",one:"one-latn-ca",ong:"ong-latn-zz",oni:"oni-latn-id",onj:"onj-latn-pg",onk:"onk-latn-pg",onn:"onn-latn-zz",ono:"ono-latn-ca",onp:"onp-latn-in","onp-deva":"onp-deva-in",onr:"onr-latn-pg",ons:"ons-latn-zz",ont:"ont-latn-pg",onu:"onu-latn-vu",onx:"onx-latn-id",ood:"ood-latn-us",oon:"oon-deva-in",oor:"oor-latn-za",opa:"opa-latn-ng",opk:"opk-latn-id",opm:"opm-latn-zz",opo:"opo-latn-pg",opt:"opt-latn-mx",opy:"opy-latn-br",or:"or-orya-in",ora:"ora-latn-sb",orc:"orc-latn-ke",ore:"ore-latn-pe",org:"org-latn-ng",orn:"orn-latn-my",oro:"oro-latn-zz",orr:"orr-latn-ng",ors:"ors-latn-my",ort:"ort-telu-in",oru:"oru-arab-zz",orv:"orv-cyrl-ru",orw:"orw-latn-br",orx:"orx-latn-ng",orz:"orz-latn-id",os:"os-cyrl-ge",osa:"osa-osge-us",osc:"osc-ital-it","osc-latn":"osc-latn-it",osi:"osi-java-id",oso:"oso-latn-ng",osp:"osp-latn-es",ost:"ost-latn-cm",osu:"osu-latn-pg",osx:"osx-latn-de",ota:"ota-arab-zz",otb:"otb-tibt-cn",otd:"otd-latn-id",ote:"ote-latn-mx",oti:"oti-latn-br",otk:"otk-orkh-mn",otl:"otl-latn-mx",otm:"otm-latn-mx",otn:"otn-latn-mx",otq:"otq-latn-mx",otr:"otr-latn-sd",ots:"ots-latn-mx",ott:"ott-latn-mx",otu:"otu-latn-br",otw:"otw-latn-ca",otx:"otx-latn-mx",oty:"oty-gran-in",otz:"otz-latn-mx",oub:"oub-latn-lr",oue:"oue-latn-pg",oui:"oui-ougr-143",oum:"oum-latn-pg",ovd:"ovd-latn-se",owi:"owi-latn-pg",owl:"owl-latn-gb",oyd:"oyd-latn-et",oym:"oym-latn-br",oyy:"oyy-latn-pg",ozm:"ozm-latn-zz",pa:"pa-guru-in","pa-arab":"pa-arab-pk","pa-pk":"pa-arab-pk",pab:"pab-latn-br",pac:"pac-latn-vn",pad:"pad-latn-br",pae:"pae-latn-cd",paf:"paf-latn-br",pag:"pag-latn-ph",pah:"pah-latn-br",pai:"pai-latn-ng",pak:"pak-latn-br",pal:"pal-phli-ir","pal-phlp":"pal-phlp-cn",pam:"pam-latn-ph",pao:"pao-latn-us",pap:"pap-latn-cw",paq:"paq-cyrl-tj",par:"par-latn-us",pas:"pas-latn-id",pau:"pau-latn-pw",pav:"pav-latn-br",paw:"paw-latn-us",pax:"pax-latn-br",pay:"pay-latn-hn",paz:"paz-latn-br",pbb:"pbb-latn-co",pbc:"pbc-latn-gy",pbe:"pbe-latn-mx",pbf:"pbf-latn-mx",pbg:"pbg-latn-ve",pbh:"pbh-latn-ve",pbi:"pbi-latn-zz",pbl:"pbl-latn-ng",pbm:"pbm-latn-mx",pbn:"pbn-latn-ng",pbo:"pbo-latn-gw",pbp:"pbp-latn-gn",pbr:"pbr-latn-tz",pbs:"pbs-latn-mx",pbt:"pbt-arab-af",pbv:"pbv-latn-in",pby:"pby-latn-pg",pca:"pca-latn-mx",pcb:"pcb-khmr-kh",pcc:"pcc-latn-cn","pcc-hani":"pcc-hani-cn",pcd:"pcd-latn-fr",pce:"pce-mymr-mm","pce-thai":"pce-thai-th",pcf:"pcf-mlym-in",pcg:"pcg-mlym-in","pcg-knda":"pcg-knda-in","pcg-taml":"pcg-taml-in",pch:"pch-deva-in",pci:"pci-deva-in","pci-orya":"pci-orya-in",pcj:"pcj-telu-in",pck:"pck-latn-in",pcm:"pcm-latn-ng",pcn:"pcn-latn-ng",pcp:"pcp-latn-bo",pcw:"pcw-latn-ng",pda:"pda-latn-pg",pdc:"pdc-latn-us",pdn:"pdn-latn-id",pdo:"pdo-latn-id",pdt:"pdt-latn-ca",pdu:"pdu-latn-mm","pdu-mymr":"pdu-mymr-mm",pea:"pea-latn-id",peb:"peb-latn-us",ped:"ped-latn-zz",pee:"pee-latn-id",peg:"peg-orya-in",pei:"pei-latn-mx",pek:"pek-latn-pg",pel:"pel-latn-id",pem:"pem-latn-cd",peo:"peo-xpeo-ir",pep:"pep-latn-pg",peq:"peq-latn-us",pev:"pev-latn-ve",pex:"pex-latn-zz",pey:"pey-latn-id",pez:"pez-latn-my",pfa:"pfa-latn-fm",pfe:"pfe-latn-cm",pfl:"pfl-latn-de",pga:"pga-latn-ss",pgd:"pgd-khar-pk",pgg:"pgg-deva-in",pgi:"pgi-latn-pg",pgk:"pgk-latn-vu",pgl:"pgl-ogam-ie",pgn:"pgn-ital-it",pgs:"pgs-latn-ng",pgu:"pgu-latn-id",phd:"phd-deva-in",phg:"phg-latn-vn",phh:"phh-latn-vn",phk:"phk-mymr-in",phl:"phl-arab-zz",phm:"phm-latn-mz",phn:"phn-phnx-lb",pho:"pho-laoo-la",phr:"phr-arab-pk",pht:"pht-thai-th",phv:"phv-arab-af",phw:"phw-deva-np",pi:"pi-sinh-in","pi-brah":"pi-brah-in","pi-deva":"pi-deva-in","pi-khar":"pi-khar-in","pi-khmr":"pi-khmr-in","pi-mymr":"pi-mymr-in","pi-thai":"pi-thai-in",pia:"pia-latn-mx",pib:"pib-latn-pe",pic:"pic-latn-ga",pid:"pid-latn-ve",pif:"pif-latn-fm",pig:"pig-latn-pe",pih:"pih-latn-nf",pij:"pij-latn-co",pil:"pil-latn-zz",pim:"pim-latn-us",pin:"pin-latn-pg",pio:"pio-latn-co",pip:"pip-latn-zz",pir:"pir-latn-br",pis:"pis-latn-sb",pit:"pit-latn-au",piu:"piu-latn-au",piv:"piv-latn-sb",piw:"piw-latn-tz",pix:"pix-latn-pg",piy:"piy-latn-ng",piz:"piz-latn-nc",pjt:"pjt-latn-au",pka:"pka-brah-in",pkb:"pkb-latn-ke",pkg:"pkg-latn-pg",pkh:"pkh-latn-bd","pkh-deva":"pkh-deva-bd",pkn:"pkn-latn-au",pko:"pko-latn-ke",pkp:"pkp-latn-ck",pkr:"pkr-mlym-in",pku:"pku-latn-id",pl:"pl-latn-pl",pla:"pla-latn-zz",plb:"plb-latn-vu",plc:"plc-latn-ph",pld:"pld-latn-gb",ple:"ple-latn-id",plg:"plg-latn-ar",plh:"plh-latn-id",plj:"plj-latn-ng",plk:"plk-arab-pk",pll:"pll-mymr-mm",pln:"pln-latn-co",plo:"plo-latn-mx",plr:"plr-latn-ci",pls:"pls-latn-mx",plu:"plu-latn-br",plv:"plv-latn-ph",plw:"plw-latn-ph",plz:"plz-latn-my",pma:"pma-latn-vu",pmb:"pmb-latn-cd",pmd:"pmd-latn-au",pme:"pme-latn-nc",pmf:"pmf-latn-id",pmh:"pmh-brah-in",pmi:"pmi-latn-cn",pmj:"pmj-latn-cn",pml:"pml-latn-tn",pmm:"pmm-latn-cm",pmn:"pmn-latn-cm",pmo:"pmo-latn-id",pmq:"pmq-latn-mx",pmr:"pmr-latn-pg",pms:"pms-latn-it",pmt:"pmt-latn-pf",pmw:"pmw-latn-us",pmx:"pmx-latn-in",pmy:"pmy-latn-id",pmz:"pmz-latn-mx",pna:"pna-latn-my",pnc:"pnc-latn-id",pnd:"pnd-latn-ao",pne:"pne-latn-my",png:"png-latn-zz",pnh:"pnh-latn-ck",pni:"pni-latn-id",pnj:"pnj-latn-au",pnk:"pnk-latn-bo",pnl:"pnl-latn-bf",pnm:"pnm-latn-my",pnn:"pnn-latn-zz",pno:"pno-latn-pe",pnp:"pnp-latn-id",pnq:"pnq-latn-bf",pnr:"pnr-latn-pg",pns:"pns-latn-id",pnt:"pnt-grek-gr",pnv:"pnv-latn-au",pnw:"pnw-latn-au",pny:"pny-latn-cm",pnz:"pnz-latn-cf",poc:"poc-latn-gt",poe:"poe-latn-mx",pof:"pof-latn-cd",pog:"pog-latn-br",poh:"poh-latn-gt",poi:"poi-latn-mx",pok:"pok-latn-br",pom:"pom-latn-us",pon:"pon-latn-fm",poo:"poo-latn-us",pop:"pop-latn-nc",poq:"poq-latn-mx",pos:"pos-latn-mx",pot:"pot-latn-us",pov:"pov-latn-gw",pow:"pow-latn-mx",poy:"poy-latn-tz",ppa:"ppa-deva-in",ppe:"ppe-latn-pg",ppi:"ppi-latn-mx",ppk:"ppk-latn-id",ppl:"ppl-latn-sv",ppm:"ppm-latn-id",ppn:"ppn-latn-pg",ppo:"ppo-latn-zz",ppp:"ppp-latn-cd",ppq:"ppq-latn-pg",pps:"pps-latn-mx",ppt:"ppt-latn-pg",pqa:"pqa-latn-ng",pqm:"pqm-latn-ca",pra:"pra-khar-pk",prc:"prc-arab-af",prd:"prd-arab-ir",pre:"pre-latn-st",prf:"prf-latn-ph",prg:"prg-latn-001",prh:"prh-latn-ph",pri:"pri-latn-nc",prk:"prk-latn-mm",prm:"prm-latn-pg",pro:"pro-latn-fr",prp:"prp-gujr-in",prq:"prq-latn-pe",prr:"prr-latn-br",prt:"prt-thai-th",pru:"pru-latn-id",prw:"prw-latn-pg",prx:"prx-arab-in","prx-tibt":"prx-tibt-in",ps:"ps-arab-af",psa:"psa-latn-id",pse:"pse-latn-id",psh:"psh-arab-af",psi:"psi-arab-af",psm:"psm-latn-bo",psn:"psn-latn-id",psq:"psq-latn-pg",pss:"pss-latn-zz",pst:"pst-arab-pk",psw:"psw-latn-vu",pt:"pt-latn-br",pta:"pta-latn-py",pth:"pth-latn-br",pti:"pti-latn-au",ptn:"ptn-latn-id",pto:"pto-latn-br",ptp:"ptp-latn-zz",ptr:"ptr-latn-vu",ptt:"ptt-latn-id",ptu:"ptu-latn-id",ptv:"ptv-latn-vu",pua:"pua-latn-mx",pub:"pub-latn-in",puc:"puc-latn-id",pud:"pud-latn-id",pue:"pue-latn-ar",puf:"puf-latn-id",pug:"pug-latn-bf",pui:"pui-latn-co",puj:"puj-latn-id",pum:"pum-deva-np",puo:"puo-latn-vn",pup:"pup-latn-pg",puq:"puq-latn-pe",pur:"pur-latn-br",put:"put-latn-id",puu:"puu-latn-ga",puw:"puw-latn-fm",pux:"pux-latn-pg",puy:"puy-latn-us",pwa:"pwa-latn-zz",pwb:"pwb-latn-ng",pwg:"pwg-latn-pg",pwm:"pwm-latn-ph",pwn:"pwn-latn-tw",pwo:"pwo-mymr-mm",pwr:"pwr-deva-in",pww:"pww-thai-th",pxm:"pxm-latn-mx",pye:"pye-latn-ci",pym:"pym-latn-ng",pyn:"pyn-latn-br",pyu:"pyu-latn-tw","pyu-hani":"pyu-hani-tw",pyx:"pyx-mymr-mm",pyy:"pyy-latn-mm",pzh:"pzh-latn-tw",pzn:"pzn-latn-mm",qu:"qu-latn-pe",qua:"qua-latn-us",qub:"qub-latn-pe",quc:"quc-latn-gt",qud:"qud-latn-ec",quf:"quf-latn-pe",qug:"qug-latn-ec",qui:"qui-latn-us",quk:"quk-latn-pe",qul:"qul-latn-bo",qum:"qum-latn-gt",qun:"qun-latn-us",qup:"qup-latn-pe",quq:"quq-latn-es",qur:"qur-latn-pe",qus:"qus-latn-ar",quv:"quv-latn-gt",quw:"quw-latn-ec",qux:"qux-latn-pe",quy:"quy-latn-pe",qva:"qva-latn-pe",qvc:"qvc-latn-pe",qve:"qve-latn-pe",qvh:"qvh-latn-pe",qvi:"qvi-latn-ec",qvj:"qvj-latn-ec",qvl:"qvl-latn-pe",qvm:"qvm-latn-pe",qvn:"qvn-latn-pe",qvo:"qvo-latn-pe",qvp:"qvp-latn-pe",qvs:"qvs-latn-pe",qvw:"qvw-latn-pe",qvz:"qvz-latn-ec",qwa:"qwa-latn-pe",qwc:"qwc-latn-pe",qwh:"qwh-latn-pe",qwm:"qwm-latn-ru","qwm-cyrl":"qwm-cyrl-ru","qwm-runr":"qwm-runr-ru",qws:"qws-latn-pe",qwt:"qwt-latn-us",qxa:"qxa-latn-pe",qxc:"qxc-latn-pe",qxh:"qxh-latn-pe",qxl:"qxl-latn-ec",qxn:"qxn-latn-pe",qxo:"qxo-latn-pe",qxp:"qxp-latn-pe",qxq:"qxq-arab-ir",qxr:"qxr-latn-ec",qxt:"qxt-latn-pe",qxu:"qxu-latn-pe",qxw:"qxw-latn-pe",qya:"qya-latn-001",qyp:"qyp-latn-us",raa:"raa-deva-np",rab:"rab-deva-np",rac:"rac-latn-id",rad:"rad-latn-vn",raf:"raf-deva-np",rag:"rag-latn-ke",rah:"rah-beng-in","rah-latn":"rah-latn-in",rai:"rai-latn-zz",raj:"raj-deva-in",rak:"rak-latn-pg",ram:"ram-latn-br",ran:"ran-latn-id",rao:"rao-latn-zz",rap:"rap-latn-cl",rar:"rar-latn-ck",rav:"rav-deva-np",raw:"raw-latn-mm",rax:"rax-latn-ng",ray:"ray-latn-pf",raz:"raz-latn-id",rbb:"rbb-mymr-mm",rbk:"rbk-latn-ph",rbl:"rbl-latn-ph",rbp:"rbp-latn-au",rcf:"rcf-latn-re",rdb:"rdb-arab-ir",rea:"rea-latn-pg",reb:"reb-latn-id",ree:"ree-latn-my",reg:"reg-latn-tz",rei:"rei-orya-in","rei-telu":"rei-telu-in",rej:"rej-latn-id",rel:"rel-latn-zz",rem:"rem-latn-pe",ren:"ren-latn-vn",res:"res-latn-zz",ret:"ret-latn-id",rey:"rey-latn-bo",rga:"rga-latn-vu",rgn:"rgn-latn-it",rgr:"rgr-latn-pe",rgs:"rgs-latn-vn",rgu:"rgu-latn-id",rhg:"rhg-rohg-mm",rhp:"rhp-latn-pg",ria:"ria-latn-in",rif:"rif-latn-ma",ril:"ril-latn-mm",rim:"rim-latn-tz",rin:"rin-latn-ng",rir:"rir-latn-id",rit:"rit-latn-au",riu:"riu-latn-id",rjg:"rjg-latn-id",rji:"rji-deva-np",rjs:"rjs-deva-np",rka:"rka-khmr-kh",rkb:"rkb-latn-br",rkh:"rkh-latn-ck",rki:"rki-mymr-mm",rkm:"rkm-latn-bf",rkt:"rkt-beng-bd",rkw:"rkw-latn-au",rm:"rm-latn-ch",rma:"rma-latn-ni",rmb:"rmb-latn-au",rmc:"rmc-latn-sk",rmd:"rmd-latn-dk",rme:"rme-latn-gb",rmf:"rmf-latn-fi",rmg:"rmg-latn-no",rmh:"rmh-latn-id",rmi:"rmi-armn-am",rmk:"rmk-latn-pg",rml:"rml-latn-pl","rml-cyrl":"rml-cyrl-by",rmm:"rmm-latn-id",rmn:"rmn-latn-rs","rmn-cyrl":"rmn-cyrl-bg","rmn-grek":"rmn-grek-gr",rmo:"rmo-latn-ch",rmp:"rmp-latn-pg",rmq:"rmq-latn-es",rmt:"rmt-arab-ir",rmu:"rmu-latn-se",rmw:"rmw-latn-gb",rmx:"rmx-latn-vn",rmz:"rmz-mymr-in",rn:"rn-latn-bi",rna:"rna-latn-zz",rnd:"rnd-latn-cd",rng:"rng-latn-mz",rnl:"rnl-latn-in",rnn:"rnn-latn-id",rnr:"rnr-latn-au",rnw:"rnw-latn-tz",ro:"ro-latn-ro",rob:"rob-latn-id",roc:"roc-latn-vn",rod:"rod-latn-ng",roe:"roe-latn-pg",rof:"rof-latn-tz",rog:"rog-latn-vn",rol:"rol-latn-ph",rom:"rom-latn-ro","rom-cyrl":"rom-cyrl-ro",roo:"roo-latn-zz",rop:"rop-latn-au",ror:"ror-latn-id",rou:"rou-latn-td",row:"row-latn-id",rpn:"rpn-latn-vu",rpt:"rpt-latn-pg",rri:"rri-latn-sb",rro:"rro-latn-zz",rrt:"rrt-latn-au",rsk:"rsk-cyrl-rs",rtc:"rtc-latn-mm",rth:"rth-latn-id",rtm:"rtm-latn-fj",rtw:"rtw-deva-in",ru:"ru-cyrl-ru",rub:"rub-latn-ug",ruc:"ruc-latn-ug",rue:"rue-cyrl-ua",ruf:"ruf-latn-tz",rug:"rug-latn-sb",rui:"rui-latn-tz",ruk:"ruk-latn-ng",ruo:"ruo-latn-hr",rup:"rup-latn-ro","rup-grek":"rup-grek-gr",ruq:"ruq-latn-gr",rut:"rut-cyrl-ru","rut-latn":"rut-latn-az",ruu:"ruu-latn-my",ruy:"ruy-latn-ng",ruz:"ruz-latn-ng",rw:"rw-latn-rw",rwa:"rwa-latn-pg",rwk:"rwk-latn-tz",rwl:"rwl-latn-tz",rwm:"rwm-latn-ug",rwo:"rwo-latn-zz",rwr:"rwr-deva-in",rxd:"rxd-latn-au",rxw:"rxw-latn-au",ryu:"ryu-kana-jp",sa:"sa-deva-in",saa:"saa-latn-td",sab:"sab-latn-pa",sac:"sac-latn-us",sad:"sad-latn-tz",sae:"sae-latn-br",saf:"saf-latn-gh",sah:"sah-cyrl-ru",saj:"saj-latn-id",sak:"sak-latn-ga",sam:"sam-samr-ps","sam-hebr":"sam-hebr-ps","sam-syrc":"sam-syrc-ps",sao:"sao-latn-id",saq:"saq-latn-ke",sar:"sar-latn-bo",sas:"sas-latn-id",sat:"sat-olck-in",sau:"sau-latn-id",sav:"sav-latn-sn",saw:"saw-latn-id",sax:"sax-latn-vu",say:"say-latn-ng",saz:"saz-saur-in",sba:"sba-latn-zz",sbb:"sbb-latn-sb",sbc:"sbc-latn-pg",sbd:"sbd-latn-bf",sbe:"sbe-latn-zz",sbg:"sbg-latn-id",sbh:"sbh-latn-pg",sbi:"sbi-latn-pg",sbj:"sbj-latn-td",sbk:"sbk-latn-tz",sbl:"sbl-latn-ph",sbm:"sbm-latn-tz",sbn:"sbn-arab-pk",sbo:"sbo-latn-my",sbp:"sbp-latn-tz",sbq:"sbq-latn-pg",sbr:"sbr-latn-id",sbs:"sbs-latn-na",sbt:"sbt-latn-id",sbu:"sbu-tibt-in","sbu-deva":"sbu-deva-in",sbv:"sbv-latn-it",sbw:"sbw-latn-ga",sbx:"sbx-latn-id",sby:"sby-latn-zm",sbz:"sbz-latn-cf",sc:"sc-latn-it",scb:"scb-latn-vn",sce:"sce-latn-cn","sce-arab":"sce-arab-cn",scf:"scf-latn-pa",scg:"scg-latn-id",sch:"sch-latn-in",sci:"sci-latn-lk",sck:"sck-deva-in",scl:"scl-arab-zz",scn:"scn-latn-it",sco:"sco-latn-gb",scp:"scp-deva-np",scs:"scs-latn-ca","scs-cans":"scs-cans-ca",sct:"sct-laoo-la",scu:"scu-takr-in",scv:"scv-latn-ng",scw:"scw-latn-ng",scx:"scx-grek-it",sd:"sd-arab-pk","sd-deva":"sd-deva-in","sd-in":"sd-deva-in","sd-khoj":"sd-khoj-in","sd-sind":"sd-sind-in",sda:"sda-latn-id",sdb:"sdb-arab-iq",sdc:"sdc-latn-it",sde:"sde-latn-ng",sdf:"sdf-arab-iq",sdg:"sdg-arab-af",sdh:"sdh-arab-ir",sdj:"sdj-latn-cg",sdk:"sdk-latn-pg",sdn:"sdn-latn-it",sdo:"sdo-latn-my",sdq:"sdq-latn-id",sds:"sds-arab-tn",sdu:"sdu-latn-id",sdx:"sdx-latn-my",se:"se-latn-no",sea:"sea-latn-my",seb:"seb-latn-ci",sec:"sec-latn-ca",sed:"sed-latn-vn",see:"see-latn-us",sef:"sef-latn-ci",seg:"seg-latn-tz",seh:"seh-latn-mz",sei:"sei-latn-mx",sej:"sej-latn-pg",sek:"sek-latn-ca","sek-cans":"sek-cans-ca",sel:"sel-cyrl-ru",sen:"sen-latn-bf",seo:"seo-latn-pg",sep:"sep-latn-bf",seq:"seq-latn-bf",ser:"ser-latn-us",ses:"ses-latn-ml",set:"set-latn-id",seu:"seu-latn-id",sev:"sev-latn-ci",sew:"sew-latn-pg",sey:"sey-latn-ec",sez:"sez-latn-mm",sfe:"sfe-latn-ph",sfm:"sfm-plrd-cn",sfw:"sfw-latn-gh",sg:"sg-latn-cf",sga:"sga-ogam-ie",sgb:"sgb-latn-ph",sgc:"sgc-latn-ke",sgd:"sgd-latn-ph",sge:"sge-latn-id",sgh:"sgh-cyrl-tj","sgh-arab":"sgh-arab-af","sgh-latn":"sgh-latn-tj",sgi:"sgi-latn-cm",sgj:"sgj-deva-in",sgm:"sgm-latn-ke",sgp:"sgp-latn-in",sgr:"sgr-arab-ir",sgs:"sgs-latn-lt",sgt:"sgt-tibt-bt",sgu:"sgu-latn-id",sgw:"sgw-ethi-zz",sgy:"sgy-arab-af",sgz:"sgz-latn-zz",sha:"sha-latn-ng",shb:"shb-latn-br",shc:"shc-latn-cd",shd:"shd-arab-pk",she:"she-latn-et",shg:"shg-latn-bw",shh:"shh-latn-us",shi:"shi-tfng-ma",shj:"shj-latn-sd",shk:"shk-latn-zz",shm:"shm-arab-ir",shn:"shn-mymr-mm",sho:"sho-latn-ng",shp:"shp-latn-pe",shq:"shq-latn-zm",shr:"shr-latn-cd",shs:"shs-latn-ca",sht:"sht-latn-us",shu:"shu-arab-zz",shv:"shv-arab-om",shw:"shw-latn-sd",shy:"shy-latn-dz","shy-arab":"shy-arab-dz","shy-tfng":"shy-tfng-dz",shz:"shz-latn-ml",si:"si-sinh-lk",sia:"sia-cyrl-ru",sib:"sib-latn-my",sid:"sid-latn-et",sie:"sie-latn-zm",sif:"sif-latn-bf",sig:"sig-latn-zz",sih:"sih-latn-nc",sii:"sii-latn-in",sij:"sij-latn-pg",sik:"sik-latn-br",sil:"sil-latn-zz",sim:"sim-latn-zz",sip:"sip-tibt-in",siq:"siq-latn-pg",sir:"sir-latn-ng",sis:"sis-latn-us",siu:"siu-latn-pg",siv:"siv-latn-pg",siw:"siw-latn-pg",six:"six-latn-pg",siy:"siy-arab-ir",siz:"siz-arab-eg",sja:"sja-latn-co",sjb:"sjb-latn-id",sjd:"sjd-cyrl-ru",sje:"sje-latn-se",sjg:"sjg-latn-td",sjl:"sjl-latn-in",sjm:"sjm-latn-ph",sjp:"sjp-deva-in","sjp-beng":"sjp-beng-in",sjr:"sjr-latn-zz",sjt:"sjt-cyrl-ru",sju:"sju-latn-se",sjw:"sjw-latn-us",sk:"sk-latn-sk",ska:"ska-latn-us",skb:"skb-thai-th",skc:"skc-latn-zz",skd:"skd-latn-us",ske:"ske-latn-vu",skf:"skf-latn-br",skg:"skg-latn-mg",skh:"skh-latn-id",ski:"ski-latn-id",skj:"skj-deva-np",skm:"skm-latn-pg",skn:"skn-latn-ph",sko:"sko-latn-id",skp:"skp-latn-my",skq:"skq-latn-bf",skr:"skr-arab-pk",sks:"sks-latn-zz",skt:"skt-latn-cd",sku:"sku-latn-vu",skv:"skv-latn-id",skw:"skw-latn-gy",skx:"skx-latn-id",sky:"sky-latn-sb",skz:"skz-latn-id",sl:"sl-latn-si",slc:"slc-latn-co",sld:"sld-latn-zz",slg:"slg-latn-id",slh:"slh-latn-us",sli:"sli-latn-pl",slj:"slj-latn-br",sll:"sll-latn-zz",slm:"slm-latn-ph",sln:"sln-latn-us",slp:"slp-latn-id",slq:"slq-arab-ir",slr:"slr-latn-cn",slu:"slu-latn-id",slw:"slw-latn-pg",slx:"slx-latn-cd",sly:"sly-latn-id",slz:"slz-latn-id",sm:"sm-latn-ws",sma:"sma-latn-se",smb:"smb-latn-pg",smc:"smc-latn-pg",smd:"smd-latn-ao",smf:"smf-latn-pg",smg:"smg-latn-pg",smh:"smh-yiii-cn",smj:"smj-latn-se",smk:"smk-latn-ph",sml:"sml-latn-ph",smn:"smn-latn-fi",smp:"smp-samr-il",smq:"smq-latn-zz",smr:"smr-latn-id",sms:"sms-latn-fi",smt:"smt-latn-in",smu:"smu-khmr-kh",smw:"smw-latn-id",smx:"smx-latn-cd",smy:"smy-arab-ir",smz:"smz-latn-pg",sn:"sn-latn-zw",snb:"snb-latn-my",snc:"snc-latn-zz",sne:"sne-latn-my",snf:"snf-latn-sn",sng:"sng-latn-cd","sng-brai":"sng-brai-cd",sni:"sni-latn-pe",snj:"snj-latn-cf",snk:"snk-latn-ml",snl:"snl-latn-ph",snm:"snm-latn-ug",snn:"snn-latn-co",sno:"sno-latn-us",snp:"snp-latn-zz",snq:"snq-latn-ga",snr:"snr-latn-pg",sns:"sns-latn-vu",snu:"snu-latn-id",snv:"snv-latn-my",snw:"snw-latn-gh",snx:"snx-latn-zz",sny:"sny-latn-zz",snz:"snz-latn-pg",so:"so-latn-so",soa:"soa-tavt-th","soa-thai":"soa-thai-th",sob:"sob-latn-id",soc:"soc-latn-cd",sod:"sod-latn-cd",soe:"soe-latn-cd",sog:"sog-sogd-uz",soi:"soi-deva-np",sok:"sok-latn-zz",sol:"sol-latn-pg",soo:"soo-latn-cd",sop:"sop-latn-cd",soq:"soq-latn-zz",sor:"sor-latn-td",sos:"sos-latn-bf",sou:"sou-thai-th",sov:"sov-latn-pw",sow:"sow-latn-pg",sox:"sox-latn-cm",soy:"soy-latn-zz",soz:"soz-latn-tz",spb:"spb-latn-id",spc:"spc-latn-ve",spd:"spd-latn-zz",spe:"spe-latn-pg",spg:"spg-latn-my",spi:"spi-latn-id",spk:"spk-latn-pg",spl:"spl-latn-zz",spm:"spm-latn-pg",spn:"spn-latn-py",spo:"spo-latn-us",spp:"spp-latn-ml",spq:"spq-latn-pe",spr:"spr-latn-id",sps:"sps-latn-zz",spt:"spt-tibt-in",spv:"spv-orya-in",sq:"sq-latn-al",sqa:"sqa-latn-ng",sqh:"sqh-latn-ng",sqm:"sqm-latn-cf",sqo:"sqo-arab-ir",sqq:"sqq-laoo-la",sqt:"sqt-arab-ye","sqt-latn":"sqt-latn-ye",squ:"squ-latn-ca",sr:"sr-cyrl-rs","sr-me":"sr-latn-me","sr-ro":"sr-latn-ro","sr-ru":"sr-latn-ru","sr-tr":"sr-latn-tr",sra:"sra-latn-pg",srb:"srb-sora-in",sre:"sre-latn-id",srf:"srf-latn-pg",srg:"srg-latn-ph",srh:"srh-arab-cn",sri:"sri-latn-co",srk:"srk-latn-my",srl:"srl-latn-id",srm:"srm-latn-sr",srn:"srn-latn-sr",sro:"sro-latn-it",srq:"srq-latn-bo",srr:"srr-latn-sn",srs:"srs-latn-ca",srt:"srt-latn-id",sru:"sru-latn-br",srv:"srv-latn-ph",srw:"srw-latn-id",srx:"srx-deva-in",sry:"sry-latn-pg",srz:"srz-arab-ir",ss:"ss-latn-za",ssb:"ssb-latn-ph",ssc:"ssc-latn-tz",ssd:"ssd-latn-zz",sse:"sse-latn-ph","sse-arab":"sse-arab-ph",ssf:"ssf-latn-tw",ssg:"ssg-latn-zz",ssh:"ssh-arab-ae",ssj:"ssj-latn-pg",ssl:"ssl-latn-gh",ssm:"ssm-latn-my",ssn:"ssn-latn-ke",sso:"sso-latn-pg",ssq:"ssq-latn-id",sss:"sss-laoo-la","sss-thai":"sss-thai-th",sst:"sst-latn-pg",ssu:"ssu-latn-pg",ssv:"ssv-latn-vu",ssx:"ssx-latn-pg",ssy:"ssy-latn-er",ssz:"ssz-latn-pg",st:"st-latn-za",sta:"sta-latn-zm",stb:"stb-latn-ph",ste:"ste-latn-id",stf:"stf-latn-pg",stg:"stg-latn-vn",sth:"sth-latn-ie",sti:"sti-latn-vn","sti-kh":"sti-latn-kh",stj:"stj-latn-bf",stk:"stk-latn-zz",stl:"stl-latn-nl",stm:"stm-latn-pg",stn:"stn-latn-sb",sto:"sto-latn-ca",stp:"stp-latn-mx",stq:"stq-latn-de",str:"str-latn-ca",sts:"sts-arab-af",stt:"stt-latn-vn",stv:"stv-ethi-et","stv-arab":"stv-arab-et",stw:"stw-latn-fm",sty:"sty-cyrl-ru",su:"su-latn-id",sua:"sua-latn-zz",sub:"sub-latn-cd",suc:"suc-latn-ph",sue:"sue-latn-zz",sug:"sug-latn-pg",sui:"sui-latn-pg",suj:"suj-latn-tz",suk:"suk-latn-tz",suo:"suo-latn-pg",suq:"suq-latn-et","suq-ethi":"suq-ethi-et",sur:"sur-latn-zz",sus:"sus-latn-gn",sut:"sut-latn-ni",suv:"suv-latn-in","suv-beng":"suv-beng-in","suv-deva":"suv-deva-in",suw:"suw-latn-tz",suy:"suy-latn-br",suz:"suz-deva-np",sv:"sv-latn-se",sva:"sva-geor-ge","sva-cyrl":"sva-cyrl-ge","sva-latn":"sva-latn-ge",svb:"svb-latn-pg",svc:"svc-latn-vc",sve:"sve-latn-id",svm:"svm-latn-it",svs:"svs-latn-sb",sw:"sw-latn-tz",swb:"swb-arab-yt",swc:"swc-latn-cd",swf:"swf-latn-cd",swg:"swg-latn-de",swi:"swi-hani-cn",swj:"swj-latn-ga",swk:"swk-latn-mw",swm:"swm-latn-pg",swo:"swo-latn-br",swp:"swp-latn-zz",swq:"swq-latn-cm",swr:"swr-latn-id",sws:"sws-latn-id",swt:"swt-latn-id",swu:"swu-latn-id",swv:"swv-deva-in",sww:"sww-latn-vu",swx:"swx-latn-br",swy:"swy-latn-td",sxb:"sxb-latn-ke",sxe:"sxe-latn-ga",sxn:"sxn-latn-id",sxr:"sxr-latn-tw",sxs:"sxs-latn-ng",sxu:"sxu-latn-de","sxu-runr":"sxu-runr-de",sxw:"sxw-latn-zz",sya:"sya-latn-id",syb:"syb-latn-ph",syc:"syc-syrc-tr",syi:"syi-latn-ga",syk:"syk-latn-ng",syl:"syl-beng-bd",sym:"sym-latn-bf",syn:"syn-syrc-ir",syo:"syo-latn-kh",syr:"syr-syrc-iq",sys:"sys-latn-td",syw:"syw-deva-np",syx:"syx-latn-ga",sza:"sza-latn-my",szb:"szb-latn-id",szc:"szc-latn-my",szd:"szd-latn-my",szg:"szg-latn-cd",szl:"szl-latn-pl",szn:"szn-latn-id",szp:"szp-latn-id",szv:"szv-latn-cm",szw:"szw-latn-id",szy:"szy-latn-tw",ta:"ta-taml-in",taa:"taa-latn-us",tab:"tab-cyrl-ru",tac:"tac-latn-mx",tad:"tad-latn-id",tae:"tae-latn-br",taf:"taf-latn-br",tag:"tag-latn-sd",taj:"taj-deva-np",tak:"tak-latn-ng",tal:"tal-latn-zz",tan:"tan-latn-zz",tao:"tao-latn-tw",tap:"tap-latn-cd",taq:"taq-latn-zz",tar:"tar-latn-mx",tas:"tas-latn-vn",tau:"tau-latn-us",tav:"tav-latn-co",taw:"taw-latn-pg",tax:"tax-latn-td",tay:"tay-latn-tw","tay-hans":"tay-hans-tw","tay-hant":"tay-hant-tw",taz:"taz-latn-sd",tba:"tba-latn-br",tbc:"tbc-latn-zz",tbd:"tbd-latn-zz",tbe:"tbe-latn-sb",tbf:"tbf-latn-zz",tbg:"tbg-latn-zz",tbh:"tbh-latn-au",tbi:"tbi-latn-sd",tbj:"tbj-latn-pg",tbk:"tbk-tagb-ph","tbk-hano":"tbk-hano-ph","tbk-latn":"tbk-latn-ph",tbl:"tbl-latn-ph",tbm:"tbm-latn-cd",tbn:"tbn-latn-co",tbo:"tbo-latn-zz",tbp:"tbp-latn-id",tbs:"tbs-latn-pg",tbt:"tbt-latn-cd",tbu:"tbu-latn-mx",tbv:"tbv-latn-pg",tbw:"tbw-latn-ph",tbx:"tbx-latn-pg",tby:"tby-latn-id",tbz:"tbz-latn-zz",tca:"tca-latn-br",tcb:"tcb-latn-us",tcc:"tcc-latn-tz",tcd:"tcd-latn-gh",tce:"tce-latn-ca",tcf:"tcf-latn-mx",tcg:"tcg-latn-id",tch:"tch-latn-tc",tci:"tci-latn-zz",tck:"tck-latn-ga",tcm:"tcm-latn-id",tcn:"tcn-tibt-np",tco:"tco-mymr-mm",tcp:"tcp-latn-mm",tcq:"tcq-latn-id",tcs:"tcs-latn-au",tcu:"tcu-latn-mx",tcw:"tcw-latn-mx",tcx:"tcx-taml-in",tcy:"tcy-knda-in",tcz:"tcz-latn-in",tda:"tda-tfng-ne","tda-arab":"tda-arab-ne","tda-latn":"tda-latn-ne",tdb:"tdb-deva-in","tdb-beng":"tdb-beng-in","tdb-kthi":"tdb-kthi-in",tdc:"tdc-latn-co",tdd:"tdd-tale-cn",tde:"tde-latn-ml",tdg:"tdg-deva-np",tdh:"tdh-deva-np",tdi:"tdi-latn-id",tdj:"tdj-latn-id",tdk:"tdk-latn-ng",tdl:"tdl-latn-ng",tdm:"tdm-latn-gy",tdn:"tdn-latn-id",tdo:"tdo-latn-ng",tdq:"tdq-latn-ng",tdr:"tdr-latn-vn",tds:"tds-latn-id",tdt:"tdt-latn-tl",tdu:"tdu-latn-my",tdv:"tdv-latn-ng",tdx:"tdx-latn-mg",tdy:"tdy-latn-ph",te:"te-telu-in",tea:"tea-latn-my",teb:"teb-latn-ec",tec:"tec-latn-ke",ted:"ted-latn-zz",tee:"tee-latn-mx",teg:"teg-latn-ga",teh:"teh-latn-ar",tei:"tei-latn-pg",tek:"tek-latn-cd",tem:"tem-latn-sl",ten:"ten-latn-co",teo:"teo-latn-ug",tep:"tep-latn-mx",teq:"teq-latn-sd",ter:"ter-latn-br",tes:"tes-java-id",tet:"tet-latn-tl",teu:"teu-latn-ug",tev:"tev-latn-id",tew:"tew-latn-us",tex:"tex-latn-ss",tey:"tey-latn-sd",tfi:"tfi-latn-zz",tfn:"tfn-latn-us",tfo:"tfo-latn-id",tfr:"tfr-latn-pa",tft:"tft-latn-id",tg:"tg-cyrl-tj","tg-arab":"tg-arab-pk","tg-pk":"tg-arab-pk",tga:"tga-latn-ke",tgb:"tgb-latn-my",tgc:"tgc-latn-zz",tgd:"tgd-latn-ng",tge:"tge-deva-np",tgf:"tgf-tibt-bt",tgh:"tgh-latn-tt",tgi:"tgi-latn-pg",tgj:"tgj-latn-in",tgn:"tgn-latn-ph",tgo:"tgo-latn-zz",tgp:"tgp-latn-vu",tgq:"tgq-latn-my",tgs:"tgs-latn-vu",tgt:"tgt-latn-ph","tgt-hano":"tgt-hano-ph","tgt-tagb":"tgt-tagb-ph",tgu:"tgu-latn-zz",tgv:"tgv-latn-br",tgw:"tgw-latn-ci",tgx:"tgx-latn-ca",tgy:"tgy-latn-ss",tgz:"tgz-latn-au",th:"th-thai-th",thd:"thd-latn-au",the:"the-deva-np",thf:"thf-deva-np",thh:"thh-latn-mx",thi:"thi-tale-la",thk:"thk-latn-ke",thl:"thl-deva-np",thm:"thm-thai-th",thp:"thp-latn-ca","thp-dupl":"thp-dupl-ca",thq:"thq-deva-np",thr:"thr-deva-np",ths:"ths-deva-np",tht:"tht-latn-ca",thu:"thu-latn-ss",thv:"thv-latn-dz","thv-arab":"thv-arab-dz","thv-tfng":"thv-tfng-dz",thy:"thy-latn-ng",thz:"thz-latn-ne","thz-tfng":"thz-tfng-ne",ti:"ti-ethi-et",tic:"tic-latn-sd",tif:"tif-latn-zz",tig:"tig-ethi-er",tih:"tih-latn-my",tii:"tii-latn-cd",tij:"tij-deva-np",tik:"tik-latn-zz",til:"til-latn-us",tim:"tim-latn-zz",tin:"tin-cyrl-ru",tio:"tio-latn-zz",tip:"tip-latn-id",tiq:"tiq-latn-bf",tis:"tis-latn-ph",tit:"tit-latn-co",tiu:"tiu-latn-ph",tiv:"tiv-latn-ng",tiw:"tiw-latn-au",tix:"tix-latn-us",tiy:"tiy-latn-ph",tja:"tja-latn-lr",tjg:"tjg-latn-id",tji:"tji-latn-cn",tjj:"tjj-latn-au",tjl:"tjl-mymr-mm",tjn:"tjn-latn-ci",tjo:"tjo-arab-dz",tjp:"tjp-latn-au",tjs:"tjs-latn-cn",tju:"tju-latn-au",tjw:"tjw-latn-au",tk:"tk-latn-tm",tka:"tka-latn-br",tkb:"tkb-deva-in",tkd:"tkd-latn-tl",tke:"tke-latn-mz",tkf:"tkf-latn-br",tkg:"tkg-latn-mg",tkl:"tkl-latn-tk",tkp:"tkp-latn-sb",tkq:"tkq-latn-ng",tkr:"tkr-latn-az",tks:"tks-arab-ir",tkt:"tkt-deva-np",tku:"tku-latn-mx",tkv:"tkv-latn-pg",tkw:"tkw-latn-sb",tkx:"tkx-latn-id",tkz:"tkz-latn-vn",tl:"tl-latn-ph",tla:"tla-latn-mx",tlb:"tlb-latn-id",tlc:"tlc-latn-mx",tld:"tld-latn-id",tlf:"tlf-latn-zz",tlg:"tlg-latn-id",tli:"tli-latn-us","tli-cyrl":"tli-cyrl-us",tlj:"tlj-latn-ug",tlk:"tlk-latn-id",tll:"tll-latn-cd",tlm:"tlm-latn-vu",tln:"tln-latn-id",tlp:"tlp-latn-mx",tlq:"tlq-latn-mm",tlr:"tlr-latn-sb",tls:"tls-latn-vu",tlt:"tlt-latn-id",tlu:"tlu-latn-id",tlv:"tlv-latn-id",tlx:"tlx-latn-zz",tly:"tly-latn-az",tma:"tma-latn-td",tmb:"tmb-latn-vu",tmc:"tmc-latn-td",tmd:"tmd-latn-pg",tme:"tme-latn-br",tmf:"tmf-latn-py",tmg:"tmg-latn-id",tmh:"tmh-latn-ne",tmi:"tmi-latn-vu",tmj:"tmj-latn-id",tmk:"tmk-deva-np",tml:"tml-latn-id",tmm:"tmm-latn-vn",tmn:"tmn-latn-id",tmo:"tmo-latn-my",tmq:"tmq-latn-pg",tmr:"tmr-syrc-il",tmt:"tmt-latn-vu",tmu:"tmu-latn-id",tmv:"tmv-latn-cd",tmw:"tmw-latn-my",tmy:"tmy-latn-zz",tmz:"tmz-latn-ve",tn:"tn-latn-za",tna:"tna-latn-bo",tnb:"tnb-latn-co",tnc:"tnc-latn-co",tnd:"tnd-latn-co",tng:"tng-latn-td",tnh:"tnh-latn-zz",tni:"tni-latn-id",tnk:"tnk-latn-vu",tnl:"tnl-latn-vu",tnm:"tnm-latn-id",tnn:"tnn-latn-vu",tno:"tno-latn-bo",tnp:"tnp-latn-vu",tnq:"tnq-latn-pr",tnr:"tnr-latn-sn",tns:"tns-latn-pg",tnt:"tnt-latn-id",tnv:"tnv-cakm-bd",tnw:"tnw-latn-id",tnx:"tnx-latn-sb",tny:"tny-latn-tz",to:"to-latn-to",tob:"tob-latn-ar",toc:"toc-latn-mx",tod:"tod-latn-gn",tof:"tof-latn-zz",tog:"tog-latn-mw",toh:"toh-latn-mz",toi:"toi-latn-zm",toj:"toj-latn-mx",tok:"tok-latn-001",tol:"tol-latn-us",tom:"tom-latn-id",too:"too-latn-mx",top:"top-latn-mx",toq:"toq-latn-zz",tor:"tor-latn-cd",tos:"tos-latn-mx",tou:"tou-latn-vn",tov:"tov-arab-ir",tow:"tow-latn-us",tox:"tox-latn-pw",toy:"toy-latn-id",toz:"toz-latn-cm",tpa:"tpa-latn-pg",tpc:"tpc-latn-mx",tpe:"tpe-latn-bd","tpe-beng":"tpe-beng-bd",tpf:"tpf-latn-id",tpg:"tpg-latn-id",tpi:"tpi-latn-pg",tpj:"tpj-latn-py",tpk:"tpk-latn-br",tpl:"tpl-latn-mx",tpm:"tpm-latn-zz",tpn:"tpn-latn-br",tpp:"tpp-latn-mx",tpr:"tpr-latn-br",tpt:"tpt-latn-mx",tpu:"tpu-khmr-kh",tpv:"tpv-latn-mp",tpx:"tpx-latn-mx",tpy:"tpy-latn-br",tpz:"tpz-latn-zz",tqb:"tqb-latn-br",tql:"tql-latn-vu",tqm:"tqm-latn-pg",tqn:"tqn-latn-us",tqo:"tqo-latn-zz",tqp:"tqp-latn-pg",tqt:"tqt-latn-mx",tqu:"tqu-latn-sb",tqw:"tqw-latn-us",tr:"tr-latn-tr",tra:"tra-arab-af",trb:"trb-latn-pg",trc:"trc-latn-mx",tre:"tre-latn-id",trf:"trf-latn-tt",trg:"trg-hebr-il",trh:"trh-latn-pg",tri:"tri-latn-sr",trj:"trj-latn-td",trl:"trl-latn-gb",trm:"trm-arab-af",trn:"trn-latn-bo",tro:"tro-latn-in",trp:"trp-latn-in","trp-beng":"trp-beng-in",trq:"trq-latn-mx",trr:"trr-latn-pe",trs:"trs-latn-mx",trt:"trt-latn-id",tru:"tru-latn-tr",trv:"trv-latn-tw",trw:"trw-arab-pk",trx:"trx-latn-my",try:"try-latn-in",trz:"trz-latn-br",ts:"ts-latn-za",tsa:"tsa-latn-cg",tsb:"tsb-latn-et",tsc:"tsc-latn-mz",tsd:"tsd-grek-gr",tsf:"tsf-deva-np",tsg:"tsg-latn-ph",tsh:"tsh-latn-cm",tsi:"tsi-latn-ca",tsj:"tsj-tibt-bt",tsl:"tsl-latn-vn",tsp:"tsp-latn-bf",tsr:"tsr-latn-vu",tst:"tst-latn-ml",tsu:"tsu-latn-tw",tsv:"tsv-latn-ga",tsw:"tsw-latn-zz",tsx:"tsx-latn-pg",tsz:"tsz-latn-mx",tt:"tt-cyrl-ru",ttb:"ttb-latn-ng",ttc:"ttc-latn-gt",ttd:"ttd-latn-zz",tte:"tte-latn-zz",ttf:"ttf-latn-cm",tth:"tth-laoo-la",tti:"tti-latn-id",ttj:"ttj-latn-ug",ttk:"ttk-latn-co",ttl:"ttl-latn-zm",ttm:"ttm-latn-ca",ttn:"ttn-latn-id",tto:"tto-laoo-la",ttp:"ttp-latn-id",ttr:"ttr-latn-zz",tts:"tts-thai-th",ttt:"ttt-latn-az",ttu:"ttu-latn-pg",ttv:"ttv-latn-pg",ttw:"ttw-latn-my",tty:"tty-latn-id",tua:"tua-latn-pg",tub:"tub-latn-us",tuc:"tuc-latn-pg",tud:"tud-latn-br",tue:"tue-latn-co",tuf:"tuf-latn-co",tug:"tug-latn-td",tuh:"tuh-latn-zz",tui:"tui-latn-cm",tuj:"tuj-latn-id",tul:"tul-latn-zz",tum:"tum-latn-mw",tun:"tun-latn-us",tuo:"tuo-latn-br",tuq:"tuq-latn-zz",tus:"tus-latn-ca",tuu:"tuu-latn-us",tuv:"tuv-latn-ke",tux:"tux-latn-br",tuy:"tuy-latn-ke",tuz:"tuz-latn-bf",tva:"tva-latn-sb",tvd:"tvd-latn-zz",tve:"tve-latn-id",tvk:"tvk-latn-vu",tvl:"tvl-latn-tv",tvm:"tvm-latn-id",tvn:"tvn-mymr-mm",tvo:"tvo-latn-id",tvs:"tvs-latn-ke",tvt:"tvt-latn-in",tvu:"tvu-latn-zz",tvw:"tvw-latn-id",tvx:"tvx-latn-tw",twa:"twa-latn-us",twb:"twb-latn-ph",twd:"twd-latn-nl",twe:"twe-latn-id",twf:"twf-latn-us",twg:"twg-latn-id",twh:"twh-latn-zz",twl:"twl-latn-mz",twm:"twm-deva-in",twn:"twn-latn-cm",two:"two-latn-bw",twp:"twp-latn-pg",twq:"twq-latn-ne",twr:"twr-latn-mx",twt:"twt-latn-br",twu:"twu-latn-id",tww:"tww-latn-pg",twx:"twx-latn-mz",twy:"twy-latn-id",txa:"txa-latn-my",txe:"txe-latn-id",txg:"txg-tang-cn",txi:"txi-latn-br",txj:"txj-latn-ng",txm:"txm-latn-id",txn:"txn-latn-id",txo:"txo-toto-in",txq:"txq-latn-id",txs:"txs-latn-id",txt:"txt-latn-id",txu:"txu-latn-br",txx:"txx-latn-my",txy:"txy-latn-mg",ty:"ty-latn-pf",tya:"tya-latn-zz",tye:"tye-latn-ng",tyh:"tyh-latn-vn",tyi:"tyi-latn-cg",tyj:"tyj-latn-vn",tyl:"tyl-latn-vn",tyn:"tyn-latn-id",typ:"typ-latn-au",tyr:"tyr-tavt-vn",tys:"tys-latn-vn",tyt:"tyt-latn-vn","tyt-tavt":"tyt-tavt-vn",tyu:"tyu-latn-bw",tyv:"tyv-cyrl-ru",tyx:"tyx-latn-cg",tyy:"tyy-latn-ng",tyz:"tyz-latn-vn",tzh:"tzh-latn-mx",tzj:"tzj-latn-gt",tzl:"tzl-latn-001",tzm:"tzm-latn-ma",tzn:"tzn-latn-id",tzo:"tzo-latn-mx",tzx:"tzx-latn-pg",uam:"uam-latn-br",uar:"uar-latn-pg",uba:"uba-latn-ng",ubi:"ubi-latn-td",ubl:"ubl-latn-ph",ubr:"ubr-latn-pg",ubu:"ubu-latn-zz",uda:"uda-latn-ng",ude:"ude-cyrl-ru",udg:"udg-mlym-in",udi:"udi-aghb-ru",udj:"udj-latn-id",udl:"udl-latn-cm",udm:"udm-cyrl-ru",udu:"udu-latn-sd",ues:"ues-latn-id",ufi:"ufi-latn-pg",ug:"ug-arab-cn","ug-cyrl":"ug-cyrl-kz","ug-kz":"ug-cyrl-kz","ug-mn":"ug-cyrl-mn",uga:"uga-ugar-sy",ugb:"ugb-latn-au",uge:"uge-latn-sb",ugh:"ugh-cyrl-ru",ugo:"ugo-thai-th",uha:"uha-latn-ng",uhn:"uhn-latn-id",uis:"uis-latn-pg",uiv:"uiv-latn-cm",uji:"uji-latn-ng",uk:"uk-cyrl-ua",uka:"uka-latn-id",ukg:"ukg-latn-pg",ukh:"ukh-latn-cf",uki:"uki-orya-in",ukk:"ukk-latn-mm",ukp:"ukp-latn-ng",ukq:"ukq-latn-ng",uku:"uku-latn-ng",ukv:"ukv-latn-ss",ukw:"ukw-latn-ng",uky:"uky-latn-au",ula:"ula-latn-ng",ulb:"ulb-latn-ng",ulc:"ulc-cyrl-ru",ule:"ule-latn-ar",ulf:"ulf-latn-id",uli:"uli-latn-fm",ulk:"ulk-latn-au",ulm:"ulm-latn-id",uln:"uln-latn-pg",ulu:"ulu-latn-id",ulw:"ulw-latn-ni",uma:"uma-latn-us",umb:"umb-latn-ao",umd:"umd-latn-au",umg:"umg-latn-au",umi:"umi-latn-my",umm:"umm-latn-ng",umn:"umn-latn-mm",umo:"umo-latn-br",ump:"ump-latn-au",umr:"umr-latn-au",ums:"ums-latn-id",una:"una-latn-pg",und:"en-latn-us","und-002":"en-latn-ng","und-003":"en-latn-us","und-005":"pt-latn-br","und-009":"en-latn-au","und-011":"en-latn-ng","und-013":"es-latn-mx","und-014":"sw-latn-tz","und-015":"ar-arab-eg","und-017":"sw-latn-cd","und-018":"en-latn-za","und-019":"en-latn-us","und-021":"en-latn-us","und-029":"es-latn-cu","und-030":"zh-hans-cn","und-034":"hi-deva-in","und-035":"id-latn-id","und-039":"it-latn-it","und-053":"en-latn-au","und-054":"en-latn-pg","und-057":"en-latn-gu","und-061":"sm-latn-ws","und-142":"zh-hans-cn","und-143":"uz-latn-uz","und-145":"ar-arab-sa","und-150":"ru-cyrl-ru","und-151":"ru-cyrl-ru","und-154":"en-latn-gb","und-155":"de-latn-de","und-202":"en-latn-ng","und-419":"es-latn-419","und-ad":"ca-latn-ad","und-adlm":"ff-adlm-gn","und-ae":"ar-arab-ae","und-af":"fa-arab-af","und-aghb":"udi-aghb-ru","und-ahom":"aho-ahom-in","und-al":"sq-latn-al","und-am":"hy-armn-am","und-ao":"pt-latn-ao","und-aq":"und-latn-aq","und-ar":"es-latn-ar","und-arab":"ar-arab-eg","und-arab-cc":"ms-arab-cc","und-arab-cn":"ug-arab-cn","und-arab-gb":"ur-arab-gb","und-arab-id":"ms-arab-id","und-arab-in":"ur-arab-in","und-arab-kh":"cja-arab-kh","und-arab-mm":"rhg-arab-mm","und-arab-mn":"kk-arab-mn","und-arab-mu":"ur-arab-mu","und-arab-ng":"ha-arab-ng","und-arab-pk":"ur-arab-pk","und-arab-tg":"apd-arab-tg","und-arab-th":"mfa-arab-th","und-arab-tj":"fa-arab-tj","und-arab-tr":"apc-arab-tr","und-arab-yt":"swb-arab-yt","und-armi":"arc-armi-ir","und-armn":"hy-armn-am","und-as":"sm-latn-as","und-at":"de-latn-at","und-avst":"ae-avst-ir","und-aw":"nl-latn-aw","und-ax":"sv-latn-ax","und-az":"az-latn-az","und-ba":"bs-latn-ba","und-bali":"ban-bali-id","und-bamu":"bax-bamu-cm","und-bass":"bsq-bass-lr","und-batk":"bbc-batk-id","und-bd":"bn-beng-bd","und-be":"nl-latn-be","und-beng":"bn-beng-bd","und-bf":"fr-latn-bf","und-bg":"bg-cyrl-bg","und-bh":"ar-arab-bh","und-bhks":"sa-bhks-in","und-bi":"rn-latn-bi","und-bj":"fr-latn-bj","und-bl":"fr-latn-bl","und-bn":"ms-latn-bn","und-bo":"es-latn-bo","und-bopo":"zh-bopo-tw","und-bq":"pap-latn-bq","und-br":"pt-latn-br","und-brah":"pka-brah-in","und-brai":"fr-brai-fr","und-bt":"dz-tibt-bt","und-bugi":"bug-bugi-id","und-buhd":"bku-buhd-ph","und-bv":"und-latn-bv","und-by":"be-cyrl-by","und-cakm":"ccp-cakm-bd","und-cans":"iu-cans-ca","und-cari":"xcr-cari-tr","und-cd":"sw-latn-cd","und-cf":"fr-latn-cf","und-cg":"fr-latn-cg","und-ch":"de-latn-ch","und-cham":"cjm-cham-vn","und-cher":"chr-cher-us","und-chrs":"xco-chrs-uz","und-ci":"fr-latn-ci","und-cl":"es-latn-cl","und-cm":"fr-latn-cm","und-cn":"zh-hans-cn","und-co":"es-latn-co","und-copt":"cop-copt-eg","und-cp":"und-latn-cp","und-cpmn":"und-cpmn-cy","und-cpmn-cy":"und-cpmn-cy","und-cprt":"grc-cprt-cy","und-cr":"es-latn-cr","und-cu":"es-latn-cu","und-cv":"pt-latn-cv","und-cw":"pap-latn-cw","und-cy":"el-grek-cy","und-cyrl":"ru-cyrl-ru","und-cyrl-al":"mk-cyrl-al","und-cyrl-ba":"sr-cyrl-ba","und-cyrl-ge":"ab-cyrl-ge","und-cyrl-gr":"mk-cyrl-gr","und-cyrl-md":"uk-cyrl-md","und-cyrl-ro":"bg-cyrl-ro","und-cyrl-sk":"uk-cyrl-sk","und-cyrl-tr":"kbd-cyrl-tr","und-cyrl-xk":"sr-cyrl-xk","und-cz":"cs-latn-cz","und-de":"de-latn-de","und-deva":"hi-deva-in","und-deva-bt":"ne-deva-bt","und-deva-fj":"hif-deva-fj","und-deva-mu":"bho-deva-mu","und-deva-pk":"btv-deva-pk","und-diak":"dv-diak-mv","und-dj":"aa-latn-dj","und-dk":"da-latn-dk","und-do":"es-latn-do","und-dogr":"doi-dogr-in","und-dupl":"fr-dupl-fr","und-dz":"ar-arab-dz","und-ea":"es-latn-ea","und-ec":"es-latn-ec","und-ee":"et-latn-ee","und-eg":"ar-arab-eg","und-egyp":"egy-egyp-eg","und-eh":"ar-arab-eh","und-elba":"sq-elba-al","und-elym":"arc-elym-ir","und-er":"ti-ethi-er","und-es":"es-latn-es","und-et":"am-ethi-et","und-ethi":"am-ethi-et","und-eu":"en-latn-ie","und-ez":"de-latn-ez","und-fi":"fi-latn-fi","und-fo":"fo-latn-fo","und-fr":"fr-latn-fr","und-ga":"fr-latn-ga","und-ge":"ka-geor-ge","und-geor":"ka-geor-ge","und-gf":"fr-latn-gf","und-gh":"ak-latn-gh","und-gl":"kl-latn-gl","und-glag":"cu-glag-bg","und-gn":"fr-latn-gn","und-gong":"wsg-gong-in","und-gonm":"esg-gonm-in","und-goth":"got-goth-ua","und-gp":"fr-latn-gp","und-gq":"es-latn-gq","und-gr":"el-grek-gr","und-gran":"sa-gran-in","und-grek":"el-grek-gr","und-grek-tr":"bgx-grek-tr","und-gs":"und-latn-gs","und-gt":"es-latn-gt","und-gujr":"gu-gujr-in","und-guru":"pa-guru-in","und-gw":"pt-latn-gw","und-hanb":"zh-hanb-tw","und-hang":"ko-hang-kr","und-hani":"zh-hani-cn","und-hano":"hnn-hano-ph","und-hans":"zh-hans-cn","und-hant":"zh-hant-tw","und-hant-ca":"yue-hant-ca","und-hebr":"he-hebr-il","und-hebr-se":"yi-hebr-se","und-hebr-ua":"yi-hebr-ua","und-hebr-us":"yi-hebr-us","und-hira":"ja-hira-jp","und-hk":"zh-hant-hk","und-hluw":"hlu-hluw-tr","und-hm":"und-latn-hm","und-hmng":"hnj-hmng-la","und-hmnp":"hnj-hmnp-us","und-hn":"es-latn-hn","und-hr":"hr-latn-hr","und-ht":"ht-latn-ht","und-hu":"hu-latn-hu","und-hung":"hu-hung-hu","und-ic":"es-latn-ic","und-id":"id-latn-id","und-il":"he-hebr-il","und-in":"hi-deva-in","und-iq":"ar-arab-iq","und-ir":"fa-arab-ir","und-is":"is-latn-is","und-it":"it-latn-it","und-ital":"ett-ital-it","und-jamo":"ko-jamo-kr","und-java":"jv-java-id","und-jo":"ar-arab-jo","und-jp":"ja-jpan-jp","und-jpan":"ja-jpan-jp","und-kali":"eky-kali-mm","und-kana":"ja-kana-jp","und-kawi":"kaw-kawi-id","und-ke":"sw-latn-ke","und-kg":"ky-cyrl-kg","und-kh":"km-khmr-kh","und-khar":"pra-khar-pk","und-khmr":"km-khmr-kh","und-khoj":"sd-khoj-in","und-kits":"zkt-kits-cn","und-km":"ar-arab-km","und-knda":"kn-knda-in","und-kore":"ko-kore-kr","und-kp":"ko-kore-kp","und-kr":"ko-kore-kr","und-kthi":"bho-kthi-in","und-kw":"ar-arab-kw","und-kz":"ru-cyrl-kz","und-la":"lo-laoo-la","und-lana":"nod-lana-th","und-laoo":"lo-laoo-la","und-laoo-au":"hnj-laoo-au","und-laoo-cn":"hnj-laoo-cn","und-laoo-fr":"hnj-laoo-fr","und-laoo-gf":"hnj-laoo-gf","und-laoo-mm":"hnj-laoo-mm","und-laoo-sr":"hnj-laoo-sr","und-laoo-th":"hnj-laoo-th","und-laoo-us":"hnj-laoo-us","und-laoo-vn":"hnj-laoo-vn","und-latn-af":"tk-latn-af","und-latn-am":"ku-latn-am","und-latn-cn":"za-latn-cn","und-latn-cy":"tr-latn-cy","und-latn-dz":"fr-latn-dz","und-latn-et":"en-latn-et","und-latn-ge":"ku-latn-ge","und-latn-ir":"tk-latn-ir","und-latn-km":"fr-latn-km","und-latn-ma":"fr-latn-ma","und-latn-mk":"sq-latn-mk","und-latn-mm":"kac-latn-mm","und-latn-mo":"pt-latn-mo","und-latn-mr":"fr-latn-mr","und-latn-ru":"krl-latn-ru","und-latn-sy":"fr-latn-sy","und-latn-tn":"fr-latn-tn","und-latn-tw":"trv-latn-tw","und-latn-ua":"pl-latn-ua","und-lb":"ar-arab-lb","und-lepc":"lep-lepc-in","und-li":"de-latn-li","und-limb":"lif-limb-in","und-lina":"lab-lina-gr","und-linb":"grc-linb-gr","und-lisu":"lis-lisu-cn","und-lk":"si-sinh-lk","und-ls":"st-latn-ls","und-lt":"lt-latn-lt","und-lu":"fr-latn-lu","und-lv":"lv-latn-lv","und-ly":"ar-arab-ly","und-lyci":"xlc-lyci-tr","und-lydi":"xld-lydi-tr","und-ma":"ar-arab-ma","und-mahj":"hi-mahj-in","und-maka":"mak-maka-id","und-mand":"myz-mand-ir","und-mani":"xmn-mani-cn","und-marc":"bo-marc-cn","und-mc":"fr-latn-mc","und-md":"ro-latn-md","und-me":"sr-latn-me","und-medf":"dmf-medf-ng","und-mend":"men-mend-sl","und-merc":"xmr-merc-sd","und-mero":"xmr-mero-sd","und-mf":"fr-latn-mf","und-mg":"mg-latn-mg","und-mk":"mk-cyrl-mk","und-ml":"bm-latn-ml","und-mlym":"ml-mlym-in","und-mm":"my-mymr-mm","und-mn":"mn-cyrl-mn","und-mo":"zh-hant-mo","und-modi":"mr-modi-in","und-mong":"mn-mong-cn","und-mq":"fr-latn-mq","und-mr":"ar-arab-mr","und-mroo":"mro-mroo-bd","und-mt":"mt-latn-mt","und-mtei":"mni-mtei-in","und-mu":"mfe-latn-mu","und-mult":"skr-mult-pk","und-mv":"dv-thaa-mv","und-mx":"es-latn-mx","und-my":"ms-latn-my","und-mymr":"my-mymr-mm","und-mymr-in":"kht-mymr-in","und-mymr-th":"mnw-mymr-th","und-mz":"pt-latn-mz","und-na":"af-latn-na","und-nagm":"unr-nagm-in","und-nand":"sa-nand-in","und-narb":"xna-narb-sa","und-nbat":"arc-nbat-jo","und-nc":"fr-latn-nc","und-ne":"ha-latn-ne","und-newa":"new-newa-np","und-ni":"es-latn-ni","und-nkoo":"man-nkoo-gn","und-nl":"nl-latn-nl","und-no":"nb-latn-no","und-np":"ne-deva-np","und-nshu":"zhx-nshu-cn","und-ogam":"sga-ogam-ie","und-olck":"sat-olck-in","und-om":"ar-arab-om","und-orkh":"otk-orkh-mn","und-orya":"or-orya-in","und-osge":"osa-osge-us","und-osma":"so-osma-so","und-ougr":"oui-ougr-143","und-pa":"es-latn-pa","und-palm":"arc-palm-sy","und-pauc":"ctd-pauc-mm","und-pe":"es-latn-pe","und-perm":"kv-perm-ru","und-pf":"fr-latn-pf","und-pg":"tpi-latn-pg","und-ph":"fil-latn-ph","und-phag":"lzh-phag-cn","und-phli":"pal-phli-ir","und-phlp":"pal-phlp-cn","und-phnx":"phn-phnx-lb","und-pk":"ur-arab-pk","und-pl":"pl-latn-pl","und-plrd":"hmd-plrd-cn","und-pm":"fr-latn-pm","und-pr":"es-latn-pr","und-prti":"xpr-prti-ir","und-ps":"ar-arab-ps","und-pt":"pt-latn-pt","und-pw":"pau-latn-pw","und-py":"gn-latn-py","und-qa":"ar-arab-qa","und-qo":"en-latn-dg","und-re":"fr-latn-re","und-rjng":"rej-rjng-id","und-ro":"ro-latn-ro","und-rohg":"rhg-rohg-mm","und-rs":"sr-cyrl-rs","und-ru":"ru-cyrl-ru","und-runr":"non-runr-se","und-rw":"rw-latn-rw","und-sa":"ar-arab-sa","und-samr":"smp-samr-il","und-sarb":"xsa-sarb-ye","und-saur":"saz-saur-in","und-sc":"fr-latn-sc","und-sd":"ar-arab-sd","und-se":"sv-latn-se","und-sgnw":"ase-sgnw-us","und-shaw":"en-shaw-gb","und-shrd":"sa-shrd-in","und-si":"sl-latn-si","und-sidd":"sa-sidd-in","und-sind":"sd-sind-in","und-sinh":"si-sinh-lk","und-sj":"nb-latn-sj","und-sk":"sk-latn-sk","und-sm":"it-latn-sm","und-sn":"fr-latn-sn","und-so":"so-latn-so","und-sogd":"sog-sogd-uz","und-sogo":"sog-sogo-uz","und-sora":"srb-sora-in","und-soyo":"cmg-soyo-mn","und-sr":"nl-latn-sr","und-st":"pt-latn-st","und-sund":"su-sund-id","und-sv":"es-latn-sv","und-sy":"ar-arab-sy","und-sylo":"syl-sylo-bd","und-syrc":"syr-syrc-iq","und-tagb":"tbw-tagb-ph","und-takr":"doi-takr-in","und-tale":"tdd-tale-cn","und-talu":"khb-talu-cn","und-taml":"ta-taml-in","und-tang":"txg-tang-cn","und-tavt":"blt-tavt-vn","und-td":"fr-latn-td","und-telu":"te-telu-in","und-tf":"fr-latn-tf","und-tfng":"zgh-tfng-ma","und-tg":"fr-latn-tg","und-tglg":"fil-tglg-ph","und-th":"th-thai-th","und-thaa":"dv-thaa-mv","und-thai":"th-thai-th","und-thai-cn":"lcp-thai-cn","und-thai-kh":"kdt-thai-kh","und-thai-la":"kdt-thai-la","und-tibt":"bo-tibt-cn","und-tirh":"mai-tirh-in","und-tj":"tg-cyrl-tj","und-tk":"tkl-latn-tk","und-tl":"pt-latn-tl","und-tm":"tk-latn-tm","und-tn":"ar-arab-tn","und-tnsa":"nst-tnsa-in","und-to":"to-latn-to","und-toto":"txo-toto-in","und-tr":"tr-latn-tr","und-tv":"tvl-latn-tv","und-tw":"zh-hant-tw","und-tz":"sw-latn-tz","und-ua":"uk-cyrl-ua","und-ug":"sw-latn-ug","und-ugar":"uga-ugar-sy","und-uy":"es-latn-uy","und-uz":"uz-latn-uz","und-va":"it-latn-va","und-vaii":"vai-vaii-lr","und-ve":"es-latn-ve","und-vith":"sq-vith-al","und-vn":"vi-latn-vn","und-vu":"bi-latn-vu","und-wara":"hoc-wara-in","und-wcho":"nnp-wcho-in","und-wf":"fr-latn-wf","und-ws":"sm-latn-ws","und-xk":"sq-latn-xk","und-xpeo":"peo-xpeo-ir","und-xsux":"akk-xsux-iq","und-ye":"ar-arab-ye","und-yezi":"ku-yezi-ge","und-yiii":"ii-yiii-cn","und-yt":"fr-latn-yt","und-zanb":"cmg-zanb-mn","und-zw":"sn-latn-zw",une:"une-latn-ng",ung:"ung-latn-au",uni:"uni-latn-pg",unk:"unk-latn-br",unm:"unm-latn-us",unn:"unn-latn-au",unr:"unr-beng-in","unr-deva":"unr-deva-np","unr-np":"unr-deva-np",unu:"unu-latn-pg",unx:"unx-beng-in",unz:"unz-latn-id",uok:"uok-latn-zz",uon:"uon-latn-tw",upi:"upi-latn-pg",upv:"upv-latn-vu",ur:"ur-arab-pk",ura:"ura-latn-pe",urb:"urb-latn-br",urc:"urc-latn-au",ure:"ure-latn-bo",urf:"urf-latn-au",urg:"urg-latn-pg",urh:"urh-latn-ng",uri:"uri-latn-zz",urk:"urk-thai-th",urm:"urm-latn-pg",urn:"urn-latn-id",uro:"uro-latn-pg",urp:"urp-latn-br",urr:"urr-latn-vu",urt:"urt-latn-zz",uru:"uru-latn-br",urv:"urv-latn-pg",urw:"urw-latn-zz",urx:"urx-latn-pg",ury:"ury-latn-id",urz:"urz-latn-br",usa:"usa-latn-zz",ush:"ush-arab-pk",usi:"usi-latn-bd","usi-beng":"usi-beng-bd",usk:"usk-latn-cm",usp:"usp-latn-gt",uss:"uss-latn-ng",usu:"usu-latn-pg",uta:"uta-latn-ng",ute:"ute-latn-us",uth:"uth-latn-zz",utp:"utp-latn-sb",utr:"utr-latn-zz",utu:"utu-latn-pg",uum:"uum-grek-ge","uum-cyrl":"uum-cyrl-ge",uur:"uur-latn-vu",uve:"uve-latn-nc",uvh:"uvh-latn-zz",uvl:"uvl-latn-zz",uwa:"uwa-latn-au",uya:"uya-latn-ng",uz:"uz-latn-uz","uz-af":"uz-arab-af","uz-arab":"uz-arab-af","uz-cn":"uz-cyrl-cn",uzs:"uzs-arab-af",vaa:"vaa-taml-in",vae:"vae-latn-cf",vaf:"vaf-arab-ir",vag:"vag-latn-zz",vah:"vah-deva-in",vai:"vai-vaii-lr",vaj:"vaj-latn-na",val:"val-latn-pg",vam:"vam-latn-pg",van:"van-latn-zz",vao:"vao-latn-vu",vap:"vap-latn-in",var:"var-latn-mx",vas:"vas-deva-in","vas-gujr":"vas-gujr-in",vau:"vau-latn-cd",vav:"vav-deva-in","vav-gujr":"vav-gujr-in",vay:"vay-deva-np",vbb:"vbb-latn-id",vbk:"vbk-latn-ph",ve:"ve-latn-za",vec:"vec-latn-it",vem:"vem-latn-ng",veo:"veo-latn-us",vep:"vep-latn-ru",ver:"ver-latn-ng",vgr:"vgr-arab-pk",vi:"vi-latn-vn",vic:"vic-latn-sx",vid:"vid-latn-tz",vif:"vif-latn-cg",vig:"vig-latn-bf",vil:"vil-latn-ar",vin:"vin-latn-tz",vit:"vit-latn-ng",viv:"viv-latn-zz",vka:"vka-latn-au",vkj:"vkj-latn-td",vkk:"vkk-latn-id",vkl:"vkl-latn-id",vkm:"vkm-latn-br",vkn:"vkn-latn-ng",vko:"vko-latn-id",vkp:"vkp-latn-in","vkp-deva":"vkp-deva-in",vkt:"vkt-latn-id",vku:"vku-latn-au",vkz:"vkz-latn-ng",vlp:"vlp-latn-vu",vls:"vls-latn-be",vma:"vma-latn-au",vmb:"vmb-latn-au",vmc:"vmc-latn-mx",vmd:"vmd-knda-in",vme:"vme-latn-id",vmf:"vmf-latn-de",vmg:"vmg-latn-pg",vmh:"vmh-arab-ir",vmi:"vmi-latn-au",vmj:"vmj-latn-mx",vmk:"vmk-latn-mz",vml:"vml-latn-au",vmm:"vmm-latn-mx",vmp:"vmp-latn-mx",vmq:"vmq-latn-mx",vmr:"vmr-latn-mz",vms:"vms-latn-id",vmu:"vmu-latn-au",vmw:"vmw-latn-mz",vmx:"vmx-latn-mx",vmy:"vmy-latn-mx",vmz:"vmz-latn-mx",vnk:"vnk-latn-sb",vnm:"vnm-latn-vu",vnp:"vnp-latn-vu",vo:"vo-latn-001",vor:"vor-latn-ng",vot:"vot-latn-ru",vra:"vra-latn-vu",vro:"vro-latn-ee",vrs:"vrs-latn-sb",vrt:"vrt-latn-vu",vto:"vto-latn-id",vum:"vum-latn-ga",vun:"vun-latn-tz",vut:"vut-latn-zz",vwa:"vwa-latn-cn","vwa-mymr":"vwa-mymr-cn",wa:"wa-latn-be",waa:"waa-latn-us",wab:"wab-latn-pg",wac:"wac-latn-us",wad:"wad-latn-id",wae:"wae-latn-ch",waf:"waf-latn-br",wag:"wag-latn-pg",wah:"wah-latn-id",wai:"wai-latn-id",waj:"waj-latn-zz",wal:"wal-ethi-et",wam:"wam-latn-us",wan:"wan-latn-zz",wap:"wap-latn-gy",waq:"waq-latn-au",war:"war-latn-ph",was:"was-latn-us",wat:"wat-latn-pg",wau:"wau-latn-br",wav:"wav-latn-ng",waw:"waw-latn-br",wax:"wax-latn-pg",way:"way-latn-sr",waz:"waz-latn-pg",wba:"wba-latn-ve",wbb:"wbb-latn-id",wbe:"wbe-latn-id",wbf:"wbf-latn-bf",wbh:"wbh-latn-tz",wbi:"wbi-latn-tz",wbj:"wbj-latn-tz",wbk:"wbk-arab-af",wbl:"wbl-latn-pk","wbl-arab":"wbl-arab-af","wbl-cyrl":"wbl-cyrl-tj",wbm:"wbm-latn-cn",wbp:"wbp-latn-au",wbq:"wbq-telu-in",wbr:"wbr-deva-in",wbt:"wbt-latn-au",wbv:"wbv-latn-au",wbw:"wbw-latn-id",wca:"wca-latn-br",wci:"wci-latn-zz",wdd:"wdd-latn-ga",wdg:"wdg-latn-pg",wdj:"wdj-latn-au",wdk:"wdk-latn-au",wdt:"wdt-latn-ca",wdu:"wdu-latn-au",wdy:"wdy-latn-au",wec:"wec-latn-ci",wed:"wed-latn-pg",weg:"weg-latn-au",weh:"weh-latn-cm",wei:"wei-latn-pg",wem:"wem-latn-bj",weo:"weo-latn-id",wep:"wep-latn-de",wer:"wer-latn-zz",wes:"wes-latn-cm",wet:"wet-latn-id",weu:"weu-latn-mm",wew:"wew-latn-id",wfg:"wfg-latn-id",wga:"wga-latn-au",wgb:"wgb-latn-pg",wgg:"wgg-latn-au",wgi:"wgi-latn-zz",wgo:"wgo-latn-id",wgu:"wgu-latn-au",wgy:"wgy-latn-au",wha:"wha-latn-id",whg:"whg-latn-zz",whk:"whk-latn-id",whu:"whu-latn-id",wib:"wib-latn-zz",wic:"wic-latn-us",wie:"wie-latn-au",wif:"wif-latn-au",wig:"wig-latn-au",wih:"wih-latn-au",wii:"wii-latn-pg",wij:"wij-latn-au",wik:"wik-latn-au",wil:"wil-latn-au",wim:"wim-latn-au",win:"win-latn-us",wir:"wir-latn-br",wiu:"wiu-latn-zz",wiv:"wiv-latn-zz",wiy:"wiy-latn-us",wja:"wja-latn-zz",wji:"wji-latn-zz",wka:"wka-latn-tz",wkd:"wkd-latn-id",wkr:"wkr-latn-au",wkw:"wkw-latn-au",wky:"wky-latn-au",wla:"wla-latn-pg",wlg:"wlg-latn-au",wlh:"wlh-latn-tl",wli:"wli-latn-id",wlm:"wlm-latn-gb",wlo:"wlo-arab-id",wlr:"wlr-latn-vu",wls:"wls-latn-wf",wlu:"wlu-latn-au",wlv:"wlv-latn-ar",wlw:"wlw-latn-id",wlx:"wlx-latn-gh",wma:"wma-latn-ng",wmb:"wmb-latn-au",wmc:"wmc-latn-pg",wmd:"wmd-latn-br",wme:"wme-deva-np",wmh:"wmh-latn-tl",wmi:"wmi-latn-au",wmm:"wmm-latn-id",wmn:"wmn-latn-nc",wmo:"wmo-latn-zz",wms:"wms-latn-id",wmt:"wmt-latn-au",wmw:"wmw-latn-mz","wmw-arab":"wmw-arab-mz",wmx:"wmx-latn-pg",wnb:"wnb-latn-pg",wnc:"wnc-latn-zz",wnd:"wnd-latn-au",wne:"wne-arab-pk",wng:"wng-latn-id",wni:"wni-arab-km",wnk:"wnk-latn-id",wnm:"wnm-latn-au",wnn:"wnn-latn-au",wno:"wno-latn-id",wnp:"wnp-latn-pg",wnu:"wnu-latn-zz",wnw:"wnw-latn-us",wny:"wny-latn-au",wo:"wo-latn-sn",woa:"woa-latn-au",wob:"wob-latn-zz",woc:"woc-latn-pg",wod:"wod-latn-id",woe:"woe-latn-fm",wof:"wof-latn-gm","wof-arab":"wof-arab-gm",wog:"wog-latn-pg",woi:"woi-latn-id",wok:"wok-latn-cm",wom:"wom-latn-ng",won:"won-latn-cd",woo:"woo-latn-id",wor:"wor-latn-id",wos:"wos-latn-zz",wow:"wow-latn-id",wpc:"wpc-latn-ve",wrb:"wrb-latn-au",wrg:"wrg-latn-au",wrh:"wrh-latn-au",wri:"wri-latn-au",wrk:"wrk-latn-au",wrl:"wrl-latn-au",wrm:"wrm-latn-au",wro:"wro-latn-au",wrp:"wrp-latn-id",wrr:"wrr-latn-au",wrs:"wrs-latn-zz",wru:"wru-latn-id",wrv:"wrv-latn-pg",wrw:"wrw-latn-au",wrx:"wrx-latn-id",wrz:"wrz-latn-au",wsa:"wsa-latn-id",wsg:"wsg-gong-in",wsi:"wsi-latn-vu",wsk:"wsk-latn-zz",wsr:"wsr-latn-pg",wss:"wss-latn-gh",wsu:"wsu-latn-br",wsv:"wsv-arab-af",wtf:"wtf-latn-pg",wth:"wth-latn-au",wti:"wti-latn-et",wtk:"wtk-latn-pg",wtm:"wtm-deva-in",wtw:"wtw-latn-id","wtw-bugi":"wtw-bugi-id",wua:"wua-latn-au",wub:"wub-latn-au",wud:"wud-latn-tg",wul:"wul-latn-id",wum:"wum-latn-ga",wun:"wun-latn-tz",wur:"wur-latn-au",wut:"wut-latn-pg",wuu:"wuu-hans-cn",wuv:"wuv-latn-zz",wux:"wux-latn-au",wuy:"wuy-latn-id",wwa:"wwa-latn-zz",wwb:"wwb-latn-au",wwo:"wwo-latn-vu",wwr:"wwr-latn-au",www:"www-latn-cm",wxw:"wxw-latn-au",wyb:"wyb-latn-au",wyi:"wyi-latn-au",wym:"wym-latn-pl",wyn:"wyn-latn-us",wyr:"wyr-latn-br",wyy:"wyy-latn-fj",xaa:"xaa-latn-es",xab:"xab-latn-ng",xai:"xai-latn-br",xaj:"xaj-latn-br",xak:"xak-latn-ve",xal:"xal-cyrl-ru",xam:"xam-latn-za",xan:"xan-ethi-et",xao:"xao-latn-vn",xar:"xar-latn-pg",xas:"xas-cyrl-ru",xat:"xat-latn-br",xau:"xau-latn-id",xav:"xav-latn-br",xaw:"xaw-latn-us",xay:"xay-latn-id",xbb:"xbb-latn-au",xbd:"xbd-latn-au",xbe:"xbe-latn-au",xbg:"xbg-latn-au",xbi:"xbi-latn-zz",xbj:"xbj-latn-au",xbm:"xbm-latn-fr",xbn:"xbn-latn-my",xbp:"xbp-latn-au",xbr:"xbr-latn-id",xbw:"xbw-latn-br",xby:"xby-latn-au",xch:"xch-latn-us",xco:"xco-chrs-uz",xcr:"xcr-cari-tr",xda:"xda-latn-au",xdk:"xdk-latn-au",xdo:"xdo-latn-ao",xdq:"xdq-cyrl-ru",xdy:"xdy-latn-id",xed:"xed-latn-cm",xeg:"xeg-latn-za",xem:"xem-latn-id",xer:"xer-latn-br",xes:"xes-latn-zz",xet:"xet-latn-br",xeu:"xeu-latn-pg",xgb:"xgb-latn-ci",xgd:"xgd-latn-au",xgg:"xgg-latn-au",xgi:"xgi-latn-au",xgm:"xgm-latn-au",xgu:"xgu-latn-au",xgw:"xgw-latn-au",xh:"xh-latn-za",xhe:"xhe-arab-pk",xhm:"xhm-khmr-kh",xhv:"xhv-latn-vn",xii:"xii-latn-za",xin:"xin-latn-gt",xir:"xir-latn-br",xis:"xis-orya-in",xiy:"xiy-latn-br",xjb:"xjb-latn-au",xjt:"xjt-latn-au",xka:"xka-arab-pk",xkb:"xkb-latn-bj",xkc:"xkc-arab-ir",xkd:"xkd-latn-id",xke:"xke-latn-id",xkg:"xkg-latn-ml",xkj:"xkj-arab-ir",xkl:"xkl-latn-id",xkn:"xkn-latn-id",xkp:"xkp-arab-ir",xkq:"xkq-latn-id",xkr:"xkr-latn-br",xks:"xks-latn-id",xkt:"xkt-latn-gh",xku:"xku-latn-cg",xkv:"xkv-latn-bw",xkw:"xkw-latn-id",xkx:"xkx-latn-pg",xky:"xky-latn-my",xkz:"xkz-latn-bt",xla:"xla-latn-zz",xlc:"xlc-lyci-tr",xld:"xld-lydi-tr",xly:"xly-elym-ir",xma:"xma-latn-so",xmb:"xmb-latn-cm",xmc:"xmc-latn-mz",xmd:"xmd-latn-cm",xmf:"xmf-geor-ge",xmg:"xmg-latn-cm",xmh:"xmh-latn-au",xmj:"xmj-latn-cm",xmm:"xmm-latn-id",xmn:"xmn-mani-cn",xmo:"xmo-latn-br",xmp:"xmp-latn-au",xmq:"xmq-latn-au",xmr:"xmr-merc-sd",xmt:"xmt-latn-id",xmu:"xmu-latn-au",xmv:"xmv-latn-mg",xmw:"xmw-latn-mg",xmx:"xmx-latn-id",xmy:"xmy-latn-au",xmz:"xmz-latn-id",xna:"xna-narb-sa",xnb:"xnb-latn-tw",xni:"xni-latn-au",xnj:"xnj-latn-tz",xnk:"xnk-latn-au",xnm:"xnm-latn-au",xnn:"xnn-latn-ph",xnq:"xnq-latn-mz",xnr:"xnr-deva-in",xnt:"xnt-latn-us",xnu:"xnu-latn-au",xny:"xny-latn-au",xnz:"xnz-latn-eg","xnz-arab":"xnz-arab-eg",xoc:"xoc-latn-ng",xod:"xod-latn-id",xog:"xog-latn-ug",xoi:"xoi-latn-pg",xok:"xok-latn-br",xom:"xom-latn-sd","xom-ethi":"xom-ethi-et",xon:"xon-latn-zz",xoo:"xoo-latn-br",xop:"xop-latn-pg",xor:"xor-latn-br",xow:"xow-latn-pg",xpa:"xpa-latn-au",xpb:"xpb-latn-au",xpd:"xpd-latn-au",xpf:"xpf-latn-au",xpg:"xpg-grek-tr",xph:"xph-latn-au",xpi:"xpi-ogam-gb",xpj:"xpj-latn-au",xpk:"xpk-latn-br",xpl:"xpl-latn-au",xpm:"xpm-cyrl-ru",xpn:"xpn-latn-br",xpo:"xpo-latn-mx",xpq:"xpq-latn-us",xpr:"xpr-prti-ir",xpt:"xpt-latn-au",xpv:"xpv-latn-au",xpw:"xpw-latn-au",xpx:"xpx-latn-au",xpz:"xpz-latn-au",xra:"xra-latn-br",xrb:"xrb-latn-zz",xrd:"xrd-latn-au",xre:"xre-latn-br",xrg:"xrg-latn-au",xri:"xri-latn-br",xrm:"xrm-cyrl-ru",xrn:"xrn-cyrl-ru",xrr:"xrr-latn-it",xru:"xru-latn-au",xrw:"xrw-latn-pg",xsa:"xsa-sarb-ye",xsb:"xsb-latn-ph",xse:"xse-latn-id",xsh:"xsh-latn-ng",xsi:"xsi-latn-zz",xsm:"xsm-latn-zz",xsn:"xsn-latn-ng",xsp:"xsp-latn-pg",xsq:"xsq-latn-mz",xsr:"xsr-deva-np",xss:"xss-cyrl-ru",xsu:"xsu-latn-ve",xsy:"xsy-latn-tw",xta:"xta-latn-mx",xtb:"xtb-latn-mx",xtc:"xtc-latn-sd",xtd:"xtd-latn-mx",xte:"xte-latn-id",xth:"xth-latn-au",xti:"xti-latn-mx",xtj:"xtj-latn-mx",xtl:"xtl-latn-mx",xtm:"xtm-latn-mx",xtn:"xtn-latn-mx",xtp:"xtp-latn-mx",xts:"xts-latn-mx",xtt:"xtt-latn-mx",xtu:"xtu-latn-mx",xtv:"xtv-latn-au",xtw:"xtw-latn-br",xty:"xty-latn-mx",xub:"xub-taml-in","xub-knda":"xub-knda-in","xub-mlym":"xub-mlym-in",xud:"xud-latn-au",xuj:"xuj-taml-in",xul:"xul-latn-au",xum:"xum-latn-it","xum-ital":"xum-ital-it",xun:"xun-latn-au",xuo:"xuo-latn-td",xut:"xut-latn-au",xuu:"xuu-latn-na",xve:"xve-ital-it",xvi:"xvi-arab-af",xvn:"xvn-latn-es",xvo:"xvo-latn-it",xvs:"xvs-latn-it",xwa:"xwa-latn-br",xwd:"xwd-latn-au",xwe:"xwe-latn-zz",xwj:"xwj-latn-au",xwk:"xwk-latn-au",xwl:"xwl-latn-bj",xwo:"xwo-cyrl-ru",xwr:"xwr-latn-id",xwt:"xwt-latn-au",xww:"xww-latn-au",xxb:"xxb-latn-gh",xxk:"xxk-latn-id",xxm:"xxm-latn-au",xxr:"xxr-latn-br",xxt:"xxt-latn-id",xya:"xya-latn-au",xyb:"xyb-latn-au",xyj:"xyj-latn-au",xyk:"xyk-latn-au",xyl:"xyl-latn-br",xyt:"xyt-latn-au",xyy:"xyy-latn-au",xzh:"xzh-marc-cn",xzp:"xzp-latn-mx",yaa:"yaa-latn-pe",yab:"yab-latn-br",yac:"yac-latn-id",yad:"yad-latn-pe",yae:"yae-latn-ve",yaf:"yaf-latn-cd",yag:"yag-latn-cl",yai:"yai-cyrl-tj",yaj:"yaj-latn-cf",yak:"yak-latn-us",yal:"yal-latn-gn","yal-arab":"yal-arab-gn",yam:"yam-latn-zz",yan:"yan-latn-ni",yao:"yao-latn-mz",yap:"yap-latn-fm",yaq:"yaq-latn-mx",yar:"yar-latn-ve",yas:"yas-latn-zz",yat:"yat-latn-zz",yau:"yau-latn-ve",yav:"yav-latn-cm",yaw:"yaw-latn-br",yax:"yax-latn-ao",yay:"yay-latn-zz",yaz:"yaz-latn-zz",yba:"yba-latn-zz",ybb:"ybb-latn-cm",ybe:"ybe-latn-cn","ybe-ougr":"ybe-ougr-cn",ybh:"ybh-deva-np",ybi:"ybi-deva-np",ybj:"ybj-latn-ng",ybl:"ybl-latn-ng",ybm:"ybm-latn-pg",ybn:"ybn-latn-br",ybo:"ybo-latn-pg",ybx:"ybx-latn-pg",yby:"yby-latn-zz",ycl:"ycl-latn-cn",ycn:"ycn-latn-co",yda:"yda-latn-au",yde:"yde-latn-pg",ydg:"ydg-arab-pk",ydk:"ydk-latn-pg",yea:"yea-mlym-in","yea-knda":"yea-knda-in",yec:"yec-latn-de",yee:"yee-latn-pg",yei:"yei-latn-cm",yej:"yej-grek-il",yel:"yel-latn-cd",yer:"yer-latn-zz",yes:"yes-latn-ng",yet:"yet-latn-id",yeu:"yeu-telu-in",yev:"yev-latn-pg",yey:"yey-latn-bw",yga:"yga-latn-au",ygi:"ygi-latn-au",ygl:"ygl-latn-pg",ygm:"ygm-latn-pg",ygp:"ygp-plrd-cn",ygr:"ygr-latn-zz",ygu:"ygu-latn-au",ygw:"ygw-latn-zz",yhd:"yhd-hebr-il",yi:"yi-hebr-001",yia:"yia-latn-au",yig:"yig-yiii-cn",yih:"yih-hebr-de",yii:"yii-latn-au",yij:"yij-latn-au",yil:"yil-latn-au",yim:"yim-latn-in",yir:"yir-latn-id",yis:"yis-latn-pg",yiv:"yiv-yiii-cn",yka:"yka-latn-ph","yka-arab":"yka-arab-ph",ykg:"ykg-cyrl-ru",yki:"yki-latn-id",ykk:"ykk-latn-pg",ykm:"ykm-latn-pg",yko:"yko-latn-zz",ykr:"ykr-latn-pg",yky:"yky-latn-cf",yla:"yla-latn-pg",ylb:"ylb-latn-pg",yle:"yle-latn-zz",ylg:"ylg-latn-zz",yli:"yli-latn-id",yll:"yll-latn-zz",ylr:"ylr-latn-au",ylu:"ylu-latn-pg",yly:"yly-latn-nc",ymb:"ymb-latn-pg",yme:"yme-latn-pe",ymg:"ymg-latn-cd",ymk:"ymk-latn-mz","ymk-arab":"ymk-arab-mz",yml:"yml-latn-zz",ymm:"ymm-latn-so",ymn:"ymn-latn-id",ymo:"ymo-latn-pg",ymp:"ymp-latn-pg",yna:"yna-plrd-cn",ynd:"ynd-latn-au",yng:"yng-latn-cd",ynk:"ynk-cyrl-ru",ynl:"ynl-latn-pg",ynq:"ynq-latn-ng",yns:"yns-latn-cd",ynu:"ynu-latn-co",yo:"yo-latn-ng",yob:"yob-latn-pg",yog:"yog-latn-ph",yoi:"yoi-jpan-jp",yok:"yok-latn-us",yol:"yol-latn-gb",yom:"yom-latn-cd",yon:"yon-latn-zz",yot:"yot-latn-ng",yoy:"yoy-thai-th",yra:"yra-latn-pg",yrb:"yrb-latn-zz",yre:"yre-latn-zz",yrk:"yrk-cyrl-ru",yrl:"yrl-latn-br",yrm:"yrm-latn-au",yro:"yro-latn-br",yrs:"yrs-latn-id",yrw:"yrw-latn-pg",yry:"yry-latn-au",ysd:"ysd-yiii-cn",ysn:"ysn-yiii-cn",ysp:"ysp-yiii-cn",ysr:"ysr-cyrl-ru",yss:"yss-latn-zz",ysy:"ysy-plrd-cn",ytw:"ytw-latn-pg",yty:"yty-latn-au",yua:"yua-latn-mx",yub:"yub-latn-au",yuc:"yuc-latn-us",yud:"yud-hebr-il",yue:"yue-hant-hk","yue-cn":"yue-hans-cn","yue-hans":"yue-hans-cn",yuf:"yuf-latn-us",yug:"yug-cyrl-ru",yui:"yui-latn-co",yuj:"yuj-latn-zz",yul:"yul-latn-cf",yum:"yum-latn-us",yun:"yun-latn-ng",yup:"yup-latn-co",yuq:"yuq-latn-bo",yur:"yur-latn-us",yut:"yut-latn-zz",yuw:"yuw-latn-zz",yux:"yux-cyrl-ru",yuz:"yuz-latn-bo",yva:"yva-latn-id",yvt:"yvt-latn-ve",ywa:"ywa-latn-pg",ywg:"ywg-latn-au",ywn:"ywn-latn-br",ywq:"ywq-plrd-cn","ywq-yiii":"ywq-yiii-cn",ywr:"ywr-latn-au",ywu:"ywu-plrd-cn","ywu-yiii":"ywu-yiii-cn",yww:"yww-latn-au",yxa:"yxa-latn-au",yxg:"yxg-latn-au",yxl:"yxl-latn-au",yxm:"yxm-latn-au",yxu:"yxu-latn-au",yxy:"yxy-latn-au",yyr:"yyr-latn-au",yyu:"yyu-latn-pg",za:"za-latn-cn",zaa:"zaa-latn-mx",zab:"zab-latn-mx",zac:"zac-latn-mx",zad:"zad-latn-mx",zae:"zae-latn-mx",zaf:"zaf-latn-mx",zag:"zag-latn-sd",zah:"zah-latn-ng",zaj:"zaj-latn-tz",zak:"zak-latn-tz",zam:"zam-latn-mx",zao:"zao-latn-mx",zap:"zap-latn-mx",zaq:"zaq-latn-mx",zar:"zar-latn-mx",zas:"zas-latn-mx",zat:"zat-latn-mx",zau:"zau-tibt-in","zau-arab":"zau-arab-in",zav:"zav-latn-mx",zaw:"zaw-latn-mx",zax:"zax-latn-mx",zay:"zay-latn-et","zay-ethi":"zay-ethi-et",zaz:"zaz-latn-ng",zba:"zba-arab-001",zbc:"zbc-latn-my",zbe:"zbe-latn-my",zbt:"zbt-latn-id",zbu:"zbu-latn-ng",zbw:"zbw-latn-my",zca:"zca-latn-mx",zch:"zch-hani-cn",zdj:"zdj-arab-km",zea:"zea-latn-nl",zeg:"zeg-latn-pg",zeh:"zeh-hani-cn",zen:"zen-tfng-mr","zen-arab":"zen-arab-mr",zga:"zga-latn-tz",zgb:"zgb-hani-cn",zgh:"zgh-tfng-ma",zgm:"zgm-hani-cn",zgn:"zgn-hani-cn",zgr:"zgr-latn-pg",zh:"zh-hans-cn","zh-au":"zh-hant-au","zh-bn":"zh-hant-bn","zh-bopo":"zh-bopo-tw","zh-gb":"zh-hant-gb","zh-gf":"zh-hant-gf","zh-hanb":"zh-hanb-tw","zh-hant":"zh-hant-tw","zh-hk":"zh-hant-hk","zh-id":"zh-hant-id","zh-mo":"zh-hant-mo","zh-pa":"zh-hant-pa","zh-pf":"zh-hant-pf","zh-ph":"zh-hant-ph","zh-sr":"zh-hant-sr","zh-th":"zh-hant-th","zh-tw":"zh-hant-tw","zh-us":"zh-hant-us","zh-vn":"zh-hant-vn",zhd:"zhd-hani-cn","zhd-latn":"zhd-latn-vn",zhi:"zhi-latn-ng",zhn:"zhn-latn-cn","zhn-hani":"zhn-hani-cn",zhw:"zhw-latn-cm",zhx:"zhx-nshu-cn",zia:"zia-latn-zz",zik:"zik-latn-pg",zil:"zil-latn-gn",zim:"zim-latn-td",zin:"zin-latn-tz",ziw:"ziw-latn-tz",ziz:"ziz-latn-ng",zka:"zka-latn-id",zkb:"zkb-cyrl-ru",zkd:"zkd-latn-mm",zko:"zko-cyrl-ru",zkp:"zkp-latn-br",zkt:"zkt-kits-cn",zku:"zku-latn-au",zkz:"zkz-cyrl-ru",zla:"zla-latn-cd",zlj:"zlj-hani-cn","zlj-latn":"zlj-latn-cn",zlm:"zlm-latn-tg",zln:"zln-hani-cn",zlq:"zlq-hani-cn",zma:"zma-latn-au",zmb:"zmb-latn-cd",zmc:"zmc-latn-au",zmd:"zmd-latn-au",zme:"zme-latn-au",zmf:"zmf-latn-cd",zmg:"zmg-latn-au",zmh:"zmh-latn-pg",zmi:"zmi-latn-my",zmj:"zmj-latn-au",zmk:"zmk-latn-au",zml:"zml-latn-au",zmm:"zmm-latn-au",zmn:"zmn-latn-ga",zmo:"zmo-latn-sd",zmp:"zmp-latn-cd",zmq:"zmq-latn-cd",zmr:"zmr-latn-au",zms:"zms-latn-cd",zmt:"zmt-latn-au",zmu:"zmu-latn-au",zmv:"zmv-latn-au",zmw:"zmw-latn-cd",zmx:"zmx-latn-cg",zmy:"zmy-latn-au",zmz:"zmz-latn-cd",zna:"zna-latn-td",zne:"zne-latn-zz",zng:"zng-latn-vn",znk:"znk-latn-au",zns:"zns-latn-ng",zoc:"zoc-latn-mx",zoh:"zoh-latn-mx",zom:"zom-latn-in",zoo:"zoo-latn-mx",zoq:"zoq-latn-mx",zor:"zor-latn-mx",zos:"zos-latn-mx",zpa:"zpa-latn-mx",zpb:"zpb-latn-mx",zpc:"zpc-latn-mx",zpd:"zpd-latn-mx",zpe:"zpe-latn-mx",zpf:"zpf-latn-mx",zpg:"zpg-latn-mx",zph:"zph-latn-mx",zpi:"zpi-latn-mx",zpj:"zpj-latn-mx",zpk:"zpk-latn-mx",zpl:"zpl-latn-mx",zpm:"zpm-latn-mx",zpn:"zpn-latn-mx",zpo:"zpo-latn-mx",zpp:"zpp-latn-mx",zpq:"zpq-latn-mx",zpr:"zpr-latn-mx",zps:"zps-latn-mx",zpt:"zpt-latn-mx",zpu:"zpu-latn-mx",zpv:"zpv-latn-mx",zpw:"zpw-latn-mx",zpx:"zpx-latn-mx",zpy:"zpy-latn-mx",zpz:"zpz-latn-mx",zqe:"zqe-hani-cn","zqe-latn":"zqe-latn-cn",zrn:"zrn-latn-td",zro:"zro-latn-ec",zrp:"zrp-hebr-fr",zrs:"zrs-latn-id",zsa:"zsa-latn-pg",zsr:"zsr-latn-mx",zsu:"zsu-latn-pg",zte:"zte-latn-mx",ztg:"ztg-latn-mx",ztl:"ztl-latn-mx",ztm:"ztm-latn-mx",ztn:"ztn-latn-mx",ztp:"ztp-latn-mx",ztq:"ztq-latn-mx",zts:"zts-latn-mx",ztt:"ztt-latn-mx",ztu:"ztu-latn-mx",ztx:"ztx-latn-mx",zty:"zty-latn-mx",zu:"zu-latn-za",zua:"zua-latn-ng",zuh:"zuh-latn-pg",zum:"zum-arab-om",zun:"zun-latn-us",zuy:"zuy-latn-cm",zyg:"zyg-hani-cn",zyj:"zyj-latn-cn","zyj-hani":"zyj-hani-cn",zyn:"zyn-hani-cn",zyp:"zyp-latn-mm",zza:"zza-latn-tr",zzj:"zzj-hani-cn"},ji={}.hasOwnProperty;function Fi(t){const{language:e,script:n,region:r}=t;let a;var i,o;return n&&r&&(a=Li[Ti({language:e,script:n,region:r})])?(t.script=void 0,t.region=void 0):n&&(a=Li[Ti({language:e,script:n})])?t.script=void 0:r&&(a=Li[Ti({language:e,region:r})])?t.region=void 0:e&&(a=Li[e]),a&&(t.language=void 0,i=t,o=Ci(a),i.language||(i.language=o.language),i.script||(i.script=o.script),i.region||(i.region=o.region),o.variants&&i.variants.push(...o.variants)),Ti(t)}function Ui(t,e){const n=e||{},r=Ci(String(t||"").toLowerCase(),n),a=Ti(r);if(!a)return a;let i=-1;for(;++i<zi.length;){let t=zi[i].from;"und-"===t.slice(0,4)&&r.language&&(t=r.language+t.slice(3)),Di(a,t).length>0&&qi(r,t,zi[i].to)}for(i=-1;++i<Pi.length;)Bi(r,Pi[i].from.field,Pi[i].from.value)&&Zi(r,Pi[i].to.field,Pi[i].to.value);if(function(t){Fi(t);const{language:e,script:n,region:r}=t;if(!e)return t;const a=Ti({language:e,script:n,region:r});a===Fi(Ci(e))?(t.script=void 0,t.region=void 0):r&&a===Fi(Ci(e+"-"+r))?t.script=void 0:n&&a===Fi(Ci(e+"-"+n))&&(t.region=void 0)}(r),r.variants.sort(),r.extensions.sort(Gi),n.warning){let t;for(t in Mi)if(ji.call(Mi,t)){const e=Mi[t],a=r[t];if(a&&ji.call(e,a)){const r=e[a];n.warning("Deprecated "+t+" `"+a+"`, expected one of `"+r.join("`, `")+"`",-1,7)}}}return r.script&&(r.script=r.script.charAt(0).toUpperCase()+r.script.slice(1)),r.region&&(r.region=r.region.toUpperCase()),Ti(r)}function qi(t,e,n){const r=Ci(e),a=Ci(n),i=[],o=r.language;let l;for(l in r)if(ji.call(r,l)){const e=r[l];e&&Bi(t,l,e)&&i.push(l)}for(l in a)if(ji.call(a,l)){const e=a[l];o&&e&&(i.includes(l)||!t[l])&&Zi(t,l,"language"===l&&"und"===e?o:e)}}function Bi(t,e,n){let r,a=!1;if(n){const i=t[e];if(r=i,Array.isArray(i)){r=[];let t=-1;for(;++t<i.length;){const e=i[t];n.includes(e)?a=!0:r.push(e)}}else i===n&&(r=null,a=!0);t[e]=r}return a}function Zi(t,e,n){const r=t[e];if(Array.isArray(r)){const t=Array.isArray(n)?n:[n];let e=-1;for(;++e<t.length;){const n=t[e];r.includes(n)||r.push(n)}}else t[e]=n}function Gi(t,e){return t.singleton>e.singleton?1:t.singleton<e.singleton?-1:0}function Hi(){var t,e,n,r,a,i,o,l,s,u,c,f=this.context,d=(0,I.Z)(f).getInstance();function m(t){if(t&&t.currentRepresentation&&t.currentRepresentation.mediaInfo&&t.currentRepresentation.mediaInfo.type){var e=t.currentRepresentation.mediaInfo.type;o[e]=t.currentRepresentation}}function g(t,e){return t&&n[e]&&n[e][t]?n[e][t].list:[]}function p(t,e){return t&&n[e]&&n[e][t]?n[e][t].current:null}function h(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&t.streamInfo){var a=t.type,o=t.streamInfo.id,l=p(a,o);if(n[o]&&n[o][a]&&(n[o][a].current=t,n[o][a].current&&(a!==S.Z.TEXT&&!v(t,l)||a===S.Z.TEXT&&t.isFragmented)&&d.trigger(R.Z.CURRENT_TRACK_CHANGED,{oldMediaInfo:l,newMediaInfo:t,switchMode:r.get().streaming.trackSwitchMode[a]},{streamId:o}),!e)){var s=function(t){var e={lang:t.lang,viewpoint:t.viewpoint,roles:t.roles,accessibility:t.accessibility,audioChannelConfiguration:t.audioChannelConfiguration,codec:t.codec},n=e.lang||e.viewpoint||e.role&&e.role.length>0||e.accessibility&&e.accessibility.length>0||e.audioChannelConfiguration&&e.audioChannelConfiguration.length>0;return n?e:null}(t);if(!s||!n[o][a].storeLastSettings)return;s.roles&&(s.role=s.roles[0],delete s.roles),s.accessibility&&(s.accessibility=s.accessibility[0]),s.audioChannelConfiguration&&(s.audioChannelConfiguration=s.audioChannelConfiguration[0]),i[a]=s,c.setSavedMediaSettings(a,s)}}}function b(t,e){t&&e&&(a[t]=e)}function y(t){return t?a[t]:null}function v(t,e){if(!t&&!e)return!0;if(!t||!e)return!1;var n=t.id===e.id,r=JSON.stringify(t.viewpoint)===JSON.stringify(e.viewpoint),a=t.lang===e.lang,i=t.codec===e.codec,o=JSON.stringify(t.roles)===JSON.stringify(e.roles),l=JSON.stringify(t.accessibility)===JSON.stringify(e.accessibility),s=JSON.stringify(t.audioChannelConfiguration)===JSON.stringify(e.audioChannelConfiguration);return n&&i&&r&&a&&o&&l&&s}function E(){n={},i={},o={},a={audio:null,video:null,text:null},d.off(x.Z.REPRESENTATION_SWITCH,m,t)}function _(t,n){if(t===S.Z.TEXT)return n[0];var a,i=l.getCustomInitialTrackSelectionFunction();if(a=function(t){try{var n;return n=function(t){try{var n=t.filter((function(t){var e=t.type;return t.bitrateList.some((function(t){var n=s.getAbrBitrateParameter("maxBitrate",e),r=s.getAbrBitrateParameter("minBitrate",e);return!(n>-1&&t.bandwidth>1e3*n||r>-1&&t.bandwidth<1e3*r)}))}));return n.length>0?n:t}catch(n){return e.error(n),t}}(t),n=function(t){try{if(!r.get().streaming.abr.limitBitrateByPortal)return t;var n=u.getVideoElementSize().elementWidth,a=t.filter((function(t){return t.type!==S.Z.VIDEO||t.bitrateList.some((function(t){return t.width<=n}))}));return a.length>0?a:t}catch(n){return e.error(n),t}}(n),n}catch(n){return e.error(n),t}}(n),!i||"function"!=typeof i)throw new Error("No valid initial track selection function found!");return(a=i(n)).length>0?a[0]:n[0]}function w(t,e){return!(!t||!e)&&JSON.stringify({schemeIdUri:t.schemeIdUri,value:t.value})===JSON.stringify({schemeIdUri:e.schemeIdUri,value:e.value})}return t={addTrack:function(t){if(t){var e=t.type;if((a=e)===S.Z.AUDIO||a===S.Z.VIDEO||a===S.Z.TEXT||a===S.Z.IMAGE){var a,i,o=t.streamInfo.id;n[o]||(n[o]={audio:{list:[],storeLastSettings:i=r.get().streaming.saveLastMediaSettingsForCurrentStreamingSession,current:null},video:{list:[],storeLastSettings:i,current:null},text:{list:[],storeLastSettings:i,current:null},image:{list:[],storeLastSettings:i,current:null}});for(var l=n[o][e].list,s=0,u=l.length;s<u;++s)if(v(l[s],t))return;l.push(t)}}},areTracksEqual:v,getCurrentTrackFor:p,getInitialSettings:y,getTracksFor:g,getTracksWithHighestBitrate:function(t){var e,n=0,r=[];return t.forEach((function(t){(e=Math.max.apply(Math,t.bitrateList.map((function(t){return t.bandwidth}))))>n?(n=e,r=[t]):e===n&&r.push(t)})),r},getTracksWithHighestEfficiency:function(t){var e,n=1/0,r=[];return t.forEach((function(t){var a=t.bitrateList.reduce((function(t,e){var n=Math.max(1,e.width*e.height);return t+e.bandwidth/n}),0);(e=a/t.bitrateList.length)<n?(n=e,r=[t]):e===n&&r.push(t)})),r},getTracksWithWidestRange:function(t){var e,n=0,r=[];return t.forEach((function(t){(e=t.representationCount)>n?(n=e,r=[t]):e===n&&r.push(t)})),r},initialize:function(){d.on(x.Z.REPRESENTATION_SWITCH,m,t)},isCurrentTrack:function(t){if(!t)return!1;var e=t.type,r=t.streamInfo.id;return n[r]&&n[r][e]&&v(n[r][e].current,t)},matchSettings:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var r=!1;if(t.lang){if(t.lang instanceof RegExp)r=e.lang.match(t.lang);else if(""!==e.lang){var a=Ui(t.lang);a&&(r=Di(e.lang,a).length>0)}}else r=!0;var i=void 0===t.index||null===t.index||e.index===t.index,o=!t.viewpoint||!!e.viewpoint.filter((function(e){return w(e,t.viewpoint)}))[0],l=!t.role||!!e.roles.filter((function(e){return w(e,t.role)}))[0],s=!t.accessibility||!!e.accessibility.filter((function(e){return w(e,t.accessibility)}))[0],u=!t.audioChannelConfiguration||!!e.audioChannelConfiguration.filter((function(e){return w(e,t.audioChannelConfiguration)}))[0];return r&&i&&o&&(l||e.type===S.Z.AUDIO&&n)&&s&&u}catch(t){return!1}},matchSettingsAccessibility:function(t,e){return t.accessibility?!!e.accessibility.filter((function(e){return w(e,t.accessibility)}))[0]:!e.accessibility.length},matchSettingsAudioChannelConfig:function(t,e){return!t.audioChannelConfiguration||!!e.audioChannelConfiguration.filter((function(e){return w(e,t.audioChannelConfiguration)}))[0]},matchSettingsIndex:function(t,e){return void 0===t.index||null===t.index||e.index===t.index},matchSettingsLang:function(t,e){try{return!t.lang||t.lang instanceof RegExp?e.lang.match(t.lang):""!==e.lang&&Di(e.lang,Ui(t.lang)).length>0}catch(t){return!1}},matchSettingsRole:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.role||!!e.roles.filter((function(e){return w(e,t.role)}))[0]||e.type===S.Z.AUDIO&&n},matchSettingsViewPoint:function(t,e){return!t.viewpoint||!!e.viewpoint.filter((function(e){return w(e,t.viewpoint)}))[0]},reset:E,saveTextSettingsDisabled:function(){c.setSavedMediaSettings(S.Z.TEXT,null)},selectInitialTrack:_,setConfig:function(t){t&&(t.domStorage&&(c=t.domStorage),t.settings&&(r=t.settings),t.customParametersModel&&(l=t.customParametersModel),t.mediaPlayerModel&&(s=t.mediaPlayerModel),t.videoModel&&(u=t.videoModel))},setInitialMediaSettingsForType:function(t,e){var n=i[t]||y(t),r=g(t,e.id),a=[];n||((n=c.getSavedMediaSettings(t))&&delete n.codec,b(t,n)),r&&0!==r.length&&h(0===a.length?_(t,r):a.length>1?_(t,a):a[0])},setInitialSettings:b,setTrack:h},e=(0,C.Z)(f).getInstance().getLogger(t),E(),t}Hi.__dashjs_factory_name="MediaController";var Yi=N.Z.getSingletonFactory(Hi);N.Z.updateSingletonFactory(Hi.__dashjs_factory_name,Yi);var Vi=Yi;function Ki(t){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ki(t)}function Wi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ki(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ki(i)?i:String(i)),r)}var a,i}function Xi(t,e,n){return e&&Wi(t.prototype,e),n&&Wi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Qi=NaN,$i=Xi((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data={baseUrls:e||null,selectedIdx:n||Qi},this.children=[]}));function Ji(){var t,e,n,r,a=this.context,i=on(a).getInstance();function o(t,e,n){var r=s(n);t[e]?i.areEqual(r,t[e].data.baseUrls)||(t[e].data.baseUrls=r,t[e].data.selectedIdx=Qi):t[e]=new $i(r)}function l(t){!function(){if(!n||!n.hasOwnProperty("getBaseURLsFromElement")||!n.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();var r=s(t);i.areEqual(r,e.data.baseUrls)||(e.data.baseUrls=r,e.data.selectedIdx=Qi),t&&t.Period&&t.Period.forEach((function(t,r){o(e.children,r,t),t.AdaptationSet&&t.AdaptationSet.forEach((function(t,a){o(e.children[r].children,a,t),t.Representation&&t.Representation.sort(n.getRepresentationSortFunction()).forEach((function(t,n){o(e.children[r].children[a].children,n,t)}))}))}))}function s(t){var e=n.getBaseURLsFromElement(t),a=r.getSynthesizedBaseUrlElements(e);return a&&a.length>0&&(e=e.concat(a)),e}function u(t,n){var r=n||e;t(r.data),r.children&&r.children.forEach((function(e){return u(t,e)}))}function c(){e=new $i}return t={reset:c,update:function(t){l(t)},getForPath:function(t){var n=e,r=[n.data];return t&&t.forEach((function(t){(n=n.children[t])&&r.push(n.data)})),r.filter((function(t){return t.baseUrls.length}))},invalidateSelectedIndexes:function(t){u((function(e){isNaN(e.selectedIdx)||t===e.baseUrls[e.selectedIdx].serviceLocation&&(e.selectedIdx=Qi)}))},setConfig:function(t){t.adapter&&(n=t.adapter),t.contentSteeringController&&(r=t.contentSteeringController)},getBaseUrls:function(t){return s(t)}},c(),t}Ji.__dashjs_factory_name="BaseURLTreeModel";var to=N.Z.getClassFactory(Ji);function eo(t){var e=(t=t||{}).blacklistController;return{select:function(t){return t&&function(t){var e,n,r=0,a=[],i=0;if((n=t.sort((function(t,e){var n=t.dvbPriority-e.dvbPriority;return isNaN(n)?0:n})).filter((function(t,e,n){return!e||n[0].dvbPriority&&t.dvbPriority&&n[0].dvbPriority===t.dvbPriority}))).length)return n.length>1&&(n.forEach((function(t){r+=t.dvbWeight,a.push(r)})),e=Math.floor(Math.random()*(r-1)),a.every((function(t,n){return i=n,!(e<t)}))),n[i]}((n=[],t.filter((function(t){return!e.contains(t.serviceLocation)||(t.dvbPriority&&n.push(t.dvbPriority),!1)})).filter((function(t){return!n.length||!t.dvbPriority||-1===n.indexOf(t.dvbPriority)}))));var n}}}eo.__dashjs_factory_name="DVBSelector";var no=N.Z.getClassFactory(eo);function ro(t){var e=(t=t||{}).blacklistController;return{select:function(t){var n,r=0;return t&&t.some((function(t,n){return r=n,!e.contains(t.serviceLocation)}))&&(n=t[r]),n}}}ro.__dashjs_factory_name="BasicSelector";var ao=N.Z.getClassFactory(ro);function io(){var t,e,n,r=this.context;function a(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,a=NaN,i=function(){var i=t[r],o=e.findIndex((function(t){return t.serviceLocation&&t.serviceLocation===i}));if(-1!==o&&!n.contains(e[o].serviceLocation))return a=o,1;r+=1};r<t.length&&!i(););return a}return t={selectBaseUrlIndex:function(t){var n=NaN;if(isNaN(t.selectedIdx)){var r=e.getSteeringDataFromManifest();r&&r.defaultServiceLocationArray.length>0&&(n=a(r.defaultServiceLocationArray,t.baseUrls))}var i=e.getCurrentSteeringResponseData();return t.baseUrls&&t.baseUrls.length&&i&&i.pathwayPriority&&i.pathwayPriority.length&&(n=a(i.pathwayPriority,t.baseUrls)),n},setConfig:function(t){t.blacklistController&&(n=t.blacklistController),t.contentSteeringController&&(e=t.contentSteeringController)}},e=Qa(r).getInstance(),t}io.__dashjs_factory_name="ContentSteeringSelector";var oo=N.Z.getClassFactory(io);function lo(){var t,e,n,r,a,i,o=this.context,l=(0,I.Z)(o).getInstance(),s=(0,$.Z)(o).getInstance();function u(){e.reset()}return t={chooseSelector:function(t){(0,Rt.PS)(t,"boolean"),i=t?r:n},select:function(t){if(t){if(s.get().streaming.applyContentSteering){var e=a.selectBaseUrlIndex(t);isNaN(e)||-1===e||(t.selectedIdx=e)}if(!isNaN(t.selectedIdx))return t.baseUrls[t.selectedIdx];var r=i.select(t.baseUrls);return r?(t.selectedIdx=t.baseUrls.indexOf(r),r):(l.trigger(R.Z.URL_RESOLUTION_FAILED,{error:new H.Z(Q.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,Q.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(i===n&&u()))}},reset:u,setConfig:function(t){t.selector&&(i=t.selector),t.contentSteeringSelector&&(a=t.contentSteeringSelector)}},e=Ma(o).create({updateEventName:R.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,addBlacklistEventName:R.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD}),n=ao(o).create({blacklistController:e}),r=no(o).create({blacklistController:e}),(a=oo(o).create()).setConfig({blacklistController:e}),i=n,t}lo.__dashjs_factory_name="BaseURLSelector";var so=N.Z.getClassFactory(lo);function uo(){var t,e,n,r,a,i=this.context,o=(0,I.Z)(i).getInstance(),l=zt(i).getInstance();function s(t){n.invalidateSelectedIndexes(t.entry)}function u(t){n.update(t),r.chooseSelector(e.getIsDVB(t)),o.trigger(x.Z.BASE_URLS_UPDATED,{baseUrls:c(t)})}function c(t){return n.getBaseUrls(t)}return t={reset:function(){n.reset(),r.reset()},initialize:function(t){n.setConfig({adapter:e,contentSteeringController:a}),u(t)},resolve:function(t){var e=n.getForPath(t).reduce((function(t,e){var n=r.select(e);return n?(l.isRelative(n.url)?t.url=l.resolve(n.url,t.url):(t.url=n.url,t.serviceLocation=n.serviceLocation),t.availabilityTimeOffset=n.availabilityTimeOffset,t.availabilityTimeComplete=n.availabilityTimeComplete,t.queryParams=n.queryParams,t):new qe}),new qe);if(!l.isRelative(e.url))return e},setConfig:function(t){t.baseURLTreeModel&&(n=t.baseURLTreeModel),t.baseURLSelector&&(r=t.baseURLSelector),t.adapter&&(e=t.adapter),t.contentSteeringController&&(a=t.contentSteeringController)},getBaseUrls:c,update:u},n=to(i).create(),r=so(i).create(),o.on(R.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,s,t),t}uo.__dashjs_factory_name="BaseURLController";var co=N.Z.getClassFactory(uo);function fo(t){return fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(t)}function mo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==fo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===fo(i)?i:String(i)),r)}var a,i}function go(t,e){return go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},go(t,e)}function po(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ho(t);if(e){var a=ho(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ho(t){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ho(t)}var bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&go(t,e)}(i,t);var e,n,r,a=po(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=a.call(this)).url=t||null,n.type=e||null,n.mediaType=S.Z.STREAM,n.responseType="",n}return e=i,n&&mo(e.prototype,n),r&&mo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(j);function yo(t){t=t||{};var e=this.context,n=(0,I.Z)(e).getInstance(),r=ta(e).create({errHandler:t.errHandler,dashMetrics:t.dashMetrics,mediaPlayerModel:t.mediaPlayerModel,errors:Q});return{load:function(t,e,a){var i=function(r,i){e.resolved=!0,e.resolvedContent=r||null,n.trigger(R.Z.XLINK_ELEMENT_LOADED,{element:e,resolveObject:a,error:r||i?null:new H.Z(Q.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,Q.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+t)})};if("urn:mpeg:dash:resolve-to-zero:2013"===t)i(null,!0);else{var o=new bo(t,z.w.XLINK_EXPANSION_TYPE);r.load({request:o,success:function(t){i(t)},error:function(){i(null)}})}},reset:function(){r&&(r.abort(),r=null)}}}yo.__dashjs_factory_name="XlinkLoader";var vo=N.Z.getClassFactory(yo),Eo="onLoad";function _o(t){t=t||{};var e,n,r,a,i=this.context,o=(0,I.Z)(i).getInstance(),l=zt(i).getInstance();function s(t,e,n){var r,i,o={};o.elements=t,o.type=e,o.resolveType=n,0===o.elements.length&&c(o);for(var s=0;s<o.elements.length;s++)r=o.elements[s],i=l.isHTTPURL(r.url)?r.url:r.originalContent.BaseURL+r.url,a.load(i,r,o)}function u(t){var e,r,a="";if(e=t.element,r=t.resolveObject,e.resolvedContent){var i=0;0===e.resolvedContent.indexOf("<?xml")&&(i=e.resolvedContent.indexOf("?>")+2),a=e.resolvedContent.substr(0,i)+"<response>"+e.resolvedContent.substr(i)+"</response>",e.resolvedContent=n.parseXml(a).response}(function(t){var e;for(e=0;e<t.elements.length;e++)if(!1===t.elements[e].resolved)return!1;return!0})(r)&&c(r)}function c(t){var e,a,i=[];if(function(t){var e,a,i,o,l,s,u=[];for(o=t.elements.length-1;o>=0;o--){if(a=(e=t.elements[o]).type,e.resolvedContent){if(e.resolvedContent)for(l=0;l<e.resolvedContent[a].length;l++)i=e.resolvedContent[a][l],u.push(i)}else delete e.originalContent["xlink:actuate"],delete e.originalContent["xlink:href"],u.push(e.originalContent);for(e.parentElement[a].splice(e.index,1),s=0;s<u.length;s++)e.parentElement[a].splice(e.index+s,0,u[s]);u=[]}t.elements.length>0&&n.getIron().run(r)}(t),"onActuate"===t.resolveType&&o.trigger(R.Z.XLINK_READY,{manifest:r}),t.resolveType===Eo)switch(t.type){case k.Z.PERIOD:for(e=0;e<r[k.Z.PERIOD].length;e++)(a=r[k.Z.PERIOD][e]).hasOwnProperty(k.Z.ADAPTATION_SET)&&(i=i.concat(f(a[k.Z.ADAPTATION_SET],a,k.Z.ADAPTATION_SET,Eo))),a.hasOwnProperty(k.Z.EVENT_STREAM)&&(i=i.concat(f(a[k.Z.EVENT_STREAM],a,k.Z.EVENT_STREAM,Eo)));s(i,k.Z.ADAPTATION_SET,Eo);break;case k.Z.ADAPTATION_SET:o.trigger(R.Z.XLINK_READY,{manifest:r})}}function f(t,e,n,r){var a,i,o,l=[];for(i=t.length-1;i>=0;i--)(a=t[i]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===a["xlink:href"]&&t.splice(i,1);for(i=0;i<t.length;i++)(a=t[i]).hasOwnProperty("xlink:href")&&a.hasOwnProperty("xlink:actuate")&&a["xlink:actuate"]===r&&(o=d(a["xlink:href"],e,n,i,r,a),l.push(o));return l}function d(t,e,n,r,a,i){return{url:t,parentElement:e,type:n,index:r,resolveType:a,originalContent:i,resolvedContent:null,resolved:!1}}return e={resolveManifestOnLoad:function(t){(r=t).Period?s(f(r.Period,r,k.Z.PERIOD,Eo),k.Z.PERIOD,Eo):o.trigger(R.Z.XLINK_READY,{manifest:r})},setParser:function(t){t&&(n=t)},reset:function(){o.off(R.Z.XLINK_ELEMENT_LOADED,u,e),a&&(a.reset(),a=null)}},o.on(R.Z.XLINK_ELEMENT_LOADED,u,e),a=vo(i).create({errHandler:t.errHandler,dashMetrics:t.dashMetrics,mediaPlayerModel:t.mediaPlayerModel,settings:t.settings}),e}_o.__dashjs_factory_name="XlinkController";var wo=N.Z.getClassFactory(_o);function To(t){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(t)}function So(t){function e(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function n(t,n,r){for(var a=0,i=t.length;a<i;++a){var o=t[a];if(n[o.name])if(r[o.name]){if(o.merge){var l=n[o.name],s=r[o.name];"object"===To(l)&&"object"===To(s)?e(l,s):r[o.name]=l+s}}else r[o.name]=n[o.name]}}function r(t,e){for(var a=0,i=t.children.length;a<i;++a){var o=t.children[a],l=e[o.name];if(l)for(var s=0,u=l.length;s<u;++s){var c=l[s];n(t.properties,e,c),r(o,c)}}}return{run:function(e){if(null===e||"object"!==To(e))return e;if(e.Period&&"period"in t)for(var n=t.period,a=e.Period,i=0,o=a.length;i<o;++i){var l=a[i];if(r(n,l),"adaptationset"in t){var s=l.AdaptationSet;if(s)for(var u=t.adaptationset,c=0,f=s.length;c<f;++c)r(u,s[c])}}return e}}}So.__dashjs_factory_name="ObjectIron";var ko=N.Z.getClassFactory(So);function Ao(t){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(t)}function Io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ao(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ao(i)?i:String(i)),r)}var a,i}var Ro=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._test=e,this._converter=n}var e,n,r;return e=t,(n=[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}])&&Io(e.prototype,n),r&&Io(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function No(t){return No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(t)}function Co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==No(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==No(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===No(i)?i:String(i)),r)}var a,i}function xo(t,e){return xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xo(t,e)}function Do(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Oo(t);if(e){var a=Oo(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===No(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Oo(t){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oo(t)}var zo=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,Po=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xo(t,e)}(i,t);var e,n,r,a=Do(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,(function(t,e,n){for(var r=[k.Z.MIN_BUFFER_TIME,k.Z.MEDIA_PRESENTATION_DURATION,k.Z.MINIMUM_UPDATE_PERIOD,k.Z.TIMESHIFT_BUFFER_DEPTH,k.Z.MAX_SEGMENT_DURATION,k.Z.MAX_SUBSEGMENT_DURATION,k.Z.SUGGESTED_PRESENTATION_DELAY,k.Z.START,S.Z.START_TIME,k.Z.DURATION],a=r.length,i=0;i<a;i++)if(e===r[i])return zo.test(n);return!1}),(function(t){var e=zo.exec(t),n=31536e3*parseFloat(e[3]||0)+2592e3*parseFloat(e[5]||0)+86400*parseFloat(e[7]||0)+3600*parseFloat(e[9]||0)+60*parseFloat(e[11]||0)+parseFloat(e[13]||0);return void 0!==e[1]&&(n=-n),n}))}return e=i,n&&Co(e.prototype,n),r&&Co(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(Ro);function Mo(t){return Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(t)}function Lo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Mo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Mo(i)?i:String(i)),r)}var a,i}function jo(t,e){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jo(t,e)}function Fo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uo(t);if(e){var a=Uo(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Mo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Uo(t){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uo(t)}var qo=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,Bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jo(t,e)}(i,t);var e,n,r,a=Fo(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,(function(t,e,n){return qo.test(n)}),(function(t){var e,n=qo.exec(t);if(e=Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10),n[6]&&parseInt(n[6],10)||0,n[7]&&1e3*parseFloat(n[7])||0),n[9]&&n[10]){var r=60*parseInt(n[9],10)+parseInt(n[10],10);e+=("+"===n[8]?-1:1)*r*60*1e3}return new Date(e)}))}return e=i,n&&Lo(e.prototype,n),r&&Lo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(Ro);function Zo(t){return Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(t)}function Go(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Zo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Zo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Zo(i)?i:String(i)),r)}var a,i}function Ho(t,e){return Ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ho(t,e)}function Yo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vo(t);if(e){var a=Vo(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Zo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Vo(t){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vo(t)}var Ko=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,Wo=[k.Z.ID],Xo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ho(t,e)}(i,t);var e,n,r,a=Yo(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,(function(t,e,n){return Ko.test(n)&&-1===Wo.indexOf(e)}),(function(t){return parseFloat(t)}))}return e=i,n&&Go(e.prototype,n),r&&Go(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(Ro);function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function $o(t,e,n){return(e=tl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tl(r.key),r)}}function tl(t){var e=function(t,e){if("object"!==Qo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qo(e)?e:String(e)}function el(t,e){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},el(t,e)}function nl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rl(t);if(e){var a=rl(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function rl(t){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rl(t)}var al=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&el(t,e)}(i,t);var e,n,r,a=nl(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,(function(t,e){var n,r=($o(n={},k.Z.ADAPTATION_SET,[k.Z.LANG]),$o(n,k.Z.REPRESENTATION,[k.Z.LANG]),$o(n,k.Z.CONTENT_COMPONENT,[k.Z.LANG]),$o(n,k.Z.LABEL,[k.Z.LANG]),$o(n,k.Z.GROUP_LABEL,[k.Z.LANG]),n);if(r.hasOwnProperty(t)){var a=r[t];return void 0!==a&&a.indexOf(e)>=0}return!1}),(function(t){var e=Ui(t);return e||String(t)}))}return e=i,n&&Jo(e.prototype,n),r&&Jo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(Ro);function il(t){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(t)}function ol(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==il(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===il(i)?i:String(i)),r)}var a,i}var ll=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._merge=(n=e)&&n.length&&n.charAt(0)===n.charAt(0).toUpperCase()}var e,n,r;return e=t,(n=[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}])&&ol(e.prototype,n),r&&ol(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function sl(t){return sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(t)}function ul(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==sl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==sl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===sl(i)?i:String(i)),r)}var a,i}var cl=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e||"",this._properties=[],this._children=r||[],Array.isArray(n)&&n.forEach((function(t){a._properties.push(new ll(t))}))}var e,n,r;return e=t,(n=[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}])&&ul(e.prototype,n),r&&ul(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function fl(t){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(t)}function dl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==fl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===fl(i)?i:String(i)),r)}var a,i}function ml(t,e){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ml(t,e)}function gl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pl(t);if(e){var a=pl(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===fl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pl(t)}var hl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ml(t,e)}(i,t);var e,n,r,a=gl(i);function i(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var t=[k.Z.PROFILES,k.Z.WIDTH,k.Z.HEIGHT,k.Z.SAR,k.Z.FRAMERATE,k.Z.AUDIO_SAMPLING_RATE,k.Z.MIME_TYPE,k.Z.SEGMENT_PROFILES,k.Z.CODECS,k.Z.MAXIMUM_SAP_PERIOD,k.Z.START_WITH_SAP,k.Z.MAX_PLAYOUT_RATE,k.Z.CODING_DEPENDENCY,k.Z.SCAN_TYPE,k.Z.FRAME_PACKING,k.Z.AUDIO_CHANNEL_CONFIGURATION,k.Z.CONTENT_PROTECTION,k.Z.ESSENTIAL_PROPERTY,k.Z.SUPPLEMENTAL_PROPERTY,k.Z.INBAND_EVENT_STREAM];return a.call(this,k.Z.ADAPTATION_SET,t,[new cl(k.Z.REPRESENTATION,t,[new cl(k.Z.SUB_REPRESENTATION,t)])])}return e=i,n&&dl(e.prototype,n),r&&dl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(cl);function bl(t){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(t)}function yl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==bl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===bl(i)?i:String(i)),r)}var a,i}function vl(t,e){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vl(t,e)}function El(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_l(t);if(e){var a=_l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===bl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function _l(t){return _l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_l(t)}var wl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vl(t,e)}(i,t);var e,n,r,a=El(i);function i(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var t=[k.Z.SEGMENT_BASE,k.Z.SEGMENT_TEMPLATE,k.Z.SEGMENT_LIST];return a.call(this,k.Z.PERIOD,t,[new cl(k.Z.ADAPTATION_SET,t,[new cl(k.Z.REPRESENTATION,t)])])}return e=i,n&&yl(e.prototype,n),r&&yl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(cl);function Tl(t){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(t)}function Sl(t){return function(t){if(Array.isArray(t))return kl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return kl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Al={"&amp;":"&","&gt;":">","&lt;":"<","&quot;":'"',"&apos;":"'"};function Il(t,e){var n=e.split(/(&[#a-zA-Z0-9]+;)/);if(n.length<=1)return e;for(var r=1;r<n.length;r+=2){var a=n[r];if("#"===a.charAt(1)){var i=void 0;i="x"===a.charAt(2)?parseInt(a.substring(3,a.length-1),16):parseInt(a.substring(2,a.length-1),10),!isNaN(i)&&i>=0&&i<=1114111&&(n[r]=String.fromCodePoint(i))}else t.hasOwnProperty(a)&&(n[r]=t[a])}return n.join("")}function Rl(t,e){var n=(e=e||{}).pos||0,r=!!e.keepComments,a=!!e.keepWhitespace,i=e.attrMatchers||[],o=e.nodesAsArray||[],l="<",s="<".charCodeAt(0),u=">",c=">".charCodeAt(0),f="-".charCodeAt(0),d="/".charCodeAt(0),m="!".charCodeAt(0),g="'".charCodeAt(0),p='"'.charCodeAt(0),h="[".charCodeAt(0),b="]".charCodeAt(0);function y(e,i){for(var g=[];t[n];)if(t.charCodeAt(n)==s){if(t.charCodeAt(n+1)===d){var p=n+2;if(n=t.indexOf(u,n),-1==t.substring(p,n).indexOf(e)){var y=t.substring(0,n).split("\n");throw new Error("Unexpected close tag\nLine: "+(y.length-1)+"\nColumn: "+(y[y.length-1].length+1)+"\nChar: "+t[n])}return n+1&&(n+=1),g}if(t.charCodeAt(n+1)===m){if(t.charCodeAt(n+2)==f){for(var v=n;-1!==n&&(t.charCodeAt(n)!==c||t.charCodeAt(n-1)!=f||t.charCodeAt(n-2)!=f||-1==n);)n=t.indexOf(u,n+1);-1===n&&(n=t.length),r&&g.push(t.substring(v,n+1))}else{if(t.charCodeAt(n+2)===h&&t.charCodeAt(n+8)===h&&"cdata"===t.substr(n+3,5).toLowerCase()){var E=t.indexOf("]]>",n);-1==E?(g.push(t.substr(n+9)),n=t.length):(g.push(t.substring(n+9,E)),n=E+3);continue}var _=n+1;n+=2;for(var w=!1;(t.charCodeAt(n)!==c||!0===w)&&t[n];)t.charCodeAt(n)===h?w=!0:!0===w&&t.charCodeAt(n)===b&&(w=!1),n++;g.push(t.substring(_,n))}n++;continue}var S=T();if(g.push(S),"?"===S.tagName[0]&&(g.push.apply(g,Sl(S.children)),S.children=[]),i){var k=S.tagName;delete S.tagName,-1!==o.indexOf(k)?(i[k]||(i[k]=[]),i[k].push(S)):i[k]=S}}else{var A=(I=void 0,I=n,-2==(n=t.indexOf(l,n)-1)&&(n=t.length),Il(Al,t.slice(I,n+1)));a||(A=A.trim()),i?i.__text=A:g.push(A),n++}var I;return g}function v(t,e,n){if("S"===t)return parseInt(n);var r=Il(Al,n);return i.forEach((function(a){a.test(t,e,n)&&(r=a.converter(n))})),r}var E="\r\n\t>/= ";function _(){for(var e=n;-1===E.indexOf(t[n])&&t[n];)n++;return t.slice(e,n)}var w=e.noChildNodes||["img","br","input","meta","link","hr"];function T(){n++;var e,r,a=_(),i={tagName:a},o=i.tagName.indexOf(":");for(-1!==o&&(i.__prefix=i.tagName.substr(0,o),i.tagName=i.tagName.substr(o+1));t.charCodeAt(n)!==c&&t[n];){var l=t.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(var s=_(),u=t.charCodeAt(n);u&&u!==g&&u!==p&&!(u>64&&u<91||u>96&&u<123)&&u!==c;)n++,u=t.charCodeAt(n);if(u===g||u===p){var f=(e=void 0,r=void 0,e=t[n],r=n+1,n=t.indexOf(e,r),t.slice(r,n));if(-1===n)return i}else f=null,n--;f=v(i.tagName,s,f),i[s]=f}n++}if(t.charCodeAt(n-1)!==d)if("script"==a){var m=n+1;n=t.indexOf("<\/script>",n),t.slice(m,n),n+=9}else"style"==a?(m=n+1,n=t.indexOf("</style>",n),t.slice(m,n),n+=8):-1===w.indexOf(a)?(n++,y(a,i)):n++;else n++;return i}var S,k=null;if(void 0!==e.attrValue)for(e.attrName=e.attrName||"id",k=[];-1!==(S=void 0,S=new RegExp("\\s"+e.attrName+"\\s*=['\"]"+e.attrValue+"['\"]").exec(t),n=S?S.index:-1);)-1!==(n=t.lastIndexOf("<",n))&&k.push(T()),t=t.substr(n),n=0;else k=e.parseNode?T():y("");return e.filter&&(k=Cl(k,e.filter)),e.simplify?Nl(Array.isArray(k)?k:[k]):(e.setPos&&(k.pos=n),k)}function Nl(t){var e={};if(!t.length)return"";if(1===t.length&&"string"==typeof t[0])return t[0];for(var n in t.forEach((function(t){if("object"===Tl(t)){e[t.tagName]||(e[t.tagName]=[]);var n=Nl(t.children);e[t.tagName].push(n),Object.keys(t.attributes).length&&"string"!=typeof n&&(n._attributes=t.attributes)}})),e)1==e[n].length&&(e[n]=e[n][0]);return e}function Cl(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=[];return t.forEach((function(t,i){if("object"===Tl(t)&&e(t,i,n,r)&&a.push(t),t.children){var o=Cl(t.children,e,n+1,(r?r+".":"")+i+"."+t.tagName);a=a.concat(o)}})),a}function xl(t){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(t)}var Dl=[k.Z.PERIOD,k.Z.BASE_URL,k.Z.ADAPTATION_SET,k.Z.REPRESENTATION,k.Z.CONTENT_PROTECTION,k.Z.ROLE,k.Z.ACCESSIBILITY,k.Z.AUDIO_CHANNEL_CONFIGURATION,k.Z.CONTENT_COMPONENT,k.Z.ESSENTIAL_PROPERTY,k.Z.LABEL,k.Z.S,k.Z.SEGMENT_URL,k.Z.EVENT,k.Z.EVENT_STREAM,k.Z.LOCATION,k.Z.SERVICE_DESCRIPTION,k.Z.SUPPLEMENTAL_PROPERTY,k.Z.METRICS,k.Z.REPORTING,k.Z.PATCH_LOCATION,k.Z.REPLACE,k.Z.ADD,k.Z.REMOVE,k.Z.UTC_TIMING,k.Z.INBAND_EVENT_STREAM,k.Z.PRODUCER_REFERENCE_TIME,k.Z.CONTENT_STEERING];function Ol(t){t=t||{};var e,n,r,a,i=this.context,o=t.debug;function l(t){try{var e=Rl(t,{parseNode:!0,attrMatchers:r,nodesAsArray:Dl}),n={};if(-1!==e.tagName.toLowerCase().indexOf("xml"))for(var a in e){if(Array.isArray(e[a])){n[a]=e[a][0];break}if("object"===xl(e[a])){n[a]=e[a];break}}else n[e.tagName]=e,delete e.tagName;return n}catch(t){return null}}return e={getIron:function(){return a},parseXml:l,parse:function(t){var e,r=window.performance.now();if(!(e=l(t)))throw new Error("failed to parse the manifest");e.Patch?((e=e.Patch).add&&e.add.forEach((function(t){return a.run(t)})),e.replace&&e.replace.forEach((function(t){return a.run(t)}))):(e=e.MPD,a.run(e));var i=window.performance.now();return n.info("Parsing complete: "+(i-r).toPrecision(3)+"ms"),e.protocol="DASH",e}},n=o.getLogger(e),r=[new Po,new Bo,new Xo,new al],a=ko(i).create({adaptationset:new hl,period:new wl}),e}Ol.__dashjs_factory_name="DashParser";var zl=N.Z.getClassFactory(Ol);function Pl(t){t=t||{};var e,n,r,a,i,o=this.context,l=t.debug,s=t.settings,u=(0,I.Z)(o).getInstance(),c=zt(o).getInstance(),f=t.mssHandler,d=t.errHandler;function m(t){u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:t.manifest})}return e={load:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,m=new Date,g=new bo(t,z.w.MPD_TYPE);e&&(g.serviceLocation=e),d&&(g.queryParams=d),g.startDate||(g.startDate=m),u.trigger(R.Z.MANIFEST_LOADING_STARTED,{request:g}),r.load({request:g,success:function(e,r,d){var m,g,p;if(a)if(d&&d!==t?(g=c.parseBaseUrl(d),m=d):(c.isRelative(t)&&(t=c.resolve(t,window.location.href)),g=c.parseBaseUrl(t)),"No Content"!=r)if(null===i&&(i=function(t){var e=null;return t.indexOf("SmoothStreamingMedia")>-1?(f&&(e=f.createMssParser(),f.createMssFragmentProcessor(),f.registerEvents()),e):t.indexOf("MPD")>-1||t.indexOf("Patch")>-1?zl(o).create({debug:l}):e}(e)),null!==i){a.setParser(i);try{p=i.parse(e)}catch(e){return void u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new H.Z(Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(t))})}if(p){if(p.url=m||t,p.originalUrl||(p.originalUrl=p.url),s&&s.get().streaming.enableManifestDurationMismatchFix&&p.mediaPresentationDuration&&p.Period.length>1){var h=p.Period.reduce((function(t,e){return t+e.duration}),0);!isNaN(h)&&p.mediaPresentationDuration>h&&(n.warn("Media presentation duration greater than duration of all periods. Setting duration to total period duration"),p.mediaPresentationDuration=h)}p.baseUri=g,p.loadedTime=new Date,a.resolveManifestOnLoad(p),u.trigger(R.Z.ORIGINAL_MANIFEST_LOADED,{originalManifest:e})}else u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new H.Z(Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(t))})}else u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new H.Z(Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,Q.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(t))});else u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:null})},error:function(e,n,r){u.trigger(R.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new H.Z(Q.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,Q.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+"".concat(t,", ").concat(r))})}})},reset:function(){u.off(R.Z.XLINK_READY,m,e),f&&f.reset(),a&&(a.reset(),a=null),r&&(r.abort(),r=null)}},n=l.getLogger(e),u.on(R.Z.XLINK_READY,m,e),r=ta(o).create({errHandler:t.errHandler,dashMetrics:t.dashMetrics,mediaPlayerModel:t.mediaPlayerModel,urlUtils:c,constants:S.Z,dashConstants:k.Z,errors:Q,requestTimeout:t.settings.get().streaming.manifestRequestTimeout}),a=wo(o).create({errHandler:d,dashMetrics:t.dashMetrics,mediaPlayerModel:t.mediaPlayerModel,settings:t.settings}),i=null,e}Pl.__dashjs_factory_name="ManifestLoader";var Ml=N.Z.getClassFactory(Pl);function Ll(){var t=this.context,e=(0,I.Z)(t).getInstance();return{error:function(t){e.trigger(R.Z.ERROR,{error:t})}}}Ll.__dashjs_factory_name="ErrorHandler";var jl=N.Z.getSingletonFactory(Ll),Fl=n(7026);function Ul(){var t,e,n,r,a,i,o=this.context,l=(0,I.Z)(o).getInstance();function s(t,r){if(!r||!r.Period||0===r.Period.length)return Promise.resolve();var a=[];return r.Period.forEach((function(r){a.push(function(t,r){return new Promise((function(a){if(t&&t.AdaptationSet&&0!==t.AdaptationSet.length){var o=[];t.AdaptationSet.forEach((function(t){e.getIsTypeOf(t,r)&&o.push(function(t,r){return new Promise((function(a){if(t.Representation&&0!==t.Representation.length){var o=[],l=[];t.Representation.forEach((function(a,i){var s=e.getCodec(t,i,!1),u=function(t,e,n){switch(t){case S.Z.VIDEO:return function(t,e){var n=t.width||null,r=t.height||null,a=t.frameRate||null,i=t.bandwidth||null;return{codec:e,width:n,height:r,framerate:a,bitrate:i}}(e,n);case S.Z.AUDIO:return function(t,e){var n=t.audioSamplingRate||null,r=t.bandwidth||null;return{codec:e,bitrate:r,samplerate:n}}(e,n);default:return null}}(r,a,s);l.push(u),o.push(n.supportsCodec(u,r))})),Promise.all(o).then((function(e){t.Representation=t.Representation.filter((function(t,n){return e[n]||i.debug("[Stream] Codec ".concat(l[n].codec," not supported ")),e[n]})),a()})).catch((function(){a()}))}else a()}))}(t,r))})),Promise.all(o).then((function(){t.AdaptationSet=t.AdaptationSet.filter((function(t){var e=t.Representation&&t.Representation.length>0;return e||(l.trigger(R.Z.ADAPTATION_SET_REMOVED_NO_CAPABILITIES,{adaptationSet:t}),i.warn("AdaptationSet has been removed because of no supported Representation")),e})),a()})).catch((function(){a()}))}else a()}))}(r,t))})),Promise.all(a)}return t={setConfig:function(t){t&&(t.adapter&&(e=t.adapter),t.capabilities&&(n=t.capabilities),t.settings&&(r=t.settings),t.customParametersModel&&(a=t.customParametersModel))},filterUnsupportedFeatures:function(t){return new Promise((function(o){var l=[];l.push(s(S.Z.VIDEO,t)),l.push(s(S.Z.AUDIO,t)),Promise.all(l).then((function(){r.get().streaming.capabilities.filterUnsupportedEssentialProperties&&function(t){t&&t.Period&&0!==t.Period.length&&t.Period.forEach((function(t){t.AdaptationSet=t.AdaptationSet.filter((function(t){return!t.Representation||0===t.Representation.length||(t.Representation=t.Representation.filter((function(t){var r=e.getEssentialPropertiesForRepresentation(t);if(r&&r.length>0)for(var a=0;a<r.length;){if(!n.supportsEssentialProperty(r[a]))return i.debug("[Stream] EssentialProperty not supported: "+r[a].schemeIdUri),!1;a+=1}return!0})),t.Representation&&t.Representation.length>0)}))}))}(t),function(t){var e=a.getCustomCapabilitiesFilters();e&&0!==e.length&&t&&t.Period&&0!==t.Period.length&&t.Period.forEach((function(t){t.AdaptationSet=t.AdaptationSet.filter((function(t){return!t.Representation||0===t.Representation.length||(t.Representation=t.Representation.filter((function(t){return!e.some((function(e){return!e(t)}))})),t.Representation&&t.Representation.length>0)}))}))}(t),o()})).catch((function(){o()}))}))}},i=(0,C.Z)(o).getInstance().getLogger(t),t}Ul.__dashjs_factory_name="CapabilitiesFilter";var ql=N.Z.getSingletonFactory(Ul);function Bl(t){return Bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(t)}function Zl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Bl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Bl(i)?i:String(i)),r)}var a,i}function Gl(t,e,n){return e&&Zl(t.prototype,e),n&&Zl(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Hl=Gl((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null}));function Yl(){var t;return{initialize:function(e){if(t=new Hl,!e)return null;var n=e.indexOf("#");if(-1!==n)for(var r=e.substr(n+1).split("&"),a=0,i=r.length;a<i;++a){var o=r[a],l=o.indexOf("=");if(-1!==l){var s=o.substring(0,l);t.hasOwnProperty(s)&&(t[s]=o.substr(l+1))}}},getURIFragmentData:function(){return t}}}Yl.__dashjs_factory_name="URIFragmentModel";var Vl=N.Z.getSingletonFactory(Yl);function Kl(){var t,e=this.context,n=(0,I.Z)(e).getInstance();return{getValue:function(){return t},setValue:function(e){t=e,e&&n.trigger(R.Z.MANIFEST_LOADED,{data:e})}}}Kl.__dashjs_factory_name="ManifestModel";var Wl=N.Z.getSingletonFactory(Kl),Xl=-.5;function Ql(){var t,e,n,r,a=this.context,i=(0,$.Z)(a).getInstance();function o(t,n){return isNaN(t)?0:t>0?(n&&e.warn("Supplied minimum playback rate is a positive value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."),0):t<Xl?(n&&e.warn("Supplied minimum playback rate is out of range and will be limited to ".concat(Xl,": ").concat(-50,"% playback speed.")),Xl):t}function l(t,n){return isNaN(t)?0:t<0?(n&&e.warn("Supplied maximum playback rate is a negative value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."),0):t>1?(n&&e.warn("Supplied maximum playback rate is out of range and will be limited to ".concat(1,": ").concat(200,"% playback speed.")),1):t}function s(){var t=i.get().streaming.buffer.bufferTimeDefault>0?i.get().streaming.buffer.bufferTimeDefault:i.get().streaming.buffer.fastSwitchEnabled?20:12,e=n.getLiveDelay();return!isNaN(e)&&e>0?Math.min(t,e):t}return t={getCatchupMaxDrift:function(){if(!isNaN(i.get().streaming.liveCatchup.maxDrift)&&i.get().streaming.liveCatchup.maxDrift>0)return i.get().streaming.liveCatchup.maxDrift;var t=r.getServiceDescriptionSettings();return t&&t.liveCatchup&&!isNaN(t.liveCatchup.maxDrift)&&t.liveCatchup.maxDrift>0?t.liveCatchup.maxDrift:12},getCatchupModeEnabled:function(){return null!==i.get().streaming.liveCatchup.enabled?i.get().streaming.liveCatchup.enabled:n.getInitialCatchupModeActivated()},getBufferTimeDefault:s,getInitialBufferLevel:function(){var t=i.get().streaming.buffer.initialBufferLevel;return isNaN(t)||t<0?0:Math.min(s(),t)},getRetryAttemptsForType:function(t){var e=isNaN(i.get().streaming.retryAttempts.lowLatencyMultiplyFactor)?5:i.get().streaming.retryAttempts.lowLatencyMultiplyFactor;return n.getLowLatencyModeEnabled()?i.get().streaming.retryAttempts[t]*e:i.get().streaming.retryAttempts[t]},getRetryIntervalsForType:function(t){var e=isNaN(i.get().streaming.retryIntervals.lowLatencyReductionFactor)?10:i.get().streaming.retryIntervals.lowLatencyReductionFactor;return n.getLowLatencyModeEnabled()?i.get().streaming.retryIntervals[t]/e:i.get().streaming.retryIntervals[t]},getCatchupPlaybackRates:function(t){var e=i.get().streaming.liveCatchup.playbackRate;if(!isNaN(e.min)||!isNaN(e.max))return{min:o(e.min,t),max:l(e.max,t)};var n=r.getServiceDescriptionSettings();if(n&&n.liveCatchup&&(!isNaN(n.liveCatchup.playbackRate.min)||!isNaN(n.liveCatchup.playbackRate.max))){var a=n.liveCatchup.playbackRate;return{min:o(a.min,t),max:l(a.max,t)}}return{min:-.5,max:.5}},getAbrBitrateParameter:function(t,e){try{var n=i.get().streaming.abr[t][e];if(!isNaN(n)&&-1!==n)return n;var a=r.getServiceDescriptionSettings();return a&&a[t]&&!isNaN(a[t][e])?a[t][e]:-1}catch(t){return-1}},setConfig:function(t){t.playbackController&&(n=t.playbackController),t.serviceDescriptionController&&(r=t.serviceDescriptionController)},reset:function(){}},e=(0,C.Z)(a).getInstance().getLogger(t),t}Ql.__dashjs_factory_name="MediaPlayerModel";var $l=N.Z.getSingletonFactory(Ql),Jl={DEFAULT:.5,STRONG:1,WEAK:0};function ts(t,e,n,r){var a,i;return i=Jl.DEFAULT,(a=n)!==Jl.DEFAULT&&a!==Jl.STRONG&&a!==Jl.WEAK||(i=a),{representation:void 0===t?null:t,reason:void 0===e?null:e,rule:void 0===r?null:r,priority:i}}ts.__dashjs_factory_name="SwitchRequest";var es=N.Z.getClassFactory(ts);es.NO_CHANGE=null,es.PRIORITY=Jl,N.Z.updateClassFactory(ts.__dashjs_factory_name,es);var ns=es;function rs(t){t=t||{};var e,n,r=this.context,a=t.dashMetrics;return e={getSwitchRequest:function(t){try{var e=ns(r).create();e.rule=this.getClassName();var i=t.getMediaInfo(),o=t.getMediaType(),l=a.getCurrentBufferState(o),s=t.getScheduleController(),u=t.getAbrController(),c=t.getStreamInfo(),f=c?c.id:null,d=c&&c.manifestInfo?c.manifestInfo.isDynamic:null,m=t.getThroughputController(),g=m.getSafeAverageThroughput(o),p=m.getAverageLatency(o);return isNaN(g)||!l||u.getAbandonmentStateFor(f,o)===A.ALLOW_LOAD&&(l.state===A.BUFFER_LOADED||d)&&(e.representation=u.getOptimalRepresentationForBitrate(i,g,!0),e.reason={throughput:g,latency:p,message:"[ThroughputRule]: Switching to Representation with bitrate ".concat(e.representation.bitrateInKbit," kbit/s. Throughput: ").concat(g)},s.setTimeToLoadDelay(0)),e}catch(t){return n.error(t),ns(r).create()}},reset:function(){}},n=(0,C.Z)(r).getInstance().getLogger(e),e}rs.__dashjs_factory_name="ThroughputRule";var as=N.Z.getClassFactory(rs);function is(t){t=t||{};var e,n,r,a=this.context,i=(0,I.Z)(a).getInstance(),o=t.dashMetrics,l=(0,$.Z)(a).getInstance();function s(){var t=l.get().streaming.abr.rules.insufficientBufferRule.parameters.segmentIgnoreCount;(r={})[S.Z.VIDEO]={ignoreCount:t},r[S.Z.AUDIO]={ignoreCount:t}}function u(){s()}function c(t){isNaN(t.startTime)||t.mediaType!==S.Z.AUDIO&&t.mediaType!==S.Z.VIDEO||r[t.mediaType].ignoreCount>0&&r[t.mediaType].ignoreCount--}return e={getSwitchRequest:function(t){var e=ns(a).create();if(e.rule=this.getClassName(),!t||!t.hasOwnProperty("getMediaType"))return e;var i=t.getMediaType(),s=o.getCurrentBufferState(i),u=t.getRepresentation().fragmentDuration;if(!function(t,e,n){var a=t.getLowLatencyModeEnabled();return!a&&r[e].ignoreCount<=0&&n}(t.getScheduleController().getPlaybackController(),i,u))return e;var c=t.getMediaInfo(),f=t.getAbrController();if(s&&s.state===A.BUFFER_EMPTY)n.debug("["+i+"] Switch to index 0; buffer is empty."),e.representation=f.getOptimalRepresentationForBitrate(c,0,!0),e.reason={message:"[InsufficientBufferRule]: Switching to lowest Representation because buffer is empty"};else{var d=t.getThroughputController(),m=o.getCurrentBufferLevel(i),g=d.getAverageThroughput(i,null,NaN)*l.get().streaming.abr.rules.insufficientBufferRule.parameters.throughputSafetyFactor*m/u;e.representation=f.getOptimalRepresentationForBitrate(c,g,!0),e.reason={message:"[InsufficientBufferRule]: Limiting maximum bitrate to avoid a buffer underrun.",bitrate:g}}return e},reset:function(){s(),i.off(x.Z.PLAYBACK_SEEKING,u,e),i.off(R.Z.BYTES_APPENDED_END_FRAGMENT,c,e)}},n=(0,C.Z)(a).getInstance().getLogger(e),s(),i.on(x.Z.PLAYBACK_SEEKING,u,e),i.on(R.Z.BYTES_APPENDED_END_FRAGMENT,c,e),e}is.__dashjs_factory_name="InsufficientBufferRule";var os=N.Z.getClassFactory(is);function ls(t){var e,n,r,a=(t=t||{}).mediaPlayerModel,i=t.dashMetrics,o=this.context,l=(0,$.Z)(o).getInstance();function s(){r={}}return e={shouldAbandon:function(t){var e=ns(o).create();e.rule=this.getClassName();try{if(!t)return e;var s=t.getCurrentRequest();if(!isNaN(s.index)){if(null===s.firstByteDate||r.hasOwnProperty(s.index))return e;var u=a.getBufferTimeDefault(),c=t.getMediaType();if(i.getCurrentBufferLevel(c)>u)return e;var f=Date.now()-s.firstByteDate.getTime();if(s.traces.length>=l.get().streaming.abr.rules.abandonRequestsRule.parameters.minThroughputSamplesThreshold&&f>l.get().streaming.abr.rules.abandonRequestsRule.parameters.minSegmentDownloadTimeThresholdInMs&&s.bytesLoaded<s.bytesTotal)return function(t,e,n){var a=t.getMediaInfo(),i=t.getMediaType(),o=e.traces.reduce((function(t,e){return t+e.b[0]}),0)-e.traces[0].b[0],s=Math.max(e.traces.reduce((function(t,e){return t+e.d}),0)-e.traces[0].d,1),u=Math.round(8*o/s),c=Number(8*e.bytesTotal/u/1e3).toFixed(2),f=t.getRepresentation(),d=t.getAbrController();if(c<e.duration*l.get().streaming.abr.rules.abandonRequestsRule.parameters.abandonDurationMultiplier||d.isPlayingAtLowestQuality(f))return n;if(!r.hasOwnProperty(e.index)){var m=t.getAbrController(),g=e.bytesTotal-e.bytesLoaded,p=m.getOptimalRepresentationForBitrate(a,u,!0),h=e.representation;g>e.bytesTotal*p.bitrateInKbit/h.bitrateInKbit&&(n.representation=p,n.reason={throughputInKbit:u,message:"[AbandonRequestRule][".concat(i," is asking to abandon and switch to quality to ").concat(p.absoluteIndex,". The measured bandwidth was ").concat(u," kbit/s")},r[e.index]=!0)}return n}(t,s,e)}return e}catch(t){return n.error(t),e}},reset:s},n=(0,C.Z)(o).getInstance().getLogger(e),s(),e}ls.__dashjs_factory_name="AbandonRequestsRule";var ss=N.Z.getClassFactory(ls);function us(){var t=this.context,e=(0,$.Z)(t).getInstance();return{getSwitchRequest:function(n){var r=ns(t).create();if(r.rule=this.getClassName(),!n||!n.hasOwnProperty("getDroppedFramesHistory"))return r;var a=n.getDroppedFramesHistory();if(!a)return r;var i=n.getStreamInfo().id,o=n.getMediaInfo(),l=n.getAbrController(),s=a.getFrameHistory(i);if(!s||0===Object.keys(s).length)return r;for(var u=0,c=0,f=l.getPossibleVoRepresentations(o,!0),d=null,m=1;m<f.length;m++){var g=f[m];if(g&&s[g.id]&&(u=s[g.id].droppedVideoFrames,(c=s[g.id].totalVideoFrames)>e.get().streaming.abr.rules.droppedFramesRule.parameters.minimumSampleSize&&u/c>e.get().streaming.abr.rules.droppedFramesRule.parameters.droppedFramesPercentageThreshold)){d=f[m-1];break}}return d&&(r.representation=d,r.reason={droppedFrames:u,message:"[DroppedFramesRule]: Switching to index ".concat(d.absoluteIndex,". Dropped Frames: ").concat(u,", Total Frames: ").concat(c)}),r}}}us.__dashjs_factory_name="DroppedFramesRule";var cs=N.Z.getClassFactory(us);function fs(){var t=this.context,e=(0,$.Z)(t).getInstance();return{getSwitchRequest:function(n){var r=ns(t).create();if(r.rule=this.getClassName(),!n)return r;for(var a=n.getStreamInfo().id,i=n.getMediaType(),o=n?n.getSwitchRequestHistory():null,l=o?o.getSwitchRequests(a,i):{},s=n.getAbrController(),u=n.getMediaInfo(),c=s.getPossibleVoRepresentations(u,!0),f=0,d=0,m=0;m<c.length;m++){var g=c[m];if(g&&l[g.id]&&(f+=l[g.id].drops)+(d+=l[g.id].noDrops)>=e.get().streaming.abr.rules.switchHistoryRule.parameters.sampleSize&&f/d>e.get().streaming.abr.rules.switchHistoryRule.parameters.switchPercentageThreshold){r.representation=m>0&&l[g.id].drops>0?c[m-1]:g,r.reason={drops:f,noDrops:d,message:"[SwitchHistoryRule]: Switch to index: ".concat(r.representation.absoluteIndex," samples: ").concat(f+d," drops:  ").concat(f)};break}}return r}}}fs.__dashjs_factory_name="SwitchHistoryRule";var ds=N.Z.getClassFactory(fs),ms="BOLA_STATE_ONE_BITRATE",gs="BOLA_STATE_STARTUP",ps="BOLA_STATE_STEADY",hs=10;function bs(t){t=t||{};var e,n,r,a=this.context,i=t.dashMetrics,o=t.mediaPlayerModel,l=(0,I.Z)(a).getInstance(),s=eu(a).getInstance();function u(t){var e=t.mediaType,n=t.streamId,a=e===S.Z.AUDIO?[S.Z.AUDIO]:r[n];for(var i in a)r[n]&&r[n].hasOwnProperty(i)&&r[n][i].state===ps&&(r[n][i].placeholderBuffer=0)}function c(t){var e=t.streamId;for(var n in r[e])if(r[e].hasOwnProperty(n)){var a=r[e][n];a.state!==ms&&(a.state=gs,g(a))}}function f(t){if(t&&t.metric===A.HTTP_REQUEST&&t.value&&t.value.type===z.w.MEDIA_SEGMENT_TYPE&&t.value.trace&&t.value.trace.length){var e=r[t.streamId]&&r[t.streamId][t.mediaType]?r[t.streamId][t.mediaType]:null;e&&e.state!==ms&&(e.lastSegmentRequestTimeMs=t.value.trequest.getTime(),e.lastSegmentFinishTimeMs=t.value._tfinish.getTime(),y(e,t.mediaType))}}function d(t){if(t&&r[t.streamId]&&r[t.streamId][t.mediaType]){var e=r[t.streamId][t.mediaType];e&&e.state!==ms&&(e.currentRepresentation=t.newRepresentation)}}function m(t,e,n){var r=n.reduce((function(t,e,r){return e>n[t]?r:t}),0);if(0===r)return null;var a=Math.max(t,hs+2*e.length),i=(n[r]-1)/(a/hs-1);return{gp:i,Vp:hs/i}}function g(t){t.placeholderBuffer=0,t.mostAdvancedSegmentStart=NaN,t.lastSegmentWasReplacement=!1,t.lastSegmentStart=NaN,t.lastSegmentDurationS=NaN,t.lastSegmentRequestTimeMs=NaN,t.lastSegmentFinishTimeMs=NaN}function p(t,e){var n=o.getBufferTimeDefault();if(t.bufferTimeDefault!==n){var r=m(n,t.representations,t.utilities);if(r.Vp!==t.Vp||r.gp!==t.gp){var a=i.getCurrentBufferLevel(e),l=a+t.placeholderBuffer;l-=hs,l*=r.Vp/t.Vp,l+=hs,t.bufferTimeDefault=n,t.Vp=r.Vp,t.gp=r.gp,t.placeholderBuffer=Math.max(0,l-a)}}}function h(t,e){return t.Vp*(t.utilities[e.absoluteIndex]+t.gp)}function b(t){if(t&&t.chunk&&t.chunk.representation.mediaInfo&&r[t.streamId]){var e=r[t.streamId][t.chunk.representation.mediaInfo.type];if(e&&e.state!==ms){var n=t.chunk.start;isNaN(e.mostAdvancedSegmentStart)||n>e.mostAdvancedSegmentStart?(e.mostAdvancedSegmentStart=n,e.lastSegmentWasReplacement=!1):e.lastSegmentWasReplacement=!0,e.lastSegmentStart=n,e.lastSegmentDurationS=t.chunk.duration,e.currentRepresentation=t.chunk.representation,y(e,t.chunk.representation.mediaInfo.type)}}}function y(t,e){if(!isNaN(t.lastSegmentStart)&&!isNaN(t.lastSegmentRequestTimeMs)&&!isNaN(t.placeholderBuffer)){if(t.placeholderBuffer*=.99,!isNaN(t.lastSegmentFinishTimeMs)){var n=i.getCurrentBufferLevel(e)+.001*(t.lastSegmentFinishTimeMs-t.lastSegmentRequestTimeMs),r=h(t,t.currentRepresentation),a=Math.max(0,r-n);t.placeholderBuffer=Math.min(a,t.placeholderBuffer)}t.lastSegmentWasReplacement&&!isNaN(t.lastSegmentDurationS)&&(t.placeholderBuffer+=t.lastSegmentDurationS),t.lastSegmentStart=NaN,t.lastSegmentRequestTimeMs=NaN}}function v(t,e){for(var n=e.absoluteIndex,r=e.bandwidth,a=t.utilities[n],i=0,o=n-1;o>=0;--o)if(t.utilities[o]<t.utilities[n]){var l=t.representations[o].bandwidth,s=t.utilities[o],u=t.Vp*(t.gp+(r*s-l*a)/(r-l));i=Math.max(i,u)}return i}function E(t){if(t&&r[t.streamId]){var e=r[t.streamId][t.mediaType];if(e&&e.state!==ms){var n,a=i.getCurrentBufferLevel(t.mediaType);n=e.currentRepresentation.absoluteIndex>0?v(e,e.currentRepresentation):hs;var o=Math.max(0,n-a);e.placeholderBuffer=Math.min(e.placeholderBuffer,o)}}}function _(t,e,n){var r=e.getMediaType(),a=e.getThroughputController(),o=e.getMediaInfo(),l=a.getSafeAverageThroughput(r),u=e.getScheduleController();!function(t,e){var n=Date.now();if(isNaN(t.lastSegmentFinishTimeMs)){if(!isNaN(t.lastCallTimeMs)){var r=.001*(n-t.lastCallTimeMs);t.placeholderBuffer+=Math.max(0,r)}}else{var a=.001*(n-t.lastSegmentFinishTimeMs);t.placeholderBuffer+=Math.max(0,a)}t.lastCallTimeMs=n,t.lastSegmentStart=NaN,t.lastSegmentRequestTimeMs=NaN,t.lastSegmentFinishTimeMs=NaN,p(t,e)}(n,r);var c=i.getCurrentBufferLevel(r),f=function(t,e){for(var n=t.representations.length,r=NaN,a=NaN,i=0;i<n;++i){var o=(t.Vp*(t.utilities[i]+t.gp)-e)/t.representations[i].bandwidth;(isNaN(a)||o>=a)&&(a=o,r=i)}return t.representations[r]}(n,c+n.placeholderBuffer),d=s.getOptimalRepresentationForBitrate(o,l,!0);f.absoluteIndex>n.currentRepresentation.absoluteIndex&&f.absoluteIndex>d.absoluteIndex&&(f=d.absoluteIndex>n.currentRepresentation.absoluteIndex?d:n.currentRepresentation);var m=Math.max(0,c+n.placeholderBuffer-h(n,f));m<=n.placeholderBuffer?(n.placeholderBuffer-=m,m=0):(m-=n.placeholderBuffer,n.placeholderBuffer=0,s.isPlayingAtTopQuality(f)?m=0:u.setTimeToLoadDelay(1e3*m)),t.representation=f,t.reason.throughput=l,t.reason.bufferLevel=c,t.reason.placeholderBuffer=n.placeholderBuffer,t.reason.delay=m,n.currentRepresentation=f}function w(){r={}}return e={getSwitchRequest:function(t){try{var e=ns(a).create();t.getScheduleController().setTimeToLoadDelay(0),e.rule=this.getClassName(),e.reason=e.reason||{};var l=function(t){var e=t.getMediaType(),n=t.getStreamInfo().id;r[n]||(r[n]={});var a=r[n][e];return a?a.state!==ms&&p(a,e):(a=function(t){var e={},n=t.getMediaInfo(),r=s.getPossibleVoRepresentations(n,!0),a=r.map((function(t){return t.bandwidth})).map((function(t){return Math.log(t)}));a=a.map((function(t){return t-a[0]+1}));var i=o.getBufferTimeDefault(),l=m(i,r,a);return l?(e.state=gs,e.representations=r,e.utilities=a,e.bufferTimeDefault=i,e.Vp=l.Vp,e.gp=l.gp,e.currentRepresentation=null,g(e)):e.state=ms,e}(t),r[n][e]=a),a}(t);switch(e.reason.state=l.state,l.state){case ms:break;case gs:!function(t,e,n){var r=e.getMediaType(),a=e.getThroughputController().getSafeAverageThroughput(r);if(!isNaN(a)){var o=e.getMediaInfo(),l=s.getOptimalRepresentationForBitrate(o,a,!0),u=i.getCurrentBufferLevel(r);t.representation=l,t.reason.throughput=a,n.placeholderBuffer=Math.max(0,v(n,l)-u),n.currentRepresentation=l,!isNaN(n.lastSegmentDurationS)&&u>=n.lastSegmentDurationS&&(n.state=ps)}}(e,t,l);break;case ps:_(e,t,l);break;default:!function(t,e,r){n.debug("BOLA ABR rule invoked in bad state.");var a=e.getMediaInfo(),i=e.getMediaType(),o=e.getThroughputController().getSafeAverageThroughput(i);t.representation=s.getOptimalRepresentationForBitrate(a,o,!0),t.reason.state=r.state,t.reason.throughput=o,r.state=gs,g(r)}(e,t,l)}return e}catch(t){return n.error(t),ns(a).create()}},reset:function(){w(),l.off(x.Z.BUFFER_EMPTY,u,e),l.off(x.Z.PLAYBACK_SEEKING,c,e),l.off(x.Z.METRIC_ADDED,f,e),l.off(x.Z.QUALITY_CHANGE_REQUESTED,d,e),l.off(x.Z.FRAGMENT_LOADING_ABANDONED,E,e),l.off(R.Z.MEDIA_FRAGMENT_LOADED,b,e)}},n=(0,C.Z)(a).getInstance().getLogger(e),w(),l.on(x.Z.BUFFER_EMPTY,u,e),l.on(x.Z.PLAYBACK_SEEKING,c,e),l.on(x.Z.METRIC_ADDED,f,e),l.on(x.Z.QUALITY_CHANGE_REQUESTED,d,e),l.on(x.Z.FRAGMENT_LOADING_ABANDONED,E,e),l.on(R.Z.MEDIA_FRAGMENT_LOADED,b,e),e}bs.__dashjs_factory_name="BolaRule";var ys=N.Z.getClassFactory(bs),vs="L2A_STATE_ONE_BITRATE",Es="L2A_STATE_STARTUP",_s="L2A_STATE_STEADY",ws=Math.pow(4,.99);function Ts(t){t=t||{};var e,n,r,a,i=this.context,o=t.dashMetrics,l=(0,I.Z)(i).getInstance();function s(t){var e={},n=t.getMediaInfo();return e.state=Es,e.currentRepresentation=null,function(t){t&&t.type&&(r[t.type]={},r[t.type].w=[],r[t.type].prev_w=[],r[t.type].Q=0,r[t.type].segment_request_start_s=0,r[t.type].segment_download_finish_s=0,r[t.type].B_target=1.5)}(n),u(e),e}function u(t){t.placeholderBuffer=0,t.mostAdvancedSegmentStart=NaN,t.lastSegmentWasReplacement=!1,t.lastSegmentStart=NaN,t.lastSegmentDurationS=NaN,t.lastSegmentRequestTimeMs=NaN,t.lastSegmentFinishTimeMs=NaN,t.lastSegmentUrl=""}function c(){for(var t in n)if(n.hasOwnProperty(t)){var e=n[t];e.state!==vs&&(e.state=Es,u(e))}}function f(t){if(t&&t.chunk&&t.chunk.representation&&t.chunk.representation.mediaInfo){var e=n[t.chunk.representation.mediaInfo.type],a=r[t.chunk.representation.mediaInfo.type];if(e&&e.state!==vs){var i=t.chunk.start;isNaN(e.mostAdvancedSegmentStart)||i>e.mostAdvancedSegmentStart?(e.mostAdvancedSegmentStart=i,e.lastSegmentWasReplacement=!1):e.lastSegmentWasReplacement=!0,e.lastSegmentStart=i,e.lastSegmentDurationS=t.chunk.duration,e.currentRepresentation=t.chunk.representation,m(e,a)}}}function d(t){if(t&&t.metric===A.HTTP_REQUEST&&t.value&&t.value.type===z.w.MEDIA_SEGMENT_TYPE&&t.value.trace&&t.value.trace.length){var e=n[t.mediaType],a=r[t.mediaType];e&&e.state!==vs&&(e.lastSegmentRequestTimeMs=t.value.trequest.getTime(),e.lastSegmentFinishTimeMs=t.value._tfinish.getTime(),m(e,a))}}function m(t,e){isNaN(t.lastSegmentStart)||isNaN(t.lastSegmentRequestTimeMs)||(e.segment_request_start_s=.001*t.lastSegmentRequestTimeMs,e.segment_download_finish_s=.001*t.lastSegmentFinishTimeMs,t.lastSegmentStart=NaN,t.lastSegmentRequestTimeMs=NaN)}function g(t,e){if(t.length!==e.length)return-1;for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}function p(t,e,n){var a=[],i=t.getThroughputController(),l=t.getMediaType(),s=i.getAverageThroughput(l,S.Z.THROUGHPUT_CALCULATION_MODES.ARITHMETIC_MEAN,1),u=o.getCurrentHttpRequest(l),c=null,f=r[l];if(s<1&&(s=1),u.url===n.lastSegmentUrl||u.type===z.w.INIT_SEGMENT_TYPE)c=n.currentRepresentation;else{for(var d=n.lastSegmentDurationS,m=1,p=t.getAbrController(),h=t.getMediaInfo(),b=p.getPossibleVoRepresentations(h,!0),y=t.getVideoModel().getPlaybackRate(),v=Math.max(Math.pow(4,1),ws*Math.sqrt(4)),E=0;E<b.length;++E){var _=b[E];y*_.bitrateInKbit>s&&(m=-1),f.w[E]=f.prev_w[E]+m*(d/(2*v))*((f.Q+ws)*(y*_.bitrateInKbit/s))}f.w=function(t){for(var e=t.length,n=!1,r=[],a=0;a<e;++a)r[a]=t[a];for(var i=t.sort((function(t,e){return e-t})),o=0,l=0,s=[],u=0;u<e-1;++u)if((l=((o+=i[u])-1)/(u+1))>=i[u+1]){n=!0;break}n||(l=(o+i[e-1]-1)/e);for(var c=0;c<e;++c)s[c]=Math.max(r[c]-l,0);return s}(f.w);for(var w=0;w<b.length;++w)a[w]=f.w[w]-f.prev_w[w],f.prev_w[w]=f.w[w];var T=b.map((function(t){return t.bandwidth}));f.Q=Math.max(0,f.Q-d+d*y*((g(T,f.prev_w)+g(T,a))/s));for(var k=[],A=0;A<T.length;++A)k[A]=Math.abs(T[A]-g(f.w,T));var I=k.indexOf(Math.min.apply(Math,k));(c=p.getRepresentationByAbsoluteIndex(I,h,!0)).absoluteIndex>n.currentRepresentation.absoluteIndex&&T[n.currentRepresentation.absoluteIndex+1]<=s&&(c=p.getRepresentationByAbsoluteIndex(n.currentRepresentation.absoluteIndex+1,h,!0)),c.bitrateInKbit>=s&&(f.Q=2*Math.max(ws,f.Q)),n.lastSegmentUrl=u.url}e.representation=c,n.currentRepresentation=e.representation}function h(){n={},r={}}return e={getSwitchRequest:function(t){try{var e=ns(i).create();e.rule=this.getClassName();var l=t.getMediaType(),c=t.getScheduleController();if(e.reason=e.reason||{},l===S.Z.AUDIO)return e;c.setTimeToLoadDelay(0);var f=function(t){var e=t.getMediaType(),r=n[e];return r||(r=s(t),n[e]=r),r}(t);if(!r[l])return e;switch(e.reason.state=f.state,f.state){case vs:break;case Es:!function(t,e,n){var a=t.getMediaInfo(),i=t.getMediaType(),l=t.getThroughputController().getSafeAverageThroughput(i);if(isNaN(l))return e;var s=t.getAbrController(),u=s.getOptimalRepresentationForBitrate(a,l,!0),c=o.getCurrentBufferLevel(i,!0),f=r[i],d=s.getPossibleVoRepresentations(a,!0);if(e.representation=u,e.reason.throughput=l,n.currentRepresentation=u,!isNaN(n.lastSegmentDurationS)&&c>=f.B_target){n.state=_s,f.Q=ws;for(var m=0;m<d.length;++m)d[m].id===n.currentRepresentation.id?f.prev_w[m]=1:f.prev_w[m]=0}}(t,e,f);break;case _s:p(t,e,f);break;default:!function(t,e,n){var r=t.getAbrController(),a=t.getMediaInfo(),i=t.getMediaType(),o=t.getThroughputController().getSafeAverageThroughput(i);e.representation=r.getOptimalRepresentationForBitrate(a,o,!0),e.reason.throughput=o,n.state=Es,u(n)}(t,e,f)}return e}catch(t){return a.error(t),ns(i).create()}},reset:function(){h(),l.off(R.Z.PLAYBACK_SEEKING,c,e),l.off(R.Z.MEDIA_FRAGMENT_LOADED,f,e),l.off(R.Z.METRIC_ADDED,d,e)}},a=(0,C.Z)(i).getInstance().getLogger(e),h(),l.on(R.Z.PLAYBACK_SEEKING,c,e),l.on(R.Z.MEDIA_FRAGMENT_LOADED,f,e),l.on(R.Z.METRIC_ADDED,d,e),e}Ts.__dashjs_factory_name="L2ARule";var Ss=N.Z.getClassFactory(Ts);function ks(t){return function(t){if(Array.isArray(t))return As(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return As(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?As(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function As(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Is="manual_weight_selection",Rs="random_weight_selection",Ns="dynamic_weight_selection";function Cs(){var t,e,n,r,a,i,o,l,s,u=this.context;function c(){n=null,r=1,a=100,i=0,o=null,l=null,s=Ns}function f(){var t=0;if(n)for(var e=0;e<n.length;e++){var r=n[e];r.state.throughput>t&&(t=r.state.throughput)}return t}function d(t,e,n){var r=t.map((function(t,r){return n[r]*Math.pow(t-e[r],2)})).reduce((function(t,e){return t+e}));return(r<0?-1:1)*Math.sqrt(Math.abs(r))}function m(t,e){return d([t.state.throughput,t.state.latency,t.state.rebuffer,t.state.switch],[e.state.throughput,e.state.latency,e.state.rebuffer,e.state.switch],[1,1,1,1])}function g(t,e){for(var r=0;r<n.length;r++){var a=n[r],i=m(a,t);p(a,e,Math.exp(-1*Math.pow(i,2)/(2*Math.pow(.1,2))))}}function p(t,e,n){var r=t.state,a=[.01,.01,.01,.01];r.throughput=r.throughput+(e[0]-r.throughput)*a[0]*n,r.latency=r.latency+(e[1]-r.latency)*a[1]*n,r.rebuffer=r.rebuffer+(e[2]-r.rebuffer)*a[2]*n,r.switch=r.switch+(e[3]-r.switch)*a[3]*n}function h(t,e,r,a,i,s){o||(o=l[l.length-1]);var u=t.findWeightVector(n,e,r,a,i,s);null!==u&&-1!==u&&(o=u)}return t={getNextQuality:function(t,u,c,m,p,b,y,v){var E=m,_=c;!function(t,e){if(!n){n=[];var a=e.getPossibleVoRepresentations(t,!0),o=a.map((function(t){return t.bandwidth}));i=Math.min.apply(Math,ks(o)),s=o.map((function(t){return Math.pow(t,2)})).reduce((function(t,e){return t+e})),r=Math.sqrt(s),a.forEach((function(t){var e={representation:t,state:{throughput:t.bandwidth/r,latency:0,rebuffer:0,switch:0}};n.push(e)})),l=function(t){var e=[],n=function(t){for(var e=[],n=0;n<t;n++){var r=[Math.random()*f(),Math.random(),Math.random(),Math.random()];e.push(r)}return e}(Math.pow(t.length,2));e.push(n[0]);for(var r=[1,1,1,1],a=1;a<t.length;a++){for(var i=null,o=null,l=0;l<n.length;l++){for(var s=n[l],u=null,c=0;c<e.length;c++){var m=d(s,e[c],r);(null===u||m<u)&&(u=m)}(null===o||u>o)&&(i=s,o=u)}e.push(i)}for(var g=null,p=null,h=0;h<e.length;h++){for(var b=0,y=0;y<e.length;y++)h!==y&&(b+=d(e[h],e[y],r));(null===g||b>g)&&(g=b,p=h)}var v=[];for(v.push(e[p]),e.splice(p,1);e.length>0;){for(var E=null,_=null,w=0;w<e.length;w++){var T=d(v[0],e[w],r);(null===E||T<E)&&(E=T,_=w)}v.push(e[_]),e.splice(_,1)}return v}(n)}var s}(u,t);var w=c/r;w>1&&(w=f()),m/=a;var T=n.find((function(t){return t.representation.id===y.id})),S=T.representation.bandwidth*v.getSegmentDuration()/_,k=Math.max(0,S-p);if(p-S<v.getMinBuffer())return e.debug("Buffer is low for bitrate= ".concat(T.representation.bandwidth," downloadTime=").concat(S," currentBuffer=").concat(p," rebuffer=").concat(k)),function(t,e){var r=0,a=t;if(n)for(var i=0;i<n.length;i++){var o=n[i];o.representation.bandwidth<t.representation.bandwidth&&o.representation.bandwidth>r&&e>o.representation.bandwidth&&(r=o.representation.bandwidth,a=o)}return a}(T,_).representation;switch(s){case Is:o=[.4,.4,.4,.4];break;case Rs:o=function(t,e){for(var n=[],r=Math.sqrt(2/t),a=0;a<e;a++)n.push(Math.random()*r);return o=n}(n.length,4);break;default:h(v,E,p,k,_,b)}for(var A=null,I=null,R=null,N=0;N<n.length;N++){var C=n[N],x=C.state,D=[x.throughput,x.latency,x.rebuffer,x.switch],O=o.slice(),z=v.getNextBufferWithBitrate(C.representation.bandwidth,p,_),P=z<v.getMinBuffer();P&&e.debug("Buffer is low for bitrate=".concat(C.representation.bandwidth," downloadTime=").concat(S," currentBuffer=").concat(p," nextBuffer=").concat(z)),(C.representation.bandwidth>c-1e4||P)&&C.representation.bandwidth!==i&&(O[0]=100);var M=d(D,[w,0,0,0],O);(null===A||M<A)&&(A=M,I=C.representation,R=C)}var L=Math.abs(T.representation.bandwidth-R.representation.bandwidth)/r;return g(T,[w,m,k,L]),g(R,[w,0,0,L]),I},reset:function(){c()}},e=(0,C.Z)(u).getInstance().getLogger(t),c(),t}Cs.__dashjs_factory_name="LearningAbrController";var xs=N.Z.getClassFactory(Cs);function Ds(t){return Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(t)}function Os(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ds(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ds(i)?i:String(i)),r)}var a,i}function zs(t,e,n){return e&&Os(t.prototype,e),n&&Os(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ps=zs((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=null,this.lastBitrate=null,this.weights={},this.weights.bitrateReward=null,this.weights.bitrateSwitchPenalty=null,this.weights.rebufferPenalty=null,this.weights.latencyPenalty=null,this.weights.playbackSpeedPenalty=null,this.bitrateWSum=0,this.bitrateSwitchWSum=0,this.rebufferWSum=0,this.latencyWSum=0,this.playbackSpeedWSum=0,this.totalQoe=0}));function Ms(){var t,e,n,r,a;function i(){e=null,n=null,r=null,a=null}function o(t,e,n,r){var a=new Ps;return a.type=t,a.weights.bitrateReward=e||1,a.weights.bitrateSwitchPenalty=1,a.weights.rebufferPenalty=n||1e3,a.weights.latencyPenalty=[],a.weights.latencyPenalty.push({threshold:1.1,penalty:.05*r}),a.weights.latencyPenalty.push({threshold:1e8,penalty:.1*n}),a.weights.playbackSpeedPenalty=r||200,a}function l(t,e,n,r,a){a.bitrateWSum+=a.weights.bitrateReward*t,a.lastBitrate&&(a.bitrateSwitchWSum+=a.weights.bitrateSwitchPenalty*Math.abs(t-a.lastBitrate)),a.lastBitrate=t,a.rebufferWSum+=a.weights.rebufferPenalty*e;for(var i=0;i<a.weights.latencyPenalty.length;i++){var o=a.weights.latencyPenalty[i];if(n<=o.threshold){a.latencyWSum+=o.penalty*n;break}}a.playbackSpeedWSum+=a.weights.playbackSpeedPenalty*Math.abs(1-r),a.totalQoe=a.bitrateWSum-a.bitrateSwitchWSum-a.rebufferWSum-a.latencyWSum-a.playbackSpeedWSum}return t={setupPerSegmentQoe:function(t,i,l){e=o("segment",t,i,l),n=t,r=i,a=l},logSegmentMetrics:function(t,n,r,a){e&&l(t,n,r,a,e)},getPerSegmentQoe:function(){return e},calculateSingleUseQoe:function(t,e,i,s){var u=null;return n&&r&&a&&(u=o("segment",n,r,a)),u?(l(t,e,i,s,u),u.totalQoe):0},reset:function(){i()}},i(),t}Ms.__dashjs_factory_name="LoLpQoeEvaluator";var Ls=N.Z.getClassFactory(Ms);function js(t){var e,n,r,a,i,o=t.targetLatency,l=t.bufferMin,s=t.segmentDuration,u=t.qoeEvaluator;function c(){return s}function f(t,e){var n=c();return e>n?t-n:t+n-e}return e={getMinBuffer:function(){return l},getSegmentDuration:c,getNextBufferWithBitrate:function(t,e,n){return f(e,t*s/n)},getNextBuffer:f,findWeightVector:function(t,e,a,i,c,d){var m=null,g=null,p=null,h=Math.abs(e-r);return t.forEach((function(t){n.forEach((function(n){n[0];var r=n[1],i=n[2],b=(n[3],t.representation.bandwidth*s/c),y=f(a,b),v=(0===i?10:1/i)*Math.max(1e-5,b-y),E=(0===r?10:1/r)*t.state.latency,_=u.calculateSingleUseQoe(t.representation.bandwidth,v,E,d);(null===m||_>m)&&function(t,e,n){return!(t>o+n)&&e>=l}(e,y,h)&&(m=_,g=n,p=t.representation.bandwidth)}))})),null===g&&null===p&&(g=-1),r=e,g}},i=4,n=function t(e,n,r){if(r===n)return e;for(var i=e.length,o=0;o<i;o++)for(var l=e.shift(),s=0;s<a.length;s++)e.push(l.concat(a[s]));return t(e,n,r+1)}((a=[.2,.4,.6,.8,1]).map((function(t){return[t]})),i,1),r=0,e}js.__dashjs_factory_name="LoLpWeightSelector";var Fs=N.Z.getClassFactory(js);function Us(t){return function(t){if(Array.isArray(t))return qs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qs(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Bs(t){var e,n,r,a,i=(t=t||{}).dashMetrics,o=this.context;return n={getSwitchRequest:function(t){try{var n=ns(o).create();n.rule=this.getClassName();var l=t.getMediaInfo().type,s=t.getAbrController(),u=t.getStreamInfo(),c=t.getRepresentation(),f=t.getMediaInfo(),d=i.getCurrentBufferState(l),m=t.getScheduleController(),g=i.getCurrentBufferLevel(l,!0),p=m.getPlaybackController(),h=p.getCurrentLiveLatency();if(l===S.Z.AUDIO)return n;h||(h=0);var b=p.getPlaybackRate(),y=t.getThroughputController().getSafeAverageThroughput(l);if(e.debug("Throughput ".concat(Math.round(y)," kbps")),isNaN(y)||!d)return n;if(s.getAbandonmentStateFor(u.id,l)===A.ABANDON_LOAD)return n;var v=s.getPossibleVoRepresentations(f,!0).map((function(t){return t.bandwidth})),E=t.getRepresentation().fragmentDuration,_=Math.min.apply(Math,Us(v))/1e3,w=Math.max.apply(Math,Us(v))/1e3,T=c.bandwidth/1e3,k=i.getCurrentHttpRequest(l,!0),I=(k.tresponse.getTime()-k.trequest.getTime())/1e3,R=I>E?I-E:0;a.setupPerSegmentQoe(E,w,_),a.logSegmentMetrics(T,R,h,b);var N=Fs(o).create({targetLatency:1.5,bufferMin:.3,segmentDuration:E,qoeEvaluator:a});return n.representation=r.getNextQuality(s,f,1e3*y,h,g,b,c,N),n.reason={throughput:y,latency:h},n.priority=ns.PRIORITY.STRONG,m.setTimeToLoadDelay(0),n}catch(t){throw t}},reset:function(){r.reset(),a.reset()}},e=(0,C.Z)(o).getInstance().getLogger(n),r=xs(o).create(),a=Ls(o).create(),n}Bs.__dashjs_factory_name="LoLPRule";var Zs=N.Z.getClassFactory(Bs);function Gs(t){t=t||{};var e,n,r,a,i=this.context,o=t.mediaPlayerModel,l=t.customParametersModel,s=t.dashMetrics,u=t.settings,c=(0,I.Z)(i).getInstance();function f(){Object.values(S.Z.QUALITY_SWITCH_RULES).forEach((function(t){n=d(t,n)}));var t=Object.values(S.Z.ABANDON_FRAGMENT_RULES);t.forEach((function(t){r=d(t,r)})),l.getAbrCustomRules().forEach((function(e){e.type===S.Z.RULES_TYPES.QUALITY_SWITCH_RULES&&n.push(e.rule(i).create()),e.type===S.Z.RULES_TYPES.ABANDON_FRAGMENT_RULES&&t.push(e.rule(i).create())})),0===n.length&&(n.push(ys(i).create({dashMetrics:s,mediaPlayerModel:o,settings:u})),n.push(as(i).create({dashMetrics:s})))}function d(t,e){var n=t.charAt(0).toLowerCase()+t.slice(1);return u.get().streaming.abr.rules[n].active&&!function(t,e){return t.filter((function(t){return t.getClassName()===e})).length>0}(e,t)?(e.push(function(t){switch(t){case S.Z.QUALITY_SWITCH_RULES.BOLA_RULE:return ys(i).create({dashMetrics:s,mediaPlayerModel:o,settings:u});case S.Z.QUALITY_SWITCH_RULES.THROUGHPUT_RULE:return as(i).create({dashMetrics:s});case S.Z.QUALITY_SWITCH_RULES.INSUFFICIENT_BUFFER_RULE:return os(i).create({dashMetrics:s,settings:u});case S.Z.QUALITY_SWITCH_RULES.SWITCH_HISTORY_RULE:return ds(i).create();case S.Z.QUALITY_SWITCH_RULES.DROPPED_FRAMES_RULE:return cs(i).create();case S.Z.QUALITY_SWITCH_RULES.LEARN_TO_ADAPT_RULE:return Ss(i).create({dashMetrics:s,settings:u});case S.Z.QUALITY_SWITCH_RULES.LOL_PLUS_RULE:return Zs(i).create({dashMetrics:s});case S.Z.ABANDON_FRAGMENT_RULES.ABANDON_REQUEST_RULE:return ss(i).create({dashMetrics:s,mediaPlayerModel:o,settings:u})}}(t)),e):u.get().streaming.abr.rules[n].active?e:function(t,e){return t.filter((function(t){return t.getClassName()!==e}))}(e,t)}function m(t){return t.filter((function(t){return t.representation!==ns.NO_CHANGE}))}function g(t){var e,n,r,a={},i=null;if(0!==t.length){for(a[ns.PRIORITY.STRONG]=null,a[ns.PRIORITY.WEAK]=null,a[ns.PRIORITY.DEFAULT]=null,e=0,n=t.length;e<n;e+=1)(r=t[e]).representation!==ns.NO_CHANGE&&(null===a[r.priority]||a[r.priority].representation!==ns.NO_CHANGE&&r.representation.bitrateInKbit<a[r.priority].representation.bitrateInKbit)&&(a[r.priority]=r);return a[ns.PRIORITY.WEAK]&&a[ns.PRIORITY.WEAK].representation!==ns.NO_CHANGE&&(i=a[ns.PRIORITY.WEAK]),a[ns.PRIORITY.DEFAULT]&&a[ns.PRIORITY.DEFAULT].representation!==ns.NO_CHANGE&&(i=a[ns.PRIORITY.DEFAULT]),a[ns.PRIORITY.STRONG]&&a[ns.PRIORITY.STRONG].representation!==ns.NO_CHANGE&&(i=a[ns.PRIORITY.STRONG]),i}}function p(){f()}return e={getAbandonFragmentRules:function(){return r},getBestPossibleSwitchRequest:function(t){return t&&g(m(n.filter((function(e){var n=e.getClassName();if(n!==S.Z.QUALITY_SWITCH_RULES.BOLA_RULE&&n!==S.Z.QUALITY_SWITCH_RULES.THROUGHPUT_RULE)return!0;var r=t.getMediaType();return a[r]&&n===S.Z.QUALITY_SWITCH_RULES.BOLA_RULE||!a[r]&&n===S.Z.QUALITY_SWITCH_RULES.THROUGHPUT_RULE})).map((function(e){return e.getSwitchRequest(t)}))))||ns(i).create()},getBolaState:function(t){return a[t]},getMinSwitchRequest:g,getQualitySwitchRules:function(){return n},initialize:function(){n=[],r=[],a={},f(),c.on(R.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,p,e)},reset:function(){[n,r].forEach((function(t){t&&t.length&&t.forEach((function(t){return t.reset&&t.reset()}))})),n=[],r=[],a={},c.off(R.Z.SETTING_UPDATED_ABR_ACTIVE_RULES,p,e)},setBolaState:function(t,e){a[t]=e},shouldAbandonFragment:function(t){if(!t)return ns(i).create();var e=g(m(r.map((function(e){return e.shouldAbandon(t)}))));return e&&(e.reason.forceAbandon=!0),e||ns(i).create()}}}Gs.__dashjs_factory_name="ABRRulesCollection";var Hs=N.Z.getClassFactory(Gs);N.Z.updateSingletonFactory(Gs.__dashjs_factory_name,Hs);var Ys=Hs;function Vs(t){var e=(t=t||{}).abrController,n=t.throughputController,r=t.switchRequestHistory,a=t.droppedFramesHistory,i=t.currentRequest,o=t.streamProcessor?t.streamProcessor.getScheduleController():null,l=t.streamProcessor?t.streamProcessor.getRepresentation():null,s=t.videoModel?t.videoModel:null;function u(){return l?l.mediaInfo:null}return{getAbrController:function(){return e},getCurrentRequest:function(){return i},getDroppedFramesHistory:function(){return a},getMediaInfo:u,getMediaType:function(){var t=u();return t?t.type:null},getRepresentation:function(){return l},getScheduleController:function(){return o},getStreamInfo:function(){var t=u();return t?t.streamInfo:null},getSwitchRequestHistory:function(){return r},getThroughputController:function(){return n},getVideoModel:function(){return s}}}Vs.__dashjs_factory_name="RulesContext";var Ks=N.Z.getClassFactory(Vs);function Ws(){var t={},e={},n=this.context,r=(0,$.Z)(n).getInstance();return{clearForStream:function(n){delete t[n],delete e[n]},getSwitchRequests:function(e,n){return null!=e&&null!=n&&t[e]&&t[e][n]?t[e][n]:{}},push:function(n){var a=n.currentRepresentation,i=n.newRepresentation;if(a.mediaInfo.streamInfo.id===i.mediaInfo.streamInfo.id){var o=a.mediaInfo.streamInfo.id;t[o]||function(n){t[n]={},e[n]={}}(o);var l=a.mediaInfo.type;t[o][l]||function(n,r){t[n][r]={},e[n][r]=[]}(o,l);var s=n.currentRepresentation.id;t[o][l][s]||function(e,n,r){t[e][n][r]={noDrops:0,drops:0,dropSize:0}}(o,l,s);var u=n.newRepresentation.absoluteIndex-n.currentRepresentation.absoluteIndex,c=u<0?1:0,f=c?-u:0,d=c?0:1;t[o][l][n.currentRepresentation.id].drops+=c,t[o][l][n.currentRepresentation.id].dropSize+=f,t[o][l][n.currentRepresentation.id].noDrops+=d,e[o][l].push({id:n.currentRepresentation.id,noDrop:d,drop:c,dropSize:f});var m=function(t,n){return e[t][n].length>r.get().streaming.abr.rules.switchHistoryRule.parameters.sampleSize?e[t][n].shift():null}(o,l);m&&function(e,n,r){t[e][n][r.id].drops-=r.drop,t[e][n][r.id].dropSize-=r.dropSize,t[e][n][r.id].noDrops-=r.noDrop}(o,l,m)}},reset:function(){t={},e={}}}}Ws.__dashjs_factory_name="SwitchRequestHistory";var Xs=N.Z.getClassFactory(Ws);function Qs(){var t={},e={},n={};return{clearForStream:function(r){delete t[r],delete e[r],delete n[r]},getFrameHistory:function(e){return t[e]},push:function(r,a,i){if(a){t[r]||function(r){t[r]=[],e[r]=0,n[r]=0}(r);var o=i&&i.droppedVideoFrames?i.droppedVideoFrames:0,l=i&&i.totalVideoFrames?i.totalVideoFrames:0,s=o-e[r];e[r]=o;var u=l-n[r];n[r]=l;var c=t[r];c[a]?(c[a].droppedVideoFrames+=s,c[a].totalVideoFrames+=u):c[a]={droppedVideoFrames:s,totalVideoFrames:u}}},reset:function(){t={},e={},n={}}}}Qs.__dashjs_factory_name="DroppedFramesHistory";var $s=N.Z.getClassFactory(Qs);function Js(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E=this.context,_=(0,C.Z)(E).getInstance(),w=(0,I.Z)(E).getInstance();function T(){i={},a={},void 0===l&&(l=!1),h&&h.reset(),p&&p.reset(),g=void 0,h=void 0,p=void 0,clearTimeout(o),o=null}function k(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!t)return r;var i=function(t){try{var e=[];if(t&&e.push(t),!v.get().streaming.abr.enableSupplementalPropertyAdaptationSetSwitching||!t.adaptationSetSwitchingCompatibleIds||0===t.adaptationSetSwitchingCompatibleIds.length)return e;var n=a[t.streamInfo.id][t.type].getAllMediaInfos().filter((function(e){return t.adaptationSetSwitchingCompatibleIds.includes(e.id)}));return e.concat(n)}catch(e){return[t]}}(t);return i.forEach((function(t){var e=s.getVoRepresentations(t);e&&e.length>0&&(r=r.concat(e))})),(r=function(t){try{return t=function(t){try{if(!v.get().streaming.cmsd.enabled||!v.get().streaming.cmsd.abr.applyMb)return t;var n=t.filter((function(t){var e=t.mediaInfo.type,n=d.getMaxBitrate(e);if(e!==S.Z.VIDEO||n<0)return!0;var r=t.mediaInfo.streamInfo.id,i=a[r][S.Z.AUDIO].getRepresentation().bitrateInKbit;return n-=i||0,t.bitrateInKbit<=n}));return n.length>0?n:t}catch(n){return e.error(n),t}}(t=function(t){try{if(!v.get().streaming.abr.limitBitrateByPortal)return t;var n=u.getVideoElementSize().elementWidth,r=t.filter((function(t){return t.mediaInfo.type!==S.Z.VIDEO||t.width<=n}));return r.length>0?r:t}catch(n){return e.error(n),t}}(t=function(t){try{var n=t.filter((function(t){var e=t.mediaInfo.type,n=t.bitrateInKbit,r=c.getAbrBitrateParameter("maxBitrate",e),a=c.getAbrBitrateParameter("minBitrate",e);return!(r>-1&&n>r||a>-1&&n<a)}));return n.length>0?n:t}catch(n){return e.error(n),t}}(t)))}catch(n){return e.error(n),t}}(r=function(t){var e=null,n=t.filter((function(t){return e||(e=t.mediaInfo),!isNaN(t.qualityRanking)&&s.areMediaInfosEqual(e,t.mediaInfo)}));return n.length===t.length?t.sort((function(t,e){return e.qualityRanking-t.qualityRanking})):t.sort((function(t,e){return t.bandwidth-e.bandwidth})),t}(r))).forEach((function(t,e){t.absoluteIndex=e})),n||(r=r.filter((function(e){return s.areMediaInfosEqual(e.mediaInfo,t)}))),r}function N(e){var l=e.request.mediaType,s=e.streamId;if(l&&s&&a[s]&&v.get().streaming.abr.autoSwitchBitrate[l]){var c=a[s][l];if(c){var f=Ks(E).create({abrController:t,streamProcessor:c,currentRequest:e.request,throughputController:b,videoModel:u}),d=n.shouldAbandonFragment(f);d&&d.representation!==ns.NO_CHANGE&&function(t,e,n,a,l){var s=a.getFragmentModel(),u=s.getRequests({state:G.FRAGMENT_MODEL_LOADING,index:t.request.index})[0];u&&(i[e][n].state=A.ABANDON_LOAD,p.reset(),z(n,r.getActiveStreamInfo(),l.representation,l.reason),clearTimeout(o),o=setTimeout((function(){i[e][n].state=A.ALLOW_LOAD,o=null}),v.get().streaming.abandonLoadTimeout))}(e,s,l,c,d)}}}function D(t){t.mediaType===S.Z.VIDEO&&(void 0!==g&&h.push(t.streamId,g,u.getPlaybackQuality()),g=t.newRepresentation.id)}function O(t){!M()||t.metric!==A.BUFFER_LEVEL||t.mediaType!==S.Z.AUDIO&&t.mediaType!==S.Z.VIDEO||function(t,r){try{var a=c.getBufferTimeDefault(),i=a,o=.5*a,l=n.getBolaState(t),s=r>(l?o:i);n.setBolaState(t,s),s!==l&&(s?e.info("["+t+"] switching from throughput to buffer occupancy ABR rule (buffer: "+r.toFixed(3)+")."):e.info("["+t+"] switching from buffer occupancy to throughput ABR rule (buffer: "+r.toFixed(3)+")."))}catch(t){e.error(t)}}(t.mediaType,.001*t.value.level)}function z(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&e.id&&t&&a&&a[e.id]&&a[e.id][t]&&n){var i=a[e.id][t].getRepresentation();i&&n.id===i.id||P(i,n,r)}}function P(t,n,r){var i=n.mediaInfo.streamInfo.id,o=n.mediaInfo.type;if(o&&a[i]&&a[i][o]){var l=a[i][o].getStreamInfo(),u=y.getCurrentBufferLevel(o),c=null!==t&&!s.areMediaInfosEqual(t.mediaInfo,n.mediaInfo),f=t?t.bitrateInKbit:0;e.info("[AbrController]: Switching quality in period ".concat(i," for media type ").concat(o,". Switch from bitrate ").concat(f," to bitrate ").concat(n.bitrateInKbit,". Current buffer level: ").concat(u,". Reason:")+(r?JSON.stringify(r):"/")),w.trigger(R.Z.QUALITY_CHANGE_REQUESTED,{oldRepresentation:t,newRepresentation:n,reason:r,streamInfo:l,mediaType:o,isAdaptationSetSwitch:c},{streamId:l.id,mediaType:o});var d=b.getAverageThroughput(o);isNaN(d)||m.setSavedBitrateSettings(o,d)}}function M(){return v.get().streaming.abr.rules.bolaRule.active&&v.get().streaming.abr.rules.throughputRule.active}return t={checkPlaybackQuality:function(r,o){try{if(!(r&&a&&a[o]&&a[o][r]))return!1;if(h){var l=u.getPlaybackQuality();l&&h.push(o,g,l)}if(!v.get().streaming.abr.autoSwitchBitrate[r])return!1;var s=a[o][r],c=s.getRepresentation(),f=Ks(E).create({abrController:t,throughputController:b,switchRequestHistory:p,droppedFramesHistory:h,streamProcessor:s,videoModel:u}),d=n.getBestPossibleSwitchRequest(f);if(!d||!d.representation)return!1;var m=d.representation;return p.push({currentRepresentation:c,newRepresentation:m}),m.id!==c.id&&(i[o][r].state===A.ALLOW_LOAD||m.absoluteIndex<c.absoluteIndex)&&(P(c,m,d.reason),!0)}catch(t){return e.error(t),!1}},clearDataForStream:function(t){h&&h.clearForStream(t),a[t]&&delete a[t],p&&p.clearForStream(t),i[t]&&delete i[t]},getAbandonmentStateFor:function(t,e){return i[t]&&i[t][e]?i[t][e].state:null},getInitialBitrateFor:function(t){if(t===S.Z.TEXT)return NaN;var e=c.getAbrBitrateParameter("initialBitrate",t);if(e>0)return e;var n=NaN;if(m&&m.hasOwnProperty("getSavedBitrateSettings")&&(n=m.getSavedBitrateSettings(t)),!isNaN(n))return n;var r=b.getAverageThroughput(t);return!isNaN(r)&&r>0?r:t===S.Z.VIDEO?1e3:100},getOptimalRepresentationForBitrate:function(t,e){var n=k(t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);if(!n||0===n.length)return null;if(e<=0)return n.sort((function(t,e){return t.bandwidth-e.bandwidth}))[0];var r=n.filter((function(t){return t.bitrateInKbit<=e}));return r&&0!==r.length?r[r.length-1]:n[0]},getPossibleVoRepresentations:k,getRepresentationByAbsoluteIndex:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return isNaN(t)||t<0?null:k(e,n).find((function(e){return e.absoluteIndex===t}))},initialize:function(){h=$s(E).create(),p=Xs(E).create(),(n=Ys(E).create({dashMetrics:y,customParametersModel:f,mediaPlayerModel:c,settings:v})).initialize(),w.on(x.Z.QUALITY_CHANGE_RENDERED,D,t),w.on(x.Z.METRIC_ADDED,O,t),w.on(R.Z.LOADING_PROGRESS,N,t)},isPlayingAtLowestQuality:function(t){return k(t.mediaInfo,!0)[0].id===t.id},isPlayingAtTopQuality:function(t){if(!t)return!0;var e=k(t.mediaInfo,!0);return e[e.length-1].id===t.id},registerStreamType:function(t,e){var r=e.getStreamInfo().id;a[r]||(a[r]={}),a[r][t]=e,i[r]||(i[r]={}),i[r][t]={},i[r][t].state=A.ALLOW_LOAD,void 0===n.getBolaState(t)&&n.setBolaState(t,v.get().streaming.abr.rules.bolaRule.active&&!M())},reset:function(){T(),w.off(x.Z.QUALITY_CHANGE_RENDERED,D,t),w.off(x.Z.METRIC_ADDED,O,t),w.off(R.Z.LOADING_PROGRESS,N,t),n&&n.reset()},setConfig:function(t){t&&(t.streamController&&(r=t.streamController),t.throughputController&&(b=t.throughputController),t.domStorage&&(m=t.domStorage),t.mediaPlayerModel&&(c=t.mediaPlayerModel),t.customParametersModel&&(f=t.customParametersModel),t.cmsdModel&&(d=t.cmsdModel),t.dashMetrics&&(y=t.dashMetrics),t.adapter&&(s=t.adapter),t.videoModel&&(u=t.videoModel),t.settings&&(v=t.settings))},setPlaybackQuality:z,setWindowResizeEventCalled:function(t){l=t},unRegisterStreamType:function(t,e){try{a[t]&&a[t][e]&&delete a[t][e],i[t]&&i[t][e]&&delete i[t][e]}catch(t){}}},e=_.getLogger(t),T(),t}Js.__dashjs_factory_name="AbrController";var tu=N.Z.getSingletonFactory(Js);N.Z.updateSingletonFactory(Js.__dashjs_factory_name,tu);var eu=tu,nu=new Map([[S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,"loadedmetadata"],[S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_CURRENT_DATA,"loadeddata"],[S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA,"canplay"],[S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_ENOUGH_DATA,"canplaythrough"]]);function ru(){var t,e,n,r,a,i,o,l,s,u=this.context,c=(0,I.Z)(u).getInstance(),f=(0,$.Z)(u).getInstance(),d=[];function m(){n&&(n.playbackRate=l||1,n.removeEventListener("canplay",m))}function g(){return d.length>0}function p(){if(n&&g()&&0===n.playbackRate){var t=document.createEvent("Event");t.initEvent("waiting",!0,!1),n.dispatchEvent(t)}}function h(t,e){n&&n.addEventListener(t,e)}function b(t,e){n&&n.removeEventListener(t,e)}function y(){return n?n.readyState:NaN}function v(){return n?n.buffered:null}function E(){return n?n.clientWidth:NaN}function _(){return n?n.clientHeight:NaN}function w(t,e,r,a,i){if(n)for(var o=0;o<n.textTracks.length;o++)if(n.textTracks[o].kind===t&&(!e||n.textTracks[o].label==e)&&n.textTracks[o].language===r&&n.textTracks[o].isTTML===a&&n.textTracks[o].isEmbedded===i)return n.textTracks[o];return null}function T(t,e){return t===S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_NOTHING||y()>=t?(e(),null):function(t,e){var n=function n(){b(t,n),e(t)};return h(t,n),{func:n,event:t}}(nu.get(t),e)}return t={addEventListener:h,addTextTrack:function(t,e,r,a,i){if(!n)return null;var o=w(t,e,r,a,i);return o||((o=n.addTextTrack(t,e,r)).isEmbedded=i,o.isTTML=a),o},appendChild:function(t){n&&(n.appendChild(t),void 0!==t.isTTML&&(n.textTracks[n.textTracks.length-1].isTTML=t.isTTML,n.textTracks[n.textTracks.length-1].isEmbedded=t.isEmbedded))},getBufferRange:v,getClientHeight:_,getClientWidth:E,getElement:function(){return n},getEnded:function(){return n?n.ended:null},getPlaybackQuality:function(){if(!n)return null;var t="webkitDroppedFrameCount"in n&&"webkitDecodedFrameCount"in n,e=null;return"getVideoPlaybackQuality"in n?e=n.getVideoPlaybackQuality():t&&(e={droppedVideoFrames:n.webkitDroppedFrameCount,totalVideoFrames:n.webkitDroppedFrameCount+n.webkitDecodedFrameCount,creationTime:new Date}),e},getPlaybackRate:function(){return n?n.playbackRate:null},getPlayedRanges:function(){return n?n.played:null},getReadyState:y,getSource:function(){return n?n.src:null},getTTMLRenderingDiv:function(){return i},getTextTrack:w,getTextTracks:function(){return n?n.textTracks:[]},getTime:function(){return n?isNaN(r)?n.currentTime:r:null},getVideoElementSize:function(){var t=f.get().streaming.abr.usePixelRatioInLimitBitrateByPortal&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;return{elementWidth:E()*t,elementHeight:_()*t}},getVideoHeight:function(){return n?n.videoHeight:NaN},getVideoRelativeOffsetLeft:function(){if(n){var t=n.parentNode.host||n.parentNode;return t?n.getBoundingClientRect().left-t.getBoundingClientRect().left:NaN}return NaN},getVideoRelativeOffsetTop:function(){if(n){var t=n.parentNode.host||n.parentNode;return t?n.getBoundingClientRect().top-t.getBoundingClientRect().top:NaN}return NaN},getVideoWidth:function(){return n?n.videoWidth:NaN},getVttRenderingDiv:function(){return o},initialize:function(){c.on(R.Z.PLAYBACK_PLAYING,p,this)},isPaused:function(){return n?n.paused:null},isSeeking:function(){return n?n.seeking||!isNaN(r):null},isStalled:g,pause:function(){n&&(n.pause(),n.autoplay=!1)},play:function(){if(n){n.autoplay=!0;var t=n.play();t&&t.catch&&"undefined"!=typeof Promise&&t.catch((function(t){"NotAllowedError"===t.name&&c.trigger(R.Z.PLAYBACK_NOT_ALLOWED),e.warn("Caught pending play exception - continuing (".concat(t,")"))}))}},removeChild:function(t){n&&n.removeChild(t)},removeEventListener:b,reset:function(){clearTimeout(s),c.off(R.Z.PLAYBACK_PLAYING,p,this)},setCurrentTime:function(t,e){n&&(a&&a.func&&a.event&&b(a.event,a.func),r=t,a=T(S.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,(function(){if(n)if(n.currentTime!==r)try{r=e?function(t){var e=v(),n=t,r=9999999999;if(e)for(var a=0;a<e.length;a++){var i=e.start(a),o=e.end(a),l=Math.abs(i-t),s=Math.abs(o-t);if(t>=i&&t<=o)return t;l<r&&(r=l,n=i),s<r&&(r=s,n=o)}return n}(r):r,isNaN(r)||(n.currentTime=r),r=NaN}catch(t){0===n.readyState&&t.code===t.INVALID_STATE_ERR&&(s=setTimeout((function(){n.currentTime=r,r=NaN}),400))}else r=NaN})))},setDisableRemotePlayback:function(t){n&&(n.disableRemotePlayback=t)},setElement:function(t){if(!(null==t||t&&/^(VIDEO|AUDIO)$/i.test(t.nodeName)))throw"element is not video or audio DOM type!";(n=t)&&(n.preload="auto")},setPlaybackRate:function(t){n&&(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&n.readyState<=2&&t>0?n.addEventListener("canplay",m):n.playbackRate=t)},setSource:function(t){n&&(t?n.src=t:(n.removeAttribute("src"),n.load()))},setStallState:function(t,e){!function(t,e){e?function(t){null!==t&&n&&!n.seeking&&-1===d.indexOf(t)&&d.push(t)}(t):function(t){var e=d.indexOf(t);null!==t&&-1!==e&&d.splice(e,1)}(t)}(t,e)},setTTMLRenderingDiv:function(t){(i=t).style.position="absolute",i.style.display="flex",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.top=0,i.style.left=0},setVttRenderingDiv:function(t){o=t},waitForReadyState:T},e=(0,C.Z)(u).getInstance().getLogger(t),r=NaN,t}ru.__dashjs_factory_name="VideoModel";var au=N.Z.getSingletonFactory(ru),iu=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],ou="dashjs_?_bitrate",lu="dashjs_?_settings",su="localStorage",uu="lastBitrate",cu="lastMediaSettings";function fu(t){t=t||{};var e,n,r,a=this.context,i=t.settings;function o(t){if(void 0!==r)return r;var e;r=!1;try{"undefined"!=typeof window&&(e=window[t])}catch(t){return n.warn("DOMStorage access denied: "+t.message),r}if(!e||t!==su&&"sessionStorage"!==t)return r;try{e.setItem("1","1"),e.removeItem("1"),r=!0}catch(t){n.warn("DOMStorage is supported, but cannot be used: "+t.message)}return r}function l(){var t=6e5;return Math.round((new Date).getTime()/t)*t}function s(t,e){return o(t)&&i.get().streaming[e+"CachingInfo"].enabled}function u(){if(!i)throw new Error(S.Z.MISSING_CONFIG_ERROR)}return e={getSavedBitrateSettings:function(t){if(u(),!i.get().streaming.lastBitrateCachingInfo.enabled)return NaN;var e=NaN;if(s(su,uu)){var r=ou.replace(/\?/,t);try{var a=JSON.parse(localStorage.getItem(r))||{},o=(new Date).getTime()-parseInt(a.timestamp,10)>=i.get().streaming.lastBitrateCachingInfo.ttl||!1,l=parseFloat(a.bitrate);isNaN(l)||o?o&&localStorage.removeItem(r):(e=l,n.debug("Last saved bitrate for "+t+" was "+l))}catch(t){return null}}return e},setSavedBitrateSettings:function(t,e){if(s(su,uu)&&e){var r=ou.replace(/\?/,t);try{localStorage.setItem(r,JSON.stringify({bitrate:e.toFixed(3),timestamp:l()}))}catch(t){n.error(t.message)}}},getSavedMediaSettings:function(t){if(u(),!i.get().streaming.lastMediaSettingsCachingInfo.enabled)return null;var e=null;if(s(su,cu)){var n=lu.replace(/\?/,t);try{var r=JSON.parse(localStorage.getItem(n))||{},a=(new Date).getTime()-parseInt(r.timestamp,10)>=i.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;e=r.settings,a&&(localStorage.removeItem(n),e=null)}catch(t){return null}}return e},setSavedMediaSettings:function(t,e){if(s(su,cu)){var r=lu.replace(/\?/,t);try{localStorage.setItem(r,JSON.stringify({settings:e,timestamp:l()}))}catch(t){n.error(t.message)}}}},n=(0,C.Z)(a).getInstance().getLogger(e),o(su)&&iu.forEach((function(t){var e=localStorage.getItem(t.oldKey);if(e){localStorage.removeItem(t.oldKey);try{localStorage.setItem(t.newKey,e)}catch(t){n.error(t.message)}}})),e}fu.__dashjs_factory_name="DOMStorage";var du=N.Z.getSingletonFactory(fu),mu=n(6514);function gu(){var t,e,n,r,a,i,o,l,s,u,c,f,d=this.context;function m(t,n,a,i){var l=null,s=t?f.resolve(t.path):null,u=i||{init:!0,url:s?s.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:n};e.debug("Start searching for initialization.");var c=h(u);o.load({request:c,success:function(e){if(u.bytesLoaded=u.range.end,!(l=r.findInitRange(e)))return u.range.end=u.bytesLoaded+u.bytesToLoad,m(t,n,a,u);t.range=l,a(t)},error:function(){a(t)}}),e.debug("Perform init search: "+u.url)}function g(t,n,a,i,l,s){if(a&&(void 0===a.start||void 0===a.end)){var u=a?a.toString().split("-"):null;a=u?{start:parseFloat(u[0]),end:parseFloat(u[1])}:null}l=l||p;var c=null,d=null,m=!!a,b=t?f.resolve(t.path):null,y={init:!1,url:b?b.url:void 0,range:m?a:{start:0,end:1500},searching:!m,bytesLoaded:s?s.bytesLoaded:0,bytesToLoad:1500,mediaType:n},v=h(y);o.load({request:v,success:function(a){var o=y.bytesToLoad,s=a.byteLength;if(y.bytesLoaded=y.range.end-y.range.start,c=r.parse(a),(d=c.getBox("sidx"))&&d.isComplete){var u,f,m=d.references;if(null!=m&&m.length>0&&(u=1===m[0].reference_type),u){var p,h,b,v;e.debug("Initiate multiple SIDX load."),y.range.end=y.range.start+d.size;var E=[],_=0,w=(d.offset||y.range.start)+d.size,T=function(e){e?(E=E.concat(e),++_>=h&&(E.sort((function(t,e){return t.startTime-e.startTime<0?-1:0})),l(E,t,i))):l(null,t,i)};for(p=0,h=m.length;p<h;p++)b=w,v=w+m[p].referenced_size-1,w+=m[p].referenced_size,g(t,n,{start:b,end:v},i,T,y)}else e.debug("Parsing segments from SIDX. representation "+n+" - id: "+t.id+" for range : "+y.range.start+" - "+y.range.end),f=function(t,e){for(var n,r,a,i,o=t.references,l=o.length,s=t.timescale,u=t.earliest_presentation_time,c=e.range.start+t.offset+t.first_offset+t.size,f=[],d=0;d<l;d++)a=o[d].subsegment_duration,i=o[d].referenced_size,(n=new bt).duration=a,n.startTime=u,n.timescale=s,r=c+i-1,n.mediaRange=c+"-"+r,f.push(n),u+=a,c+=i;return f}(d,y),l(f,t,i)}else{if(d)y.range.start=d.offset||y.range.start,y.range.end=y.range.start+(d.size||o);else{if(s<y.bytesLoaded)return void l(null,t,i);var S=c.getLastBox();S&&S.size?(y.range.start=S.offset+S.size,y.range.end=y.range.start+o):y.range.end+=o}g(t,n,y.range,i,null,y)}},error:function(){l(null,t,i)}}),e.debug("Perform SIDX load for type ".concat(n," : ").concat(y.url," with range ").concat(y.range.start," - ").concat(y.range.end))}function p(t,e,n){n({segments:t,representation:e,error:t?void 0:new H.Z(l.SEGMENT_BASE_LOADER_ERROR_CODE,l.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}function h(t){if(t.url){var e=new j;return e.setInfo(t),e}}return t={setConfig:function(o){o.baseURLController&&(f=o.baseURLController),o.dashMetrics&&(a=o.dashMetrics),o.mediaPlayerModel&&(i=o.mediaPlayerModel),o.errHandler&&(n=o.errHandler),o.boxParser&&(r=o.boxParser),o.debug&&(e=o.debug.getLogger(t)),o.errors&&(l=o.errors),o.urlUtils&&(c=o.urlUtils),o.constants&&(s=o.constants),o.dashConstants&&(u=o.dashConstants)},initialize:function(){o=ta(d).create({errHandler:n,dashMetrics:a,mediaPlayerModel:i,boxParser:r,errors:l,urlUtils:c,constants:s,dashConstants:u})},loadInitialization:function(t,e){return new Promise((function(n){m(t,e,n)}))},loadSegments:function(t,e,n){return new Promise((function(r){g(t,e,n,r)}))},reset:function(){o&&(o.abort(),o=null)}}}gu.__dashjs_factory_name="SegmentBaseLoader";var pu=N.Z.getSingletonFactory(gu);function hu(t){var e;t=t||{};var n=new DataView(t.data),r=0;function a(t,e){var a=!0,i=0;if(void 0===e&&(e=!1),t.tag>16777215?(n.getUint32(r)!==t.tag&&(a=!1),i=4):t.tag>65535?(256*n.getUint16(r)+n.getUint8(r+2)!==t.tag&&(a=!1),i=3):t.tag>255?(n.getUint16(r)!==t.tag&&(a=!1),i=2):(n.getUint8(r)!==t.tag&&(a=!1),i=1),!a&&t.required&&!e)throw new Error("required tag not found");return a&&(r+=i),a}function i(t){var e=1,a=128,i=-1,o=0,l=n.getUint8(r),s=0;for(s=0;s<8;s+=1){if((l&a)===a){o=void 0===t?l&~a:l,i=s;break}a>>=1}for(s=0;s<i;s+=1,e+=1)o=o<<8|255&n.getUint8(r+e);return r+=e,o}return e={getPos:function(){return r},setPos:function(t){r=t},consumeTag:a,consumeTagAndSize:function(t,e){var n=a(t,e);return n&&i(),n},parseTag:function(t){var n;return a(t),n=i(),e[t.parse](n)},skipOverElement:function(t,e){var n,o=a(t,e);return o&&(n=i(),r+=n),o},getMatroskaCodedNum:i,getMatroskaFloat:function(t){var e;switch(t){case 4:e=n.getFloat32(r),r+=4;break;case 8:e=n.getFloat64(r),r+=8}return e},getMatroskaUint:function(t){if(t>4)return function(t){for(var e=Math.floor(Number.MAX_SAFE_INTEGER/256),a=0,i=0;i<t;i+=1){if(a>e)throw new Error("Value exceeds safe integer limit");a*=256;var o=n.getUint8(r+i);if(a>Number.MAX_SAFE_INTEGER-o)throw new Error("Value exceeds safe integer limit");a+=o}return r+=t,a}(t);for(var e=0,a=0;a<t;a+=1)e<<=8,e|=255&n.getUint8(r+a);return r+=t,e>>>0},moreData:function(){return r<n.byteLength}}}hu.__dashjs_factory_name="EBMLParser";var bu=N.Z.getClassFactory(hu);function yu(){var t,e,n,r,a,i,o,l,s,u=this.context;function c(t,r,a,i){var o,l,s,c,f,d,m,g;for(s=[],f=0,d=(l=function(t){var e,r,a=[],i=bu(u).create({data:t});for(i.consumeTagAndSize(n.Segment.Cues);i.moreData()&&i.consumeTagAndSize(n.Segment.Cues.CuePoint,!0);){for((e={}).CueTime=i.parseTag(n.Segment.Cues.CuePoint.CueTime),e.CueTracks=[];i.moreData()&&i.consumeTag(n.Segment.Cues.CuePoint.CueTrackPositions,!0);){var o=i.getMatroskaCodedNum(),l=i.getPos();if((r={}).Track=i.parseTag(n.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===r.Track)throw new Error("Cue track cannot be 0");r.ClusterPosition=i.parseTag(n.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),e.CueTracks.push(r),i.setPos(l+o)}if(0===e.CueTracks.length)throw new Error("Mandatory cuetrack not found");a.push(e)}if(0===a.length)throw new Error("mandatory cuepoint not found");return a}(t)).length;f<d;f+=1)c=new bt,o=0,o=f<l.length-1?l[f+1].CueTime-l[f].CueTime:i-l[f].CueTime,c.duration=o,c.startTime=l[f].CueTime,c.timescale=1e3,m=l[f].CueTracks[0].ClusterPosition+r,g=f<l.length-1?l[f+1].CueTracks[0].ClusterPosition+r-1:a-1,c.mediaRange=m+"-"+g,s.push(c);return e.debug("Parsed cues: "+s.length+" cues."),s}function f(t){var e=new j;return e.setInfo(t),e}return t={setConfig:function(n){if(!(n.baseURLController&&n.dashMetrics&&n.mediaPlayerModel&&n.errHandler))throw new Error(S.Z.MISSING_CONFIG_ERROR);s=n.baseURLController,a=n.dashMetrics,i=n.mediaPlayerModel,r=n.errHandler,l=n.errors,e=n.debug.getLogger(t)},initialize:function(){o=ta(u).create({errHandler:r,dashMetrics:a,mediaPlayerModel:i,errors:l})},loadInitialization:function(t,n){return new Promise((function(r){var a=null,i=t?s.resolve(t.path):null,l=t?t.range.split("-"):null,u={range:{start:l?parseFloat(l[0]):null,end:l?parseFloat(l[1]):null},request:a,url:i?i.url:void 0,init:!0,mediaType:n};e.info("Start loading initialization."),a=f(u),o.load({request:a,success:function(){r(t)},error:function(){r(t)}}),e.debug("Perform init load: "+u.url)}))},loadSegments:function(t,r,a){return new Promise((function(i){var d=null,m=t?s.resolve(t.path):null,g=m?m.url:void 0;d=f({bytesLoaded:0,bytesToLoad:8192,range:{start:0,end:8192},request:d,url:g,init:!1,mediaType:r}),e.debug("Parsing ebml header"),o.load({request:d,success:function(r){!function(t,r,a,i){if(t&&0!==t.byteLength){var l,s,d,m,g=bu(u).create({data:t}),p=a?a.split("-"):null,h=null,b={url:r,range:{start:p?parseFloat(p[0]):null,end:p?parseFloat(p[1]):null},request:h};for(e.debug("Parse EBML header: "+b.url),g.skipOverElement(n.EBML),g.consumeTag(n.Segment),d=g.getMatroskaCodedNum(),d+=g.getPos(),m=g.getPos();g.moreData()&&!g.consumeTagAndSize(n.Segment.Info,!0);)if(!(g.skipOverElement(n.Segment.SeekHead,!0)||g.skipOverElement(n.Segment.Tracks,!0)||g.skipOverElement(n.Segment.Cues,!0)||g.skipOverElement(n.Void,!0)))throw new Error("no valid top level element found");for(;void 0===l;){var y=g.getMatroskaCodedNum(!0),v=g.getMatroskaCodedNum();y===n.Segment.Info.Duration.tag?l=g[n.Segment.Info.Duration.parse](v):g.setPos(g.getPos()+v)}h=f(b),o.load({request:h,success:function(t){s=c(t,m,d,l),i(s)},error:function(){e.error("Download Error: Cues "+b.url),i(null)}}),e.debug("Perform cues load: "+b.url+" bytes="+b.range.start+"-"+b.range.end)}else i(null)}(r,g,a,(function(e){i({segments:e,representation:t,error:e?void 0:new H.Z(l.SEGMENT_BASE_LOADER_ERROR_CODE,l.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}))},error:function(){i({representation:t,error:new H.Z(l.SEGMENT_BASE_LOADER_ERROR_CODE,l.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}})}))},reset:function(){o&&(o.abort(),o=null)}},n={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"}}}}},Void:{tag:236,required:!0}},t}yu.__dashjs_factory_name="WebmSegmentBaseLoader";var vu=N.Z.getSingletonFactory(yu);function Eu(t){t=t||{};var e,n,r,a=this.context,i=t.eventBus,o=t.events,l=t.dashMetrics,s=t.mediaPlayerModel,u=t.errHandler,c=t.baseURLController,f=t.debug,d=t.boxParser,m=t.errors;function g(t){return"webm"===(t?t.split("/")[1]:"").toLowerCase()}return e={initialize:function(){n.initialize(),r.initialize()},getSegmentBaseInitSegment:function(t){return g(t.representation.mimeType)?r.loadInitialization(t.representation,t.mediaType):n.loadInitialization(t.representation,t.mediaType)},getSegmentList:function(t){return g(t.mimeType)?r.loadSegments(t.representation,t.mediaType,t.representation?t.representation.indexRange:null):n.loadSegments(t.representation,t.mediaType,t.representation?t.representation.indexRange:null)},reset:function(){n.reset(),r.reset()}},n=pu(a).getInstance(),r=vu(a).getInstance(),n.setConfig({baseURLController:c,dashMetrics:l,mediaPlayerModel:s,errHandler:u,eventBus:i,events:o,errors:m,debug:f,boxParser:d}),r.setConfig({baseURLController:c,dashMetrics:l,mediaPlayerModel:s,errHandler:u,eventBus:i,events:o,errors:m,debug:f}),e}Eu.__dashjs_factory_name="SegmentBaseController";var _u=N.Z.getSingletonFactory(Eu);function wu(t){return wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(t)}function Tu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==wu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===wu(i)?i:String(i)),r)}var a,i}function Su(t,e,n){return e&&Tu(t.prototype,e),n&&Tu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var ku=Su((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.KID=null,this.accessibility=null,this.adaptationSetSwitchingCompatibleIds=[],this.audioChannelConfiguration=null,this.bitrateList=null,this.codec=null,this.contentProtection=null,this.id=null,this.index=null,this.isEmbedded=null,this.isFragmented=null,this.isText=!1,this.labels=null,this.lang=null,this.mimeType=null,this.representationCount=0,this.roles=null,this.segmentAlignment=!1,this.selectionPriority=1,this.streamInfo=null,this.subSegmentAlignment=!1,this.supplementalProperties=[],this.essentialProperties=[],this.type=null,this.viewpoint=null}));function Au(t){return Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(t)}function Iu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Au(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Au(i)?i:String(i)),r)}var a,i}function Ru(t,e,n){return e&&Iu(t.prototype,e),n&&Iu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Nu=Ru((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0,this.isEncrypted=!1}));function Cu(t){return Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(t)}function xu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Cu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Cu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Cu(i)?i:String(i)),r)}var a,i}function Du(t,e,n){return e&&xu(t.prototype,e),n&&xu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ou=Du((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dvrWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null,this.serviceDescriptions=[],this.protocol=null}));function zu(t){return zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(t)}function Pu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==zu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===zu(i)?i:String(i)),r)}var a,i}var Mu=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.valid="/"==e[0],this.path=e.split("/").filter((function(t){return 0!==t.length})).map((function(t){var e={name:t},r=t.indexOf("[");if(-1!=r){e.name=t.substring(0,r);var a=t.substring(r+1,t.length-1);n.valid=n.valid&&-1==a.indexOf("[");var i=a.indexOf("=");-1!=i?(e.attribute={name:a.substring(1,i),value:a.substring(i+1)},-1!=["'",'"'].indexOf(e.attribute.value[0])&&(e.attribute.value=e.attribute.value.substring(1,e.attribute.value.length-1))):e.position=parseInt(a,10)-1}return e}))}var e,n,r;return e=t,(n=[{key:"isValid",value:function(){return this.valid}},{key:"findsElement",value:function(){return!this.findsAttribute()}},{key:"findsAttribute",value:function(){return this.path[this.path.length-1].name.startsWith("@")}},{key:"findsTextReplace",value:function(){return"text()"===this.path[this.path.length-1].name}},{key:"getMpdTarget",value:function(t,e){for(var n=this,r=null,a=t,i=1,o="MPD",l=function(){r=a;var t=n.path[i];if(o=t.name,i!==n.path.length-1||!o.startsWith("@")&&"text()"!==o){var e=r[o]||[];if(0===e.length&&r[o]&&e.push(r[o]),t.position)a=e[t.position]||null;else if(t.attribute){var l=t.attribute;a=e.filter((function(t){return t[l.name]==l.value}))[0]||null}else a=Array.isArray(e)?e[0]:e}i++};i<this.path.length&&null!==a;)l();return null===a?null:o.startsWith("@")?{name:o.substring(1),leaf:a,target:a}:"text()"===o?{name:"__text",leaf:a,target:a}:{name:o,leaf:a,target:e?r:a}}}])&&Pu(e.prototype,n),r&&Pu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Lu(t){return Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(t)}function ju(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Lu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Lu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Lu(i)?i:String(i)),r)}var a,i}var Fu=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.action=e,this.xpath=n,this.value=r,this.position=null}var e,n,r;return e=t,(n=[{key:"getMpdTarget",value:function(t){var e="remove"===this.action||"replace"===this.action||"before"===this.position||"after"===this.position;return this.xpath.getMpdTarget(t,e)}}])&&ju(e.prototype,n),r&&ju(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Uu(){var t,e,n=this.context;return t={getIsPatch:function(t){return t&&t.hasOwnProperty(k.Z.ORIGINAL_MPD_ID)||!1},getPublishTime:function(t){return t&&t.hasOwnProperty(k.Z.PUBLISH_TIME)?new Date(t[k.Z.PUBLISH_TIME]):null},getOriginalPublishTime:function(t){return t&&t.hasOwnProperty(k.Z.ORIGINAL_PUBLISH_TIME)?new Date(t[k.Z.ORIGINAL_PUBLISH_TIME]):null},getMpdId:function(t){return t&&t[k.Z.ORIGINAL_MPD_ID]||null},getPatchOperations:function(t){return t?(t.__children||[]).map((function(t){var n=Object.keys(t)[0];if("add"!==n&&"remove"!==n&&"replace"!==n)return e.warn("Ignoring node of invalid action: ".concat(n)),null;var r=t[n],a=r.sel;if("add"===n&&r.type){if(!r.type.startsWith("@"))return e.warn("Ignoring add action for prefixed namespace declaration: ".concat(r.type,"=").concat(r.__text)),null;a="".concat(a,"/").concat(r.type)}var i=new Mu(a);if(!i.isValid())return e.warn("Ignoring action with invalid selector: ".concat(n," - ").concat(a)),null;var o=null;i.findsAttribute()||i.findsTextReplace()?o=r.__text||"":"remove"!==n&&(o=r.__children.reduce((function(t,e){var n=Object.keys(e)[0];return"#text"!==n&&(t[n]=t[n]||[],t[n].push(e[n])),t}),{}));var l=new Fu(n,i,o);return"add"===n&&(l.position=r.pos),l})).filter((function(t){return!!t})):[]}},e=(0,C.Z)(n).getInstance().getLogger(t),t}Uu.__dashjs_factory_name="PatchManifestModel";var qu=N.Z.getSingletonFactory(Uu);function Bu(t,e=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(t);if(e){const t=n.indexOf("\0");return-1!==t?n.substring(0,t):n}return n.replace(/\0/g,"")}const n=t.length;let r,a,i,o="",l=0;for(;l<n;){if(r=t[l++],0===r&&e)return o;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(r);break;case 12:case 13:a=t[l++],o+=String.fromCharCode((31&r)<<6|63&a);break;case 14:a=t[l++],i=t[l++],o+=String.fromCharCode((15&r)<<12|(63&a)<<6|(63&i)<<0)}}return o}function Zu(t){return"PRIV"===t.type?function(t){if(t.size<2)return;const e=Bu(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:n.buffer}}(t):"W"===t.type[0]?function(t){if("WXXX"===t.type){if(t.size<2)return;let e=1;const n=Bu(t.data.subarray(e),!0);e+=n.length+1;const r=Bu(t.data.subarray(e));return{key:t.type,info:n,data:r}}const e=Bu(t.data);return{key:t.type,info:"",data:e}}(t):function(t){if(t.size<2)return;if("TXXX"===t.type){let e=1;const n=Bu(t.data.subarray(e),!0);e+=n.length+1;const r=Bu(t.data.subarray(e));return{key:t.type,info:n,data:r}}const e=Bu(t.data.subarray(1));return{key:t.type,info:"",data:e}}(t)}function Gu(t,e){let n=0;return n=(127&t[e])<<21,n|=(127&t[e+1])<<14,n|=(127&t[e+2])<<7,n|=127&t[e+3],n}function Hu(t){const e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=Gu(t,4);return{type:e,size:n,data:t.subarray(10,10+n)}}function Yu(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128}function Vu(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128}function Ku(){var t,e,n,r,a,i,o=this.context;function l(t,n){var a,i=n?n.index:0,o=e.getAdaptationsForType(r[i].mpd.manifest,i,t);if(!o||0===o.length)return null;if(o.length>1&&n)for(var l=0,s=o.length;l<s;l++)if(a=o[l],e.getRolesForAdaptation(a).filter((function(t){return t.value===k.Z.MAIN}))[0])return o[l];return o[0]}function s(t,n,r,i,o,l){var s,u,c,f,d,m,g=[];if(!i||0===i.length)return[];var b=e.getAdaptationsForPeriod(n);for(f=0,m=i.length;f<m;f++)if(s=i[f],u=p(b[c=e.getIndexForAdaptation(s,t,r.index)]),l){var y=u.accessibility.length;for(d=0;d<y;d++)if(u){var v=u.accessibility[d];if(v.schemeIdUri===a.ACCESSIBILITY_CEA608_SCHEME)if(""===v.value)h(u,a.CC1,"eng"),g.push(u),u=null;else{var E=v.value.split(";");if("CC"===E[0].substring(0,2))for(d=0;d<E.length;d++)u||(u=p.call(this,b[c])),h(u,E[d].substring(0,3),E[d].substring(4)),g.push(u),u=null;else for(d=0;d<E.length;d++)u||(u=p.call(this,b[c])),h(u,"CC"+(d+1),E[d]),g.push(u),u=null}}}else o===a.IMAGE?(u.type=a.IMAGE,g.push(u),u=null):u&&g.push(u);return g}function u(t){var n=c(t);return e.getRegularPeriods(n)}function c(t){var n=d(t);return e.getMpd(n)}function f(){r=[]}function d(t){return t||(r.length>0?r[0].mpd.manifest:null)}function m(t){try{var n=g(t.streamInfo,r),a=e.getAdaptationsForPeriod(n);return t&&t.streamInfo&&void 0!==t.streamInfo.id&&a?a[t.index]:null}catch(t){return null}}function g(t,e){for(var n=e.length,r=0;r<n;r++){var a=e[r];if(t&&t.id===a.id)return a}return null}function p(t){if(!t)return null;var n=new ku,r=t.period.mpd.manifest.Period[t.period.index].AdaptationSet[t.index];return n.id=t.id,n.index=t.index,n.type=t.type,n.streamInfo=b(t.period),n.representationCount=e.getRepresentationCount(r),n.labels=e.getLabelsForAdaptation(r),n.lang=e.getLanguageForAdaptation(r),n.segmentAlignment=e.getSegmentAlignment(r),n.subSegmentAlignment=e.getSubSegmentAlignment(r),n.viewpoint=e.getViewpointForAdaptation(r),n.accessibility=e.getAccessibilityForAdaptation(r),n.accessibility.filter((function(t){if(t.schemeIdUri&&t.schemeIdUri.search("cea-608")>=0&&void 0!==i)return!0}))[0]&&(n.embeddedCaptions=!0),n.audioChannelConfiguration=e.getAudioChannelConfigurationForAdaptation(r),0===n.audioChannelConfiguration.length&&r.Representation&&r.Representation.length>0&&(n.audioChannelConfiguration=e.getAudioChannelConfigurationForRepresentation(r.Representation[0])),n.roles=e.getRolesForAdaptation(r),n.codec=e.getCodec(r),n.mimeType=e.getMimeType(r),n.contentProtection=e.getContentProtectionByAdaptation(r),n.bitrateList=e.getBitrateListForAdaptation(r),n.selectionPriority=e.getSelectionPriority(r),n.contentProtection&&n.contentProtection.length>0&&(n.contentProtection=function(t,n){if(!t||!t.length||!n)return t;var r=e.getContentProtectionByManifest(n);if(!r||!r.length)return t;var a=r.reduce((function(t,e){return e.refId&&t.set(e.refId,e),t}),new Map);return t.map((function(t){if(t.ref){var e=a.get(t.ref);e&&t.mergeAttributesFromReference(e)}return t}))}(n.contentProtection,t.period.mpd.manifest),n.contentProtection=function(t){var e=t.map((function(t){return t.cencDefaultKid})).filter((function(t){return null!==t}));if(e.length){var n=e[0];t.forEach((function(t){t.keyId=n}))}return t}(n.contentProtection)),n.isText=e.getIsText(r),n.essentialProperties=e.getEssentialPropertiesForAdaptation(r),(!n.essentialProperties||0===n.essentialProperties.length)&&r.Representation&&r.Representation.length>0&&(n.essentialProperties=function(t,n){var r=n.Representation.map((function(t){return e.getEssentialPropertiesForRepresentation(t)}));return r.every((function(t){return JSON.stringify(t)===JSON.stringify(r[0])}))?r[0]:[]}(0,r)),n.supplementalProperties=e.getSupplementalPropertiesForAdaptation(r),(!n.supplementalProperties||0===n.supplementalProperties.length)&&r.Representation&&r.Representation.length>0&&(n.supplementalProperties=function(t,n){var r=n.Representation.map((function(t){return e.getSupplementalPropertiesForRepresentation(t)}));return r.every((function(t){return JSON.stringify(t)===JSON.stringify(r[0])}))?r[0]:[]}(0,r)),n.isFragmented=e.getIsFragmented(r),n.isEmbedded=!1,n.adaptationSetSwitchingCompatibleIds=function(t){if(!t||!t.supplementalProperties)return[];var e=[],n=t.supplementalProperties.filter((function(t){return t.schemeIdUri===k.Z.ADAPTATION_SET_SWITCHING_SCHEME_ID_URI}));return n&&n.length>0&&(e=n[0].value.toString().split(",").map((function(t){return t}))),e}(n),n}function h(t,e,n){t.id=e,t.index=100+parseInt(e.substring(2,3)),t.type=a.TEXT,t.codec="cea-608-in-SEI",t.isEmbedded=!0,t.isFragmented=!1,t.lang=Ui(n),t.roles=[{schemeIdUri:"urn:mpeg:dash:role:2011",value:"caption"}]}function b(t){var n,r,a=new Nu;return a.id=t.id,a.index=t.index,a.start=t.start,a.duration=t.duration,a.manifestInfo=(n=t.mpd,(r=new Ou).dvrWindowSize=n.timeShiftBufferDepth,r.loadedTime=n.manifest.loadedTime,r.availableFrom=n.availabilityStartTime,r.minBufferTime=n.manifest.minBufferTime,r.maxFragmentDuration=n.maxSegmentDuration,r.duration=e.getDuration(n.manifest),r.isDynamic=e.getIsDynamic(n.manifest),r.serviceDescriptions=e.getServiceDescriptions(n.manifest),r.protocol=n.manifest.protocol,r),a.isLast=1===t.mpd.manifest.Period.length||Math.abs(a.start+a.duration-a.manifestInfo.duration)<1,a.isEncrypted=t.isEncrypted,a}function y(){if(!a)throw new Error("setConfig function has to be called previously")}function v(t){return r.length>0?r[0].mpd.manifest.Period[t]:null}function E(t,e,n){var r,a,i,o,l;if(t)for(r=t.AdaptationSet,o=0;o<r.length;o+=1)for(i=r[o].Representation,l=0;l<i.length;l+=1)if(e===(a=i[l]).id)return n?l:a;return null}return t={applyPatchToManifest:function(t,e){n.getPatchOperations(e).forEach((function(e){var n=e.getMpdTarget(t);if(null!==n){var r=n.name,a=n.target,i=n.leaf;if(e.xpath.findsAttribute()||"__text"===r)switch(e.action){case"add":case"replace":a[r]=e.value;break;case"remove":delete a[r]}else{var o=(a[r]||[]).indexOf(i),l="prepend"===e.position||"before"===e.position;if("remove"===e.action||"replace"===e.action)if(Array.isArray(a[r])){if(-1!=o){var s=a[r];s.splice(o,1),s.length>0?a[r]=s:delete a[r]}}else delete a[r];"add"!==e.action&&"replace"!==e.action||Object.keys(e.value).forEach((function(t){var n=e.value[t],i=a[t]||[];if(0===i.length&&a[t]&&i.push(a[t]),0===i.length)i=n;else{var s=i.length;s=t==r&&-1!=o?o+(l?0:1)+("replace"==e.action?-1:0):l?0:i.length,i.splice.apply(i,[s,0].concat(n))}a[t]=i}))}}}))},getMainAdaptationForType:l,areMediaInfosEqual:function(t,e){if(!t||!e)return!1;var n=t.id===e.id,r=t.codec===e.codec,a=JSON.stringify(t.viewpoint)===JSON.stringify(e.viewpoint),i=t.lang===e.lang,o=JSON.stringify(t.roles)===JSON.stringify(e.roles),l=JSON.stringify(t.accessibility)===JSON.stringify(e.accessibility),s=JSON.stringify(t.audioChannelConfiguration)===JSON.stringify(e.audioChannelConfiguration);return n&&r&&a&&i&&o&&l&&s},getAllMediaInfoForType:function(t,n,i){var o=r,l=i,c=[];if(l)y(),o=u(l);else{if(!(r.length>0))return c;l=r[0].mpd.manifest}var f=g(t,o),d=e.getAdaptationsForType(l,t?t.index:null,n);return c=s(l,f,t,d,n),n===a.TEXT&&(d=e.getAdaptationsForType(l,t?t.index:null,a.VIDEO),c=c.concat(s(l,f,t,d,n,!0))),c},getAvailabilityStartTime:function(t){var n=c(t);return e.getAvailabilityStartTime(n)},getBandwidthForRepresentation:function(t,e){var n;return(n=E(v(e),t))?n.bandwidth:null},getBaseURLsFromElement:function(t){return e.getBaseURLsFromElement(t)},getCodec:function(t,n,r){return e.getCodec(t,n,r)},getContentSteering:function(t){return e.getContentSteering(t)},getDuration:function(t){var n=d(t);return e.getDuration(n)},getEssentialPropertiesForRepresentation:function(t){try{return e.getEssentialPropertiesForRepresentation(t)}catch(t){return[]}},getEvent:function(t,e,n,r){try{if(!t||!e||isNaN(n)||!r)return null;var a=t.scheme_id_uri,i=t.value;if(!e[a+"/"+i])return null;var o,l=new Me,s=t.timescale||1,u=r.adaptation.period.start,c=e[a+"/"+i],f=isNaN(r.presentationTimeOffset)?isNaN(c.presentationTimeOffset)?0:c.presentationTimeOffset:r.presentationTimeOffset,d=t.presentation_time_delta/s;o=0===t.version?u+n-f+d:u-f+d;var m=t.event_duration/s,g=t.id,p=t.message_data;return l.eventStream=c,l.eventStream.value=i,l.eventStream.timescale=s,l.duration=m,l.id=g,l.calculatedPresentationTime=o,l.messageData=p,l.presentationTimeDelta=d,l.parsedMessageData=a===S.Z.ID3_SCHEME_ID_URI?function(t){let e=0;const n=[];for(;Vu(t,e);){const r=Gu(t,e+6);e+=10;const a=e+r;for(;e+8<a;){const r=Hu(t.subarray(e)),a=Zu(r);a&&n.push(a),e+=r.size+10}Yu(t,e)&&(e+=10)}return n}(p):null,l}catch(t){return null}},getEventsFor:function(t,n,a){var i=[];if(r.length>0){var o=r[0].mpd.manifest;if(t instanceof Nu){var l=g(t,r);i=e.getEventsForPeriod(l)}else if(t instanceof ku){var s=g(a,r);i=e.getEventStreamForAdaptationSet(o,m(t),s)}else if(t instanceof ye){var u=g(a,r);i=e.getEventStreamForRepresentation(o,n,u)}}return i},getIndexForRepresentation:function(t,e){return function(t,e){var n=E(t,e,!0);return null!==n?n:-1}(v(e),t)},getIsDVB:function(t){return e.hasProfile(t,"urn:dvb:dash:profile:dvb-dash:2014")},getIsDynamic:function(t){var n=d(t);return e.getIsDynamic(n)},getIsPatch:function(t){return n.getIsPatch(t)},getIsTextTrack:function(t){return e.getIsText(t)},getIsTypeOf:function(t,n){return e.getIsTypeOf(t,n)},getLocation:function(t){return e.getLocation(t)},getManifestUpdatePeriod:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.getManifestUpdatePeriod(t,n)},getMediaInfoForType:function(t,n){if(0===r.length||!t)return null;var a=g(t,r);if(!a)return null;var i=e.getAdaptationsForPeriod(a),o=l(n,t);return o?p(i[e.getIndexForAdaptation(o,r[0].mpd.manifest,t.index)]):null},getMpd:c,getPatchLocation:function(t){var n=e.getPatchLocation(t),r=e.getPublishTime(t);return n&&0!==n.length&&r?n.filter((function(t){return isNaN(t.ttl)||r.getTime()+t.ttl>(new Date).getTime()})):[]},getPeriodById:function(t){if(!t||0===r.length)return null;var e=r.filter((function(e){return e.id===t}));return e&&e.length>0?e[0]:null},getProducerReferenceTimes:function(t,n){var a,i,o=g(t,r);return a=n?n.id:null,r.length>0&&o&&(i=a?e.getAdaptationForId(a,r[0].mpd.manifest,o.index):e.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,o.index)),i?e.getProducerReferenceTimesForAdaptation(i):[]},getPublishTime:function(t){return e.getPublishTime(t)},getRealAdaptation:function(t,n){var a,i,o=g(t,r);return a=n?n.id:null,r.length>0&&o&&(i=a?e.getAdaptationForId(a,r[0].mpd.manifest,o.index):e.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,o.index)),i},getRealPeriodByIndex:function(t){return e.getRealPeriodForIndex(t,r[0].mpd.manifest)},getRegularPeriods:u,getRepresentationSortFunction:function(){return e.getRepresentationSortFunction()},getStreamsInfo:function(t,e){var n=[],a=r;if(t&&(y(),a=u(t)),a.length>0){(!e||e>a.length)&&(e=a.length);for(var i=0;i<e;i++)n.push(b(a[i]))}return n},getSuggestedPresentationDelay:function(){var t=r.length>0?r[0].mpd:null;return e.getSuggestedPresentationDelay(t)},getUTCTimingSources:function(){var t=d();return e.getUTCTimingSources(t)},getVoRepresentations:function(t){var n=m(t);return e.getRepresentationsForAdaptation(n,t)},isPatchValid:function(t,r){var a=e.getId(t),i=n.getMpdId(r),o=e.getPublishTime(t),l=n.getPublishTime(r),s=n.getOriginalPublishTime(r);return!!(a&&i&&a==i&&o&&s&&o.getTime()==s.getTime()&&l&&o.getTime()<l.getTime())},reset:f,setConfig:function(t){t&&(t.constants&&(a=t.constants),t.cea608parser&&(i=t.cea608parser),t.errHandler&&e.setConfig({errHandler:t.errHandler}),t.BASE64&&e.setConfig({BASE64:t.BASE64}))},updatePeriods:function(t){if(!t)return null;y(),r=u(t)}},e=Nn(o).getInstance(),n=qu(o).getInstance(),f(),t}Ku.__dashjs_factory_name="DashAdapter";var Wu=N.Z.getSingletonFactory(Ku);function Xu(t){return Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(t)}function Qu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Xu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Xu(i)?i:String(i)),r)}var a,i}var $u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"round10",value:function(t,e){return function(t,e,n){return void 0===n||0==+n?Math[t](e):(n=+n,null===(e=+e)||isNaN(e)||"number"!=typeof n||n%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math[t](+(e[0]+"e"+(e[1]?+e[1]-n:-n)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+n:n))))}("round",t,e)}}],(n=null)&&Qu(e.prototype,n),r&&Qu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ju(t){return Ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(t)}function tc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ju(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ju(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ju(i)?i:String(i)),r)}var a,i}function ec(t,e,n){return e&&tc(t.prototype,e),n&&tc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var nc=ec((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]}));function rc(t){return rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(t)}function ac(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==rc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===rc(i)?i:String(i)),r)}var a,i}function ic(t,e,n){return e&&ac(t.prototype,e),n&&ac(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var oc=ic((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.mt=null,this.to=null,this.lto=null}));function lc(t){return lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(t)}function sc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==lc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===lc(i)?i:String(i)),r)}var a,i}function uc(t,e,n){return e&&sc(t.prototype,e),n&&sc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var cc=uc((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.level=null}));function fc(t){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(t)}function dc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==fc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===fc(i)?i:String(i)),r)}var a,i}function mc(t,e,n){return e&&dc(t.prototype,e),n&&dc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var gc=mc((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=null,this.state=A.BUFFER_EMPTY}));function pc(t){return pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(t)}function hc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==pc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===pc(i)?i:String(i)),r)}var a,i}function bc(t,e,n){return e&&hc(t.prototype,e),n&&hc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var yc=bc((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=null,this.range=null,this.manifestInfo=null}));function vc(t){return vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(t)}function Ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==vc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==vc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===vc(i)?i:String(i)),r)}var a,i}function _c(t,e,n){return e&&Ec(t.prototype,e),n&&Ec(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var wc=_c((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=null,this.droppedFrames=null}));function Tc(t){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(t)}function Sc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Tc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Tc(i)?i:String(i)),r)}var a,i}function kc(t,e,n){return e&&Sc(t.prototype,e),n&&Sc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ac(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ic=kc((function t(){Ac(this,t),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]})),Rc=kc((function t(){Ac(this,t),this.id=null,this.index=null,this.start=null,this.duration=null})),Nc=kc((function t(){Ac(this,t),this.id=null,this.index=null,this.mediaType=null,this.presentationTimeOffset=null,this.startNumber=null}));function Cc(t){return Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(t)}function xc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Cc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Cc(i)?i:String(i)),r)}var a,i}function Dc(t,e,n){return e&&xc(t.prototype,e),n&&xc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Oc=Dc((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.bandwidth=null,this.range=null,this.state=null}));function zc(t){return zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(t)}function Pc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==zc(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===zc(i)?i:String(i)),r)}var a,i}function Mc(t,e,n){return e&&Pc(t.prototype,e),n&&Pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Lc=Mc((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadingRequests=[],this.executedRequests=[]}));function jc(t){var e,n,r=(t=t||{}).settings,a=this.context,i=(0,I.Z)(a).getInstance();function o(){i.trigger(R.Z.METRICS_CHANGED)}function l(t){i.trigger(R.Z.METRIC_CHANGED,{mediaType:t}),o()}function s(t,e,n){i.trigger(R.Z.METRIC_UPDATED,{mediaType:t,metric:e,value:n}),l(t)}function u(t,e,n){i.trigger(R.Z.METRIC_ADDED,{mediaType:t,metric:e,value:n}),l(t)}function c(t,e){var r=null;return t?(n.hasOwnProperty(t)?r=n[t]:e||(r=new nc,n[t]=r),r):r}function f(t,e,n){var a=c(t);null!==a&&(a[e].push(n),a[e].length>r.get().streaming.metrics.maxListDepth&&a[e].shift())}function d(t,e,n){f(t,e,n),u(t,e,n)}return e={clearCurrentMetricsForType:function(t){delete n[t],l(t)},clearAllCurrentMetrics:function(){n={},o()},getMetricsFor:c,addHttpRequest:function t(e,n,r,a){var i=new z.w;for(var o in n.url&&n.url!==e.url&&(t({mediaType:e.mediaType,type:e.type,url:e.url,quality:e.quality,serviceLocation:null,range:e.range,startDate:e.startDate,firstByteDate:null,endDate:null,duration:e.duration,fileLoaderType:e.fileLoaderType,resourceTimingValues:e.resourceTimingValues},{url:null,status:null,headers:null},null,a),i.actualurl=n.url),i.tcpid=null,i.type=e.type,i.url=e.url,i.range=e.range||null,i.trequest=e.startDate,i.tresponse=e.firstByteDate,i.responsecode=n.status,i.cmsd=a,i._tfinish=e.endDate,i._stream=e.mediaType,i._mediaduration=e.duration,i._quality=e.quality,i._responseHeaders="",n.headers)i._responseHeaders+=o+": "+n.headers[o]+"\r\n";i._serviceLocation=e.serviceLocation||null,i._fileLoaderType=e.fileLoaderType,i._resourceTimingValues=e.resourceTimingValues,r?r.forEach((function(t){!function(t,e,n,r){var a=new z.O;a.s=e,a.d=n,a.b=r,t.trace.push(a),t.interval||(t.interval=0),t.interval+=n}(i,t.s,t.d,t.b,t.t)})):(delete i.interval,delete i.trace),d(e.mediaType,A.HTTP_REQUEST,i)},addRepresentationSwitch:function(t,e,n,r,a){var i=new oc;i.t=e,i.mt=n,i.to=r,a?i.lto=a:delete i.lto,d(t,A.TRACK_SWITCH,i)},addBufferLevel:function(t,e,n){var r=new cc;r.t=e,r.level=n,d(t,A.BUFFER_LEVEL,r)},addBufferState:function(t,e,n){var r=new gc;r.target=n,r.state=e,d(t,A.BUFFER_STATE,r)},addDVRInfo:function(t,e,n,r){var a=new yc;a.time=e,a.range=r,a.manifestInfo=n,d(t,A.DVR_INFO,a)},addDroppedFrames:function(t,e){var n=new wc,r=c(t).DroppedFrames;e&&(n.time=e.creationTime,n.droppedFrames=e.droppedVideoFrames,r.length>0&&r[r.length-1]==n||d(t,A.DROPPED_FRAMES,n))},addSchedulingInfo:function(t,e,n,r,a,i,o,l,s){var u=new Oc;u.mediaType=t,u.t=e,u.type=n,u.startTime=r,u.availabilityStartTime=a,u.duration=i,u.bandwidth=o,u.range=l,u.state=s,d(t,A.SCHEDULING_INFO,u)},addRequestsQueue:function(t,e,n){var r=new Lc;r.loadingRequests=e,r.executedRequests=n,c(t).RequestsQueue=r,u(t,A.REQUESTS_QUEUE,r)},addManifestUpdate:function(t,e,n,r){var a=new Ic;a.mediaType=t,a.type=e,a.requestTime=n,a.fetchTime=r,f(S.Z.STREAM,A.MANIFEST_UPDATE,a),u(t,A.MANIFEST_UPDATE,a)},updateManifestUpdateInfo:function(t,e){if(t){for(var n in e)t[n]=e[n];s(t.mediaType,A.MANIFEST_UPDATE,t)}},addManifestUpdateStreamInfo:function(t,e,n,r,a){if(t){var i=new Rc;i.id=e,i.index=n,i.start=r,i.duration=a,t.streamInfo.push(i),s(t.mediaType,A.MANIFEST_UPDATE_STREAM_INFO,t)}},addManifestUpdateRepresentationInfo:function(t,e,n){if(t&&t.representationInfo){var r=new Nc;r.id=e?e.id:null,r.index=e?e.index:null,r.mediaType=n,r.startNumber=e?e.startNumber:null,r.presentationTimeOffset=e?e.presentationTimeOffset:null,t.representationInfo.push(r),s(t.mediaType,A.MANIFEST_UPDATE_TRACK_INFO,t)}},addPlayList:function(t){t.trace&&Array.isArray(t.trace)?t.trace.forEach((function(t){t.hasOwnProperty("subreplevel")&&!t.subreplevel&&delete t.subreplevel})):delete t.trace,d(S.Z.STREAM,A.PLAY_LIST,t)},addDVBErrors:function(t){d(S.Z.STREAM,A.DVB_ERRORS,t)}},n={},e}jc.__dashjs_factory_name="MetricsModel";var Fc=N.Z.getSingletonFactory(jc);function Uc(t){t=t||{};var e,n,r,a,i=this.context,o=t.metricsModel;function l(t){var e=o.getMetricsFor(t,!0);if(!e)return null;var n,r=e.HttpList,a=null;if(!r||r.length<=0)return null;for(n=r.length-1;n>=0;){if(r[n].responsecode){a=r[n];break}n--}return a}function s(t){var e=o.getMetricsFor(t,!0);return e&&e.HttpList?e.HttpList:[]}function u(t,e){if(!t)return null;var n=t[e];return n&&0!==n.length?n[n.length-1]:null}return e={getCurrentRepresentationSwitch:function(t){return u(o.getMetricsFor(t,!0),A.TRACK_SWITCH)},getCurrentBufferState:function(t){return u(o.getMetricsFor(t,!0),A.BUFFER_STATE)},getCurrentBufferLevel:function(t){var e=u(o.getMetricsFor(t,!0),A.BUFFER_LEVEL);return e?$u.round10(e.level/1e3,-3):0},getCurrentHttpRequest:l,getHttpRequests:s,getCurrentDroppedFrames:function(){return u(o.getMetricsFor(S.Z.VIDEO,!0),A.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(t){return u(o.getMetricsFor(t,!0),A.SCHEDULING_INFO)},getCurrentDVRInfo:function(t){return u(t?o.getMetricsFor(t,!0):o.getMetricsFor(S.Z.VIDEO,!0)||o.getMetricsFor(S.Z.AUDIO,!0),A.DVR_INFO)},getCurrentManifestUpdate:function(){return u(o.getMetricsFor(S.Z.STREAM),A.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(t,e){if(!e)return null;var n={},r=l(t);r&&(n=ie.Z.parseHttpHeaders(r._responseHeaders));var a=n[e.toLowerCase()];return void 0===a?null:a},getLatestMPDRequestHeaderValueByID:function(t){if(!t)return null;var e,n,r,a={};for(r=(e=s(S.Z.STREAM)).length-1;r>=0;r--)if((n=e[r]).type===z.w.MPD_TYPE){a=ie.Z.parseHttpHeaders(n._responseHeaders);break}var i=a[t.toLowerCase()];return void 0===i?null:i},addRepresentationSwitch:function(t,e,n,r,a){o.addRepresentationSwitch(t,e,n,r,a)},addDVRInfo:function(t,e,n,r){o.addDVRInfo(t,e,n,r)},updateManifestUpdateInfo:function(t){var e=this.getCurrentManifestUpdate();o.updateManifestUpdateInfo(e,t)},addManifestUpdateStreamInfo:function(t){if(t){var e=this.getCurrentManifestUpdate();o.addManifestUpdateStreamInfo(e,t.id,t.index,t.start,t.duration)}},addManifestUpdateRepresentationInfo:function(t,e){if(t){var n=this.getCurrentManifestUpdate();o.addManifestUpdateRepresentationInfo(n,t,e)}},addManifestUpdate:function(t){o.addManifestUpdate(S.Z.STREAM,t.type,t.startDate,t.endDate)},addHttpRequest:function(t,e,n,r,a,i){var l={status:n,headers:r,url:e};o.addHttpRequest(t,l,a,i)},addSchedulingInfo:function(t,e){o.addSchedulingInfo(t.mediaType,new Date,t.type,t.startTime,t.availabilityStartTime,t.duration,t.bandwidth,t.range,e)},addRequestsQueue:function(t,e,n){o.addRequestsQueue(t,e,n)},addBufferLevel:function(t,e,n){o.addBufferLevel(t,e,n)},addBufferState:function(t,e,n){o.addBufferState(t,e,n)},addDroppedFrames:function(t){o.addDroppedFrames(S.Z.VIDEO,t)},addPlayList:function(){a&&(o.addPlayList(a),a=null)},addDVBErrors:function(t){o.addDVBErrors(t)},createPlaylistMetrics:function(t,e){(a=new Ft).start=new Date,a.mstart=t,a.starttype=e},createPlaylistTraceMetrics:function(t,e,a){!0===n&&(n=!1,(r=new Ut).representationid=t,r.start=new Date,r.mstart=e,r.playbackspeed=null!==a?a.toString():null)},updatePlayListTraceMetrics:function(t){if(r)for(var e in r)r[e]=t[e]},pushPlayListTraceMetrics:function(t,e){if(!1===n&&a&&r&&r.start){var i=r.start;r.duration=t.getTime()-i.getTime(),r.stopreason=e,a.trace.push(r),n=!0}},clearAllCurrentMetrics:function(){o.clearAllCurrentMetrics()}},o=o||Fc(i).getInstance({settings:t.settings}),n=!0,r=null,a=null,e}Uc.__dashjs_factory_name="DashMetrics";var qc=N.Z.getSingletonFactory(Uc);function Bc(){var t,e,n,r,a=this.context,i=(0,I.Z)(a).getInstance(),o=(0,$.Z)(a).getInstance();function l(t){r=t}function s(t,e,n,r){var a,i=e.adaptation.period.mpd,o=i.availabilityStartTime;if(r)a=n&&i.timeShiftBufferDepth!==Number.POSITIVE_INFINITY?new Date(o.getTime()+1e3*(t+i.timeShiftBufferDepth)):i.availabilityEndTime;else if(n){var l=e.availabilityTimeOffset;a=new Date(o.getTime()+1e3*(t-l))}else a=o;return a}function u(t,e){return(t.getTime()-e.mpd.availabilityStartTime.getTime()+1e3*r)/1e3}function c(t,e){return t+(e.adaptation.period.start-e.presentationTimeOffset)}function f(t){var n={start:NaN,end:NaN},r=t[0].getAdapter().getRegularPeriods()[0],a=u(new Date,r);if(!t||0===t.length)return{range:n,now:a};t.forEach((function(t){var r=t.getCurrentRepresentationForType(S.Z.VIDEO);if(r||(r=t.getCurrentRepresentationForType(S.Z.AUDIO)),!r){var i=t.getAdapter(),o=i.getMediaInfoForType(t.getStreamInfo(),S.Z.VIDEO)||i.getMediaInfoForType(t.getStreamInfo(),S.Z.AUDIO);r=i.getVoRepresentations(o)[0]}var l={start:NaN,end:NaN};if(r)if(r.segmentInfoType===k.Z.SEGMENT_TIMELINE)l=function(t){var n,r,a,i,o=t.adaptation.period.mpd.manifest.Period[t.adaptation.period.index].AdaptationSet[t.adaptation.index],l=e.getRepresentationFor(t.index,o),s=l.SegmentTemplate||l.SegmentList,u=s.SegmentTimeline,f=s.timescale,d=u.S,m={start:0,end:0},g=d[0].t,p=!isNaN(g),h=p?g:0,b=0;for(p&&(m.start=c(h/f,t)),a=0,i=d.length;a<i;a++)r=0,(n=d[a]).hasOwnProperty("r")&&(r=n.r),b+=n.d*(1+r);return m.end=c((h+b)/f,t),m}(r);else{var s=r.adaptation.period;l.start=s.start,l.end=Math.max(a,s.start+s.duration)}!isNaN(l.start)&&(isNaN(n.start)||n.start>l.start)&&(n.start=l.start),!isNaN(l.end)&&(isNaN(n.end)||n.end<l.end)&&(n.end=l.end)})),n.end=Math.min(a,n.end);var i=m(t,n.end,!0);return n.end=isNaN(i)?n.end:i,n.start=r&&r.mpd&&r.mpd.timeShiftBufferDepth&&!isNaN(r.mpd.timeShiftBufferDepth)&&!isNaN(n.end)?Math.max(n.end-r.mpd.timeShiftBufferDepth,n.start):n.start,n.start=m(t,n.start),{range:n,now:a}}function d(t,e){n=t-e.end}function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{for(var r=0,a=!1,i=NaN;!a&&r<t.length;){var o=t[r].getStreamInfo();o.start<=e&&(!isFinite(o.duration)||o.start+o.duration>=e)?(i=e,a=!0):!n&&o.start>e&&(isNaN(i)||o.start<i)?i=o.start:n&&o.start+o.duration<e&&(isNaN(i)||o.start+o.duration>i)&&(i=o.start+o.duration),r+=1}return i}catch(t){return e}}function g(t){void 0===t.offset||isNaN(t.offset)||l(t.offset/1e3)}function p(){r=0,n=0}function h(){i.off(R.Z.UPDATE_TIME_SYNC_OFFSET,g,this),p()}return t={initialize:function(){p(),i.on(R.Z.UPDATE_TIME_SYNC_OFFSET,g,this)},getClientTimeOffset:function(){return r},setClientTimeOffset:l,getClientReferenceTime:function(){return Date.now()-1e3*n+1e3*r},calcAvailabilityStartTimeFromPresentationTime:function(t,e,n){return s(t,e,n)},calcAvailabilityEndTimeFromPresentationTime:function(t,e,n){return s(t,e,n,!0)},calcPresentationTimeFromWallTime:u,calcPresentationTimeFromMediaTime:c,calcPeriodRelativeTimeFromMpdRelativeTime:function(t,e){return e-t.adaptation.period.start},calcMediaTimeFromPresentationTime:function(t,e){return t-e.adaptation.period.start+e.presentationTimeOffset},calcWallTimeForSegment:function(t,e){var n,r,a;return e&&(n=t.representation.adaptation.period.mpd.suggestedPresentationDelay,r=t.presentationStartTime+n,a=new Date(t.availabilityStartTime.getTime()+1e3*r)),a},calcTimeShiftBufferWindow:function(t,e){if(!e)return function(t){var e={start:NaN,end:NaN},n=0,r=NaN;return t.forEach((function(t){var e=t.getStreamInfo();n+=e.duration,(isNaN(r)||e.start<r)&&(r=e.start)})),e.start=r,e.end=r+n,e}(t);if(o.get().streaming.timeShiftBuffer.calcFromSegmentTimeline){var n=f(t);return d(n.now,n.range),n.range}return function(t){var e={start:NaN,end:NaN};if(!t||0===t.length)return e;var n=t[0].getAdapter().getRegularPeriods()[0],r=u(new Date,n),a=n.mpd.timeShiftBufferDepth,l=isNaN(a)?0:r-a;if(e.start=m(t,l),e.end=!isNaN(e.start)&&r<e.start?r:m(t,r,!0),!isNaN(a)&&e.end<r-a&&(e.end=NaN),o.get().streaming.timeShiftBuffer.fallbackToSegmentTimeline){var s=f(t);if(s.range.end<e.start)return i.trigger(x.Z.CONFORMANCE_VIOLATION,{level:ui.LEVELS.WARNING,event:ui.EVENTS.INVALID_DVR_WINDOW}),d(s.now,s.range),s.range}return e}(t)},reset:h},e=Nn(a).getInstance(),h(),t}Bc.__dashjs_factory_name="TimelineConverter";var Zc,Gc,Hc,Yc,Vc,Kc=N.Z.getSingletonFactory(Bc),Wc={encode:function(t){for(var e=[],n=0;n<t.length;++n){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?(e.push(192|r>>6),e.push(128|63&r)):r<65536?(e.push(224|r>>12),e.push(128|63&r>>6),e.push(128|63&r)):(e.push(240|r>>18),e.push(128|63&r>>12),e.push(128|63&r>>6),e.push(128|63&r))}return e},decode:function(t){for(var e=[],n=0;n<t.length;){var r=t[n++];r<128||(r<224?(r=(31&r)<<6,r|=63&t[n++]):r<240?(r=(15&r)<<12,r|=(63&t[n++])<<6,r|=63&t[n++]):(r=(7&r)<<18,r|=(63&t[n++])<<12,r|=(63&t[n++])<<6,r|=63&t[n++])),e.push(String.fromCharCode(r))}return e.join("")}},Xc={};Zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gc=function(t){for(var e=0,n=[],r=0|t.length/3;0<r--;){var a=(t[e]<<16)+(t[e+1]<<8)+t[e+2];e+=3,n.push(Zc.charAt(63&a>>18)),n.push(Zc.charAt(63&a>>12)),n.push(Zc.charAt(63&a>>6)),n.push(Zc.charAt(63&a))}return 2==t.length-e?(a=(t[e]<<16)+(t[e+1]<<8),n.push(Zc.charAt(63&a>>18)),n.push(Zc.charAt(63&a>>12)),n.push(Zc.charAt(63&a>>6)),n.push("=")):1==t.length-e&&(a=t[e]<<16,n.push(Zc.charAt(63&a>>18)),n.push(Zc.charAt(63&a>>12)),n.push("==")),n.join("")},Hc=function(){for(var t=[],e=0;e<64;++e)t[Zc.charCodeAt(e)]=e;return t["=".charCodeAt(0)]=0,t}(),Yc=function(t){for(var e=0,n=[],r=0|t.length/4;0<r--;){var a=(Hc[t.charCodeAt(e)]<<18)+(Hc[t.charCodeAt(e+1)]<<12)+(Hc[t.charCodeAt(e+2)]<<6)+Hc[t.charCodeAt(e+3)];n.push(255&a>>16),n.push(255&a>>8),n.push(255&a),e+=4}return n&&("="==t.charAt(e-2)?(n.pop(),n.pop()):"="==t.charAt(e-1)&&n.pop()),n},Vc={encode:function(t){for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e},decode:function(t){for(var e=0;e<s.length;++e)a[e]=String.fromCharCode(a[e]);return a.join("")}},Xc.decodeArray=function(t){var e=Yc(t);return new Uint8Array(e)},Xc.encodeASCII=function(t){var e=Vc.encode(t);return Gc(e)},Xc.decodeASCII=function(t){var e=Yc(t);return Vc.decode(e)},Xc.encode=function(t){var e=Wc.encode(t);return Gc(e)},Xc.decode=function(t){var e=Yc(t);return Wc.decode(e)},"undefined"!=typeof exports&&(exports.decode=Xc.decode,exports.decodeArray=Xc.decodeArray,exports.encode=Xc.encode,exports.encodeASCII=Xc.encodeASCII);var Qc=Xc;function $c(t){return $c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(t)}function Jc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==$c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==$c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===$c(i)?i:String(i)),r)}var a,i}function tf(t,e){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tf(t,e)}function ef(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nf(t);if(e){var a=nf(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===$c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function nf(t){return nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nf(t)}var rf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tf(t,e)}(i,t);var e,n,r,a=ef(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).captionData=null,t.label=null,t.defaultTrack=!1,t.kind=null,t.isFragmented=!1,t.isEmbedded=!1,t.isTTML=null,t}return e=i,n&&Jc(e.prototype,n),r&&Jc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(ku),af=n(777);function of(){var t=0;function e(t){for(var e="",n=0;n<t.length;++n)e+=t[n].uchar;return e.length-e.replace(/^\s+/,"").length}function n(t){return"left: "+3.125*t.x+"%; top: "+6.66*t.y1+"%; width: "+(100-3.125*t.x)+"%; height: "+6.66*Math.max(t.y2-1-t.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function r(t){return"red"===t?"rgb(255, 0, 0)":"green"===t?"rgb(0, 255, 0)":"blue"===t?"rgb(0, 0, 255)":"cyan"===t?"rgb(0, 255, 255)":"magenta"===t?"rgb(255, 0, 255)":"yellow"===t?"rgb(255, 255, 0)":"white"===t?"rgb(255, 255, 255)":"black"===t?"rgb(0, 0, 0)":t}function a(t,e){var n=t.videoHeight/15;return e?"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(e.foreground?r(e.foreground):"rgb(255, 255, 255)")+"; font-style: "+(e.italics?"italic":"normal")+"; text-decoration: "+(e.underline?"underline":"none")+"; white-space: pre; background-color: "+(e.background?r(e.background):"transparent")+";":"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}function i(t){return t.replace(/^\s+/g,"")}function o(t){return t.replace(/\s+$/g,"")}return{createHTMLCaptionsFromScreen:function(r,l,s,u){var c,f,d=null,m=!1,g=-1,p={start:l,end:s,spans:[]},h="style_cea608_white_black",b={},y={},v=[];for(c=0;c<15;++c){var E=u.rows[c],_="",w=null;if(!1===E.isEmpty()){var T=e(E.chars);null===d&&(d={x:T,y1:c,y2:c+1,p:[]}),T!==g&&m&&(d.p.push(p),p={start:l,end:s,spans:[]},d.y2=c,d.name="region_"+d.x+"_"+d.y1+"_"+d.y2,!1===b.hasOwnProperty(d.name)?(v.push(d),b[d.name]=d):b[d.name].p.contat(d.p),d={x:T,y1:c,y2:c+1,p:[]});for(var S=0;S<E.chars.length;++S){var k=E.chars[S],A=k.penState;if(null===w||!A.equals(w)){_.trim().length>0&&(p.spans.push({name:h,line:_,row:c}),_="");var I="style_cea608_"+A.foreground+"_"+A.background;A.underline&&(I+="_underline"),A.italics&&(I+="_italics"),y.hasOwnProperty(I)||(y[I]=JSON.parse(JSON.stringify(A))),w=A,h=I}_+=k.uchar}_.trim().length>0&&p.spans.push({name:h,line:_,row:c}),m=!0,g=T}else m=!1,g=-1,d&&(d.p.push(p),p={start:l,end:s,spans:[]},d.y2=c,d.name="region_"+d.x+"_"+d.y1+"_"+d.y2,!1===b.hasOwnProperty(d.name)?(v.push(d),b[d.name]=d):b[d.name].p.contat(d.p),d=null)}d&&(d.p.push(p),d.y2=c+1,d.name="region_"+d.x+"_"+d.y1+"_"+d.y2,!1===b.hasOwnProperty(d.name)?(v.push(d),b[d.name]=d):b[d.name].p.contat(d.p),d=null);var R=[];for(c=0;c<v.length;++c){var N=v[c],C="sub_cea608_"+t++,x=document.createElement("div");x.id=C;var D=n(N);x.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+D;var O=document.createElement("div");O.className="paragraph bodyStyle",O.style.cssText=a(r);var z=document.createElement("div");z.className="cueUniWrapper",z.style.cssText="unicode-bidi: normal; direction: ltr;";for(var P=0;P<N.p.length;++P){var M=N.p[P],L=0;for(f=0;f<M.spans.length;++f){var j=M.spans[f];if(j.line.length>0){if(0!==f&&L!=j.row){var F=document.createElement("br");F.className="lineBreak",z.appendChild(F)}var U=!1;L===j.row&&(U=!0),L=j.row;var q=y[j.name],B=document.createElement("span");B.className="spanPadding "+j.name+" customSpanColor",B.style.cssText=a(r,q),0!==f&&U?f===M.spans.length-1?B.textContent=o(j.line):B.textContent=j.line:M.spans.length>1&&f<M.spans.length-1&&j.row===M.spans[f+1].row?B.textContent=i(j.line):B.textContent=j.line.trim(),z.appendChild(B)}}}O.appendChild(z),x.appendChild(O);var Z={bodyStyle:["%",90]};for(var G in y)y.hasOwnProperty(G)&&(Z[G]=["%",90]);R.push({type:"html",start:l,end:s,cueHTMLElement:x,cueID:C,cellResolution:[32,15],isFromCEA608:!0,fontSize:Z,lineHeight:{},linePadding:{}})}return R}}}of.__dashjs_factory_name="EmbeddedTextHtmlRender";var lf=N.Z.getSingletonFactory(of);function sf(t){var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y=t.errHandler,v=t.manifestModel,E=t.mediaController,_=t.videoModel,w=t.textTracks,k=t.vttParser,A=t.vttCustomRenderingParser,N=t.ttmlParser,x=t.streamInfo,D=t.settings,O=this.context,P=(0,I.Z)(O).getInstance(),M=!1;function L(){o=null,s=NaN,u=[],c=null,l=!1,i=[],a=null}function j(t){var e=new rf;for(var n in t)e[n]=t[n];e.labels=t.labels,e.defaultTrack=function(t){var e=!1;return d.length>1&&t.isEmbedded?e=t.id&&t.id===S.Z.CC1:1===d.length?t.id&&"string"==typeof t.id&&"CC"===t.id.substring(0,2)&&(e=!0):0===d.length&&(e=t.index===i[0].index),e}(t),e.isFragmented=t.isFragmented,e.isEmbedded=!!t.isEmbedded,e.isTTML=function(t){return t.codec&&t.codec.search(S.Z.STPP)>=0||t.mimeType&&t.mimeType.search(S.Z.TTML)>=0}(t),e.kind=function(t,e){var n=t.roles&&t.roles.length>0?e[t.roles[0].value]:e.caption;return n=n===e.caption||n===e.subtitle?n:e.caption}(t,{subtitle:"subtitles",caption:"captions"}),w.addTextTrack(e)}function F(t){var e=t.chunk;e.representation.mediaInfo.embeddedCaptions&&q(e.bytes,e)}function U(t){f=t}function q(t,i){var u=i.representation.mediaInfo,b=u.type,E=u.mimeType,_=u.codec||E;_?-1!==u.codec.indexOf("application/mp4")?function(t,i,u){var d;if("InitializationSegment"===i.segmentType)l=!0,s=r.getMediaTimescaleFromMoov(t);else{if(!l)return;(d=r.getSamplesInfo(t).sampleList).length>0&&(c=d[0].cts-i.start*s),u.search(S.Z.STPP)>=0?function(t,r,i){var l,u;for(a=null!==a?a:G(i),l=0;l<r.length;l++){var c=r[l],d=c.cts,m=Z(),g=m+d/s,p=g+c.duration/s;e.buffered.add(g,p);var h=new DataView(t,c.offset,c.subSizes[0]),b=Sa.Utils.dataViewToString(h,S.Z.UTF8),y=[],E=c.offset+c.subSizes[0];for(u=1;u<c.subSizes.length;u++){var _=new Uint8Array(t,E,c.subSizes[u]),T=String.fromCharCode.apply(null,_);y.push(T),E+=c.subSizes[u]}try{var k=v.getValue().ttmlTimeIsRelative?d/s:0,A=a.parse(b,k,d/s,(d+c.duration)/s,y);w.addCaptions(f,m,A)}catch(t){o.removeExecutedRequestsBeforeTime(),this.remove(),n.error("TTML parser error: "+t.message)}}}(t,d,u):function(t,r){var a,i,o,l=[];for(a=0;a<r.length;a++){var u=r[a];u.cts-=c;var d=Z()+u.cts/s,m=d+u.duration/s;e.buffered.add(d,m);var g=t.slice(u.offset,u.offset+u.size),p=Sa.parseBuffer(g);for(i=0;i<p.boxes.length;i++){var h=p.boxes[i];if(n.debug("VTT box1: "+h.type),"vtte"!==h.type&&"vttc"===h.type){n.debug("VTT vttc boxes.length = "+h.boxes.length);var b={styles:{}};for(o=0;o<h.boxes.length;o++){var y=h.boxes[o];if(n.debug("VTT box2: "+y.type),"payl"===y.type)b.start=u.cts/s,b.end=(u.cts+u.duration)/s,b.data=y.cue_text;else if("sttg"===y.type&&y.settings&&""!==y.settings)try{var v=y.settings.split(" ");b.styles=k.getCaptionStyles(v)}catch(t){}}b&&b.data&&(l.push(b),n.debug("VTT  ".concat(b.start," - ").concat(b.end," :  ").concat(b.data)))}}}l.length>0&&w.addCaptions(f,0,l)}(t,d)}}(t,i,_):b===S.Z.VIDEO?function(t,e){var a,i;if(e.segmentType===z.w.INIT_SEGMENT_TYPE)0===m&&(m=r.getMediaTimescaleFromMoov(t));else if(e.segmentType===z.w.MEDIA_SEGMENT_TYPE){if(0===m)return void n.warn("CEA-608: No timescale for embeddedTextTrack yet");var o=(i=r.getSamplesInfo(t)).lastSequenceNumber,l=Math.trunc(e.start),s=Math.trunc(e.end);if(h[0]||h[1]||function(){for(var t,e=0;e<d.length;e++){if(-1===(t=w.getTrackIdxForId(d[e].id)))return void n.warn("CEA-608: data before track is ready.");var r=B(t);h[e]=new T.Cea608Parser(e+1,{newCue:r},null)}}(),m){if(function(t,e,n,r,a){return null!==t&&null!==e&&null!==r&&null!==a&&(e===t?r!==a:e!==t+n)}(g,o,i.numSequences,p,l))for(a=0;a<h.length;a++)h[a]&&h[a].reset();for(var u=function(t,e){if(0===e.length)return null;for(var n={splits:[],fields:[[],[]]},r=new DataView(t),a=0;a<e.length;a++)for(var i=e[a],o=T.findCea608Nalus(r,i.offset,i.size),l=null,s=0,u=0;u<o.length;u++)for(var c=T.extractCea608DataFromRange(r,o[u]),f=0;f<2;f++)if(c[f].length>0){i.cts!==l?s=0:s+=1;var d=Z();n.fields[f].push([i.cts+d*m,c[f],s]),l=i.cts}return n.fields.forEach((function(t){t.sort((function(t,e){return t[0]===e[0]?t[2]-e[2]:t[0]-e[0]}))})),n}(t,i.sampleList),c=0;c<h.length;c++){var f=u.fields[c],b=h[c];if(b)for(a=0;a<f.length;a++)b.addData(f[a][0]/m,f[a][1])}g=o,p=s}}}(t,i):function(t,n,r){var a,i,o=new DataView(t,0,t.byteLength);i=Sa.Utils.dataViewToString(o,S.Z.UTF8);try{a=G(r).parse(i,0),w.addCaptions(w.getCurrentTrackIdx(),0,a),e.buffered&&e.buffered.add(n.start,n.end)}catch(t){y.error(new H.Z(Q.TIMED_TEXT_ERROR_ID_PARSE_CODE,Q.TIMED_TEXT_ERROR_MESSAGE_PARSE+t.message,i))}}(t,i,_):n.error("No text type defined")}function B(t){return function(e,n,r){var a;(a=_.getTTMLRenderingDiv()?b.createHTMLCaptionsFromScreen(_.getElement(),e,n,r):[{start:e,end:n,data:r.getDisplayText(),styles:{}}])&&w.addCaptions(t,0,a)}}function Z(){return isNaN(e.timestampOffset)?0:e.timestampOffset}function G(t){var e;return t.search(S.Z.VTT)>=0?e=D.get().streaming.text.webvtt.customRenderingEnabled&&A?A:k:(t.search(S.Z.TTML)>=0||t.search(S.Z.STPP)>=0)&&(e=N),e}function Y(t){d.forEach((function(e){var n=w.getTrackIdxForId(e.id);n>=0&&w.deleteCuesFromTrackIdx(n,t.from,t.to)}))}return e={initialize:function(){M||(d=[],f=null,m=0,h=[],g=null,p=null,M=!0,b=lf(O).getInstance(),P.on(R.Z.VIDEO_CHUNK_RECEIVED,F,e),P.on(R.Z.BUFFER_CLEARED,Y,e))},addMediaInfos:function(t,n,r){if(i=i.concat(n),t===S.Z.TEXT&&n[0].isFragmented&&!n[0].isEmbedded){o=r,e.buffered=(0,af.Z)(O).create(),u=E.getTracksFor(S.Z.TEXT,x.id).filter((function(t){return t.isFragmented}));for(var a=E.getCurrentTrackFor(S.Z.TEXT,x.id),l=0;l<u.length;l++)if(u[l]===a){U(l);break}}for(var s=0;s<n.length;s++)j(n[s])},resetMediaInfos:function(){i=[]},getStreamId:function(){return x.id},append:q,abort:function(){},addEmbeddedTrack:function(t){if(M&&t)if(t.id===S.Z.CC1||t.id===S.Z.CC3){for(var e=0;e<d.length;e++)if(d[e].id===t.id)return;d.push(t)}else n.warn("Embedded track "+t.id+" not supported!")},resetEmbedded:function(){P.off(R.Z.VIDEO_CHUNK_RECEIVED,F,e),P.off(R.Z.BUFFER_CLEARED,Y,e),w&&w.deleteAllTextTracks(),M=!1,d=[],h=[null,null],g=null,p=null},getConfig:function(){return{fragmentModel:o,fragmentedTracks:u,videoModel:_}},setCurrentFragmentedTrackIdx:U,remove:function(t,n){void 0===t&&t===n&&(t=e.buffered.start(0),n=e.buffered.end(e.buffered.length-1)),e.buffered.remove(t,n),w.deleteCuesFromTrackIdx(f,t,n)},reset:function(){L(),i=[],r=null}},n=(0,C.Z)(O).getInstance().getLogger(e),r=Ca(O).getInstance(),L(),e}sf.__dashjs_factory_name="TextSourceBuffer";var uf=N.Z.getClassFactory(sf),cf=n(4403);function ff(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return df(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function df(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mf=["text","align","fontSize","id","isd","line","lineAlign","lineHeight","linePadding","position","positionAlign","region","size","snapToLines","vertical"];function gf(t){var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E,_=this.context,w=(0,I.Z)(_).getInstance(),T=t.videoModel,k=t.streamInfo,A=t.settings;function N(t,e,n,r,a,i){var o=0,l=0;t/e>n/r?o=(l=e)/r*n:l=(o=t)/n*r;var s,u,c=0,f=0;return o/l>a?(f=l,c=l*a):(c=o,f=o/a),s=(t-c)/2,u=(e-f)/2,i?{x:s+.1*c,y:u+.1*f,w:.8*c,h:.8*f}:{x:s,y:u,w:c,h:f}}function D(t,e){var n=T.getClientWidth(),r=T.getClientHeight(),a=T.getVideoWidth(),i=T.getVideoHeight(),o=T.getVideoRelativeOffsetTop(),d=T.getVideoRelativeOffsetLeft();if(0!==a&&0!==i){var m=a/i,h=!1;t.isFromCEA608&&(m=3.5/3,h=!0);var y=N.call(this,n,r,a,i,m,h),v=y.w,E=y.h,_=y.x,S=y.y;if(v!=u||E!=c||_!=l||S!=s||e){if(l=_+d,s=S+o,u=v,c=E,f){var k=f.style;k&&(k.left=l+"px",k.top=s+"px",k.width=u+"px",k.height=c+"px",k.zIndex=g&&document[g]||p?b:null,w.trigger(x.Z.CAPTION_CONTAINER_RESIZE))}var A=t.activeCues;if(A)for(var I=A.length,R=0;R<I;++R){var C=A[R];C.scaleCue(C)}}}}function O(t){var e,n,r,a,i,o=u,l=c;if(t.cellResolution){var s=[o/t.cellResolution[0],l/t.cellResolution[1]];if(t.linePadding)for(e in t.linePadding)if(t.linePadding.hasOwnProperty(e)){n=(t.linePadding[e]*s[0]).toString();for(var d=document.getElementsByClassName("spanPadding"),m=0;m<d.length;m++)d[m].style.cssText=d[m].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n),d[m].style.cssText=d[m].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(t.fontSize){for(e in t.fontSize)if(t.fontSize.hasOwnProperty(e)){"%"===t.fontSize[e][0]?r=t.fontSize[e][1]/100:"c"===t.fontSize[e][0]&&(r=t.fontSize[e][1]),n=(r*s[1]).toString(),i="defaultFontSize"!==e?document.getElementsByClassName(e):document.getElementsByClassName("paragraph");for(var g=0;g<i.length;g++)i[g].style.cssText=i[g].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(t.lineHeight)for(e in t.lineHeight)if(t.lineHeight.hasOwnProperty(e)){"%"===t.lineHeight[e][0]?a=t.lineHeight[e][1]/100:"c"===t.fontSize[e][0]&&(a=t.lineHeight[e][1]),n=(a*s[1]).toString(),i=document.getElementsByClassName(e);for(var p=0;p<i.length;p++)i[p].style.cssText=i[p].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}}}if(t.isd){var h=document.getElementById(t.cueID);h&&f.removeChild(h),P(t)}}function z(t,e){var n=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/,r=/^#(.*)$/;if(n.test(e)){var a=n.exec(e),i=parseInt(a[4],10)-1;return"data:image/png;base64,"+btoa(t.images[i])}if(r.test(e)){var o=r.exec(e)[1];return"data:image/png;base64,"+t.embeddedImages[o]}return e}function P(t){if(f){at.call(this);var e=document.createElement("div");f.appendChild(e),h=(0,cf.renderHTML)(t.isd,e,(function(e){return z(t,e)}),f.clientHeight,f.clientWidth,A.get().streaming.text.imsc.displayForcedOnlyMode,(function(t){n.info("renderCaption :",t)}),h,A.get().streaming.text.imsc.enableRollUp),e.id=t.cueID,w.trigger(x.Z.CAPTION_RENDERED,{captionDiv:e,currentTrackIdx:o})}}function M(t,e){return!!e&&e.endTime>=t.startTime}function L(t,e){return!!A.get().streaming.text.extendSegmentedCues&&!!function(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];if(JSON.stringify(t[a])!==JSON.stringify(e[a]))return!1}return!0}(e,t,mf)&&(e.endTime=Math.max(e.endTime,t.endTime),!0)}function j(t,e){e&&e.forEach((function(e){e.kind&&"image"===e.kind&&(e.src=z(t,e.src)),j(t,e.contents)}))}function F(t,e,r){var a=W(t),i=A.get().streaming.text.dispatchForManualRendering;if(a&&Array.isArray(r)&&0!==r.length)for(var o=0;o<r.length;o++){var l=null,s=r[o];a.cellResolution=s.cellResolution,a.isFromCEA608=s.isFromCEA608,isNaN(s.start)||isNaN(s.end)||(i?l=U(s,e):H(s)&&f?l=Z(s,e,a):s.data&&(l=G(s,e,a)));try{if(l){if(!$(a,l))if(A.get().streaming.text.webvtt.customRenderingEnabled)a.manualCueList||(a.manualCueList=[]),a.manualCueList.push(l);else{var u=void 0;a.cues&&0!==a.cues.length&&(u=a.cues[a.cues.length-1]),M(l,u)?L(l,u)||(u.isd&&(u.onexit=function(){}),a.mode!==S.Z.TEXT_DISABLED&&a.addCue(l)):a.mode!==S.Z.TEXT_DISABLED&&a.addCue(l)}var c=A.get().streaming.buffer.bufferToKeep;tt(a,0,T.getTime()-c)}else n.error("Impossible to display subtitles. You might have missed setting a TTML rendering div via player.attachTTMLRenderingDiv(TTMLRenderingDiv)")}catch(t){throw et(a),a.addCue(l),t}}}function U(t,e){var n=Y(t,e);return n.onenter=function(){H(t)&&E&&E.cueID!==n.cueID&&B(E),delete n.type,E=n,q(n)},n.onexit=function(){B(n),E=null},n}function q(t){w.trigger(x.Z.CUE_ENTER,t)}function B(t){w.trigger(x.Z.CUE_EXIT,{cueID:t.cueID})}function Z(t,e,r){var a=this,i=Y(t,e);return f.style.left=l+"px",f.style.top=s+"px",f.style.width=u+"px",f.style.height=c+"px",i.onenter=function(){var t=this;r.mode===S.Z.TEXT_SHOWING&&(this.isd?(v?requestAnimationFrame((function(){return P(t)})):P(this),n.debug("Cue enter id:"+this.cueID)):(f.appendChild(this.cueHTMLElement),O.call(a,this),w.trigger(x.Z.CAPTION_RENDERED,{captionDiv:this.cueHTMLElement,currentTrackIdx:o})))},i.onexit=function(){if(f)for(var t=f.childNodes,e=0;e<t.length;++e)t[e].id===this.cueID&&(n.debug("Cue exit id:"+t[e].id),f.removeChild(t[e]),--e)},i}function G(t,e,r){var a=Y(t,e);if(a.isActive=!1,t.styles)try{void 0!==t.styles.align&&"align"in a&&(a.align=t.styles.align),void 0!==t.styles.line&&"line"in a&&(a.line=t.styles.line),void 0!==t.styles.snapToLines&&"snapToLines"in a&&(a.snapToLines=t.styles.snapToLines),void 0!==t.styles.position&&"position"in a&&(a.position=t.styles.position),void 0!==t.styles.size&&"size"in a&&(a.size=t.styles.size)}catch(t){n.error(t)}return a.onenter=function(){r.mode===S.Z.TEXT_SHOWING&&w.trigger(x.Z.CAPTION_RENDERED,{currentTrackIdx:o})},a}function H(t){return"html"===t.type}function Y(t,e){return H(t)?function(t,e){var n=new r(t.start+e,t.end+e,"");return n.cueHTMLElement=t.cueHTMLElement,n.isd=t.isd,n.images=t.images,n.embeddedImages=t.embeddedImages,n.cueID=t.cueID,n.scaleCue=O.bind(self),n.cellResolution=t.cellResolution,n.lineHeight=t.lineHeight,n.linePadding=t.linePadding,n.fontSize=t.fontSize,n.isd&&j(n,n.isd.contents),n}(t,e):function(t,e){var n=new r(t.start-e,t.end-e,t.data);return n.cueID="".concat(n.startTime,"_").concat(n.endTime),n}(t,e)}function V(t){if(d)for(var e=d.childNodes,n=0;n<e.length;++n)e[n].id===t.cueID&&(d.removeChild(e[n]),--n)}function K(){var t,e=[],n=ff(T.getTextTracks());try{for(n.s();!(t=n.n()).done;){var r=t.value;r.manualMode===S.Z.TEXT_SHOWING&&e.push(r)}}catch(t){n.e(t)}finally{n.f()}return e}function W(t){return t>=0&&a[t]?T.getTextTrack(a[t].kind,a[t].id,a[t].lang,a[t].isTTML,a[t].isEmbedded):null}function X(t){var e=this;if(t!==o){var n=W(o=t);Q.call(this,n),m&&(clearInterval(m),m=null),n&&"html"===n.renderingType&&(D.call(this,n,!0),window.ResizeObserver?(y=new window.ResizeObserver((function(){D.call(e,n,!0)}))).observe(T.getElement()):m=setInterval(D.bind(this,n),500))}}function Q(t){at.call(this),t&&"html"===t.renderingType?nt.call(this):rt.call(this)}function $(t,e){if(!t.cues)return!1;for(var n=0;n<t.cues.length;n++)if(t.cues[n].startTime===e.startTime&&t.cues[n].endTime===e.endTime)return!0;return!1}function J(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return!!t&&(isNaN(e)||(r?t.startTime:t.endTime)>=e)&&(isNaN(n)||(r?t.endTime:t.startTime)<=n)}function tt(t,e,n){var r,a;if(!(n<e)&&t&&(t.cues||t.manualCueList)){var i=t.cues&&t.cues.length>0?"native":"custom",o="native"===i?t.cues:t.manualCueList;if(!o||0===o.length)return;for(var l=o.length-1;l>=0;l--)!J(o[l],e,n,!0)||(r=o[l],a=void 0,a=T.getTime(),r.startTime>=a&&r.endTime<=a)||("native"===i?t.removeCue(o[l]):(V(o[l]),delete t.manualCueList[l]))}}function et(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t&&(t.cues||t.manualCueList)){var a=t.cues&&t.cues.length>0?"native":"custom",i="native"===a?t.cues:t.manualCueList;if(!i||0===i.length)return;for(var o=i.length-1;o>=0;o--)J(i[o],e,n,r)&&("native"===a?(i[o].onexit&&i[o].onexit(),t.removeCue(i[o])):(V(i[o]),delete t.manualCueList[o]))}}function nt(){var t=document.getElementById("native-cue-style");if(!t){(t=document.createElement("style")).id="native-cue-style",document.head.appendChild(t);var e=t.sheet,r=T.getElement();try{r&&(r.id?e.insertRule("#"+r.id+"::cue {background: transparent}",0):0!==r.classList.length?e.insertRule("."+r.className+"::cue {background: transparent}",0):e.insertRule("video::cue {background: transparent}",0))}catch(t){n.info(""+t.message)}}}function rt(){var t=document.getElementById("native-cue-style");t&&document.head.removeChild(t)}function at(){if(f)for(;f.firstChild;)f.removeChild(f.firstChild)}return e={initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(r=window.VTTCue||window.TextTrackCue,a=[],i=[],o=-1,l=0,s=0,u=0,c=0,f=null,d=null,m=null,p=!1,b=2147483647,h=null,v="requestAnimationFrame"in window,void 0!==document.fullscreenElement?g="fullscreenElement":void 0!==document.webkitIsFullScreen?g="webkitIsFullScreen":document.msFullscreenElement?g="msFullscreenElement":document.mozFullScreen&&(g="mozFullScreen"))},getStreamId:function(){return k.id},addTextTrack:function(t){a.push(t)},addCaptions:F,createTracks:function(){var t=A.get().streaming.text.dispatchForManualRendering;a.sort((function(t,e){return t.index-e.index})),f=T.getTTMLRenderingDiv(),d=T.getVttRenderingDiv();for(var e,n,r,l,s,u,c=-1,m=0;m<a.length;m++){var g=(e=a[m],n=void 0,r=void 0,l=void 0,s=void 0,u=void 0,n=e.kind,r=void 0!==e.id?e.id:e.lang,l=e.lang,s=e.isTTML,u=e.isEmbedded,T.addTextTrack(n,r,l,s,u));i.push(g),a[m].defaultTrack&&(g.default=!0,c=m);var p=W(m);p&&(p.mode=S.Z.TEXT_SHOWING,f&&(a[m].isTTML||a[m].isEmbedded)?p.renderingType="html":p.renderingType="default"),F(m,0,a[m].captionData),w.trigger(x.Z.TEXT_TRACK_ADDED)}if(X.call(this,c),c>=0){w.on(x.Z.PLAYBACK_METADATA_LOADED,(function t(){var e=W(c);e&&"html"===e.renderingType&&D.call(this,e,!0),w.off(x.Z.PLAYBACK_METADATA_LOADED,t,this)}),this);for(var h=0;h<a.length;h++){var b=W(h);b&&(b.mode=h!==c||t?S.Z.TEXT_HIDDEN:S.Z.TEXT_SHOWING,b.manualMode=h===c?S.Z.TEXT_SHOWING:S.Z.TEXT_HIDDEN)}}w.trigger(R.Z.TEXT_TRACKS_QUEUE_INITIALIZED,{index:o,tracks:a,streamId:k.id})},getCurrentTrackIdx:function(){return o},setCurrentTrackIdx:X,getTrackIdxForId:function(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].id===t){e=n;break}return e},getCurrentTrackInfo:function(){return a[o]},setModeForTrackIdx:function(t,e){var n=W(t);n&&n.mode!==e&&(n.mode=e),n&&n.manualMode!==e&&(n.manualMode=e)},deleteCuesFromTrackIdx:function(t,e,n){var r=W(t);r&&et(r,e,n)},deleteAllTextTracks:function(){for(var t=i?i.length:0,e=0;e<t;e++){var n=W(e);n&&et.call(this,n,k.start,k.start+k.duration,!1)}i=[],a=[],m&&(clearInterval(m),m=null),y&&T&&(y.unobserve(T.getElement()),y=null),o=-1,at.call(this)},manualCueProcessing:function(t){var e=K();if(e&&e.length>0){var n=e[0].manualCueList;n&&n.length>0&&n.forEach((function(e){e.startTime<=t&&e.endTime>=t&&!e.isActive?(e.isActive=!0,A.get().streaming.text.dispatchForManualRendering?q(e):WebVTT.processCues(window,[e],d,e.cueID)):e.isActive&&(e.startTime>t||e.endTime<t)&&(e.isActive=!1,A.get().streaming.text.dispatchForManualRendering?B(e):V(e))}))}},disableManualTracks:function(){var t=K();if(t&&t.length>0){var e=t[0].manualCueList;e&&e.length>0&&e.forEach((function(t){if(t.isActive)if(t.isActive=!1,A.get().streaming.text.dispatchForManualRendering)B(t);else if(d)for(var e=d.childNodes,n=0;n<e.length;++n)e[n].id===t.cueID&&(d.removeChild(e[n]),--n)}))}}},n=(0,C.Z)(_).getInstance().getLogger(e),e}gf.__dashjs_factory_name="TextTracks";var pf=N.Z.getClassFactory(gf);function hf(){var t,e,n,r,a,i,o=this.context;function l(t){var e=t.split(":"),n=e.length-1;return t=60*parseInt(e[n-1],10)+parseFloat(e[n]),2===n&&(t+=3600*parseInt(e[0],10)),t}function s(t){var e=t.split(r),n=e[1].split(i);return n.shift(),e[1]=n[0],n.shift(),{cuePoints:e,styles:u(n)}}function u(t){var e={};return t.forEach((function(t){if(t.split(/:/).length>1){var n=t.split(/:/)[1],r=!1;n&&-1!=n.search(/%/)&&(r=!0,n=parseInt(n.replace(/%/,""),10)),(t.match(/align/)||t.match(/A/))&&(e.align=n),(t.match(/line/)||t.match(/L/))&&(e.line="auto"===n?n:parseInt(n,10),r&&(e.snapToLines=!1)),(t.match(/position/)||t.match(/P/))&&(e.position=n),(t.match(/size/)||t.match(/S/))&&(e.size=n)}})),e}function c(t,e){for(var n,a=e,i="",o="";""!==t[a]&&a<t.length;)a++;if((n=a-e)>1)for(var l=0;l<n;l++){if((o=t[e+l]).match(r)){i="";break}i+=o,l!==n-1&&(i+="\n")}else(o=t[e]).match(r)||(i=o);return i}return t={parse:function(t){var i,o,u=[];if(!t)return u;i=(t=t.split(n)).length,o=-1;for(var f=0;f<i;f++){var d=t[f];if(d.length>0&&"WEBVTT"!==d&&d.match(r)){var m=s(d),g=m.cuePoints,p=m.styles,h=c(t,f+1),b=l(g[0].replace(a,"")),y=l(g[1].replace(a,""));!isNaN(b)&&!isNaN(y)&&b>=o&&y>b?""!==h?(o=b,u.push({start:b,end:y,data:h,styles:p})):e.error("Skipping cue due to empty/malformed cue text"):e.error("Skipping cue due to incorrect cue timing")}}return u},getCaptionStyles:u},e=(0,C.Z)(o).getInstance().getLogger(t),n=/(?:\r\n|\r|\n)/gm,r=/-->/,a=/(^[\s]+|[\s]+$)/g,i=/\s\b/g,t}hf.__dashjs_factory_name="VTTParser";var bf=N.Z.getSingletonFactory(hf);function yf(){var t,e;return t={parse:function(t){var n=[];return e.oncue=function(t){t.start=t.startTime,t.end=t.endTime,t.data=t.text,t.styles={align:t.align,line:t.line,position:t.position,size:t.size},n.push(t)},e.parse(t),n}},function(){try{window&&window.WebVTT&&window.WebVTT.Parser&&(e=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()))}catch(t){}}(),t}yf.__dashjs_factory_name="VttCustomRenderingParser";var vf=N.Z.getSingletonFactory(yf);function Ef(){var t,e,n=this.context,r=(0,I.Z)(n).getInstance(),a=0;return t={parse:function(t,n,i,o,l){var s,u,c,f="",d=[],m={},g={},p="",h="",b={onOpenTag:function(t,n,a){if(a[" imagetype"]&&!a[" imageType"]&&(r.trigger(x.Z.CONFORMANCE_VIOLATION,{level:ui.LEVELS.ERROR,event:ui.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE}),a[" imageType"]=a[" imagetype"]),"image"===n&&("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===t||"http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"===t)){if(!a[" imageType"]||"PNG"!==a[" imageType"].value)return void e.warn("smpte-tt imageType != PNG. Discarded");p=a["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){p&&(g[p]=h.trim()),h="",p=""},onText:function(t){p&&(h+=t)}};if(!t)throw f="no ttml data to parse",new Error(f);m.data=t,r.trigger(R.Z.TTML_TO_PARSE,m);var y=(0,cf.fromXML)(m.data,(function(t){f=t}),b);r.trigger(R.Z.TTML_PARSED,{ttmlString:m.data,ttmlDoc:y});var v,E=y.getMediaTimeEvents();for(c=0;c<E.length;c++){var _=(0,cf.generateISD)(y,E[c],(function(t){f=t}));_.contents.some((function(t){return t.contents.length}))&&(s=E[c]+n)<(u=E[c+1]+n)&&d.push({start:s,end:u,type:"html",cueID:(v=void 0,v="cue_TTML_"+a,a++,v),isd:_,images:l,embeddedImages:g})}if(""!==f)throw e.error(f),new Error(f);return d}},e=(0,C.Z)(n).getInstance().getLogger(t),t}Ef.__dashjs_factory_name="TTMLParser";var _f=N.Z.getSingletonFactory(Ef);function wf(t){return wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(t)}function Tf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tf(Object(n),!0).forEach((function(e){kf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kf(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==wf(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wf(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Af(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return If(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function If(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Rf(t){var e,n,r,a=this.context,i=(0,I.Z)(a).getInstance(),o=zt(a).getInstance(),l=t.adapter,s=t.baseURLController,u={ERROR:"error",LOADED:"loaded",UNLOADED:"unloaded"};function c(t,e){var n,a,i=!1;if(s.resolve()){var c=l.getVoRepresentations(t);c&&c.length>0&&(n=s.resolve(c[0].path).url)}var f=t.essentialProperties.filter((function(t){return t.schemeIdUri&&t.schemeIdUri===S.Z.FONT_DOWNLOAD_DVB_SCHEME})),d=t.supplementalProperties.filter((function(t){return t.schemeIdUri&&t.schemeIdUri===S.Z.FONT_DOWNLOAD_DVB_SCHEME}));f.length>0?(i=!0,a=f):a=d,a.forEach((function(a){if(function(t){return!(!(t.value&&1===parseInt(t.value)&&t.dvbUrl&&t.dvbUrl.length>0&&t.dvbFontFamily&&t.dvbFontFamily.length>0&&t.dvbMimeType)||t.dvbMimeType!==S.Z.OFF_MIMETYPE&&t.dvbMimeType!==S.Z.WOFF_MIMETYPE)}(a)){var l=(s=a.dvbUrl,c=n,o.isPathAbsolute(s)?s:o.isRelative(s)?c?o.resolve(s,c):o.resolve(s):s);r.push({fontFamily:a.dvbFontFamily,url:l,mimeType:a.dvbMimeType,trackId:t.id,streamId:e,isEssential:i,status:u.UNLOADED,fontFace:new FontFace(a.dvbFontFamily,"url(".concat(l,")"),{display:"swap"})})}var s,c}))}function f(t,e){var n=r[t];r[t]=Sf(Sf({},n),{},{status:e})}function d(){r=[]}return e={addFontsFromTracks:function(t,e){if(t&&Array.isArray(t)&&e)for(var n=0;n<t.length;n++)c(t[n],e)},downloadFonts:function(){for(var t=function(t){var e=r[t];document.fonts.add(e.fontFace),i.trigger(x.Z.DVB_FONT_DOWNLOAD_ADDED,e),e.fontFace.load().then((function(){f(t,u.LOADED),i.trigger(x.Z.DVB_FONT_DOWNLOAD_COMPLETE,e)}),(function(r){f(t,u.ERROR),n.debug("Font download error: ",r),i.trigger(x.Z.DVB_FONT_DOWNLOAD_FAILED,e)}))},e=0;e<r.length;e++)t(e)},getFonts:function(){return r},getFontsForTrackId:function(t){return r.filter((function(e){return e.trackId&&e.trackId===t}))},reset:function(){!function(){var t,e=Af(r);try{for(e.s();!(t=e.n()).done;){var a=t.value,i=document.fonts.delete(a.fontFace);n.debug("Removal of fontFamily: ".concat(a.fontFamily," was ").concat(i?"successful":"unsuccessful"))}}catch(t){e.e(t)}finally{e.f()}}(),d()}},n=(0,C.Z)(a).getInstance().getLogger(e),d(),e}Rf.__dashjs_factory_name="DVBFonts";var Nf=N.Z.getClassFactory(Rf);function Cf(t){var e,n,r,a,i,o,l,s,u,c,f,d,m,g,p=this.context,h=t.adapter,b=t.errHandler,y=t.manifestModel,v=t.mediaController,E=t.baseURLController,_=t.videoModel,w=t.settings;function T(t){if(g.error("Could not download ".concat(t.isEssential?"an essential":"a"," font - fontFamily: ").concat(t.fontFamily,", url: ").concat(t.url)),t.isEssential){var e=a[t.streamId].getTrackIdxForId(t.trackId);a[t.streamId].setModeForTrackIdx(e,S.Z.TEXT_DISABLED)}}function k(t){if(g.debug("Successfully downloaded ".concat(t.isEssential?"an essential":"a"," font - fontFamily: ").concat(t.fontFamily,", url: ").concat(t.url)),t.isEssential){var e=a[t.streamId].getTrackIdxForId(t.trackId);e===a[t.streamId].getCurrentTrackIdx()?a[t.streamId].setModeForTrackIdx(e,S.Z.TEXT_SHOWING):a[t.streamId].setModeForTrackIdx(e,S.Z.TEXT_HIDDEN)}}function A(t){var e=t.tracks,r=t.index,i=t.streamId;if(!1===w.get().streaming.text.defaultEnabled&&!O()||d)z(i,-1);else{var o=v.getCurrentTrackFor(S.Z.TEXT,i);if(o){var l={lang:o.lang,role:o.roles[0],index:o.index,codec:o.codec,accessibility:o.accessibility[0]};e.some((function(t,e){if(v.matchSettings(l,t))return z(i,e),r=e,!0}))}u=!1}n[i].lastEnabledIndex=r,s.trigger(x.Z.TEXT_TRACKS_ADDED,{enabled:O(),index:r,tracks:e,streamId:i}),f=!0,m.addFontsFromTracks(e,i),m.getFonts().forEach((function(t){if(t.isEssential){var e=a[t.streamId].getTrackIdxForId(t.trackId);a[t.streamId].setModeForTrackIdx(e,S.Z.TEXT_DISABLED)}})),m.downloadFonts()}function N(t){try{var e=t.streamId;if(!a[e]||isNaN(t.time))return;a[e].manualCueProcessing(t.time)}catch(t){}}function D(t){try{var e=t.streamId;if(!a[e])return;a[e].disableManualTracks()}catch(t){}}function O(){var t=!0;return u&&!c&&(t=!1),t}function z(t,e){(u=-1===e)&&v&&v.saveTextSettingsDisabled();var n=P(t);if(n!==e&&a[t]){a[t].disableManualTracks();var i=a[t].getCurrentTrackInfo(),o=i?_.getTextTrack(i.kind,i.id,i.lang,i.isTTML,i.isEmbedded):null;o&&o.mode!==S.Z.TEXT_DISABLED&&a[t].setModeForTrackIdx(n,S.Z.TEXT_HIDDEN),a[t].setCurrentTrackIdx(e),i=a[t].getCurrentTrackInfo();var l=w.get().streaming.text.dispatchForManualRendering;i&&!l&&i.mode!==S.Z.TEXT_DISABLED&&a[t].setModeForTrackIdx(e,S.Z.TEXT_SHOWING),i&&i.isFragmented&&!i.isEmbedded?function(t,e,n){if(r[t])for(var i=r[t].getConfig().fragmentedTracks,o=0;o<i.length;o++){var l=i[o];if(e.lang===l.lang&&(l.id?e.id===l.id:e.index===l.index)){var u=v.getCurrentTrackFor(S.Z.TEXT,t);(l.id?u.id!==l.id:u.index!==l.index)?(a[t].deleteCuesFromTrackIdx(n),r[t].setCurrentFragmentedTrackIdx(o)):-1===n&&s.trigger(R.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,{},{streamId:t,mediaType:S.Z.TEXT})}}}(t,i,n):i&&!i.isFragmented&&function(t,e){s.trigger(R.Z.SET_NON_FRAGMENTED_TEXT,{currentTrackInfo:e},{streamId:t,mediaType:S.Z.TEXT})}(t,i),v.setTrack(i)}}function P(t){return a[t].getCurrentTrackIdx()}function M(){r={},a={},n={},u=!0,f=!1,d=!1}return e={deactivateStream:function(t){if(t){var e=t.id;r[e]&&r[e].resetMediaInfos(),a[e]&&a[e].deleteAllTextTracks()}},initialize:function(){m=Nf(p).create({adapter:h,baseURLController:E}),s.on(R.Z.TEXT_TRACKS_QUEUE_INITIALIZED,A,e),s.on(R.Z.DVB_FONT_DOWNLOAD_FAILED,T,e),s.on(R.Z.DVB_FONT_DOWNLOAD_COMPLETE,k,e),w.get().streaming.text.webvtt.customRenderingEnabled&&(s.on(R.Z.PLAYBACK_TIME_UPDATED,N,e),s.on(R.Z.PLAYBACK_SEEKING,D,e))},initializeForStream:function(t){var e=t.id,s=pf(p).create({videoModel:_,settings:w,streamInfo:t});s.initialize(),a[e]=s;var u=uf(p).create({errHandler:b,adapter:h,dvbFonts:m,manifestModel:y,mediaController:v,videoModel:_,textTracks:s,vttParser:i,vttCustomRenderingParser:o,ttmlParser:l,streamInfo:t,settings:w});u.initialize(),r[e]=u,n[e]={},n[e].lastEnabledIndex=-1},createTracks:function(t){var e=t.id;a[e]&&a[e].createTracks()},getTextSourceBuffer:function(t){var e=t.id;if(r&&r[e])return r[e]},getAllTracksAreDisabled:function(){return u},addEmbeddedTrack:function(t,e){var n=t.id;r[n]&&r[n].addEmbeddedTrack(e)},enableText:function(t,e){return(0,Rt.PS)(e,"boolean"),O()!==e&&(e&&z(t,n[t].lastEnabledIndex),e||(n[t].lastEnabledIndex=P(t),f?z(t,-1):d=!0)),!0},isTextEnabled:O,setTextTrack:z,getCurrentTrackIdx:P,enableForcedTextStreaming:function(t){return(0,Rt.PS)(t,"boolean"),c=t,!0},addMediaInfosToBuffer:function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t.id;r[i]&&r[i].addMediaInfos(e,n,a)},reset:function(){m.reset(),M(),s.off(R.Z.TEXT_TRACKS_QUEUE_INITIALIZED,A,e),s.off(R.Z.DVB_FONT_DOWNLOAD_FAILED,T,e),s.off(R.Z.DVB_FONT_DOWNLOAD_COMPLETE,k,e),w.get().streaming.text.webvtt.customRenderingEnabled&&(s.off(R.Z.PLAYBACK_TIME_UPDATED,N,e),s.off(R.Z.PLAYBACK_SEEKING,D,e)),Object.keys(r).forEach((function(t){r[t].resetEmbedded(),r[t].reset()}))}},c=!1,f=!1,d=!1,i=bf(p).getInstance(),o=vf(p).getInstance(),l=_f(p).getInstance(),s=(0,I.Z)(p).getInstance(),g=(0,C.Z)(p).getInstance().getLogger(e),M(),e}Cf.__dashjs_factory_name="TextController";var xf=N.Z.getClassFactory(Cf);function Df(t){t=t||{};var e,n,r,a,i,o,l=this.context,s=(0,C.Z)(l).getInstance(),u=t.settings,c=(0,I.Z)(l).getInstance();function f(){return navigator&&navigator.connection&&!isNaN(navigator.connection.downlink)&&navigator.connection.downlink>0?1e3*navigator.connection.downlink:NaN}function d(t,e,n,r){var a=Math.pow(.5,n/r.fast);t.fastEstimate=(1-a)*e+a*t.fastEstimate;var i=Math.pow(.5,n/r.slow);t.slowEstimate=(1-i)*e+i*t.slowEstimate,t.totalWeight+=n}function m(){e={},n={},r={},a={}}var g={addEntry:function(t,l){try{if(!(t&&l&&l.trace&&l.trace.length))return;!function(t){e[t]=e[t]||[],n[t]=n[t]||[],r[t]=r[t]||{fastEstimate:0,slowEstimate:0,totalWeight:0},a[t]=a[t]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}(t);var s=l.tresponse.getTime()-l.trequest.getTime()||1,m=function(t,e){return t._fileLoaderType&&t._fileLoaderType===S.Z.FILE_LOADER_TYPES.FETCH?function(t){var e=t.trace.reduce((function(t,e){return t+e.b[0]}),0),n=t.trace.reduce((function(t,e){return t+e.d}),0),r=NaN;return u.get().streaming.abr.throughput.useNetworkInformationApi.fetch&&(r=f()),isNaN(r)&&(r=Math.round(8*e/n)),{downloadedBytes:e,value:r,downloadTimeInMs:n}}(t):function(t,e){var n=NaN,r=NaN,a=!1;if(u.get().streaming.abr.throughput.useResourceTimingApi&&t._resourceTimingValues)n=t._resourceTimingValues.transferSize,r=t._resourceTimingValues.responseEnd-t._resourceTimingValues.responseStart,a=!0;else{if(t.trace.length<=1)return{throughput:NaN,downloadTimeInMs:NaN};n=t.trace.reduce((function(t,e){return t+e.b[0]}),0)-t.trace[0].b[0],r=Math.max(t.trace.reduce((function(t,e){return t+e.d}),0)-t.trace[0].d,1)}var i=NaN;if(!a&&u.get().streaming.abr.throughput.useNetworkInformationApi.xhr&&(i=f()),isNaN(i)){var o=u.get().streaming.abr.throughput.useDeadTimeLatency?r:r+e;i=Math.round(8*n/o)}return{downloadedBytes:n,value:i,downloadTimeInMs:r}}(t,e)}(l,s);if(m.latencyInMs=s,isNaN(m.value)||!isFinite(m.value))return;if(l.cmsd){var g=l.cmsd.dynamic&&l.cmsd.dynamic.etp?l.cmsd.dynamic.etp:null;if(g){var p=u.get().streaming.cmsd.abr.etpWeightRatio;p>0&&p<=1&&(m.value=m.value*(1-p)+g*p)}}if(function(t,e,n){return u.get().streaming.abr.throughput.useResourceTimingApi&&n._resourceTimingValues?0===n._resourceTimingValues.transferSize&&n._resourceTimingValues.decodedBodySize>0:!isNaN(e)&&(t===S.Z.VIDEO?e<u.get().streaming.cacheLoadThresholds[S.Z.VIDEO]:t===S.Z.AUDIO?e<u.get().streaming.cacheLoadThresholds[S.Z.AUDIO]:void 0)}(t,l._tfinish.getTime()-l.trequest.getTime(),l))return void o.debug("".concat(t," Assuming segment ").concat(l.url," came from cache, ignoring it for throughput calculation"));o.debug("Added throughput entry for ".concat(t,": ").concat(m.value," kbit/s")),m.serviceLocation=l._serviceLocation,e[t].push(m),n[t].push({value:s}),function(t){e[t].length>u.get().streaming.abr.throughput.sampleSettings.maxMeasurementsToKeep&&e[t].shift(),n[t].length>u.get().streaming.abr.throughput.sampleSettings.maxMeasurementsToKeep&&n[t].shift()}(t),c.trigger(x.Z.THROUGHPUT_MEASUREMENT_STORED,{throughputValues:m}),l.type!==z.w.MPD_TYPE&&(d(r[t],m.value,u.get().streaming.abr.throughput.ewma.weightDownloadTimeMultiplicationFactor*m.downloadTimeInMs,i.bandwidthHalfLife),d(a[t],s,1,i.latencyHalfLife))}catch(t){o.error(t)}},getThroughputDict:function(t){return t?e[t]:e},getEwmaThroughputDict:function(t){return t?r[t]:r},getEwmaLatencyDict:function(t){return t?a[t]:a},getEwmaHalfLife:function(){return i},getLatencyDict:function(t){return t?n[t]:n},reset:m};return o=s.getLogger(g),i={bandwidthHalfLife:{fast:u.get().streaming.abr.throughput.ewma.throughputFastHalfLifeSeconds,slow:u.get().streaming.abr.throughput.ewma.throughputSlowHalfLifeSeconds},latencyHalfLife:{fast:u.get().streaming.abr.throughput.ewma.latencyFastHalfLifeCount,slow:u.get().streaming.abr.throughput.ewma.latencySlowHalfLifeCount}},m(),g}Df.__dashjs_factory_name="ThroughputModel";var Of=N.Z.getClassFactory(Df);function zf(){var t,e,n,r=this.context,a=(0,I.Z)(r).getInstance();function i(){performance.clearResourceTimings()}function o(e){e.metric!==A.HTTP_REQUEST||!e.value||e.value.type!==z.w.MPD_TYPE&&(e.value.type!==z.w.MEDIA_SEGMENT_TYPE||e.mediaType!==S.Z.AUDIO&&e.mediaType!==S.Z.VIDEO)||t.addEntry(e.mediaType,e.value)}function l(r,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN,l=null,b=t.getEwmaHalfLife(),y=null,v=!0;switch(i||(i=n.get().streaming.abr.throughput.averageCalculationMode),r){case S.Z.THROUGHPUT_TYPES.BANDWIDTH:l=i===S.Z.THROUGHPUT_CALCULATION_MODES.EWMA?t.getEwmaThroughputDict(a):t.getThroughputDict(a),y=b.bandwidthHalfLife,v=!0,o=isNaN(o)?e.getIsDynamic()?n.get().streaming.abr.throughput.sampleSettings.live:n.get().streaming.abr.throughput.sampleSettings.vod:o;break;case S.Z.THROUGHPUT_TYPES.LATENCY:l=i===S.Z.THROUGHPUT_CALCULATION_MODES.EWMA?t.getEwmaLatencyDict(a):t.getLatencyDict(a),y=b.latencyHalfLife,v=!1,o=isNaN(o)?n.get().streaming.abr.throughput.sampleSettings.averageLatencySampleAmount:o}if(!l||0===l.length)return NaN;switch(i){case S.Z.THROUGHPUT_CALCULATION_MODES.ARITHMETIC_MEAN:return u(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.BYTE_SIZE_WEIGHTED_ARITHMETIC_MEAN:return c(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.DATE_WEIGHTED_ARITHMETIC_MEAN:return f(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.HARMONIC_MEAN:return d(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.BYTE_SIZE_WEIGHTED_HARMONIC_MEAN:return m(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.DATE_WEIGHTED_HARMONIC_MEAN:return g(l,s(l,o,r));case S.Z.THROUGHPUT_CALCULATION_MODES.EWMA:return p(l,y,v);case S.Z.THROUGHPUT_CALCULATION_MODES.ZLEMA:return h(l,s(l,o,r))}}function s(t,e,r){if(t){if(e>=t.length)e=t.length;else if(r===S.Z.THROUGHPUT_TYPES.BANDWIDTH&&n.get().streaming.abr.throughput.sampleSettings.enableSampleSizeAdjustment)for(var a=1;a<e;++a){var i=t[t.length-a].value/t[t.length-a-1].value;if((i>=n.get().streaming.abr.throughput.sampleSettings.increaseScale||i<=n.get().streaming.abr.throughput.sampleSettings.decreaseScale)&&(e+=1)===t.length)break}}else e=0;return e}function u(t,e){var n=t;return 0!==e&&n&&0!==n.length?(n=n.slice(-e)).reduce((function(t,e){return t+e.value}),0)/n.length:NaN}function c(t,e){var n=t;if(0===e||!n||0===n.length)return NaN;n=n.slice(-e);var r=0;return n.reduce((function(t,e){var n=Math.sqrt(e.downloadedBytes);return r+=n,t+e.value*n}),0)/r}function f(t,e){var n=t;if(0===e||!n||0===n.length)return NaN;n=n.slice(-e);var r=0;return n.reduce((function(t,e,n){var a=n+1;return r+=a,t+e.value*a}),0)/r}function d(t,e){var n=t;if(0===e||!n||0===n.length)return NaN;var r=(n=n.slice(-e)).reduce((function(t,e){return t+1/e.value}),0);return n.length/r}function m(t,e){var n=t;if(0===e||!n||0===n.length)return NaN;n=n.slice(-e);var r=0,a=n.reduce((function(t,e){var n=Math.sqrt(e.downloadedBytes);return r+=n,t+1/e.value*n}),0);return r/a}function g(t,e){var n=t;if(0===e||!n||0===n.length)return NaN;n=n.slice(-e);var r=0,a=n.reduce((function(t,e,n){var a=n+1;return r+=a,t+1/e.value*a}),0);return r/a}function p(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||t.totalWeight<=0)return NaN;var r=t.fastEstimate/(1-Math.pow(.5,t.totalWeight/e.fast)),a=t.slowEstimate/(1-Math.pow(.5,t.totalWeight/e.slow));return n?Math.min(r,a):Math.max(r,a)}function h(t,e){if(0===e||!t||0===t.length)return NaN;for(var n=t.slice(-e).map((function(t){return t.value})),r=2/(n.length+1),a=n[n.length-1],i=n[n.length-1],o=0;o<n.length;o++)i=r*(a=r*n[o]+(1-r)*a)+(1-r)*i;return i}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN,r=l(S.Z.THROUGHPUT_TYPES.BANDWIDTH,t,e,n);return Math.round(r)}var y={getArithmeticMean:u,getAverageLatency:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN,r=l(S.Z.THROUGHPUT_TYPES.LATENCY,t,e,n);return Math.round(r)},getAverageThroughput:b,getByteSizeWeightedArithmeticMean:c,getByteSizeWeightedHarmonicMean:m,getDateWeightedArithmeticMean:f,getDateWeightedHarmonicMean:g,getEwma:p,getHarmonicMean:d,getRawThroughputData:function(e){return e?t.getThroughputDict(e):[]},getSafeAverageThroughput:function(t){var e=b(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN);return isNaN(e)||(e*=n.get().streaming.abr.throughput.bandwidthSafetyFactor),e},getZlema:h,initialize:function(){t=Of(r).create({settings:n}),a.on(x.Z.METRIC_ADDED,o,y),performance&&performance.addEventListener("resourcetimingbufferfull",i)},reset:function(){t.reset(),a.off(x.Z.METRIC_ADDED,o,y),performance&&performance.removeEventListener("resourcetimingbufferfull",i)},setConfig:function(t){t.settings&&(n=t.settings),t.playbackController&&(e=t.playbackController)}};return y}zf.__dashjs_factory_name="ThroughputController";var Pf=N.Z.getSingletonFactory(zf);function Mf(){var t,e,n,r,a,i,o,l,s,u,c,f,d,m,g,p,h,b,y,v,E,_,w,D,P,M,L,j,F,U,q,B,Z,G,Y,V,K,W,X,J,tt="You must first call initialize() and set a source before calling this method",et="You must first call initialize() and set a valid source and view before calling this method",nt="You must first call attachView() to set the video element before calling this method",rt="You must first call attachSource() with a valid source before calling this method",at="MediaPlayer not initialized!",it="Array type not supported for settings!",ot=this.context,lt=(0,I.Z)(ot).getInstance(),st=(0,$.Z)(ot).getInstance(),ut=(0,C.Z)(ot).getInstance({settings:st});function ct(){kt(null),wt(null),r=null,g&&(g.reset(),g=null),p&&(p.reset(),p=null),E&&E.reset(),st.reset(),b&&(b.reset(),b=null)}function ft(){return!!n&&!!K.getElement()}function dt(){return(0,mu.e)()}function mt(){if(!o)throw et;return F.isPaused()}function gt(){if(!o)throw et;return F.getIsDynamic()}function pt(t){var e=M&&M.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,n=Z.getCurrentDVRInfo(e);if(!n)return 0;var r=F.getOriginalLiveDelay(),a=n.range.start+t;return a>n.range.end-r&&(a=n.range.end-r),a}function ht(t){if(!o)throw et;var e=_t().currentTime;if(void 0!==t)e=M.getTimeRelativeToStreamId(e,t);else if(F.getIsDynamic()){var n=M&&M.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,r=Z.getCurrentDVRInfo(n);e=null===r||0===e?0:Math.max(0,e-r.range.start)}return e}function bt(){if(!o)throw et;var t=_t().duration;if(F.getIsDynamic()){var e=M&&M.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,n=Z.getCurrentDVRInfo(e);t=n?n.range.end-n.range.start:0}return t}function yt(t){(0,Rt.PS)(t,"boolean"),l=t}function vt(){E.restoreDefaultUTCTimingSources()}function Et(){return Z}function _t(){if(!K.getElement())throw nt;return K.getElement()}function wt(t){if(!a)throw at;K.setElement(t),t&&(Ct(),function(){if(!p){var t=dashjs.MetricsReporting;if("function"==typeof t){var e=t(ot).create();p=e.createMetricsReporting({debug:ut,eventBus:lt,mediaElement:_t(),adapter:y,dashMetrics:Z,mediaPlayerModel:v,events:R.Z,constants:S.Z,metricsConstants:A})}}}(),function(){if(!h){var t=dashjs.MssHandler;"function"==typeof t&&(Q.extend(t.errors),h=t(ot).create({eventBus:lt,mediaPlayerModel:v,dashMetrics:Z,manifestModel:G,playbackController:F,streamController:M,protectionController:g,baseURLController:w,errHandler:_,events:R.Z,constants:S.Z,debug:ut,initSegmentType:z.w.INIT_SEGMENT_TYPE,BASE64:Qc,ISOBoxer:Sa,settings:st}))}}(),M&&M.switchToVideoElement(s)),o&&It(),Ot(s)}function Tt(t){return u.getPossibleVoRepresentations(t,!0)}function St(t){if(!i)throw tt;var e=M.getActiveStreamInfo();return e?m.getTracksFor(t,e.id):[]}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;if(!a)throw at;"string"==typeof t&&W.initialize(t),null==e&&(e=NaN),isNaN(e)||(e=Math.max(0,e)),s=e,n=t,(i||o)&&It(),ft()&&Ot(s)}function At(){if(!i)throw tt;var t=M.getActiveStreamInfo();return t?M.getStreamById(t.id):null}function It(){o=!1,i=!1,y.reset(),M.reset(),j.reset(),B.reset(),F.reset(),U.reset(),q.reset(),u.reset(),c.reset(),m.reset(),J.reset(),g&&(st.get().streaming.protection.keepProtectionMediaKeys?g.stop():(g.reset(),g=null,Ct())),L.reset(),Y.reset(),V.reset()}function Nt(){return Ml(ot).create({debug:ut,errHandler:_,dashMetrics:Z,mediaPlayerModel:v,mssHandler:h,settings:st})}function Ct(){if(g)return g;var t=dashjs.Protection;if("function"==typeof t){var e=t(ot).create();return R.Z.extend(t.events),x.Z.extend(t.events,{publicOnly:!0}),Q.extend(t.errors),D||(D=(0,Fl.Z)(ot).getInstance()),g=e.createProtectionSystem({debug:ut,errHandler:_,videoModel:K,customParametersModel:E,capabilities:D,eventBus:lt,events:R.Z,BASE64:Qc,constants:S.Z,cmcdModel:Y,settings:st})}return null}function xt(){if(!a)throw at;if(b)return b;var t=dashjs.OfflineController;if("function"==typeof t){R.Z.extend(t.events),x.Z.extend(t.events,{publicOnly:!0}),Q.extend(t.errors);var e=Nt(),n=ei(ot).create();return n.setConfig({manifestModel:G,adapter:y,manifestLoader:e,errHandler:_,contentSteeringController:q}),b=t(ot).create({debug:ut,manifestUpdater:n,baseURLController:w,manifestLoader:e,manifestModel:G,mediaPlayerModel:v,abrController:u,playbackController:F,adapter:y,errHandler:_,dashMetrics:Z,timelineConverter:d,segmentBaseController:J,schemeLoaderFactory:f,eventBus:lt,events:R.Z,errors:Q,constants:S.Z,settings:st,dashConstants:k.Z,urlUtils:zt(ot).getInstance()})}return null}function Dt(t){var e=M&&M.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,n=Z.getCurrentDVRInfo(e);return n?t+(n.manifestInfo.availableFrom.getTime()/1e3+n.range.start):0}function Ot(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN;b&&b.resetRecords(),!i&&n&&(i=!0,e.info("Streaming Initialized"),t=Nt(),M||(M=fi(ot).getInstance()),L||(L=xf(ot).create({errHandler:_,manifestModel:G,adapter:y,mediaController:m,baseURLController:w,videoModel:K,settings:st})),P.setConfig({capabilities:D,customParametersModel:E,adapter:y,settings:st,manifestModel:G,errHandler:_}),M.setConfig({capabilities:D,capabilitiesFilter:P,manifestLoader:t,manifestModel:G,mediaPlayerModel:v,customParametersModel:E,protectionController:g,textController:L,adapter:y,dashMetrics:Z,errHandler:_,timelineConverter:d,videoModel:K,playbackController:F,serviceDescriptionController:U,contentSteeringController:q,abrController:u,throughputController:c,mediaController:m,settings:st,baseURLController:w,uriFragmentModel:W,segmentBaseController:J}),j.setConfig({settings:st,playbackController:F,streamController:M,videoModel:K,timelineConverter:d,adapter:y}),F.setConfig({streamController:M,serviceDescriptionController:U,dashMetrics:Z,adapter:y,videoModel:K,timelineConverter:d,settings:st}),B.setConfig({streamController:M,playbackController:F,mediaPlayerModel:v,videoModel:K,settings:st}),c.setConfig({settings:st,playbackController:F}),u.setConfig({streamController:M,domStorage:X,mediaPlayerModel:v,customParametersModel:E,throughputController:c,cmsdModel:V,dashMetrics:Z,adapter:y,videoModel:K,settings:st}),Y.setConfig({abrController:u,dashMetrics:Z,playbackController:F,throughputController:c}),V.setConfig({}),m.initialize(),c.initialize(),u.initialize(),M.initialize(l,r),L.initialize(),j.initialize(),B.initialize(),Y.initialize(),V.initialize(),q.initialize(),J.initialize(),"string"==typeof n?M.load(n,a):M.loadWithManifest(n,a)),!o&&ft()&&(o=!0,lt.trigger(x.Z.PLAYBACK_INITIALIZED),e.info("Playback Initialized"))}return t={addABRCustomRule:function(t,e,n){E.addAbrCustomRule(t,e,n)},addRequestInterceptor:function(t){E.addRequestInterceptor(t)},addResponseInterceptor:function(t){E.addResponseInterceptor(t)},addUTCTimingSource:function(t,e){E.addUTCTimingSource(t,e)},attachProtectionController:function(t){g=t},attachSource:kt,attachTTMLRenderingDiv:function(t){if(!K.getElement())throw nt;K.setTTMLRenderingDiv(t)},attachView:wt,attachVttRenderingDiv:function(t){if(!K.getElement())throw nt;K.setVttRenderingDiv(t)},clearDefaultUTCTimingSources:function(){E.clearDefaultUTCTimingSources()},convertToTimeCode:function(t){t=Math.max(t,0);var e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%3600%60);return(0===e?"":e<10?"0"+e.toString()+":":e.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())},destroy:function(){ct(),N.Z.deleteSingletonInstances(ot)},duration:bt,durationAsUTC:function(){if(!o)throw et;return Dt(bt())},enableForcedTextStreaming:function(t){return!(!M.getActiveStreamInfo()||!L)&&L.enableForcedTextStreaming(t)},enableText:function(t){var e=M.getActiveStreamInfo();return!(!e||!L)&&L.enableText(e.id,t)},extend:function(t,e,n){N.Z.extend(t,e,n,ot)},formatUTC:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=new Date(1e3*t),i=a.toLocaleDateString(e),o=a.toLocaleTimeString(e,{hour12:n});return r?o+" "+i:o},getABRCustomRules:function(){return E.getAbrCustomRules()},getActiveStream:At,getAutoPlay:function(){return l},getAvailableBaseUrls:function(){var t=G.getValue();return t?w.getBaseUrls(t):[]},getAvailableLocations:function(){var t=G.getValue();if(!t)return[];var e=y.getLocation(t),n=q.getSynthesizedLocationElements(e);return e.concat(n)},getAverageThroughput:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN;return c?c.getAverageThroughput(t,e,n):0},getBufferLength:function(t){var n=[S.Z.VIDEO,S.Z.AUDIO,S.Z.TEXT];if(t){if(-1!==n.indexOf(t)){var r=Et().getCurrentBufferLevel(t);return r||NaN}return e.warn("getBufferLength requested for invalid type"),NaN}var a=n.map((function(t){return St(t).length>0?Et().getCurrentBufferLevel(t):Number.MAX_VALUE})).reduce((function(t,e){return Math.min(t,e)}));return a===Number.MAX_VALUE?NaN:a},getCurrentLiveLatency:function(){if(!a)throw at;return o?F.getCurrentLiveLatency():NaN},getCurrentSteeringResponseData:function(){if(q)return q.getCurrentSteeringResponseData()},getCurrentTextTrackIndex:function(){var t=M.getActiveStreamInfo();if(t&&L)return L.getCurrentTrackIdx(t.id)},getCurrentTrackFor:function(t){if(!i)throw tt;var e=M.getActiveStreamInfo();return m.getCurrentTrackFor(t,e.id)},getDVRSeekOffset:pt,getDVRWindowSize:function(){var t=M&&M.hasVideoTrack()?S.Z.VIDEO:S.Z.AUDIO,e=Z.getCurrentDVRInfo(t);return e?e.manifestInfo.dvrWindowSize:0},getDashAdapter:function(){return y},getDashMetrics:Et,getDebug:function(){return ut},getInitialMediaSettingsFor:function(t){if(!a)throw at;return m.getInitialSettings(t)},getLowLatencyModeEnabled:function(){if(!o)throw et;return F.getLowLatencyModeEnabled()},getOfflineController:function(){return xt()},getPlaybackRate:function(){return _t().playbackRate},getProtectionController:function(){return Ct()},getCurrentRepresentationForType:function(t){if(!i)throw tt;if(t!==S.Z.IMAGE&&t!==S.Z.VIDEO&&t!==S.Z.AUDIO)return null;var e=At();if(!e)return null;if(t===S.Z.IMAGE){var n=e.getThumbnailController();return n?n.getCurrentTrack():-1}return e.getCurrentRepresentationForType(t)},getRepresentationsByType:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!i)throw tt;var n=e?M.getStreamById(e):At();return n?n.getRepresentationsByType(t):[]},getRepresentations:Tt,getSettings:function(){return st.get()},getSource:function(){if(!n)throw rt;return n},getStreamController:function(){return M},getStreamsFromManifest:function(t){if(!i)throw tt;return y.getStreamsInfo(t)},getTTMLRenderingDiv:function(){return K?K.getTTMLRenderingDiv():null},getTargetLiveDelay:function(){if(!o)throw et;return F.getOriginalLiveDelay()},getTracksFor:St,getTracksForTypeFromManifest:function(t,e,n){if(!i)throw tt;return(n=n||y.getStreamsInfo(e,1)[0])?y.getAllMediaInfoForType(n,t,e):[]},getVersion:dt,getVideoElement:_t,getVolume:function(){return _t().volume},getXHRWithCredentialsForType:function(t){return E.getXHRWithCredentialsForType(t)},initialize:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN;D||(D=(0,Fl.Z)(ot).getInstance()).setConfig({settings:st}),_||(_=jl(ot).getInstance()),D.supportsMediaSource()?(a||(a=!0,d=Kc(ot).getInstance(),c||(c=Pf(ot).getInstance()),u||(u=eu(ot).getInstance()),f||(f=$r(ot).getInstance()),F||(F=O(ot).getInstance()),m||(m=Vi(ot).getInstance()),M||(M=fi(ot).getInstance()),j||(j=mi(ot).getInstance()),B||(B=pi(ot).getInstance()),U||(U=wi(ot).getInstance()),q||(q=Qa(ot).getInstance()),P||(P=ql(ot).getInstance()),y=Wu(ot).getInstance(),G=Wl(ot).getInstance(),Y=gr(ot).getInstance(),V=Zr(ot).getInstance(),Z=qc(ot).getInstance({settings:st}),X=du(ot).getInstance({settings:st}),y.setConfig({constants:S.Z,cea608parser:T,errHandler:_,BASE64:Qc}),w||(w=co(ot).create()),w.setConfig({adapter:y,contentSteeringController:q}),U.setConfig({adapter:y}),J||(J=_u(ot).getInstance({dashMetrics:Z,mediaPlayerModel:v,errHandler:_,baseURLController:w,events:R.Z,eventBus:lt,debug:ut,boxParser:Ca(ot).getInstance(),errors:Q})),m.setConfig({domStorage:X,settings:st,mediaPlayerModel:v,customParametersModel:E,videoModel:K}),v.setConfig({playbackController:F,serviceDescriptionController:U}),q.setConfig({adapter:y,errHandler:_,dashMetrics:Z,mediaPlayerModel:v,manifestModel:G,serviceDescriptionController:U,throughputController:c,eventBus:lt}),vt(),yt(void 0===r||r),xt()),t&&wt(t),n&&kt(n,i),e.info("[dash.js "+dt()+"] MediaPlayer has been initialized")):_.error(new H.Z(Q.CAPABILITY_MEDIASOURCE_ERROR_CODE,Q.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},isDynamic:gt,isMuted:function(){return _t().muted},isPaused:mt,isReady:ft,isSeeking:function(){if(!o)throw et;return F.isSeeking()},isTextEnabled:function(){var t=M.getActiveStreamInfo();return!(!t||!L)&&L.isTextEnabled(t)},off:function(t,e,n){lt.off(t,e,n)},on:function(t,e,n,r){lt.on(t,e,n,r)},pause:function(){if(!o)throw et;F.pause()},play:function(){if(!o)throw et;(!l||mt()&&o)&&F.play(!0)},preload:function(){if(!K.getElement()&&!i){if(!n)throw rt;Ot(s)}},provideThumbnail:function(t,e){if("function"==typeof e)if(t<0)e(null);else{var n=F.getIsDynamic()?pt(t):t,r=M.getStreamForTime(n);if(null!==r){var a=r.getThumbnailController();if(a)return a.provide(n,e);e(null)}else e(null)}},registerCustomCapabilitiesFilter:function(t){E.registerCustomCapabilitiesFilter(t)},registerLicenseRequestFilter:function(t){E.registerLicenseRequestFilter(t)},registerLicenseResponseFilter:function(t){E.registerLicenseResponseFilter(t)},removeABRCustomRule:function(t){E.removeAbrCustomRule(t)},removeAllABRCustomRule:function(){E.removeAllAbrCustomRule()},removeRequestInterceptor:function(t){E.removeRequestInterceptor(t)},removeResponseInterceptor:function(t){E.removeResponseInterceptor(t)},removeUTCTimingSource:function(t,e){E.removeUTCTimingSource(t,e)},refreshManifest:function(t){if(!a)throw at;if(!ft())return t(null,rt);var e=this;"function"==typeof t&&lt.on(R.Z.INTERNAL_MANIFEST_LOADED,(function n(r){lt.off(R.Z.INTERNAL_MANIFEST_LOADED,n,e),r.error?t(null,r.error):t(r.manifest)}),e),M.refreshManifest()},reset:ct,resetCustomInitialTrackSelectionFunction:function(){E.resetCustomInitialTrackSelectionFunction(null)},resetSettings:function(){st.reset()},restoreDefaultUTCTimingSources:vt,retrieveManifest:function(t,e){var n=Nt(),r=this;lt.on(R.Z.INTERNAL_MANIFEST_LOADED,(function t(a){a.error?e(null,a.error):e(a.manifest),lt.off(R.Z.INTERNAL_MANIFEST_LOADED,t,r),n.reset()}),r),W.initialize(t),n.load(t)},seek:function(t){if(!o)throw et;if((0,Rt.PS)(t,"number"),isNaN(t))throw S.Z.BAD_ARGUMENT_ERROR;t<0&&(t=0);var e=F.getIsDynamic()?pt(t):t,n=_t();!F.getIsDynamic()&&n.duration&&(e=Math.min(n.duration,e)),F.seek(e,!1,!1,!0)},seekToOriginalLive:function(){o&&gt()&&F.seekToOriginalLive()},setAutoPlay:yt,setConfig:function(t){t&&(t.capabilities&&(D=t.capabilities),t.capabilitiesFilter&&(P=t.capabilitiesFilter),t.streamController&&(M=t.streamController),t.textController&&(L=t.textController),t.gapController&&(j=t.gapController),t.throughputController&&(c=t.throughputController),t.playbackController&&(F=t.playbackController),t.serviceDescriptionController&&(U=t.serviceDescriptionController),t.contentSteeringController&&(q=t.contentSteeringController),t.catchupController&&(B=t.catchupController),t.mediaPlayerModel&&(v=t.mediaPlayerModel),t.customParametersModel&&(E=t.customParametersModel),t.abrController&&(u=t.abrController),t.schemeLoaderFactory&&(f=t.schemeLoaderFactory),t.mediaController&&(m=t.mediaController),t.settings&&(st=t.settings))},setCurrentTrack:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!i)throw tt;m.setTrack(t,e)},setCustomInitialTrackSelectionFunction:function(t){E.setCustomInitialTrackSelectionFunction(t)},setInitialMediaSettingsFor:function(t,n){if(!a)throw at;var r=function(t){var n=st.get().streaming.defaultSchemeIdUri,r={};function a(t,n,r){var a={};if(n){if(n instanceof Array)throw it;return n instanceof Object?(a.schemeIdUri=n.schemeIdUri?n.schemeIdUri:"",a.value=n.value?n.value:""):(a.schemeIdUri=r,a.value=n,e.warn("No schemeIdUri provided for "+t+', using default "'+r+'"')),a}return null}return t.lang&&(r.lang=t.lang),t.index&&(r.index=t.index),t.viewpoint&&(r.viewpoint=a("viewpoint",t.viewpoint,n.viewpoint)),t.audioChannelConfiguration&&(r.audioChannelConfiguration=a("audioChannelConfiguration",t.audioChannelConfiguration,n.audioChannelConfiguration)),t.role&&(r.role=a("role",t.role,n.role)),t.accessibility&&(r.accessibility=a("accessibility",t.accessibility,n.accessibility)),r}(n);m.setInitialSettings(t,r)},setMute:function(t){(0,Rt.PS)(t,"boolean"),_t().muted=t},setPlaybackRate:function(t){_t().playbackRate=t},setProtectionData:function(t){r=t,M&&M.setProtectionData(r)},setRepresentationForTypeByIndex:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t===S.Z.IMAGE||t===S.Z.VIDEO||t===S.Z.AUDIO){if(!i)throw tt;var r=At();if(r)if(t===S.Z.IMAGE){var a=r.getThumbnailController();a&&a.setTrackByIndex(e)}else{var o=r.getRepresentationForTypeByIndex(t,e);o&&u.setPlaybackQuality(t,M.getActiveStreamInfo(),o,{forceReplace:n})}}},setRepresentationForTypeById:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t===S.Z.IMAGE||t===S.Z.VIDEO||t===S.Z.AUDIO){if(!i)throw tt;var r=At();if(r)if(t===S.Z.IMAGE){var a=r.getThumbnailController();a&&a.setTrackById(e)}else{var o=function(t,e){for(var n=St(t),r=0;r<n.length;r++)for(var a=Tt(n[r]),i=0;i<a.length;i++)if(a[i].id===e)return a[i];return null}(t,e);o&&u.setPlaybackQuality(t,M.getActiveStreamInfo(),o,{forceReplace:n})}}},setTextTrack:function(t){if(!o)throw et;var e=M.getActiveStreamInfo();e&&L&&L.setTextTrack(e.id,t)},setVolume:function(t){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw S.Z.BAD_ARGUMENT_ERROR;_t().volume=t},setXHRWithCredentialsForType:function(t,e){E.setXHRWithCredentialsForType(t,e)},time:ht,timeAsUTC:function(){if(!o)throw et;return ht()<0?NaN:Dt(ht())},triggerSteeringRequest:function(){if(q)return q.loadSteeringData()},unregisterCustomCapabilitiesFilter:function(t){E.unregisterCustomCapabilitiesFilter(t)},unregisterLicenseRequestFilter:function(t){E.unregisterLicenseRequestFilter(t)},unregisterLicenseResponseFilter:function(t){E.unregisterLicenseResponseFilter(t)},updateSettings:function(t){st.update(t)},updateSource:function(t){n=t,M.load(n)}},e=ut.getLogger(t),a=!1,o=!1,i=!1,l=!0,s=NaN,g=null,b=null,r=null,y=null,J=null,R.Z.extend(x.Z),v=$l(ot).getInstance(),E=(0,Gr.Z)(ot).getInstance(),K=au(ot).getInstance(),W=Vl(ot).getInstance(),t}Mf.__dashjs_factory_name="MediaPlayer";var Lf=N.Z.getClassFactory(Mf);Lf.events=x.Z,Lf.errors=Q,N.Z.updateClassFactory(Mf.__dashjs_factory_name,Lf);var jf=Lf},5848:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var s=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,n,r,l=o(s);function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this)).AST_IN_FUTURE="astInFuture",t.BASE_URLS_UPDATED="baseUrlsUpdated",t.BUFFER_EMPTY="bufferStalled",t.BUFFER_LOADED="bufferLoaded",t.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",t.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",t.DVB_FONT_DOWNLOAD_ADDED="dvbFontDownloadAdded",t.DVB_FONT_DOWNLOAD_COMPLETE="dvbFontDownloadComplete",t.DVB_FONT_DOWNLOAD_FAILED="dvbFontDownloadFailed",t.DYNAMIC_TO_STATIC="dynamicToStatic",t.ERROR="error",t.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",t.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",t.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",t.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",t.LOG="log",t.MANIFEST_LOADING_STARTED="manifestLoadingStarted",t.MANIFEST_LOADING_FINISHED="manifestLoadingFinished",t.MANIFEST_LOADED="manifestLoaded",t.METRICS_CHANGED="metricsChanged",t.METRIC_CHANGED="metricChanged",t.METRIC_ADDED="metricAdded",t.METRIC_UPDATED="metricUpdated",t.PERIOD_SWITCH_STARTED="periodSwitchStarted",t.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",t.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",t.QUALITY_CHANGE_RENDERED="qualityChangeRendered",t.TRACK_CHANGE_RENDERED="trackChangeRendered",t.STREAM_INITIALIZING="streamInitializing",t.STREAM_UPDATED="streamUpdated",t.STREAM_ACTIVATED="streamActivated",t.STREAM_DEACTIVATED="streamDeactivated",t.STREAM_INITIALIZED="streamInitialized",t.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",t.TEXT_TRACKS_ADDED="allTextTracksAdded",t.TEXT_TRACK_ADDED="textTrackAdded",t.CUE_ENTER="cueEnter",t.CUE_EXIT="cueExit",t.THROUGHPUT_MEASUREMENT_STORED="throughputMeasurementStored",t.TTML_PARSED="ttmlParsed",t.TTML_TO_PARSE="ttmlToParse",t.CAPTION_RENDERED="captionRendered",t.CAPTION_CONTAINER_RESIZE="captionContainerResize",t.CAN_PLAY="canPlay",t.CAN_PLAY_THROUGH="canPlayThrough",t.PLAYBACK_ENDED="playbackEnded",t.PLAYBACK_ERROR="playbackError",t.PLAYBACK_INITIALIZED="playbackInitialized",t.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",t.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",t.PLAYBACK_LOADED_DATA="playbackLoadedData",t.PLAYBACK_PAUSED="playbackPaused",t.PLAYBACK_PLAYING="playbackPlaying",t.PLAYBACK_PROGRESS="playbackProgress",t.PLAYBACK_RATE_CHANGED="playbackRateChanged",t.PLAYBACK_SEEKED="playbackSeeked",t.PLAYBACK_SEEKING="playbackSeeking",t.PLAYBACK_STALLED="playbackStalled",t.PLAYBACK_STARTED="playbackStarted",t.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",t.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",t.PLAYBACK_WAITING="playbackWaiting",t.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",t.EVENT_MODE_ON_START="eventModeOnStart",t.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",t.CONFORMANCE_VIOLATION="conformanceViolation",t.REPRESENTATION_SWITCH="representationSwitch",t.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",t.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",t.INBAND_PRFT="inbandPrft",t.MANAGED_MEDIA_SOURCE_START_STREAMING="managedMediaSourceStartStreaming",t.MANAGED_MEDIA_SOURCE_END_STREAMING="managedMediaSourceEndStreaming",t}return e=s,n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(6424).Z));e.Z=s},3814:function(t,e){e.Z={STREAM:"stream",VIDEO:"video",AUDIO:"audio",TEXT:"text",MUXED:"muxed",IMAGE:"image",STPP:"stpp",TTML:"ttml",VTT:"vtt",WVTT:"wvtt",CONTENT_STEERING:"contentSteering",LIVE_CATCHUP_MODE_DEFAULT:"liveCatchupModeDefault",LIVE_CATCHUP_MODE_LOLP:"liveCatchupModeLoLP",MOVING_AVERAGE_SLIDING_WINDOW:"slidingWindow",MOVING_AVERAGE_EWMA:"ewma",BAD_ARGUMENT_ERROR:"Invalid Arguments",MISSING_CONFIG_ERROR:"Missing config parameter(s)",TRACK_SWITCH_MODE_ALWAYS_REPLACE:"alwaysReplace",TRACK_SWITCH_MODE_NEVER_REPLACE:"neverReplace",TRACK_SELECTION_MODE_FIRST_TRACK:"firstTrack",TRACK_SELECTION_MODE_HIGHEST_BITRATE:"highestBitrate",TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY:"highestEfficiency",TRACK_SELECTION_MODE_WIDEST_RANGE:"widestRange",TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY:"highestSelectionPriority",CMCD_MODE_QUERY:"query",CMCD_MODE_HEADER:"header",INITIALIZE:"initialize",TEXT_SHOWING:"showing",TEXT_HIDDEN:"hidden",TEXT_DISABLED:"disabled",ACCESSIBILITY_CEA608_SCHEME:"urn:scte:dash:cc:cea-608:2015",CC1:"CC1",CC3:"CC3",UTF8:"utf-8",SCHEME_ID_URI:"schemeIdUri",START_TIME:"starttime",SERVICE_DESCRIPTION_DVB_LL_SCHEME:"urn:dvb:dash:lowlatency:scope:2019",SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME:"urn:dvb:dash:lowlatency:critical:2019",THUMBNAILS_SCHEME_ID_URIS:["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"],FONT_DOWNLOAD_DVB_SCHEME:"urn:dvb:dash:fontdownload:2014",COLOUR_PRIMARIES_SCHEME_ID_URI:"urn:mpeg:mpegB:cicp:ColourPrimaries",MATRIX_COEFFICIENTS_SCHEME_ID_URI:"urn:mpeg:mpegB:cicp:MatrixCoefficients",TRANSFER_CHARACTERISTICS_SCHEME_ID_URI:"urn:mpeg:mpegB:cicp:TransferCharacteristics",XML:"XML",ARRAY_BUFFER:"ArrayBuffer",DVB_REPORTING_URL:"dvb:reportingUrl",DVB_PROBABILITY:"dvb:probability",OFF_MIMETYPE:"application/font-sfnt",WOFF_MIMETYPE:"application/font-woff",VIDEO_ELEMENT_READY_STATES:{HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4},FILE_LOADER_TYPES:{FETCH:"fetch_loader",XHR:"xhr_loader"},THROUGHPUT_TYPES:{LATENCY:"throughput_type_latency",BANDWIDTH:"throughput_type_bandwidth"},THROUGHPUT_CALCULATION_MODES:{EWMA:"throughputCalculationModeEwma",ZLEMA:"throughputCalculationModeZlema",ARITHMETIC_MEAN:"throughputCalculationModeArithmeticMean",BYTE_SIZE_WEIGHTED_ARITHMETIC_MEAN:"throughputCalculationModeByteSizeWeightedArithmeticMean",DATE_WEIGHTED_ARITHMETIC_MEAN:"throughputCalculationModeDateWeightedArithmeticMean",HARMONIC_MEAN:"throughputCalculationModeHarmonicMean",BYTE_SIZE_WEIGHTED_HARMONIC_MEAN:"throughputCalculationModeByteSizeWeightedHarmonicMean",DATE_WEIGHTED_HARMONIC_MEAN:"throughputCalculationModeDateWeightedHarmonicMean"},LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE:{MOOF_PARSING:"lowLatencyDownloadTimeCalculationModeMoofParsing",DOWNLOADED_DATA:"lowLatencyDownloadTimeCalculationModeDownloadedData",AAST:"lowLatencyDownloadTimeCalculationModeAast"},RULES_TYPES:{QUALITY_SWITCH_RULES:"qualitySwitchRules",ABANDON_FRAGMENT_RULES:"abandonFragmentRules"},QUALITY_SWITCH_RULES:{BOLA_RULE:"BolaRule",THROUGHPUT_RULE:"ThroughputRule",INSUFFICIENT_BUFFER_RULE:"InsufficientBufferRule",SWITCH_HISTORY_RULE:"SwitchHistoryRule",DROPPED_FRAMES_RULE:"DroppedFramesRule",LEARN_TO_ADAPT_RULE:"L2ARule",LOL_PLUS_RULE:"LoLPRule"},ABANDON_FRAGMENT_RULES:{ABANDON_REQUEST_RULE:"AbandonRequestsRule"},ID3_SCHEME_ID_URI:"https://aomedia.org/emsg/ID3",COMMON_ACCESS_TOKEN_HEADER:"common-access-token"}},95:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{default:function(){return at}});var o=i((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null}));o.SSL_CONNECTION_FAILED_PREFIX="SSL",o.DNS_RESOLUTION_FAILED="C00",o.HOST_UNREACHABLE="C01",o.CONNECTION_REFUSED="C02",o.CONNECTION_ERROR="C03",o.CORRUPT_MEDIA_ISOBMFF="M00",o.CORRUPT_MEDIA_OTHER="M01",o.BASE_URL_CHANGED="F00",o.BECAME_REPORTER="S00";var l=o,s=n(3890);function u(t){var e,n,r=(t=t||{}).eventBus,a=t.dashMetrics,i=t.metricsConstants,o=t.events;function u(t){var e=new l;if(n){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.mpdurl||(e.mpdurl=n.originalUrl||n.url),e.terror||(e.terror=new Date),a.addDVBErrors(e)}}function c(t){t.error||(n=t.manifest)}function f(t){u({errorcode:l.BASE_URL_CHANGED,servicelocation:t.entry})}function d(){u({errorcode:l.BECAME_REPORTER})}function m(t){var e;t.metric===i.HTTP_REQUEST&&(0===(e=t.value).responsecode||null==e.responsecode||e.responsecode>=400||e.responsecode<100||e.responsecode>=600)&&u({errorcode:e.responsecode||l.CONNECTION_ERROR,url:e.url,terror:e.tresponse,servicelocation:e._serviceLocation})}function g(t){var e;switch(t.error?t.error.code:0){case MediaError.MEDIA_ERR_NETWORK:e=l.CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:e=l.CORRUPT_MEDIA_OTHER;break;default:return}u({errorcode:e})}return e={initialize:function(){r.on(o.MANIFEST_UPDATED,c,e),r.on(o.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,f,e),r.on(o.METRIC_ADDED,m,e),r.on(o.METRIC_UPDATED,m,e),r.on(o.PLAYBACK_ERROR,g,e),r.on(s.Z.BECAME_REPORTING_PLAYER,d,e)},reset:function(){r.off(o.MANIFEST_UPDATED,c,e),r.off(o.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,f,e),r.off(o.METRIC_ADDED,m,e),r.off(o.METRIC_UPDATED,m,e),r.off(o.PLAYBACK_ERROR,g,e),r.off(s.Z.BECAME_REPORTING_PLAYER,d,e)}}}u.__dashjs_factory_name="DVBErrorsTranslator";var c=dashjs.FactoryMaker.getSingletonFactory(u),f=n(777);function d(t){t=t||{};var e,n,r=!1,a=this.context,i=t.mediaElement;return e={initialize:function(t){t&&t.length&&(t.forEach((function(t){var e=t.starttime,r=e+t.duration;n.add(e,r)})),r=!!t[0]._useWallClockTime)},reset:function(){n.clear()},isEnabled:function(){var t,e=n.length;if(!e)return!0;t=r?(new Date).getTime()/1e3:i.currentTime;for(var a=0;a<e;a+=1){var o=n.start(a),l=n.end(a);if(o<=t&&t<l)return!0}return!1}},n=(0,f.Z)(a).create(),e}d.__dashjs_factory_name="RangeController";var m=dashjs.FactoryMaker.getClassFactory(d);function g(){return{serialise:function t(e){var n,r,a=[],i=[];for(n in e)if(e.hasOwnProperty(n)&&0!==n.indexOf("_")){if(null==(r=e[n])&&(r=""),Array.isArray(r)){if(!r.length)continue;i=[],r.forEach((function(e){var n="Object"!==Object.prototype.toString.call(e).slice(8,-1);i.push(n?e:t(e))})),r=i.map(encodeURIComponent).join(",")}else"string"==typeof r?r=encodeURIComponent(r):r instanceof Date?r=r.toISOString():"number"==typeof r&&(r=Math.round(r));a.push(n+"="+r)}return a.join("&")}}}g.__dashjs_factory_name="MetricSerialiser";var p=dashjs.FactoryMaker.getSingletonFactory(g);function h(){var t,e,n,r=window.crypto||window.msCrypto,a=Uint32Array,i=Math.pow(2,8*a.BYTES_PER_ELEMENT)-1,o=10;function l(){r&&(t||(t=new a(o)),r.getRandomValues(t),e=0)}return n={random:function(n,a){var o;return n||(n=0),a||(a=1),r?(e===t.length&&l(),o=t[e]/i,e+=1):o=Math.random(),o*(a-n)+n}},l(),n}h.__dashjs_factory_name="RNG";var b=dashjs.FactoryMaker.getSingletonFactory(h),y=n(592);function v(t){var e;t=t||{};var n,r,a,i,o,l,s,u=this.context,c=[],f=t.metricsConstants;function d(){i=!1,o=!1,l=null,s=null}return e={report:function(t,e){Array.isArray(e)||(e=[e]),o&&s.isEnabled()&&e.forEach((function(e){var a=n.serialise(e);t!==f.DVB_ERRORS&&(a="metricname=".concat(t,"&").concat(a)),function(t,e,n){var a=new XMLHttpRequest;a.withCredentials=r.getXHRWithCredentialsForType(f.HTTP_REQUEST_DVB_REPORTING_TYPE);var i=function(){var t=c.indexOf(a);-1!==t&&(c.splice(t,1),a.status>=200&&a.status<300?e&&e():n&&n())};c.push(a);try{a.open("GET",t),a.onloadend=i,a.onerror=i,a.send()}catch(t){a.onerror()}}(a="".concat(l,"?").concat(a),null,(function(){o=!1}))}))},initialize:function(t,e){var n;if(s=e,!(l=t.dvbReportingUrl))throw new Error("required parameter missing (dvb:reportingUrl)");i||((n=t.dvbProbability)&&(1e3===n||n/1e3>=a.random())&&(o=!0),i=!0)},reset:function(){d()}},n=p(u).getInstance(),a=b(u).getInstance(),r=(0,y.Z)(u).getInstance(),d(),e}v.__dashjs_factory_name="DVBReporting";var E=dashjs.FactoryMaker.getClassFactory(v);function _(t){t=t||{};var e,n={"urn:dvb:dash:reporting:2014":E},r=this.context,a=t.debug?t.debug.getLogger(e):{},i=t.metricsConstants,o=t.mediaPlayerModel||{};return e={create:function(t,e){var l;try{(l=n[t.schemeIdUri](r).create({metricsConstants:i,mediaPlayerModel:o})).initialize(t,e)}catch(e){l=null,a.error("ReportingFactory: could not create Reporting with schemeIdUri ".concat(t.schemeIdUri," (").concat(e.message,")"))}return l},register:function(t,e){n[t]=e},unregister:function(t){delete n[t]}}}_.__dashjs_factory_name="ReportingFactory";var w=dashjs.FactoryMaker.getSingletonFactory(_);function T(t){var e=[],n=w(this.context).getInstance(t);return{initialize:function(t,r){t.some((function(t){var a=n.create(t,r);if(a)return e.push(a),!0}))},reset:function(){e.forEach((function(t){return t.reset()})),e=[]},report:function(t,n){e.forEach((function(e){return e.report(t,n)}))}}}T.__dashjs_factory_name="ReportingController";var S=dashjs.FactoryMaker.getClassFactory(T);function k(){return{reconstructFullMetricName:function(t,e,n){var r=t;return e&&(r+="("+e,n&&n.length&&(r+=","+n),r+=")"),r},validateN:function(t){if(!t)throw new Error("missing n");if(isNaN(t))throw new Error("n is NaN");if(t<0)throw new Error("n must be positive");return t}}}k.__dashjs_factory_name="HandlerHelpers";var A=dashjs.FactoryMaker.getSingletonFactory(k);function I(t){var e,n,r,a,i;t=t||{};var o=this.context,l=A(o).getInstance(),s=[],u=t.metricsConstants;function c(){var t=function(){try{return Object.keys(s).map((function(t){return s[t]})).reduce((function(t,e){return t.level<e.level?t:e}))}catch(t){return}}();t&&i!==t.t&&(i=t.t,e.report(r,t))}return{initialize:function(t,i,o){i&&(n=l.validateN(o),e=i,r=l.reconstructFullMetricName(t,o),a=setInterval(c,n))},reset:function(){clearInterval(a),a=null,n=0,e=null,i=null},handleNewMetric:function(t,e,n){t===u.BUFFER_LEVEL&&(s[n]=e)}}}I.__dashjs_factory_name="BufferLevelHandler";var R=dashjs.FactoryMaker.getClassFactory(I),N=dashjs.FactoryMaker.getClassFactory((function(t){var e,n=(t=t||{}).eventBus,r=t.metricsConstants;function a(){n.off(s.Z.METRICS_INITIALISATION_COMPLETE,a,this),n.trigger(s.Z.BECAME_REPORTING_PLAYER)}return{initialize:function(t,r){r&&(e=r,n.on(s.Z.METRICS_INITIALISATION_COMPLETE,a,this))},reset:function(){e=null},handleNewMetric:function(t,n){t===r.DVB_ERRORS&&e&&e.report(t,n)}}}));function C(t){var e,n,r,a,i;t=t||{};var o=[],l=A(this.context).getInstance(),s=t.metricsConstants;function u(){var t=o;t.length&&e&&e.report(a,t),o=[]}return{initialize:function(t,o,s,c){o&&(n=l.validateN(s),e=o,c&&c.length&&(r=c),a=l.reconstructFullMetricName(t,s,c),i=setInterval(u,n))},reset:function(){clearInterval(i),i=null,n=null,r=null,o=[],e=null},handleNewMetric:function(t,e){t===s.HTTP_REQUEST&&(r&&r!==e.type||o.push(e))}}}C.__dashjs_factory_name="HttpListHandler";var x=dashjs.FactoryMaker.getClassFactory(C);function D(){var t,e;return{initialize:function(n,r){t=n,e=r},reset:function(){e=null,t=void 0},handleNewMetric:function(n,r){n===t&&e&&e.report(t,r)}}}D.__dashjs_factory_name="GenericMetricHandler";var O=dashjs.FactoryMaker.getClassFactory(D);function z(t){var e,n=(t=t||{}).debug?t.debug.getLogger(e):{},r=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/,a=this.context,i={BufferLevel:R,DVBErrors:N,HttpList:x,PlayList:O,RepSwitchList:O,TcpList:O};return e={create:function(e,o){var l,s=e.match(r);if(s){try{(l=i[s[1]](a).create({eventBus:t.eventBus,metricsConstants:t.metricsConstants})).initialize(s[1],o,s[3],s[5])}catch(t){l=null,n.error("MetricsHandlerFactory: Could not create handler for type ".concat(s[1]," with args ").concat(s[3],", ").concat(s[5]," (").concat(t.message,")"))}return l}},register:function(t,e){i[t]=e},unregister:function(t){delete i[t]}}}z.__dashjs_factory_name="MetricsHandlerFactory";var P=dashjs.FactoryMaker.getSingletonFactory(z);function M(t){t=t||{};var e,n=[],r=this.context,a=t.eventBus,i=t.events,o=P(r).getInstance({debug:t.debug,eventBus:t.eventBus,metricsConstants:t.metricsConstants});function l(t){n.forEach((function(e){e.handleNewMetric(t.metric,t.value,t.mediaType)}))}return e={initialize:function(t,r){t.split(",").forEach((function(t,e,a){var i;if(-1!==t.indexOf("(")&&-1===t.indexOf(")")){var l=a[e+1];l&&-1===l.indexOf("(")&&-1!==l.indexOf(")")&&(t+=","+l,delete a[e+1])}(i=o.create(t,r))&&n.push(i)})),a.on(i.METRIC_ADDED,l,e),a.on(i.METRIC_UPDATED,l,e)},reset:function(){a.off(i.METRIC_ADDED,l,e),a.off(i.METRIC_UPDATED,l,e),n.forEach((function(t){return t.reset()})),n=[]}}}M.__dashjs_factory_name="MetricsHandlersController";var L=dashjs.FactoryMaker.getClassFactory(M);function j(t){var e,n,r;t=t||{};var a=this.context;function i(){e&&e.reset(),n&&n.reset(),r&&r.reset()}return{initialize:function(o){try{(r=m(a).create({mediaElement:t.mediaElement})).initialize(o.Range),(n=S(a).create({debug:t.debug,metricsConstants:t.metricsConstants,mediaPlayerModel:t.mediaPlayerModel})).initialize(o.Reporting,r),(e=L(a).create({debug:t.debug,eventBus:t.eventBus,metricsConstants:t.metricsConstants,events:t.events})).initialize(o.metrics,n)}catch(t){throw i(),t}},reset:i}}j.__dashjs_factory_name="MetricsController";var F=dashjs.FactoryMaker.getClassFactory(j);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==U(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===U(i)?i:String(i)),r)}var a,i}function B(t,e,n){return e&&q(t.prototype,e),n&&q(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Z=B((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.metrics="",this.Range=[],this.Reporting=[]}));function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==G(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===G(i)?i:String(i)),r)}var a,i}function Y(t,e,n){return e&&H(t.prototype,e),n&&H(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var V=Y((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.starttime=0,this.duration=1/0,this._useWallClockTime=!1}));function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==K(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===K(i)?i:String(i)),r)}var a,i}function X(t,e,n){return e&&W(t.prototype,e),n&&W(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Q=X((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.schemeIdUri="",this.value="",this.dvbReportingUrl="",this.dvbProbability=1e3}));function $(t){var e=(t=t||{}).adapter,n=t.constants;return{getMetrics:function(t){var r=[];return t&&t.Metrics&&t.Metrics.forEach((function(a){var i=new Z,o=e.getIsDynamic(t);a.hasOwnProperty("metrics")&&(i.metrics=a.metrics,a.Range&&a.Range.forEach((function(r){var a=new V;a.starttime=function(t,r,a){var i,o,l=0;return r?l=e.getAvailabilityStartTime(t)/1e3:(i=e.getRegularPeriods(t)).length&&(l=i[0].start),o=l,a&&a.hasOwnProperty(n.START_TIME)&&(o+=a.starttime),o}(t,o,r),r.hasOwnProperty("duration")?a.duration=r.duration:a.duration=e.getDuration(t),a._useWallClockTime=o,i.Range.push(a)})),a.Reporting&&(a.Reporting.forEach((function(t){var e=new Q;t.hasOwnProperty(n.SCHEME_ID_URI)&&(e.schemeIdUri=t.schemeIdUri,t.hasOwnProperty("value")&&(e.value=t.value),t.hasOwnProperty(n.DVB_REPORTING_URL)&&(e.dvbReportingUrl=t[n.DVB_REPORTING_URL]),t.hasOwnProperty(n.DVB_PROBABILITY)&&(e.dvbProbability=t[n.DVB_PROBABILITY]),i.Reporting.push(e))})),r.push(i)))})),r}}}$.__dashjs_factory_name="ManifestParsing";var J=dashjs.FactoryMaker.getSingletonFactory($);function tt(t){var e;t=t||{};var n={},r=this.context,a=t.eventBus,i=t.events;function o(e){if(!e.error){var i=Object.keys(n);J(r).getInstance({adapter:t.adapter,constants:t.constants}).getMetrics(e.manifest).forEach((function(e){var a=JSON.stringify(e);if(n.hasOwnProperty(a))i.splice(a,1);else try{var o=F(r).create(t);o.initialize(e),n[a]=o}catch(t){}})),i.forEach((function(t){n[t].reset(),delete n[t]})),a.trigger(s.Z.METRICS_INITIALISATION_COMPLETE)}}function l(){Object.keys(n).forEach((function(t){n[t].reset()})),n={}}return e={reset:function(){a.off(i.MANIFEST_UPDATED,o,e),a.off(i.STREAM_TEARDOWN_COMPLETE,l,e)}},a.on(i.MANIFEST_UPDATED,o,e),a.on(i.STREAM_TEARDOWN_COMPLETE,l,e),e}tt.__dashjs_factory_name="MetricsCollectionController";var et=dashjs.FactoryMaker.getClassFactory(tt);function nt(){var t=this.context;return{createMetricsReporting:function(e){return c(t).getInstance({eventBus:e.eventBus,dashMetrics:e.dashMetrics,metricsConstants:e.metricsConstants,events:e.events}).initialize(),et(t).create(e)},getReportingFactory:function(){return w(t).getInstance()},getMetricsHandlerFactory:function(){return P(t).getInstance()}}}nt.__dashjs_factory_name="MetricsReporting";var rt=dashjs.FactoryMaker.getClassFactory(nt);rt.events=s.Z,dashjs.FactoryMaker.updateClassFactory(nt.__dashjs_factory_name,rt);var at=rt},3890:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var s=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(s,t);var e,n,r,l=o(s);function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this)).METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",t.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",t.CMCD_DATA_GENERATED="cmcdDataGenerated",t}return e=s,n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(6424).Z));e.Z=s},592:function(t,e,n){var r=n(8871),a=n(145),i=n(2683),o=n(3644),l=n(3814);function s(){var t,e,n,a,s,u,c,f,d,m,g=this.context,p=(0,i.Z)(g).getInstance();function h(){a=[],s=[],u=[],c=[],f=[],m=[],d=null,e=[]}function b(t,e){var n=-1;t.some((function(t,r){if(t===e)return n=r,!0})),n<0||t.splice(n,1)}function y(t){var e;for(e=0;e<m.length;e++)if(m[e].rulename===t)return e;return-1}function v(t,n){E(t,n);var a=new r.Z;a.schemeIdUri=t,a.value=n,e.push(a)}function E(t,n){(0,o.PS)(t,"string"),(0,o.PS)(n,"string"),e.forEach((function(r,a){r.schemeIdUri===t&&r.value===n&&e.splice(a,1)}))}return t={getCustomInitialTrackSelectionFunction:function(){return d},setCustomInitialTrackSelectionFunction:function(t){d=t},resetCustomInitialTrackSelectionFunction:function(){d=null},getLicenseResponseFilters:function(){return c},getLicenseRequestFilters:function(){return u},getCustomCapabilitiesFilters:function(){return f},registerCustomCapabilitiesFilter:function(t){f.push(t)},registerLicenseResponseFilter:function(t){c.push(t)},registerLicenseRequestFilter:function(t){u.push(t)},unregisterCustomCapabilitiesFilter:function(t){b(f,t)},unregisterLicenseResponseFilter:function(t){b(c,t)},unregisterLicenseRequestFilter:function(t){b(u,t)},addAbrCustomRule:function(t,e,n){if("string"!=typeof t||t!==l.Z.RULES_TYPES.ABANDON_FRAGMENT_RULES&&t!==l.Z.RULES_TYPES.QUALITY_SWITCH_RULES||"string"!=typeof e)throw l.Z.BAD_ARGUMENT_ERROR;var r=y(e);-1===r?m.push({type:t,rulename:e,rule:n}):(m[r].type=t,m[r].rule=n)},removeAllAbrCustomRule:function(){m=[]},removeAbrCustomRule:function(t){if(t){var e=y(t);-1!==e&&m.splice(e,1)}else m=[]},getAbrCustomRules:function(){return m},addRequestInterceptor:function(t){a.push(t)},addResponseInterceptor:function(t){s.push(t)},removeRequestInterceptor:function(t){b(a,t)},removeResponseInterceptor:function(t){b(s,t)},getRequestInterceptors:function(){return a},getResponseInterceptors:function(){return s},addUTCTimingSource:v,removeUTCTimingSource:E,getUTCTimingSources:function(){return e},clearDefaultUTCTimingSources:function(){e=[]},restoreDefaultUTCTimingSources:function(){var t=p.get().streaming.utcSynchronization.defaultTimingSource;v(t.scheme,t.value)},setXHRWithCredentialsForType:function t(e,r){e?n[e]=!!r:Object.keys(n).forEach((function(e){t(e,r)}))},getXHRWithCredentialsForType:function(t){var e=n[t];return void 0===e?n.default:e},setConfig:function(){},reset:function(){h()}},n={default:!1},h(),t}s.__dashjs_factory_name="CustomParametersModel",e.Z=a.Z.getSingletonFactory(s)},4395:function(t,e,n){n.d(e,{default:function(){return ne}});var r=n(3562);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===a(o)?o:String(o)),r)}var i,o}var o={prefixes:["clearkey","dashif","ck"]},l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,a=[{key:"findMp4ProtectionElement",value:function(t){for(var e=null,n=0;n<t.length;++n){var a=t[n];a.schemeIdUri&&a.schemeIdUri.toLowerCase()===r.Z.MP4_PROTECTION_SCHEME&&a.value&&("cenc"===a.value.toLowerCase()||"cbcs"===a.value.toLowerCase())&&(e=a)}return e}},{key:"getPSSHData",value:function(t){var e=8,n=new DataView(t),r=n.getUint8(e);return e+=20,r>0&&(e+=4+16*n.getUint32(e)),e+=4,t.slice(e)}},{key:"getPSSHForKeySystem",value:function(e,n){var r=t.parsePSSHList(n);return e&&r.hasOwnProperty(e.uuid.toLowerCase())?r[e.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(t,e){return"pssh"in t&&t.pssh?(t.pssh.__text=t.pssh.__text.replace(/\r?\n|\r/g,"").replace(/\s+/g,""),e.decodeArray(t.pssh.__text).buffer):null}},{key:"parsePSSHList",value:function(t){if(null==t)return[];for(var e=new DataView(t.buffer||t),n={},r=0;;){var a,i,o=void 0,l=r;if(r>=e.buffer.byteLength)break;if(a=r+e.getUint32(r),r+=4,1886614376===e.getUint32(r))if(r+=4,0===(i=e.getUint8(r))||1===i){r++,r+=3,o="";var s=void 0,u=void 0;for(s=0;s<4;s++)o+=1===(u=e.getUint8(r+s).toString(16)).length?"0"+u:u;for(r+=4,o+="-",s=0;s<2;s++)o+=1===(u=e.getUint8(r+s).toString(16)).length?"0"+u:u;for(r+=2,o+="-",s=0;s<2;s++)o+=1===(u=e.getUint8(r+s).toString(16)).length?"0"+u:u;for(r+=2,o+="-",s=0;s<2;s++)o+=1===(u=e.getUint8(r+s).toString(16)).length?"0"+u:u;for(r+=2,o+="-",s=0;s<6;s++)o+=1===(u=e.getUint8(r+s).toString(16)).length?"0"+u:u;r+=6,r+=4,n[o=o.toLowerCase()]=e.buffer.slice(l,a),r=a}else r=a;else r=a}return n}},{key:"getLicenseServerUrlFromMediaInfo",value:function(t,e){try{if(!t||0===t.length)return null;for(var n=0,r=null;n<t.length&&!r;){var a=t[n];if(a&&a.contentProtection&&a.contentProtection.length>0){var i=a.contentProtection.filter((function(t){return t.schemeIdUri&&t.schemeIdUri===e}));if(i&&i.length>0)for(var l=0;l<i.length&&!r;){var s=i[l];s.laUrl&&s.laUrl.__prefix&&o.prefixes.includes(s.laUrl.__prefix)&&s.laUrl.__text&&(r=s.laUrl.__text),l+=1}}n+=1}return r}catch(t){return null}}}],(n=null)&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===s(i)?i:String(i)),r)}var a,i}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=c((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.contentType=e,this.robustness=n}));function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==d(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===d(i)?i:String(i)),r)}var a,i}function g(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var p=g((function t(e,n,r,a,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initDataTypes=["cenc"],e&&e.length&&(this.audioCapabilities=e),n&&n.length&&(this.videoCapabilities=n),this.distinctiveIdentifier=r,this.stateState=a,this.sessionTypes=i}));function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===h(i)?i:String(i)),r)}var a,i}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=E(t);if(e){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var _=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(i,t);var e,n,r,a=v(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).MEDIA_KEYERR_CODE=100,t.MEDIA_KEYERR_UNKNOWN_CODE=101,t.MEDIA_KEYERR_CLIENT_CODE=102,t.MEDIA_KEYERR_SERVICE_CODE=103,t.MEDIA_KEYERR_OUTPUT_CODE=104,t.MEDIA_KEYERR_HARDWARECHANGE_CODE=105,t.MEDIA_KEYERR_DOMAIN_CODE=106,t.MEDIA_KEY_MESSAGE_ERROR_CODE=107,t.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE=108,t.SERVER_CERTIFICATE_UPDATED_ERROR_CODE=109,t.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE=110,t.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE=111,t.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE=112,t.KEY_SESSION_CREATED_ERROR_CODE=113,t.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE=114,t.MEDIA_KEYERR_UNKNOWN_MESSAGE="An unspecified error occurred. This value is used for errors that don't match any of the other codes.",t.MEDIA_KEYERR_CLIENT_MESSAGE="The Key System could not be installed or updated.",t.MEDIA_KEYERR_SERVICE_MESSAGE="The message passed into update indicated an error from the license service.",t.MEDIA_KEYERR_OUTPUT_MESSAGE="There is no available output device with the required characteristics for the content protection system.",t.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE="A hardware configuration change caused a content protection error.",t.MEDIA_KEYERR_DOMAIN_MESSAGE="An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain.",t.MEDIA_KEY_MESSAGE_ERROR_MESSAGE="Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!",t.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE="DRM: Empty key message from CDM",t.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE="Error updating server certificate -- ",t.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE="DRM: KeyStatusChange error! -- License has expired",t.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE="DRM: No license server URL specified!",t.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE="DRM: KeySystem Access Denied! -- ",t.KEY_SESSION_CREATED_ERROR_MESSAGE="DRM: unable to create session! --",t.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE="DRM: licenser error! --",t}return e=i,n&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(5156).Z)),w=n(7665);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==T(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===T(i)?i:String(i)),r)}var a,i}function k(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var A=k((function t(e,n,r,a,i,o,l,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e,this.method=n,this.responseType=r,this.headers=a,this.withCredentials=i,this.messageType=o,this.sessionId=l,this.data=s}));function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==I(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===I(i)?i:String(i)),r)}var a,i}function N(t,e,n){return e&&R(t.prototype,e),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var C=N((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e,this.headers=n,this.data=r})),x=n(4019),D=n(4294),O=n(3814),z=n(145);function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function M(t){var e,n,r,a,i,o,s,u,c,d,m,g=(t=t||{}).protectionKeyController,h=t.protectionModel,b=t.eventBus,y=t.events,v=t.debug,E=t.BASE64,T=t.constants,S=[],k=t.cmcdModel,I=t.settings,R=t.customParametersModel;function N(){if(!(b&&b.hasOwnProperty("on")&&g&&g.hasOwnProperty("getSupportedKeySystemsFromContentProtection")))throw new Error("Missing config parameter(s)")}function z(t,e){u||c?u&&M():function(t,e){if(!c){c=!0;var r,a=[];t=t.sort((function(e,n){return(i&&i[e.ks.systemString]&&i[e.ks.systemString].priority>=0?i[e.ks.systemString].priority:t.length)-(i&&i[n.ks.systemString]&&i[n.ks.systemString].priority>=0?i[n.ks.systemString].priority:t.length)}));for(var o=0;o<t.length;o++){var l=Z(t[o]);a.push({ks:t[o].ks,configs:[l],protData:t[o].protData})}h.requestKeySystemAccess(a).then((function(t){var e=(r=t.data).mksa&&r.mksa.selectedSystemString?r.mksa.selectedSystemString:r.keySystem.systemString;return n.info("DRM: KeySystem Access Granted for system string ("+e+")!  Selecting key system..."),h.selectKeySystem(r)})).then((function(t){if(u=t,c=!1,h){b.trigger(y.KEY_SYSTEM_SELECTED,{data:r});var e=U(u);e&&e.serverCertificate&&e.serverCertificate.length>0&&h.setServerCertificate(E.decodeArray(e.serverCertificate).buffer),M()}})).catch((function(t){u=null,c=!1,e||b.trigger(y.KEY_SYSTEM_SELECTED,{data:null,error:new w.Z(_.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE,_.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE+"Error selecting key system! -- "+t.error)})}))}}(t,e)}function M(){for(var t,e=0;e<r.length;e++)for(t=0;t<r[e].length;t++)if(u===r[e][t].ks){L(r[e][t]);break}r=[]}function L(t){if(g.isClearKey(u)&&t.protData&&t.protData.hasOwnProperty("clearkeys")&&0!==Object.keys(t.protData.clearkeys).length){var e={kids:Object.keys(t.protData.clearkeys)};t.initData=(new TextEncoder).encode(JSON.stringify(e))}t.sessionId?j(t):null!==t.initData&&F(t)}function j(t){N(),h.loadKeySession(t)}function F(t){if(!t||!function(t){if(!t)return!1;try{for(var e=h.getSessions(),n=0;n<e.length;n++)if(e[n].getKeyId()===t)return!0;return!1}catch(t){return!1}}(t.keyId)){var e=l.getPSSHForKeySystem(u,t?t.initData:null);if(e){if(q(e))return;try{t.initData=e,h.createKeySession(t)}catch(t){b.trigger(y.KEY_SESSION_CREATED,{data:null,error:new w.Z(_.KEY_SESSION_CREATED_ERROR_CODE,_.KEY_SESSION_CREATED_ERROR_MESSAGE+t.message)})}}else t&&t.initData?h.createKeySession(t):b.trigger(y.KEY_SESSION_CREATED,{data:null,error:new w.Z(_.KEY_SESSION_CREATED_ERROR_CODE,_.KEY_SESSION_CREATED_ERROR_MESSAGE+"Selected key system is "+(u?u.systemString:null)+".  needkey/encrypted event contains no initData corresponding to that key system!")})}}function U(t){if(t){var e=t.systemString;if(i)return e in i?i[e]:null}return null}function q(t){if(!t)return!1;try{for(var e=h.getAllInitData(),r=0;r<e.length;r++)if(g.initDataEquals(t,e[r]))return n.debug("DRM: Ignoring initData because we have already seen it!"),!0;return!1}catch(t){return!1}}function B(t){N(),t?(h.setMediaElement(t),b.on(y.NEED_KEY,$,e)):null===t&&(h.setMediaElement(t),b.off(y.NEED_KEY,$,e))}function Z(t){var e=t.protData,n=[],r=[],i=e&&e.audioRobustness&&e.audioRobustness.length>0?e.audioRobustness:s,o=e&&e.videoRobustness&&e.videoRobustness.length>0?e.videoRobustness:s,l=t.sessionType,u=e&&e.distinctiveIdentifier?e.distinctiveIdentifier:"optional",c=e&&e.stateState?e.stateState:"temporary"===l?"optional":"required";return a.forEach((function(t){t.type===T.AUDIO?n.push(new f(t.codec,i)):t.type===T.VIDEO&&r.push(new f(t.codec,o))})),new p(n,r,u,c,[l])}function G(t){t.error?b.trigger(y.KEY_STATUSES_CHANGED,{data:null,error:t.error}):n.debug("DRM: key status = "+t.status)}function H(t){n.debug("DRM: onKeyMessage");var e=t.data;b.trigger(y.KEY_MESSAGE,{data:e});var r=e.messageType?e.messageType:"license-request",i=e.message,o=e.sessionToken,s=U(u),c=g.getLicenseServerModelInstance(u,s,r),f={sessionToken:o,messageType:r};if(i&&0!==i.byteLength){if(!c)return n.debug("DRM: License server request not required for this message (type = "+t.data.messageType+").  Session ID = "+o.getSessionId()),void Y(f);if(g.isClearKey(u)){var d=g.processClearKeyLicenseRequest(u,s,i);if(d&&d.keyPairs&&d.keyPairs.length>0)return n.debug("DRM: ClearKey license request handled by application!"),Y(f),void h.updateKeySession(o,d)}!function(t,e,n){var r=t.sessionToken,i=t.messageType?t.messageType:"license-request",o={sessionToken:r,messageType:i},s=u?u.systemString:null,c=function(t,e,n,r,i){var o=null,s=r.message;if(t&&t.serverURL){var c=t.serverURL;"string"==typeof c&&""!==c?o=c:"object"===P(c)&&c.hasOwnProperty(e)&&(o=c[e])}else if(t&&t.laURL&&""!==t.laURL)o=t.laURL;else if(!(o=l.getLicenseServerUrlFromMediaInfo(a,u.schemeIdURI))&&!g.isClearKey(u)){var f=l.getPSSHData(n.initData);(o=u.getLicenseServerURLFromInitData(f))||(o=r.laURL)}return o=i.getServerURLFromMessage(o,s,e)}(n,i,r,t,e);if(c){var f={},d=!1;n&&W(f,n.httpRequestHeaders);var m=t.message,p=u.getRequestHeadersFromMessage(m);W(f,p),Object.keys(f).forEach((function(t){"authorization"===t.toLowerCase()&&(d=!0)})),n&&"boolean"==typeof n.withCredentials&&(d=n.withCredentials);var b=function(t){if(h)if(t.status>=200&&t.status<=299){var n=D.Z.parseHttpHeaders(t.getAllResponseHeaders?t.getAllResponseHeaders():null),a=new C(t.responseURL,n,t.response);Q(R.getLicenseResponseFilters(),a).then((function(){var n=e.getLicenseMessage(a.data,s,i);null!==n?(Y(o),h.updateKeySession(r,n)):X(t,o,s,i,e)}))}else X(t,o,s,i,e)},y=function(t){Y(o,new w.Z(_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+s+' update, XHR aborted. status is "'+t.statusText+'" ('+t.status+"), readyState is "+t.readyState))},v=function(t){Y(o,new w.Z(_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+s+' update, XHR error. status is "'+t.statusText+'" ('+t.status+"), readyState is "+t.readyState))},E=u.getLicenseRequestFromMessage(m),T=e.getHTTPMethod(i),S=e.getResponseType(s,i),k=n&&!isNaN(n.httpTimeout)?n.httpTimeout:8e3,N=r.getSessionId()||null,O=new A(c,T,S,f,d,i,N,E),z=isNaN(I.get().streaming.retryAttempts[x.w.LICENSE])?3:I.get().streaming.retryAttempts[x.w.LICENSE];Q(R.getLicenseRequestFilters(),O).then((function(){V(O,z,k,b,y,v)}))}else Y(o,new w.Z(_.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE,_.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE))}(e,c,s)}else Y(f,new w.Z(_.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE,_.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE))}function Y(t,e){b.trigger(y.LICENSE_REQUEST_COMPLETE,{data:t,error:e})}function V(t,e,r,a,i,o){var l=new XMLHttpRequest;if(I.get().streaming.cmcd&&I.get().streaming.cmcd.enabled&&I.get().streaming.cmcd.mode===O.Z.CMCD_MODE_QUERY){var s=k.getQueryParameter({url:t.url,type:x.w.LICENSE});s&&(t.url=D.Z.addAditionalQueryParameterToUrl(t.url,[s]))}for(var u in l.open(t.method,t.url,!0),l.responseType=t.responseType,l.withCredentials=t.withCredentials,r>0&&(l.timeout=r),t.headers)l.setRequestHeader(u,t.headers[u]);if(I.get().streaming.cmcd&&I.get().streaming.cmcd.enabled&&I.get().streaming.cmcd.mode===O.Z.CMCD_MODE_HEADER){var c=k.getHeaderParameters({url:t.url,type:x.w.LICENSE});if(c)for(var f in c){var g=c[f];g&&l.setRequestHeader(f,g)}}var p=function(){e--;var n=isNaN(I.get().streaming.retryIntervals[x.w.LICENSE])?1e3:I.get().streaming.retryIntervals[x.w.LICENSE];m=setTimeout((function(){V(t,e,r,a,i,o)}),n)};l.onload=function(){d=null,this.status>=200&&this.status<=299||e<=0?a(this):(n.warn("License request failed ("+this.status+"). Retrying it... Pending retries: "+e),p())},l.ontimeout=l.onerror=function(){d=null,e<=0?o(this):(n.warn("License request network request failed . Retrying it... Pending retries: "+e),p())},l.onabort=function(){i(this)},b.trigger(y.LICENSE_REQUEST_SENDING,{url:t.url,headers:t.headers,payload:t.data,sessionId:t.sessionId}),d=l,l.send(t.data)}function K(){d&&(d.onloadend=d.onerror=d.onprogress=void 0,d.abort(),d=null),m&&(clearTimeout(m),m=null)}function W(t,e){if(e)for(var n in e)t[n]=e[n]}function X(t,e,n,r,a){var i="NONE",o=null;t.response&&(i=a.getErrorResponse(t.response,n,r),o={serverResponse:t.response||null,responseCode:t.status||null,responseText:t.statusText||null}),Y(e,new w.Z(_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,_.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+n+' update, XHR complete. status is "'+t.statusText+'" ('+t.status+"), readyState is "+t.readyState+".  Response is "+i,o))}function Q(t,e){return t?t.reduce((function(t,n){return t.then((function(){return n(e)}))}),Promise.resolve()):Promise.resolve()}function $(t,e){if(!I.get().streaming.protection.ignoreEmeEncryptedEvent){if(n.debug("DRM: onNeedKey"),"cenc"!==t.key.initDataType)return void n.warn("DRM:  Only 'cenc' initData is supported!  Ignoring initData of type: "+t.key.initDataType);if(0===a.length&&(n.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"),(e=void 0===e?1:e+1)<5))return void S.push(setTimeout((function(){$(t,e)}),500));var s=t.key.initData;if(ArrayBuffer.isView(s)&&(s=s.buffer),u){var c=l.getPSSHForKeySystem(u,s);if(c&&q(c))return}n.debug("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(s)));var f=g.getSupportedKeySystemsFromSegmentPssh(s,i,o);if(0===f.length)return void n.debug("DRM: Received needkey event with initData, but we don't support any of the key systems!");!function(t){r.push(t),z(t,!1)}(f)}}return e={initializeForMedia:function(t){if(!t)throw new Error("mediaInfo can not be null or undefined");N(),a.push(t)},clearMediaInfoArray:function(){a=[]},handleKeySystemFromManifest:function(){if(a&&0!==a.length){var t=[];a.forEach((function(e){var n=g.getSupportedKeySystemsFromContentProtection(e.contentProtection,i,o);n.length>0&&(0===t.length&&(t=n),r.push(n))})),t&&t.length>0&&z(t,!0)}},createKeySession:F,loadKeySession:j,removeKeySession:function(t){N(),h.removeKeySession(t)},closeKeySession:function(t){N(),h.closeKeySession(t)},setServerCertificate:function(t){N(),h.setServerCertificate(t)},setMediaElement:B,setSessionType:function(t){o=t},setRobustnessLevel:function(t){s=t},setProtectionData:function(t){i=t,g.setProtectionData(t)},getSupportedKeySystemsFromContentProtection:function(t){return N(),g.getSupportedKeySystemsFromContentProtection(t,i,o)},getKeySystems:function(){return g?g.getKeySystems():[]},setKeySystems:function(t){g&&g.setKeySystems(t)},stop:function(){K(),h&&h.stop()},reset:function(){b.off(y.INTERNAL_KEY_MESSAGE,H,e),b.off(y.INTERNAL_KEY_STATUS_CHANGED,G,e),N(),K(),B(null),u=null,c=!1,h&&(h.reset(),h=null),S.forEach((function(t){return clearTimeout(t)})),S=[],a=[],r=[]}},n=v.getLogger(e),r=[],a=[],o="temporary",s="",d=null,m=null,b.on(y.INTERNAL_KEY_MESSAGE,H,e),b.on(y.INTERNAL_KEY_STATUS_CHANGED,G,e),e}M.__dashjs_factory_name="ProtectionController";var L=z.Z.getClassFactory(M);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==j(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===j(i)?i:String(i)),r)}var a,i}function U(t,e,n){return e&&F(t.prototype,e),n&&F(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var q=U((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.keyID=e,this.key=n}));function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==B(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===B(i)?i:String(i)),r)}var a,i}var G=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n&&"persistent"!==n&&"temporary"!==n)throw new Error("Invalid ClearKey key set type!  Must be one of 'persistent' or 'temporary'");this.keyPairs=e,this.type=n}var e,n,r;return e=t,(n=[{key:"toJWK",value:function(){var t,e=this.keyPairs.length,n={keys:[]};for(t=0;t<e;t++){var r={kty:"oct",alg:"A128KW",kid:this.keyPairs[t].keyID,k:this.keyPairs[t].key};n.keys.push(r)}this.type&&(n.type=this.type);var a=JSON.stringify(n),i=a.length,o=new ArrayBuffer(i),l=new Uint8Array(o);for(t=0;t<i;t++)l[t]=a.charCodeAt(t);return o}}])&&Z(e.prototype,n),r&&Z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),H="org.w3.clearkey",Y="com.widevine.alpha",V="com.microsoft.playready",K="com.microsoft.playready.recommendation",W="cenc",X="keyids",Q="e2719d58-a985-b3c9-781a-b030af78d30e",$=H,J="urn:uuid:"+Q;function tt(t){var e=(t=t||{}).BASE64;return{uuid:Q,schemeIdURI:J,systemString:$,getInitData:function(t,n){try{var r=l.parseInitDataFromContentProtection(t,e);if(!r&&n){var a={kids:[function(t){try{var e=t.replace(/-/g,"");return(e=btoa(e.match(/\w{2}/g).map((function(t){return String.fromCharCode(parseInt(t,16))})).join(""))).replace(/=/g,"").replace(/\//g,"_").replace(/\+/g,"-")}catch(t){return null}}(n.cencDefaultKid)]};r=(new TextEncoder).encode(JSON.stringify(a))}return r}catch(t){return null}},getRequestHeadersFromMessage:function(){return{"Content-Type":"application/json"}},getLicenseRequestFromMessage:function(t){return JSON.stringify(JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))))},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(t,e){var n=null;if(t){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))),a=[],i=0;i<r.kids.length;i++){var o=r.kids[i],l=t.clearkeys&&t.clearkeys.hasOwnProperty(o)?t.clearkeys[o]:null;if(!l)throw new Error("DRM: ClearKey keyID ("+o+") is not known!");a.push(new q(o,l))}n=new G(a)}return n}}}tt.__dashjs_factory_name="KeySystemClearKey";var et=dashjs.FactoryMaker.getSingletonFactory(tt),nt="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",rt=H,at="urn:uuid:"+nt;function it(t){var e,n=t.BASE64,r=t.debug.getLogger(e);return e={uuid:nt,schemeIdURI:at,systemString:rt,getInitData:function(t){return l.parseInitDataFromContentProtection(t,n)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(t){return new Uint8Array(t)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(t,e){var n=null;if(t){for(var a=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))),i=[],o=0;o<a.kids.length;o++){var l=a.kids[o],s=t.clearkeys&&t.clearkeys.hasOwnProperty(l)?t.clearkeys[l]:null;if(!s)throw new Error("DRM: ClearKey keyID ("+l+") is not known!");i.push(new q(l,s))}n=new G(i),r.warn("ClearKey schemeIdURI is using W3C Common PSSH systemID (1077efec-c0b2-4d02-ace3-3c1e52e2fb4b) in Content Protection. See DASH-IF IOP v4.1 section 7.6.2.4")}return n}}}it.__dashjs_factory_name="KeySystemW3CClearKey";var ot=dashjs.FactoryMaker.getSingletonFactory(it),lt="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",st=Y,ut="urn:uuid:"+lt;function ct(t){var e=(t=t||{}).BASE64;return{uuid:lt,schemeIdURI:ut,systemString:st,getInitData:function(t){return l.parseInitDataFromContentProtection(t,e)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(t){return new Uint8Array(t)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null}}}ct.__dashjs_factory_name="KeySystemWidevine";var ft=dashjs.FactoryMaker.getSingletonFactory(ct),dt="9a04f079-9840-4286-ab92-e65be0885f95",mt=V,gt="urn:uuid:"+dt;function pt(t){var e="utf-16",n=(t=t||{}).BASE64,r=t.settings;function a(){if(!n||!n.hasOwnProperty("decodeArray")||!n.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}return{uuid:dt,schemeIdURI:gt,systemString:mt,getInitData:function(t){var e,r,i,o,s,u=new Uint8Array([112,115,115,104,0,0,0,0]),c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),f=0,d=null;if(a(),!t)return null;if("pssh"in t&&t.pssh)return l.parseInitDataFromContentProtection(t,n);if("pro"in t&&t.pro)d=n.decodeArray(t.pro.__text);else{if(!("prheader"in t)||!t.prheader)return null;d=n.decodeArray(t.prheader.__text)}return e=d.length,r=4+u.length+c.length+4+e,i=new ArrayBuffer(r),o=new Uint8Array(i),(s=new DataView(i)).setUint32(f,r),f+=4,o.set(u,f),f+=u.length,o.set(c,f),f+=c.length,s.setUint32(f,e),f+=4,o.set(d,f),f+=e,o.buffer},getRequestHeadersFromMessage:function(t){var n,a,i={},o=new DOMParser;if(r&&r.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===e&&t&&t.byteLength%2==1)return i["Content-Type"]="text/xml; charset=utf-8",i;var l="utf-16"===e?new Uint16Array(t):new Uint8Array(t);n=String.fromCharCode.apply(null,l);for(var s=(a=o.parseFromString(n,"application/xml")).getElementsByTagName("name"),u=a.getElementsByTagName("value"),c=0;c<s.length;c++)i[s[c].childNodes[0].nodeValue]=u[c].childNodes[0].nodeValue;return i.hasOwnProperty("Content")&&(i["Content-Type"]=i.Content,delete i.Content),i.hasOwnProperty("Content-Type")||(i["Content-Type"]="text/xml; charset=utf-8"),i},getLicenseRequestFromMessage:function(t){var i=null,o=new DOMParser;if(r&&r.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===e&&t&&t.byteLength%2==1)return t;var l="utf-16"===e?new Uint16Array(t):new Uint8Array(t);a();var s=String.fromCharCode.apply(null,l),u=o.parseFromString(s,"application/xml");if(!u.getElementsByTagName("PlayReadyKeyMessage")[0])return t;var c=u.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;return c&&(i=n.decode(c)),i},getLicenseServerURLFromInitData:function(t){if(t)for(var e=new DataView(t),n=e.getUint16(4,!0),r=6,a=new DOMParser,i=0;i<n;i++){var o=e.getUint16(r,!0);r+=2;var l=e.getUint16(r,!0);if(r+=2,1===o){var s=t.slice(r,r+l),u=String.fromCharCode.apply(null,new Uint16Array(s)),c=a.parseFromString(u,"application/xml");if(c.getElementsByTagName("LA_URL")[0]){var f=c.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(f)return f}if(c.getElementsByTagName("LUI_URL")[0]){var d=c.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(d)return d}}else r+=l}return null},getCDMData:function(t){var e,r,i,o;if(a(),!t)return null;for(e=[],o=0;o<t.length;++o)e.push(t.charCodeAt(o)),e.push(0);for(e=String.fromCharCode.apply(null,e),e=n.encode(e),r='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">%CUSTOMDATA%</CustomData></LicenseAcquisition></PlayReadyCDMData>'.replace("%CUSTOMDATA%",e),i=[],o=0;o<r.length;++o)i.push(r.charCodeAt(o)),i.push(0);return new Uint8Array(i).buffer},setPlayReadyMessageFormat:function(t){if("utf-8"!==t&&"utf-16"!==t)throw new Error('Specified message format is not one of "utf-8" or "utf-16"');e=t}}}pt.__dashjs_factory_name="KeySystemPlayReady";var ht=dashjs.FactoryMaker.getSingletonFactory(pt);function bt(t){var e=(t=t||{}).BASE64,n={};return n[Y]={responseType:"json",getLicenseMessage:function(t){return e.decodeArray(t.license)},getErrorResponse:function(t){return t}},n[V]={responseType:"arraybuffer",getLicenseMessage:function(t){return t},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}},{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(t){return n[t].responseType},getLicenseMessage:function(t,r){return function(){if(!e||!e.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}(),n[r].getLicenseMessage(t)},getErrorResponse:function(t,e){return n[e].getErrorResponse(t)}}}bt.__dashjs_factory_name="DRMToday";var yt=dashjs.FactoryMaker.getSingletonFactory(bt);function vt(){var t="http://schemas.xmlsoap.org/soap/envelope/";function e(t){var e=String.fromCharCode.apply(null,new Uint8Array(t));return decodeURIComponent(escape(e))}function n(n){if(window.DOMParser){var r=e(n),a=(new window.DOMParser).parseFromString(r,"text/xml"),i=a?a.getElementsByTagNameNS(t,"Envelope")[0]:null,o=i?i.getElementsByTagNameNS(t,"Body")[0]:null;if(o&&o.getElementsByTagNameNS(t,"Fault")[0])return null}return n}function r(n){var r="",a="",i="",o=-1,l=-1;if(window.DOMParser){var s=e(n),u=(new window.DOMParser).parseFromString(s,"text/xml"),c=u?u.getElementsByTagNameNS(t,"Envelope")[0]:null,f=c?c.getElementsByTagNameNS(t,"Body")[0]:null,d=f?f.getElementsByTagNameNS(t,"Fault")[0]:null,m=d?d.getElementsByTagName("detail")[0]:null,g=m?m.getElementsByTagName("Exception")[0]:null,p=null;if(null===d)return s;r=(p=d.getElementsByTagName("faultstring")[0].firstChild)?p.nodeValue:null,null!==g&&(a=(p=g.getElementsByTagName("StatusCode")[0])?p.firstChild.nodeValue:null,o=(i=(p=g.getElementsByTagName("Message")[0])?p.firstChild.nodeValue:null)?i.lastIndexOf("[")+1:-1,l=i?i.indexOf("]"):-1,i=i?i.substring(o,l):"")}var h="code: ".concat(a,", name: ").concat(r);return i&&(h+=", message: ".concat(i)),h}return{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(t){return n.call(this,t)},getErrorResponse:function(t){return r.call(this,t)}}}vt.__dashjs_factory_name="PlayReady";var Et=z.Z.getSingletonFactory(vt);function _t(){return{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(t){return t},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}}}_t.__dashjs_factory_name="Widevine";var wt=dashjs.FactoryMaker.getSingletonFactory(_t);function Tt(){return{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"json"},getLicenseMessage:function(t){if(!t.hasOwnProperty("keys"))return null;for(var e=[],n=0;n<t.keys.length;n++){var r=t.keys[n],a=r.kid.replace(/=/g,""),i=r.k.replace(/=/g,"");e.push(new q(a,i))}return new G(e)},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}}}Tt.__dashjs_factory_name="ClearKey";var St=dashjs.FactoryMaker.getSingletonFactory(Tt);function kt(){var t,e,n,r,a,i,o,s,u=this.context;function c(t,e){return e&&t in e?e[t]:null}function f(t,e){return t&&t.sessionId?t.sessionId:e&&e.sessionId?e.sessionId:null}function d(t,e){return t&&t.sessionType?t.sessionType:e}return t={initialize:function(){var t;r=[],t=ht(u).getInstance({BASE64:a,settings:i}),r.push(t),t=ft(u).getInstance({BASE64:a}),r.push(t),t=et(u).getInstance({BASE64:a}),r.push(t),o=t,t=ot(u).getInstance({BASE64:a,debug:e}),r.push(t),s=t},setProtectionData:function(t){for(var e,n,a=0;a<r.length;a++){var i=r[a];i.hasOwnProperty("init")&&i.init((e=i.systemString,n=void 0,n=null,t&&(n=e in t?t[e]:null),n))}},isClearKey:function(t){return t===o||t===s},initDataEquals:function(t,e){if(t.byteLength===e.byteLength){for(var n=new Uint8Array(t),r=new Uint8Array(e),a=0;a<n.length;a++)if(n[a]!==r[a])return!1;return!0}return!1},getKeySystems:function(){return r},setKeySystems:function(t){r=t},getKeySystemBySystemString:function(t){for(var e=0;e<r.length;e++)if(r[e].systemString===t)return r[e];return null},getSupportedKeySystemsFromContentProtection:function(t,e,n){var a,i,o,s,u=[];if(!t||!t.length)return u;var m=l.findMp4ProtectionElement(t);for(o=0;o<r.length;++o){var g=c((i=r[o]).systemString,e);for(s=0;s<t.length;++s)if((a=t[s]).schemeIdUri.toLowerCase()===i.schemeIdURI){var p=i.getInitData(a,m);u.push({ks:r[o],keyId:a.keyId,initData:p,protData:g,cdmData:i.getCDMData(g?g.cdmData:null),sessionId:f(g,a),sessionType:d(g,n)})}}return u},getSupportedKeySystemsFromSegmentPssh:function(t,e,n){for(var a,i=[],o=l.parsePSSHList(t),s=0;s<r.length;++s){var u=c((a=r[s]).systemString,e);a.uuid in o&&i.push({ks:a,initData:o[a.uuid],protData:u,cdmData:a.getCDMData(u?u.cdmData:null),sessionId:f(u),sessionType:d(u,n)})}return i},getLicenseServerModelInstance:function(t,e,n){if("license-release"===n||"individualization-request"===n)return null;var r=null;return e&&e.hasOwnProperty("drmtoday")?r=yt(u).getInstance({BASE64:a}):t.systemString===Y?r=wt(u).getInstance():t.systemString===V?r=Et(u).getInstance():t.systemString===H&&(r=St(u).getInstance()),r},processClearKeyLicenseRequest:function(t,e,r){try{return t.getClearKeysFromProtectionData(e,r)}catch(t){return n.error("Failed to retrieve clearkeys from ProtectionData"),null}},setConfig:function(r){r&&(r.debug&&(e=r.debug,n=e.getLogger(t)),r.BASE64&&(a=r.BASE64),r.settings&&(i=r.settings))}},t}kt.__dashjs_factory_name="ProtectionKeyController";var At=dashjs.FactoryMaker.getSingletonFactory(kt);function It(t){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==It(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===It(i)?i:String(i)),r)}var a,i}function Nt(t,e){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nt(t,e)}function Ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xt(t);if(e){var a=xt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===It(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function xt(t){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xt(t)}var Dt=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nt(t,e)}(i,t);var e,n,r,a=Ct(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this)).INTERNAL_KEY_MESSAGE="internalKeyMessage",t.INTERNAL_KEY_STATUS_CHANGED="internalkeyStatusChanged",t.KEY_ADDED="public_keyAdded",t.KEY_ERROR="public_keyError",t.KEY_MESSAGE="public_keyMessage",t.KEY_SESSION_CLOSED="public_keySessionClosed",t.KEY_SESSION_CREATED="public_keySessionCreated",t.KEY_SESSION_REMOVED="public_keySessionRemoved",t.KEY_STATUSES_CHANGED="public_keyStatusesChanged",t.KEY_SYSTEM_ACCESS_COMPLETE="public_keySystemAccessComplete",t.KEY_SYSTEM_SELECTED="public_keySystemSelected",t.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",t.LICENSE_REQUEST_SENDING="public_licenseRequestSending",t.NEED_KEY="needkey",t.PROTECTION_CREATED="public_protectioncreated",t.PROTECTION_DESTROYED="public_protectiondestroyed",t.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",t.TEARDOWN_COMPLETE="protectionTeardownComplete",t.VIDEO_ELEMENT_SELECTED="videoElementSelected",t.KEY_SESSION_UPDATED="public_keySessionUpdated",t}return e=i,n&&Rt(e.prototype,n),r&&Rt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(n(6424).Z));function Ot(t){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot(t)}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Ot(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Ot(i)?i:String(i)),r)}var a,i}function Pt(t,e,n){return e&&zt(t.prototype,e),n&&zt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Mt=Pt((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initData=e,this.initDataType=n}));function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==Lt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Lt(i)?i:String(i)),r)}var a,i}function Ft(t,e,n){return e&&jt(t.prototype,e),n&&jt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ut=Ft((function t(e,n,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sessionToken=e,this.message=n,this.defaultURL=r,this.messageType=a||"license-request"}));function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(a=r.key,i=void 0,i=function(t,e){if("object"!==qt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==qt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===qt(i)?i:String(i)),r)}var a,i}function Zt(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Gt=Zt((function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.keySystem=e,this.ksConfiguration=n})),Ht={};function Yt(t){t=t||{};var e,n,r,a,i,o,l,s,u=this.context,c=t.eventBus,f=t.events,d=t.debug;function m(t,e,n,r){if(void 0===navigator.requestMediaKeySystemAccess||"function"!=typeof navigator.requestMediaKeySystemAccess){var a="Insecure origins are not allowed";return c.trigger(f.KEY_SYSTEM_ACCESS_COMPLETE,{error:a}),void r({error:a})}var i=t[e].protData&&t[e].protData.systemStringPriority?t[e].protData.systemStringPriority:null,o=t[e].configs,l=t[e].ks,s=l.systemString;(function(t,e){return new Promise((function(n,r){g(t,e,0,n,r)}))})(i||(Ht[s]?Ht[s]:[s]),o).then((function(t){var e="function"==typeof t.getConfiguration?t.getConfiguration():null,r=new Gt(l,e);r.mksa=t,c.trigger(f.KEY_SYSTEM_ACCESS_COMPLETE,{data:r}),n({data:r})})).catch((function(a){if(e+1<t.length)m(t,e+1,n,r);else{var i="Key system access denied! ";c.trigger(f.KEY_SYSTEM_ACCESS_COMPLETE,{error:i+a.message}),r({error:i+a.message})}}))}function g(t,e,r,a,i){var o=t[r];n.debug("Requesting key system access for system string ".concat(o)),navigator.requestMediaKeySystemAccess(o,e).then((function(t){t.selectedSystemString=o,a(t)})).catch((function(n){r+1<t.length?g(t,e,r+1,a,i):i(n)}))}function p(t){if(!t||!t.session)return Promise.resolve;var e=t.session;return e.removeEventListener("keystatuseschange",t),e.removeEventListener("message",t),e.close()}function h(t){for(var e=0;e<o.length;e++)if(o[e]===t){o.splice(e,1);break}}function b(t){var e,n;return t&&t.length>0&&(t[0]&&("string"==typeof t[0]?e=t[0]:n=t[0]),t[1]&&("string"==typeof t[1]?e=t[1]:n=t[1])),{status:e,keyId:n}}function y(t,e){var r={session:t,keyId:e.keyId,initData:e.initData,sessionId:e.sessionId,sessionType:e.sessionType,handleEvent:function(t){switch(t.type){case"keystatuseschange":c.trigger(f.KEY_STATUSES_CHANGED,{data:this}),t.target.keyStatuses.forEach((function(){var t=b(arguments);"expired"===t.status?c.trigger(f.INTERNAL_KEY_STATUS_CHANGED,{error:new w.Z(_.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE,_.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE)}):c.trigger(f.INTERNAL_KEY_STATUS_CHANGED,t)}));break;case"message":var e=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;c.trigger(f.INTERNAL_KEY_MESSAGE,{data:new Ut(this,e,void 0,t.messageType)})}},getKeyId:function(){return this.keyId},getSessionId:function(){return t.sessionId},getSessionType:function(){return this.sessionType},getExpirationTime:function(){return t.expiration},getKeyStatuses:function(){return t.keyStatuses},getUsable:function(){var e=!1;return t.keyStatuses.forEach((function(){"usable"===b(arguments).status&&(e=!0)})),e}};return t.addEventListener("keystatuseschange",r),t.addEventListener("message",r),t.closed.then((function(){h(r),n.debug("DRM: Session closed.  SessionID = "+r.getSessionId()),c.trigger(f.KEY_SESSION_CLOSED,{data:r.getSessionId()})})),o.push(r),r}return e={getAllInitData:function(){for(var t=[],e=0;e<o.length;e++)o[e].initData&&t.push(o[e].initData);return t},getSessions:function(){return o},requestKeySystemAccess:function(t){return new Promise((function(e,n){m(t,0,e,n)}))},selectKeySystem:function(t){return new Promise((function(e,n){t.mksa.createMediaKeys().then((function(e){return r=t.keySystem,i=e,a?a.setMediaKeys(i):Promise.resolve()})).then((function(){e(r)})).catch((function(){n({error:"Error selecting keys system ("+t.keySystem.systemString+")! Could not create MediaKeys -- TODO"})}))}))},setMediaElement:function(t){a!==t&&(a&&(a.removeEventListener("encrypted",l),a.setMediaKeys&&a.setMediaKeys(null)),(a=t)&&(a.addEventListener("encrypted",l),a.setMediaKeys&&i&&a.setMediaKeys(i)))},setServerCertificate:function(t){if(!r||!i)throw new Error("Can not set server certificate until you have selected a key system");i.setServerCertificate(t).then((function(){n.info("DRM: License server certificate successfully updated."),c.trigger(f.SERVER_CERTIFICATE_UPDATED)})).catch((function(t){c.trigger(f.SERVER_CERTIFICATE_UPDATED,{error:new w.Z(_.SERVER_CERTIFICATE_UPDATED_ERROR_CODE,_.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE+t.name)})}))},createKeySession:function(t){if(!r||!i)throw new Error("Can not create sessions until you have selected a key system");var e=i.createSession(t.sessionType),a=y(e,t),o=r.systemString===H&&(t.initData||t.protData&&t.protData.clearkeys)?X:W;e.generateRequest(o,t.initData).then((function(){n.debug("DRM: Session created.  SessionID = "+a.getSessionId()),c.trigger(f.KEY_SESSION_CREATED,{data:a})})).catch((function(t){h(a),c.trigger(f.KEY_SESSION_CREATED,{data:null,error:new w.Z(_.KEY_SESSION_CREATED_ERROR_CODE,_.KEY_SESSION_CREATED_ERROR_MESSAGE+"Error generating key request -- "+t.name)})}))},updateKeySession:function(t,e){var n=t.session;s.isClearKey(r)&&(e=e.toJWK()),n.update(e).then((function(){c.trigger(f.KEY_SESSION_UPDATED)})).catch((function(e){c.trigger(f.KEY_ERROR,{error:new w.Z(_.MEDIA_KEYERR_CODE,"Error sending update() message! "+e.name,t)})}))},loadKeySession:function(t){if(!r||!i)throw new Error("Can not load sessions until you have selected a key system");for(var e=t.sessionId,a=0;a<o.length;a++)if(e===o[a].sessionId)return void n.warn("DRM: Ignoring session ID because we have already seen it!");var l=i.createSession(t.sessionType),s=y(l,t);l.load(e).then((function(t){t?(n.debug("DRM: Session loaded.  SessionID = "+s.getSessionId()),c.trigger(f.KEY_SESSION_CREATED,{data:s})):(h(s),c.trigger(f.KEY_SESSION_CREATED,{data:null,error:new w.Z(_.KEY_SESSION_CREATED_ERROR_CODE,_.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session! Invalid Session ID ("+e+")")}))})).catch((function(t){h(s),c.trigger(f.KEY_SESSION_CREATED,{data:null,error:new w.Z(_.KEY_SESSION_CREATED_ERROR_CODE,_.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session ("+e+")! "+t.name)})}))},removeKeySession:function(t){t.session.remove().then((function(){n.debug("DRM: Session removed.  SessionID = "+t.getSessionId()),c.trigger(f.KEY_SESSION_REMOVED,{data:t.getSessionId()})}),(function(e){c.trigger(f.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+t.getSessionId()+"). "+e.name})}))},closeKeySession:function(t){p(t).catch((function(e){h(t),c.trigger(f.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+t.getSessionId()+") "+e.name})}))},stop:function(){for(var t,e=0;e<o.length;e++)(t=o[e]).getUsable()||(p(t),h(t))},reset:function(){var t,e=o.length;if(0!==e)for(var n=function(t){h(t),0===o.length&&(a?(a.removeEventListener("encrypted",l),a.setMediaKeys(null).then((function(){c.trigger(f.TEARDOWN_COMPLETE)}))):c.trigger(f.TEARDOWN_COMPLETE))},r=0;r<e;r++)!function(e){p(t),n(e)}(t=o[r]);else c.trigger(f.TEARDOWN_COMPLETE)}},n=d.getLogger(e),r=null,a=null,i=null,o=[],s=At(u).getInstance(),l={handleEvent:function(t){if("encrypted"===t.type&&t.initData){var e=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;c.trigger(f.NEED_KEY,{key:new Mt(e,t.initDataType)})}}},e}Ht[V]=[V,K],Ht[Y]=[Y],Ht[H]=[H],Yt.__dashjs_factory_name="ProtectionModel_21Jan2015";var Vt=dashjs.FactoryMaker.getClassFactory(Yt);function Kt(t){t=t||{};var e,n,r,a,i,o,l,s,u,c=this.context,f=t.eventBus,d=t.events,m=t.debug,g=t.api;function h(){try{for(var t=0;t<l.length;t++)b(l[t]);r&&r.removeEventListener(g.needkey,s),f.trigger(d.TEARDOWN_COMPLETE)}catch(t){f.trigger(d.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+t.message})}}function b(t){var e=t.session;e.removeEventListener(g.error,t),e.removeEventListener(g.message,t),e.removeEventListener(g.ready,t),e.removeEventListener(g.close,t);for(var n=0;n<l.length;n++)if(l[n]===t){l.splice(n,1);break}e[g.release]()}function y(){var t=null,e=function(){r.removeEventListener("loadedmetadata",t),r[g.setMediaKeys](i),f.trigger(d.VIDEO_ELEMENT_SELECTED)};r.readyState>=1?e():(t=e.bind(this),r.addEventListener("loadedmetadata",t))}return e={getAllInitData:function(){for(var t=[],e=0;e<l.length;e++)t.push(l[e].initData);return t},getSessions:function(){return l},requestKeySystemAccess:function(t){return new Promise((function(e,n){for(var r=!1,a=0;a<t.length;a++)for(var i=t[a].ks.systemString,o=t[a].configs,l=null,s=null,c=0;c<o.length;c++){var m=o[c].audioCapabilities,h=o[c].videoCapabilities;if(m&&0!==m.length){l=[];for(var b=0;b<m.length;b++)window[g.MediaKeys].isTypeSupported(i,m[b].contentType)&&l.push(m[b])}if(h&&0!==h.length){s=[];for(var y=0;y<h.length;y++)window[g.MediaKeys].isTypeSupported(i,h[y].contentType)&&s.push(h[y])}if(!(!l&&!s||l&&0===l.length||s&&0===s.length)){r=!0;var v=new p(l,s),E=u.getKeySystemBySystemString(i),_=new Gt(E,v);f.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{data:_}),e({data:_});break}}if(!r){var w="Key system access denied! -- No valid audio/video content configurations detected!";f.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{error:w}),n({error:w})}}))},selectKeySystem:function(t){return new Promise((function(e,n){try{i=t.mediaKeys=new window[g.MediaKeys](t.keySystem.systemString),a=t.keySystem,o=t,r&&y(),e(a)}catch(t){n({error:"Error selecting keys system ("+a.systemString+")! Could not create MediaKeys -- TODO"})}}))},setMediaElement:function(t){r!==t&&(r&&r.removeEventListener(g.needkey,s),(r=t)&&(r.addEventListener(g.needkey,s),i&&y()))},createKeySession:function(t){if(!a||!i||!o)throw new Error("Can not create sessions until you have selected a key system");var e=null;if(o.ksConfiguration.videoCapabilities&&o.ksConfiguration.videoCapabilities.length>0&&(e=o.ksConfiguration.videoCapabilities[0]),null===e&&o.ksConfiguration.audioCapabilities&&o.ksConfiguration.audioCapabilities.length>0&&(e=o.ksConfiguration.audioCapabilities[0]),null===e)throw new Error("Can not create sessions for unknown content types.");var r=e.contentType,s=i.createSession(r,new Uint8Array(t.initData),t.cdmData?new Uint8Array(t.cdmData):null),u=function(t,e){return{session:t,keyId:e.keyId,initData:e.initData,getKeyId:function(){return this.keyId},getSessionId:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(t){switch(t.type){case g.error:var e="KeyError";f.trigger(d.KEY_ERROR,{error:new w.Z(_.MEDIA_KEYERR_CODE,e,this)});break;case g.message:var r=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;f.trigger(d.INTERNAL_KEY_MESSAGE,{data:new Ut(this,r,t.destinationURL)});break;case g.ready:n.debug("DRM: Key added."),f.trigger(d.KEY_ADDED);break;case g.close:n.debug("DRM: Session closed.  SessionID = "+this.getSessionId()),f.trigger(d.KEY_SESSION_CLOSED,{data:this.getSessionId()})}}}}(s,t);s.addEventListener(g.error,u),s.addEventListener(g.message,u),s.addEventListener(g.ready,u),s.addEventListener(g.close,u),l.push(u),n.debug("DRM: Session created.  SessionID = "+u.getSessionId()),f.trigger(d.KEY_SESSION_CREATED,{data:u})},updateKeySession:function(t,e){var n=t.session;u.isClearKey(a)?n.update(new Uint8Array(e.toJWK())):n.update(new Uint8Array(e)),f.trigger(d.KEY_SESSION_UPDATED)},closeKeySession:b,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},stop:h,reset:h},n=m.getLogger(e),r=null,a=null,i=null,o=null,l=[],u=At(c).getInstance(),s={handleEvent:function(t){if(t.type===g.needkey&&t.initData){var e=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;f.trigger(d.NEED_KEY,{key:new Mt(e,"cenc")})}}},e}Kt.__dashjs_factory_name="ProtectionModel_3Feb2014";var Wt=dashjs.FactoryMaker.getClassFactory(Kt);function Xt(t){t=t||{};var e,n,r,a,i,o,l,s,u,c=this.context,f=t.eventBus,d=t.events,m=t.debug,g=t.api,h=t.errHandler;function b(){r&&E();for(var t=0;t<l.length;t++)y(l[t]);f.trigger(d.TEARDOWN_COMPLETE)}function y(t){try{r[g.cancelKeyRequest](a.systemString,t.sessionId)}catch(e){f.trigger(d.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+t.sessionId+") "+e.message})}}function v(t,e){if(e&&t){for(var n=t.length,r=0;r<n;r++)if(t[r].sessionId==e)return t[r];return null}return null}function E(){r.removeEventListener(g.keyerror,u),r.removeEventListener(g.needkey,u),r.removeEventListener(g.keymessage,u),r.removeEventListener(g.keyadded,u)}return e={getAllInitData:function(){for(var t=[],e=0;e<o.length;e++)t.push(o[e].initData);for(var n=0;n<l.length;n++)t.push(l[n].initData);return t},getSessions:function(){return l.concat(o)},requestKeySystemAccess:function(t){return new Promise((function(e,n){var a=r;a||(a=document.createElement("video"));for(var o=!1,l=0;l<t.length;l++)for(var s=t[l].ks.systemString,u=t[l].configs,c=null,m=null,g=0;g<u.length;g++){var h=u[g].videoCapabilities;if(h&&0!==h.length){m=[];for(var b=0;b<h.length;b++)""!==a.canPlayType(h[b].contentType,s)&&m.push(h[b])}if(m&&(!m||0!==m.length)){o=!0;var y=new p(c,m),v=i.getKeySystemBySystemString(s),E=new Gt(v,y);f.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{data:E}),e({data:E});break}}if(!o){var _="Key system access denied! -- No valid audio/video content configurations detected!";f.trigger(d.KEY_SYSTEM_ACCESS_COMPLETE,{error:_}),n({error:_})}}))},selectKeySystem:function(t){return a=t.keySystem,Promise.resolve(a)},setMediaElement:function(t){if(r!==t){if(r){E();for(var e=0;e<l.length;e++)y(l[e]);l=[]}(r=t)&&(r.addEventListener(g.keyerror,u),r.addEventListener(g.needkey,u),r.addEventListener(g.keymessage,u),r.addEventListener(g.keyadded,u),f.trigger(d.VIDEO_ELEMENT_SELECTED))}},createKeySession:function(t){if(!a)throw new Error("Can not create sessions until you have selected a key system");if(s||0===l.length){var e={sessionId:null,keyId:t.keyId,initData:t.initData,getKeyId:function(){return this.keyId},getSessionId:function(){return this.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return o.push(e),r[g.generateKeyRequest](a.systemString,new Uint8Array(t.initData)),e}throw new Error("Multiple sessions not allowed!")},updateKeySession:function(t,e){var n=t.sessionId;if(i.isClearKey(a))for(var o=0;o<e.keyPairs.length;o++)r[g.addKey](a.systemString,e.keyPairs[o].key,e.keyPairs[o].keyID,n);else r[g.addKey](a.systemString,new Uint8Array(e),new Uint8Array(t.initData),n);f.trigger(d.KEY_SESSION_UPDATED)},closeKeySession:y,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},stop:b,reset:b},n=m.getLogger(e),r=null,a=null,o=[],l=[],i=At(c).getInstance(),u={handleEvent:function(t){var e=null;switch(t.type){case g.needkey:var r=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;f.trigger(d.NEED_KEY,{key:new Mt(r,"cenc")});break;case g.keyerror:if((e=v(l,t.sessionId))||(e=v(o,t.sessionId)),e){var a=_.MEDIA_KEYERR_CODE,i="";switch(t.errorCode.code){case 1:a=_.MEDIA_KEYERR_UNKNOWN_CODE,i+="MEDIA_KEYERR_UNKNOWN - "+_.MEDIA_KEYERR_UNKNOWN_MESSAGE;break;case 2:a=_.MEDIA_KEYERR_CLIENT_CODE,i+="MEDIA_KEYERR_CLIENT - "+_.MEDIA_KEYERR_CLIENT_MESSAGE;break;case 3:a=_.MEDIA_KEYERR_SERVICE_CODE,i+="MEDIA_KEYERR_SERVICE - "+_.MEDIA_KEYERR_SERVICE_MESSAGE;break;case 4:a=_.MEDIA_KEYERR_OUTPUT_CODE,i+="MEDIA_KEYERR_OUTPUT - "+_.MEDIA_KEYERR_OUTPUT_MESSAGE;break;case 5:a=_.MEDIA_KEYERR_HARDWARECHANGE_CODE,i+="MEDIA_KEYERR_HARDWARECHANGE - "+_.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE;break;case 6:a=_.MEDIA_KEYERR_DOMAIN_CODE,i+="MEDIA_KEYERR_DOMAIN - "+_.MEDIA_KEYERR_DOMAIN_MESSAGE}i+="  System Code = "+t.systemCode,f.trigger(d.KEY_ERROR,{error:new w.Z(a,i,e)})}else n.error("No session token found for key error");break;case g.keyadded:(e=v(l,t.sessionId))||(e=v(o,t.sessionId)),e?(n.debug("DRM: Key added."),f.trigger(d.KEY_ADDED,{data:e})):n.debug("No session token found for key added");break;case g.keymessage:if((s=null!==t.sessionId&&void 0!==t.sessionId)?!(e=v(l,t.sessionId))&&o.length>0&&(e=o.shift(),l.push(e),e.sessionId=t.sessionId,f.trigger(d.KEY_SESSION_CREATED,{data:e})):o.length>0&&(e=o.shift(),l.push(e),0!==o.length&&h.error(new w.Z(_.MEDIA_KEY_MESSAGE_ERROR_CODE,_.MEDIA_KEY_MESSAGE_ERROR_MESSAGE))),e){var u=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;e.keyMessage=u,f.trigger(d.INTERNAL_KEY_MESSAGE,{data:new Ut(e,u,t.defaultURL)})}else n.warn("No session token found for key message")}}},e}Xt.__dashjs_factory_name="ProtectionModel_01b";var Qt=dashjs.FactoryMaker.getClassFactory(Xt),$t=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],Jt=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];function te(){var t,e=this.context;function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];if("function"==typeof t[r[Object.keys(r)[0]]])return r}return null}return t={createProtectionSystem:function(r){var a=null,i=At(e).getInstance();i.setConfig({debug:r.debug,BASE64:r.BASE64,settings:r.settings}),i.initialize();var o=function(r){var a=r.debug,i=a.getLogger(t),o=r.eventBus,l=r.errHandler,s=r.videoModel?r.videoModel.getElement():null;return s&&void 0===s.onencrypted||s&&void 0===s.mediaKeys?n(s,Jt)?(i.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"),Wt(e).create({debug:a,eventBus:o,events:r.events,api:n(s,Jt)})):n(s,$t)?(i.info("EME detected on this user agent! (ProtectionModel_01b)"),Qt(e).create({debug:a,eventBus:o,errHandler:l,events:r.events,api:n(s,$t)})):(i.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null):(i.info("EME detected on this user agent! (ProtectionModel_21Jan2015)"),Vt(e).create({debug:a,eventBus:o,events:r.events}))}(r);return!a&&o&&(a=L(e).create({protectionModel:o,protectionKeyController:i,eventBus:r.eventBus,debug:r.debug,events:r.events,BASE64:r.BASE64,constants:r.constants,cmcdModel:r.cmcdModel,customParametersModel:r.customParametersModel,settings:r.settings}),r.capabilities.setEncryptedMediaSupported(!0)),a}}}te.__dashjs_factory_name="Protection";var ee=dashjs.FactoryMaker.getClassFactory(te);ee.events=Dt,ee.errors=_,dashjs.FactoryMaker.updateClassFactory(te.__dashjs_factory_name,ee);var ne=ee},7026:function(t,e,n){n.d(e,{B:function(){return i}});var r=n(145),a=n(3814);function i(){var t="ManagedMediaSource"in window,e="WebKitMediaSource"in window,n="MediaSource"in window;return t||e||n}function o(){var t,e,n;return t={isProtectionCompatible:function(t,e){return!e||!(!t.isEncrypted&&e.isEncrypted)},setConfig:function(t){t&&t.settings&&(e=t.settings)},setEncryptedMediaSupported:function(t){n=t},supportsCodec:function(t,n){return n!==a.Z.AUDIO&&n!==a.Z.VIDEO?Promise.resolve(!0):function(t,n){return e.get().streaming.capabilities.useMediaCapabilitiesApi&&navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo&&(t.codec&&n===a.Z.AUDIO||n===a.Z.VIDEO&&t.codec&&t.width&&t.height&&t.bitrate&&t.framerate)}(t,n)?function(t,e){return new Promise((function(n){if(t&&t.codec){var r={type:"media-source"};r[e]={},r[e].contentType=t.codec,r[e].width=t.width,r[e].height=t.height,r[e].bitrate=parseInt(t.bitrate),r[e].framerate=parseFloat(t.framerate),navigator.mediaCapabilities.decodingInfo(r).then((function(t){n(t.supported)})).catch((function(){n(!1)}))}else n(!1)}))}(t,n):function(t){return new Promise((function(e){if(t&&t.codec){var n=t.codec;t.width&&t.height&&(n+=';width="'+t.width+'";height="'+t.height+'"'),"ManagedMediaSource"in window&&ManagedMediaSource.isTypeSupported(n)||"MediaSource"in window&&MediaSource.isTypeSupported(n)||"WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(n)?e(!0):e(!1)}else e(!1)}))}(t)},supportsEncryptedMedia:function(){return n},supportsEssentialProperty:function(t){var n=e.get().streaming.capabilities.supportedEssentialProperties;try{return t.inArray(n)}catch(t){return!0}},supportsMediaSource:i},n=!1,t}o.__dashjs_factory_name="Capabilities",e.Z=r.Z.getSingletonFactory(o)},777:function(t,e,n){var r=n(145),a=n(3644);function i(){return{customTimeRangeArray:[],length:0,add:function(t,e){var n;for(n=0;n<this.customTimeRangeArray.length&&t>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:t,end:e}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(t,e){for(var n=0;n<this.customTimeRangeArray.length;n++)if(t<=this.customTimeRangeArray[n].start&&e>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(t>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:e,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=t;break}t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=t:e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=e)}this.length=this.customTimeRangeArray.length},mergeRanges:function(t,e){var n=this.customTimeRangeArray[t],r=this.customTimeRangeArray[e];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(e,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(e,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(t,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(e,1),!0)},start:function(t){return(0,a.SE)(t),t>=this.customTimeRangeArray.length||t<0?NaN:this.customTimeRangeArray[t].start},end:function(t){return(0,a.SE)(t),t>=this.customTimeRangeArray.length||t<0?NaN:this.customTimeRangeArray[t].end}}}i.__dashjs_factory_name="CustomTimeRanges",e.Z=r.Z.getClassFactory(i)},3644:function(t,e,n){n.d(e,{PS:function(){return i},SE:function(){return o}});var r=n(3814);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t,e){if(a(t)!==e)throw r.Z.BAD_ARGUMENT_ERROR}function o(t){if(null===t||isNaN(t)||t%1!=0)throw r.Z.BAD_ARGUMENT_ERROR+" : argument is not an integer"}},7665:function(t,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(o)?o:String(o)),a)}var i,o}function a(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var i=a((function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.code=e||null,this.message=n||null,this.data=r||null}));e.Z=i},4019:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(i=a.key,o=void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===r(o)?o:String(o)),a)}var i,o}function i(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{O:function(){return s},w:function(){return l}});var l=i((function t(){o(this,t),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this.cmsd=null,this._stream=null,this._tfinish=null,this._mediaduration=null,this._quality=null,this._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null,this._resourceTimingValues=null})),s=i((function t(){o(this,t),this.s=null,this.d=null,this.b=[]}));l.GET="GET",l.HEAD="HEAD",l.MPD_TYPE="MPD",l.XLINK_EXPANSION_TYPE="XLinkExpansion",l.INIT_SEGMENT_TYPE="InitializationSegment",l.INDEX_SEGMENT_TYPE="IndexSegment",l.MEDIA_SEGMENT_TYPE="MediaSegment",l.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",l.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",l.DVB_REPORTING_TYPE="DVBReporting",l.LICENSE="license",l.CONTENT_STEERING_TYPE="ContentSteering",l.OTHER_TYPE="other"}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.amdO={},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){n.d(r,{default:function(){return f}}),n(3114);var t,e=n(95),a=n(4395),i=n(987),o=function(){var t,e="application/dash+xml";function n(n,r,a){if(!n||!/^VIDEO$/i.test(n.nodeName))return null;if(n._dashjs_player)return n._dashjs_player;var o,l=n.id||n.name||"video element";if(!(r=r||[].slice.call(n.querySelectorAll("source")).filter((function(t){return t.type==e}))[0])&&n.src)(r=document.createElement("source")).src=n.src;else if(!r&&!n.src)return null;return a=a||{},(o=(0,i.Z)(a).create()).initialize(n,r.src,n.autoplay),t||(t=o.getDebug().getLogger()),t.debug("Converted "+l+" to dash.js player and added content: "+r.src),n._dashjs_player=o,o}function r(t){return/^VIDEO$/i.test(t.nodeName)?t:r(t.parentNode)}return{create:n,createAll:function(t,a){var i=[];t=t||"[data-dashjs-player]";for(var o=(a=a||document).querySelectorAll(t),l=0;l<o.length;l++){var s=n(o[l],null);i.push(s)}for(var u=a.querySelectorAll('source[type="'+e+'"]'),c=0;c<u.length;c++){var f=n(r(u[c]),null);i.push(f)}return i}}}();!("undefined"!=typeof window&&window&&window.dashjs&&window.dashjs.skipAutoCreate)&&"undefined"!=typeof window&&window&&window.addEventListener&&("complete"===window.document.readyState?window.dashjs?o.createAll():t=window.setInterval((function(){window.dashjs&&(window.clearInterval(t),o.createAll())}),500):window.addEventListener("load",(function t(){window.removeEventListener("load",t),o.createAll()})));var l=o,s=n(4267),u=n(3814),c=n(7026);dashjs.Protection=a.default,dashjs.MetricsReporting=e.default,dashjs.MediaPlayerFactory=l,dashjs.Debug=s.Z,dashjs.supportsMediaSource=c.B,dashjs.Constants=u.Z;var f=dashjs}(),r=r.default}()}();export const DashJS=t;
