PageSourceSearch

http://xuefang.com/shared-vendor.dashjs.js

js xuefang.com collected 2026-09-26 16:40:47 UTC 1,024,682 bytes, 1 lines download raw bytes

vendor: 4,336 bytes, line 1
1"use strict";(self.webpackChunkkerberos=self.webpackChunkkerberos||[]).push([[988],{922809:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{Constants:function(){return we},Debug:function(){return Re},ExternalSubtitle:function(){return Ne},MediaPlayer:function(){return Ce},MediaPlayerFactory:function(){return De},MetricsReporting:function(){return xe},Protection:function(){return Me},default:function(){return Oe},supportsMediaSource:function(){return Pe}});var ne=ee(348764).Buffer,re={7267:function(Rt,Ot){Ot.byteLength=function(Rt){var Ot=o(Rt),ee=Ot[0],ne=Ot[1];return 3*(ee+ne)/4-ne},Ot.toByteArray=function(Rt){var Ot,ee,ie=o(Rt),le=ie[0],oe=ie[1],ue=new re(function(Rt,Ot,ee){return 3*(Ot+ee)/4-ee}(0,le,oe)),ce=0,fe=oe>0?le-4:le;for(ee=0;ee<fe;ee+=4)Ot=ne[Rt.charCodeAt(ee)]<<18|ne[Rt.charCodeAt(ee+1)]<<12|ne[Rt.charCodeAt(ee+2)]<<6|ne[Rt.charCodeAt(ee+3)],ue[ce++]=Ot>>16&255,ue[ce++]=Ot>>8&255,ue[ce++]=255&Ot;return 2===oe&&(Ot=ne[Rt.charCodeAt(ee)]<<2|ne[Rt.charCodeAt(ee+1)]>>4,ue[ce++]=255&Ot),1===oe&&(Ot=ne[Rt.charCodeAt(ee)]<<10|ne[Rt.charCodeAt(ee+1)]<<4|ne[Rt.charCodeAt(ee+2)]>>2,ue[ce++]=Ot>>8&255,ue[ce++]=255&Ot),ue},Ot.fromByteArray=function(Rt){for(var Ot,ne=Rt.length,re=ne%3,ie=[],le=16383,oe=0,ue=ne-re;oe<ue;oe+=le)ie.push(s(Rt,oe,oe+le>ue?ue:oe+le));return 1===re?(Ot=Rt[ne-1],ie.push(ee[Ot>>2]+ee[Ot<<4&63]+"==")):2===re&&(Ot=(Rt[ne-2]<<8)+Rt[ne-1],ie.push(ee[Ot>>10]+ee[Ot>>4&63]+ee[Ot<<2&63]+"=")),ie.join("")};for(var ee=[],ne=[],re="undefined"!=typeof Uint8Array?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=0;le<64;++le)ee[le]=ie[le],ne[ie.charCodeAt(le)]=le;function o(Rt){var Ot=Rt.length;if(Ot%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ee=Rt.indexOf("=");return-1===ee&&(ee=Ot),[ee,ee===Ot?0:4-ee%4]}function s(Rt,Ot,ne){for(var re,ie,le=[],oe=Ot;oe<ne;oe+=3)re=(Rt[oe]<<16&16711680)+(Rt[oe+1]<<8&65280)+(255&Rt[oe+2]),le.push(ee[(ie=re)>>18&63]+ee[ie>>12&63]+ee[ie>>6&63]+ee[63&ie]);return le.join("")}ne["-".charCodeAt(0)]=62,ne["_".charCodeAt(0)]=63},44:function(Rt,Ot,ee){var ne=ee(7267),re=ee(7986),ie="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ot.Buffer=s,Ot.SlowBuffer=function(Rt){return+Rt!=Rt&&(Rt=0),s.alloc(+Rt)},Ot.INSPECT_MAX_BYTES=50;var le=2147483647;function o(Rt){if(Rt>le)throw new RangeError('The value "'+Rt+'" is invalid for option "size"');var Ot=new Uint8Array(Rt);return Object.setPrototypeOf(Ot,s.prototype),Ot}function s(Rt,Ot,ee){if("number"==typeof Rt){if("string"==typeof Ot)throw new TypeError('The "string" argument must be of type string. Received type number');return c(Rt)}return u(Rt,Ot,ee)}function u(Rt,Ot,ee){if("string"==typeof Rt)return function(Rt,Ot){if("string"==typeof Ot&&""!==Ot||(Ot="utf8"),!s.isEncoding(Ot))throw new TypeError("Unknown encoding: "+Ot);var ee=0|h(Rt,Ot),ne=o(ee),re=ne.write(Rt,Ot);return re!==ee&&(ne=ne.slice(0,re)),ne}(Rt,Ot);if(ArrayBuffer.isView(Rt))return function(Rt){if(q(Rt,Uint8Array)){var Ot=new Uint8Array(Rt);return g(Ot.buffer,Ot.byteOffset,Ot.byteLength)}return f(Rt)}(Rt);if(null==Rt)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt);if(q(Rt,ArrayBuffer)||Rt&&q(Rt.buffer,ArrayBuffer))return g(Rt,Ot,ee);if("undefined"!=typeof SharedArrayBuffer&&(q(Rt,SharedArrayBuffer)||Rt&&q(Rt.buffer,SharedArrayBuffer)))return g(Rt,Ot,ee);if("number"==typeof Rt)throw new TypeError('The "value" argument must not be of type number. Received type number');var ne=Rt.valueOf&&Rt.valueOf();if(null!=ne&&ne!==Rt)return s.from(ne,Ot,ee);var re=function(Rt){if(s.isBuffer(Rt)){var Ot=0|m(Rt.length),ee=o(Ot);return 0===ee.length||Rt.copy(ee,0,0,Ot),ee}return void 0!==Rt.length?"number"!=typeof Rt.length||B(Rt.length)?o(0):f(Rt):"Buffer"===Rt.type&&Array.isArray(Rt.data)?f(Rt.data):void 0}(Rt);if(re)return re;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Rt[Symbol.toPrimitive])return s.from(Rt[Symbol.toPrimitive]("string"),Ot,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Rt)}function d(Rt){if("number"!=typeof Rt)throw new TypeError('"size" argument must be of type number');
vendor: 18,097 bytes, line 1
1if(Rt<0)throw new RangeError('The value "'+Rt+'" is invalid for option "size"')}function c(Rt){return d(Rt),o(Rt<0?0:0|m(Rt))}function f(Rt){for(var Ot=Rt.length<0?0:0|m(Rt.length),ee=o(Ot),ne=0;ne<Ot;ne+=1)ee[ne]=255&Rt[ne];return ee}function g(Rt,Ot,ee){if(Ot<0||Rt.byteLength<Ot)throw new RangeError('"offset" is outside of buffer bounds');if(Rt.byteLength<Ot+(ee||0))throw new RangeError('"length" is outside of buffer bounds');var ne;return ne=void 0===Ot&&void 0===ee?new Uint8Array(Rt):void 0===ee?new Uint8Array(Rt,Ot):new Uint8Array(Rt,Ot,ee),Object.setPrototypeOf(ne,s.prototype),ne}function m(Rt){if(Rt>=le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+le.toString(16)+" bytes");return 0|Rt}function h(Rt,Ot){if(s.isBuffer(Rt))return Rt.length;if(ArrayBuffer.isView(Rt)||q(Rt,ArrayBuffer))return Rt.byteLength;if("string"!=typeof Rt)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Rt);var ee=Rt.length,ne=arguments.length>2&&!0===arguments[2];if(!ne&&0===ee)return 0;for(var re=!1;;)switch(Ot){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return F(Rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return U(Rt).length;default:if(re)return ne?-1:F(Rt).length;Ot=(""+Ot).toLowerCase(),re=!0}}function p(Rt,Ot,ee){var ne=!1;if((void 0===Ot||Ot<0)&&(Ot=0),Ot>this.length)return"";if((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)return"";if((ee>>>=0)<=(Ot>>>=0))return"";for(Rt||(Rt="utf8");;)switch(Rt){case"hex":return C(this,Ot,ee);case"utf8":case"utf-8":return k(this,Ot,ee);case"ascii":return R(this,Ot,ee);case"latin1":case"binary":return N(this,Ot,ee);case"base64":return I(this,Ot,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,Ot,ee);default:if(ne)throw new TypeError("Unknown encoding: "+Rt);Rt=(Rt+"").toLowerCase(),ne=!0}}function b(Rt,Ot,ee){var ne=Rt[Ot];Rt[Ot]=Rt[ee],Rt[ee]=ne}function y(Rt,Ot,ee,ne,re){if(0===Rt.length)return-1;if("string"==typeof ee?(ne=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),B(ee=+ee)&&(ee=re?0:Rt.length-1),ee<0&&(ee=Rt.length+ee),ee>=Rt.length){if(re)return-1;ee=Rt.length-1}else if(ee<0){if(!re)return-1;ee=0}if("string"==typeof Ot&&(Ot=s.from(Ot,ne)),s.isBuffer(Ot))return 0===Ot.length?-1:E(Rt,Ot,ee,ne,re);if("number"==typeof Ot)return Ot&=255,"function"==typeof Uint8Array.prototype.indexOf?re?Uint8Array.prototype.indexOf.call(Rt,Ot,ee):Uint8Array.prototype.lastIndexOf.call(Rt,Ot,ee):E(Rt,[Ot],ee,ne,re);throw new TypeError("val must be string, number or Buffer")}function E(Rt,Ot,ee,ne,re){var ie,le=1,oe=Rt.length,ue=Ot.length;if(void 0!==ne&&("ucs2"===(ne=String(ne).toLowerCase())||"ucs-2"===ne||"utf16le"===ne||"utf-16le"===ne)){if(Rt.length<2||Ot.length<2)return-1;le=2,oe/=2,ue/=2,ee/=2}function u(Rt,Ot){return 1===le?Rt[Ot]:Rt.readUInt16BE(Ot*le)}if(re){var ce=-1;for(ie=ee;ie<oe;ie++)if(u(Rt,ie)===u(Ot,-1===ce?0:ie-ce)){if(-1===ce&&(ce=ie),ie-ce+1===ue)return ce*le}else-1!==ce&&(ie-=ie-ce),ce=-1}else for(ee+ue>oe&&(ee=oe-ue),ie=ee;ie>=0;ie--){for(var fe=!0,ge=0;ge<ue;ge++)if(u(Rt,ie+ge)!==u(Ot,ge)){fe=!1;break}if(fe)return ie}return-1}function T(Rt,Ot,ee,ne){ee=Number(ee)||0;var re=Rt.length-ee;ne?(ne=Number(ne))>re&&(ne=re):ne=re;var ie=Ot.length;ne>ie/2&&(ne=ie/2);for(var le=0;le<ne;++le){var oe=parseInt(Ot.substr(2*le,2),16);if(B(oe))return le;Rt[ee+le]=oe}return le}function _(Rt,Ot,ee,ne){return j(F(Ot,Rt.length-ee),Rt,ee,ne)}function v(Rt,Ot,ee,ne){return j(function(Rt){for(var Ot=[],ee=0;ee<Rt.length;++ee)Ot.push(255&Rt.charCodeAt(ee));return Ot}(Ot),Rt,ee,ne)}function S(Rt,Ot,ee,ne){return j(U(Ot),Rt,ee,ne)}function w(Rt,Ot,ee,ne){return j(function(Rt,Ot){for(var ee,ne,re,ie=[],le=0;le<Rt.length&&!((Ot-=2)<0);++le)ne=(ee=Rt.charCodeAt(le))>>8,re=ee%256,ie.push(re),ie.push(ne);return ie}(Ot,Rt.length-ee),Rt,ee,ne)}function I(Rt,Ot,ee){return 0===Ot&&ee===Rt.length?ne.fromByteArray(Rt):ne.fromByteArray(Rt.slice(Ot,ee))}function k(Rt,Ot,ee){ee=Math.min(Rt.length,ee);for(var ne=[],re=Ot;re<ee;){var ie,le,ue,ce,fe=Rt[re],ge=null,he=fe>239?4:fe>223?3:fe>191?2:1;if(re+he<=ee)switch(he){case 1:fe<128&&(ge=fe);break;case 2:128==(192&(ie=Rt[re+1]))&&(ce=(31&fe)<<6|63&ie)>127&&(ge=ce);break;case 3:ie=Rt[re+1],le=Rt[re+2],128==(192&ie)&&128==(192&le)&&(ce=(15&fe)<<12|(63&ie)<<6|63&le)>2047&&(ce<55296||ce>57343)&&(ge=ce);break;case 4:ie=Rt[re+1],le=Rt[re+2],ue=Rt[re+3],128==(192&ie)&&128==(192&le)&&128==(192&ue)&&(ce=(15&fe)<<18|(63&ie)<<12|(63&le)<<6|63&ue)>65535&&ce<1114112&&(ge=ce)}null===ge?(ge=65533,he=1):ge>65535&&(ge-=65536,ne.push(ge>>>10&1023|55296),ge=56320|1023&ge),ne.push(ge),re+=he}return function(Rt){var Ot=Rt.length;if(Ot<=oe)return String.fromCharCode.apply(String,Rt);for(var ee="",ne=0;ne<Ot;)ee+=String.fromCharCode.apply(String,Rt.slice(ne,ne+=oe));return ee}(ne)}Ot.kMaxLength=le,s.TYPED_ARRAY_SUPPORT=function(){try{var Rt=new Uint8Array(1),Ot={foo:function(){return 42}};return Object.setPrototypeOf(Ot,Uint8Array.prototype),Object.setPrototypeOf(Rt,Ot),42===Rt.foo()}catch(Rt){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(Rt,Ot,ee){return u(Rt,Ot,ee)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(Rt,Ot,ee){return function(Rt,Ot,ee){return d(Rt),Rt<=0?o(Rt):void 0!==Ot?"string"==typeof ee?o(Rt).fill(Ot,ee):o(Rt).fill(Ot):o(Rt)}(Rt,Ot,ee)},s.allocUnsafe=function(Rt){return c(Rt)},s.allocUnsafeSlow=function(Rt){return c(Rt)},s.isBuffer=function(Rt){return null!=Rt&&!0===Rt._isBuffer&&Rt!==s.prototype},s.compare=function(Rt,Ot){if(q(Rt,Uint8Array)&&(Rt=s.from(Rt,Rt.offset,Rt.byteLength)),q(Ot,Uint8Array)&&(Ot=s.from(Ot,Ot.offset,Ot.byteLength)),!s.isBuffer(Rt)||!s.isBuffer(Ot))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Rt===Ot)return 0;for(var ee=Rt.length,ne=Ot.length,re=0,ie=Math.min(ee,ne);re<ie;++re)if(Rt[re]!==Ot[re]){ee=Rt[re],ne=Ot[re];break}return ee<ne?-1:ne<ee?1:0},s.isEncoding=function(Rt){switch(String(Rt).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(Rt,Ot){if(!Array.isArray(Rt))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Rt.length)return s.alloc(0);var ee;if(void 0===Ot)for(Ot=0,ee=0;ee<Rt.length;++ee)Ot+=Rt[ee].length;var ne=s.allocUnsafe(Ot),re=0;for(ee=0;ee<Rt.length;++ee){var ie=Rt[ee];if(q(ie,Uint8Array))re+ie.length>ne.length?s.from(ie).copy(ne,re):Uint8Array.prototype.set.call(ne,ie,re);else{if(!s.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(ne,re)}re+=ie.length}return ne},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var Rt=this.length;if(Rt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ot=0;Ot<Rt;Ot+=2)b(this,Ot,Ot+1);return this},s.prototype.swap32=function(){var Rt=this.length;if(Rt%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ot=0;Ot<Rt;Ot+=4)b(this,Ot,Ot+3),b(this,Ot+1,Ot+2);return this},s.prototype.swap64=function(){var Rt=this.length;if(Rt%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ot=0;Ot<Rt;Ot+=8)b(this,Ot,Ot+7),b(this,Ot+1,Ot+6),b(this,Ot+2,Ot+5),b(this,Ot+3,Ot+4);return this},s.prototype.toString=function(){var Rt=this.length;return 0===Rt?"":0===arguments.length?k(this,0,Rt):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(Rt){if(!s.isBuffer(Rt))throw new TypeError("Argument must be a Buffer");return this===Rt||0===s.compare(this,Rt)},s.prototype.inspect=function(){var Rt="",ee=Ot.INSPECT_MAX_BYTES;return Rt=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(Rt+=" ... "),"<Buffer "+Rt+">"},ie&&(s.prototype[ie]=s.prototype.inspect),s.prototype.compare=function(Rt,Ot,ee,ne,re){if(q(Rt,Uint8Array)&&(Rt=s.from(Rt,Rt.offset,Rt.byteLength)),!s.isBuffer(Rt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Rt);if(void 0===Ot&&(Ot=0),void 0===ee&&(ee=Rt?Rt.length:0),void 0===ne&&(ne=0),void 0===re&&(re=this.length),Ot<0||ee>Rt.length||ne<0||re>this.length)throw new RangeError("out of range index");if(ne>=re&&Ot>=ee)return 0;if(ne>=re)return-1;if(Ot>=ee)return 1;if(this===Rt)return 0;for(var ie=(re>>>=0)-(ne>>>=0),le=(ee>>>=0)-(Ot>>>=0),oe=Math.min(ie,le),ue=this.slice(ne,re),ce=Rt.slice(Ot,ee),fe=0;fe<oe;++fe)if(ue[fe]!==ce[fe]){ie=ue[fe],le=ce[fe];break}return ie<le?-1:le<ie?1:0},s.prototype.includes=function(Rt,Ot,ee){return-1!==this.indexOf(Rt,Ot,ee)},s.prototype.indexOf=function(Rt,Ot,ee){return y(this,Rt,Ot,ee,!0)},s.prototype.lastIndexOf=function(Rt,Ot,ee){return y(this,Rt,Ot,ee,!1)},s.prototype.write=function(Rt,Ot,ee,ne){if(void 0===Ot)ne="utf8",ee=this.length,Ot=0;else if(void 0===ee&&"string"==typeof Ot)ne=Ot,ee=this.length,Ot=0;else{if(!isFinite(Ot))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Ot>>>=0,isFinite(ee)?(ee>>>=0,void 0===ne&&(ne="utf8")):(ne=ee,ee=void 0)}var re=this.length-Ot;if((void 0===ee||ee>re)&&(ee=re),Rt.length>0&&(ee<0||Ot<0)||Ot>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var ie=!1;;)switch(ne){case"hex":return T(this,Rt,Ot,ee);case"utf8":case"utf-8":return _(this,Rt,Ot,ee);case"ascii":case"latin1":case"binary":return v(this,Rt,Ot,ee);case"base64":return S(this,Rt,Ot,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,Rt,Ot,ee);default:if(ie)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ie=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var oe=4096;function R(Rt,Ot,ee){var ne="";ee=Math.min(Rt.length,ee);for(var re=Ot;re<ee;++re)ne+=String.fromCharCode(127&Rt[re]);return ne}function N(Rt,Ot,ee){var ne="";ee=Math.min(Rt.length,ee);for(var re=Ot;re<ee;++re)ne+=String.fromCharCode(Rt[re]);return ne}function C(Rt,Ot,ee){var ne=Rt.length;(!Ot||Ot<0)&&(Ot=0),(!ee||ee<0||ee>ne)&&(ee=ne);for(var re="",ie=Ot;ie<ee;++ie)re+=ce[Rt[ie]];return re}function D(Rt,Ot,ee){for(var ne=Rt.slice(Ot,ee),re="",ie=0;ie<ne.length-1;ie+=2)re+=String.fromCharCode(ne[ie]+256*ne[ie+1]);return re}function x(Rt,Ot,ee){if(Rt%1!=0||Rt<0)throw new RangeError("offset is not uint");if(Rt+Ot>ee)throw new RangeError("Trying to access beyond buffer length")}function M(Rt,Ot,ee,ne,re,ie){if(!s.isBuffer(Rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ot>re||Ot<ie)throw new RangeError('"value" argument is out of bounds');if(ee+ne>Rt.length)throw new RangeError("Index out of range")}function P(Rt,Ot,ee,ne,re,ie){if(ee+ne>Rt.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function O(Rt,Ot,ee,ne,ie){return Ot=+Ot,ee>>>=0,ie||P(Rt,0,ee,4),re.write(Rt,Ot,ee,ne,23,4),ee+4}function z(Rt,Ot,ee,ne,ie){return Ot=+Ot,ee>>>=0,ie||P(Rt,0,ee,8),re.write(Rt,Ot,ee,ne,52,8),ee+8}s.prototype.slice=function(Rt,Ot){var ee=this.length;(Rt=~~Rt)<0?(Rt+=ee)<0&&(Rt=0):Rt>ee&&(Rt=ee),(Ot=void 0===Ot?ee:~~Ot)<0?(Ot+=ee)<0&&(Ot=0):Ot>ee&&(Ot=ee),Ot<Rt&&(Ot=Rt);var ne=this.subarray(Rt,Ot);return Object.setPrototypeOf(ne,s.prototype),ne},s.prototype.readUintLE=s.prototype.readUIntLE=function(Rt,Ot,ee){Rt>>>=0,Ot>>>=0,ee||x(Rt,Ot,this.length);for(var ne=this[Rt],re=1,ie=0;++ie<Ot&&(re*=256);)ne+=this[Rt+ie]*re;return ne},s.prototype.readUintBE=s.prototype.readUIntBE=function(Rt,Ot,ee){Rt>>>=0,Ot>>>=0,ee||x(Rt,Ot,this.length);for(var ne=this[Rt+--Ot],re=1;Ot>0&&(re*=256);)ne+=this[Rt+--Ot]*re;return ne},s.prototype.readUint8=s.prototype.readUInt8=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,1,this.length),this[Rt]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,2,this.length),this[Rt]|this[Rt+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,2,this.length),this[Rt]<<8|this[Rt+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),(this[Rt]|this[Rt+1]<<8|this[Rt+2]<<16)+16777216*this[Rt+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),16777216*this[Rt]+(this[Rt+1]<<16|this[Rt+2]<<8|this[Rt+3])},s.prototype.readIntLE=function(Rt,Ot,ee){Rt>>>=0,Ot>>>=0,ee||x(Rt,Ot,this.length);for(var ne=this[Rt],re=1,ie=0;++ie<Ot&&(re*=256);)ne+=this[Rt+ie]*re;return ne>=(re*=128)&&(ne-=Math.pow(2,8*Ot)),ne},s.prototype.readIntBE=function(Rt,Ot,ee){Rt>>>=0,Ot>>>=0,ee||x(Rt,Ot,this.length);for(var ne=Ot,re=1,ie=this[Rt+--ne];ne>0&&(re*=256);)ie+=this[Rt+--ne]*re;return ie>=(re*=128)&&(ie-=Math.pow(2,8*Ot)),ie},s.prototype.readInt8=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,1,this.length),128&this[Rt]?-1*(255-this[Rt]+1):this[Rt]},s.prototype.readInt16LE=function(Rt,Ot){Rt>>>=0,Ot||x(Rt,2,this.length);var ee=this[Rt]|this[Rt+1]<<8;return 32768&ee?4294901760|ee:ee},s.prototype.readInt16BE=function(Rt,Ot){Rt>>>=0,Ot||x(Rt,2,this.length);var ee=this[Rt+1]|this[Rt]<<8;return 32768&ee?4294901760|ee:ee},s.prototype.readInt32LE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),this[Rt]|this[Rt+1]<<8|this[Rt+2]<<16|this[Rt+3]<<24},s.prototype.readInt32BE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),this[Rt]<<24|this[Rt+1]<<16|this[Rt+2]<<8|this[Rt+3]},s.prototype.readFloatLE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),re.read(this,Rt,!0,23,4)},s.prototype.readFloatBE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,4,this.length),re.read(this,Rt,!1,23,4)},s.prototype.readDoubleLE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,8,this.length),re.read(this,Rt,!0,52,8)},s.prototype.readDoubleBE=function(Rt,Ot){return Rt>>>=0,Ot||x(Rt,8,this.length),re.read(this,Rt,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(Rt,Ot,ee,ne){Rt=+Rt,Ot>>>=0,ee>>>=0,ne||M(this,Rt,Ot,ee,Math.pow(2,8*ee)-1,0);var re=1,ie=0;for(this[Ot]=255&Rt;++ie<ee&&(re*=256);)this[Ot+ie]=Rt/re&255;return Ot+ee},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(Rt,Ot,ee,ne){Rt=+Rt,Ot>>>=0,ee>>>=0,ne||M(this,Rt,Ot,ee,Math.pow(2,8*ee)-1,0);var re=ee-1,ie=1;for(this[Ot+re]=255&Rt;--re>=0&&(ie*=256);)this[Ot+re]=Rt/ie&255;return Ot+ee},s.prototype.writeUint8=s.prototype.writeUInt8=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,1,255,0),this[Ot]=255&Rt,Ot+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,2,65535,0),this[Ot]=255&Rt,this[Ot+1]=Rt>>>8,Ot+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,2,65535,0),this[Ot]=Rt>>>8,this[Ot+1]=255&Rt,Ot+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,4,4294967295,0),this[Ot+3]=Rt>>>24,this[Ot+2]=Rt>>>16,this[Ot+1]=Rt>>>8,this[Ot]=255&Rt,Ot+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,4,4294967295,0),this[Ot]=Rt>>>24,this[Ot+1]=Rt>>>16,this[Ot+2]=Rt>>>8,this[Ot+3]=255&Rt,Ot+4},s.prototype.writeIntLE=function(Rt,Ot,ee,ne){if(Rt=+Rt,Ot>>>=0,!ne){var re=Math.pow(2,8*ee-1);M(this,Rt,Ot,ee,re-1,-re)}var ie=0,le=1,oe=0;for(this[Ot]=255&Rt;++ie<ee&&(le*=256);)Rt<0&&0===oe&&0!==this[Ot+ie-1]&&(oe=1),this[Ot+ie]=(Rt/le|0)-oe&255;return Ot+ee},s.prototype.writeIntBE=function(Rt,Ot,ee,ne){if(Rt=+Rt,Ot>>>=0,!ne){var re=Math.pow(2,8*ee-1);M(this,Rt,Ot,ee,re-1,-re)}var ie=ee-1,le=1,oe=0;for(this[Ot+ie]=255&Rt;--ie>=0&&(le*=256);)Rt<0&&0===oe&&0!==this[Ot+ie+1]&&(oe=1),this[Ot+ie]=(Rt/le|0)-oe&255;return Ot+ee},s.prototype.writeInt8=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,1,127,-128),Rt<0&&(Rt=255+Rt+1),this[Ot]=255&Rt,Ot+1},s.prototype.writeInt16LE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,2,32767,-32768),this[Ot]=255&Rt,this[Ot+1]=Rt>>>8,Ot+2},s.prototype.writeInt16BE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,2,32767,-32768),this[Ot]=Rt>>>8,this[Ot+1]=255&Rt,Ot+2},s.prototype.writeInt32LE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,4,2147483647,-2147483648),this[Ot]=255&Rt,this[Ot+1]=Rt>>>8,this[Ot+2]=Rt>>>16,this[Ot+3]=Rt>>>24,Ot+4},s.prototype.writeInt32BE=function(Rt,Ot,ee){return Rt=+Rt,Ot>>>=0,ee||M(this,Rt,Ot,4,2147483647,-2147483648),Rt<0&&(Rt=4294967295+Rt+1),this[Ot]=Rt>>>24,this[Ot+1]=Rt>>>16,this[Ot+2]=Rt>>>8,this[Ot+3]=255&Rt,Ot+4},s.prototype.writeFloatLE=function(Rt,Ot,ee){return O(this,Rt,Ot,!0,ee)},s.prototype.writeFloatBE=function(Rt,Ot,ee){return O(this,Rt,Ot,!1,ee)},s.prototype.writeDoubleLE=function(Rt,Ot,ee){return z(this,Rt,Ot,!0,ee)},s.prototype.writeDoubleBE=function(Rt,Ot,ee){return z(this,Rt,Ot,!1,ee)},s.prototype.copy=function(Rt,Ot,ee,ne){if(!s.isBuffer(Rt))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),ne||0===ne||(ne=this.length),Ot>=Rt.length&&(Ot=Rt.length),Ot||(Ot=0),ne>0&&ne<ee&&(ne=ee),ne===ee)return 0;if(0===Rt.length||0===this.length)return 0;if(Ot<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),Rt.length-Ot<ne-ee&&(ne=Rt.length-Ot+ee);var re=ne-ee;return this===Rt&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(Ot,ee,
vendor: 4,408 bytes, line 1
1ne):Uint8Array.prototype.set.call(Rt,this.subarray(ee,ne),Ot),re},s.prototype.fill=function(Rt,Ot,ee,ne){if("string"==typeof Rt){if("string"==typeof Ot?(ne=Ot,Ot=0,ee=this.length):"string"==typeof ee&&(ne=ee,ee=this.length),void 0!==ne&&"string"!=typeof ne)throw new TypeError("encoding must be a string");if("string"==typeof ne&&!s.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(1===Rt.length){var re=Rt.charCodeAt(0);("utf8"===ne&&re<128||"latin1"===ne)&&(Rt=re)}}else"number"==typeof Rt?Rt&=255:"boolean"==typeof Rt&&(Rt=Number(Rt));if(Ot<0||this.length<Ot||this.length<ee)throw new RangeError("Out of range index");if(ee<=Ot)return this;var ie;if(Ot>>>=0,ee=void 0===ee?this.length:ee>>>0,Rt||(Rt=0),"number"==typeof Rt)for(ie=Ot;ie<ee;++ie)this[ie]=Rt;else{var le=s.isBuffer(Rt)?Rt:s.from(Rt,ne),oe=le.length;if(0===oe)throw new TypeError('The value "'+Rt+'" is invalid for argument "value"');for(ie=0;ie<ee-Ot;++ie)this[ie+Ot]=le[ie%oe]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function F(Rt,Ot){var ee;Ot=Ot||1/0;for(var ne=Rt.length,re=null,ie=[],le=0;le<ne;++le){if((ee=Rt.charCodeAt(le))>55295&&ee<57344){if(!re){if(ee>56319){(Ot-=3)>-1&&ie.push(239,191,189);continue}if(le+1===ne){(Ot-=3)>-1&&ie.push(239,191,189);continue}re=ee;continue}if(ee<56320){(Ot-=3)>-1&&ie.push(239,191,189),re=ee;continue}ee=65536+(re-55296<<10|ee-56320)}else re&&(Ot-=3)>-1&&ie.push(239,191,189);if(re=null,ee<128){if((Ot-=1)<0)break;ie.push(ee)}else if(ee<2048){if((Ot-=2)<0)break;ie.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((Ot-=3)<0)break;ie.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((Ot-=4)<0)break;ie.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return ie}function U(Rt){return ne.toByteArray(function(Rt){if((Rt=(Rt=Rt.split("=")[0]).trim().replace(ue,"")).length<2)return"";for(;Rt.length%4!=0;)Rt+="=";return Rt}(Rt))}function j(Rt,Ot,ee,ne){for(var re=0;re<ne&&!(re+ee>=Ot.length||re>=Rt.length);++re)Ot[re+ee]=Rt[re];return re}function q(Rt,Ot){return Rt instanceof Ot||null!=Rt&&null!=Rt.constructor&&null!=Rt.constructor.name&&Rt.constructor.name===Ot.name}function B(Rt){return Rt!=Rt}var ce=function(){for(var Rt="0123456789abcdef",Ot=new Array(256),ee=0;ee<16;++ee)for(var ne=16*ee,re=0;re<16;++re)Ot[ne+re]=Rt[ee]+Rt[re];return Ot}()},6877:function(Rt,Ot){var ee={parseBuffer:function(Rt){return new a(Rt).parse()},addBoxProcessor:function(Rt,Ot){"string"==typeof Rt&&"function"==typeof Ot&&(r.prototype._boxProcessors[Rt]=Ot)},createFile:function(){return new a},createBox:function(Rt,Ot,ee){var ne=r.create(Rt);return Ot&&Ot.append(ne,ee),ne},createFullBox:function(Rt,Ot,ne){var re=ee.createBox(Rt,Ot,ne);return re.version=0,re.flags=0,re},Utils:{}};ee.Utils.dataViewToString=function(Rt,Ot){var ee=Ot||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(ee).decode(Rt);var ne=[],re=0;if("utf-8"===ee)for(;re<Rt.byteLength;){var ie=Rt.getUint8(re++);ie<128||(ie<224?(ie=(31&ie)<<6,ie|=63&Rt.getUint8(re++)):ie<240?(ie=(15&ie)<<12,ie|=(63&Rt.getUint8(re++))<<6,ie|=63&Rt.getUint8(re++)):(ie=(7&ie)<<18,ie|=(63&Rt.getUint8(re++))<<12,ie|=(63&Rt.getUint8(re++))<<6,ie|=63&Rt.getUint8(re++))),ne.push(String.fromCharCode(ie))}else for(;re<Rt.byteLength;)ne.push(String.fromCharCode(Rt.getUint8(re++)));return ne.join("")},ee.Utils.utf8ToByteArray=function(Rt){var Ot,ee;if("undefined"!=typeof TextEncoder)Ot=(new TextEncoder).encode(Rt);else for(Ot=[],ee=0;ee<Rt.length;++ee){var ne=Rt.charCodeAt(ee);ne<128?Ot.push(ne):ne<2048?(Ot.push(192|ne>>6),Ot.push(128|63&ne)):ne<65536?(Ot.push(224|ne>>12),Ot.push(128|63&ne>>6),Ot.push(128|63&ne)):(Ot.push(240|ne>>18),Ot.push(128|63&ne>>12),Ot.push(128|63&ne>>6),Ot.push(128|63&ne))}return Ot},ee.Utils.appendBox=function(Rt,Ot,ee){if(Ot._offset=Rt._cursor.offset,Ot._root=Rt._root?Rt._root:Rt,Ot._raw=Rt._raw,Ot._parent=Rt,-1!==ee)if(null!=ee){var ne,re=-1;if("number"==typeof ee)re=ee;else{if("string"==typeof ee)ne=ee;else{if("object"!=typeof ee||!ee.type)return void Rt.boxes.push(Ot);ne=ee.type}for(var ie=0;ie<Rt.boxes.length;ie++)if(ne===Rt.boxes[ie].type){re=ie+1;break}}Rt.boxes.splice(re,0,Ot)}else Rt.boxes.push(Ot)},Ot.parseBuffer=ee.parseBuffer,Ot.addBoxProcessor=ee.addBoxProcessor,Ot.createFile=ee.createFile,Ot.createBox=ee.createBox,Ot.createFullBox=ee.createFullBox,Ot.Utils=ee.Utils,ee.Cursor=function(Rt){this.offset=void 0===Rt?0:Rt};
vendor: 8,865 bytes, line 1
1var a=function(Rt){this._cursor=new ee.Cursor,this.boxes=[],Rt&&(this._raw=new DataView(Rt))};a.prototype.fetch=function(Rt){var Ot=this.fetchAll(Rt,!0);return Ot.length?Ot[0]:null},a.prototype.fetchAll=function(Rt,Ot){var ee=[];return a._sweep.call(this,Rt,ee,Ot),ee},a.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var Rt=r.parse(this);if(void 0===Rt.type)break;this.boxes.push(Rt)}return this},a._sweep=function(Rt,Ot,ee){for(var ne in this.type&&this.type==Rt&&Ot.push(this),this.boxes){if(Ot.length&&ee)return;a._sweep.call(this.boxes[ne],Rt,Ot,ee)}},a.prototype.write=function(){var Rt,Ot=0;for(Rt=0;Rt<this.boxes.length;Rt++)Ot+=this.boxes[Rt].getLength(!1);var ee=new Uint8Array(Ot);for(this._rawo=new DataView(ee.buffer),this.bytes=ee,this._cursor.offset=0,Rt=0;Rt<this.boxes.length;Rt++)this.boxes[Rt].write();return ee.buffer},a.prototype.append=function(Rt,Ot){ee.Utils.appendBox(this,Rt,Ot)};var r=function(){this._cursor=new ee.Cursor};r.parse=function(Rt){var Ot=new r;return Ot._offset=Rt._cursor.offset,Ot._root=Rt._root?Rt._root:Rt,Ot._raw=Rt._raw,Ot._parent=Rt,Ot._parseBox(),Rt._cursor.offset=Ot._raw.byteOffset+Ot._raw.byteLength,Ot},r.create=function(Rt){var Ot=new r;return Ot.type=Rt,Ot.boxes=[],Ot},r.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca","meta","grpl","prsl"],r.prototype._boxProcessors={},r.prototype._procField=function(Rt,Ot,ee){this._parsing?this[Rt]=this._readField(Ot,ee):this._writeField(Ot,ee,this[Rt])},r.prototype._procFieldArray=function(Rt,Ot,ee,ne){var re;if(this._parsing)for(this[Rt]=[],re=0;re<Ot;re++)this[Rt][re]=this._readField(ee,ne);else for(re=0;re<this[Rt].length;re++)this._writeField(ee,ne,this[Rt][re])},r.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},r.prototype._procEntries=function(Rt,Ot,ee){var ne;if(this._parsing)for(this[Rt]=[],ne=0;ne<Ot;ne++)this[Rt].push({}),ee.call(this,this[Rt][ne]);else for(ne=0;ne<Ot;ne++)ee.call(this,this[Rt][ne])},r.prototype._procSubEntries=function(Rt,Ot,ee,ne){var re;if(this._parsing)for(Rt[Ot]=[],re=0;re<ee;re++)Rt[Ot].push({}),ne.call(this,Rt[Ot][re]);else for(re=0;re<ee;re++)ne.call(this,Rt[Ot][re])},r.prototype._procEntryField=function(Rt,Ot,ee,ne){this._parsing?Rt[Ot]=this._readField(ee,ne):this._writeField(ee,ne,Rt[Ot])},r.prototype._procSubBoxes=function(Rt,Ot){var ee;if(this._parsing)for(this[Rt]=[],ee=0;ee<Ot;ee++)this[Rt].push(r.parse(this));else for(ee=0;ee<Ot;ee++)this._rawo?this[Rt][ee].write():this.size+=this[Rt][ee].getLength()},r.prototype._readField=function(Rt,Ot){switch(Rt){case"uint":return this._readUint(Ot);case"int":return this._readInt(Ot);case"template":return this._readTemplate(Ot);case"string":return-1===Ot?this._readTerminatedString():this._readString(Ot);case"data":return this._readData(Ot);case"utf8":return this._readUTF8String();case"utf8string":return this._readUTF8TerminatedString();default:return-1}},r.prototype._readInt=function(Rt){var Ot=null,ee=this._cursor.offset-this._raw.byteOffset;switch(Rt){case 8:Ot=this._raw.getInt8(ee);break;case 16:Ot=this._raw.getInt16(ee);break;case 32:Ot=this._raw.getInt32(ee);break;case 64:var ne=this._raw.getInt32(ee),re=this._raw.getInt32(ee+4);Ot=ne*Math.pow(2,32)+re}return this._cursor.offset+=Rt>>3,Ot},r.prototype._readUint=function(Rt){var Ot,ee,ne=null,re=this._cursor.offset-this._raw.byteOffset;switch(Rt){case 8:ne=this._raw.getUint8(re);break;case 16:ne=this._raw.getUint16(re);break;case 24:ne=((Ot=this._raw.getUint16(re))<<8)+(ee=this._raw.getUint8(re+2));break;case 32:ne=this._raw.getUint32(re);break;case 64:Ot=this._raw.getUint32(re),ee=this._raw.getUint32(re+4),ne=Ot*Math.pow(2,32)+ee}return this._cursor.offset+=Rt>>3,ne},r.prototype._readString=function(Rt){for(var Ot="",ee=0;ee<Rt;ee++){var ne=this._readUint(8);Ot+=String.fromCharCode(ne)}return Ot},r.prototype._readTemplate=function(Rt){return this._readUint(Rt/2)+this._readUint(Rt/2)/Math.pow(2,Rt/2)},r.prototype._readTerminatedString=function(){for(var Rt="";this._cursor.offset-this._offset<this._raw.byteLength;){var Ot=this._readUint(8);if(0===Ot)break;Rt+=String.fromCharCode(Ot)}return Rt},r.prototype._readData=function(Rt){var Ot=Rt>0?Rt:this._raw.byteLength-(this._cursor.offset-this._offset);if(Ot>0){var ee=new Uint8Array(this._raw.buffer,this._cursor.offset,Ot);return this._cursor.offset+=Ot,ee}return null},r.prototype._readUTF8String=function(){var Rt=this._raw.byteLength-(this._cursor.offset-this._offset),Ot=null;return Rt>0&&(Ot=new DataView(this._raw.buffer,this._cursor.offset,Rt),this._cursor.offset+=Rt),Ot?ee.Utils.dataViewToString(Ot):Ot},r.prototype._readUTF8TerminatedString=function(){var Rt=this._raw.byteLength-(this._cursor.offset-this._offset),Ot=null;if(Rt>0){var ne;for(Ot=new DataView(this._raw.buffer,this._cursor.offset,Rt),ne=0;ne<Rt&&0!==Ot.getUint8(ne);ne++);Ot=new DataView(this._raw.buffer,this._cursor.offset,ne),this._cursor.offset+=Math.min(ne+1,Rt)}return Ot?ee.Utils.dataViewToString(Ot):Ot},r.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())}},r.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},r.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(r.parse(this))},r.prototype.append=function(Rt,Ot){ee.Utils.appendBox(this,Rt,Ot)},r.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 Rt=0;Rt<this.boxes.length;Rt++)this.size+=this.boxes[Rt].getLength();return this._data&&this._writeData(this._data),this.size},r.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 Rt=0;Rt<this.boxes.length;Rt++)this.boxes[Rt].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},r.prototype._writeInt=function(Rt,Ot){if(this._rawo){var ee=this._cursor.offset-this._rawo.byteOffset;switch(Rt){case 8:this._rawo.setInt8(ee,Ot);break;case 16:this._rawo.setInt16(ee,Ot);break;case 32:this._rawo.setInt32(ee,Ot);break;case 64:var ne=Math.floor(Ot/Math.pow(2,32)),re=Ot-ne*Math.pow(2,32);this._rawo.setUint32(ee,ne),this._rawo.setUint32(ee+4,re)}this._cursor.offset+=Rt>>3}else this.size+=Rt>>3},r.prototype._writeUint=function(Rt,Ot){if(this._rawo){var ee,ne,re=this._cursor.offset-this._rawo.byteOffset;switch(Rt){case 8:this._rawo.setUint8(re,Ot);break;case 16:this._rawo.setUint16(re,Ot);break;case 24:ee=(16776960&Ot)>>8,ne=255&Ot,this._rawo.setUint16(re,ee),this._rawo.setUint8(re+2,ne);break;case 32:this._rawo.setUint32(re,Ot);break;case 64:ne=Ot-(ee=Math.floor(Ot/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(re,ee),this._rawo.setUint32(re+4,ne)}this._cursor.offset+=Rt>>3}else this.size+=Rt>>3},r.prototype._writeString=function(Rt,Ot){for(var ee=0;ee<Rt;
vendor: 4,358 bytes, line 1
1ee++)this._writeUint(8,Ot.charCodeAt(ee))},r.prototype._writeTerminatedString=function(Rt){if(0!==Rt.length){for(var Ot=0;Ot<Rt.length;Ot++)this._writeUint(8,Rt.charCodeAt(Ot));this._writeUint(8,0)}},r.prototype._writeTemplate=function(Rt,Ot){var ee=Math.floor(Ot),ne=(Ot-ee)*Math.pow(2,Rt/2);this._writeUint(Rt/2,ee),this._writeUint(Rt/2,ne)},r.prototype._writeData=function(Rt){if(Rt)if(this._rawo){if(Rt instanceof Array){for(var Ot=this._cursor.offset-this._rawo.byteOffset,ee=0;ee<Rt.length;ee++)this._rawo.setInt8(Ot+ee,Rt[ee]);this._cursor.offset+=Rt.length}Rt instanceof Uint8Array&&(this._root.bytes.set(Rt,this._cursor.offset),this._cursor.offset+=Rt.length)}else this.size+=Rt.length},r.prototype._writeUTF8String=function(Rt){var Ot=ee.Utils.utf8ToByteArray(Rt);if(this._rawo)for(var ne=new DataView(this._rawo.buffer,this._cursor.offset,Ot.length),re=0;re<Ot.length;re++)ne.setUint8(re,Ot[re]);else this.size+=Ot.length},r.prototype._writeField=function(Rt,Ot,ee){switch(Rt){case"uint":this._writeUint(Ot,ee);break;case"int":this._writeInt(Ot,ee);break;case"template":this._writeTemplate(Ot,ee);break;case"string":-1==Ot?this._writeTerminatedString(ee):this._writeString(Ot,ee);break;case"data":this._writeData(ee);break;case"utf8":this._writeUTF8String(ee)}},r.prototype._boxProcessors.ardi=function(){this._procFullBox(),this._procField("audio_rendering_indication","uint",8)},r.prototype._boxProcessors.avc1=r.prototype._boxProcessors.avc2=r.prototype._boxProcessors.avc3=r.prototype._boxProcessors.avc4=r.prototype._boxProcessors.hvc1=r.prototype._boxProcessors.hev1=r.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)},r.prototype._boxProcessors.ctts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(Rt){this._procEntryField(Rt,"sample_count","uint",32),this._procEntryField(Rt,"sample_offset",1===this.version?"int":"uint",32)}))},r.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},r.prototype._boxProcessors.elng=function(){this._procFullBox(),this._procField("extended_language","utf8string")},r.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(Rt){this._procEntryField(Rt,"segment_duration","uint",1===this.version?64:32),this._procEntryField(Rt,"media_time","int",1===this.version?64:32),this._procEntryField(Rt,"media_rate_integer","int",16),this._procEntryField(Rt,"media_rate_fraction","int",16)}))},r.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)},r.prototype._boxProcessors.free=r.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},r.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},r.prototype._boxProcessors.ftyp=r.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var Rt=-1;this._parsing&&(Rt=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",Rt,"
1string",4)},r.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)},r.prototype._boxProcessors.imda=function(){this._procField("imda_identifier","uint",32),this._procField("data","data",-1)},r.prototype._boxProcessors.kind=function(){this._procFullBox(),this._procField("schemeURI","utf8string"),this._procField("value","utf8string")},r.prototype._boxProcessors.labl=function(){this._procFullBox(),this.is_group_label=!!(1&this.flags),this._procField("label_id","uint",16),this._procField("language","utf8string"),this._procField("label","utf8string")},r.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},r.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)},r.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},r.prototype._boxProcessors.meta=function(){this._procFullBox()},r.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},r.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},r.prototype._boxProcessors.mp4a=r.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)},r.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)},r.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},r.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)},r.prototype._boxProcessors.prsl=function(){this._procFullBox(),this._procField("group_id","uint",32),this._procField("num_entities_in_group","uint",32),this._procEntries("entities",this.num_entities_in_group,(function(Rt){this._procEntryField(Rt,"entity_id","uint",32)})),4096&this.flags&&this._procField("preselection_tag","utf8string"),8192&this.flags&&this._procField("selection_priority","uint",8),16384&this.flags&&this._procField("interleaving_tag","utf8string")},r.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},r.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)},r.prototype._boxProcessors.sdtp=function(){this._procFullBox();var Rt=-1;this._parsing&&(Rt=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",Rt,"uint",8)},r.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(Rt){this._parsing||(Rt.reference=(1&Rt.reference_type)<<31,Rt.reference|=2147483647&Rt.referenced_size,Rt.sap=(1&Rt.starts_with_SAP)<<31,Rt.sap|=(3&Rt.SAP_type)<<28,Rt.sap|=268435455&Rt.SAP_delta_time),this._procEntryField(Rt,"reference","uint",32),this._procEntryField(Rt,"subsegment_duration","uint",32),this._procEntryField(Rt,"sap","uint",32),this._parsing&&(Rt.reference_type=Rt.reference>>31&1,Rt.referenced_size=2147483647&Rt.reference,Rt.starts_with_SAP=Rt.sap>>31&1,Rt.SAP_type=Rt.sap>>28&7,Rt.SAP_delta_time=268435455&Rt.sap)}))},r.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},r.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(Rt){this._procEntryField(Rt,"ranges_count","uint",32),this._procSubEntries(Rt,"ranges",Rt.ranges_count,(function(Rt){this._procEntryField(Rt,"level","uint",8),this._procEntryField(Rt,"range_size","uint",24)}))}))},r.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entr
1ies",this.entry_count)},r.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},r.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(Rt){this._procEntryField(Rt,"sample_count","uint",32),this._procEntryField(Rt,"sample_delta","uint",32)}))},r.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(Rt){this._procEntryField(Rt,"sample_delta","uint",32),this._procEntryField(Rt,"subsample_count","uint",16),this._procSubEntries(Rt,"subsamples",Rt.subsample_count,(function(Rt){this._procEntryField(Rt,"subsample_size","uint",1===this.version?32:16),this._procEntryField(Rt,"subsample_priority","uint",8),this._procEntryField(Rt,"discardable","uint",8),this._procEntryField(Rt,"codec_specific_parameters","uint",32)}))}))},r.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)},r.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},r.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)},r.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(Rt){this._procEntryField(Rt,"time","uint",1===this.version?64:32),this._procEntryField(Rt,"moof_offset","uint",1===this.version?64:32),this._procEntryField(Rt,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(Rt,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(Rt,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},r.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)},r.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)},r.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(Rt){256&this.flags&&this._procEntryField(Rt,"sample_duration","uint",32),512&this.flags&&this._procEntryField(Rt,"sample_size","uint",32),1024&this.flags&&this._procEntryField(Rt,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(Rt,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},r.prototype._boxProcessors["url "]=r.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},r.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},r.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},r.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},r.prototype._boxProcessors.vtte=function(){}},9826:function(Rt){var Ot,ee="object"==typeof Reflect?Reflect:null,ne=ee&&"function"==typeof ee.apply?ee.apply:function(Rt,Ot,ee){return Function.prototype.apply.call(Rt,Ot,ee)};Ot=ee&&"function"==typeof ee.ownKeys?ee.ownKeys:Object.getOwnPropertySymbols?function(Rt){return Object.getOwnPropertyNames(Rt).concat(Object.getOwnPropertySymbols(Rt))}:function(Rt){return Object.getOwnPropertyNames(Rt)};var re=Number.isNaN||function(Rt){return Rt!=Rt};function i(){i.init.call(this)}Rt.exports=i,Rt.exports.once=function(Rt,Ot){return new Promise((function(ee,ne){function r(ee){Rt.removeListener(Ot,i),ne(ee)}function i(){"function"==typeof Rt.removeListener&&Rt.removeListener("error",r),ee([].slice.call(arguments))}h(Rt,Ot,i,{once:!0}),"error"!==Ot&&function(Rt,Ot){"function"==typeof Rt.on&&h(Rt,"error",Ot,{once:!0})}(Rt,r)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var ie=10;function o(Rt){if("function"!=typeof Rt)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Rt)}function s(Rt){return void 0===Rt._maxListeners?i.defaultMaxListeners:Rt._maxListeners}function u(Rt,Ot,ee,ne){var re,ie,le,oe;if(o(ee),void 0===(ie=Rt._events)?(ie=Rt._events=Object.create(null),Rt._eventsCount=0):(void 0!==ie.newListener&&(Rt.emit("newListener",Ot,ee.listener?ee.listener:ee),ie=Rt._events),le=ie[Ot]),void 0===le)le=ie[Ot]=ee,++Rt._eventsCount;else if("function"==typeof le?le=ie[Ot]=ne?[ee,le]:[le,ee]:ne?le.unshift(ee):le.push(ee),(re=s(Rt))>0&&le.length>re&&!le.warned){le.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+le.length+" "+String(Ot)+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=Rt,ue.type=Ot,ue.count=le.length,oe=ue,console&&console.warn&&console.warn(oe)}return Rt}function d(){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 c(Rt,Ot,ee){var ne={fired:!1,wrapFn:void 0,target:Rt,type:Ot,listener:ee},re=d.bind(ne);return re.listener=ee,ne.wrapFn=re,re}function f(Rt,Ot,ee){var ne=Rt._events;if(void 0===ne)return[];var re=ne[Ot];return void 0===re?[]:"function"==typeof re?ee?[re.listener||re]:[re]:ee?function(Rt){for(var Ot=new Array(Rt.length),ee=0;ee<Ot.length;++ee)Ot[ee]=Rt[ee].listener||Rt[ee];return Ot}(re):m(re,re.length)}function g(Rt){var Ot=this._events;if(void 0!==Ot){var ee=Ot[Rt];if("function"==typeof ee)return 1;if(void 0!==ee)return ee.length}return 0}function m(Rt,Ot){for(var ee=new Array(Ot),ne=0;ne<Ot;++ne)ee[ne]=Rt[ne];return ee}function h(Rt,Ot,ee,ne){if("function"==typeof Rt.on)ne.once?Rt.once(Ot,ee):Rt.on(Ot,ee);else{if("function"!=typeof Rt.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Rt);Rt.addEventListener(Ot,(function r(re){ne.once&&Rt.removeEventListener(Ot,r),ee(re)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return ie},set:function(Rt){if("number"!=typeof Rt||Rt<0||re(Rt))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Rt+".");ie=Rt}}),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(Rt){if("number"!=typeof Rt||Rt<0||re(Rt))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Rt+".");return this._maxListeners=Rt,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(Rt){for(var Ot=[],ee=1;ee<arguments.length;ee++)Ot.push(arguments[ee]);var re="error"===Rt,ie=this._events;if(void 0!==ie)re=re&&void 0===ie.error;else if(!re)return!1;if(re){var le;if(Ot.length>0&&(le=Ot[0]),le instanceof Error)throw le;var oe=new Error("Unhandled error."+(le?" ("+le.message+")":""));throw oe.context=le,oe}var ue=ie[Rt];if(void 0===ue)return!1;if("function"==typeof ue)ne(ue,this,Ot);else{var ce=ue.length,fe=m(ue,ce);for(ee=0;ee<ce;++ee)ne(fe[ee],this,Ot)}return!0},i.prototype.addListener=function(Rt,Ot){return u(this,Rt,Ot,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(Rt,Ot){return u(this,Rt,Ot,!0)},i.prototype.once=function(Rt,Ot){return o(Ot),this.on(Rt,c(this,Rt,Ot)),this},i.prototype.prependOnceListener=function(Rt,Ot){return o(Ot),this.prependListener(Rt,c(this,Rt,Ot)),this},i.prototype.removeListener=function(Rt,Ot){var ee,ne,re,ie,le;if(o(Ot),void 0===(ne=this._events))return this;if(void 0===(ee=ne[Rt]))return this;if(ee===Ot||ee.listener===Ot)0==--this._eventsCount?this._events=Object.create(null):(delete ne[Rt],ne.removeListener&&this.emit
vendor: 5,139 bytes, line 1
1("removeListener",Rt,ee.listener||Ot));else if("function"!=typeof ee){for(re=-1,ie=ee.length-1;ie>=0;ie--)if(ee[ie]===Ot||ee[ie].listener===Ot){le=ee[ie].listener,re=ie;break}if(re<0)return this;0===re?ee.shift():function(Rt,Ot){for(;Ot+1<Rt.length;Ot++)Rt[Ot]=Rt[Ot+1];Rt.pop()}(ee,re),1===ee.length&&(ne[Rt]=ee[0]),void 0!==ne.removeListener&&this.emit("removeListener",Rt,le||Ot)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(Rt){var Ot,ee,ne;if(void 0===(ee=this._events))return this;if(void 0===ee.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ee[Rt]&&(0==--this._eventsCount?this._events=Object.create(null):delete ee[Rt]),this;if(0===arguments.length){var re,ie=Object.keys(ee);for(ne=0;ne<ie.length;++ne)"removeListener"!==(re=ie[ne])&&this.removeAllListeners(re);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(Ot=ee[Rt]))this.removeListener(Rt,Ot);else if(void 0!==Ot)for(ne=Ot.length-1;ne>=0;ne--)this.removeListener(Rt,Ot[ne]);return this},i.prototype.listeners=function(Rt){return f(this,Rt,!0)},i.prototype.rawListeners=function(Rt){return f(this,Rt,!1)},i.listenerCount=function(Rt,Ot){return"function"==typeof Rt.listenerCount?Rt.listenerCount(Ot):g.call(Rt,Ot)},i.prototype.listenerCount=g,i.prototype.eventNames=function(){return this._eventsCount>0?Ot(this._events):[]}},7316:function(Rt){Rt.exports=function t(Rt,Ot){if(Rt===Ot)return!0;if(Rt&&Ot&&"object"==typeof Rt&&"object"==typeof Ot){if(Rt.constructor!==Ot.constructor)return!1;var ee,ne,re;if(Array.isArray(Rt)){if((ee=Rt.length)!=Ot.length)return!1;for(ne=ee;0!=ne--;)if(!t(Rt[ne],Ot[ne]))return!1;return!0}if(Rt.constructor===RegExp)return Rt.source===Ot.source&&Rt.flags===Ot.flags;if(Rt.valueOf!==Object.prototype.valueOf)return Rt.valueOf()===Ot.valueOf();if(Rt.toString!==Object.prototype.toString)return Rt.toString()===Ot.toString();if((ee=(re=Object.keys(Rt)).length)!==Object.keys(Ot).length)return!1;for(ne=ee;0!=ne--;)if(!Object.prototype.hasOwnProperty.call(Ot,re[ne]))return!1;for(ne=ee;0!=ne--;){var ie=re[ne];if(!t(Rt[ie],Ot[ie]))return!1}return!0}return Rt!=Rt&&Ot!=Ot}},7986:function(Rt,Ot){Ot.read=function(Rt,Ot,ee,ne,re){var ie,le,oe=8*re-ne-1,ue=(1<<oe)-1,ce=ue>>1,fe=-7,ge=ee?re-1:0,he=ee?-1:1,pe=Rt[Ot+ge];for(ge+=he,ie=pe&(1<<-fe)-1,pe>>=-fe,fe+=oe;fe>0;ie=256*ie+Rt[Ot+ge],ge+=he,fe-=8);for(le=ie&(1<<-fe)-1,ie>>=-fe,fe+=ne;fe>0;le=256*le+Rt[Ot+ge],ge+=he,fe-=8);if(0===ie)ie=1-ce;else{if(ie===ue)return le?NaN:1/0*(pe?-1:1);le+=Math.pow(2,ne),ie-=ce}return(pe?-1:1)*le*Math.pow(2,ie-ne)},Ot.write=function(Rt,Ot,ee,ne,re,ie){var le,oe,ue,ce=8*ie-re-1,fe=(1<<ce)-1,ge=fe>>1,he=23===re?Math.pow(2,-24)-Math.pow(2,-77):0,pe=ne?0:ie-1,be=ne?1:-1,ye=Ot<0||0===Ot&&1/Ot<0?1:0;for(Ot=Math.abs(Ot),isNaN(Ot)||Ot===1/0?(oe=isNaN(Ot)?1:0,le=fe):(le=Math.floor(Math.log(Ot)/Math.LN2),Ot*(ue=Math.pow(2,-le))<1&&(le--,ue*=2),(Ot+=le+ge>=1?he/ue:he*Math.pow(2,1-ge))*ue>=2&&(le++,ue/=2),le+ge>=fe?(oe=0,le=fe):le+ge>=1?(oe=(Ot*ue-1)*Math.pow(2,re),le+=ge):(oe=Ot*Math.pow(2,ge-1)*Math.pow(2,re),le=0));re>=8;Rt[ee+pe]=255&oe,pe+=be,oe/=256,re-=8);for(le=le<<re|oe,ce+=re;ce>0;Rt[ee+pe]=255&le,pe+=be,le/=256,ce-=8);Rt[ee+pe-be]|=128*ye}},5474:function(Rt,Ot,ee){!function(Rt){Rt.parser=function(Rt,Ot){return new r(Rt,Ot)},Rt.SAXParser=r,Rt.SAXStream=l,Rt.createStream=function(Rt,Ot){return new l(Rt,Ot)},Rt.MAX_BUFFER_LENGTH=65536;var Ot,re=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(Ot,ee){if(!(this instanceof r))return new r(Ot,ee);var ne=this;!function(Rt){for(var Ot=0,ee=re.length;Ot<ee;Ot++)Rt[re[Ot]]=""}(ne),ne.q=ne.c="",ne.bufferCheckPosition=Rt.MAX_BUFFER_LENGTH,ne.opt=ee||{},ne.opt.lowercase=ne.opt.lowercase||ne.opt.lowercasetags,ne.looseCase=ne.opt.lowercase?"toLowerCase":"toUpperCase",ne.tags=[],ne.closed=ne.closedRoot=ne.sawRoot=!1,ne.tag=ne.error=null,ne.strict=!!Ot,ne.noscript=!(!Ot&&!ne.opt.noscript),ne.state=De.BEGIN,ne.strictEntities=ne.opt.strictEntities,ne.ENTITIES=ne.strictEntities?Object.create(Rt.XML_ENTITIES):Object.create(Rt.ENTITIES),ne.attribList=[],ne.opt.xmlns&&(ne.ns=Object.create(ye)),ne.trackPosition=!1!==ne.opt.position,ne.trackPosition&&(ne.position=ne.line=ne.column=0),N(ne,"onready")}Rt.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(Rt){function e(){}return e.prototype=Rt,new e}),Object.keys||(Object.keys=function(Rt){var Ot=[];for(var ee in Rt)Rt.hasOwnProperty(ee)&&Ot.push(ee);return Ot}),r.prototype={end:function(){P(this)},write:function(Ot){var ee=this;if(this.error)throw this.error;if(ee.closed)return M(ee,"Cannot write after close. Assign an onready handler.");if(null===Ot)return P(ee);"object"==typeof Ot&&(Ot=Ot.toString());for(var ne=0,ie="";ie=G(Ot,ne++),ee.c=ie,ie;
vendor: 11,392 bytes, line 1
1)switch(ee.trackPosition&&(ee.position++,"\n"===ie?(ee.line++,ee.column=0):ee.column++),ee.state){case De.BEGIN:if(ee.state=De.BEGIN_WHITESPACE,"\ufeff"===ie)continue;B(ee,ie);continue;case De.BEGIN_WHITESPACE:B(ee,ie);continue;case De.TEXT:if(ee.sawRoot&&!ee.closedRoot){for(var oe=ne-1;ie&&"<"!==ie&&"&"!==ie;)(ie=G(Ot,ne++))&&ee.trackPosition&&(ee.position++,"\n"===ie?(ee.line++,ee.column=0):ee.column++);ee.textNode+=Ot.substring(oe,ne-1)}"<"!==ie||ee.sawRoot&&ee.closedRoot&&!ee.strict?(!S(le,ie)||ee.sawRoot&&!ee.closedRoot||O(ee,"Text data outside of root node."),"&"===ie?ee.state=De.TEXT_ENTITY:ee.textNode+=ie):(ee.state=De.OPEN_WAKA,ee.startTagPosition=ee.position);continue;case De.SCRIPT:"<"===ie?ee.state=De.SCRIPT_ENDING:ee.script+=ie;continue;case De.SCRIPT_ENDING:"/"===ie?ee.state=De.CLOSE_TAG:(ee.script+="<"+ie,ee.state=De.SCRIPT);continue;case De.OPEN_WAKA:if("!"===ie)ee.state=De.SGML_DECL,ee.sgmlDecl="";else if(v(le,ie));else if(v(Ee,ie))ee.state=De.OPEN_TAG,ee.tagName=ie;else if("/"===ie)ee.state=De.CLOSE_TAG,ee.tagName="";else if("?"===ie)ee.state=De.PROC_INST,ee.procInstName=ee.procInstBody="";else{if(O(ee,"Unencoded <"),ee.startTagPosition+1<ee.position){var ue=ee.position-ee.startTagPosition;ie=new Array(ue).join(" ")+ie}ee.textNode+="<"+ie,ee.state=De.TEXT}continue;case De.SGML_DECL:(ee.sgmlDecl+ie).toUpperCase()===ge?(C(ee,"onopencdata"),ee.state=De.CDATA,ee.sgmlDecl="",ee.cdata=""):ee.sgmlDecl+ie==="--"?(ee.state=De.COMMENT,ee.comment="",ee.sgmlDecl=""):(ee.sgmlDecl+ie).toUpperCase()===he?(ee.state=De.DOCTYPE,(ee.doctype||ee.sawRoot)&&O(ee,"Inappropriately located doctype declaration"),ee.doctype="",ee.sgmlDecl=""):">"===ie?(C(ee,"onsgmldeclaration",ee.sgmlDecl),ee.sgmlDecl="",ee.state=De.TEXT):v(ce,ie)?(ee.state=De.SGML_DECL_QUOTED,ee.sgmlDecl+=ie):ee.sgmlDecl+=ie;continue;case De.SGML_DECL_QUOTED:ie===ee.q&&(ee.state=De.SGML_DECL,ee.q=""),ee.sgmlDecl+=ie;continue;case De.DOCTYPE:">"===ie?(ee.state=De.TEXT,C(ee,"ondoctype",ee.doctype),ee.doctype=!0):(ee.doctype+=ie,"["===ie?ee.state=De.DOCTYPE_DTD:v(ce,ie)&&(ee.state=De.DOCTYPE_QUOTED,ee.q=ie));continue;case De.DOCTYPE_QUOTED:ee.doctype+=ie,ie===ee.q&&(ee.q="",ee.state=De.DOCTYPE);continue;case De.DOCTYPE_DTD:ee.doctype+=ie,"]"===ie?ee.state=De.DOCTYPE:v(ce,ie)&&(ee.state=De.DOCTYPE_DTD_QUOTED,ee.q=ie);continue;case De.DOCTYPE_DTD_QUOTED:ee.doctype+=ie,ie===ee.q&&(ee.state=De.DOCTYPE_DTD,ee.q="");continue;case De.COMMENT:"-"===ie?ee.state=De.COMMENT_ENDING:ee.comment+=ie;continue;case De.COMMENT_ENDING:"-"===ie?(ee.state=De.COMMENT_ENDED,ee.comment=x(ee.opt,ee.comment),ee.comment&&C(ee,"oncomment",ee.comment),ee.comment=""):(ee.comment+="-"+ie,ee.state=De.COMMENT);continue;case De.COMMENT_ENDED:">"!==ie?(O(ee,"Malformed comment"),ee.comment+="--"+ie,ee.state=De.COMMENT):ee.state=De.TEXT;continue;case De.CDATA:"]"===ie?ee.state=De.CDATA_ENDING:ee.cdata+=ie;continue;case De.CDATA_ENDING:"]"===ie?ee.state=De.CDATA_ENDING_2:(ee.cdata+="]"+ie,ee.state=De.CDATA);continue;case De.CDATA_ENDING_2:">"===ie?(ee.cdata&&C(ee,"oncdata",ee.cdata),C(ee,"onclosecdata"),ee.cdata="",ee.state=De.TEXT):"]"===ie?ee.cdata+="]":(ee.cdata+="]]"+ie,ee.state=De.CDATA);continue;case De.PROC_INST:"?"===ie?ee.state=De.PROC_INST_ENDING:v(le,ie)?ee.state=De.PROC_INST_BODY:ee.procInstName+=ie;continue;case De.PROC_INST_BODY:if(!ee.procInstBody&&v(le,ie))continue;"?"===ie?ee.state=De.PROC_INST_ENDING:ee.procInstBody+=ie;continue;case De.PROC_INST_ENDING:">"===ie?(C(ee,"onprocessinginstruction",{name:ee.procInstName,body:ee.procInstBody}),ee.procInstName=ee.procInstBody="",ee.state=De.TEXT):(ee.procInstBody+="?"+ie,ee.state=De.PROC_INST_BODY);continue;case De.OPEN_TAG:v(_e,ie)?ee.tagName+=ie:(z(ee),">"===ie?U(ee):"/"===ie?ee.state=De.OPEN_TAG_SLASH:(S(le,ie)&&O(ee,"Invalid character in tag name"),ee.state=De.ATTRIB));continue;case De.OPEN_TAG_SLASH:">"===ie?(U(ee,!0),j(ee)):(O(ee,"Forward-slash in opening tag not followed by >"),ee.state=De.ATTRIB);continue;case De.ATTRIB:if(v(le,ie))continue;">"===ie?U(ee):"/"===ie?ee.state=De.OPEN_TAG_SLASH:v(Ee,ie)?(ee.attribName=ie,ee.attribValue="",ee.state=De.ATTRIB_NAME):O(ee,"Invalid attribute name");continue;case De.ATTRIB_NAME:"="===ie?ee.state=De.ATTRIB_VALUE:">"===ie?(O(ee,"Attribute without value"),ee.attribValue=ee.attribName,F(ee),U(ee)):v(le,ie)?ee.state=De.ATTRIB_NAME_SAW_WHITE:v(_e,ie)?ee.attribName+=ie:O(ee,"Invalid attribute name");continue;case De.ATTRIB_NAME_SAW_WHITE:if("="===ie)ee.state=De.ATTRIB_VALUE;else{if(v(le,ie))continue;O(ee,"Attribute without value"),ee.tag.attributes[ee.attribName]="",ee.attribValue="",C(ee,"onattribute",{name:ee.attribName,value:""}),ee.attribName="",">"===ie?U(ee):v(Ee,ie)?(ee.attribName=ie,ee.state=De.ATTRIB_NAME):(O(ee,"Invalid attribute name"),ee.state=De.ATTRIB)}continue;case De.ATTRIB_VALUE:if(v(le,ie))continue;v(ce,ie)?(ee.q=ie,ee.state=De.ATTRIB_VALUE_QUOTED):(O(ee,"Unquoted attribute value"),ee.state=De.ATTRIB_VALUE_UNQUOTED,ee.attribValue=ie);continue;case De.ATTRIB_VALUE_QUOTED:if(ie!==ee.q){"&"===ie?ee.state=De.ATTRIB_VALUE_ENTITY_Q:ee.attribValue+=ie;continue}F(ee),ee.q="",ee.state=De.ATTRIB_VALUE_CLOSED;continue;case De.ATTRIB_VALUE_CLOSED:v(le,ie)?ee.state=De.ATTRIB:">"===ie?U(ee):"/"===ie?ee.state=De.OPEN_TAG_SLASH:v(Ee,ie)?(O(ee,"No whitespace between attributes"),ee.attribName=ie,ee.attribValue="",ee.state=De.ATTRIB_NAME):O(ee,"Invalid attribute name");continue;case De.ATTRIB_VALUE_UNQUOTED:if(S(fe,ie)){"&"===ie?ee.state=De.ATTRIB_VALUE_ENTITY_U:ee.attribValue+=ie;continue}F(ee),">"===ie?U(ee):ee.state=De.ATTRIB;continue;case De.CLOSE_TAG:if(ee.tagName)">"===ie?j(ee):v(_e,ie)?ee.tagName+=ie:ee.script?(ee.script+="</"+ee.tagName,ee.tagName="",ee.state=De.SCRIPT):(S(le,ie)&&O(ee,"Invalid tagname in closing tag"),ee.state=De.CLOSE_TAG_SAW_WHITE);else{if(v(le,ie))continue;S(Ee,ie)?ee.script?(ee.script+="</"+ie,ee.state=De.SCRIPT):O(ee,"Invalid tagname in closing tag."):ee.tagName=ie}continue;case De.CLOSE_TAG_SAW_WHITE:if(v(le,ie))continue;">"===ie?j(ee):O(ee,"Invalid characters in closing tag");continue;case De.TEXT_ENTITY:case De.ATTRIB_VALUE_ENTITY_Q:case De.ATTRIB_VALUE_ENTITY_U:var pe,be;switch(ee.state){case De.TEXT_ENTITY:pe=De.TEXT,be="textNode";break;case De.ATTRIB_VALUE_ENTITY_Q:pe=De.ATTRIB_VALUE_QUOTED,be="attribValue";break;case De.ATTRIB_VALUE_ENTITY_U:pe=De.ATTRIB_VALUE_UNQUOTED,be="attribValue"}";"===ie?(ee[be]+=q(ee),ee.entity="",ee.state=pe):v(ee.entity.length?we:Se,ie)?ee.entity+=ie:(O(ee,"Invalid character in entity name"),ee[be]+="&"+ee.entity+ie,ee.entity="",ee.state=pe);continue;default:throw new Error(ee,"Unknown state: "+ee.state)}return ee.position>=ee.bufferCheckPosition&&function(Ot){for(var ee=Math.max(Rt.MAX_BUFFER_LENGTH,10),ne=0,ie=0,le=re.length;ie<le;ie++){var oe=Ot[re[ie]].length;if(oe>ee)switch(re[ie]){case"textNode":D(Ot);break;case"cdata":C(Ot,"oncdata",Ot.cdata),Ot.cdata="";break;case"script":C(Ot,"onscript",Ot.script),Ot.script="";break;default:M(Ot,"Max buffer length exceeded: "+re[ie])}ne=Math.max(ne,oe)}var ue=Rt.MAX_BUFFER_LENGTH-ne;Ot.bufferCheckPosition=ue+Ot.position}(ee),ee},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var Rt;D(Rt=this),""!==Rt.cdata&&(C(Rt,"oncdata",Rt.cdata),Rt.cdata=""),""!==Rt.script&&(C(Rt,"onscript",Rt.script),Rt.script="")}};try{Ot=ee(3515).Stream}catch(Rt){Ot=function(){}}var ie=Rt.EVENTS.filter((function(Rt){return"error"!==Rt&&"end"!==Rt}));function l(Rt,ee){if(!(this instanceof l))return new l(Rt,ee);Ot.apply(this),this._parser=new r(Rt,ee),this.writable=!0,this.readable=!0;var ne=this;this._parser.onend=function(){ne.emit("end")},this._parser.onerror=function(Rt){ne.emit("error",Rt),ne._parser.error=null},this._decoder=null,ie.forEach((function(Rt){Object.defineProperty(ne,"on"+Rt,{get:function(){return ne._parser["on"+Rt]},set:function(Ot){if(!Ot)return ne.removeAllListeners(Rt),ne._parser["on"+Rt]=Ot,Ot;ne.on(Rt,Ot)},enumerable:!0,configurable:!1})}))}l.prototype=Object.create(Ot.prototype,{constructor:{value:l}}),l.prototype.write=function(Rt){if("function"==typeof ne&&"function"==typeof ne.isBuffer&&ne.isBuffer(Rt)){if(!this._decoder){var Ot=ee(748).StringDecoder;this._decoder=new Ot("utf8")}Rt=this._decoder.write(Rt)}return this._parser.write(Rt.toString()),this.emit("data",Rt),!0},l.prototype.end=function(Rt){return Rt&&Rt.length&&this.write(Rt),this._parser.end(),!0},l.prototype.on=function(Rt,ee){var ne=this;return ne._parser["on"+Rt]||-1===ie.indexOf(Rt)||(ne._parser["on"+Rt]=function(){var Ot=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);Ot.splice(0,0,Rt),ne.emit.apply(ne,Ot)}),Ot.prototype.on.call(ne,Rt,ee)};var le="\r\n\t ",oe="0124356789",ue="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ce="'\"",fe=le+">",ge="[CDATA[",he="DOCTYPE",pe="http://www.w3.org/XML/1998/namespace",be="http://www.w3.org/2000/xmlns/",ye={xml:pe,xmlns:be};le=_(le),oe=_(oe),ue=_(ue);var Ee=/[:_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-]/,Se=/[#:_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]/,we=/[#:_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 _(Rt){return Rt.split("").reduce((function(Rt,Ot){return Rt[Ot]=!0,Rt}),{})}function v(Rt,Ot){return function(Rt){return"[object RegExp]"===Object.prototype.toString.call(Rt)}(Rt)?!!Ot.match(Rt):Rt[Ot]}function S(Rt,Ot){return!v(Rt,Ot)}ce=_(ce),fe=_(fe);var Re,Ne,Ce,De=0;for(var xe in Rt.STATE={BEGIN:De++,BEGIN_WHITESPACE:De++,TEXT:De++,TEXT_ENTITY:De++,OPEN_WAKA:De++,SGML_DECL:De++,SGML_DECL_QUOTED:De++,DOCTYPE:De++,DOCTYPE_QUOTED:De++,DOCTYPE_DTD:De++,DOCTYPE_DTD_QUOTED:De++,COMMENT_STARTING:De++,COMMENT:De++,COMMENT_ENDING:De++,COMMENT_ENDED:De++,CDATA:De++,CDATA_ENDING:De++,CDATA_ENDING_2:De++,PROC_INST:De++,PROC_INST_BODY:De++,PROC_INST_ENDING:De++,OPEN_TAG:De++,OPEN_TAG_SLASH:De++,ATTRIB:De++,ATTRIB_NAME:De++,ATTRIB_NAME_SAW_WHITE:De++,ATTRIB_VALUE:De++,ATTRIB_VALUE_QUOTED:De++,ATTRIB_VALUE_CLOSED:De++,ATTRIB_VALUE_UNQUOTED:De++,ATTRIB_VALUE_ENTITY_Q:De++,ATTRIB_VALUE_ENTITY_U:De++,CLOSE_TAG:De++,CLOSE_TAG_SAW_WHITE:De++,SCRIPT:De++,SCRIPT_ENDING:De++},Rt.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Rt.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:1
vendor: 10,422 bytes, line 1
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(Rt.ENTITIES).forEach((function(Ot){var ee=Rt.ENTITIES[Ot],ne="number"==typeof ee?String.fromCharCode(ee):ee;Rt.ENTITIES[Ot]=ne})),Rt.STATE)Rt.STATE[Rt.STATE[xe]]=xe;function N(Rt,Ot,ee){Rt[Ot]&&Rt[Ot](ee)}function C(Rt,Ot,ee){Rt.textNode&&D(Rt),N(Rt,Ot,ee)}function D(Rt){Rt.textNode=x(Rt.opt,Rt.textNode),Rt.textNode&&N(Rt,"ontext",Rt.textNode),Rt.textNode=""}function x(Rt,Ot){return Rt.trim&&(Ot=Ot.trim()),Rt.normalize&&(Ot=Ot.replace(/\s+/g," ")),Ot}function M(Rt,Ot){return D(Rt),Rt.trackPosition&&(Ot+="\nLine: "+Rt.line+"\nColumn: "+Rt.column+"\nChar: "+Rt.c),Ot=new Error(Ot),Rt.error=Ot,N(Rt,"onerror",Ot),Rt}function P(Rt){return Rt.sawRoot&&!Rt.closedRoot&&O(Rt,"Unclosed root tag"),Rt.state!==De.BEGIN&&Rt.state!==De.BEGIN_WHITESPACE&&Rt.state!==De.TEXT&&M(Rt,"Unexpected end"),D(Rt),Rt.c="",Rt.closed=!0,N(Rt,"onend"),r.call(Rt,Rt.strict,Rt.opt),Rt}function O(Rt,Ot){if("object"!=typeof Rt||!(Rt instanceof r))throw new Error("bad call to strictFail");Rt.strict&&M(Rt,Ot)}function z(Rt){Rt.strict||(Rt.tagName=Rt.tagName[Rt.looseCase]());var Ot=Rt.tags[Rt.tags.length-1]||Rt,ee=Rt.tag={name:Rt.tagName,attributes:{}};Rt.opt.xmlns&&(ee.ns=Ot.ns),Rt.attribList.length=0,C(Rt,"onopentagstart",ee)}function L(Rt,Ot){var ee=Rt.indexOf(":")<0?["",Rt]:Rt.split(":"),ne=ee[0],re=ee[1];return Ot&&"xmlns"===Rt&&(ne="xmlns",re=""),{prefix:ne,local:re}}function F(Rt){if(Rt.strict||(Rt.attribName=Rt.attribName[Rt.looseCase]()),-1!==Rt.attribList.indexOf(Rt.attribName)||Rt.tag.attributes.hasOwnProperty(Rt.attribName))Rt.attribName=Rt.attribValue="";else{if(Rt.opt.xmlns){var Ot=L(Rt.attribName,!0),ee=Ot.prefix,ne=Ot.local;if("xmlns"===ee)if("xml"===ne&&Rt.attribValue!==pe)O(Rt,"xml: prefix must be bound to "+pe+"\nActual: "+Rt.attribValue);else if("xmlns"===ne&&Rt.attribValue!==be)O(Rt,"xmlns: prefix must be bound to "+be+"\nActual: "+Rt.attribValue);else{var re=Rt.tag,ie=Rt.tags[Rt.tags.length-1]||Rt;re.ns===ie.ns&&(re.ns=Object.create(ie.ns)),re.ns[ne]=Rt.attribValue}Rt.attribList.push([Rt.attribName,Rt.attribValue])}else Rt.tag.attributes[Rt.attribName]=Rt.attribValue,C(Rt,"onattribute",{name:Rt.attribName,value:Rt.attribValue});Rt.attribName=Rt.attribValue=""}}function U(Rt,Ot){if(Rt.opt.xmlns){var ee=Rt.tag,ne=L(Rt.tagName);ee.prefix=ne.prefix,ee.local=ne.local,ee.uri=ee.ns[ne.prefix]||"",ee.prefix&&!ee.uri&&(O(Rt,"Unbound namespace prefix: "+JSON.stringify(Rt.tagName)),ee.uri=ne.prefix);var re=Rt.tags[Rt.tags.length-1]||Rt;ee.ns&&re.ns!==ee.ns&&Object.keys(ee.ns).forEach((function(Ot){C(Rt,"onopennamespace",{prefix:Ot,uri:ee.ns[Ot]})}));for(var ie=0,le=Rt.attribList.length;ie<le;ie++){var oe=Rt.attribList[ie],ue=oe[0],ce=oe[1],fe=L(ue,!0),ge=fe.prefix,he=fe.local,pe=""===ge?"":ee.ns[ge]||"",be={name:ue,value:ce,prefix:ge,local:he,uri:pe};ge&&"xmlns"!==ge&&!pe&&(O(Rt,"Unbound namespace prefix: "+JSON.stringify(ge)),be.uri=ge),Rt.tag.attributes[ue]=be,C(Rt,"onattribute",be)}Rt.attribList.length=0}Rt.tag.isSelfClosing=!!Ot,Rt.sawRoot=!0,Rt.tags.push(Rt.tag),C(Rt,"onopentag",Rt.tag),Ot||(Rt.noscript||"script"!==Rt.tagName.toLowerCase()?Rt.state=De.TEXT:Rt.state=De.SCRIPT,Rt.tag=null,Rt.tagName=""),Rt.attribName=Rt.attribValue="",Rt.attribList.length=0}function j(Rt){if(!Rt.tagName)return O(Rt,"Weird empty close tag."),Rt.textNode+="</>",void(Rt.state=De.TEXT);if(Rt.script){if("script"!==Rt.tagName)return Rt.script+="</"+Rt.tagName+">",Rt.tagName="",void(Rt.state=De.SCRIPT);C(Rt,"onscript",Rt.script),Rt.script=""}var Ot=Rt.tags.length,ee=Rt.tagName;Rt.strict||(ee=ee[Rt.looseCase]());for(var ne=ee;Ot--&&Rt.tags[Ot].name!==ne;)O(Rt,"Unexpected close tag");if(Ot<0)return O(Rt,"Unmatched closing tag: "+Rt.tagName),Rt.textNode+="</"+Rt.tagName+">",void(Rt.state=De.TEXT);Rt.tagName=ee;for(var re=Rt.tags.length;re-- >Ot;){var ie=Rt.tag=Rt.tags.pop();Rt.tagName=Rt.tag.name,C(Rt,"onclosetag",Rt.tagName);var le={};for(var oe in ie.ns)le[oe]=ie.ns[oe];var ue=Rt.tags[Rt.tags.length-1]||Rt;Rt.opt.xmlns&&ie.ns!==ue.ns&&Object.keys(ie.ns).forEach((function(Ot){var ee=ie.ns[Ot];C(Rt,"onclosenamespace",{prefix:Ot,uri:ee})}))}0===Ot&&(Rt.closedRoot=!0),Rt.tagName=Rt.attribValue=Rt.attribName="",Rt.attribList.length=0,Rt.state=De.TEXT}function q(Rt){var Ot,ee=Rt.entity,ne=ee.toLowerCase(),re="";return Rt.ENTITIES[ee]?Rt.ENTITIES[ee]:Rt.ENTITIES[ne]?Rt.ENTITIES[ne]:("#"===(ee=ne).charAt(0)&&("x"===ee.charAt(1)?(ee=ee.slice(2),re=(Ot=parseInt(ee,16)).toString(16)):(ee=ee.slice(1),re=(Ot=parseInt(ee,10)).toString(10))),ee=ee.replace(/^0+/,""),re.toLowerCase()!==ee?(O(Rt,"Invalid character entity"),"&"+Rt.entity+";"):String.fromCodePoint(Ot))}function B(Rt,Ot){"<"===Ot?(Rt.state=De.OPEN_WAKA,Rt.startTagPosition=Rt.position):S(le,Ot)&&(O(Rt,"Non-whitespace before first tag."),Rt.textNode=Ot,Rt.state=De.TEXT)}function G(Rt,Ot){var ee="";return Ot<Rt.length&&(ee=Rt.charAt(Ot)),ee}De=Rt.STATE,String.fromCodePoint||(Re=String.fromCharCode,Ne=Math.floor,Ce=function(){var Rt,Ot,ee=[],ne=-1,re=arguments.length;if(!re)return"";for(var ie="";++ne<re;){var le=Number(arguments[ne]);if(!isFinite(le)||le<0||le>1114111||Ne(le)!==le)throw RangeError("Invalid code point: "+le);le<=65535?ee.push(le):(Rt=55296+((le-=65536)>>10),Ot=le%1024+56320,ee.push(Rt,Ot)),(ne+1===re||ee.length>16384)&&(ie+=Re.apply(null,ee),ee.length=0)}return ie},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ce,configurable:!0,writable:!0}):String.fromCodePoint=Ce)}(Ot)},6739:function(Rt,Ot,ee){!function(Rt,Ot,ee,ne,re){function i(Rt){if("contents"in Rt)for(var Ot=("styleAttrs"in Rt?Rt.styleAttrs[ne.byName.ruby.qname]:null),ee="span"===Rt.kind&&("container"===Ot||"textContainer"===Ot||"baseContainer"===Ot),re=Rt.contents.length-1;re>=0;re--)!ee||"styleAttrs"in Rt.contents[re]&&ne.byName.ruby.qname in Rt.contents[re].styleAttrs?i(Rt.contents[re]):delete Rt.contents[re]}function l(Rt,Ot,ee,ne){var re=ne&&"seq"===ne.timeContainer,ie=0;ne&&(ie=re&&ee?ee.end:ne.begin),Ot.begin=Ot.explicit_begin?Ot.explicit_begin+ie:ie;var le=Ot.begin,oe=null;if("sets"in Ot)for(var ue=0;ue<Ot.sets.length;ue++)l(Rt,Ot.sets[ue],oe,Ot),le="seq"===Ot.timeContainer?Ot.sets[ue].end:Math.max(le,Ot.sets[ue].end),oe=Ot.sets[ue];if("contents"in Ot){if("contents"in Ot)for(var ce=0;ce<Ot.contents.length;ce++)l(Rt,Ot.contents[ce],oe,Ot),le="seq"===Ot.timeContainer?Ot.contents[ce].end:Math.max(le,Ot.contents[ce].end),oe=Ot.contents[ce]}else le=re?Ot.begin:Number.POSITIVE_INFINITY;null!==Ot.explicit_end&&null!==Ot.explicit_dur?Ot.end=Math.min(Ot.begin+Ot.explicit_dur,ie+Ot.explicit_end):null===Ot.explicit_end&&null!==Ot.explicit_dur?Ot.end=Ot.begin+Ot.explicit_dur:null!==Ot.explicit_end&&null===Ot.explicit_dur?Ot.end=ie+Ot.explicit_end:Ot.end=le,delete Ot.explicit_begin,delete Ot.explicit_dur,delete Ot.explicit_end,Rt._registerEvent(Ot)}function o(Rt){this.node=Rt}function s(){this.events=[],this.head=new u,this.body=null}function u(){this.styling=new d,this.layout=new g}function d(){this.styles={},this.initials={}}function c(){this.id=null,this.styleAttrs=null,this.styleRefs=null}function f(){this.styleAttrs=null}function g(){this.regions={}}function m(Rt,Ot){h.call(this,"image"),this.src=Rt,this.type=Ot}function h(Rt){this.kind=Rt}function p(Rt){this.id=Rt}function b(Rt){this.regionID=Rt}function y(Rt){this.styleAttrs=Rt}function E(Rt){this.sets=Rt}function T(Rt){this.contents=Rt}function _(Rt,Ot,ee){this.explicit_begin=Rt,this.explicit_end=Ot,this.explicit_dur=ee}function v(){h.call(this,"body")}function S(){h.call(this,"div")}function w(){h.call(this,"p")}function I(){h.call(this,"span")}function k(){h.call(this,"span")}function A(){h.call(this,"br")}function R(){}function N(){}function C(Rt){return Rt&&"xml:id"in Rt.attributes&&Rt.attributes["xml:id"].value||null}function D(Rt){return Rt&&"style"in Rt.attributes?Rt.attributes.style.value.split(" "):[]}function x(Rt,Ot){var ee={};if(null!==Rt)for(var re in Rt.attributes){var ie=Rt.attributes[re].uri+" "+Rt.attributes[re].local,le=ne.byQName[ie];if(void 0!==le){var oe=le.parse(Rt.attributes[re].value);null!==oe?(ee[ie]=oe,le===ne.byName.zIndex&&F(Ot,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):U(Ot,"Cannot parse styling attribute "+ie+" --\x3e "+Rt.attributes[re].value)}}return ee}function M(Rt,Ot,ee){for(var ne in Rt.attributes)if(Rt.attributes[ne].uri===Ot&&Rt.attributes[ne].local===ee)return Rt.attributes[ne].value;return null}function P(Rt,Ot,ee){var ne,re=null;return null!==(ne=/^(\d+(?:\.\d+)?)f$/.exec(ee))?null!==Ot&&(re=parseFloat(ne[1])/Ot):null!==(ne=/^(\d+(?:\.\d+)?)t$/.exec(ee))?null!==Rt&&(re=parseFloat(ne[1])/
vendor: 6,360 bytes, line 1
1Rt):null!==(ne=/^(\d+(?:\.\d+)?)ms$/.exec(ee))?re=parseFloat(ne[1])/1e3:null!==(ne=/^(\d+(?:\.\d+)?)s$/.exec(ee))?re=parseFloat(ne[1]):null!==(ne=/^(\d+(?:\.\d+)?)h$/.exec(ee))?re=3600*parseFloat(ne[1]):null!==(ne=/^(\d+(?:\.\d+)?)m$/.exec(ee))?re=60*parseFloat(ne[1]):null!==(ne=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/.exec(ee))?re=3600*parseInt(ne[1])+60*parseInt(ne[2])+parseFloat(ne[3]):null!==(ne=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/.exec(ee))&&null!==Ot&&(re=3600*parseInt(ne[1])+60*parseInt(ne[2])+parseInt(ne[3])+(null===ne[4]?0:parseInt(ne[4])/Ot)),re}function O(Rt,Ot,ee){for(;Ot.styleRefs.length>0;){var ne=Ot.styleRefs.pop();ne in Rt.styles?(O(Rt,Rt.styles[ne],ee),L(Rt.styles[ne].styleAttrs,Ot.styleAttrs)):U(ee,"Non-existant style id referenced")}}function z(Rt,Ot,ee,ne){for(var re=Ot.length-1;re>=0;re--){var ie=Ot[re];ie in Rt.styles?L(Rt.styles[ie].styleAttrs,ee):U(ne,"Non-existant style id referenced")}}function L(Rt,Ot){for(var ee in Rt)Rt.hasOwnProperty(ee)&&(ee in Ot||(Ot[ee]=Rt[ee]))}function F(Rt,Ot){if(Rt&&Rt.warn&&Rt.warn(Ot))throw Ot}function U(Rt,Ot){if(Rt&&Rt.error&&Rt.error(Ot))throw Ot}function j(Rt,Ot){throw Rt&&Rt.fatal&&Rt.fatal(Ot),Ot}function q(Rt,Ot){for(var ee,ne=0,re=Rt.length-1;ne<=re;){var ie=Rt[ee=Math.floor((ne+re)/2)];if(ie<Ot)ne=ee+1;else{if(!(ie>Ot))return{found:!0,index:ee};re=ee-1}}return{found:!1,index:ne}}Rt.fromXML=function(Rt,re,ie){var le=Ot.parser(!0,{xmlns:!0}),oe=[],ue=[],ce=[],fe=0,ge=null;le.onclosetag=function(Rt){if(oe[0]instanceof R)null!==ge.head&&null!==ge.head.styling&&z(ge.head.styling,oe[0].styleRefs,oe[0].styleAttrs,re),delete oe[0].styleRefs;else if(oe[0]instanceof d)for(var Ot in oe[0].styles)oe[0].styles.hasOwnProperty(Ot)&&O(oe[0],oe[0].styles[Ot],re);else if(oe[0]instanceof w||oe[0]instanceof I){if(oe[0].contents.length>1){var ne,le=[oe[0].contents[0]];for(ne=1;ne<oe[0].contents.length;ne++)oe[0].contents[ne]instanceof k&&le[le.length-1]instanceof k?le[le.length-1].text+=oe[0].contents[ne].text:le.push(oe[0].contents[ne]);oe[0].contents=le}oe[0]instanceof I&&1===oe[0].contents.length&&oe[0].contents[0]instanceof k&&(oe[0].text=oe[0].contents[0].text,delete oe[0].contents)}else oe[0]instanceof o&&(oe[0].node.uri===ee.ns_tt&&"metadata"===oe[0].node.local?fe--:fe>0&&ie&&"onCloseTag"in ie&&ie.onCloseTag());ce.shift(),ue.shift(),oe.shift()},le.ontext=function(Rt){if(void 0===oe[0]);else if(oe[0]instanceof I||oe[0]instanceof w){if(oe[0]instanceof I){var Ot=oe[0].styleAttrs[ne.byName.ruby.qname];if("container"===Ot||"textContainer"===Ot||"baseContainer"===Ot)return}var ee=new k;ee.initFromText(ge,oe[0],Rt,ue[0],ce[0],re),oe[0].contents.push(ee)}else oe[0]instanceof o&&fe>0&&ie&&"onText"in ie&&ie.onText(Rt)},le.onopentag=function(Rt){var Ot=Rt.attributes["xml:space"];Ot?ce.unshift(Ot.value):0===ce.length?ce.unshift("default"):ce.unshift(ce[0]);var le=Rt.attributes["xml:lang"];if(le?ue.unshift(le.value):0===ue.length?ue.unshift(""):ue.unshift(ue[0]),Rt.uri===ee.ns_tt)if("tt"===Rt.local)null!==ge&&j(re,"Two <tt> elements at ("+this.line+","+this.column+")"),(ge=new s).initFromNode(Rt,ue[0],re),oe.unshift(ge);else if("head"===Rt.local)oe[0]instanceof s||j(re,"Parent of <head> element is not <tt> at ("+this.line+","+this.column+")"),oe.unshift(ge.head);else if("styling"===Rt.local)oe[0]instanceof u||j(re,"Parent of <styling> element is not <head> at ("+this.line+","+this.column+")"),oe.unshift(ge.head.styling);else if("style"===Rt.local){var he;oe[0]instanceof d?((he=new c).initFromNode(Rt,re),he.id?ge.head.styling.styles[he.id]=he:U(re,"<style> element missing @id attribute"),oe.unshift(he)):oe[0]instanceof R?((he=new c).initFromNode(Rt,re),L(he.styleAttrs,oe[0].styleAttrs),oe.unshift(he)):j(re,"Parent of <style> element is not <styling> or <region> at ("+this.line+","+this.column+")")}else if("initial"===Rt.local){var pe;if(oe[0]instanceof d){for(var be in(pe=new f).initFromNode(Rt,re),pe.styleAttrs)pe.styleAttrs.hasOwnProperty(be)&&(ge.head.styling.initials[be]=pe.styleAttrs[be]);oe.unshift(pe)}else j(re,"Parent of <initial> element is not <styling> at ("+this.line+","+this.column+")")}else if("layout"===Rt.local)oe[0]instanceof u||j(re,"Parent of <layout> element is not <head> at "+this.line+","+this.column+")"),oe.unshift(ge.head.layout);else if("region"===Rt.local){oe[0]instanceof g||j(re,"Parent of <region> element is not <layout> at "+this.line+","+this.column+")");var ye=new R;ye.initFromNode(ge,Rt,ue[0],re),!ye.id||ye.id in ge.head.layout.regions?U(re,"Ignoring <region> with duplicate or missing @id at "+this.line+","+this.column+")"):ge.head.layout.regions[ye.id]=ye,oe.unshift(ye)}else if("body"===Rt.local){oe[0]instanceof s||j(re,"Parent of <body> element is not <tt> at "+this.line+","+this.column+")"),null!==ge.body&&j(re,"Second <body> element at "+this.line+","+this.column+")");var Ee=new v;Ee.initFromNode(ge,Rt,ue[0],re),ge.body=Ee,oe.unshift(Ee)}else if("div"===Rt.local){oe[0]instanceof S||oe[0]instanceof v||j(re,"Parent of <div> element is not <body> or <div> at "+this.line+","+this.column+")");var _e=new S;_e.initFromNode(ge,oe[0],Rt,ue[0],re);var Se=_e.styleAttrs[ne.byName.backgroundImage.qname];Se&&(_e.contents.push(new m(Se)),delete _e.styleAttrs[ne.byName.backgroundImage.qname]),oe[0].contents.push(_e),oe.unshift(_e)}else if("image"===Rt.local){oe[0]instanceof S||j(re,"Parent of <image> element is not <div> at "+this.line+","+this.column+")");var we=new m;we.initFromNode(ge,oe[0],Rt,ue[0],re),oe[0].contents.push(we),oe.unshift(we)}else if("p"===Rt.local){oe[0]instanceof S||j(re,"Parent of <p> element is not <div> at "+this.line+","+this.column+")");var Re=new w;Re.initFromNode(ge,oe[0],Rt,ue[0],re),oe[0].contents.push(Re),oe.unshift(Re)}else if("span"===Rt.local){oe[0]instanceof I||oe[0]instanceof w||j(re,"Parent of <span> element is not <span> or <p> at "+this.line+","+this.column+")");var Ne=new I;Ne.initFromNode(ge,oe[0],Rt,ue[0],ce[0],re),oe[0].contents.push(Ne),oe.unshift(Ne)}else if("br"===Rt.local){oe[0]instanceof I||oe[0]instanceof w||j(re,"Parent of <br> element is not <span> or <p> at "+this.line+","+this.column+")");var Ce=new A;Ce.initFromNode(ge,oe[0],Rt,ue[0],re),oe[0].contents.push(Ce),oe.unshift(Ce)}else if("set"===Rt.local){oe[0]instanceof I||oe[0]instanceof w||oe[0]instanceof S||oe[0]instanceof v||oe[0]instanceof R||oe[0]instanceof A||j(re,"Parent of <set>
1 element is not a content element or a region at "+this.line+","+this.column+")");var De=new N;De.initFromNode(ge,oe[0],Rt,re),oe[0].sets.push(De),oe.unshift(De)}else oe.unshift(new o(Rt));else oe.unshift(new o(Rt));if(oe[0]instanceof o)if(Rt.uri===ee.ns_tt&&"metadata"===Rt.local)fe++;else if(fe>0&&ie&&"onOpenTag"in ie){var xe=[];for(var Me in Rt.attributes)xe[Rt.attributes[Me].uri+" "+Rt.attributes[Me].local]={uri:Rt.attributes[Me].uri,local:Rt.attributes[Me].local,value:Rt.attributes[Me].value};ie.onOpenTag(Rt.uri,Rt.local,xe)}},le.write(Rt).close(),delete ge.head.styling.styles;var he=!1;for(var pe in ge.head.layout.regions)if(ge.head.layout.regions.hasOwnProperty(pe)){he=!0;break}if(!he){var be=R.prototype.createDefaultRegion(ge.lang);ge.head.layout.regions[be.id]=be}for(var ye in ge.head.layout.regions)ge.head.layout.regions.hasOwnProperty(ye)&&l(ge,ge.head.layout.regions[ye],null,null);return ge.body&&l(ge,ge.body,null,null),ge.body&&i(ge.body),ge},s.prototype.initFromNode=function(Rt,Ot,ne){var ie=function(Rt,Ot){var ne=M(Rt,ee.ns_ttp,"cellResolution"),re=15,ie=32;if(null!==ne){var le=/(\d+) (\d+)/.exec(ne);null!==le?(ie=parseInt(le[1]),re=parseInt(le[2])):F(Ot,"Malformed cellResolution value (using initial value instead)")}return{w:ie,h:re}}(Rt,ne);this.cellLength={h:new re.ComputedLength(0,1/ie.h),w:new re.ComputedLength(1/ie.w,0)};var le=function(Rt,Ot){var ne,re=M(Rt,ee.ns_ttp,"frameRate"),ie=30;null!==re&&(null!==(ne=/(\d+)/.exec(re))?ie=parseInt(ne[1]):F(Ot,"Malformed frame rate attribute (using initial value instead)"));var le=M(Rt,ee.ns_ttp,"frameRateMultiplier"),oe=1;null!==le&&(null!==(ne=/(\d+) (\d+)/.exec(le))?oe=parseInt(ne[1])/parseInt(ne[2]):F(Ot,"Malformed frame rate multiplier attribute (using initial value instead)"));var ue=oe*ie,ce=1,fe=M(Rt,ee.ns_ttp,"tickRate");return null===fe?null!==re&&(ce=ue):null!==(ne=/(\d+)/.exec(fe))?ce=parseInt(ne[1]):F(Ot,"Malformed tick rate attribute (using initial value instead)"),{effectiveFrameRate:ue,tickRate:ce}}(Rt,ne);this.effectiveFrameRate=le.effectiveFrameRate,this.tickRate=le.tickRate,this.aspectRatio=function(Rt,Ot){var ne=M(Rt,ee.ns_ittp,"aspectRatio");null===ne&&(ne=M(Rt,ee.ns_ttp,"displayAspectRatio"));var re=null;if(null!==ne){var ie=/(\d+)\s+(\d+)/.exec(ne);if(null!==ie){var le=parseInt(ie[1]),oe=parseInt(ie[2]);0!==le&&0!==oe?re=le/oe:U(Ot,"Illegal aspectRatio values (ignoring)")}else U(Ot,"Malformed aspectRatio attribute (ignoring)")}return re}(Rt,ne);var oe=M(Rt,ee.ns_ttp,"timeBase");null!==oe&&"media"!==oe&&j(ne,"Unsupported time base");var ue=function(Rt,Ot){var ne=M(Rt,ee.ns_tts,"extent");if(null===ne)return null;var ie=ne.split(" ");if(2!==ie.length)return F(Ot,"Malformed extent (ignoring)"),null;var le=re.parseLength(ie[0]),oe=re.parseLength(ie[1]);return oe&&le?{h:oe,w:le}:(F(Ot,"Malformed extent values (ignoring)"),null)}(Rt,ne);null===ue?this.pxLength={h:null,w:null}:("px"===ue.h.unit&&"px"===ue.w.unit||j(ne,"Extent on TT must be in px or absent"),this.pxLength={h:new re.ComputedLength(0,1/ue.h.value),w:new re.ComputedLength(1/ue.w.value,0)}),this.dimensions={h:new re.ComputedLength(0,1),w:new re.ComputedLength(1,0)},this.lang=Ot},s.prototype._registerEvent=function(Rt){if(!(Rt.end<=Rt.begin)){var Ot=q(this.events,Rt.begin);if(Ot.found||this.events.splice(Ot.index,0,Rt.begin),Rt.end!==Number.POSITIVE_INFINITY){var ee=q(this.events,Rt.end);ee.found||this.events.splice(ee.index,0,Rt.end)}}},s.prototype.getMediaTimeRange=function(){return[this.events[0],this.events[this.events.length-1]]},s.prototype.getMediaTimeEvents=function(){return this.events},c.prototype.initFromNode=function(Rt,Ot){this.id=C(Rt),this.styleAttrs=x(Rt,Ot),this.styleRefs=D(Rt)},f.prototype.initFromNode=function(Rt,Ot){for(var ne in this.styleAttrs={},Rt.attributes)if(Rt.attributes[ne].uri===ee.ns_itts||Rt.attributes[ne].uri===ee.ns_ebutts||Rt.attributes[ne].uri===ee.ns_tts){var re=Rt.attributes[ne].uri+" "+Rt.attributes[ne].local;this.styleAttrs[re]=Rt.attributes[ne].value}},m.prototype.initFromNode=function(Rt,Ot,ee,ne,re){this.src="src"in ee.attributes?ee.attributes.src.value:null,this.src||U(re,"Invalid image@src attribute"),this.type="type"in ee.attributes?ee.attributes.type.value:null,this.type||U(re,"Invalid image@type attribute"),y.prototype.initFromNode.call(this,Rt,Ot,ee,re),_.prototype.initFromNode.call(this,Rt,Ot,ee,re),E.prototype.initFromNode.call(this,Rt,Ot,ee,re),b.prototype.initFromNode.call(this,Rt,Ot,ee,re),this.lang=ne},p.prototype.initFromNode=function(Rt,Ot,ee,ne){this.id=C(ee)},b.prototype.initFromNode=function(Rt,Ot,ee,ne){this.regionID=function(Rt){return Rt&&"region"in Rt.attributes?Rt.attributes.region.value:""}(ee)},y.prototype.initFromNode=function(Rt,Ot,ee,ne){this.styleAttrs=x(ee,ne),null!==Rt.head&&null!==Rt.head.styling&&z(Rt.head.styling,D(ee),this.styleAttrs,ne)},E.prototype.initFromNode=function(Rt,Ot,ee,ne){this.sets=[]},T.prototype.initFromNode=function(Rt,Ot,ee,ne){this.contents=[]},_.prototype.initFromNode=function(Rt,Ot,ee,ne){var re=function(Rt,Ot,ee,ne){var re=null;ee&&"begin"in ee.attributes&&null===(re=P(Rt.tickRate,Rt.effectiveFrameRate,ee.attributes.begin.value))&&F(ne,"Malformed begin value "+ee.attributes.begin.value+" (using 0)");var ie=null;ee&&"dur"in ee.attributes&&null===(ie=P(Rt.tickRate,Rt.effectiveFrameRate,ee.attributes.dur.value))&&F(ne,"Malformed dur value "+ee.attributes.dur.value+" (ignoring)");var le=null;return ee&&"end"in ee.attributes&&null===(le=P(Rt.tickRate,Rt.effectiveFrameRate,ee.attributes.end.value))&&F(ne,"Malformed end value (ignoring)"),{explicit_begin:re,explicit_end:le,explicit_dur:ie}}(Rt,0,ee,ne);this.explicit_begin=re.explicit_begin,this.explicit_end=re.explicit_end,this.explicit_dur=re.explicit_dur,this.timeContainer=function(Rt,Ot){var ee=Rt&&"timeContainer"in Rt.attributes?Rt.attributes.timeContainer.value:null;return ee&&"par"!==ee?"seq"===ee?"seq":(U(Ot,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}(ee,ne)},v.prototype.initFromNode=function(Rt,Ot,ee,ne){y.prototype.initFromNode.call(this,Rt,null,Ot,ne),_.prototype.initFromNode.call(this,Rt,null,Ot,ne),E.prototype.initFromNode.call(this,Rt,null,Ot,ne),b.prototype.initFromNode.call(this,Rt,null,Ot,ne),T.prototype.initFromNode.call(this,Rt,null,Ot,ne),this.lang=ee},S.prototype.initFromNode=function(Rt,Ot,ee,ne,re){y.prototype.initFromNode.call(this,Rt,Ot,ee,re),_.prototype.initFromNode.call(this,Rt,Ot,ee,re),E.prototype.initFromNode.call(this,Rt,Ot,ee,re),b.prototype.initFromNode.call(this,Rt,Ot,ee,re),T.prototype.initFromNode.call(this,Rt,Ot,ee,re),this.lang=ne},w.prototype.initFromNode=function(Rt,Ot,ee,ne,re){y.prototype.initFromNode.call(this,Rt,Ot,ee,re),_.prototype.initFromNode.call(this,Rt,Ot,ee,re),E.prototype.initFromNode.call(this,Rt,Ot,ee,re),b.prototype.initFromNode.call(this,Rt,Ot,ee,re),T.prototype.initFromNode.call(this,Rt,Ot,ee,re),this.lang=ne},I.prototype.initFromNode=function(Rt,Ot,ee,ne,re,ie){y.prototype.initFromNode.call(this,Rt,Ot,ee,ie),_.prototype.initFromNode.call(this,Rt,Ot,ee,ie),E.prototype.initFromNode.call(this,Rt,Ot,ee,ie),b.prototype.initFromNode.call(this,Rt,Ot,ee,ie),T.prototype.initFromNode.call(this,Rt,Ot,ee,ie),this.space=re,this.lang=ne},k.prototype.initFromText=function(Rt,Ot,ee,ne,re,ie){_.prototype.initFromNode.call(this,Rt,Ot,null,ie),this.text=ee,this.space=re,this.lang=ne},A.prototype.initFromNode=function(Rt,Ot,ee,ne,re){b.prototype.initFromNode.call(this,Rt,Ot,ee,re),_.prototype.initFromNode.call(this,Rt,Ot,ee,re),this.lang=ne},R.prototype.createDefaultRegion=function(Rt){var Ot=new R;return p.call(Ot,""),y.call(Ot,{}),E.call(Ot,[]),_.call(Ot,0,Number.POSITIVE_INFINITY,null),this.lang=Rt,Ot},R.prototype.initFromNode=function(Rt,Ot,ee,ne){p.prototype.initFromNode.call(this,Rt,null,Ot,ne),_.prototype.initFromNode.call(this,Rt,null,Ot,ne),E.prototype.initFromNode.call(this,Rt,null,Ot,ne),this.styleAttrs=x(Ot,ne),this.styleRefs=D(Ot),this.lang=ee},N.prototype.initFromNode=function(Rt,Ot,ee,ne){_.prototype.initFromNode.call(this,Rt,Ot,ee,ne);var re=x(ee,ne);for(var ie in this.qname=null,this.value=null,re)if(re.hasOwnProperty(ie)){if(this.qname){U(ne,"More than one style specified on set");break}this.qname=ie,this.value=re[ie]}}}(Ot,"undefined"==typeof sax?ee(5474):sax,"undefined"==typeof imscNames?ee(977
vendor: 2,246 bytes, line 1
1):imscNames,"undefined"==typeof imscStyles?ee(1219):imscStyles,"undefined"==typeof imscUtils?ee(6404):imscUtils)},1612:function(Rt,Ot,ee){var ne=/firefox/i.test(navigator.userAgent);!function(Rt,Ot,ee){function r(Rt,Ot,ie,le){var ce;if("region"===ie.kind)(ce=document.createElement("div")).style.position="absolute";else if("body"===ie.kind)ce=document.createElement("div");else if("div"===ie.kind)ce=document.createElement("div");else if("image"===ie.kind){if(ce=document.createElement("img"),null!==Rt.imgResolver&&null!==ie.src){var ge=Rt.imgResolver(ie.src,ce);ge&&(ce.src=ge),ce.height=Rt.regionH,ce.width=Rt.regionW}}else if("p"===ie.kind)ce=document.createElement("p");else if("span"===ie.kind)if("container"===ie.styleAttrs[ee.byName.ruby.qname])ce=document.createElement("ruby"),Rt.ruby=!0;else if("base"===ie.styleAttrs[ee.byName.ruby.qname])ce=document.createElement("span");else if("text"===ie.styleAttrs[ee.byName.ruby.qname])ce=document.createElement("rt");else if("baseContainer"===ie.styleAttrs[ee.byName.ruby.qname])ce=document.createElement("rbc");else if("textContainer"===ie.styleAttrs[ee.byName.ruby.qname])ce=document.createElement("rtc");else{if("delimiter"===ie.styleAttrs[ee.byName.ruby.qname])return;ce=document.createElement("span")}else"br"===ie.kind&&(ce=document.createElement("br"));if(ce){if(ie.lang&&("region"!==ie.kind&&ie.lang===le.lang||(ce.lang=ie.lang)),Ot.appendChild(ce),ce.style.margin="0","region"===ie.kind){var he=ie.styleAttrs[ee.byName.writingMode.qname];"lrtb"===he||"lr"===he?(Rt.ipd="lr",Rt.bpd="tb"):"rltb"===he||"rl"===he?(Rt.ipd="rl",Rt.bpd="tb"):"tblr"===he?(Rt.ipd="tb",Rt.bpd="lr"):"tbrl"!==he&&"tb"!==he||(Rt.ipd="tb",Rt.bpd="rl")}else if("p"===ie.kind&&"tb"===Rt.bpd){var pe=ie.styleAttrs[ee.byName.direction.qname];Rt.ipd="ltr"===pe?"lr":"rl"}for(var be=0;be<re.length;be++){var ye=re[be],Ee=ie.styleAttrs[ye.qname];void 0!==Ee&&null!==ye.map&&ye.map(Rt,ce,ie,Ee)}var _e=ce,Se=ie.styleAttrs[ee.byName.linePadding.qname];if(Se&&!Se.isZero()){var we=Se.toUsedLength(Rt.w,Rt.h);if(we>0){var Re=Math.ceil(we)+"px";"tb"===Rt.bpd?(_e.style.paddingLeft=Re,_e.style.paddingRight=Re):(_e.style.paddingTop=Re,_e.style.paddingBottom=Re),Rt.lp=Se}}var Ne=ie.styleAttrs[ee.byName.multiRowAlign.qname];
vendor: 13,699 bytes, line 1
1if(Ne&&"auto"!==Ne){var Ce=document.createElement("span");Ce.style.display="inline-block",Ce.style.textAlign=Ne,ce.appendChild(Ce),_e=Ce,Rt.mra=Ne}var De=ie.styleAttrs[ee.byName.rubyReserve.qname];if(De&&"none"!==De[0]&&(Rt.rubyReserve=De),ie.styleAttrs[ee.byName.fillLineGap.qname]&&(Rt.flg=!0),"span"===ie.kind&&ie.text){var xe=ie.styleAttrs[ee.byName.textEmphasis.qname];if(xe&&"none"!==xe.style&&(Rt.textEmphasis=!0),ee.byName.textCombine.qname in ie.styleAttrs&&"all"===ie.styleAttrs[ee.byName.textCombine.qname])ce.textContent=ie.text,ce._isd_element=ie,xe&&d(Rt,ce,0,xe);else for(var Me="",Oe=0;Oe<ie.text.length;Oe++){Me+=ie.text.charAt(Oe);var Pe=ie.text.charCodeAt(Oe);if(Pe<55296||Pe>56319||Oe===ie.text.length-1){var Fe=document.createElement("span");Fe.textContent=Me,xe&&d(Rt,Fe,0,xe),ce.appendChild(Fe),Me="",Fe._isd_element=ie}}}if("contents"in ie)for(var Ue=0;Ue<ie.contents.length;Ue++)r(Rt,_e,ie.contents[Ue],ie);var je=[];if("p"===ie.kind&&(u(Rt,_e,je,null),Rt.rubyReserve&&(function(Rt,Ot){for(var ee=0;ee<Rt.length;ee++){var ne,re,ie=document.createElement("ruby"),le=document.createElement("span");le.textContent="​",ie.appendChild(le);var ce,fe=Ot.rubyReserve[1].toUsedLength(Ot.w,Ot.h)+"px";"both"===Ot.rubyReserve[0]||"outside"===Ot.rubyReserve[0]&&1==Rt.length?((ne=document.createElement("rtc")).style[ue]=oe?"after":"under",ne.textContent="​",ne.style.fontSize=fe,(re=document.createElement("rtc")).style[ue]=oe?"before":"over",re.textContent="​",re.style.fontSize=fe,ie.appendChild(ne),ie.appendChild(re)):((ne=document.createElement("rtc")).textContent="​",ne.style.fontSize=fe,ce="after"===Ot.rubyReserve[0]||"outside"===Ot.rubyReserve[0]&&ee>0?oe?"after":"tb"===Ot.bpd||"rl"===Ot.bpd?"under":"over":oe?"before":"tb"===Ot.bpd||"rl"===Ot.bpd?"over":"under",ne.style[ue]=ce,ie.appendChild(ne));for(var ge=null,he=0;he<Rt[ee].rbc.length;he++)if("ruby"===Rt[ee].rbc[he].localName){ge=Rt[ee].rbc[he];for(var pe=0;pe<ge.style.length;pe++)ie.style.setProperty(ge.style.item(pe),ge.style.getPropertyValue(ge.style.item(pe)));break}(ge=ge||Rt[ee].elements[0].node).parentElement.insertBefore(ie,ge)}}(je,Rt),Rt.rubyReserve=null),(Rt.ruby||Rt.rubyReserve)&&(function(Rt,Ot){for(var ee=0;ee<Rt.length;ee++)for(var ne=0;ne<Rt[ee].rbc.length;ne++){var re;Rt[ee].rbc[ne].style[ue]||(re=oe?0===ee?"before":"after":"tb"===Ot.bpd||"rl"===Ot.bpd?0===ee?"over":"under":0===ee?"under":"over",Rt[ee].rbc[ne].style[ue]=re)}}(je,Rt),Rt.ruby=null),Rt.textEmphasis&&(function(Rt,Ot){for(var ee=0;ee<Rt.length;ee++)for(var ne=0;ne<Rt[ee].te.length;ne++){var re;Rt[ee].te[ne].style[fe]&&"none"!==Rt[ee].te[ne].style[fe]||(re="tb"===Ot.bpd?0===ee?"left over":"left under":"rl"===Ot.bpd?0===ee?"right under":"left under":0===ee?"left under":"right under",Rt[ee].te[ne].style[fe]=re)}}(je,Rt),Rt.textEmphasis=null),Rt.mra&&(function(Rt){for(var Ot=0;Ot<Rt.length-1;Ot++){var ee=Rt[Ot].elements.length;if(0!==ee&&!1===Rt[Ot].br){var ne=document.createElement("br"),re=Rt[Ot].elements[ee-1].node;re.parentElement.insertBefore(ne,re.nextSibling)}}}(je),Rt.mra=null),Rt.lp&&(function(Rt,Ot,ee){if(null!==Rt)for(var re=0;re<Rt.length;re++){var ie=Rt[re].elements.length,le=Math.ceil(Ot)+"px",oe="-"+Math.ceil(Ot)+"px";if(0!==ie){var ue=Rt[re].elements[Rt[re].start_elem],ce=Rt[re].elements[Rt[re].end_elem];if(ue===ce){var fe=ue.node.getBoundingClientRect();if(0==fe.width||0==fe.height)continue}"lr"===ee.ipd?(ue.node.style.marginLeft=oe,ue.node.style.paddingLeft=le):"rl"===ee.ipd?(ue.node.style.paddingRight=le,ue.node.style.marginRight=oe):"tb"===ee.ipd&&(ue.node.style.paddingTop=le,ue.node.style.marginTop=oe),"lr"===ee.ipd?(ne||(ce.node.style.marginRight=oe),ce.node.style.paddingRight=le):"rl"===ee.ipd?(ce.node.style.paddingLeft=le,ne||(ce.node.style.marginLeft=oe)):"tb"===ee.ipd&&(ce.node.style.paddingBottom=le,ce.node.style.marginBottom=oe)}}}(je,Rt.lp.toUsedLength(Rt.w,Rt.h),Rt),Rt.lp=null),function(Rt,Ot){for(var ee=0;ee<Rt.length;ee++)for(var ne=Rt[ee],re=1;re<ne.elements.length;){var ie=ne.elements[re-1],le=ne.elements[re];l(ie.node,le.node,Ot)?ne.elements.splice(re,1):re++}for(var oe,ue,ce=[],fe=0;fe<Rt.length;fe++)for(var ge=0;ge<Rt[fe].elements.length;ge++)(ue=i(oe=Rt[fe].elements[ge].node,ce,!1))&&(oe.style.backgroundColor=ue);for(var he=0;he<ce.length;he++)ce[he].style.backgroundColor=""}(je,Rt),Rt.flg)){var qe=s(_e.getBoundingClientRect(),Rt);!function(Rt,Ot,ee,ne){for(var re=Math.sign(ee-Ot),ie=0;ie<=Rt.length;ie++){var le,oe,ue,ce;if(le=0===ie?Math.round(Ot):ie===Rt.length?Math.round(ee):Math.round((Rt[ie-1].after+Rt[ie].before)/2),ie>0&&Rt[ie-1])for(ue=0;ue<Rt[ie-1].elements.length;ue++)oe=re*(le-(ce=Rt[ie-1].elements[ue]).after)+"px","lr"===ne.bpd?ce.node.style.paddingRight=oe:"rl"===ne.bpd?ce.node.style.paddingLeft=oe:"tb"===ne.bpd&&(ce.node.style.paddingBottom=oe);if(ie<Rt.length)for(ue=0;ue<Rt[ie].elements.length;ue++)oe=re*((ce=Rt[ie].elements[ue]).before-le)+"px","lr"===ne.bpd?ce.node.style.paddingLeft=oe:"rl"===ne.bpd?ce.node.style.paddingRight=oe:"tb"===ne.bpd&&(ce.node.style.paddingTop=oe)}}(je,qe.before,qe.after,Rt),Rt.flg=null}if("region"===ie.kind&&"tb"===Rt.bpd&&Rt.enableRollUp&&ie.contents.length>0&&"after"===ie.styleAttrs[ee.byName.displayAlign.qname]){u(Rt,_e,je,null);var Ge=new o(""===ie.id?"_":ie.id,je);if(Rt.currentISDState[Ge.id]=Ge,Rt.previousISDState&&Ge.id in Rt.previousISDState&&Rt.previousISDState[Ge.id].plist.length>0&&Ge.plist.length>1&&Ge.plist[Ge.plist.length-2].text===Rt.previousISDState[Ge.id].plist[Rt.previousISDState[Ge.id].plist.length-1].text){var We=ce.firstElementChild,ln=Ge.plist[Ge.plist.length-1].after-Ge.plist[Ge.plist.length-1].before;We.style.bottom="-"+ln+"px",We.style.transition="transform 0.4s",We.style.position="relative",We.style.transform="translateY(-"+ln+"px)"}}}else E(Rt.errorHandler,"Error processing ISD element kind: "+ie.kind)}function i(Rt,Ot,ee){return Rt.style.backgroundColor?(ee&&!Ot.includes(Rt)&&Ot.push(Rt),Rt.style.backgroundColor):"SPAN"===Rt.parentElement.nodeName||"RUBY"===Rt.parentElement.nodeName||"RBC"===Rt.parentElement.nodeName||"RTC"===Rt.parentElement.nodeName||"RT"===Rt.parentElement.nodeName?i(Rt.parentElement,Ot,!0):void 0}function l(Rt,Ot,ee){if("SPAN"===Rt.tagName&&"SPAN"===Ot.tagName&&Rt._isd_element===Ot._isd_element){if(!Rt._isd_element)return E(ee.errorHandler,"Internal error: HTML span is not linked to a source element; cannot merge spans."),!1;Rt.textContent+=Ot.textContent;for(var ne=0;ne<Ot.style.length;ne++){var re=Ot.style[ne];(re.indexOf("border")>=0||re.indexOf("padding")>=0||re.indexOf("margin")>=0)&&(Rt.style[re]=Ot.style[re])}return Ot.parentElement.removeChild(Ot),!0}return!1}function o(Rt,Ot){this.id=Rt,this.plist=Ot}function s(Rt,Ot){var ee={before:null,after:null,start:null,end:null};return"tb"===Ot.bpd?(ee.before=Rt.top,ee.after=Rt.bottom,"lr"===Ot.ipd?(ee.start=Rt.left,ee.end=Rt.right):(ee.start=Rt.right,ee.end=Rt.left)):"lr"===Ot.bpd?(ee.before=Rt.left,ee.after=Rt.right,ee.start=Rt.top,ee.end=Rt.bottom):"rl"===Ot.bpd&&(ee.before=Rt.right,ee.after=Rt.left,ee.start=Rt.top,ee.end=Rt.bottom),ee}function u(Rt,Ot,ee,ne){if("rt"!==Ot.localName&&"rtc"!==Ot.localName){var re,ie,le,oe,ue=Ot.style.backgroundColor||ne;if(0===Ot.childElementCount)if("span"===Ot.localName||"rb"===Ot.localName){var fe=s(Ot.getBoundingClientRect(),Rt);if(0!==ee.length&&(re=fe.before,ie=fe.after,le=ee[ee.length-1].before,ie<(oe=ee[ee.length-1].after)&&re>le||oe<=ie&&le>=re)){var ge=Math.sign(fe.after-fe.before),he=Math.sign(fe.end-fe.start);ge*(fe.before-ee[ee.length-1].before)<0&&(ee[ee.length-1].before=fe.before),ge*(fe.after-ee[ee.length-1].after)>0&&(ee[ee.length-1].after=fe.after),he*(fe.start-ee[ee.length-1].start)<0&&(ee[ee.length-1].start=fe.start,ee[ee.length-1].start_elem=ee[ee.length-1].elements.length),he*(fe.end-ee[ee.length-1].end)>0&&(ee[ee.length-1].end=fe.end,ee[ee.length-1].end_elem=ee[ee.length-1].elements.length)}else ee.push({before:fe.before,after:fe.after,start:fe.start,end:fe.end,start_elem:0,end_elem:0,elements:[],rbc:[],te:[],text:"",br:!1});ee[ee.length-1].text+=Ot.textContent,ee[ee.length-1].elements.push({node:Ot,bgcolor:ue,before:fe.before,after:fe.after})}else"br"===Ot.localName&&0!==ee.length&&(ee[ee.length-1].br=!0);else for(var pe=Ot.firstChild;pe;)pe.nodeType===Node.ELEMENT_NODE&&(u(Rt,pe,ee,ue),"ruby"===pe.localName||"rtc"===pe.localName?ee.length>0&&ee[ee.length-1].rbc.push(pe):"span"===pe.localName&&pe.style[ce]&&"none"!==pe.style[ce]&&ee.length>0&&ee[ee.length-1].te.push(pe)),pe=pe.nextSibling}}function d(Rt,Ot,ee,ne){var re;"none"!==ne.style&&("auto"===ne.style?Ot.style[ce]="filled":Ot.style[ce]=ne.style+" "+ne.symbol,("before"===ne.position||"after"===ne.position)&&(re="tb"===Rt.bpd?"before"===ne.position?"left over":"left under":"rl"===Rt.bpd?"before"===ne.position?"right under":"left under":"before"===ne.position?"left under":"right under",Ot.style[fe]=re))}function c(Rt,Ot){this.qname=Rt,this.map=Ot}Rt.render=function(Rt,Ot,ee,ne,re,ie,le,oe,ue){var ce=ne||Ot.clientHeight,fe=re||Ot.clientWidth;if(null!==Rt.aspectRatio){var ge=ce*Rt.aspectRatio;ge>fe?ce=Math.round(fe/Rt.aspectRatio):fe=ge}var he=document.createElement("div");he.style.position="relative",he.style.width=fe+"px",he.style.height=ce+"px",he.style.margin="auto",he.style.top=0,he.style.bottom=0,he.style.left=0,he.style.right=0,he.style.zIndex=0;var pe={h:ce,w:fe,regionH:null,regionW:null,imgResolver:ee,displayForcedOnlyMode:ie||!1,isd:Rt,errorHandler:le,previousISDState:oe,enableRollUp:ue||!1,currentISDState:{},flg:null,lp:null,mra:null,ipd:null,bpd:null,ruby:null,textEmphasis:null,rubyReserve:null};if(Ot.appendChild(he),"contents"in Rt)for(var be=0;be<Rt.contents.length;be++)r(pe,he,Rt.contents[be],Rt);return pe.currentISDState};for(var re=[new c("http://www.w3.org/ns/ttml#styling backgroundColor",(function(Rt,Ot,ee,ne){0!==ne[3]&&(Ot.style.backgroundColor="rgba("+ne[0].toString()+","+ne[1].toString()+","+ne[2].toString()+","+(ne[3]/255).toString()+")")})),new c("http://www.w3.org/ns/ttml#styling color",(function(Rt,Ot,ee,ne){Ot.style.color="rgba("+ne[0].toString()+","+ne[1].toString()+","+ne[2].toString()+","+(ne[3]/255).toString()+")"})),new c("http://www.w3.org/ns/ttml#styling direction",(function(Rt,Ot,ee,ne){Ot.style.direction=ne})),new c("http://www.w3.org/ns/ttml#styling display",(function(Rt,Ot,ee,ne){})),new c("http://www.w3.org/ns/ttml#styling displayAlign",(function(Rt,Ot,ee,ne){Ot.style.display="flex",Ot.style.flexDirection="column","before"===ne?Ot.style.justifyContent="flex-start":"center"===ne?Ot.style.justifyContent="center":"after"===ne&&(Ot.style.justifyContent="flex-end")})),new c("http://www.w3.org/ns/ttml#styling extent",(function(Rt,Ot,ee,ne){Rt.regionH=ne.h.toUsedLength(Rt.w,Rt.h),Rt.regionW=ne.w.toUsedLength(Rt.w,Rt.h);var re=0,ie=0,le=ee.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];le&&(re=le[0].toUsedLength(Rt.w,Rt.h)+le[2].toUsedLength(Rt.w,Rt.h),ie=le[1].toUsedLength(Rt.w,Rt.h)+le[3].toUsedLength(Rt.w,Rt.h)),Ot.style.height=Rt.regionH-re+"px",Ot.style.width=Rt.regionW-ie+"px"})),new c("http://www.w3.org/ns/ttml#styling fontFamily",(function(Rt,Ot,ee,ne){for(var re=[],ie=0;ie<ne.length;ie++)ne[ie]=ne[ie].trim(),"monospaceSerif"===ne[ie]?(re.push("Courier New"),re.push('"Liberation Mono"'),re.push("Courier"),re.push("monospace")):"proportionalSansSerif"===ne[ie]?(re.push("Arial"),re.push("Helvetica"),re.push('"Liberation Sans"'),re.push("sans-serif")):"monospace"===ne[ie]?re.push("monospace"):"sansSerif"===ne[ie]?re.push("sans-serif"):"serif"===ne[ie]?re.push("serif"):"monospaceSansSerif"===ne[ie]?(re.push("Consolas"),re.push("monospace")):"proportionalSerif"===ne[ie]?re.push("serif"):re.push(ne[ie]);if(re.length>0){for(var le=[re[0]],oe=1;oe<re.length;oe++)-1==le.indexOf(re[oe])&&le.push(re[oe]);re=le}Ot.style.fontFamily=re.join(",")})),new c("http://www.w3.org/ns/ttml#styling shear",(function(Rt,Ot,ee,ne){if(0!==ne){var re=-.9*ne;"tb"===Rt.bpd?Ot.style.transform="skewX("+re+"deg)":Ot.style.transform="skewY("+re+"deg)"}})),new c("http://www.w3.org/ns/ttml#styling fontSize",(function(Rt,Ot,ee,ne){Ot.style.fontSize=ne.toUsedLength(Rt.w,Rt.h)+"px"})),new c("http://www.w3.org/ns/ttml#styling fontStyle",(function(Rt,Ot,ee,ne){Ot.style.fontStyle=ne})),new c("http://www.w3.org/ns/ttml#styling fontWeight",(function(Rt,Ot,ee,ne){Ot.style.fontWeight=ne})),new c("http://www.w3.org/ns/ttml#styling lineHeight",(function(Rt,Ot,ee,ne){Ot.style.lineHeight="normal"===ne?"normal":ne.toUsedLength(Rt.w,Rt.h)+"px"})),new c("http://www.w3.org/ns/ttml#styling opacity",(function(Rt,Ot,ee,ne){Ot.style.opacity=ne})),new c("http://www.w3.org/ns/ttml#styling origin",(function(Rt,Ot,ee,ne){Ot.style.top=ne.h.toUsedLength(Rt.w,Rt.h)+"px",Ot.style.left=ne.w.toUsedLength(Rt.w,Rt.h)+"px"})),new c("http://www.w3.org/ns/ttml#styling overflow",(function(Rt,Ot,ee,ne){Ot.style.overflow=ne})),new c("http://www.w3.org/ns/ttml#styling padding",(function(Rt,Ot,ee,ne){var re=[];re[0]=ne[0].toUsedLength(Rt.w,Rt.h)+"px",re[1]=ne[3].toUsedLength(Rt.w,Rt.h)+"px",re[2]=ne[2].toUsedLength(Rt.w,Rt.h)+"px",re[3]=ne[1].toUsedLength(Rt.w,Rt.h)+"px",Ot.style.padding=re.join(" ")})),new c("http://www.w3.org/ns/ttml#styling position",(function(Rt,Ot,ee,ne){Ot.style.top=ne.h.toUsedLength(Rt.w,Rt.h)+"px",Ot.style.left=ne.w.toUsedLength(Rt.w,Rt.h)+"px"})),new c("http://www.w3.org/ns/ttml#styling rubyAlign",(function(Rt,Ot,ee,ne){Ot.style.rubyAlign="spaceAround"===ne?"space-around":"center"})),new c("http://www.w3.org/ns/ttml#styling rubyPosition",(function(Rt,Ot,ee,ne){var re;"before"!==ne&&"after"!==ne||(re=oe?ne:"tb"===Rt.bpd||"rl"===Rt.bpd?"before"===ne?"over":"under":"before"===ne?"under":"over",Ot.parentElement.style[ue]=re)}
vendor: 9,084 bytes, line 1
1)),new c("http://www.w3.org/ns/ttml#styling showBackground",null),new c("http://www.w3.org/ns/ttml#styling textAlign",(function(Rt,Ot,ee,ne){var re;re="start"===ne?"rl"===Rt.ipd?"right":"left":"end"===ne?"rl"===Rt.ipd?"left":"right":ne,Ot.style.textAlign=re})),new c("http://www.w3.org/ns/ttml#styling textDecoration",(function(Rt,Ot,ee,ne){Ot.style.textDecoration=ne.join(" ").replace("lineThrough","line-through")})),new c("http://www.w3.org/ns/ttml#styling textOutline",(function(Rt,Ot,ee,ne){})),new c("http://www.w3.org/ns/ttml#styling textShadow",(function(Rt,Ot,ne,re){var ie=ne.styleAttrs[ee.byName.textOutline.qname];if("none"===re&&"none"===ie)Ot.style.textShadow="";else{var le=[];if("none"!==ie){var oe="rgba("+ie.color[0].toString()+","+ie.color[1].toString()+","+ie.color[2].toString()+","+(ie.color[3]/255).toString()+")";le.push("1px 1px 1px "+oe),le.push("-1px 1px 1px "+oe),le.push("1px -1px 1px "+oe),le.push("-1px -1px 1px "+oe)}if("none"!==re)for(var ue=0;ue<re.length;ue++)le.push(re[ue].x_off.toUsedLength(Rt.w,Rt.h)+"px "+re[ue].y_off.toUsedLength(Rt.w,Rt.h)+"px "+re[ue].b_radius.toUsedLength(Rt.w,Rt.h)+"px rgba("+re[ue].color[0].toString()+","+re[ue].color[1].toString()+","+re[ue].color[2].toString()+","+(re[ue].color[3]/255).toString()+")");Ot.style.textShadow=le.join(",")}})),new c("http://www.w3.org/ns/ttml#styling textCombine",(function(Rt,Ot,ee,ne){Ot.style.textCombineUpright=ne})),new c("http://www.w3.org/ns/ttml#styling textEmphasis",(function(Rt,Ot,ee,ne){})),new c("http://www.w3.org/ns/ttml#styling unicodeBidi",(function(Rt,Ot,ee,ne){var re;re="bidiOverride"===ne?"bidi-override":ne,Ot.style.unicodeBidi=re})),new c("http://www.w3.org/ns/ttml#styling visibility",(function(Rt,Ot,ee,ne){Ot.style.visibility=ne})),new c("http://www.w3.org/ns/ttml#styling wrapOption",(function(Rt,Ot,ee,ne){"wrap"===ne?"preserve"===ee.space?Ot.style.whiteSpace="pre-wrap":Ot.style.whiteSpace="normal":"preserve"===ee.space?Ot.style.whiteSpace="pre":Ot.style.whiteSpace="noWrap"})),new c("http://www.w3.org/ns/ttml#styling writingMode",(function(Rt,Ot,ee,ne){"lrtb"===ne||"lr"===ne||"rltb"===ne||"rl"===ne?Ot.style.writingMode="horizontal-tb":"tblr"===ne?Ot.style.writingMode="vertical-lr":"tbrl"!==ne&&"tb"!==ne||(Ot.style.writingMode="vertical-rl")})),new c("http://www.w3.org/ns/ttml#styling zIndex",(function(Rt,Ot,ee,ne){Ot.style.zIndex=ne})),new c("http://www.w3.org/ns/ttml/profile/imsc1#styling forcedDisplay",(function(Rt,Ot,ee,ne){Rt.displayForcedOnlyMode&&!1===ne&&(Ot.style.visibility="hidden")}))],ie={},le=0;le<re.length;le++)ie[re[le].qname]=re[le];var oe="webkitRubyPosition"in window.getComputedStyle(document.documentElement),ue=oe?"webkitRubyPosition":"rubyPosition",ce="webkitTextEmphasisStyle"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisStyle":"textEmphasisStyle",fe="webkitTextEmphasisPosition"in window.getComputedStyle(document.documentElement)?"webkitTextEmphasisPosition":"textEmphasisPosition";function E(Rt,Ot){if(Rt&&Rt.error&&Rt.error(Ot))throw Ot}}(Ot,"undefined"==typeof imscNames?ee(977):imscNames,"undefined"==typeof imscStyles?ee(1219):imscStyles,"undefined"==typeof imscUtils?ee(6404):imscUtils)},8905:function(Rt,Ot,ee){!function(Rt,Ot,ee,ne){Rt.generateISD=function(Rt,Ot,ne){var re,ie=new s(Rt),le={},oe={},ue=Rt.head.styling.initials[ee.byName.showBackground.qname],ce=Rt.head.styling.initials[ee.byName.backgroundColor.qname];for(var fe in Rt.head.layout.regions)if(Rt.head.layout.regions.hasOwnProperty(fe)){var ge=Rt.head.layout.regions[fe],he=ge.styleAttrs[ee.byName.showBackground.qname]||ue,pe=ge.styleAttrs[ee.byName.backgroundColor.qname]||ce;oe[ge.id]=("always"===he||void 0===he)&&void 0!==pe&&!(Ot<ge.begin||Ot>=ge.end)}for(var be in Rt.body&&Rt.body.regionID&&(oe[Rt.body.regionID]=!0),re=null!==Rt.body?function t(Rt,Ot){if(Ot.contents){var ee={};for(var ne in Ot)Ot.hasOwnProperty(ne)&&(ee[ne]=Ot[ne]);return ee.contents=[],Ot.contents.filter((function(Ot){return!(Rt<Ot.begin||Rt>=Ot.end)})).forEach((function(Ot){var ne=t(Rt,Ot);ne.regionID&&(oe[ne.regionID]=!0),null!==ne&&ee.contents.push(ne)})),ee}return Ot}(Ot,Rt.body):null,void 0!==oe[""]&&(oe[""]=!0),oe)if(oe[be]){var ye=i(Rt,Ot,Rt.head.layout.regions[be],re,null,"",Rt.head.layout.regions[be],ne,le);null!==ye&&ie.contents.push(ye.element)}return ie};var re=[ee.byName.color.qname,ee.byName.textCombine.qname,ee.byName.textDecoration.qname,ee.byName.textEmphasis.qname,ee.byName.textOutline.qname,ee.byName.textShadow.qname];function i(Rt,Ot,ie,le,oe,ue,ce,fe,ge){if(Ot<ce.begin||Ot>=ce.end)return null;var he="regionID"in ce&&""!==ce.regionID?ce.regionID:ue;if(null!==oe&&he!==ie.id&&(!("contents"in ce)||"contents"in ce&&0===ce.contents.length||""!==he))return null;var pe=new u(ce);if("sets"in ce)for(var be=0;be<ce.sets.length;be++)Ot<ce.sets[be].begin||Ot>=ce.sets[be].end||(pe.styleAttrs[ce.sets[be].qname]=ce.sets[be].value);var ye={};for(var Ee in pe.styleAttrs)if(pe.styleAttrs.hasOwnProperty(Ee)&&(ye[Ee]=!0,"region"===pe.kind&&Ee===ee.byName.writingMode.qname&&!(ee.byName.direction.qname in pe.styleAttrs))){var _e=pe.styleAttrs[Ee];"lrtb"===_e||"lr"===_e?pe.styleAttrs[ee.byName.direction.qname]="ltr":"rltb"!==_e&&"rl"!==_e||(pe.styleAttrs[ee.byName.direction.qname]="rtl")}if(null!==oe)for(var Se=0;Se<ee.all.length;Se++){var we=ee.all[Se];if(we.qname===ee.byName.textDecoration.qname){var Re=oe.styleAttrs[we.qname],Ne=pe.styleAttrs[we.qname],Ce=[];void 0===Ne?Ce=Re:-1===Ne.indexOf("none")?((-1===Ne.indexOf("noUnderline")&&-1!==Re.indexOf("underline")||-1!==Ne.indexOf("underline"))&&Ce.push("underline"),(-1===Ne.indexOf("noLineThrough")&&-1!==Re.indexOf("lineThrough")||-1!==Ne.indexOf("lineThrough"))&&Ce.push("lineThrough"),(-1===Ne.indexOf("noOverline")&&-1!==Re.indexOf("overline")||-1!==Ne.indexOf("overline"))&&Ce.push("overline")):Ce.push("none"),pe.styleAttrs[we.qname]=Ce}else if(we.qname!==ee.byName.fontSize.qname||we.qname in pe.styleAttrs||"span"!==pe.kind||"textContainer"!==pe.styleAttrs[ee.byName.ruby.qname])if(we.qname!==ee.byName.fontSize.qname||we.qname in pe.styleAttrs||"span"!==pe.kind||"text"!==pe.styleAttrs[ee.byName.ruby.qname])we.inherit&&we.qname in oe.styleAttrs&&!(we.qname in pe.styleAttrs)&&(pe.styleAttrs[we.qname]=oe.styleAttrs[we.qname]);else{var De=oe.styleAttrs[ee.byName.fontSize.qname];"textContainer"===oe.styleAttrs[ee.byName.ruby.qname]?pe.styleAttrs[we.qname]=De:pe.styleAttrs[we.qname]=new ne.ComputedLength(.5*De.rw,.5*De.rh)}else{var xe=oe.styleAttrs[ee.byName.fontSize.qname];pe.styleAttrs[we.qname]=new ne.ComputedLength(.5*xe.rw,.5*xe.rh)}}for(var Me=0;Me<ee.all.length;Me++){var Oe=ee.all[Me];if(!(Oe.qname in pe.styleAttrs)&&!(Oe.qname===ee.byName.position.qname&&ee.byName.origin.qname in pe.styleAttrs||Oe.qname===ee.byName.origin.qname&&ee.byName.position.qname in pe.styleAttrs)){var Pe=Rt.head.styling.initials[Oe.qname]||Oe.initial;if(null!==Pe&&("region"===pe.kind||!1===Oe.inherit&&null!==Pe)){var Fe=Oe.parse(Pe);null!==Fe?(pe.styleAttrs[Oe.qname]=Fe,ye[Oe.qname]=!0):d(fe,"Invalid initial value for '"+Oe.qname+"' on element '"+pe.kind)}}}for(var Ue=0;Ue<ee.all.length;Ue++){var je=ee.all[Ue];if(je.qname in ye&&null!==je.compute){var qe=je.compute(Rt,oe,pe,pe.styleAttrs[je.qname],ge);null!==qe?pe.styleAttrs[je.qname]=qe:(pe.styleAttrs[je.qname]=je.compute(Rt,oe,pe,je.parse(je.initial),ge),d(fe,"Style '"+je.qname+"' on element '"+pe.kind+"' cannot be computed"))}}if("none"===pe.styleAttrs[ee.byName.display.qname])return null;var Ge=null;null===oe?Ge=null===le?[]:[le]:"contents"in ce&&(Ge=ce.contents);for(var We=0;null!==Ge&&We<Ge.length;We++){var ln=i(Rt,Ot,ie,le,pe,he,Ge[We],fe,ge);null!==ln&&pe.contents.push(ln.element)}for(var on in pe.styleAttrs)if(pe.styleAttrs.hasOwnProperty(on)){var sn=!1;if("span"===pe.kind){var un=pe.styleAttrs[ee.byName.ruby.qname];(sn=("container"===un||"textContainer"===un||"baseContainer"===un)&&-1!==re.indexOf(on))||(sn="container"!==un&&on===ee.byName.rubyAlign.qname),sn||(sn=!("textContainer"===un||"text"===un)&&on===ee.byName.rubyPosition.qname)}if(!sn){var dn=ee.byQName[on];"applies"in dn&&(sn=-1===dn.applies.indexOf(pe.kind))}sn&&delete pe.styleAttrs[on]}var cn=pe.styleAttrs[ee.byName.ruby.qname];if("p"===pe.kind||"span"===pe.kind&&("textContainer"===cn||"text"===cn)){var fn=[];l(pe,fn),function(Rt){for(var Ot,ee=0;ee<Rt.length;)if("br"!==(Ot=Rt[ee]).kind&&"preserve"!==Ot.space){var ne=Ot.text.replace(/[\t\r\n ]+/g," ");/^[ ]/.test(ne)&&(0===ee||"br"===(re=Rt[ee-1]).kind||/[\r\n\t ]$/.test(re.text))&&(ne=ne.substring(1)),Ot.text=ne,0===ne.length?Rt.splice(ee,1):ee++}else ee++;var re,ie;for(ee=0;ee<Rt.length;ee++)"br"!==(Ot=Rt[ee]).kind&&"preserve"!==Ot.space?/[ ]$/.test(Ot.text)&&(ee===Rt.length-1||"br"===(ie=Rt[ee+1]).kind||"preserve"===ie.space&&/^[\r\n]/.test(ie.text))&&(Ot.text=Ot.text.slice(0,-1)):ee++}(fn),o(pe)}return"div"===pe.kind&&ee.byName.backgroundImage.qname in pe.styleAttrs||"br"===pe.kind||"image"===pe.kind||"contents"in pe&&pe.contents.length>0||"span"===pe.kind&&null!==pe.text||"region"===pe.kind&&"always"===pe.styleAttrs[ee.byName.showBackgroun
vendor: 4,371 bytes, line 1
1d.qname]?{region_id:he,element:pe}:null}function l(Rt,Ot){if("contents"in Rt)for(var ne=0;ne<Rt.contents.length;ne++){var re=Rt.contents[ne],ie=re.styleAttrs[ee.byName.ruby.qname];("span"!==re.kind||"textContainer"!==ie&&"text"!==ie)&&("contents"in re?l(re,Ot):("span"===re.kind&&0!==re.text.length||"br"===re.kind)&&Ot.push(re))}}function o(Rt){if("br"===Rt.kind)return!1;if("text"in Rt)return 0===Rt.text.length;if("contents"in Rt){for(var Ot=Rt.contents.length;Ot--;)o(Rt.contents[Ot])&&Rt.contents.splice(Ot,1);return 0===Rt.contents.length}}function s(Rt){this.contents=[],this.aspectRatio=Rt.aspectRatio,this.lang=Rt.lang}function u(Rt){for(var Ot in this.kind=Rt.kind||"region",this.lang=Rt.lang,Rt.id&&(this.id=Rt.id),this.styleAttrs={},Rt.styleAttrs)Rt.styleAttrs.hasOwnProperty(Ot)&&(this.styleAttrs[Ot]=Rt.styleAttrs[Ot]);"src"in Rt&&(this.src=Rt.src),"type"in Rt&&(this.type=Rt.type),"text"in Rt?this.text=Rt.text:("region"===this.kind||"contents"in Rt)&&(this.contents=[]),"space"in Rt&&(this.space=Rt.space)}function d(Rt,Ot){if(Rt&&Rt.error&&Rt.error(Ot))throw Ot}}(Ot,"undefined"==typeof imscNames?ee(977):imscNames,"undefined"==typeof imscStyles?ee(1219):imscStyles,"undefined"==typeof imscUtils?ee(6404):imscUtils)},7640:function(Rt,Ot,ee){Ot.generateISD=ee(8905).generateISD,Ot.fromXML=ee(6739).fromXML,Ot.renderHTML=ee(1612).render},977:function(Rt,Ot){!function(Rt){Rt.ns_tt="http://www.w3.org/ns/ttml",Rt.ns_tts="http://www.w3.org/ns/ttml#styling",Rt.ns_ttp="http://www.w3.org/ns/ttml#parameter",Rt.ns_xml="http://www.w3.org/XML/1998/namespace",Rt.ns_itts="http://www.w3.org/ns/ttml/profile/imsc1#styling",Rt.ns_ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter",Rt.ns_smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt",Rt.ns_ebutts="urn:ebu:tt:style"}(Ot)},1219:function(Rt,Ot,ee){!function(Rt,Ot,ee){function a(Rt,Ot,ee,ne,re,ie,le,oe){this.name=Ot,this.ns=Rt,this.qname=Rt+" "+Ot,this.inherit=re,this.animatable=ie,this.initial=ee,this.applies=ne,this.parse=le,this.compute=oe}for(var ne in Rt.all=[new a(Ot.ns_tts,"backgroundColor","transparent",["body","div","p","region","span"],!1,!0,ee.parseColor,null),new a(Ot.ns_tts,"color","white",["span"],!0,!0,ee.parseColor,null),new a(Ot.ns_tts,"direction","ltr",["p","span"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"display","auto",["body","div","p","region","span"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"displayAlign","before",["region"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"extent","auto",["tt","region"],!1,!0,(function(Rt){if("auto"===Rt)return Rt;var Ot=Rt.split(" ");if(2!==Ot.length)return null;var ne=ee.parseLength(Ot[0]),re=ee.parseLength(Ot[1]);return re&&ne?{h:re,w:ne}:null}),(function(Rt,Ot,ne,re,ie){var le,oe;if("auto"===re)le=new ee.ComputedLength(0,1);else if(null===(le=ee.toComputedLength(re.h.value,re.h.unit,null,Rt.dimensions.h,null,Rt.pxLength.h)))return null;if("auto"===re)oe=new ee.ComputedLength(1,0);else if(null===(oe=ee.toComputedLength(re.w.value,re.w.unit,null,Rt.dimensions.w,null,Rt.pxLength.w)))return null;return{h:le,w:oe}})),new a(Ot.ns_tts,"fontFamily","default",["span","p"],!0,!0,(function(Rt){for(var Ot=Rt.split(","),ee=[],ne=0;ne<Ot.length;ne++)Ot[ne]=Ot[ne].trim(),"'"!==Ot[ne].charAt(0)&&'"'!==Ot[ne].charAt(0)&&"default"===Ot[ne]?ee.push("monospaceSerif"):ee.push(Ot[ne]);return ee}),null),new a(Ot.ns_tts,"shear","0%",["p"],!0,!0,ee.parseLength,(function(Rt,Ot,ee,ne){return"%"!==ne.unit?null:Math.abs(ne.value)>100?100*Math.sign(ne.value):ne.value})),new a(Ot.ns_tts,"fontSize","1c",["span","p"],!0,!0,ee.parseLength,(function(Ot,ne,re,ie,le){return ee.toComputedLength(ie.value,ie.unit,null!==ne?ne.styleAttrs[Rt.byName.fontSize.qname]:Ot.cellLength.h,null!==ne?ne.styleAttrs[Rt.byName.fontSize.qname]:Ot.cellLength.h,Ot.cellLength.h,Ot.pxLength.h)})),new a(Ot.ns_tts,"fontStyle","normal",["span","p"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"fontWeight","normal",["span","p"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"lineHeight","normal",["p"],!0,!0,(function(Rt){return"normal"===Rt?Rt:ee.parseLength(Rt)}),(function(Ot,ne,re,ie,le){var oe;if("normal"===ie)oe=ie;else if(null===(oe=ee.toComputedLength(ie.value,ie.unit,re.styleAttrs[Rt.byName.fontSize.qname],re.styleAttrs[Rt.byName.fontSize.qname],Ot.cellLength.h,Ot.pxLength.h)))return null;return oe}
vendor: 6,530 bytes, line 1
1)),new a(Ot.ns_tts,"opacity",1,["region"],!1,!0,parseFloat,null),new a(Ot.ns_tts,"origin","auto",["region"],!1,!0,(function(Rt){if("auto"===Rt)return Rt;var Ot=Rt.split(" ");if(2!==Ot.length)return null;var ne=ee.parseLength(Ot[0]),re=ee.parseLength(Ot[1]);return re&&ne?{h:re,w:ne}:null}),(function(Rt,Ot,ne,re,ie){var le,oe;if("auto"===re)le=new ee.ComputedLength(0,0);else if(null===(le=ee.toComputedLength(re.h.value,re.h.unit,null,Rt.dimensions.h,null,Rt.pxLength.h)))return null;if("auto"===re)oe=new ee.ComputedLength(0,0);else if(null===(oe=ee.toComputedLength(re.w.value,re.w.unit,null,Rt.dimensions.w,null,Rt.pxLength.w)))return null;return{h:le,w:oe}})),new a(Ot.ns_tts,"overflow","hidden",["region"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"padding","0px",["region"],!1,!0,(function(Rt){var Ot=Rt.split(" ");if(Ot.length>4)return null;for(var ne=[],re=0;re<Ot.length;re++){var ie=ee.parseLength(Ot[re]);if(!ie)return null;ne.push(ie)}return ne}),(function(Ot,ne,re,ie,le){var oe;if(1===ie.length)oe=[ie[0],ie[0],ie[0],ie[0]];else if(2===ie.length)oe=[ie[0],ie[1],ie[0],ie[1]];else if(3===ie.length)oe=[ie[0],ie[1],ie[2],ie[1]];else{if(4!==ie.length)return null;oe=[ie[0],ie[1],ie[2],ie[3]]}var ue=re.styleAttrs[Rt.byName.writingMode.qname];if("lrtb"===ue||"lr"===ue)oe=[oe[0],oe[3],oe[2],oe[1]];else if("rltb"===ue||"rl"===ue)oe=[oe[0],oe[1],oe[2],oe[3]];else if("tblr"===ue)oe=[oe[3],oe[0],oe[1],oe[2]];else{if("tbrl"!==ue&&"tb"!==ue)return null;oe=[oe[3],oe[2],oe[1],oe[0]]}for(var ce=[],fe=0;fe<oe.length;fe++)if(0===oe[fe].value)ce[fe]=new ee.ComputedLength(0,0);else if(ce[fe]=ee.toComputedLength(oe[fe].value,oe[fe].unit,re.styleAttrs[Rt.byName.fontSize.qname],0===fe||2===fe?re.styleAttrs[Rt.byName.extent.qname].h:re.styleAttrs[Rt.byName.extent.qname].w,0===fe||2===fe?Ot.cellLength.h:Ot.cellLength.w,0===fe||2===fe?Ot.pxLength.h:Ot.pxLength.w),null===ce[fe])return null;return ce})),new a(Ot.ns_tts,"position","top left",["region"],!1,!0,(function(Rt){return ee.parsePosition(Rt)}),(function(Ot,ne,re,ie){var le,oe;return null===(le=ee.toComputedLength(ie.v.offset.value,ie.v.offset.unit,null,new ee.ComputedLength(-re.styleAttrs[Rt.byName.extent.qname].h.rw,Ot.dimensions.h.rh-re.styleAttrs[Rt.byName.extent.qname].h.rh),null,Ot.pxLength.h))?null:("bottom"===ie.v.edge&&(le=new ee.ComputedLength(-le.rw-re.styleAttrs[Rt.byName.extent.qname].h.rw,Ot.dimensions.h.rh-le.rh-re.styleAttrs[Rt.byName.extent.qname].h.rh)),oe=ee.toComputedLength(ie.h.offset.value,ie.h.offset.unit,null,new ee.ComputedLength(Ot.dimensions.w.rw-re.styleAttrs[Rt.byName.extent.qname].w.rw,-re.styleAttrs[Rt.byName.extent.qname].w.rh),null,Ot.pxLength.w),null===le?null:("right"===ie.h.edge&&(oe=new ee.ComputedLength(Ot.dimensions.w.rw-oe.rw-re.styleAttrs[Rt.byName.extent.qname].w.rw,-oe.rh-re.styleAttrs[Rt.byName.extent.qname].w.rh)),{h:le,w:oe}))})),new a(Ot.ns_tts,"ruby","none",["span"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"rubyAlign","center",["span"],!0,!0,(function(Rt){return"center"!==Rt&&"spaceAround"!==Rt?null:Rt}),null),new a(Ot.ns_tts,"rubyPosition","outside",["span"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"rubyReserve","none",["p"],!0,!0,(function(Rt){var Ot=Rt.split(" "),ne=[null,null];if(0===Ot.length||Ot.length>2)return null;if("none"!==Ot[0]&&"both"!==Ot[0]&&"after"!==Ot[0]&&"before"!==Ot[0]&&"outside"!==Ot[0])return null;if(ne[0]=Ot[0],2===Ot.length&&"none"!==Ot[0]){var re=ee.parseLength(Ot[1]);if(!re)return null;ne[1]=re}return ne}),(function(Ot,ne,re,ie,le){return"none"===ie[0]?ie:null===(oe=null===ie[1]?new ee.ComputedLength(.5*re.styleAttrs[Rt.byName.fontSize.qname].rw,.5*re.styleAttrs[Rt.byName.fontSize.qname].rh):ee.toComputedLength(ie[1].value,ie[1].unit,re.styleAttrs[Rt.byName.fontSize.qname],re.styleAttrs[Rt.byName.fontSize.qname],Ot.cellLength.h,Ot.pxLength.h))?null:[ie[0],oe];var oe})),new a(Ot.ns_tts,"showBackground","always",["region"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"textAlign","start",["p"],!0,!0,(function(Rt){return Rt}),(function(Rt,Ot,ee,ne,re){return"left"===ne?"start":"right"===ne?"end":ne})),new a(Ot.ns_tts,"textCombine","none",["span"],!0,!0,(function(Rt){return"none"===Rt||"all"===Rt?Rt:null}),null),new a(Ot.ns_tts,"textDecoration","none",["span"],!0,!0,(function(Rt){return Rt.split(" ")}),null),new a(Ot.ns_tts,"textEmphasis","none",["span"],!0,!0,(function(Rt){for(var Ot=Rt.split(" "),ne={style:null,symbol:null,color:null,position:null},re=0;re<Ot.length;re++)if("none"===Ot[re]||"auto"===Ot[re])ne.style=Ot[re];else if("filled"===Ot[re]||"open"===Ot[re])ne.style=Ot[re];else if("circle"===Ot[re]||"dot"===Ot[re]||"sesame"===Ot[re])ne.symbol=Ot[re];else if("current"===Ot[re])ne.color=Ot[re];else if("outside"===Ot[re]||"before"===Ot[re]||"after"===Ot[re])ne.position=Ot[re];else if(ne.color=ee.parseColor(Ot[re]),null===ne.color)return null;return null==ne.style&&null==ne.symbol?ne.style="auto":(ne.symbol=ne.symbol||"circle",ne.style=ne.style||"filled"),ne.position=ne.position||"outside",ne.color=ne.color||"current",ne}),null),new a(Ot.ns_tts,"textOutline","none",["span"],!0,!0,(function(Rt){if("none"===Rt)return Rt;var Ot={},ne=Rt.split(" ");if(0===ne.length||ne.length>2)return null;var re=ee.parseColor(ne[0]);if(Ot.color=re,null!==re&&ne.shift(),1!==ne.length)return null;var ie=ee.parseLength(ne[0]);return ie?(Ot.thickness=ie,Ot):null}),(function(Ot,ne,re,ie,le){if("none"===ie)return ie;var oe={};return null===ie.color?oe.color=re.styleAttrs[Rt.byName.color.qname]:oe.color=ie.color,oe.thickness=ee.toComputedLength(ie.thickness.value,ie.thickness.unit,re.styleAttrs[Rt.byName.fontSize.qname],re.styleAttrs[Rt.byName.fontSize.qname],Ot.cellLength.h,Ot.pxLength.h),null===oe.thickness?null:oe})),new a(Ot.ns_tts,"textShadow","none",["span"],!0,!0,ee.parseTextShadow,(function(Ot,ne,re,ie){if("none"===ie)return ie;for(var le=[],oe=0;oe<ie.length;oe++){var ue={};if(ue.x_off=ee.toComputedLength(ie[oe][0].value,ie[oe][0].unit,null,re.styleAttrs[Rt.byName.fontSize.qname],null,Ot.pxLength.w),null===ue.x_off)return null;if(ue.y_off=ee.toComputedLength(ie[oe][1].value,ie[oe][1].unit,null,re.styleAttrs[Rt.byName.fontSize.qname],null,Ot.pxLength.h),null===ue.y_off)return null;if(null===ie[oe][2])ue.b_radius=0;else if(ue.b_radius=ee.toComputedLength(ie[oe][2].value,ie[oe][2].unit,null,re.styleAttrs[Rt.byName.fontSize.qname],null,Ot.pxLength.h),null===ue.b_radius)return null;null===ie[oe][3]?ue.color=re.styleAttrs[Rt.byName.color.qname]:ue.color=ie[oe][3],le.push(ue)}return le}
vendor: 14,754 bytes, line 1
1)),new a(Ot.ns_tts,"unicodeBidi","normal",["span","p"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"visibility","visible",["body","div","p","region","span"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"wrapOption","wrap",["span"],!0,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"writingMode","lrtb",["region"],!1,!0,(function(Rt){return Rt}),null),new a(Ot.ns_tts,"zIndex","auto",["region"],!1,!0,(function(Rt){var Ot;return"auto"===Rt?Ot=Rt:(Ot=parseInt(Rt),isNaN(Ot)&&(Ot=null)),Ot}),null),new a(Ot.ns_ebutts,"linePadding","0c",["p"],!0,!1,ee.parseLength,(function(Rt,Ot,ne,re,ie){return ee.toComputedLength(re.value,re.unit,null,null,Rt.cellLength.w,null)})),new a(Ot.ns_ebutts,"multiRowAlign","auto",["p"],!0,!1,(function(Rt){return Rt}),null),new a(Ot.ns_smpte,"backgroundImage",null,["div"],!1,!1,(function(Rt){return Rt}),null),new a(Ot.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],!0,!0,(function(Rt){return"true"===Rt}),null),new a(Ot.ns_itts,"fillLineGap","false",["p"],!0,!0,(function(Rt){return"true"===Rt}),null)],Rt.byQName={},Rt.all)Rt.byQName[Rt.all[ne].qname]=Rt.all[ne];for(var re in Rt.byName={},Rt.all)Rt.byName[Rt.all[re].name]=Rt.all[re]}(Ot,"undefined"==typeof imscNames?ee(977):imscNames,"undefined"==typeof imscUtils?ee(6404):imscUtils)},6404:function(Rt,Ot){!function(Rt){var Ot=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/,ee=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,ne=/rgba\(\s*(\d+),\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,re={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]};Rt.parseColor=function(Rt){var ie,le=null,oe=re[Rt.toLowerCase()];return void 0!==oe?le=oe:null!==(ie=Ot.exec(Rt))?le=[parseInt(ie[1],16),parseInt(ie[2],16),parseInt(ie[3],16),void 0!==ie[4]?parseInt(ie[4],16):255]:null!==(ie=ee.exec(Rt))?le=[parseInt(ie[1]),parseInt(ie[2]),parseInt(ie[3]),255]:null!==(ie=ne.exec(Rt))&&(le=[parseInt(ie[1]),parseInt(ie[2]),parseInt(ie[3]),parseInt(ie[4])]),le};var ie=/^((?:\+|\-)?\d*(?:\.\d+)?)(px|em|c|%|rh|rw)$/;Rt.parseLength=function(Rt){var Ot,ee=null;return null!==(Ot=ie.exec(Rt))&&(ee={value:parseFloat(Ot[1]),unit:Ot[2]}),ee},Rt.parseTextShadow=function(Ot){for(var ee=Ot.match(/([^\(,\)]|\([^\)]+\))+/g),ne=[],re=0;re<ee.length;re++){var ie=ee[re].split(" ");if(1===ie.length&&"none"===ie[0])return"none";if(ie.length>1&&ie.length<5){var le=[null,null,null,null],oe=Rt.parseLength(ie.shift());if(null===oe)return null;if(le[0]=oe,null===(oe=Rt.parseLength(ie.shift())))return null;if(le[1]=oe,0===ie.length){ne.push(le);continue}if(null!==(oe=Rt.parseLength(ie[0]))&&(le[2]=oe,ie.shift()),0===ie.length){ne.push(le);continue}var ue=Rt.parseColor(ie[0]);if(null===ue)return null;le[3]=ue,ne.push(le)}}return ne},Rt.parsePosition=function(Ot){var ee=Ot.split(" "),a=function(Rt){return"center"===Rt||"left"===Rt||"top"===Rt||"bottom"===Rt||"right"===Rt};if(ee.length>4)return null;for(var ne=0;ne<ee.length;ne++)if(!a(ee[ne])){var re=Rt.parseLength(ee[ne]);if(null===re)return null;ee[ne]=re}for(var ie={h:{edge:"left",offset:{value:50,unit:"%"}},v:{edge:"top",offset:{value:50,unit:"%"}}},le=0;le<ee.length;){var oe=ee[le++];if(a(oe)){var ue={value:0,unit:"%"};2!==ee.length&&le<ee.length&&!a(ee[le])&&(ue=ee[le++]),"right"===oe?(ie.h.edge=oe,ie.h.offset=ue):"bottom"===oe?(ie.v.edge=oe,ie.v.offset=ue):"left"===oe?ie.h.offset=ue:"top"===oe&&(ie.v.offset=ue)}else{if(1!==ee.length&&2!==ee.length)return null;1===le?ie.h.offset=oe:ie.v.offset=oe}}return ie},Rt.ComputedLength=function(Rt,Ot){this.rw=Rt,this.rh=Ot},Rt.ComputedLength.prototype.toUsedLength=function(Rt,Ot){return Rt*this.rw+Ot*this.rh},Rt.ComputedLength.prototype.isZero=function(){return 0===this.rw&&0===this.rh},Rt.toComputedLength=function(Ot,ee,ne,re,ie,le){return"%"===ee&&re?new Rt.ComputedLength(re.rw*Ot/100,re.rh*Ot/100):"em"===ee&&ne?new Rt.ComputedLength(ne.rw*Ot,ne.rh*Ot):"c"===ee&&ie?new Rt.ComputedLength(Ot*ie.rw,Ot*ie.rh):"px"===ee&&le?new Rt.ComputedLength(Ot*le.rw,Ot*le.rh):"rh"===ee?new Rt.ComputedLength(0,Ot/100):"rw"===ee?new Rt.ComputedLength(Ot/100,0):null}}(Ot)},7523:function(Rt){"function"==typeof Object.create?Rt.exports=function(Rt,Ot){Ot&&(Rt.super_=Ot,Rt.prototype=Object.create(Ot.prototype,{constructor:{value:Rt,enumerable:!1,writable:!0,configurable:!0}}))}:Rt.exports=function(Rt,Ot){if(Ot){Rt.super_=Ot;var n=function(){};n.prototype=Ot.prototype,Rt.prototype=new n,Rt.prototype.constructor=Rt}}},3282:function(Rt){function e(Rt){if("string"!=typeof Rt)throw new TypeError("Path must be a string. Received "+JSON.stringify(Rt))}function n(Rt,Ot){for(var ee,ne="",re=0,ie=-1,le=0,oe=0;oe<=Rt.length;++oe){if(oe<Rt.length)ee=Rt.charCodeAt(oe);else{if(47===ee)break;ee=47}if(47===ee){if(ie===oe-1||1===le);else if(ie!==oe-1&&2===le){if(ne.length<2||2!==re||46!==ne.charCodeAt(ne.length-1)||46!==ne.charCodeAt(ne.length-2))if(ne.length>2){var ue=ne.lastIndexOf("/");if(ue!==ne.length-1){-1===ue?(ne="",re=0):re=(ne=ne.slice(0,ue)).length-1-ne.lastIndexOf("/"),ie=oe,le=0;continue}}else if(2===ne.length||1===ne.length){ne="",re=0,ie=oe,le=0;continue}Ot&&(ne.length>0?ne+="/..":ne="..",re=2)}else ne.length>0?ne+="/"+Rt.slice(ie+1,oe):ne=Rt.slice(ie+1,oe),re=oe-ie-1;ie=oe,le=0}else 46===ee&&-1!==le?++le:le=-1}return ne}var Ot={resolve:function(){for(var Rt,Ot="",ee=!1,ne=arguments.length-1;ne>=-1&&!ee;ne--){var re;ne>=0?re=arguments[ne]:(void 0===Rt&&(Rt={env:{}}.cwd()),re=Rt),e(re),0!==re.length&&(Ot=re+"/"+Ot,ee=47===re.charCodeAt(0))}return Ot=n(Ot,!ee),ee?Ot.length>0?"/"+Ot:"/":Ot.length>0?Ot:"."},normalize:function(Rt){if(e(Rt),0===Rt.length)return".";var Ot=47===Rt.charCodeAt(0),ee=47===Rt.charCodeAt(Rt.length-1);return 0!==(Rt=n(Rt,!Ot)).length||Ot||(Rt="."),Rt.length>0&&ee&&(Rt+="/"),Ot?"/"+Rt:Rt},isAbsolute:function(Rt){return e(Rt),Rt.length>0&&47===Rt.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var Rt,ee=0;ee<arguments.length;++ee){var ne=arguments[ee];e(ne),ne.length>0&&(void 0===Rt?Rt=ne:Rt+="/"+ne)}return void 0===Rt?".":Ot.normalize(Rt)},relative:function(Rt,ee){if(e(Rt),e(ee),Rt===ee)return"";if((Rt=Ot.resolve(Rt))===(ee=Ot.resolve(ee)))return"";for(var ne=1;ne<Rt.length&&47===Rt.charCodeAt(ne);++ne);for(var re=Rt.length,ie=re-ne,le=1;le<ee.length&&47===ee.charCodeAt(le);++le);for(var oe=ee.length-le,ue=ie<oe?ie:oe,ce=-1,fe=0;fe<=ue;++fe){if(fe===ue){if(oe>ue){if(47===ee.charCodeAt(le+fe))return ee.slice(le+fe+1);if(0===fe)return ee.slice(le+fe)}else ie>ue&&(47===Rt.charCodeAt(ne+fe)?ce=fe:0===fe&&(ce=0));break}var ge=Rt.charCodeAt(ne+fe);if(ge!==ee.charCodeAt(le+fe))break;47===ge&&(ce=fe)}var he="";for(fe=ne+ce+1;fe<=re;++fe)fe!==re&&47!==Rt.charCodeAt(fe)||(0===he.length?he+="..":he+="/..");return he.length>0?he+ee.slice(le+ce):(le+=ce,47===ee.charCodeAt(le)&&++le,ee.slice(le))},_makeLong:function(Rt){return Rt},dirname:function(Rt){if(e(Rt),0===Rt.length)return".";for(var Ot=Rt.charCodeAt(0),ee=47===Ot,ne=-1,re=!0,ie=Rt.length-1;ie>=1;--ie)if(47===(Ot=Rt.charCodeAt(ie))){if(!re){ne=ie;break}}else re=!1;return-1===ne?ee?"/":".":ee&&1===ne?"//":Rt.slice(0,ne)},basename:function(Rt,Ot){if(void 0!==Ot&&"string"!=typeof Ot)throw new TypeError('"ext" argument must be a string');e(Rt);var ee,ne=0,re=-1,ie=!0;if(void 0!==Ot&&Ot.length>0&&Ot.length<=Rt.length){if(Ot.length===Rt.length&&Ot===Rt)return"";var le=Ot.length-1,oe=-1;for(ee=Rt.length-1;ee>=0;--ee){var ue=Rt.charCodeAt(ee);if(47===ue){if(!ie){ne=ee+1;break}}else-1===oe&&(ie=!1,oe=ee+1),le>=0&&(ue===Ot.charCodeAt(le)?-1==--le&&(re=ee):(le=-1,re=oe))}return ne===re?re=oe:-1===re&&(re=Rt.length),Rt.slice(ne,re)}for(ee=Rt.length-1;ee>=0;--ee)if(47===Rt.charCodeAt(ee)){if(!ie){ne=ee+1;break}}else-1===re&&(ie=!1,re=ee+1);return-1===re?"":Rt.slice(ne,re)},extname:function(Rt){e(Rt);for(var Ot=-1,ee=0,ne=-1,re=!0,ie=0,le=Rt.length-1;le>=0;--le){var oe=Rt.charCodeAt(le);if(47!==oe)-1===ne&&(re=!1,ne=le+1),46===oe?-1===Ot?Ot=le:1!==ie&&(ie=1):-1!==Ot&&(ie=-1);else if(!re){ee=le+1;break}}return-1===Ot||-1===ne||0===ie||1===ie&&Ot===ne-1&&Ot===ee+1?"":Rt.slice(Ot,ne)},format:function(Rt){if(null===Rt||"object"!=typeof Rt)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Rt);return function(Rt,Ot){var ee=Ot.dir||Ot.root,ne=Ot.base||(Ot.name||"")+(Ot.ext||"");return ee?ee===Ot.root?ee+ne:ee+"/"+ne:ne}(0,Rt)},parse:function(Rt){e(Rt);var Ot={root:"",dir:"",base:"",ext:"",name:""};if(0===Rt.length)return Ot;var ee,ne=Rt.charCodeAt(0),re=47===ne;re?(Ot.root="/",ee=1):ee=0;for(var ie=-1,le=0,oe=-1,ue=!0,ce=Rt.length-1,fe=0;ce>=ee;--ce)if(47!==(ne=Rt.charCodeAt(ce)))-1===oe&&(ue=!1,oe=ce+1),46===ne?-1===ie?ie=ce:1!==fe&&(fe=1):-1!==ie&&(fe=-1);else if(!ue){le=ce+1;break}return-1===ie||-1===oe||0===fe||1===fe&&ie===oe-1&&ie===le+1?-1!==oe&&(Ot.base=Ot.name=0===le&&re?Rt.slice(1,oe):Rt.slice(le,oe)):(0===le&&re?(Ot.name=Rt.slice(1,ie),Ot.base=Rt.slice(1,oe)):(Ot.name=Rt.slice(le,ie),Ot.base=Rt.slice(le,oe)),Ot.ext=Rt.slice(ie,oe)),le>0?Ot.dir=Rt.slice(0,le-1):re&&(Ot.dir="/"),Ot},sep:"/",delimiter:":",win32:null,posix:null};Ot.posix=Ot,Rt.exports=Ot},3515:function(Rt,Ot,ee){Rt.exports=r;var ne=ee(9826).EventEmitter;function r(){ne.call(this)}ee(7523)(r,ne),r.Readable=ee(2762),r.Writable=ee(3726),r.Duplex=ee(884),r.Transform=ee(6756),r.PassThrough=ee(1390),r.finished=ee(2896),r.pipeline=ee(8460),r.Stream=r,r.prototype.pipe=function(Rt,Ot){var ee=this;function r(Ot){Rt.writable&&!1===Rt.write(Ot)&&ee.pause&&ee.pause()}function i(){ee.readable&&ee.resume&&ee.resume()}ee.on("data",r),Rt.on("drain",i),Rt._isStdio||Ot&&!1===Ot.end||(ee.on("end",o),ee.on("close",s));var re=!1;function o(){re||(re=!0,Rt.end())}function s(){re||(re=!0,"function"==typeof Rt.destroy&&Rt.destroy())}function u(Rt){if(d(),0===ne.listenerCount(this,"error"))throw Rt}function d(){ee.removeListener("data",r),Rt.removeListener("drain",i),ee.removeListener("end",o),ee.removeListener("close",s),ee.removeListener("error",u),Rt.removeListener("error",u),ee.removeListener("end",d),ee.removeListener("close",d),Rt.removeListener("close",d)}return ee.on("error",u),Rt.on("error",u),ee.on("end",d),ee.on("close",d),Rt.on("close",d),Rt.emit("pipe",ee),Rt}},1602:function(Rt){var Ot={};function n(Rt,ee,ne){ne||(ne=Error);var re=function(Rt){var Ot,ne;function r(Ot,ne,re){return Rt.call(this,function(Rt,Ot,ne){return"string"==typeof ee?ee:ee(Rt,Ot,ne)}(Ot,ne,re))||this}return ne=Rt,(Ot=r).prototype=Object.create(ne.prototype),Ot.prototype.constructor=Ot,Ot.__proto__=ne,r}(ne);re.prototype.name=ne.name,re.prototype.code=Rt,Ot[Rt]=re}function a(Rt,Ot){if(Array.isArray(Rt)){var ee=Rt.length;return Rt=Rt.map((function(Rt){return String(Rt)})),ee>2?"one of ".concat(Ot," ").concat(Rt.slice(0,ee-1).join(", "),", or ")+Rt[ee-1]:2===ee?"one of ".concat(Ot," ").concat(Rt[0]," or ").concat(Rt[1]):"of ".concat(Ot," ").concat(Rt[0])}return"of ".concat(Ot," ").concat(String(Rt))}n("ERR_INVALID_OPT_VALUE",(function(Rt,Ot){return'The value "'+Ot+'" is invalid for option "'+Rt+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(Rt,Ot,ee){var ne,re,ie,le;if("string"==typeof Ot&&("not ","not "===Ot.substr(0,4))?(ne="must not be",Ot=Ot.replace(/^not /,"")):ne="must be",function(Rt,Ot,ee){return(void 0===ee||ee>Rt.length)&&(ee=Rt.length)," argument"===Rt.substring(ee-9,ee)}(Rt))re="The ".concat(Rt," ").concat(ne," ").concat(a(Ot,"type"));else{var oe=("number"!=typeof le&&(le=0),le+1>(ie=Rt).length||-1===ie.indexOf(".",le)?"argument":"property");re='The "'.concat(Rt,'" ').concat(oe," ").concat(ne," ").concat(a(Ot,"type"))}return re+". Received type ".concat(typeof ee)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(Rt){return"The "+Rt+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(Rt){return"Cannot call "+Rt+" 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(Rt){return"Unknown encoding: "+Rt}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Rt.exports.codes=Ot},884:function(Rt,Ot,ee){var ne=Object.keys||function(Rt){var Ot=[];for(var ee in Rt)Ot.push(ee);return Ot};Rt.exports=u;var re=ee(2762),ie=ee(3726);ee(7523)(u,re);for(var le=ne(ie.prototype),oe=0;oe<le.length;oe++){var ue=le[oe];u.prototype[ue]||(u.prototype[ue]=ie.prototype[ue])}function u(Rt){if(!(this instanceof u))return new u(Rt);re.call(this,Rt),ie.call(this,Rt),this.allowHalfOpen=!0,Rt&&(!1===Rt.readable&&(this.readable=!1),!1===Rt.writable&&(this.writable=!1),!1===Rt.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||{env:{}}.nextTick(c,this)}function c(Rt){Rt.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(Rt){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=Rt,this._writableState.destroyed=Rt)}})},1390:function(Rt,Ot,ee){Rt.exports=r;var ne=ee(6756);function r(Rt){if(!(this instanceof r))return new r(Rt);ne.call(this,Rt)}ee(7523)(r,ne),r.prototype._transform=function(Rt,Ot,ee){ee(null,Rt)}},2762:function(Rt,Ot,ee){var ne;Rt.exports=w,w.ReadableState=S,ee(9826).EventEmitter;var re,i=function(Rt,Ot){return Rt.listeners(Ot).length},ie=ee(2611),le=ee(44).Buffer,oe=(void 0!==ee.g?ee.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},ue=ee(7199);re=ue&&ue.debuglog?ue.debuglog("stream"):function(){};var ce,fe,ge,he=ee(3791),pe=ee(2410),be=ee(1749).getHighWaterMark,ye=ee(1602).codes,Ee=ye.ERR_INVALID_ARG_TYPE,_e=ye.ERR_STREAM_PUSH_AFTER_EOF,Se=ye.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,428 bytes, line 1
1ED,we=ye.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ee(7523)(w,ie);var Re=pe.errorOrDestroy,Ne=["error","close","destroy","pause","resume"];function S(Rt,Ot,re){ne=ne||ee(884),Rt=Rt||{},"boolean"!=typeof re&&(re=Ot instanceof ne),this.objectMode=!!Rt.objectMode,re&&(this.objectMode=this.objectMode||!!Rt.readableObjectMode),this.highWaterMark=be(this,Rt,"readableHighWaterMark",re),this.buffer=new he,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!==Rt.emitClose,this.autoDestroy=!!Rt.autoDestroy,this.destroyed=!1,this.defaultEncoding=Rt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Rt.encoding&&(ce||(ce=ee(748).StringDecoder),this.decoder=new ce(Rt.encoding),this.encoding=Rt.encoding)}function w(Rt){if(ne=ne||ee(884),!(this instanceof w))return new w(Rt);var Ot=this instanceof ne;this._readableState=new S(Rt,this,Ot),this.readable=!0,Rt&&("function"==typeof Rt.read&&(this._read=Rt.read),"function"==typeof Rt.destroy&&(this._destroy=Rt.destroy)),ie.call(this)}function I(Rt,Ot,ee,ne,ie){re("readableAddChunk",Ot);var ue,ce=Rt._readableState;if(null===Ot)ce.reading=!1,function(Rt,Ot){if(re("onEofChunk"),!Ot.ended){if(Ot.decoder){var ee=Ot.decoder.end();ee&&ee.length&&(Ot.buffer.push(ee),Ot.length+=Ot.objectMode?1:ee.length)}Ot.ended=!0,Ot.sync?N(Rt):(Ot.needReadable=!1,Ot.emittedReadable||(Ot.emittedReadable=!0,C(Rt)))}}(Rt,ce);else if(ie||(ue=function(Rt,Ot){var ee,ne;return ne=Ot,le.isBuffer(ne)||ne instanceof oe||"string"==typeof Ot||void 0===Ot||Rt.objectMode||(ee=new Ee("chunk",["string","Buffer","Uint8Array"],Ot)),ee}(ce,Ot)),ue)Re(Rt,ue);else if(ce.objectMode||Ot&&Ot.length>0)if("string"==typeof Ot||ce.objectMode||Object.getPrototypeOf(Ot)===le.prototype||(Ot=function(Rt){return le.from(Rt)}(Ot)),ne)ce.endEmitted?Re(Rt,new we):k(Rt,ce,Ot,!0);else if(ce.ended)Re(Rt,new _e);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ee?(Ot=ce.decoder.write(Ot),ce.objectMode||0!==Ot.length?k(Rt,ce,Ot,!1):D(Rt,ce)):k(Rt,ce,Ot,!1)}else ne||(ce.reading=!1,D(Rt,ce));return!ce.ended&&(ce.length<ce.highWaterMark||0===ce.length)}function k(Rt,Ot,ee,ne){Ot.flowing&&0===Ot.length&&!Ot.sync?(Ot.awaitDrain=0,Rt.emit("data",ee)):(Ot.length+=Ot.objectMode?1:ee.length,ne?Ot.buffer.unshift(ee):Ot.buffer.push(ee),Ot.needReadable&&N(Rt)),D(Rt,Ot)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(Rt){this._readableState&&(this._readableState.destroyed=Rt)}}),w.prototype.destroy=pe.destroy,w.prototype._undestroy=pe.undestroy,w.prototype._destroy=function(Rt,Ot){Ot(Rt)},w.prototype.push=function(Rt,Ot){var ee,ne=this._readableState;return ne.objectMode?ee=!0:"string"==typeof Rt&&((Ot=Ot||ne.defaultEncoding)!==ne.encoding&&(Rt=le.from(Rt,Ot),Ot=""),ee=!0),I(this,Rt,Ot,!1,ee)},w.prototype.unshift=function(Rt){return I(this,Rt,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(Rt){ce||(ce=ee(748).StringDecoder);var Ot=new ce(Rt);this._readableState.decoder=Ot,this._readableState.encoding=this._readableState.decoder.encoding;for(var ne=this._readableState.buffer.head,re="";null!==ne;)re+=Ot.write(ne.data),ne=ne.next;return this._readableState.buffer.clear(),""!==re&&this._readableState.buffer.push(re),this._readableState.length=re.length,this};var Ce=1073741824;function R(Rt,Ot){return Rt<=0||0===Ot.length&&Ot.ended?0:Ot.objectMode?1:Rt!=Rt?Ot.flowing&&Ot.length?Ot.buffer.head.data.length:Ot.length:(Rt>Ot.highWaterMark&&(Ot.highWaterMark=function(Rt){return Rt>=Ce?Rt=Ce:(Rt--,Rt|=Rt>>>1,Rt|=Rt>>>2,Rt|=Rt>>>4,Rt|=Rt>>>8,Rt|=Rt>>>16,Rt++),Rt}(Rt)),Rt<=Ot.length?Rt:Ot.ended?Ot.length:(Ot.needReadable=!0,0))}function N(Rt){var Ot=Rt._readableState;re("emitReadable",Ot.needReadable,Ot.emittedReadable),Ot.needReadable=!1,Ot.emittedReadable||(re("emitReadable",Ot.flowing),Ot.emittedReadable=!0,{env:{}}.nextTick(C,Rt))}function C(Rt){var Ot=Rt._readableState;re("emitReadable_",Ot.destroyed,Ot.length,Ot.ended),Ot.destroyed||!Ot.length&&!Ot.ended||(Rt.emit("readable"),Ot.emittedReadable=!1),Ot.needReadable=!Ot.flowing&&!Ot.ended&&Ot.length<=Ot.highWaterMark,z(Rt)}function D(Rt,Ot){Ot.readingMore||(Ot.readingMore=!0,{env:{}}.nextTick(x,Rt,Ot))}function x(Rt,Ot){for(;!Ot.reading&&!Ot.ended&&(Ot.length<Ot.highWaterMark||Ot.flowing&&0===Ot.length);){var ee=Ot.length;if(re("maybeReadMore read 0"),Rt.read(0),ee===Ot.length)break}Ot.readingMore=!1}function M(Rt){var Ot=Rt._readableState;Ot.readableListening=Rt.listenerCount("readable")>0,Ot.resumeScheduled&&!Ot.paused?Ot.flowing=!0:Rt.listenerCount("data")>0&&Rt.resume()}function P(Rt){re("readable nexttick read 0"),Rt.read(0)}function O(Rt,Ot){re("resume",Ot.reading),Ot.reading||Rt.read(0),Ot.resumeScheduled=!1,Rt.emit("resume"),z(Rt),Ot.flowing&&!Ot.reading&&Rt.read(0)}function z(Rt){var Ot=Rt._readableState;for(re("flow",Ot.flowing);Ot.flowing&&null!==Rt.read(););}function L(Rt,Ot){return 0===Ot.length?null:(Ot.objectMode?ee=Ot.buffer.shift():!Rt||Rt>=Ot.length?(ee=Ot.decoder?Ot.buffer.join(""):1===Ot.buffer.length?Ot.buffer.first():Ot.buffer.concat(Ot.length),Ot.buffer.clear()):ee=Ot.buffer.consume(Rt,Ot.decoder),ee);var ee}function F(Rt){var Ot=Rt._readableState;re("endReadable",Ot.endEmitted),Ot.endEmitted||(Ot.ended=!0,{env:{}}.nextTick(U,Ot,Rt))}function U(Rt,Ot){if(re("endReadableNT",Rt.endEmitted,Rt.length),!Rt.endEmitted&&0===Rt.length&&(Rt.endEmitted=!0,Ot.readable=!1,Ot.emit("end"),Rt.autoDestroy)){var ee=Ot._writableState;(!ee||ee.autoDestroy&&ee.finished)&&Ot.destroy()}}function j(Rt,Ot){for(var ee=0,ne=Rt.length;ee<ne;ee++)if(Rt[ee]===Ot)return ee;return-1}w.prototype.read=function(Rt){re("read",Rt),Rt=parseInt(Rt,10);var Ot=this._readableState,ee=Rt;if(0!==Rt&&(Ot.emittedReadable=!1),0===Rt&&Ot.needReadable&&((0!==Ot.highWaterMark?Ot.length>=Ot.highWaterMark:Ot.length>0)||Ot.ended))return re("read: emitReadable",Ot.length,Ot.ended),0===Ot.length&&Ot.ended?F(this):N(this),null;if(0===(Rt=R(Rt,Ot))&&Ot.ended)return 0===Ot.length&&F(this),null;var ne,ie=Ot.needReadable;return re("need readable",ie),(0===Ot.length||Ot.length-Rt<Ot.highWaterMark)&&re("length less than watermark",ie=!0),Ot.ended||Ot.reading?re("reading or ended",ie=!1):ie&&(re("do read"),Ot.reading=!0,Ot.sync=!0,0===Ot.length&&(Ot.needReadable=!0),this._read(Ot.highWaterMark),Ot.sync=!1,Ot.reading||(Rt=R(ee,Ot))),null===(ne=Rt>0?L(Rt,Ot):null)?(Ot.needReadable=Ot.length<=Ot.highWaterMark,Rt=0):(Ot.length-=Rt,Ot.awaitDrain=0),0===Ot.length&&(Ot.ended||(Ot.needReadable=!0),ee!==Rt&&Ot.ended&&F(this)),null!==ne&&this.emit("data",ne),ne},w.prototype._read=function(Rt){Re(this,new Se("_read()"))},w.prototype.pipe=function(Rt,Ot){var ee=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=Rt;break;case 1:ne.pipes=[ne.pipes,Rt];break;default:ne.pipes.push(Rt)}ne.pipesCount+=1,re("pipe count=%d opts=%j",ne.pipesCount,Ot);var ie=Ot&&!1===Ot.end||Rt==={env:{}}.stdout||Rt==={env:{}}.stderr?m:o;function o(){re("onend"),Rt.end()}ne.endEmitted?{env:{}}.nextTick(ie):ee.once("end",ie),Rt.on("unpipe",(function e(Ot,ie){re("onunpipe"),Ot===ee&&ie&&!1===ie.hasUnpiped&&(ie.hasUnpiped=!0,re("cleanup"),Rt.removeListener("close",f),Rt.removeListener("finish",g),Rt.removeListener("drain",le),Rt.removeListener("error",c),Rt.removeListener("unpipe",e),ee.removeListener("end",o),ee.removeListener("end",m),ee.removeListener("data",d),oe=!0,!ne.awaitDrain||Rt._writableState&&!Rt._writableState.needDrain||le())}));var le=function(Rt){return function(){var Ot=Rt._readableState;re("pipeOnDrain",Ot.awaitDrain),Ot.awaitDrain&&Ot.awaitDrain--,0===Ot.awaitDrain&&i(Rt,"data")&&(Ot.flowing=!0,z(Rt))}}(ee);Rt.on("drain",le);var oe=!1;function d(Ot){re("ondata");var ie=Rt.write(Ot);re("dest.write",ie),!1===ie&&((1===ne.pipesCount&&ne.pipes===Rt||ne.pipesCount>1&&-1!==j(ne.pipes,Rt))&&!oe&&(re("false write response, pause",ne.awaitDrain),ne.awaitDrain++),ee.pause())}function c(Ot){re("onerror",Ot),m(),Rt.removeListener("error",c),0===i(Rt,"error")&&Re(Rt,Ot)}function f(){Rt.removeListener("finish",g),m()}function g(){re("onfinish"),Rt.removeListener("close",f),m()}function m(){re("unpipe"),ee.unpipe(Rt)}return ee.on("data",d),function(Rt,Ot,ee){if("function"==typeof Rt.prependListener)return Rt.prependListener(Ot,ee);Rt._events&&Rt._events[Ot]?Array.isArray(Rt._events[Ot])?Rt._events[Ot].unshift(ee):Rt._events[Ot]=[ee,Rt._events[Ot]]:Rt.on(Ot,ee)}(Rt,"error",c),Rt.once("close",f),Rt.once("finish",g),Rt.emit("pipe",ee),ne.flowing||(re("pipe resume"),ee.resume()),Rt},w.prototype.unpipe=function(Rt){var Ot=this._readableState,ee={hasUnpiped:!1};if(0===Ot.pipesCount)return this;if(1===Ot.pipesCount)return Rt&&Rt!==Ot.pipes||(Rt||(Rt=Ot.pipes),Ot.pipes=null,Ot.pipesCount=0,Ot.flowing=!1,Rt&&Rt.emit("unpipe",this,ee)),this;if(!Rt){var ne=Ot.pipes,re=Ot.pipesCount;Ot.pipes=null,Ot.pipesCount=0,Ot.flowing=!1;for(var ie=0;ie<re;ie++)ne[ie].emit("unpipe",this,{hasUnpiped:!1});return this}var le=j(Ot.pipes,Rt);return-1===le||(Ot.pipes.splice(le,1),Ot.pipesCount-=1,1===Ot.pipesCount&&(Ot.pipes=Ot.pipes[0]),Rt.emit("unpipe",this,ee)),this},w.prototype.on=function(Rt,Ot){var ee=ie.prototype.on.call(this,Rt,Ot),ne=this._readableState;return"data"===Rt?(ne.readableListening=this.listenerCount("readable")>0,!1!==ne.flowing&&this.resume()):"readable"===Rt&&(ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,re("on readable",ne.length,ne.reading),ne.length?N(this):ne.reading||{env:{}}.nextTick(P,this))),ee},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(Rt,Ot){var ee=ie.prototype.removeListener.call(this,Rt,Ot);return"readable"===Rt&&{env:{}}.nextTick(M,this),ee},w.prototype.removeAllListeners=function(Rt){var Ot=ie.prototype.removeAllListeners.apply(this,arguments);return"readable"!==Rt&&void 0!==Rt||{env:{}}.nextTick(M,this),Ot},w.prototype.resume=function(){var Rt=this._readableState;return Rt.flowing||(re("resume"),Rt.flowing=!Rt.readableListening,function(Rt,Ot){Ot.resumeScheduled||(Ot.resumeScheduled=!0,{env:{}}.nextTick(O,Rt,Ot))}(this,Rt)),Rt.paused=!1,this},w.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(Rt){var Ot=this,ee=this._readableState,ne=!1;for(var ie in Rt.on("end",(function(){if(re("wrapped end"),ee.decoder&&!ee.ended){var Rt=ee.decoder.end();Rt&&Rt.length&&Ot.push(Rt)}Ot.push(null)})),Rt.on("data",(function(ie){re("wrapped data"),ee.decoder&&(ie=ee.decoder.write(ie)),ee.objectMode&&null==ie||(ee.objectMode||ie&&ie.length)&&(Ot.push(ie)||(ne=!0,Rt.pause()))})),Rt)void 0===this[ie]&&"function"==typeof Rt[ie]&&(this[ie]=function(Ot){return function(){return Rt[Ot].apply(Rt,arguments)}}(ie));for(var le=0;le<Ne.length;le++)Rt.on(Ne[le],this.emit.bind(this,Ne[le]));return this._read=function(Ot){re("wrapped _read",Ot),ne&&(ne=!1,Rt.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===fe&&(fe=ee(5857
vendor: 16,096 bytes, line 1
1)),fe(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Rt){this._readableState&&(this._readableState.flowing=Rt)}}),w._fromList=L,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(Rt,Ot){return void 0===ge&&(ge=ee(3411)),ge(w,Rt,Ot)})},6756:function(Rt,Ot,ee){Rt.exports=d;var ne=ee(1602).codes,re=ne.ERR_METHOD_NOT_IMPLEMENTED,ie=ne.ERR_MULTIPLE_CALLBACK,le=ne.ERR_TRANSFORM_ALREADY_TRANSFORMING,oe=ne.ERR_TRANSFORM_WITH_LENGTH_0,ue=ee(884);function u(Rt,Ot){var ee=this._transformState;ee.transforming=!1;var ne=ee.writecb;if(null===ne)return this.emit("error",new ie);ee.writechunk=null,ee.writecb=null,null!=Ot&&this.push(Ot),ne(Rt);var re=this._readableState;re.reading=!1,(re.needReadable||re.length<re.highWaterMark)&&this._read(re.highWaterMark)}function d(Rt){if(!(this instanceof d))return new d(Rt);ue.call(this,Rt),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Rt&&("function"==typeof Rt.transform&&(this._transform=Rt.transform),"function"==typeof Rt.flush&&(this._flush=Rt.flush)),this.on("prefinish",c)}function c(){var Rt=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(Ot,ee){f(Rt,Ot,ee)}))}function f(Rt,Ot,ee){if(Ot)return Rt.emit("error",Ot);if(null!=ee&&Rt.push(ee),Rt._writableState.length)throw new oe;if(Rt._transformState.transforming)throw new le;return Rt.push(null)}ee(7523)(d,ue),d.prototype.push=function(Rt,Ot){return this._transformState.needTransform=!1,ue.prototype.push.call(this,Rt,Ot)},d.prototype._transform=function(Rt,Ot,ee){ee(new re("_transform()"))},d.prototype._write=function(Rt,Ot,ee){var ne=this._transformState;if(ne.writecb=ee,ne.writechunk=Rt,ne.writeencoding=Ot,!ne.transforming){var re=this._readableState;(ne.needTransform||re.needReadable||re.length<re.highWaterMark)&&this._read(re.highWaterMark)}},d.prototype._read=function(Rt){var Ot=this._transformState;null===Ot.writechunk||Ot.transforming?Ot.needTransform=!0:(Ot.transforming=!0,this._transform(Ot.writechunk,Ot.writeencoding,Ot.afterTransform))},d.prototype._destroy=function(Rt,Ot){ue.prototype._destroy.call(this,Rt,(function(Rt){Ot(Rt)}))}},3726:function(Rt,Ot,ee){function a(Rt){var Ot=this;this.next=null,this.entry=null,this.finish=function(){!function(Rt,Ot){var ee=Rt.entry;for(Rt.entry=null;ee;){var ne=ee.callback;Ot.pendingcb--,ne(void 0),ee=ee.next}Ot.corkedRequestsFree.next=Rt}(Ot,Rt)}}var ne;Rt.exports=w,w.WritableState=S;var re,ie={deprecate:ee(9e3)},le=ee(2611),oe=ee(44).Buffer,ue=(void 0!==ee.g?ee.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},ce=ee(2410),fe=ee(1749).getHighWaterMark,ge=ee(1602).codes,he=ge.ERR_INVALID_ARG_TYPE,pe=ge.ERR_METHOD_NOT_IMPLEMENTED,be=ge.ERR_MULTIPLE_CALLBACK,ye=ge.ERR_STREAM_CANNOT_PIPE,Ee=ge.ERR_STREAM_DESTROYED,_e=ge.ERR_STREAM_NULL_VALUES,Se=ge.ERR_STREAM_WRITE_AFTER_END,we=ge.ERR_UNKNOWN_ENCODING,Re=ce.errorOrDestroy;function v(){}function S(Rt,Ot,re){ne=ne||ee(884),Rt=Rt||{},"boolean"!=typeof re&&(re=Ot instanceof ne),this.objectMode=!!Rt.objectMode,re&&(this.objectMode=this.objectMode||!!Rt.writableObjectMode),this.highWaterMark=fe(this,Rt,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=!1===Rt.decodeStrings;this.decodeStrings=!ie,this.defaultEncoding=Rt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Rt){!function(Rt,Ot){var ee=Rt._writableState,ne=ee.sync,re=ee.writecb;if("function"!=typeof re)throw new be;if(function(Rt){Rt.writing=!1,Rt.writecb=null,Rt.length-=Rt.writelen,Rt.writelen=0}(ee),Ot)!function(Rt,Ot,ee,ne,re){--Ot.pendingcb,ee?({env:{}}.nextTick(re,ne),{env:{}}.nextTick(C,Rt,Ot),Rt._writableState.errorEmitted=!0,Re(Rt,ne)):(re(ne),Rt._writableState.errorEmitted=!0,Re(Rt,ne),C(Rt,Ot))}(Rt,ee,ne,Ot,re);else{var ie=R(ee)||Rt.destroyed;ie||ee.corked||ee.bufferProcessing||!ee.bufferedRequest||A(Rt,ee),ne?{env:{}}.nextTick(k,Rt,ee,ie,re):k(Rt,ee,ie,re)}}(Ot,Rt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Rt.emitClose,this.autoDestroy=!!Rt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function w(Rt){var Ot=this instanceof(ne=ne||ee(884));if(!Ot&&!re.call(w,this))return new w(Rt);this._writableState=new S(Rt,this,Ot),this.writable=!0,Rt&&("function"==typeof Rt.write&&(this._write=Rt.write),"function"==typeof Rt.writev&&(this._writev=Rt.writev),"function"==typeof Rt.destroy&&(this._destroy=Rt.destroy),"function"==typeof Rt.final&&(this._final=Rt.final)),le.call(this)}function I(Rt,Ot,ee,ne,re,ie,le){Ot.writelen=ne,Ot.writecb=le,Ot.writing=!0,Ot.sync=!0,Ot.destroyed?Ot.onwrite(new Ee("write")):ee?Rt._writev(re,Ot.onwrite):Rt._write(re,ie,Ot.onwrite),Ot.sync=!1}function k(Rt,Ot,ee,ne){ee||function(Rt,Ot){0===Ot.length&&Ot.needDrain&&(Ot.needDrain=!1,Rt.emit("drain"))}(Rt,Ot),Ot.pendingcb--,ne(),C(Rt,Ot)}function A(Rt,Ot){Ot.bufferProcessing=!0;var ee=Ot.bufferedRequest;if(Rt._writev&&ee&&ee.next){var ne=Ot.bufferedRequestCount,re=new Array(ne),ie=Ot.corkedRequestsFree;ie.entry=ee;for(var le=0,oe=!0;ee;)re[le]=ee,ee.isBuf||(oe=!1),ee=ee.next,le+=1;re.allBuffers=oe,I(Rt,Ot,!0,Ot.length,re,"",ie.finish),Ot.pendingcb++,Ot.lastBufferedRequest=null,ie.next?(Ot.corkedRequestsFree=ie.next,ie.next=null):Ot.corkedRequestsFree=new a(Ot),Ot.bufferedRequestCount=0}else{for(;ee;){var ue=ee.chunk,ce=ee.encoding,fe=ee.callback;if(I(Rt,Ot,!1,Ot.objectMode?1:ue.length,ue,ce,fe),ee=ee.next,Ot.bufferedRequestCount--,Ot.writing)break}null===ee&&(Ot.lastBufferedRequest=null)}Ot.bufferedRequest=ee,Ot.bufferProcessing=!1}function R(Rt){return Rt.ending&&0===Rt.length&&null===Rt.bufferedRequest&&!Rt.finished&&!Rt.writing}function N(Rt,Ot){Rt._final((function(ee){Ot.pendingcb--,ee&&Re(Rt,ee),Ot.prefinished=!0,Rt.emit("prefinish"),C(Rt,Ot)}))}function C(Rt,Ot){var ee=R(Ot);if(ee&&(function(Rt,Ot){Ot.prefinished||Ot.finalCalled||("function"!=typeof Rt._final||Ot.destroyed?(Ot.prefinished=!0,Rt.emit("prefinish")):(Ot.pendingcb++,Ot.finalCalled=!0,{env:{}}.nextTick(N,Rt,Ot)))}(Rt,Ot),0===Ot.pendingcb&&(Ot.finished=!0,Rt.emit("finish"),Ot.autoDestroy))){var ne=Rt._readableState;(!ne||ne.autoDestroy&&ne.endEmitted)&&Rt.destroy()}return ee}ee(7523)(w,le),S.prototype.getBuffer=function(){for(var Rt=this.bufferedRequest,Ot=[];Rt;)Ot.push(Rt),Rt=Rt.next;return Ot},function(){try{Object.defineProperty(S.prototype,"buffer",{get:ie.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Rt){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(re=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(Rt){return!!re.call(this,Rt)||this===w&&Rt&&Rt._writableState instanceof S}})):re=function(Rt){return Rt instanceof this},w.prototype.pipe=function(){Re(this,new ye)},w.prototype.write=function(Rt,Ot,ee){var ne,re=this._writableState,ie=!1,le=!re.objectMode&&(ne=Rt,oe.isBuffer(ne)||ne instanceof ue);return le&&!oe.isBuffer(Rt)&&(Rt=function(Rt){return oe.from(Rt)}(Rt)),"function"==typeof Ot&&(ee=Ot,Ot=null),le?Ot="buffer":Ot||(Ot=re.defaultEncoding),"function"!=typeof ee&&(ee=v),re.ending?function(Rt,Ot){var ee=new Se;Re(Rt,ee),{env:{}}.nextTick(Ot,ee)}(this,ee):(le||function(Rt,Ot,ee,ne){var re;return null===ee?re=new _e:"string"==typeof ee||Ot.objectMode||(re=new he("chunk",["string","Buffer"],ee)),!re||(Re(Rt,re),{env:{}}.nextTick(ne,re),!1)}(this,re,Rt,ee))&&(re.pendingcb++,ie=function(Rt,Ot,ee,ne,re,ie){if(!ee){var le=function(Rt,Ot,ee){return Rt.objectMode||!1===Rt.decodeStrings||"string"!=typeof Ot||(Ot=oe.from(Ot,ee)),Ot}(Ot,ne,re);ne!==le&&(ee=!0,re="buffer",ne=le)}var ue=Ot.objectMode?1:ne.length;Ot.length+=ue;var ce=Ot.length<Ot.highWaterMark;if(ce||(Ot.needDrain=!0),Ot.writing||Ot.corked){var fe=Ot.lastBufferedRequest;Ot.lastBufferedRequest={chunk:ne,encoding:re,isBuf:ee,callback:ie,next:null},fe?fe.next=Ot.lastBufferedRequest:Ot.bufferedRequest=Ot.lastBufferedRequest,Ot.bufferedRequestCount+=1}else I(Rt,Ot,!1,ue,ne,re,ie);return ce}(this,re,le,Rt,Ot,ee)),ie},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var Rt=this._writableState;Rt.corked&&(Rt.corked--,Rt.writing||Rt.corked||Rt.bufferProcessing||!Rt.bufferedRequest||A(this,Rt))},w.prototype.setDefaultEncoding=function(Rt){if("string"==typeof Rt&&(Rt=Rt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Rt+"").toLowerCase())>-1))throw new we(Rt);return this._writableState.defaultEncoding=Rt,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(Rt,Ot,ee){ee(new pe("_write()"))},w.prototype._writev=null,w.prototype.end=function(Rt,Ot,ee){var ne=this._writableState;return"function"==typeof Rt?(ee=Rt,Rt=null,Ot=null):"function"==typeof Ot&&(ee=Ot,Ot=null),null!=Rt&&this.write(Rt,Ot),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||function(Rt,Ot,ee){Ot.ending=!0,C(Rt,Ot),ee&&(Ot.finished?{env:{}}.nextTick(ee):Rt.once("finish",ee)),Ot.ended=!0,Rt.writable=!1}(this,ne,ee),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Rt){this._writableState&&(this._writableState.destroyed=Rt)}}),w.prototype.destroy=ce.destroy,w.prototype._undestroy=ce.undestroy,w.prototype._destroy=function(Rt,Ot){Ot(Rt)}},5857:function(Rt,Ot,ee){var ne;function r(Rt,Ot,ee){return(Ot=function(Rt){var Ot=function(Rt){if("object"!=typeof Rt||null===Rt)return Rt;var Ot=Rt[Symbol.toPrimitive];if(void 0!==Ot){var ee=Ot.call(Rt,"string");if("object"!=typeof ee)return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Rt)}(Rt);return"symbol"==typeof Ot?Ot:String(Ot)}(Ot))in Rt?Object.defineProperty(Rt,Ot,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Rt[Ot]=ee,Rt}var re=ee(2896),ie=Symbol("lastResolve"),le=Symbol("lastReject"),oe=Symbol("error"),ue=Symbol("ended"),ce=Symbol("lastPromise"),fe=Symbol("handlePromise"),ge=Symbol("stream");function g(Rt,Ot){return{value:Rt,done:Ot}}function m(Rt){var Ot=Rt[ie];if(null!==Ot){var ee=Rt[ge].read();null!==ee&&(Rt[ce]=null,Rt[ie]=null,Rt[le]=null,Ot(g(ee,!1)))}}function h(Rt){({env:{}}).nextTick(m,Rt)}var he=Object.getPrototypeOf((function(){})),pe=Object.setPrototypeOf((r(ne={get stream(){return this[ge]},next:function(){var Rt=this,Ot=this[oe];if(null!==Ot)return Promise.reject(Ot);if(this[ue])return Promise.resolve(g(void 0,!0));if(this[ge].destroyed)return new Promise((function(Ot,ee){({env:{}}).nextTick((function(){Rt[oe]?ee(Rt[oe]):Ot(g(void 0,!0))}))}));var ee,ne=this[ce];if(ne)ee=new Promise(function(Rt,Ot){return function(ee,ne){Rt.then((function(){Ot[ue]?ee(g(void 0,!0)):Ot[fe](ee,ne)}),ne)}}(ne,this));else{var re=this[ge].read();if(null!==re)return Promise.resolve(g(re,!1));ee=new Promise(this[fe])}return this[ce]=ee,ee}},Symbol.asyncIterator,(function(){return this})),r(ne,"return",(function(){var Rt=this;return new Promise((function(Ot,ee){Rt[ge].destroy(null,(function(Rt){Rt?ee(Rt):Ot(g(void 0,!0))}))}))})),ne),he);Rt.exports=function(Rt){var Ot,ee=Object.create(pe,(r(Ot={},ge,{value:Rt,writable:!0}),r(Ot,ie,{value:null,writable:!0}),r(Ot,le,{value:null,writable:!0}),r(Ot,oe,{value:null,writable:!0}),r(Ot,ue,{value:Rt._readableState.endEmitted,writable:!0}),r(Ot,fe,{value:function(Rt,Ot){var ne=ee[ge].read();ne?(ee[ce]=null,ee[ie]=null,ee[le]=null,Rt(g(ne,!1))):(ee[ie]=Rt,ee[le]=Ot)},writable:!0}),Ot));return ee[ce]=null,re(Rt,(function(Rt){if(Rt&&"ERR_STREAM_PREMATURE_CLOSE"!==Rt.code){var Ot=ee[le];return null!==Ot&&(ee[ce]=null,ee[ie]=null,ee[le]=null,Ot(Rt)),void(ee[oe]=Rt)}var ne=ee[ie];null!==ne&&(ee[ce]=null,ee[ie]=null,ee[le]=null,ne(g(void 0,!0))),ee[ue]=!0})),Rt.on("readable",h.bind(null,ee)),ee}},3791:function(Rt,Ot,ee){function a(Rt,Ot){var ee=Object.keys(Rt);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(Rt);Ot&&(ne=ne.filter((function(Ot){return Object.getOwnPropertyDescriptor(Rt,Ot).enumerable}))),ee.push.apply(ee,ne)}return ee}function r(Rt){for(var Ot=1;Ot<arguments.length;Ot++){var ee=null!=arguments[Ot]?arguments[Ot]:{};Ot%2?a(Object(ee),!0).forEach((function(Ot){i(Rt,Ot,ee[Ot])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Rt,Object.getOwnPropertyDescriptors(ee)):a(Object(ee)).forEach((function(Ot){Object.defineProperty(Rt,Ot,Object.getOwnPropertyDescriptor(ee,Ot))}))}return Rt}function i(Rt,Ot,ee){return(Ot=o(Ot))in Rt?Object.defineProperty(Rt,Ot,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Rt[Ot]=ee,Rt}function o(Rt){var Ot=function(Rt){if("object"!=typeof Rt||null===Rt)return Rt;var Ot=Rt[Symbol.toPrimitive];if(void 0!==Ot){var ee=Ot.call(Rt,"string");if("object"!=typeof ee)return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Rt)}(Rt);return"symbol"==typeof Ot?Ot:String(Ot)}var ne=ee(44).Buffer,re=ee(3779).inspect,ie=re&&re.custom||"inspect";Rt.exports=function(){function t(){!function(Rt,Ot){if(!(Rt instanceof Ot))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var Rt,Ot;return Rt=t,(Ot=[{key:"push",value:function(Rt){var Ot={data:Rt,next:null};this.length>0?this.tail.next=Ot:this.head=Ot,this.tail=Ot,++this.length}},{key:"unshift",value:function(Rt){var Ot={data:Rt,next:this.head};0===this.length&&(this.tail=Ot),this.head=Ot,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Rt=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,Rt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Rt){if(0===this.length)return"";for(var Ot=this.head,ee=""+Ot.data;Ot=Ot.next;)ee+=Rt+Ot.data;return ee}},{key:"concat",value:function(Rt){if(0===this.length)return ne.alloc(0);for(var Ot,ee,re,ie=ne.allocUnsafe(Rt>>>0),le=this.head,oe=0;le;)Ot=le.data,ee=ie,re=oe,ne.prototype.copy.call(Ot,ee,re),oe+=le.data.length,le=le.next;return ie}},{key:"consume",value:function(Rt,Ot){var ee;return Rt<this.head.data.length?(ee=this.head.data.slice(0,Rt),this.head.data=this.head.data.slice(Rt)):ee=Rt===this.head.data.length?this.shift():Ot?this._getString(Rt):this._getBuffer(Rt),ee}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Rt){var Ot=this.head,ee=1,ne=Ot.data;for(Rt-=ne.length;Ot=Ot.next;){var re=Ot.data,ie=Rt>re.length?re.length:Rt;if(ie===re.length?ne+=re:ne+=re.slice(0,Rt),0==(Rt-=ie)){ie===re.length?(++ee,Ot.next?this.head=Ot.next:this.head=this.tail=null):(this.head=Ot,Ot.data=re.slice(ie));break}++ee}return this.length-=ee,ne}},{key:"_getBuffer",value:function(Rt){var Ot=ne.allocUnsafe(Rt),ee=this.head,re=1;for(ee.data.copy(Ot),Rt-=ee.data.length;ee=ee.next;){var ie=ee.data,le=Rt>
1ie.length?ie.length:Rt;if(ie.copy(Ot,Ot.length-Rt,0,le),0==(Rt-=le)){le===ie.length?(++re,ee.next?this.head=ee.next:this.head=this.tail=null):(this.head=ee,ee.data=ie.slice(le));break}++re}return this.length-=re,Ot}},{key:ie,value:function(Rt,Ot){return re(this,r(r({},Ot),{},{depth:0,customInspect:!1}))}}])&&function l(Rt,Ot){for(var ee=0;ee<Ot.length;ee++){var ne=Ot[ee];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(Rt,o(ne.key),ne)}}(Rt.prototype,Ot),Object.defineProperty(Rt,"prototype",{writable:!1}),t}()},2410:function(Rt){function e(Rt,Ot){a(Rt,Ot),n(Rt)}function n(Rt){Rt._writableState&&!Rt._writableState.emitClose||Rt._readableState&&!Rt._readableState.emitClose||Rt.emit("close")}function a(Rt,Ot){Rt.emit("error",Ot)}Rt.exports={destroy:function(Rt,Ot){var ee=this,ne=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ne||re?(Ot?Ot(Rt):Rt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,{env:{}}.nextTick(a,this,Rt)):{env:{}}.nextTick(a,this,Rt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Rt||null,(function(Rt){!Ot&&Rt?ee._writableState?ee._writableState.errorEmitted?{env:{}}.nextTick(n,ee):(ee._writableState.errorEmitted=!0,{env:{}}.nextTick(e,ee,Rt)):{env:{}}.nextTick(e,ee,Rt):Ot?({env:{}}.nextTick(n,ee),Ot(Rt)):{env:{}}.nextTick(n,ee)})),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(Rt,Ot){var ee=Rt._readableState,ne=Rt._writableState;ee&&ee.autoDestroy||ne&&ne.autoDestroy?Rt.destroy(Ot):Rt.emit("error",Ot)}}},2896:function(Rt,Ot,ee){var ne=ee(1602).codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}Rt.exports=function t(Rt,Ot,ee){if("function"==typeof Ot)return t(Rt,null,Ot);Ot||(Ot={}),ee=function(Rt){var Ot=!1;return function(){if(!Ot){Ot=!0;for(var ee=arguments.length,ne=new Array(ee),re=0;re<ee;re++)ne[re]=arguments[re];Rt.apply(this,ne)}}}(ee||r);var re=Ot.readable||!1!==Ot.readable&&Rt.readable,ie=Ot.writable||!1!==Ot.writable&&Rt.writable,s=function(){Rt.writable||d()},le=Rt._writableState&&Rt._writableState.finished,d=function(){ie=!1,le=!0,re||ee.call(Rt)},oe=Rt._readableState&&Rt._readableState.endEmitted,f=function(){re=!1,oe=!0,ie||ee.call(Rt)},g=function(Ot){ee.call(Rt,Ot)},m=function(){var Ot;return re&&!oe?(Rt._readableState&&Rt._readableState.ended||(Ot=new ne),ee.call(Rt,Ot)):ie&&!le?(Rt._writableState&&Rt._writableState.ended||(Ot=new ne),ee.call(Rt,Ot)):void 0},h=function(){Rt.req.on("finish",d)};return function(Rt){return Rt.setHeader&&"function"==typeof Rt.abort}(Rt)?(Rt.on("complete",d),Rt.on("abort",m),Rt.req?h():Rt.on("request",h)):ie&&!Rt._writableState&&(Rt.on("end",s),Rt.on("close",s)),Rt.on("end",f),Rt.on("finish",d),!1!==Ot.error&&Rt.on("error",g),Rt.on("close",m),function(){Rt.removeListener("complete",d),Rt.removeListener("abort",m),Rt.removeListener("request",h),Rt.req&&Rt.req.removeListener("finish",d),Rt.removeListener("end",s),Rt.removeListener("close",s
vendor: 12,486 bytes, line 1
1),Rt.removeListener("finish",d),Rt.removeListener("end",f),Rt.removeListener("error",g),Rt.removeListener("close",m)}}},3411:function(Rt){Rt.exports=function(){throw new Error("Readable.from is not available in the browser")}},8460:function(Rt,Ot,ee){var ne,re=ee(1602).codes,ie=re.ERR_MISSING_ARGS,le=re.ERR_STREAM_DESTROYED;function o(Rt){if(Rt)throw Rt}function s(Rt){Rt()}function u(Rt,Ot){return Rt.pipe(Ot)}Rt.exports=function(){for(var Rt=arguments.length,Ot=new Array(Rt),re=0;re<Rt;re++)Ot[re]=arguments[re];var oe,ue=function(Rt){return Rt.length?"function"!=typeof Rt[Rt.length-1]?o:Rt.pop():o}(Ot);if(Array.isArray(Ot[0])&&(Ot=Ot[0]),Ot.length<2)throw new ie("streams");var ce=Ot.map((function(Rt,re){var ie=re<Ot.length-1;return function(Rt,Ot,re,ie){ie=function(Rt){var Ot=!1;return function(){Ot||(Ot=!0,Rt.apply(void 0,arguments))}}(ie);var oe=!1;Rt.on("close",(function(){oe=!0})),void 0===ne&&(ne=ee(2896)),ne(Rt,{readable:Ot,writable:re},(function(Rt){if(Rt)return ie(Rt);oe=!0,ie()}));var ue=!1;return function(Ot){if(!oe&&!ue)return ue=!0,function(Rt){return Rt.setHeader&&"function"==typeof Rt.abort}(Rt)?Rt.abort():"function"==typeof Rt.destroy?Rt.destroy():void ie(Ot||new le("pipe"))}}(Rt,ie,re>0,(function(Rt){oe||(oe=Rt),Rt&&ce.forEach(s),ie||(ce.forEach(s),ue(oe))}))}));return Ot.reduce(u)}},1749:function(Rt,Ot,ee){var ne=ee(1602).codes.ERR_INVALID_OPT_VALUE;Rt.exports={getHighWaterMark:function(Rt,Ot,ee,re){var ie=function(Rt,Ot,ee){return null!=Rt.highWaterMark?Rt.highWaterMark:Ot?Rt[ee]:null}(Ot,re,ee);if(null!=ie){if(!isFinite(ie)||Math.floor(ie)!==ie||ie<0)throw new ne(re?ee:"highWaterMark",ie);return Math.floor(ie)}return Rt.objectMode?16:16384}}},2611:function(Rt,Ot,ee){Rt.exports=ee(9826).EventEmitter},748:function(Rt,Ot,ee){var ne=ee(4598).Buffer,re=ne.isEncoding||function(Rt){switch((Rt=""+Rt)&&Rt.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(Rt){var Ot;switch(this.encoding=function(Rt){var Ot=function(Rt){if(!Rt)return"utf8";for(var Ot;;)switch(Rt){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 Rt;default:if(Ot)return;Rt=(""+Rt).toLowerCase(),Ot=!0}}(Rt);if("string"!=typeof Ot&&(ne.isEncoding===re||!re(Rt)))throw new Error("Unknown encoding: "+Rt);return Ot||Rt}(Rt),this.encoding){case"utf16le":this.text=s,this.end=u,Ot=4;break;case"utf8":this.fillLast=o,Ot=4;break;case"base64":this.text=d,this.end=c,Ot=3;break;default:return this.write=f,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=ne.allocUnsafe(Ot)}function l(Rt){return Rt<=127?0:Rt>>5==6?2:Rt>>4==14?3:Rt>>3==30?4:Rt>>6==2?-1:-2}function o(Rt){var Ot=this.lastTotal-this.lastNeed,ee=function(Rt,Ot){if(128!=(192&Ot[0]))return Rt.lastNeed=0,"�";if(Rt.lastNeed>1&&Ot.length>1){if(128!=(192&Ot[1]))return Rt.lastNeed=1,"�";if(Rt.lastNeed>2&&Ot.length>2&&128!=(192&Ot[2]))return Rt.lastNeed=2,"�"}}(this,Rt);return void 0!==ee?ee:this.lastNeed<=Rt.length?(Rt.copy(this.lastChar,Ot,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Rt.copy(this.lastChar,Ot,0,Rt.length),void(this.lastNeed-=Rt.length))}function s(Rt,Ot){if((Rt.length-Ot)%2==0){var ee=Rt.toString("utf16le",Ot);if(ee){var ne=ee.charCodeAt(ee.length-1);if(ne>=55296&&ne<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Rt[Rt.length-2],this.lastChar[1]=Rt[Rt.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Rt[Rt.length-1],Rt.toString("utf16le",Ot,Rt.length-1)}function u(Rt){var Ot=Rt&&Rt.length?this.write(Rt):"";if(this.lastNeed){var ee=this.lastTotal-this.lastNeed;return Ot+this.lastChar.toString("utf16le",0,ee)}return Ot}function d(Rt,Ot){var ee=(Rt.length-Ot)%3;return 0===ee?Rt.toString("base64",Ot):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Rt[Rt.length-1]:(this.lastChar[0]=Rt[Rt.length-2],this.lastChar[1]=Rt[Rt.length-1]),Rt.toString("base64",Ot,Rt.length-ee))}function c(Rt){var Ot=Rt&&Rt.length?this.write(Rt):"";return this.lastNeed?Ot+this.lastChar.toString("base64",0,3-this.lastNeed):Ot}function f(Rt){return Rt.toString(this.encoding)}function g(Rt){return Rt&&Rt.length?this.write(Rt):""}Ot.StringDecoder=i,i.prototype.write=function(Rt){if(0===Rt.length)return"";var Ot,ee;if(this.lastNeed){if(void 0===(Ot=this.fillLast(Rt)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee<Rt.length?Ot?Ot+this.text(Rt,ee):this.text(Rt,ee):Ot||""},i.prototype.end=function(Rt){var Ot=Rt&&Rt.length?this.write(Rt):"";return this.lastNeed?Ot+"�":Ot},i.prototype.text=function(Rt,Ot){var ee=function(Rt,Ot,ee){var ne=Ot.length-1;if(ne<ee)return 0;var re=l(Ot[ne]);return re>=0?(re>0&&(Rt.lastNeed=re-1),re):--ne<ee||-2===re?0:(re=l(Ot[ne]))>=0?(re>0&&(Rt.lastNeed=re-2),re):--ne<ee||-2===re?0:(re=l(Ot[ne]))>=0?(re>0&&(2===re?re=0:Rt.lastNeed=re-3),re):0}(this,Rt,Ot);if(!this.lastNeed)return Rt.toString("utf8",Ot);this.lastTotal=ee;var ne=Rt.length-(ee-this.lastNeed);return Rt.copy(this.lastChar,0,ne),Rt.toString("utf8",Ot,ne)},i.prototype.fillLast=function(Rt){if(this.lastNeed<=Rt.length)return Rt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Rt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Rt.length),this.lastNeed-=Rt.length}},4598:function(Rt,Ot,ee){var ne=ee(44),re=ne.Buffer;function i(Rt,Ot){for(var ee in Rt)Ot[ee]=Rt[ee]}function l(Rt,Ot,ee){return re(Rt,Ot,ee)}re.from&&re.alloc&&re.allocUnsafe&&re.allocUnsafeSlow?Rt.exports=ne:(i(ne,Ot),Ot.Buffer=l),i(re,l),l.from=function(Rt,Ot,ee){if("number"==typeof Rt)throw new TypeError("Argument must not be a number");return re(Rt,Ot,ee)},l.alloc=function(Rt,Ot,ee){if("number"!=typeof Rt)throw new TypeError("Argument must be a number");var ne=re(Rt);return void 0!==Ot?"string"==typeof ee?ne.fill(Ot,ee):ne.fill(Ot):ne.fill(0),ne},l.allocUnsafe=function(Rt){if("number"!=typeof Rt)throw new TypeError("Argument must be a number");return re(Rt)},l.allocUnsafeSlow=function(Rt){if("number"!=typeof Rt)throw new TypeError("Argument must be a number");return ne.SlowBuffer(Rt)}},8571:function(Rt,Ot,ee){var ne;!function(re,ie){var le="function",oe="undefined",ue="object",ce="string",fe="major",ge="model",he="name",pe="type",be="vendor",ye="version",Ee="architecture",_e="console",Se="mobile",we="tablet",Re="smarttv",Ne="wearable",Ce="embedded",De="Amazon",xe="Apple",Me="ASUS",Oe="BlackBerry",Pe="Browser",Fe="Chrome",Ue="Firefox",je="Google",qe="Huawei",Ge="LG",We="Microsoft",ln="Motorola",on="Opera",sn="Samsung",un="Sharp",dn="Sony",cn="Xiaomi",fn="Zebra",gn="Facebook",bn="Chromium OS",yn="Mac OS",H=function(Rt){for(var Ot={},ee=0;ee<Rt.length;ee++)Ot[Rt[ee].toUpperCase()]=Rt[ee];return Ot},Y=function(Rt,Ot){return typeof Rt===ce&&-1!==V(Ot).indexOf(V(Rt))},V=function(Rt){return Rt.toLowerCase()},K=function(Rt,Ot){if(typeof Rt===ce)return Rt=Rt.replace(/^\s\s*/,""),typeof Ot===oe?Rt:Rt.substring(0,500)},W=function(Rt,Ot){for(var ee,ne,re,oe,ce,fe,ge=0;ge<Ot.length&&!ce;){var he=Ot[ge],pe=Ot[ge+1];for(ee=ne=0;ee<he.length&&!ce&&he[ee];)if(ce=he[ee++].exec(Rt))for(re=0;re<pe.length;re++)fe=ce[++ne],typeof(oe=pe[re])===ue&&oe.length>0?2===oe.length?typeof oe[1]==le?this[oe[0]]=oe[1].call(this,fe):this[oe[0]]=oe[1]:3===oe.length?typeof oe[1]!==le||oe[1].exec&&oe[1].test?this[oe[0]]=fe?fe.replace(oe[1],oe[2]):ie:this[oe[0]]=fe?oe[1].call(this,fe,oe[2]):ie:4===oe.length&&(this[oe[0]]=fe?oe[3].call(this,fe.replace(oe[1],oe[2])):ie):this[oe]=fe||ie;ge+=2}},$=function(Rt,Ot){for(var ee in Ot)if(typeof Ot[ee]===ue&&Ot[ee].length>0){for(var ne=0;ne<Ot[ee].length;ne++)if(Y(Ot[ee][ne],Rt))return"?"===ee?ie:ee}else if(Y(Ot[ee],Rt))return"?"===ee?ie:ee;return Rt},En={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"},Tn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ye,[he,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ye,[he,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[he,ye],[/opios[\/ ]+([\w\.]+)/i],[ye,[he,on+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[ye,[he,on+" GX"]],[/\bopr\/([\w\.]+)/i],[ye,[he,on]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ye,[he,"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],[he,ye],[/\bddg\/([\w\.]+)/i],[ye,[he,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ye,[he,"UC"+Pe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ye,[he,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ye,[he,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ye,[he,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ye,[he,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ye,[he,"Smart Lenovo "+Pe]],[/(avast|avg)\/([\w\.]+)/i],[[he,/(.+)/,"$1 Secure "+Pe],ye],[/\bfocus\/([\w\.]+)/i],[ye,[he,Ue+" Focus"]],[/\bopt\/([\w\.]+)/i],[ye,[he,on+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ye,[he,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ye,[he,"Dolphin"]],[/coast\/([\w\.]+)/i],[ye,[he,on+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ye,[he,"MIUI "+Pe]],[/fxios\/([-\w\.]+)/i],[ye,[he,Ue]],[/\bqihu|(qi?ho?o?|360)browser/i],[[he,"360 "+Pe]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[he,/(.+)/,"$1 "+Pe],ye],[/samsungbrowser\/([\w\.]+)/i],[ye,[he,sn+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[he,/_/g," "],ye],[/metasr[\/ ]?([\d\.]+)/i],[ye,[he,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[he,"Sogou Mobile"],ye],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[he,ye],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[he],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[he,gn],ye],[/(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,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[he,ye],[/\bgsa\/([\w\.]+) .*safari\//i],[ye,[he,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ye,[he,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[ye,[he,Fe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[he,Fe+" WebView"],ye],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ye,[he,"Android "+Pe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[he,ye],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[ye,[he,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[ye,he],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[he,[ye,$,{"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],[he,ye],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[he,"Netscape"],ye],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ye,[he,Ue+" 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],[he,ye],[/(cobalt)\/([\w\.]+)/i],[he,[ye,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[Ee,"amd64"]],[/(ia32(?=;))/i],[[Ee,V]],[/((?:i[346]|x)86)[;\)]/i],[[Ee,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Ee,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Ee,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Ee,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Ee,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[Ee,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
1|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Ee,V]]],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],[ge,[be,sn],[pe,we]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[ge,[be,sn],[pe,Se]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[ge,[be,xe],[pe,Se]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[ge,[be,xe],[pe,we]],[/(macintosh);/i],[ge,[be,xe]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[ge,[be,un],[pe,Se]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[ge,[be,qe],[pe,we]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[ge,[be,qe],[pe,Se]],[/\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],[[ge,/_/g," "],[be,cn],[pe,Se]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[ge,/_/g," "],[be,cn],[pe,we]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[ge,[be,"OPPO"],[pe,Se]],[/\b(opd2\d{3}a?) bui/i],[ge,[be,"OPPO"],[pe,we]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[ge,[be,"Vivo"],[pe,Se]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[ge,[be,"Realme"],[pe,Se]],[/\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],[ge,[be,ln],[pe,Se]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[ge,[be,ln],[pe,we]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[ge,[be,Ge],[pe,we]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[ge,[be,Ge],[pe,Se]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[ge,[be,"Lenovo"],[pe,we]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[ge,/_/g," "],[be,"Nokia"],[pe,Se]],[/(pixel c)\b/i],[ge,[be,je],[pe,we]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[ge,[be,je],[pe,Se]],[/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],[ge,[be,dn],[pe,Se]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[ge,"Xperia Tablet"],[be,dn],[pe,we]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[ge,[be,"OnePlus"],[pe,Se]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[ge,[be,De],[pe,we]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[ge,/(.+)/g,"Fire Phone $1"],[be,De],[pe,Se]],[/(playbook);[-\w\),; ]+(rim)/i],[ge,be,[pe,we]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[ge,[be,Oe],[pe,Se]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[ge,[be,Me],[pe,we]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[ge,[be,Me],[pe,Se]],[/(nexus 9)/i],[ge,[be,"HTC"],[pe,we]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[be,[ge,/_/g," "],[pe,Se]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[ge,[be,"Acer"],[pe,we]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[ge,[be,"Meizu"],[pe,Se]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[ge,[be,"Ulefone"],[pe,Se]],[/(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],[be,ge,[pe,Se]],[/(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],[be,ge,[pe,we]],[/(surface duo)/i],[ge,[be,We],[pe,we]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[ge,[be,"Fairphone"],[pe,Se]],[/(u304aa)/i],[ge,[be,"AT&T"],[pe,Se]],[/\bsie-(\w*)/i],[ge,[be,"Siemens"],[pe,Se]],[/\b(rct\w+) b/i],[ge,[be,"RCA"],[pe,we]],[/\b(venue[\d ]{2,7}) b/i],[ge,[be,"Dell"],[pe,we]],[/\b(q(?:mv|ta)\w+) b/i],[ge,[be,"Verizon"],[pe,we]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[ge,[be,"Barnes & Noble"],[pe,we]],[/\b(tm\d{3}\w+) b/i],[ge,[be,"NuVision"],[pe,we]],[/\b(k88) b/i],[ge,[be,"ZTE"],[pe,we]],[/\b(nx\d{3}j) b/i],[ge,[be,"ZTE"],[pe,Se]],[/\b(gen\d{3}) b.+49h/i],[ge,[be,"Swiss"],[pe,Se]],[/\b(zur\d{3}) b/i],[ge,[be,"Swiss"],[pe,we]],[/\b((zeki)?tb.*\b) b/i],[ge,[be,"Zeki"],[pe,we]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[be,"Dragon Touch"],ge,[pe,we]],[/\b(ns-?\w{0,9}) b/i],[ge,[be,"Insignia"],[pe,we]],[/\b((nxa|next)-?\w{0,9}) b/i],[ge,[be,"NextBook"],[pe,we]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[be,"Voice"],ge,[pe,Se]],[/\b(lvtel\-)?(v1[12]) b/i],[[be,"LvTel"],ge,[pe,Se]],[/\b(ph-1) /i],[ge,[be,"Essential"],[pe,Se]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[ge,[be,"Envizen"],[pe,we]],[/\b(trio[-\w\. ]+) b/i],[ge,[be,"MachSpeed"],[pe,we]],[/\btu_(1491) b/i],[ge,[be,"Rotor"],[pe,we]],[/(shield[\w ]+) b/i],[ge,[be,"Nvidia"],[pe,we]],[/(sprint) (\w+)/i],[be,ge,[pe,Se]],[/(kin\.[onetw]{3})/i],[[ge,/\./g," "],[be,We],[pe,Se]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[ge,[be,fn],[pe,we]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[ge,[be,fn],[pe,Se]],[/smart-tv.+(samsung)/i],[be,[pe,Re]],[/hbbtv.+maple;(\d+)/i],[[ge,/^/,"SmartTV"],[be,sn],[pe,Re]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[be,Ge],[pe,Re]],[/(apple) ?tv/i],[be,[ge,xe+" TV"],[pe,Re]],[/crkey/i],[[ge,Fe+"cast"],[be,je],[pe,Re]],[/droid.+aft(\w+)( bui|\))/i],[ge,[be,De],[pe,Re]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[ge,[be,un],[pe,Re]],[/(bravia[\w ]+)( bui|\))/i],[ge,[be,dn],[pe,Re]],[/(mitv-\w{5}) bui/i],[ge,[be,cn],[pe,Re]],[/Hbbtv.*(technisat) (.*);/i],[be,ge,[pe,Re]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[be,K],[ge,K],[pe,Re]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[pe,Re]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[be,ge,[pe,_e]],[/droid.+; (shield) bui/i],[ge,[be,"Nvidia"],[pe,_e]],[/(playstation [345portablevi]+)/i],[ge,[be,dn],[pe,_e]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[ge,[be,We],[pe,_e]],[/((pebble))app/i],[be,ge,[pe,Ne]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[ge,[be,xe],[pe,Ne]],[/droid.+; (glass) \d/i],[ge,[be,je],[pe,Ne]],[/droid.+; (wt63?0{2,3})\)/i],[ge,[be,fn],[pe,Ne]],[/(quest( \d| pro)?)/i],[ge,[be,gn],[pe,Ne]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[be,[pe,Ce]],[/(aeobc)\b/i],[ge,[be,De],[pe,Ce]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[ge,[pe,Se]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[ge,[pe,we]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[pe,we]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[pe,Se]],[/(android[-\w\. ]{0,9});.+buil/i],[ge,[be,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ye,[he,"
1EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ye,[he,"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],[he,ye],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ye,he]],os:[[/microsoft (windows) (vista|xp)/i],[he,ye],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[he,[ye,$,En]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[ye,$,En],[he,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[ye,/_/g,"."],[he,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[he,yn],[ye,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[ye,he],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[he,ye],[/\(bb(10);/i],[ye,[he,Oe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[ye,[he,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ye,[he,Ue+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[ye,[he,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ye,[he,"watchOS"]],[/crkey\/([\d\.]+)/i],[ye,[he,Fe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[he,bn],ye],[/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],[he,ye],[/(sunos) ?([\w\.\d]*)/i],[[he,"Solaris"],ye],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[he,ye]]},Z=function(Rt,Ot){if(typeof Rt===ue&&(Ot=Rt,Rt=ie),!(this instanceof Z))return new Z(Rt,Ot).getResult();var ee=typeof re!==oe&&re.navigator?re.navigator:ie,ne=Rt||(ee&&ee.userAgent?ee.userAgent:""),_e=ee&&ee.userAgentData?ee.userAgentData:ie,Re=Ot?function(Rt,Ot){var ee={};for(var ne in Rt)Ot[ne]&&Ot[ne].length%2==0?ee[ne]=Ot[ne].concat(Rt[ne]):ee[ne]=Rt[ne];return ee}(Tn,Ot):Tn,Ne=ee&&ee.userAgent==ne;return this.getBrowser=function(){var Rt,Ot={};return Ot[he]=ie,Ot[ye]=ie,W.call(Ot,ne,Re.browser),Ot[fe]=typeof(Rt=Ot[ye])===ce?Rt.replace(/[^\d\.]/g,"").split(".")[0]:ie,Ne&&ee&&ee.brave&&typeof ee.brave.isBrave==le&&(Ot[he]="Brave"),Ot},this.getCPU=function(){var Rt={};return Rt[Ee]=ie,W.call(Rt,ne,Re.cpu),Rt},this.getDevice=function(){var Rt={};return Rt[be]=ie,Rt[ge]=ie,Rt[pe]=ie,W.call(Rt,ne,Re.device),Ne&&!Rt[pe]&&_e&&_e.mobile&&(Rt[pe]=Se),Ne&&"Macintosh"==Rt[ge]&&ee&&typeof ee.standalone!==oe&&ee.maxTouchPoints&&ee.maxTouchPoints>2&&(Rt[ge]="iPad",Rt[pe]=we),Rt},this.getEngine=function(){var Rt={};return Rt[he]=ie,Rt[ye]=ie,W.call(Rt,ne,Re.engine),Rt},this.getOS=function(){var Rt={};return Rt[he]=ie,Rt[ye]=ie,W.call(Rt,ne,Re.os),Ne&&!Rt[he]&&_e&&_e.platform&&"Unknown"!=_e.platform&&(Rt[he]=_e.platform.replace(/chrome os/i,bn).replace(/macos/i,yn)),Rt},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 ne},this.setUA=function(Rt){return ne=typeof Rt===ce&&Rt.length>500?K(Rt,500):Rt,this},this.setUA(ne),this};Z.VERSION="1.0.38",Z.BROWSER=H([he,ye,fe]),Z.CPU=H([Ee]),Z.DEVICE=H([ge,be,pe,_e,Se,Re,we,Ne,Ce]),Z.ENGINE=Z.OS=H([he,ye]),typeof Ot!==oe?(Rt.exports&&(Ot=Rt.exports=Z),Ot.UAParser=Z):ee.amdO?(ne=function(){return Z}.call(Ot,ee,Ot,Rt))===ie||(Rt.exports=ne):typeof re!==oe&&(re.UAParser=Z);var _n=typeof re!==oe&&(re.jQuery||re.Zepto);if(_n&&!_n.ua){var vn=new Z;_n.ua=vn.getResult(),_n.ua.get=function(){return vn.getUA()},_n.ua.set=function(Rt){vn.setUA(Rt);var Ot=vn.getResult();
1for(var ee in Ot)_n.ua[ee]=Ot[ee]}}}("object"==typeof window?window:this)},9e3:function(Rt,Ot,ee){function a(Rt){try{if(!ee.g.localStorage)return!1}catch(Rt){return!1}var Ot=ee.g.localStorage[Rt];return null!=Ot&&"true"===String(Ot).toLowerCase()}Rt.exports=function(Rt,Ot){if(a("noDeprecation"))return Rt;var ee=!1;return function(){if(!ee){if(a("throwDeprecation"))throw new Error(Ot);a("traceDeprecation")?console.trace(Ot):console.warn(Ot),ee=!0}return Rt.apply(this,arguments)}}},3779:function(){},7199:function(){},5393:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{Debug:function(){return ie.default},FactoryMaker:function(){return re.default},MediaPlayer:function(){return ne.default}});var ne=ee(8200),re=ee(138),ie=ee(649),le=ee(8986),oe="undefined"!=typeof window&&window||global,ue=oe.dashjs;ue||(ue=oe.dashjs={}),ue.MediaPlayer=ne.default,ue.FactoryMaker=re.default,ue.Debug=ie.default,ue.Version=(0,le.getVersionString)(),Ot.default=ue},649:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(8850),re=ee(3621),ie=ee(138);function l(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ne.default)(Ot).getInstance(),ie=Rt.settings,le=[];let oe,ue,ce,fe;function c(Rt){return Rt&&Rt.bind?Rt.bind(window.console):window.console.log.bind(window.console)}function f(...Rt){b(1,this,...Rt)}function g(...Rt){b(2,this,...Rt)}function m(...Rt){b(3,this,...Rt)}function h(...Rt){b(4,this,...Rt)}function p(...Rt){b(5,this,...Rt)}function b(Rt,Ot,...ne){let oe="",ge=null;ue&&(ge=(new Date).getTime(),oe+="["+(ge-fe)+"]"),ce&&Ot&&Ot.getClassName&&(oe+="["+Ot.getClassName()+"]",Ot.getType&&(oe+="["+Ot.getType()+"]")),oe.length>0&&(oe+=" "),Array.apply(null,ne).forEach((function(Rt){oe+=Rt+" "})),le[Rt]&&ie&&ie.get().debug.logLevel>=Rt&&le[Rt](oe),ie&&ie.get().debug.dispatchEvent&&ee.trigger(re.default.LOG,{message:oe,level:Rt})}return oe={getLogger:function(Rt){return{fatal:f.bind(Rt),error:g.bind(Rt),warn:m.bind(Rt),info:h.bind(Rt),debug:p.bind(Rt)}},setLogTimestampVisible:function(Rt){ue=Rt},setCalleeNameVisible:function(Rt){ce=Rt}},ue=!0,ce=!0,fe=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(le[1]=c(window.console.error),le[2]=c(window.console.error),le[3]=c(window.console.warn),le[4]=c(window.console.info),le[5]=c(window.console.debug)),oe}l.__dashjs_factory_name="Debug";const le=ie.default.getSingletonFactory(l);le.LOG_LEVEL_NONE=0,le.LOG_LEVEL_FATAL=1,le.LOG_LEVEL_ERROR=2,le.LOG_LEVEL_WARNING=3,le.LOG_LEVEL_INFO=4,le.LOG_LEVEL_DEBUG=5,ie.default.updateSingletonFactory(l.__dashjs_factory_name,le),Ot.default=le},8850:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(138),re=ee(1191);function i(){let Rt={};function e(Ot,ee,ne,re={},ie=!1){if(!Ot)throw new Error("event type cannot be null or undefined");if(!ee||"function"!=typeof ee)throw new Error("listener must be a function: "+ee);let le=re.priority||0;if(a(Ot,ee,ne)>=0)return;Rt[Ot]=Rt[Ot]||[];const oe={callback:ee,scope:ne,priority:le,executeOnlyOnce:ie};ne&&ne.getStreamId&&(oe.streamId=ne.getStreamId()),ne&&ne.getType&&(oe.mediaType=ne.getType()),re&&re.mode&&(oe.mode=re.mode),Rt[Ot].some(((ee,ne)=>{if(ee&&le>ee.priority)return Rt[Ot].splice(ne,0,oe),!0}))||Rt[Ot].push(oe)}function n(Ot,ee,ne){if(!Ot||!ee||!Rt[Ot])return;const re=a(Ot,ee,ne);re<0||(Rt[Ot][re]=null)}function a(Ot,ee,ne){let re=-1;return Rt[Ot]?(Rt[Ot].some(((Rt,Ot)=>{if(Rt&&Rt.callback===ee&&(!ne||ne===Rt.scope))return re=Ot,!0})),re):re}return{on:function(Rt,Ot,ee,ne={}){e(Rt,Ot,ee,ne)},once:function(Rt,Ot,ee,ne={}){e(Rt,Ot,ee,ne,!0)},off:n,trigger:function(Ot,ee={},ne={}){if(!Ot||!Rt[Ot])return;if((ee=ee||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");ee.type=Ot,ne.streamId&&(ee.streamId=ne.streamId),ne.mediaType&&(ee.mediaType=ne.mediaType);const ie=[];Rt[Ot].filter((Rt=>!(!Rt||ne.streamId&&Rt.streamId&&Rt.streamId!==ne.streamId||ne.mediaType&&Rt.mediaType&&Rt.mediaType!==ne.mediaType||ne.mode&&Rt.mode&&Rt.mode!==ne.mode||!Rt.mode&&ne.mode&&ne.mode===re.default.EVENT_MODE_ON_RECEIVE))).forEach((Rt=>{Rt&&Rt.callback.call(Rt.scope,ee),Rt.executeOnlyOnce&&ie.push(Rt)})),ie.forEach((Rt=>{n(Ot,Rt.callback,Rt.scope)}))},reset:function(){Rt={}}}}i.__dashjs_factory_name="EventBus";const ie=ne.default.getSingletonFactory(i);ie.EVENT_PRIORITY_LOW=0,ie.EVENT_PRIORITY_HIGH=5e3,ne.default.updateSingletonFactory(i.__dashjs_factory_name,ie),Ot.default=ie},138:function(Rt,Ot,ee){ee.r(Ot);const ne=function(){let Rt,Ot=[];const ee={},ne={};function r(Rt,ee){for(const ne in Ot){const re=Ot[ne];if(re.context===Rt&&re.name===ee)return re.instance}return null}function i(Rt,Ot){return Ot[Rt]}function l(Rt,Ot,ee){Rt in ee&&(ee[Rt]=Ot)}
1function o(Ot,ee,ne){let re;const ie=Ot.__dashjs_factory_name,le=ee[ie];if(le){let ie=le.instance;if(!le.override)return ie.apply({context:ee,factory:Rt},ne);re=Ot.apply({context:ee},ne),ie=ie.apply({context:ee,factory:Rt,parent:re},ne);for(const Rt in ie)re.hasOwnProperty(Rt)&&(re[Rt]=ie[Rt])}else re=Ot.apply({context:ee},ne);return re.getClassName=function(){return ie},re}return Rt={deleteSingletonInstances:function(Rt){Ot=Ot.filter((Ot=>Ot.context!==Rt))},extend:function(Rt,Ot,ee,ne){!ne[Rt]&&Ot&&(ne[Rt]={instance:Ot,override:ee})},getClassFactory:function(Rt){let Ot=i(Rt.__dashjs_factory_name,ne);return Ot||(Ot=function(Ot){return void 0===Ot&&(Ot={}),{create:function(){return o(Rt,Ot,arguments)}}},ne[Rt.__dashjs_factory_name]=Ot),Ot},getClassFactoryByName:function(Rt){return i(Rt,ne)},getSingletonFactory:function(Rt){let ne=i(Rt.__dashjs_factory_name,ee);return ne||(ne=function(ee){let ne;return void 0===ee&&(ee={}),{getInstance:function(){return ne||(ne=r(ee,Rt.__dashjs_factory_name)),ne||(ne=o(Rt,ee,arguments),Ot.push({name:Rt.__dashjs_factory_name,context:ee,instance:ne})),ne}}},ee[Rt.__dashjs_factory_name]=ne),ne},getSingletonFactoryByName:function(Rt){return i(Rt,ee)},getSingletonInstance:r,setSingletonInstance:function(Rt,ee,ne){for(const re in Ot){const ie=Ot[re];if(ie.context===Rt&&ie.name===ee)return void(Ot[re].instance=ne)}Ot.push({name:ee,context:Rt,instance:ne})},updateClassFactory:function(Rt,Ot){l(Rt,Ot,ne)},updateSingletonFactory:function(Rt,Ot){l(Rt,Ot,ee)}},Rt}();Ot.default=ne},8261:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(138),re=ee(7263),ie=ee(649),le=ee(5212),oe=ee(7568),ue=ee(8850),ce=ee(3621),fe=ee(4246);function c(){let Rt;const Ot=this.context,ee=(0,ue.default)(Ot).getInstance(),ne={"streaming.delay.liveDelay":ce.default.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":ce.default.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":ce.default.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":ce.default.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":ce.default.SETTING_UPDATED_PLAYBACK_RATE_MAX,"streaming.abr.rules.throughputRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.bolaRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.insufficientBufferRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.switchHistoryRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.droppedFramesRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.abandonRequestsRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.l2ARule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.rules.loLPRule.active":ce.default.SETTING_UPDATED_ABR_ACTIVE_RULES,"streaming.abr.maxBitrate.video":ce.default.SETTING_UPDATED_MAX_BITRATE,"streaming.abr.maxBitrate.audio":ce.default.SETTING_UPDATED_MAX_BITRATE,"streaming.abr.minBitrate.video":ce.default.SETTING_UPDATED_MIN_BITRATE,"streaming.abr.minBitrate.audio":ce.default.SETTING_UPDATED_MIN_BITRATE},ge={debug:{logLevel:ie.default.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,liveUpdateTimeThresholdInMilliseconds:0,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,supportedEssentialProperties:[{schemeIdUri:le.default.FONT_DOWNLOAD_DVB_SCHEME},{schemeIdUri:le.default.COLOUR_PRIMARIES_SCHEME_ID_URI,value:/1|5|6|7/},{schemeIdUri:le.default.URL_QUERY_INFO_SCHEME},{schemeIdUri:le.default.EXT_URL_QUERY_INFO_SCHEME},{schemeIdUri:le.default.MATRIX_COEFFICIENTS_SCHEME_ID_URI,value:/0|1|5|6/},{schemeIdUri:le.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI,value:/1|6|13|14|15/},{schemeIdUri:le.default.SEGMENT_SEQUENCE_REPRESENTATION_SCHEME_ID_URI},...le.default.THUMBNAILS_SCHEME_ID_URIS.map((Rt=>({schemeIdUri:Rt})))],useMediaCapabilitiesApi:!0,filterVideoColorimetryEssentialProperties:!1,filterHDRMetadataFormatEssentialProperties:!1,filterAudioChannelConfiguration:!1},events:{eventControllerRefreshDelay:100,deleteEventMessageDataTimeout:1e4},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,keepProtectionMediaKeysMaximumOpenSessions:-1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0,ignoreKeyStatuses:!1},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:null,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,bufferTimeDefault:18,longFormContentDurationThreshold:600,stallThreshold:.3,lowLatencyStallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeType:!0,mediaSourceDurationInfinity:!0,resetSourceBuffersForTrackSwitch:!1,syntheticStallEvents:{enabled:!1,ignoreReadyState:!1}},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1,seekOffset:0},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroun
1dSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"},artificialTimeOffsetToApply:0},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:le.default.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},saveLastMediaSettingsForCurrentStreamingSession:!0,cacheLoadThresholds:{video:10,audio:5},trackSwitchMode:{audio:le.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:le.default.TRACK_SWITCH_MODE_NEVER_REPLACE},includePreselectionsInMediainfoArray:!0,includePreselectionsForInitialTrackSelection:!1,ignoreSelectionPriority:!1,prioritizeRoleMain:!0,assumeDefaultRoleAsMain:!0,selectionModeForInitialTrack:le.default.TRACK_SELECTION_MODE_LOWEST_STARTUP_DELAY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:{[oe.HTTPRequest.MPD_TYPE]:500,[oe.HTTPRequest.XLINK_EXPANSION_TYPE]:500,[oe.HTTPRequest.MEDIA_SEGMENT_TYPE]:1e3,[oe.HTTPRequest.INIT_SEGMENT_TYPE]:1e3,[oe.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE]:1e3,[oe.HTTPRequest.INDEX_SEGMENT_TYPE]:1e3,[oe.HTTPRequest.MSS_FRAGMENT_INFO_SEGMENT_TYPE]:1e3,[oe.HTTPRequest.LICENSE]:1e3,[oe.HTTPRequest.OTHER_TYPE]:1e3,lowLatencyReductionFactor:10},retryAttempts:{[oe.HTTPRequest.MPD_TYPE]:3,[oe.HTTPRequest.XLINK_EXPANSION_TYPE]:1,[oe.HTTPRequest.MEDIA_SEGMENT_TYPE]:3,[oe.HTTPRequest.INIT_SEGMENT_TYPE]:3,[oe.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE]:3,[oe.HTTPRequest.INDEX_SEGMENT_TYPE]:3,[oe.HTTPRequest.MSS_FRAGMENT_INFO_SEGMENT_TYPE]:3,[oe.HTTPRequest.LICENSE]:3,[oe.HTTPRequest.OTHER_TYPE]:3,lowLatencyMultiplyFactor:5},abr:{limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,enableSupplementalPropertyAdaptationSetSwitching:!0,rules:{throughputRule:{active:!0,priority:fe.default.PRIORITY.DEFAULT},bolaRule:{active:!0,priority:fe.default.PRIORITY.DEFAULT},insufficientBufferRule:{active:!0,priority:fe.default.PRIORITY.DEFAULT,parameters:{throughputSafetyFactor:.7,segmentIgnoreCount:2}},switchHistoryRule:{active:!0,priority:fe.default.PRIORITY.DEFAULT,parameters:{sampleSize:8,switchPercentageThreshold:.075}},droppedFramesRule:{active:!1,priority:fe.default.PRIORITY.DEFAULT,parameters:{minimumSampleSize:375,droppedFramesPercentageThreshold:.15}},abandonRequestsRule:{active:!0,priority:fe.default.PRIORITY.DEFAULT,parameters:{abandonDurationMultiplier:1.8,minSegmentDownloadTimeThresholdInMs:500,minThroughputSamplesThreshold:6}},l2ARule:{active:!1,priority:fe.default.PRIORITY.DEFAULT},loLPRule:{active:!1,priority:fe.default.PRIORITY.DEFAULT}},throughput:{averageCalculationMode:le.default.THROUGHPUT_CALCULATION_MODES.EWMA,lowLatencyDownloadTimeCalculationMode:le.default.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING,useResourceTimingApi:!0,useNetworkInformationApi:{xhr:!1,fetch:!1},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:{applyParametersFromMpd:!0,enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:le.default.CMCD_MODE_QUERY,enabledKeys:le.default.CMCD_AVAILABLE_KEYS,includeInRequests:["segment","mpd"],version:1},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}},enhancement:{enabled:!1,codecs:["lvc1"]},defaultSchemeIdUri:{viewpoint:"",audioChannelConfiguration:"urn:mpeg:mpegB:cicp:ChannelConfiguration",role:"urn:mpeg:dash:role:2011",accessibility:"ur
1n:mpeg:dash:role:2011"}},errors:{recoverAttempts:{mediaErrorDecode:5}}};let he=re.default.clone(ge);function g(Rt,Ot,ie){for(let le in Rt)Rt.hasOwnProperty(le)&&(Ot.hasOwnProperty(le)?"object"!=typeof Rt[le]||Rt[le]instanceof RegExp||Rt[le]instanceof Array||null===Rt[le]?(Ot[le]=re.default.clone(Rt[le]),ne[ie+le]&&ee.trigger(ne[ie+le])):g(Rt[le],Ot[le],ie.slice()+le+"."):console.error("Settings parameter "+ie+le+" is not supported"))}return Rt={get:function(){return he},update:function(Rt){"object"==typeof Rt&&g(Rt,he,"")},reset:function(){he=re.default.clone(ge)}},Rt}c.__dashjs_factory_name="Settings";let ge=ne.default.getSingletonFactory(c);Ot.default=ge},7263:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(3282),re=ee(8571),ie=ee(5212);class l{static mixin(Rt,Ot,ee){let ne,re={};if(Rt)for(let ie in Ot)Ot.hasOwnProperty(ie)&&(ne=Ot[ie],ie in Rt&&(Rt[ie]===ne||ie in re&&re[ie]===ne)||("object"==typeof Rt[ie]&&null!==Rt[ie]?Rt[ie]=l.mixin(Rt[ie],ne,ee):Rt[ie]=ee(ne)));return Rt}static clone(Rt){if(!Rt||"object"!=typeof Rt)return Rt;if(Rt instanceof RegExp)return new RegExp(Rt);let Ot;if(Rt instanceof Array){Ot=[];for(let ee=0,ne=Rt.length;ee<ne;++ee)ee in Rt&&Ot.push(l.clone(Rt[ee]))}else Ot={};return l.mixin(Ot,Rt,l.clone)}static addAdditionalQueryParameterToUrl(Rt,Ot){try{if(!Ot||0===Ot.length)return Rt;let ee=Rt;return Ot.forEach((({key:Rt,value:Ot})=>{const ne=ee.includes("?")?"&":"?";ee+=`${ne}${encodeURIComponent(Rt)}=${encodeURIComponent(Ot)}`})),ee}catch(Ot){return Rt}}static removeQueryParameterFromUrl(Rt,Ot){if(!Rt||!Ot)return Rt;const ee=new URL(Rt),ne=new URLSearchParams(ee.search);if(!ne||0===ne.size||!ne.has(Ot))return Rt;ne.delete(Ot);const re=Array.from(ne.entries()).map((([Rt,Ot])=>`${Rt}=${Ot}`)).join("&"),ie=`${ee.origin}${ee.pathname}`;return re?`${ie}?${re}`:ie}static parseHttpHeaders(Rt){let Ot={};if(!Rt)return Ot;let ee=Rt.trim().split("\r\n");for(let Rt=0,ne=ee.length;Rt<ne;Rt++){let ne=ee[Rt],re=ne.indexOf(": ");re>0&&(Ot[ne.substring(0,re)]=ne.substring(re+2))}return Ot}static parseQueryParams(Rt){const Ot=[],ee=new URLSearchParams(Rt);for(const[Rt,ne]of ee.entries())Ot.push({key:decodeURIComponent(Rt),value:decodeURIComponent(ne)});return Ot}static generateUuid(){let Rt=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(Ot){const ee=(Rt+16*Math.random())%16|0;return Rt=Math.floor(Rt/16),("x"==Ot?ee:3&ee|8).toString(16)}))}static generateHashCode(Rt){let Ot=0;if(0===Rt.length)return Ot;for(let ee=0;ee<Rt.length;ee++)Ot=(Ot<<5)-Ot+Rt.charCodeAt(ee),Ot|=0;return Ot}static getRelativeUrl(Rt,Ot){try{const ee=new URL(Rt),re=new URL(Ot);if(ee.protocol=re.protocol,ee.origin!==re.origin)return Ot;let ie=ne.relative(ee.pathname.substr(0,ee.pathname.lastIndexOf("/")),re.pathname.substr(0,re.pathname.lastIndexOf("/")));const le=0===ie.length?1:0;return ie+=re.pathname.substr(re.pathname.lastIndexOf("/")+le,re.pathname.length-1),re.pathname.length<ie.length?re.pathname:ie}catch(Rt){return Ot}}static getHostFromUrl(Rt){try{return new URL(Rt).host}catch(Rt){return null}}static parseUserAgent(Rt=null){try{const Ot=null===Rt&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return(0,re.UAParser)(Ot)}catch(Rt){return{}}}static stringHasProtocol(Rt){return/(http(s?)):\/\//i.test(Rt)}static bufferSourceToDataView(Rt){return l.toDataView(Rt,DataView)}static bufferSourceToInt8(Rt){return l.toDataView(Rt,Uint8Array)}static uint8ArrayToString(Rt){return new TextDecoder("utf-8").decode(Rt)}static bufferSourceToHex(Rt){const Ot=l.bufferSourceToInt8(Rt);let ee="";for(let Rt of Ot)Rt=Rt.toString(16),1===Rt.length&&(Rt="0"+Rt),ee+=Rt;return ee}static toDataView(Rt,Ot){const ee=l.getArrayBuffer(Rt);let ne=1;"BYTES_PER_ELEMENT"in DataView&&(ne=DataView.BYTES_PER_ELEMENT);const re=((Rt.byteOffset||0)+Rt.byteLength)/ne,ie=(Rt.byteOffset||0)/ne,le=Math.floor(Math.max(0,Math.min(ie,re)));return new Ot(ee,le,Math.floor(Math.min(le+Math.max(1/0,0),re))-le)}static getArrayBuffer(Rt){return Rt instanceof ArrayBuffer?Rt:Rt.buffer}static getCodecFamily(Rt){const{base:Ot,profile:ee}=l._getCodecParts(Rt);switch(Ot){case"mp4a":switch(ee){case"69":case"6b":case"40.34":return ie.default.CODEC_FAMILIES.MP3;case"66":case"67":case"68":case"40.2":case"40.02":case"40.5":case"40.05":case"40.29":case"40.42":return ie.default.CODEC_FAMILIES.AAC;case"a5":return ie.default.CODEC_FAMILIES.AC3;case"e6":return ie.default.CODEC_FAMILIES.EC3;case"b2":return ie.default.CODEC_FAMILIES.DTSX;case"a9":return ie.default.CODEC_FAMILIES.DTSC}break;case"avc1":case"avc3":return ie.default.CODEC_FAMILIES.AVC;case"hvc1":case"hvc3":return ie.default.CODEC_FAMILIES.HEVC;default:return Ot}return Ot}static _getCodecParts(Rt){const[Ot,...ee]=Rt.split(".");return{base:Ot,profile:ee.join(".")}}}Ot.default=l},8986:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{getVersionString:function(){return r}});function r(){return"5.1.1"}},8748:function(Rt,Ot,ee){ee.r(Ot),Ot.default=class{extend(Rt,Ot){if(!Rt)return;let ee=!!Ot&&Ot.override,ne=!!Ot&&Ot.publicOnly;for(const Ot in Rt)!Rt.hasOwnProperty(Ot)||this[Ot]&&!ee||ne&&-1===Rt[Ot].indexOf("public_")||(this[Ot]=Rt[Ot])}}},5734:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(7252);class r extends ne.default{constructor(){super(),this.ATTEMPT_BACKGROUND_SYNC="attemptBackgroun
1dSync",this.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",this.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CMSD_STATIC_HEADER="cmsdStaticHeader",this.CURRENT_TRACK_CHANGED="currentTrackChanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.INBAND_EVENTS="inbandEvents",this.INITIAL_STREAM_SWITCH="initialStreamSwitch",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_FRAGMENT_NEEDED="initFragmentNeeded",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LOADING_ABANDONED="loadingAborted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_DATA_PROGRESS="loadingDataProgress",this.LOADING_PROGRESS="loadingProgress",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIAINFO_UPDATED="mediaInfoUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",this.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",this.QUOTA_EXCEEDED="quotaExceeded",this.SEEK_TARGET="seekTarget",this.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",this.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",this.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",this.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",this.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",this.SETTING_UPDATED_ABR_ACTIVE_RULES="settingUpdatedAbrActiveRules",this.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",this.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",this.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",this.SETTING_UPDATED_MAX_BITRATE="settingUpdatedMaxBitrate",this.SETTING_UPDATED_MIN_BITRATE="settingUpdatedMinBitrate",this.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",this.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",this.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",this.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",this.SOURCE_BUFFER_ERROR="sourceBufferError",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",this.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.VIDEO_CHUNK_RECEIVED="videoChunkReceived",this.VIDEO_ELEMENT_RESIZED="videoElementResized",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}}Ot.default=r},3621:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(5734);class r extends ne.default{}let re=new r;Ot.default=re},7252:function(Rt,Ot,ee){ee.r(Ot),Ot.default=class{extend(Rt,Ot){if(!Rt)return;let ee=!!Ot&&Ot.override,ne=!!Ot&&Ot.publicOnly;for(const Ot in Rt)!Rt.hasOwnProperty(Ot)||this[Ot]&&!ee||ne&&-1===Rt[Ot].indexOf("public_")||(this[Ot]=Rt[Ot])}}},8854:function(Rt,Ot,ee){ee.r(Ot),Ot.default={ACCESSIBILITY:"Accessibility",ADAPTATION_SET:"AdaptationSet",ADAPTATION_SETS:"adaptationSets",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",CAPTION:"caption",CENC_DEFAULT_KID:"cenc:default_KID",CLIENT_DATA_REPORTING:"ClientDataReporting",CLIENT_REQUIREMENT:"clientRequirement",CMCD_PARAMETERS:"CMCDParameters",CODECS:"codecs",CODEC_PRIVATE_DATA:"co
1decPrivateData",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",END_NUMBER:"endNumber",ESSENTIAL_PROPERTY:"EssentialProperty",EVENT:"Event",EVENT_STREAM:"EventStream",FORCED_SUBTITLE:"forced-subtitle",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",LA_URL_LOWER_CASE:"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",MPD_TYPE:"mpd",MPD_PATCH_TYPE:"mpdpatch",ORDER:"order",ORIGINAL_MPD_ID:"mpdId",ORIGINAL_PUBLISH_TIME:"originalPublishTime",PATCH_LOCATION:"PatchLocation",PERIOD:"Period",PRESELECTION:"Preselection",PRESELECTION_COMPONENTS:"preselectionComponents",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",QUERY_PART:"$querypart$",RANGE:"range",RATING:"Rating",REF:"ref",REF_ID:"refId",REMOVE:"remove",REPLACE:"replace",REPORTING:"Reporting",REPRESENTATION:"Representation",REPRESENTATION_INDEX:"RepresentationIndex",ROBUSTNESS:"robustness",ROLE:"Role",
1S:"S",SAR:"sar",SCAN_TYPE:"scanType",SEGMENT_ALIGNMENT:"segmentAlignment",SEGMENT_BASE:"SegmentBase",SEGMENT_LIST:"SegmentList",SEGMENT_PROFILES:"segmentProfiles",SEGMENT_SEQUENCE_PROPERTIES:"SegmentSequenceProperties",SEGMENT_TEMPLATE:"SegmentTemplate",SEGMENT_TIMELINE:"SegmentTimeline",SEGMENT_TYPE:"segment",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",SERVICE_LOCATIONS:"serviceLocations",SOURCE_URL:"sourceURL",START:"start",START_NUMBER:"startNumber",START_WITH_SAP:"startWithSAP",STATIC:"static",STEERING_TYPE:"steering",SUBSET:"Subset",SUBTITLE:"subtitle",SUB_REPRESENTATION:"SubRepresentation",SUB_SEGMENT_ALIGNMENT:"subsegmentAlignment",SUGGESTED_PRESENTATION_DELAY:"suggestedPresentationDelay",SUPPLEMENTAL_PROPERTY:"SupplementalProperty",SUPPLEMENTAL_CODECS:"scte214:supplementalCodecs",TAG:"tag",TIMESCALE:"timescale",TIMESHIFT_BUFFER_DEPTH:"timeShiftBufferDepth",TTL:"ttl",TYPE:"type",UTC_TIMING:"UTCTiming",VALUE:"value",VIEWPOINT:"Viewpoint",WALL_CLOCK_TIME:"wallClockTime",WIDTH:"width"}},5717:function(Rt,Ot,ee){ee.r(Ot),Ot.default=class{constructor(){this.schemeIdUri="",this.value=""}}},8200:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{default:function(){return _u}});var ne=ee(138),re=ee(4246),ie={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"},le=ee(649),oe=ee(8261);function d(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.dashMetrics;let ne,ue,ce;return ne={getSwitchRequest:function(Rt){try{const ne=(0,re.default)(Ot).create();ne.rule=this.getClassName();const le=Rt.getMediaInfo(),oe=Rt.getMediaType(),ce=ee.getCurrentBufferState(oe),fe=Rt.getScheduleController(),ge=Rt.getAbrController(),he=Rt.getStreamInfo(),pe=he?he.id:null,be=he&&he.manifestInfo?he.manifestInfo.isDynamic:null,ye=Rt.getThroughputController(),Ee=ye.getSafeAverageThroughput(oe),_e=ye.getAverageLatency(oe);return isNaN(Ee)||!ce||ge.getAbandonmentStateFor(pe,oe)===ie.ALLOW_LOAD&&(ce.state===ie.BUFFER_LOADED||be)&&(ne.representation=ge.getOptimalRepresentationForBitrate(le,Ee,!0),ne.priority=ue.get().streaming.abr.rules.throughputRule.priority,ne.reason={throughput:Ee,latency:_e,message:`[ThroughputRule]: Switching to Representation with bitrate ${ne.representation?ne.representation.bitrateInKbit:"n/a"} kbit/s. Throughput: ${Ee}`},fe.setTimeToLoadDelay(0)),ne}catch(Rt){return ce.error(Rt),(0,re.default)(Ot).create()}},reset:function(){}},ce=(0,le.default)(Ot).getInstance().getLogger(ne),ue=(0,oe.default)(Ot).getInstance(),ne}d.__dashjs_factory_name="ThroughputRule";var ue=ne.default.getClassFactory(d),ce=ee(8850),fe=ee(3621),ge=ee(5212),he=ee(1191);function p(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=Rt.dashMetrics,ue=(0,oe.default)(Ot).getInstance();let pe,be,ye;function p(){const Rt=ue.get().streaming.abr.rules.insufficientBufferRule.parameters.segmentIgnoreCount;ye={},ye[ge.default.VIDEO]={ignoreCount:Rt},ye[ge.default.AUDIO]={ignoreCount:Rt},ye[ge.default.ENHANCEMENT]={ignoreCount:Rt}}function b(){p()}function y(Rt){isNaN(Rt.startTime)||Rt.mediaType!==ge.default.AUDIO&&Rt.mediaType!==ge.default.VIDEO||ye[Rt.mediaType].ignoreCount>0&&ye[Rt.mediaType].ignoreCount--}return pe={getSwitchRequest:function(Rt){const ee=(0,re.default)(Ot).create();if(ee.rule=this.getClassName(),!Rt||!Rt.hasOwnProperty("getMediaType"))return ee;const le=Rt.getMediaType(),oe=ne.getCurrentBufferState(le),ce=Rt.getRepresentation().fragmentDuration;if(!function(Rt,Ot,ee){return!Rt.getLowLatencyModeEnabled()&&ye[Ot].ignoreCount<=0&&ee}(Rt.getScheduleController().getPlaybackController(),le,ce))return ee;const fe=Rt.getMediaInfo(),ge=Rt.getAbrController();if(oe&&oe.state===ie.BUFFER_EMPTY)be.debug("["+le+"] Switch to index 0; buffer is empty."),ee.representation=ge.getOptimalRepresentationForBitrate(fe,0,!0),ee.reason={message:"[InsufficientBufferRule]: Switching to lowest Representation because buffer is empty"};else{const Ot=Rt.getThroughputController(),re=ne.getCurrentBufferLevel(le),ie=Ot.getAverageThroughput(le,null,NaN)*ue.get().streaming.abr.rules.insufficientBufferRule.parameters.throughputSafetyFactor*re/ce;if(isNaN(ie)||ie<=0)return ee;ee.representation=ge.getOptimalRepresentationForBitrate(fe,ie,!0),ee.priority=ue.get().streaming.abr.rules.insufficientBufferRule.priority,ee.reason={message:"[InsufficientBufferRule]: Limiting maximum bitrate to avoid a buffer underrun.",bitrate:ie}}return ee},reset:function(){p(),ee.off(he.default.PLAYBACK_SEEKING,b,pe),ee.off(fe.default.BYTES_APPENDED_END_FRAGMENT,y,pe)}},be=(0,le.default)(Ot).getInstance().getLogger(pe),p(),ee.on(he.default.PLAYBACK_SEEKING,b,pe),ee.on(fe.default.BYTES_APPENDED_END_FRAGMENT,y,pe),pe}p.__dashjs_factory_name="InsufficientBufferRule";var pe=ne.default.getClassFactory(p);function y(Rt){const Ot=(Rt=Rt||{}).mediaPlayerModel,ee=Rt.dashMetrics,ne=this.context,ie=(0,oe.default)(ne).getInstance();let ue,ce,fe;function c(){fe={}}return ue={shouldAbandon:function(Rt){const le=(0,re.default)(ne).create();le.rule=this.getClassName();try{if(!Rt)return le;const ne=Rt.getCurrentRequest();if(!isNaN(ne.index)){if(null===ne.firstByteDate||fe.hasOwnProperty(ne.index))return le;const re=Ot.getBufferTimeDefault(),oe=Rt.getMediaType();if(ee.getCurrentBufferLevel(oe)>re)return le;const ue=Date.now()-ne.firstByteDate.getTime();if(ne.traces.length>=ie.get().streaming.abr.rules.abandonRequestsRule.parameters.minThroughputSamplesThreshold&&ue>ie.get().streaming.abr.rules.abandonRequestsRule.parameters.minSegmentDownloadTimeThresholdInMs&&ne.bytesLoaded<ne.bytesTotal)return function(Rt,Ot,ee){const ne=Rt.getMediaInfo(),re=Rt.getMediaType(),le=Ot.traces.reduce(((Rt,Ot)=>Rt+Ot.b[0]),0)-Ot.traces[0].b[0],oe=Math.max(Ot.traces.reduce(((Rt,Ot)=>Rt+Ot.d),0)-Ot.traces[0].d,1),ue=Math.round(8*le/oe),ce=Number(8*Ot.bytesTotal/ue/1e3).toFixed(2),ge=Rt.getRepresentation(),he=Rt.getAbrController();if(ce<Ot.duration*ie.get().streaming.abr.rules.abandonRequestsRule.parameters.abandonDurationMultiplier||he.isPlayingAtLowestQuality(ge))return ee;if(!fe.hasOwnProperty(Ot.index)){const le=Rt.getAbrController(),oe=Ot.bytesTotal-Ot.bytesLoaded,ce=le.getOptimalRepresentationForBitrate(ne,ue,!0),ge=Ot.representation;oe>Ot.bytesTotal*ce.bitrateInKbit/ge.bitrateInKbit&&(ee.representation=ce,ee.priority=ie.get().streaming.abr.rules.abandonRequestsRule.priority,ee.reason={throughputInKbit:ue,message:`[AbandonRequestRule][${re} is asking to abandon and switch to quality to ${ce.absoluteIndex}. The measured bandwidth was ${ue} kbit/s`},fe[Ot.index]=!0)}return ee}(Rt,ne,le)}return le}catch(Rt){return ce.error(Rt),le}},reset:c},ce=(0,le.default)(ne).getInstance().getLogger(ue),c(),ue}y.__dashjs_factory_name="AbandonRequestsRule";var be=ne.default.getClassFactory(y);function T(){const Rt=this.context,Ot=(0,oe.default)(Rt).getInstance();let ee;return ee={getSwitchRequest:function(ee){const ne=(0,re.default)(Rt).create();if(ne.rule=this.getClassName(),!ee||!ee.hasOwnProperty("getDroppedFramesHistory"))return ne;const ie=ee.getDroppedFramesHistory();if(!ie)return ne;const le=ee.getStreamInfo().id,oe=ee.getMediaInfo(),ue=ee.getAbrController(),ce=ie.getFrameHistory(le);if(!ce||0===Object.keys(ce).length)return ne;let fe=0,ge=0;
1const he=ue.getPossibleVoRepresentationsFilteredBySettings(oe,!0);let pe=null;for(let Rt=1;Rt<he.length;Rt++){const ee=he[Rt];if(ee&&ce[ee.id]&&(fe=ce[ee.id].droppedVideoFrames,ge=ce[ee.id].totalVideoFrames,ge>Ot.get().streaming.abr.rules.droppedFramesRule.parameters.minimumSampleSize&&fe/ge>Ot.get().streaming.abr.rules.droppedFramesRule.parameters.droppedFramesPercentageThreshold)){pe=he[Rt-1];break}}return pe&&(ne.representation=pe,ne.priority=Ot.get().streaming.abr.rules.droppedFramesRule.priority,ne.reason={droppedFrames:fe,message:`[DroppedFramesRule]: Switching to index ${pe.absoluteIndex}. Dropped Frames: ${fe}, Total Frames: ${ge}`}),ne}},ee}T.__dashjs_factory_name="DroppedFramesRule";var ye=ne.default.getClassFactory(T);function v(){const Rt=this.context,Ot=(0,oe.default)(Rt).getInstance();let ee;return ee={getSwitchRequest:function(ee){const ne=(0,re.default)(Rt).create();if(ne.rule=this.getClassName(),!ee)return ne;const ie=ee.getStreamInfo().id,le=ee.getMediaType(),oe=ee?ee.getSwitchRequestHistory():null,ue=oe?oe.getSwitchRequests(ie,le):{},ce=ee.getAbrController(),fe=ee.getMediaInfo(),ge=ce.getPossibleVoRepresentationsFilteredBySettings(fe,!0);let he=0,pe=0;for(let Rt=0;Rt<ge.length;Rt++){const ee=ge[Rt];if(ee&&ue[ee.id]&&(he+=ue[ee.id].drops,pe+=ue[ee.id].noDrops,he+pe>=Ot.get().streaming.abr.rules.switchHistoryRule.parameters.sampleSize&&he/pe>Ot.get().streaming.abr.rules.switchHistoryRule.parameters.switchPercentageThreshold)){ne.representation=Rt>0&&ue[ee.id].drops>0?ge[Rt-1]:ee,ne.priority=Ot.get().streaming.abr.rules.switchHistoryRule.priority,ne.reason={drops:he,noDrops:pe,message:`[SwitchHistoryRule]: Switch to index: ${ne.representation.absoluteIndex} samples: ${he+pe} drops:  ${he}`};break}}return ne}},ee}v.__dashjs_factory_name="SwitchHistoryRule";var Ee=ne.default.getClassFactory(v),_e=ee(7568);const Se="BOLA_STATE_ONE_BITRATE",we="BOLA_STATE_STARTUP",Re="BOLA_STATE_STEADY",Ne=10;function N(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.dashMetrics,ne=Rt.mediaPlayerModel,ue=(0,ce.default)(Ot).getInstance(),pe=In(Ot).getInstance();let be,ye,Ee,Ce;function y(Rt){const Ot=Rt.mediaType,ee=Rt.streamId,ne=Ot===ge.default.AUDIO?[ge.default.AUDIO]:Ce[ee];for(const Rt in ne)Ce[ee]&&Ce[ee].hasOwnProperty(Rt)&&Ce[ee][Rt].state===Re&&(Ce[ee][Rt].placeholderBuffer=0)}function E(Rt){const Ot=Rt.streamId;for(const Rt in Ce[Ot])if(Ce[Ot].hasOwnProperty(Rt)){const ee=Ce[Ot][Rt];ee.state!==Se&&(ee.state=we,T(ee))}}function T(Rt){Rt.placeholderBuffer=0,Rt.mostAdvancedSegmentStart=NaN,Rt.lastSegmentWasReplacement=!1,Rt.lastSegmentStart=NaN,Rt.lastSegmentDurationS=NaN,Rt.lastSegmentRequestTimeMs=NaN,Rt.lastSegmentFinishTimeMs=NaN}function _(Rt){try{if(Rt&&Rt.metric===ie.HTTP_REQUEST&&Rt.value&&Rt.value.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE&&Rt.value.trace&&Rt.value.trace.length){const Ot=Ce[Rt.value._streamId]&&Ce[Rt.value._streamId][Rt.mediaType]?Ce[Rt.value._streamId][Rt.mediaType]:null;Ot&&Ot.state!==Se&&(Ot.lastSegmentRequestTimeMs=Rt.value.trequest.getTime(),Ot.lastSegmentFinishTimeMs=Rt.value._tfinish.getTime(),v(Ot,Rt.mediaType))}}catch(Rt){ye.error(Rt)}}function v(Rt,Ot){if(!isNaN(Rt.lastSegmentStart)&&!isNaN(Rt.lastSegmentRequestTimeMs)&&!isNaN(Rt.placeholderBuffer)){if(Rt.placeholderBuffer*=.99,!isNaN(Rt.lastSegmentFinishTimeMs)){const ne=ee.getCurrentBufferLevel(Ot)+.001*(Rt.lastSegmentFinishTimeMs-Rt.lastSegmentRequestTimeMs),re=D(Rt,Rt.currentRepresentation),ie=Math.max(0,re-ne);Rt.placeholderBuffer=Math.min(ie,Rt.placeholderBuffer)}Rt.lastSegmentWasReplacement&&!isNaN(Rt.lastSegmentDurationS)&&(Rt.placeholderBuffer+=Rt.lastSegmentDurationS),Rt.lastSegmentStart=NaN,Rt.lastSegmentRequestTimeMs=NaN}}function S(Rt){if(Rt&&Ce[Rt.streamId]&&Ce[Rt.streamId][Rt.mediaType]){const Ot=Ce[Rt.streamId][Rt.mediaType];Ot&&Ot.state!==Se&&(Ot.currentRepresentation=Rt.newRepresentation)}}function N(Rt,Ot,ee){const ne=ee.reduce(((Rt,Ot,ne)=>Ot>ee[Rt]?ne:Rt),0);if(0===ne)return null;const re=Math.max(Rt,Ne+2*Ot.length),ie=(ee[ne]-1)/(re/Ne-1);return{gp:ie,Vp:Ne/ie}}function C(Rt,Ot){const re=ne.getBufferTimeDefault();if(Rt.bufferTimeDefault!==re){const ne=N(re,Rt.representations,Rt.utilities);if(ne.Vp!==Rt.Vp||ne.gp!==Rt.gp){const ie=ee.getCurrentBufferLevel(Ot);let le=ie+Rt.placeholderBuffer;le-=Ne,le*=ne.Vp/Rt.Vp,le+=Ne,Rt.bufferTimeDefault=re,Rt.Vp=ne.Vp,Rt.gp=ne.gp,Rt.placeholderBuffer=Math.max(0,le-ie)}}}function D(Rt,Ot){return Rt.Vp*(Rt.utilities[Ot.absoluteIndex]+Rt.gp)}function x(Rt){if(Rt&&Rt.chunk&&Rt.chunk.representation.mediaInfo&&Ce[Rt.streamId]){const Ot=Ce[Rt.streamId][Rt.chunk.representation.mediaInfo.type];if(Ot&&Ot.state!==Se){const ee=Rt.chunk.start;isNaN(Ot.mostAdvancedSegmentStart)||ee>Ot.mostAdvancedSegmentStart?(Ot.mostAdvancedSegmentStart=ee,Ot.lastSegmentWasReplacement=!1):Ot.lastSegmentWasReplacement=!0,Ot.lastSegmentStart=ee,Ot.lastSegmentDurationS=Rt.chunk.duration,Ot.currentRepresentation=Rt.chunk.representation,v(Ot,Rt.chunk.representation.mediaInfo.type)}}}function M(){L()}function P(){Ee.get().streaming.abr.limitBitrateByPortal&&L()}function O(Rt,Ot){const ee=Ot.absoluteIndex,ne=Ot.bandwidth,re=Rt.utilities[ee];let ie=0;for(let Ot=ee-1;Ot>=0;--Ot)if(Rt.utilities[Ot]<Rt.utilities[ee]){const ee=Rt.representations[Ot].bandwidth,le=Rt.utilities[Ot],oe=Rt.Vp*(Rt.gp+(ne*le-ee*re)/(ne-ee));ie=Math.max(ie,oe)}return ie}function z(Rt){if(Rt&&Ce[Rt.streamId]){const Ot=Ce[Rt.streamId][Rt.mediaType];if(Ot&&Ot.state!==Se){const ne=ee.getCurrentBufferLevel(Rt.mediaType);let re;re=Ot.currentRepresentation.absoluteIndex>0?O(Ot,Ot.currentRepresentation):Ne;const ie=Math.max(0,re-ne);Ot.placeholderBuffer=Math.min(Ot.placeholderBuffer,ie)}}}function L(){Ce={}}return be={getSwitchRequest:function(Rt){try{const ie=(0,re.default)(Ot).create();Rt.getScheduleController().setTimeToLoadDelay(0),ie.rule=this.getClassName(),ie.reason=ie.reason||{};const le=function(Rt){const Ot=Rt.getMediaType(),ee=Rt.getStreamInfo().id;Ce[ee]||(Ce={},Ce[ee]={});let re=Ce[ee][Ot];return re?re.state!==Se&&C(re,Ot):(re=function(Rt){const Ot={}
1,ee=Rt.getMediaInfo(),re=pe.getPossibleVoRepresentationsFilteredBySettings(ee,!0);let ie=re.map((Rt=>Rt.bandwidth)).map((Rt=>Math.log(Rt)));ie=ie.map((Rt=>Rt-ie[0]+1));const le=ne.getBufferTimeDefault(),oe=N(le,re,ie);return oe?(Ot.state=we,Ot.representations=re,Ot.utilities=ie,Ot.bufferTimeDefault=le,Ot.Vp=oe.Vp,Ot.gp=oe.gp,Ot.currentRepresentation=null,T(Ot)):Ot.state=Se,Ot}(Rt),Ce[ee][Ot]=re),re}(Rt);switch(ie.reason.state=le.state,le.state){case Se:break;case we:!function(Rt,Ot,ne){const re=Ot.getMediaType(),ie=Ot.getThroughputController().getSafeAverageThroughput(re);if(isNaN(ie))return;const le=Ot.getMediaInfo(),oe=pe.getOptimalRepresentationForBitrate(le,ie,!0),ue=ee.getCurrentBufferLevel(re);Rt.representation=oe,Rt.reason.throughput=ie,ne.placeholderBuffer=Math.max(0,O(ne,oe)-ue),ne.currentRepresentation=oe,!isNaN(ne.lastSegmentDurationS)&&ue>=ne.lastSegmentDurationS&&(ne.state=Re)}(ie,Rt,le);break;case Re:!function(Rt,Ot,ne){const re=Ot.getMediaType(),ie=Ot.getThroughputController(),le=Ot.getMediaInfo(),oe=ie.getSafeAverageThroughput(re),ue=Ot.getScheduleController();!function(Rt,Ot){const ee=Date.now();if(isNaN(Rt.lastSegmentFinishTimeMs)){if(!isNaN(Rt.lastCallTimeMs)){const Ot=.001*(ee-Rt.lastCallTimeMs);Rt.placeholderBuffer+=Math.max(0,Ot)}}else{const Ot=.001*(ee-Rt.lastSegmentFinishTimeMs);Rt.placeholderBuffer+=Math.max(0,Ot)}Rt.lastCallTimeMs=ee,Rt.lastSegmentStart=NaN,Rt.lastSegmentRequestTimeMs=NaN,Rt.lastSegmentFinishTimeMs=NaN,C(Rt,Ot)}(ne,re);const ce=ee.getCurrentBufferLevel(re);let fe=function(Rt,Ot){const ee=Rt.representations.length;let ne=NaN,re=NaN;for(let ie=0;ie<ee;++ie){let ee=(Rt.Vp*(Rt.utilities[ie]-1+Rt.gp)-Ot)/Rt.representations[ie].bandwidth;(isNaN(re)||ee>=re)&&(re=ee,ne=ie)}return Rt.representations[ne]}(ne,ce+ne.placeholderBuffer);const ge=pe.getOptimalRepresentationForBitrate(le,oe,!0);fe.absoluteIndex>ne.currentRepresentation.absoluteIndex&&fe.absoluteIndex>ge.absoluteIndex&&(fe=ge.absoluteIndex>ne.currentRepresentation.absoluteIndex?ge:ne.currentRepresentation);let he=Math.max(0,ce+ne.placeholderBuffer-D(ne,fe));he<=ne.placeholderBuffer?(ne.placeholderBuffer-=he,he=0):(he-=ne.placeholderBuffer,ne.placeholderBuffer=0,pe.isPlayingAtTopQuality(fe)?he=0:ue.setTimeToLoadDelay(1e3*he)),Rt.representation=fe,Rt.reason.throughput=oe,Rt.reason.bufferLevel=ce,Rt.reason.placeholderBuffer=ne.placeholderBuffer,Rt.reason.delay=he,ne.currentRepresentation=fe}(ie,Rt,le);break;default:!function(Rt,Ot,ee){ye.debug("BOLA ABR rule invoked in bad state.");const ne=Ot.getMediaInfo(),re=Ot.getMediaType(),ie=Ot.getThroughputController().getSafeAverageThroughput(re);Rt.representation=pe.getOptimalRepresentationForBitrate(ne,ie,!0),Rt.reason.state=ee.state,Rt.reason.throughput=ie,ee.state=we,T(ee)}(ie,Rt,le)}return ie.priority=Ee.get().streaming.abr.rules.bolaRule.priority,ie}catch(Rt){return ye.error(Rt),(0,re.default)(Ot).create()}},handleNewMediaInfo:function(Rt){Rt&&Rt.streamInfo&&Rt.type&&Ce[Rt.streamInfo.id]&&Ce[Rt.streamInfo.id][Rt.type]&&delete Ce[Rt.streamInfo.id][Rt.type]},reset:function(){L(),ue.off(he.default.BUFFER_EMPTY,y,be),ue.off(he.default.PLAYBACK_SEEKING,E,be),ue.off(he.default.METRIC_ADDED,_,be),ue.off(he.default.QUALITY_CHANGE_REQUESTED,S,be),ue.off(he.default.FRAGMENT_LOADING_ABANDONED,z,be),ue.off(fe.default.MEDIA_FRAGMENT_LOADED,x,be),ue.off(fe.default.SETTING_UPDATED_MAX_BITRATE,M,be),ue.off(fe.default.SETTING_UPDATED_MIN_BITRATE,M,be),ue.off(fe.default.VIDEO_ELEMENT_RESIZED,P,be)}},ye=(0,le.default)(Ot).getInstance().getLogger(be),Ee=(0,oe.default)(Ot).getInstance(),L(),ue.on(he.default.BUFFER_EMPTY,y,be),ue.on(he.default.PLAYBACK_SEEKING,E,be),ue.on(he.default.METRIC_ADDED,_,be),ue.on(he.default.QUALITY_CHANGE_REQUESTED,S,be),ue.on(he.default.FRAGMENT_LOADING_ABANDONED,z,be),ue.on(fe.default.MEDIA_FRAGMENT_LOADED,x,be),ue.on(fe.default.SETTING_UPDATED_MAX_BITRATE,M,be),ue.on(fe.default.SETTING_UPDATED_MIN_BITRATE,M,be),ue.on(fe.default.VIDEO_ELEMENT_RESIZED,P,be),be}N.__dashjs_factory_name="BolaRule";var Ce=ne.default.getClassFactory(N);const De="L2A_STATE_ONE_BITRATE",xe="L2A_STATE_STARTUP",Me="L2A_STATE_STEADY",Oe=Math.pow(4,.99);function O(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.dashMetrics,ne=(0,ce.default)(Ot).getInstance(),ue=(0,oe.default)(Ot).getInstance();let he,pe,be,ye;function p(Rt){Rt.placeholderBuffer=0,Rt.mostAdvancedSegmentStart=NaN,Rt.lastSegmentWasReplacement=!1,Rt.lastSegmentStart=NaN,Rt.lastSegmentDurationS=NaN,Rt.lastSegmentRequestTimeMs=NaN,Rt.lastSegmentFinishTimeMs=NaN,Rt.lastSegmentUrl=""}function b(){for(const Rt in pe)if(pe.hasOwnProperty(Rt)){const Ot=pe[Rt];Ot.state!==De&&(Ot.state=xe,p(Ot))}}function y(Rt){if(Rt&&Rt.chunk&&Rt.chunk.representation&&Rt.chunk.representation.mediaInfo){const Ot=pe[Rt.chunk.representation.mediaInfo.type],ee=be[Rt.chunk.representation.mediaInfo.type];if(Ot&&Ot.state!==De){const ne=Rt.chunk.start;isNaN(Ot.mostAdvancedSegmentStart)||ne>Ot.mostAdvancedSegmentStart?(Ot.mostAdvancedSegmentStart=ne,Ot.lastSegmentWasReplacement=!1):Ot.lastSegmentWasReplacement=!0,Ot.lastSegmentStart=ne,Ot.lastSegmentDurationS=Rt.chunk.duration,Ot.currentRepresentation=Rt.chunk.representation,T(Ot,ee)}}}function E(Rt){if(Rt&&Rt.metric===ie.HTTP_REQUEST&&Rt.value&&Rt.value.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE&&Rt.value.trace&&Rt.value.trace.length){const Ot=pe[Rt.mediaType],ee=be[Rt.mediaType];Ot&&Ot.state!==De&&(Ot.lastSegmentRequestTimeMs=Rt.value.trequest.getTime(),Ot.lastSegmentFinishTimeMs=Rt.value._tfinish.getTime(),T(Ot,ee))}}function T(Rt,Ot){isNaN(Rt.lastSegmentStart)||isNaN(Rt.lastSegmentRequestTimeMs)||(Ot.segment_request_start_s=.001*Rt.lastSegmentRequestTimeMs,Ot.segment_download_finish_s=.001*Rt.lastSegmentFinishTimeMs,Rt.lastSegmentStart=NaN,Rt.lastSegmentRequestTimeMs=NaN)}function _(Rt,Ot){if(Rt.length!==Ot.length)return-1;let ee=0;for(let ne=0;ne<Rt.length;ne++)ee+=Rt[ne]*Ot[ne];return ee}function v(){pe={},be={}}return he={getSwitchRequest:function(Rt){try{const ne=(0,re.default)(Ot).create();ne.rule=this.getClassName();const ie=Rt.getMediaType(),le=Rt.getScheduleController();if(ne.reason=ne.reason||{},ie===ge.default.AUDIO)return ne;le.setTimeToLoadDelay(0);const oe=function(Rt){const Ot=Rt.getMediaType();let ee=pe[Ot];return ee||(ee=function(Rt){const Ot={},ee=Rt.getMediaInfo();return Ot.state=xe,Ot.currentRepresentation=null,function(Rt){Rt&&Rt.type&&(be[Rt.type]={},be[Rt.type].w=[],be[Rt.type].prev_w=[],be[Rt.type].Q=0,be[Rt.type].segment_request_start_s=0,be[Rt.type].segment_download_finish_s=0,be[Rt.type].B_target=1.5)}(ee),p(Ot),Ot}(Rt),pe[Ot]=ee),ee}(Rt);if(!be[ie])return ne;switch(ne.reason.state=oe.state,oe.state){case De:break;case xe:!function(Rt,Ot,ne){const re=Rt.getMediaInfo(),ie=Rt.getMediaType(),le=Rt.getThroughputController().getSafeAverageThroughput(ie);if(isNaN(le))return Ot;const oe=Rt.getAbrController(),ue=oe.getOptimalRepresentationForBitrate(re,le,!0),ce=ee.getCurrentBufferLevel(ie,!0),fe=be[ie],ge=oe.getPossibleV
1oRepresentationsFilteredBySettings(re,!0);if(Ot.representation=ue,Ot.reason.throughput=le,ne.currentRepresentation=ue,!isNaN(ne.lastSegmentDurationS)&&ce>=fe.B_target){ne.state=Me,fe.Q=Oe;for(let Rt=0;Rt<ge.length;++Rt)ge[Rt].id===ne.currentRepresentation.id?fe.prev_w[Rt]=1:fe.prev_w[Rt]=0}}(Rt,ne,oe);break;case Me:!function(Rt,Ot,ne){let re=[];const ie=Rt.getThroughputController(),le=Rt.getMediaType();let oe=ie.getAverageThroughput(le,ge.default.THROUGHPUT_CALCULATION_MODES.ARITHMETIC_MEAN,1),ue=ee.getCurrentHttpRequest(le),ce=null;const fe=be[le];if(oe<1&&(oe=1),ue.url===ne.lastSegmentUrl||ue.type===_e.HTTPRequest.INIT_SEGMENT_TYPE)ce=ne.currentRepresentation;else{let Ot=ne.lastSegmentDurationS,ee=1;const ie=Rt.getAbrController(),le=Rt.getMediaInfo(),ge=ie.getPossibleVoRepresentationsFilteredBySettings(le,!0);let he=Rt.getVideoModel().getPlaybackRate();const pe=Math.max(Math.pow(4,1),Oe*Math.sqrt(4));for(let Rt=0;Rt<ge.length;++Rt){const ne=ge[Rt];he*ne.bitrateInKbit>oe&&(ee=-1),fe.w[Rt]=fe.prev_w[Rt]+ee*(Ot/(2*pe))*((fe.Q+Oe)*(he*ne.bitrateInKbit/oe))}fe.w=function(Rt){const Ot=Rt.length;let ee=!1,ne=[];for(let ee=0;ee<Ot;++ee)ne[ee]=Rt[ee];let re=Rt.sort((function(Rt,Ot){return Ot-Rt})),ie=0,le=0,oe=[];for(let Rt=0;Rt<Ot-1;++Rt)if(ie+=re[Rt],le=(ie-1)/(Rt+1),le>=re[Rt+1]){ee=!0;break}ee||(le=(ie+re[Ot-1]-1)/Ot);for(let Rt=0;Rt<Ot;++Rt)oe[Rt]=Math.max(ne[Rt]-le,0);return oe}(fe.w);for(let Rt=0;Rt<ge.length;++Rt)re[Rt]=fe.w[Rt]-fe.prev_w[Rt],fe.prev_w[Rt]=fe.w[Rt];const be=ge.map((Rt=>Rt.bandwidth));fe.Q=Math.max(0,fe.Q-Ot+Ot*he*((_(be,fe.prev_w)+_(be,re))/oe));let ye=[];for(let Rt=0;Rt<be.length;++Rt)ye[Rt]=Math.abs(be[Rt]-_(fe.w,be));const Ee=ye.indexOf(Math.min(...ye));ce=ie.getRepresentationByAbsoluteIndex(Ee,le,!0),ce.absoluteIndex>ne.currentRepresentation.absoluteIndex&&be[ne.currentRepresentation.absoluteIndex+1]<=oe&&(ce=ie.getRepresentationByAbsoluteIndex(ne.currentRepresentation.absoluteIndex+1,le,!0)),ce.bitrateInKbit>=oe&&(fe.Q=2*Math.max(Oe,fe.Q)),ne.lastSegmentUrl=ue.url}Ot.representation=ce,ne.currentRepresentation=Ot.representation}(Rt,ne,oe);break;default:!function(Rt,Ot,ee){const ne=Rt.getAbrController(),re=Rt.getMediaInfo(),ie=Rt.getMediaType(),le=Rt.getThroughputController().getSafeAverageThroughput(ie);Ot.representation=ne.getOptimalRepresentationForBitrate(re,le,!0),Ot.reason.throughput=le,ee.state=xe,p(ee)}(Rt,ne,oe)}return ne.priority=ue.get().streaming.abr.rules.l2ARule.priority,ne}catch(Rt){return ye.error(Rt),(0,re.default)(Ot).create()}},reset:function(){v(),ne.off(fe.default.PLAYBACK_SEEKING,b,he),ne.off(fe.default.MEDIA_FRAGMENT_LOADED,y,he),ne.off(fe.default.METRIC_ADDED,E,he)}},ye=(0,le.default)(Ot).getInstance().getLogger(he),v(),ne.on(fe.default.PLAYBACK_SEEKING,b,he),ne.on(fe.default.MEDIA_FRAGMENT_LOADED,y,he),ne.on(fe.default.METRIC_ADDED,E,he),he}O.__dashjs_factory_name="L2ARule";var Pe=ne.default.getClassFactory(O);function L(){const Rt=this.context;let Ot,ee,ne,re,ie,oe,ue,ce,fe;function c(){ne=null,re=1,ie=100,oe=0,ue=null,ce=null,fe="dynamic_weight_selection"}function f(){let Rt=0;if(ne)for(let Ot=0;Ot<ne.length;Ot++){let ee=ne[Ot];ee.state.throughput>Rt&&(Rt=ee.state.throughput)}return Rt}function g(Rt,Ot,ee){let ne=Rt.map(((Rt,ne)=>ee[ne]*Math.pow(Rt-Ot[ne],2))).reduce(((Rt,Ot)=>Rt+Ot));return(ne<0?-1:1)*Math.sqrt(Math.abs(ne))}function m(Rt,Ot){return g([Rt.state.throughput,Rt.state.latency,Rt.state.rebuffer,Rt.state.switch],[Ot.state.throughput,Ot.state.latency,Ot.state.rebuffer,Ot.state.switch],[1,1,1,1])}function h(Rt,Ot){for(let ee=0;ee<ne.length;ee++){let re=ne[ee],ie=.1;const le=m(re,Rt);p(re,Ot,Math.exp(-1*Math.pow(le,2)/(2*Math.pow(ie,2))))}}function p(Rt,Ot,ee){let ne=Rt.state,re=[.01,.01,.01,.01];ne.throughput=ne.throughput+(Ot[0]-ne.throughput)*re[0]*ee,ne.latency=ne.latency+(Ot[1]-ne.latency)*re[1]*ee,ne.rebuffer=ne.rebuffer+(Ot[2]-ne.rebuffer)*re[2]*ee,ne.switch=ne.switch+(Ot[3]-ne.switch)*re[3]*ee}return Ot={getNextQuality:function(Rt,Ot,le,ge,he,pe,be,ye){let Ee=ge,_e=le;!function(Rt,Ot){if(!ne){ne=[];const ee=Ot.getPossibleVoRepresentationsFilteredBySettings(Rt,!0),ie=ee.map((Rt=>Rt.bandwidth));oe=Math.min(...ie),re=function(Rt){const Ot=Rt.map((Rt=>Math.pow(Rt,2))).reduce(((Rt,Ot)=>Rt+Ot));return Math.sqrt(Ot)}(ie),ee.forEach((Rt=>{let Ot={representation:Rt,state:{throughput:Rt.bandwidth/re,latency:0,rebuffer:0,switch:0}};ne.push(Ot)})),ce=function(Rt){let Ot=[],ee=function(Rt){let Ot=[];for(let ee=0;ee<Rt;
1ee++){let Rt=[Math.random()*f(),Math.random(),Math.random(),Math.random()];Ot.push(Rt)}return Ot}(Math.pow(Rt.length,2));Ot.push(ee[0]);let ne=[1,1,1,1];for(let re=1;re<Rt.length;re++){let Rt=null,re=null;for(let ie=0;ie<ee.length;ie++){let le=ee[ie],oe=null;for(let Rt=0;Rt<Ot.length;Rt++){let ee=g(le,Ot[Rt],ne);(null===oe||ee<oe)&&(oe=ee)}(null===re||oe>re)&&(Rt=le,re=oe)}Ot.push(Rt)}let re=null,ie=null;for(let Rt=0;Rt<Ot.length;Rt++){let ee=0;for(let re=0;re<Ot.length;re++)Rt!==re&&(ee+=g(Ot[Rt],Ot[re],ne));(null===re||ee>re)&&(re=ee,ie=Rt)}let le=[];for(le.push(Ot[ie]),Ot.splice(ie,1);Ot.length>0;){let Rt=null,ee=null;for(let re=0;re<Ot.length;re++){let ie=g(le[0],Ot[re],ne);(null===Rt||ie<Rt)&&(Rt=ie,ee=re)}le.push(Ot[ee]),Ot.splice(ee,1)}return le}(ne)}}(Ot,Rt);let Se=le/re;Se>1&&(Se=f()),ge/=ie;let we=ne.find((Rt=>Rt.representation.id===be.id)),Re=we.representation.bandwidth*ye.getSegmentDuration()/_e,Ne=Math.max(0,Re-he);if(he-Re<ye.getMinBuffer())return ee.debug(`Buffer is low for bitrate= ${we.representation.bandwidth} downloadTime=${Re} currentBuffer=${he} rebuffer=${Ne}`),function(Rt,Ot){let ee=0,re=Rt;if(ne)for(let ie=0;ie<ne.length;ie++){let le=ne[ie];le.representation.bandwidth<Rt.representation.bandwidth&&le.representation.bandwidth>ee&&Ot>le.representation.bandwidth&&(ee=le.representation.bandwidth,re=le)}return re}(we,_e).representation;switch(fe){case"manual_weight_selection":ue=[.4,.4,.4,.4];break;case"random_weight_selection":ue=function(Rt){let Ot=[],ee=Math.sqrt(2/Rt);for(let Rt=0;Rt<4;Rt++)Ot.push(Math.random()*ee);return ue=Ot,ue}(ne.length);break;default:!function(Rt,Ot,ee,re,ie,le){ue||(ue=ce[ce.length-1]);let oe=Rt.findWeightVector(ne,Ot,ee,re,ie,le);null!==oe&&-1!==oe&&(ue=oe)}(ye,Ee,he,Ne,_e,pe)}let Ce=null,De=null,xe=null;for(let Rt=0;Rt<ne.length;Rt++){let Ot=ne[Rt],re=Ot.state,ie=[re.throughput,re.latency,re.rebuffer,re.switch],ce=ue.slice(),fe=ye.getNextBufferWithBitrate(Ot.representation.bandwidth,he,_e),ge=fe<ye.getMinBuffer();ge&&ee.debug(`Buffer is low for bitrate=${Ot.representation.bandwidth} downloadTime=${Re} currentBuffer=${he} nextBuffer=${fe}`),(Ot.representation.bandwidth>le-1e4||ge)&&Ot.representation.bandwidth!==oe&&(ce[0]=100);let pe=g(ie,[Se,0,0,0],ce);(null===Ce||pe<Ce)&&(Ce=pe,De=Ot.representation,xe=Ot)}let Me=Math.abs(we.representation.bandwidth-xe.representation.bandwidth)/re;return h(we,[Se,ge,Ne,Me]),h(xe,[Se,0,0,Me]),De},reset:function(){c()}},ee=(0,le.default)(Rt).getInstance().getLogger(Ot),c(),Ot}L.__dashjs_factory_name="LearningAbrController";var Fe=ne.default.getClassFactory(L);function j(){let Rt,Ot,ee,ne,re;function i(){Ot=null,ee=null,ne=null,re=null}function l(Rt,Ot,ee,ne){let re=new class{constructor(){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}};return re.type=Rt,re.weights.bitrateReward=Ot||1,re.weights.bitrateSwitchPenalty=1,re.weights.rebufferPenalty=ee||1e3,re.weights.latencyPenalty=[],re.weights.latencyPenalty.push({threshold:1.1,penalty:.05*ne}),re.weights.latencyPenalty.push({threshold:1e8,penalty:.1*ee}),re.weights.playbackSpeedPenalty=ne||200,re}function o(Rt,Ot,ee,ne,re){re.bitrateWSum+=re.weights.bitrateReward*Rt,re.lastBitrate&&(re.bitrateSwitchWSum+=re.weights.bitrateSwitchPenalty*Math.abs(Rt-re.lastBitrate)),re.lastBitrate=Rt,re.rebufferWSum+=re.weights.rebufferPenalty*Ot;for(let Rt=0;Rt<re.weights.latencyPenalty.length;Rt++){let Ot=re.weights.latencyPenalty[Rt];if(ee<=Ot.threshold){re.latencyWSum+=Ot.penalty*ee;break}}re.playbackSpeedWSum+=re.weights.playbackSpeedPenalty*Math.abs(1-ne),re.totalQoe=re.bitrateWSum-re.bitrateSwitchWSum-re.rebufferWSum-re.latencyWSum-re.playbackSpeedWSum}return Rt={setupPerSegmentQoe:function(Rt,ie,le){Ot=l("segment",Rt,ie,le),ee=Rt,ne=ie,re=le},logSegmentMetrics:function(Rt,ee,ne,re){Ot&&o(Rt,ee,ne,re,Ot)},getPerSegmentQoe:function(){return Ot},calculateSingleUseQoe:function(Rt,Ot,ie,le){let oe=null;return ee&&ne&&re&&(oe=l("segment",ee,ne,re)),oe?(o(Rt,Ot,ie,le,oe),oe.totalQoe):0},reset:function(){i()}},i(),Rt}j.__dashjs_factory_name="LoLpQoeEvaluator";var Ue=ne.default.getClassFactory(j);function B(Rt){let Ot,ee,ne,re,ie,le=Rt.targetLatency,oe=Rt.bufferMin,ue=Rt.segmentDuration,ce=Rt.qoeEvaluator;function d(){return ue}function c(Rt,Ot){const ee=d();let ne;return ne=Ot>ee?Rt-ee:Rt+ee-Ot,ne}return Ot={getMinBuffer:function(){return oe},getSegmentDuration:d,getNextBufferWithBitrate:function(Rt,Ot,ee){return c(Ot,Rt*ue/ee)},getNextBuffer:c,findWeightVector:function(Rt,Ot,ee,ne,fe,ge){let he=null,pe=null,be=null,ye=Math.abs(Ot-ie);return Rt.forEach((Rt=>{re.forEach((ne=>{ne[0];let re,ie=ne[1],Ee=ne[2],_e=(ne[3],Rt.representation.bandwidth*ue/fe),Se=c(ee,_e);re=0===Ee?10:1/Ee;let we=re*Math.max(1e-5,_e-Se);re=0===ie?10:1/ie;let Re=re*Rt.state.latency,Ne=ce.calculateSingleUseQoe(Rt.representation.bandwidth,we,Re,ge);(null===he||Ne>he)&&function(Rt,Ot,ee){return!(Rt>le+ee)&&Ot>=oe}(Ot,Se,ye)&&(he=Ne,pe=ne,be=Rt.representation.bandwidth)}))})),null===pe&&null===be&&(pe=-1),ie=Ot,pe}},ee=[.2,.4,.6,.8,1],ne=4,re=function(Rt){let Ot=Rt.map((function(Rt){return[Rt]}
1)),n=function(Ot,ee,ne){if(ne===ee)return Ot;let re=Ot.length;for(let ee=0;ee<re;ee++){let ee=Ot.shift();for(let ne=0;ne<Rt.length;ne++)Ot.push(ee.concat(Rt[ne]))}return n(Ot,ee,ne+1)};return n(Ot,4,1)}(ee),ie=0,Ot}B.__dashjs_factory_name="LoLpWeightSelector";var je=ne.default.getClassFactory(B);function H(Rt){let Ot,ee,ne,ue,ce,fe=(Rt=Rt||{}).dashMetrics,he=this.context;return ne={getSwitchRequest:function(Rt){try{let ne=(0,re.default)(he).create();ne.rule=this.getClassName();let le=Rt.getMediaInfo().type,oe=Rt.getAbrController();const pe=Rt.getStreamInfo();let be=Rt.getRepresentation();const ye=Rt.getMediaInfo(),Ee=fe.getCurrentBufferState(le),_e=Rt.getScheduleController(),Se=fe.getCurrentBufferLevel(le,!0),we=_e.getPlaybackController();let Re=we.getCurrentLiveLatency();if(le===ge.default.AUDIO)return ne;Re||(Re=0);const Ne=we.getPlaybackRate(),Ce=Rt.getThroughputController().getSafeAverageThroughput(le);if(Ot.debug(`Throughput ${Math.round(Ce)} kbps`),isNaN(Ce)||!Ee)return ne;if(oe.getAbandonmentStateFor(pe.id,le)===ie.ABANDON_LOAD)return ne;let De=oe.getPossibleVoRepresentationsFilteredBySettings(ye,!0).map((Rt=>Rt.bandwidth)),xe=Rt.getRepresentation().fragmentDuration,Me=Math.min(...De)/1e3,Oe=Math.max(...De)/1e3,Pe=be.bandwidth/1e3,Fe=fe.getCurrentHttpRequest(le,!0),Ue=(Fe.tresponse.getTime()-Fe.trequest.getTime())/1e3,qe=Ue>xe?Ue-xe:0;ce.setupPerSegmentQoe(xe,Oe,Me),ce.logSegmentMetrics(Pe,qe,Re,Ne);let Ge=je(he).create({targetLatency:1.5,bufferMin:.3,segmentDuration:xe,qoeEvaluator:ce});return ne.representation=ue.getNextQuality(oe,ye,1e3*Ce,Re,Se,Ne,be,Ge),ne.reason={throughput:Ce,latency:Re},ne.priority=ee.get().streaming.abr.rules.loLPRule.priority,_e.setTimeToLoadDelay(0),ne}catch(Rt){throw Rt}},reset:function(){ue.reset(),ce.reset()}},Ot=(0,le.default)(he).getInstance().getLogger(ne),ue=Fe(he).create(),ce=Ue(he).create(),ee=(0,oe.default)(he).getInstance(),ne}H.__dashjs_factory_name="LoLPRule";var qe=ne.default.getClassFactory(H);function V(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.mediaPlayerModel,ne=Rt.customParametersModel,ie=Rt.dashMetrics,le=Rt.settings,oe=(0,ce.default)(Ot).getInstance();let he,_e,Se,we;function p(){Object.values(ge.default.QUALITY_SWITCH_RULES).forEach((Rt=>{_e=y(Rt,_e)})),Object.values(ge.default.ABANDON_FRAGMENT_RULES).forEach((Rt=>{Se=y(Rt,Se)}
1)),ne.getAbrCustomRules().forEach((function(Rt){Rt.type===ge.default.RULES_TYPES.QUALITY_SWITCH_RULES&&_e.push(Rt.rule(Ot).create()),Rt.type===ge.default.RULES_TYPES.ABANDON_FRAGMENT_RULES&&Se.push(Rt.rule(Ot).create())})),0===_e.length&&(_e.push(Ce(Ot).create({dashMetrics:ie,mediaPlayerModel:ee,settings:le})),_e.push(ue(Ot).create({dashMetrics:ie})))}function y(Rt,ne){const re=Rt.charAt(0).toLowerCase()+Rt.slice(1);return le.get().streaming.abr.rules[re].active&&!function(Rt,Ot){return Rt.filter((Rt=>Rt.getClassName()===Ot)).length>0}(ne,Rt)?(ne.push(function(Rt){switch(Rt){case ge.default.QUALITY_SWITCH_RULES.BOLA_RULE:return Ce(Ot).create({dashMetrics:ie,mediaPlayerModel:ee,settings:le});case ge.default.QUALITY_SWITCH_RULES.THROUGHPUT_RULE:return ue(Ot).create({dashMetrics:ie});case ge.default.QUALITY_SWITCH_RULES.INSUFFICIENT_BUFFER_RULE:return pe(Ot).create({dashMetrics:ie,settings:le});case ge.default.QUALITY_SWITCH_RULES.SWITCH_HISTORY_RULE:return Ee(Ot).create();case ge.default.QUALITY_SWITCH_RULES.DROPPED_FRAMES_RULE:return ye(Ot).create();case ge.default.QUALITY_SWITCH_RULES.LEARN_TO_ADAPT_RULE:return Pe(Ot).create({dashMetrics:ie,settings:le});case ge.default.QUALITY_SWITCH_RULES.LOL_PLUS_RULE:return qe(Ot).create({dashMetrics:ie});case ge.default.ABANDON_FRAGMENT_RULES.ABANDON_REQUEST_RULE:return be(Ot).create({dashMetrics:ie,mediaPlayerModel:ee,settings:le})}}(Rt)),ne):le.get().streaming.abr.rules[re].active?ne:function(Rt,Ot){return Rt.filter((Rt=>Rt.getClassName()!==Ot))}(ne,Rt)}function T(Rt){return Rt.filter((Rt=>Rt.representation!==re.default.NO_CHANGE))}function v(Rt){const Ot={};let ee,ne,ie,le=null;if(0!==Rt.length){for(Ot[re.default.PRIORITY.STRONG]=null,Ot[re.default.PRIORITY.WEAK]=null,Ot[re.default.PRIORITY.DEFAULT]=null,ee=0,ne=Rt.length;ee<ne;ee+=1)ie=Rt[ee],ie.representation!==re.default.NO_CHANGE&&(null===Ot[ie.priority]||Ot[ie.priority].representation!==re.default.NO_CHANGE&&ie.representation.bitrateInKbit<Ot[ie.priority].representation.bitrateInKbit)&&(Ot[ie.priority]=ie);return Ot[re.default.PRIORITY.WEAK]&&Ot[re.default.PRIORITY.WEAK].representation!==re.default.NO_CHANGE&&(le=Ot[re.default.PRIORITY.WEAK]),Ot[re.default.PRIORITY.DEFAULT]&&Ot[re.default.PRIORITY.DEFAULT].representation!==re.default.NO_CHANGE&&(le=Ot[re.default.PRIORITY.DEFAULT]),Ot[re.default.PRIORITY.STRONG]&&Ot[re.default.PRIORITY.STRONG].representation!==re.default.NO_CHANGE&&(le=Ot[re.default.PRIORITY.STRONG]),le}}function w(){p()}return he={clearDataForStream:function(Rt){[_e,Se].forEach((Ot=>{Ot&&Ot.length&&Ot.forEach((Ot=>Ot.clearDataForStream&&"function"==typeof Ot.clearDataForStream&&Ot.clearDataForStream(Rt)))}))},getAbandonFragmentRules:function(){return Se},getBestPossibleSwitchRequest:function(Rt){return Rt&&v(T(_e.filter((Ot=>{const ee=Ot.getClassName();if(ee!==ge.default.QUALITY_SWITCH_RULES.BOLA_RULE&&ee!==ge.default.QUALITY_SWITCH_RULES.THROUGHPUT_RULE)return!0;const ne=Rt.getMediaType();return we[ne]&&ee===ge.default.QUALITY_SWITCH_RULES.BOLA_RULE||!we[ne]&&ee===ge.default.QUALITY_SWITCH_RULES.THROUGHPUT_RULE})).map((Ot=>Ot.getSwitchRequest(Rt)))))||(0,re.default)(Ot).create()},getBolaState:function(Rt){return we[Rt]},getMinSwitchRequest:v,getQualitySwitchRules:function(){return _e},handleNewMediaInfo:function(Rt){_e.forEach((Ot=>Ot.handleNewMediaInfo&&Ot.handleNewMediaInfo(Rt))),Se.forEach((Ot=>Ot.handleNewMediaInfo&&Ot.handleNewMediaInfo(Rt)))},initialize:function(){_e=[],Se=[],we={},p(),oe.on(fe.default.SETTING_UPDATED_ABR_ACTIVE_RULES,w,he)},reset:function(){[_e,Se].forEach((Rt=>{Rt&&Rt.length&&Rt.forEach((Rt=>Rt.reset&&Rt.reset()))})),_e=[],Se=[],we={},oe.off(fe.default.SETTING_UPDATED_ABR_ACTIVE_RULES,w,he)},setBolaState:function(Rt,Ot){we[Rt]=Ot},shouldAbandonFragment:function(Rt){if(!Rt)return(0,re.default)(Ot).create();const ee=v(T(Se.map((Ot=>Ot.shouldAbandon(Rt)))));return ee&&ee.reason&&(ee.reason.forceAbandon=!0),ee||(0,re.default)(Ot).create()}},he}V.__dashjs_factory_name="ABRRulesCollection";const Ge=ne.default.getClassFactory(V);ne.default.updateSingletonFactory(V.__dashjs_factory_name,Ge);var We=Ge;class ${constructor(Rt){this.action=$.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.isPartialSegmentRequest=!1,this.mediaStartTime=NaN,this.mediaType=null,this.presentationStartTime=NaN,this.range=null,this.representation=null,this.responseType="arraybuffer",this.retryAttempts=0,this.serviceLocation=null,this.startDate=null,this.startTime=NaN,this.timescale=NaN,this.type=null,this.url=Rt||null,this.wallStartTime=null}isInitializationRequest(){return this.type&&this.type===_e.HTTPRequest.INIT_SEGMENT_TYPE}setInfo(Rt){this.type=Rt&&Rt.init?_e.HTTPRequest.INIT_SEGMENT_TYPE:_e.HTTPRequest.MEDIA_SEGMENT_TYPE,this.url=Rt&&Rt.url?Rt.url:null,this.range=Rt&&Rt.range?Rt.range.start+"-"+Rt.range.end:null,this.mediaType=Rt&&Rt.mediaType?Rt.mediaType:null,this.representation=Rt&&Rt.representation?Rt.representation:null}}$.ACTION_DOWNLOAD="download",$.ACTION_COMPLETE="complete";var ln=$;const on="loading",sn="executed",un="failed";function tt(Rt){const Ot=(Rt=Rt||{}).eventBus,ee=Rt.events,ne=Rt.dashMetrics,re=Rt.fragmentLoader,ie=Rt.debug,le=Rt.streamInfo,oe=Rt.type;let ue,ce,fe,ge;function f(Rt){return!!Rt&&function(Ot){let ee=!1;return Ot.some((Ot=>
1{if(ne=Rt,re=Ot,!isNaN(ne.index)&&ne.startTime===re.startTime&&ne.adaptationIndex===re.adaptationIndex&&ne.type===re.type||function(Rt,Ot){return Rt.representation.id===Ot.representation.id}(Rt,Ot)||function(Rt,Ot){return Rt.action===ln.ACTION_COMPLETE&&Rt.action===Ot.action}(Rt,Ot))return ee=!0,ee;var ne,re})),ee}(fe)}function g(Rt){return isNaN(Rt.duration)?.25:Math.min(Rt.duration/8,.5)}function m(Rt){fe=fe.filter((Ot=>{const ee=g(Ot);return isNaN(Ot.startTime)||void 0!==Rt&&Ot.startTime>=Rt-ee}))}function h(Rt,Ot){Ot<=Rt+.5||(fe=fe.filter((ee=>{const ne=g(ee);return isNaN(ee.startTime)||ee.startTime>=Ot-ne||isNaN(ee.duration)||ee.startTime+ee.duration<=Rt+ne})))}function p(Rt,Ot,ee){for(let ne=Rt.length-1;ne>=0;ne--){const re=Rt[ne],ie=re.startTime,le=ie+re.duration;if(ee=isNaN(ee)?g(re):ee,!isNaN(ie)&&!isNaN(le)&&Ot+ee>=ie&&Ot-ee<le||isNaN(ie)&&isNaN(Ot))return re}return null}function b(Rt,Ot){ne.addSchedulingInfo(Rt,Ot),ne.addRequestsQueue(Rt.mediaType,ge,fe)}function y(Rt){Rt.sender===re&&(ge.splice(ge.indexOf(Rt.request),1),Rt.response&&!Rt.error&&fe.push(Rt.request),b(Rt.request,Rt.error?un:sn),Ot.trigger(ee.FRAGMENT_LOADING_COMPLETED,{request:Rt.request,response:Rt.response,error:Rt.error,sender:this},{streamId:le.id,mediaType:oe}))}function E(Rt){Rt.sender===re&&Ot.trigger(ee.FRAGMENT_LOADING_PROGRESS,{request:Rt.request,response:Rt.response,error:Rt.error,sender:this},{streamId:le.id,mediaType:oe})}function T(Rt){Rt.sender===re&&Ot.trigger(ee.FRAGMENT_LOADING_ABANDONED,{request:Rt.request},{streamId:le.id,mediaType:oe})}function _(){fe=[],ge=[],re&&re.resetInitialSettings()}return ue={abortRequests:function(){ce.debug("abort requests"),re.abort(),ge=[]},executeRequest:function(Rt){Rt.action===ln.ACTION_DOWNLOAD?(b(Rt,on),ge.push(Rt),function(Rt){Ot.trigger(ee.FRAGMENT_LOADING_STARTED,{request:Rt},{streamId:le.id,mediaType:oe}),re.load(Rt)}(Rt)):ce.warn("Unknown request action.")},getRequests:function(Rt){const Ot=Rt?Rt.state instanceof Array?Rt.state:[Rt.state]:[];let ee=[];return Ot.forEach((Ot=>{const ne=function(Rt){let Ot;switch(Rt){case on:Ot=ge;break;case sn:Ot=fe;break;default:Ot=[]}return Ot}(Ot);ee=ee.concat(function(Rt,Ot){return Ot.hasOwnProperty("time")?[p(Rt,Ot.time,Ot.threshold)]:Rt.filter((Rt=>{for(const ee in Ot)if("state"!==ee&&Ot.hasOwnProperty(ee)&&Rt[ee]!=Ot[ee])return!1;return!0}))}(ne,Rt))})),ee},getStreamId:function(){return le.id},getType:function(){return oe},isFragmentLoaded:f,isFragmentLoadedOrPending:function(Rt){let Ot,ee=!1,ne=0;if(ee=f(Rt),!ee)for(ne=0;ne<ge.length;ne++)Ot=ge[ne],Rt.url===Ot.url&&Rt.startTime===Ot.startTime&&(ee=!0);return ee},removeExecutedRequestsAfterTime:function(Rt){fe=fe.filter((Ot=>isNaN(Ot.startTime)||void 0!==Rt&&Ot.startTime<Rt))},removeExecutedRequestsBeforeTime:m,reset:function(){Ot.off(ee.LOADING_COMPLETED,y,this),Ot.off(ee.LOADING_DATA_PROGRESS,E,this),Ot.off(ee.LOADING_ABANDONED,T,this),re&&re.reset(),_()},resetInitialSettings:_,syncExecutedRequestsWithBufferedRange:function(Rt,Ot){if(!Rt||0===Rt.length)return void m();let ee=0;for(let Ot=0,ne=Rt.length;Ot<ne;Ot++)h(ee,Rt.start(Ot)),ee=Rt.end(Ot);Ot>0&&h(ee,Ot)}},ce=ie.getLogger(ue),_(),Ot.on(ee.LOADING_COMPLETED,y,ue),Ot.on(ee.LOADING_DATA_PROGRESS,E,ue),Ot.on(ee.LOADING_ABANDONED,T,ue),ue}tt.__dashjs_factory_name="FragmentModel";const dn=ne.default.getClassFactory(tt);dn.FRAGMENT_MODEL_LOADING=on,dn.FRAGMENT_MODEL_EXECUTED=sn,dn.FRAGMENT_MODEL_CANCELED="canceled",dn.FRAGMENT_MODEL_FAILED=un,ne.default.updateClassFactory(tt.__dashjs_factory_name,dn);var cn=dn;function at(Rt){let Ot;const ee=(Rt=Rt||{}).abrController,ne=Rt.throughputController,re=Rt.switchRequestHistory,ie=Rt.droppedFramesHistory,le=Rt.currentRequest,oe=Rt.streamProcessor?Rt.streamProcessor.getScheduleController():null,ue=Rt.streamProcessor?Rt.streamProcessor.getRepresentation():null,ce=Rt.videoModel?Rt.videoModel:null;function d(){return ue?ue.mediaInfo:null}return Ot={getAbrController:function(){return ee},getCurrentRequest:function(){return le},getDroppedFramesHistory:function(){return ie},getMediaInfo:d,getMediaType:function(){const Rt=d();return Rt?Rt.type:null},getRepresentation:function(){return ue},getScheduleController:function(){return oe},getStreamInfo:function(){const Rt=d();return Rt?Rt.streamInfo:null},getSwitchRequestHistory:function(){return re},getThroughputController:function(){return ne},getVideoModel:function(){return ce}},Ot}at.__dashjs_factory_name="RulesContext";var fn=ne.default.getClassFactory(at);function it(){let Rt={},Ot={};const ee=this.context,ne=(0,oe.default)(ee).getInstance();return{clearForStream:function(ee){delete Rt[ee],delete Ot[ee]},getSwitchRequests:function(Ot,ee){return null!=Ot&&null!=ee&&Rt[Ot]&&Rt[Ot][ee]?Rt[Ot][ee]:{}},push:function(ee){const re=ee.currentRepresentation,ie=ee.newRepresentation;if(re.mediaInfo.streamInfo.id!==ie.mediaInfo.streamInfo.id||ie.mediaInfo.id!==re.mediaInfo.id)return;const le=re.mediaInfo.streamInfo.id;Rt[le]||function(ee){Rt[ee]={},Ot[ee]={}}(le);const oe=re.mediaInfo.type;Rt[le][oe]||function(ee,ne){Rt[ee][ne]={},Ot[ee][ne]=[]}(le,oe);const ue=ee.currentRepresentation.id;
1Rt[le][oe][ue]||function(Ot,ee,ne){Rt[Ot][ee][ne]={noDrops:0,drops:0,dropSize:0}}(le,oe,ue);let ce=ee.newRepresentation.absoluteIndex-ee.currentRepresentation.absoluteIndex,fe=ce<0?1:0,ge=fe?-ce:0,he=fe?0:1;Rt[le][oe][ee.currentRepresentation.id].drops+=fe,Rt[le][oe][ee.currentRepresentation.id].dropSize+=ge,Rt[le][oe][ee.currentRepresentation.id].noDrops+=he,Ot[le][oe].push({id:ee.currentRepresentation.id,noDrop:he,drop:fe,dropSize:ge});const pe=function(Rt,ee){return Ot[Rt][ee].length>ne.get().streaming.abr.rules.switchHistoryRule.parameters.sampleSize?Ot[Rt][ee].shift():null}(le,oe);pe&&function(Ot,ee,ne){Rt[Ot][ee][ne.id].drops-=ne.drop,Rt[Ot][ee][ne.id].dropSize-=ne.dropSize,Rt[Ot][ee][ne.id].noDrops-=ne.noDrop}(le,oe,pe)},reset:function(){Rt={},Ot={}}}}it.__dashjs_factory_name="SwitchRequestHistory";var gn=ne.default.getClassFactory(it);function ot(){let Rt={},Ot={},ee={};return{clearForStream:function(ne){delete Rt[ne],delete Ot[ne],delete ee[ne]},getFrameHistory:function(Ot){return Rt[Ot]},push:function(ne,re,ie){if(!re)return;Rt[ne]||function(ne){Rt[ne]=[],Ot[ne]=0,ee[ne]=0}(ne);let le=ie&&ie.droppedVideoFrames?ie.droppedVideoFrames:0,oe=ie&&ie.totalVideoFrames?ie.totalVideoFrames:0,ue=le-Ot[ne];Ot[ne]=le;let ce=oe-ee[ne];ee[ne]=oe;const fe=Rt[ne];fe[re]?(fe[re].droppedVideoFrames+=ue,fe[re].totalVideoFrames+=ce):fe[re]={droppedVideoFrames:ue,totalVideoFrames:ce}},reset:function(){Rt={},Ot={},ee={}}}}ot.__dashjs_factory_name="DroppedFramesHistory";var bn=ne.default.getClassFactory(ot);function ut(){const Rt=this.context,Ot=(0,le.default)(Rt).getInstance(),ee=(0,ce.default)(Rt).getInstance();let ne,oe,ue,pe,be,ye,Ee,_e,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je;function D(){ne={},Pe={},xe=new Map,Re&&Re.reset(),Fe&&Fe.reset(),Ee=void 0,Re=void 0,Fe=void 0,clearTimeout(oe),oe=null}function x(Rt,Ot=!0){let ee=M(Rt,Ot);return ee=function(Rt){try{return function(Rt){try{if(!Me.get().streaming.cmsd.enabled||!Me.get().streaming.cmsd.abr.applyMb)return Rt;const Ot=Rt.filter((Rt=>{const Ot=Rt.mediaInfo.type;let ee=ye.getMaxBitrate(Ot);if(Ot!==ge.default.VIDEO||ee<0)return!0;const ne=Rt.mediaInfo.streamInfo.id;return ee-=Pe[ne][ge.default.AUDIO].getRepresentation().bitrateInKbit||0,Rt.bitrateInKbit<=ee}));return Ot.length>0?Ot:Rt}catch(Ot){return Ce.error(Ot),Rt}}(Rt=function(Rt){try{if(!Me.get().streaming.abr.limitBitrateByPortal)return Rt;const{elementWidth:Ot}=je.getVideoElementSize(),ee=Rt.filter((Rt=>Rt.mediaInfo.type!==ge.default.VIDEO||Rt.width<=Ot));return ee.length>0?ee:Rt}catch(Ot){return Ce.error(Ot),Rt}}(Rt=function(Rt){try{const Ot=Rt.filter((Rt=>{const Ot=Rt.mediaInfo.type,ee=Rt.bitrateInKbit,ne=De.getAbrBitrateParameter("maxBitrate",Ot),re=De.getAbrBitrateParameter("minBitrate",Ot);return!(ne>-1&&ee>ne||re>-1&&ee<re)}));return Ot.length>0?Ot:Rt}catch(Ot){return Ce.error(Ot),Rt}}(Rt)))}catch(Ot){return Ce.error(Ot),Rt}}(ee),ee}function M(Rt,Ot){let ee=[];if(!Rt)return ee;const ne=function(Rt){try{const Ot=[];if(Rt&&Ot.push(Rt),!Me.get().streaming.abr.enableSupplementalPropertyAdaptationSetSwitching||!Rt.adaptationSetSwitchingCompatibleIds||0===Rt.adaptationSetSwitchingCompatibleIds.length)return Ot;const ee=Pe[Rt.streamInfo.id][Rt.type].getAllMediaInfos().filter((Ot=>Rt.adaptationSetSwitchingCompatibleIds.includes(Ot.id)));return Ot.concat(ee)}catch(Ot){return[Rt]}}(Rt);return ne.forEach((Rt=>{let Ot=pe.getVoRepresentations(Rt);Ot&&Ot.length>0&&(ee=ee.concat(Ot))})),ee=function(Rt){return Rt.forEach((Ot=>{if(Ot.dependentRepresentation&&null===Ot.dependentRepresentation.mediaInfo){let ee=Ot.dependentRepresentation.id,ne=Rt.find((Rt=>Rt.id===ee));ne&&(Ot.dependentRepresentation=ne)}})),Rt}(ee),ee=function(Rt){return function(Rt){let Ot=null;return Rt.filter((Rt=>(Ot||(Ot=Rt.mediaInfo),!isNaN(Rt.qualityRanking)&&pe.areMediaInfosEqual(Ot,Rt.mediaInfo)))).length===Rt.length}(Rt)?function(Rt){return Rt.sort(((Rt,Ot)=>Ot.qualityRanking-Rt.qualityRanking)),Rt}(Rt):function(Rt){return Rt.sort(((Rt,Ot)=>pe.areMediaInfosEqual(Rt.mediaInfo,Ot.mediaInfo)?isNaN(Rt.pixelsPerSecond)||isNaN(Ot.pixelsPerSecond)||Rt.pixelsPerSecond===Ot.pixelsPerSecond?Rt.bandwidth-Ot.bandwidth:Rt.pixelsPerSecond-Ot.pixelsPerSecond:isNaN(Rt.pixelsPerSecond)||isNaN(Ot.pixelsPerSecond)||Rt.pixelsPerSecond===Ot.pixelsPerSecond?isNaN(Rt.bitsPerPixel)||isNaN(Ot.bitsPerPixel)?Rt.bandwidth-Ot.bandwidth:Ot.bitsPerPixel-Rt.bitsPerPixel:Rt.pixelsPerSecond-Ot.pixelsPerSecond)),Rt}(Rt)}(ee),ee.forEach(((Rt,Ot)=>{Rt.absoluteIndex=Ot})),ee=ee.filter((ee=>{const ne=!!Ot||pe.areMediaInfosEqual(ee.mediaInfo,Rt),re=!ee||!ee.mediaInfo||be.areKeyIdsUsable(ee.mediaInfo);return ne&&re})),ee}function P(Rt){const Ot=Rt.request.mediaType,ee=Rt.streamId;if(!(Ot&&ee&&Pe[ee]&&Me.get().streaming.abr.autoSwitchBitrate[Ot]))return;const le=Pe[ee][Ot];if(!le)return;var ce;if((ce=le.getLastSegment())&&ce.isPartialSegment&&!isNaN(ce.totalNumberOfPartialSegments)&&!isNaN(ce.replacementSubNumber)&&0!==ce.replacementSubNumber)return;const fe=z(le,Rt.request),ge=ue.shouldAbandonFragment(fe);ge&&ge.representation!==re.default.NO_CHANGE&&function(Rt,Ot,ee,re,le){if(re.getFragmentModel().getRequests({state:cn.FRAGMENT_MODEL_LOADING,index:Rt.request.index})[0]){const Rt=function(Rt,Ot){return ne[Rt]&&ne[Rt][Ot]?ne[Rt][Ot]:null}(Ot,ee);Rt&&(Rt.state=ie.ABANDON_LOAD),Fe.reset(),B(ee,Oe.getActiveStreamInfo(),le.representation,le.reason),clearTimeout(oe),oe=setTimeout((()=>{Rt&&(ne[Ot][ee].state=ie.ALLOW_LOAD),oe=null}),Me.get().streaming.abandonLoadTimeout)}}(Rt,ee,Ot,le,ge)}function O(){Me.get().streaming.abr.limitBitrateByPortal&&Object.keys(Pe).forEach((Rt=>
1{Object.keys(Pe[Rt]).forEach((Ot=>{U(Ot,Rt)}))}))}function z(Ot,ee){return fn(Rt).create({abrController:Ne,adapter:pe,currentRequest:ee,droppedFramesHistory:Re,streamProcessor:Ot,switchRequestHistory:Fe,throughputController:Ue,videoModel:je})}function L(Rt){Rt.mediaType===ge.default.VIDEO&&(q(Rt.streamId),Ee=Rt.newRepresentation.id)}function F(Rt){!Y()||Rt.metric!==ie.BUFFER_LEVEL||Rt.mediaType!==ge.default.AUDIO&&Rt.mediaType!==ge.default.VIDEO||function(Rt,Ot){try{const ee=De.getBufferTimeDefault(),ne=ee,re=.5*ee,ie=ue.getBolaState(Rt),le=Ot>=(ie?re:ne);ue.setBolaState(Rt,le),le!==ie&&(le?Ce.info("["+Rt+"] switching from throughput to buffer occupancy ABR rule (buffer: "+Ot.toFixed(3)+")."):Ce.info("["+Rt+"] switching from buffer occupancy to throughput ABR rule (buffer: "+Ot.toFixed(3)+")."))}catch(Rt){Ce.error(Rt)}}(Rt.mediaType,.001*Rt.value.level)}function U(Rt,Ot){try{if(!(Rt&&Pe&&Pe[Ot]&&Pe[Ot][Rt]))return!1;q(Ot);const ee=Pe[Ot][Rt],re=ee.getLastSegment(),le=ee.getRepresentationController()?.getCurrentCompositeRepresentation(),oe=j(re,le);if(!Me.get().streaming.abr.autoSwitchBitrate[Rt]||!oe)return!1;const ce=z(ee),fe=ue.getBestPossibleSwitchRequest(ce);if(!fe||!fe.representation)return!1;let ge=fe.representation;return function(Rt,Ot){Fe.push({currentRepresentation:Rt,newRepresentation:Ot})}(le,ge),ge.id!==le.id&&(ne[Ot][Rt].state===ie.ALLOW_LOAD||ge.absoluteIndex<le.absoluteIndex)&&(H(Rt,le,ge,fe.reason),!0)}catch(Rt){return Ce.error(Rt),!1}}function j(Rt,Ot){return!(Rt&&Rt.isPartialSegment&&!isNaN(Rt.totalNumberOfPartialSegments)&&!isNaN(Rt.replacementSubNumber))||Rt.replacementSubNumber===Rt.totalNumberOfPartialSegments-1||function(Rt,Ot){if(!Ot||!Ot.segmentSequenceProperties||Ot.segmentSequenceProperties.length<=0)return!1;if(Ot&&Ot.mediaInfo&&Ot.mediaInfo.adaptationSetSwitchingCompatibleIds&&Ot.mediaInfo.adaptationSetSwitchingCompatibleIds.length>0)return!1;const ee=Ot.segmentSequenceProperties.filter((Rt=>!isNaN(Rt.sapType)&&Rt.sapType<=1));if(0===ee.length)return!1;let ne=(Rt.replacementSubNumber+1)%Rt.totalNumberOfPartialSegments;return ee.some((Rt=>ne%Rt.cadence==0))}(Rt,Ot)}function q(Rt){if(Re){const Ot=je.getPlaybackQuality();Ot&&Re.push(Rt,Ee,Ot)}}function B(Rt,Ot,ee,ne={}){if(!(Ot&&Ot.id&&Rt&&Pe&&Pe[Ot.id]&&Pe[Ot.id][Rt]&&ee))return!1;const re=Pe[Ot.id][Rt].getRepresentationController()?.getCurrentCompositeRepresentation();return(!re||ee.id!==re.id)&&H(Rt,re,ee,ne)}function G(Rt,Ot){return`${Rt}-${Ot}`}function H(Rt,Ot,ne,re){const ie=ne.mediaInfo.streamInfo.id;if(!Rt||!Pe[ie]||!Pe[ie][Rt])return!1;const le=Pe[ie][Rt].getStreamInfo(),oe=Se.getCurrentBufferLevel(Rt),ue=null!==Ot&&!pe.areMediaInfosEqual(Ot.mediaInfo,ne.mediaInfo),ce=Ot?Ot.bitrateInKbit:0;return Ce.info(`[AbrController]: Switching quality in period ${ie} for media type ${Rt}. Switch from bitrate ${ce} to bitrate ${ne.bitrateInKbit}. Current buffer level: ${oe}. Reason:`+(re?JSON.stringify(re):"/")),ee.trigger(he.default.QUALITY_CHANGE_REQUESTED,{isAdaptationSetSwitch:ue,mediaType:Rt,newRepresentation:ne,oldRepresentation:Ot,reason:re,streamInfo:le},{streamId:le.id,mediaType:Rt}),function(Rt){const Ot=Ue.getAverageThroughput(Rt);isNaN(Ot)||we.setSavedBitrateSettings(Rt,Ot)}(Rt),!0}function Y(){return Me.get().streaming.abr.rules.bolaRule.active&&Me.get().streaming.abr.rules.throughputRule.active}return Ne={canPerformQualitySwitch:j,checkPlaybackQuality:U,clearDataForStream:function(Rt){Re&&Re.clearForStream(Rt),Pe[Rt]&&delete Pe[Rt],Fe&&Fe.clearForStream(Rt),ne[Rt]&&delete ne[Rt],ue.clearDataForStream(Rt)},getAbandonmentStateFor:function(Rt,Ot){return ne[Rt]&&ne[Rt][Ot]?ne[Rt][Ot].state:null},getInitialBitrateFor:function(Rt){if(Rt===ge.default.TEXT)return NaN;let Ot=De.getAbrBitrateParameter("initialBitrate",Rt);if(Ot>0)return Ot;let ee=NaN;if(we&&we.hasOwnProperty("getSavedBitrateSettings")&&(ee=we.getSavedBitrateSettings(Rt)),!isNaN(ee))return ee;const ne=Ue.getAverageThroughput(Rt);return!isNaN(ne)&&ne>0?ne:Rt===ge.default.VIDEO?1e3:100},getOptimalRepresentationForBitrate:function(Rt,Ot,ee=!0){const ne=x(Rt,ee);if(!ne||0===ne.length)return null;const re=ne.reduce(((Rt,Ot)=>Rt.bandwidth<Ot.bandwidth?Rt:Ot));if(Ot<=0)return re;const ie=ne.filter((Rt=>Rt.bitrateInKbit<=Ot));
1return ie&&0!==ie.length?ie.reduce(((Rt,Ot)=>Ot.absoluteIndex>Rt.absoluteIndex?Ot:Rt)):re},getPossibleVoRepresentations:function(Rt,Ot=!0){return M(Rt,Ot)},getPossibleVoRepresentationsFilteredBySettings:x,getRepresentationByAbsoluteIndex:function(Rt,Ot,ee=!0){return isNaN(Rt)||Rt<0?null:x(Ot,ee).find((Ot=>Ot.absoluteIndex===Rt))},handleNewMediaInfo:function(Rt){ue.handleNewMediaInfo(Rt)},handlePendingManualQualitySwitch:function(Rt,Ot){try{const ee=G(Rt,Ot);let ne=null;if(xe.has(ee)&&(ne=xe.get(ee)),!ne)return!1;const re=Pe[Rt][Ot];if(!j(re.getLastSegment(),re.getRepresentation()))return!1;const{type:ie,streamInfo:le,representation:oe,reason:ue}=ne;return xe.delete(ee),B(ie,le,oe,ue),!0}catch(Rt){Ce.error(`Can not handle pending manual quality switch: ${Rt}`)}},initialize:function(){Re=bn(Rt).create(),Fe=gn(Rt).create(),ue=We(Rt).create({dashMetrics:Se,customParametersModel:_e,mediaPlayerModel:De,settings:Me}),ue.initialize(),ee.on(he.default.QUALITY_CHANGE_RENDERED,L,Ne),ee.on(he.default.METRIC_ADDED,F,Ne),ee.on(fe.default.LOADING_PROGRESS,P,Ne),ee.on(fe.default.VIDEO_ELEMENT_RESIZED,O,Ne)},isPlayingAtLowestQuality:function(Rt){return x(Rt.mediaInfo,!0)[0].id===Rt.id},isPlayingAtTopQuality:function(Rt){if(!Rt)return!0;const Ot=x(Rt.mediaInfo,!0);return Ot[Ot.length-1].id===Rt.id},manuallySetPlaybackQuality:function(Rt,Ot,ee,ne={}){const re=Pe[Ot.id][Rt];if(j(re.getLastSegment(),re.getRepresentation()))return B(Rt,Ot,ee,ne);!function(Rt,Ot,ee,ne){try{Ce.debug(`[AbrController] Queuing manual quality switch for stream ${Ot.id} and type ${Rt} to representation ${ee.id}`);const re=G(Ot.id,Rt);xe.set(re,{type:Rt,streamInfo:Ot,representation:ee,reason:ne})}catch(Rt){Ce.error(`Can not queue manual quality switch: ${Rt}`)}}(Rt,Ot,ee,ne)},registerStreamType:function(Rt,Ot){const ee=Ot.getStreamInfo().id;Pe[ee]||(Pe[ee]={}),Pe[ee][Rt]=Ot,ne[ee]||(ne[ee]={}),ne[ee][Rt]={},ne[ee][Rt].state=ie.ALLOW_LOAD,void 0===ue.getBolaState(Rt)&&ue.setBolaState(Rt,Me.get().streaming.abr.rules.bolaRule.active&&!Y())},reset:function(){D(),ee.off(he.default.QUALITY_CHANGE_RENDERED,L,Ne),ee.off(he.default.METRIC_ADDED,F,Ne),ee.off(fe.default.LOADING_PROGRESS,P,Ne),ee.off(fe.default.VIDEO_ELEMENT_RESIZED,O,Ne),ue&&ue.reset()},setConfig:function(Rt){Rt&&(Rt.streamController&&(Oe=Rt.streamController),Rt.throughputController&&(Ue=Rt.throughputController),Rt.domStorage&&(we=Rt.domStorage),Rt.mediaPlayerModel&&(De=Rt.mediaPlayerModel),Rt.customParametersModel&&(_e=Rt.customParametersModel),Rt.cmsdModel&&(ye=Rt.cmsdModel),Rt.dashMetrics&&(Se=Rt.dashMetrics),Rt.adapter&&(pe=Rt.adapter),Rt.videoModel&&(je=Rt.videoModel),Rt.settings&&(Me=Rt.settings),Rt.capabilities&&(be=Rt.capabilities))},setPlaybackQuality:B,unRegisterStreamType:function(Rt,Ot){try{Pe[Rt]&&Pe[Rt][Ot]&&delete Pe[Rt][Ot],ne[Rt]&&ne[Rt][Ot]&&delete ne[Rt][Ot]}catch(Rt){}}},Ce=Ot.getLogger(Ne),D(),Ne}ut.__dashjs_factory_name="AbrController";const yn=ne.default.getSingletonFactory(ut);ne.default.updateSingletonFactory(ut.__dashjs_factory_name,yn);var En,Tn,_n,vn,wn,In=yn,An={};En="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tn=function(Rt){for(var Ot=0,ee=[],ne=0|Rt.length/3;0<ne--;){var re=(Rt[Ot]<<16)+(Rt[Ot+1]<<8)+Rt[Ot+2];Ot+=3,ee.push(En.charAt(63&re>>18)),ee.push(En.charAt(63&re>>12)),ee.push(En.charAt(63&re>>6)),ee.push(En.charAt(63&re))}return 2==Rt.length-Ot?(re=(Rt[Ot]<<16)+(Rt[Ot+1]<<8),ee.push(En.charAt(63&re>>18)),ee.push(En.charAt(63&re>>12)),ee.push(En.charAt(63&re>>6)),ee.push("=")):1==Rt.length-Ot&&(re=Rt[Ot]<<16,ee.push(En.charAt(63&re>>18)),ee.push(En.charAt(63&re>>12)),ee.push("==")),ee.join("")},_n=function(){for(var Rt=[],Ot=0;Ot<64;++Ot)Rt[En.charCodeAt(Ot)]=Ot;return Rt["=".charCodeAt(0)]=0,Rt}(),vn=function(Rt){for(var Ot=0,ee=[],ne=0|Rt.length/4;0<ne--;){var re=(_n[Rt.charCodeAt(Ot)]<<18)+(_n[Rt.charCodeAt(Ot+1)]<<12)+(_n[Rt.charCodeAt(Ot+2)]<<6)+_n[Rt.charCodeAt(Ot+3)];ee.push(255&re>>16),ee.push(255&re>>8),ee.push(255&re),Ot+=4}return ee&&("="==Rt.charAt(Ot-2)?(ee.pop(),ee.pop()):"="==Rt.charAt(Ot-1)&&ee.pop()),ee},wn={encode:function(Rt){for(var Ot=[],ee=0;ee<Rt.length;++ee)Ot.push(Rt.charCodeAt(ee));return Ot},decode:function(Rt){for(var Ot=0;Ot<s.length;++Ot)a[Ot]=String.fromCharCode(a[Ot]);return a.join("")}},An.decodeArray=function(Rt){var Ot=vn(Rt);return new Uint8Array(Ot)},An.encodeASCII=function(Rt){var Ot=wn.encode(Rt);return Tn(Ot)},An.decodeASCII=function(Rt){var Ot=vn(Rt);return wn.decode(Ot)},An.encode=function(Rt){var Ot=function(Rt){for(var Ot=[],ee=0;ee<Rt.length;++ee){var ne=Rt.charCodeAt(ee);ne<128?Ot.push(ne):ne<2048?(Ot.push(192|ne>>6),Ot.push(128|63&ne)):ne<65536?(Ot.push(224|ne>>12),Ot.push(128|63&ne>>6),Ot.push(128|63&ne)):(Ot.push(240|ne>>18),Ot.push(128|63&ne>>12),Ot.push(128|63&ne>>6),Ot.push(128|63&ne))}return Ot}(Rt);return Tn(Ot)},An.decode=function(Rt){return function(Rt){for(var Ot=[],ee=0;ee<Rt.length;){var ne=Rt[ee++];ne<128||(ne<224?(ne=(31&ne)<<6,ne|=63&Rt[ee++]):ne<240?(ne=(15&ne)<<12,ne|=(63&Rt[ee++])<<6,ne|=63&Rt[ee++]):(ne=(
17&ne)<<18,ne|=(63&Rt[ee++])<<12,ne|=(63&Rt[ee++])<<6,ne|=63&Rt[ee++])),Ot.push(String.fromCharCode(ne))}return Ot.join("")}(vn(Rt))},"undefined"!=typeof exports&&(exports.decode=An.decode,exports.decodeArray=An.decodeArray,exports.encode=An.encode,exports.encodeASCII=An.encodeASCII);var Cn=An,Dn=ee(7393);const xn=NaN;class St{constructor(Rt,Ot){this.data={baseUrls:Rt||null,selectedIdx:Ot||xn},this.children=[]}}function wt(){let Rt,Ot,ee,ne;const re=this.context,ie=(0,Dn.default)(re).getInstance();function l(Rt,Ot,ee){const ne=o(ee);Rt[Ot]?ie.areEqual(ne,Rt[Ot].data.baseUrls)||(Rt[Ot].data.baseUrls=ne,Rt[Ot].data.selectedIdx=xn):Rt[Ot]=new St(ne)}function o(Rt){let Ot=ee.getBaseURLsFromElement(Rt);const re=ne.getSynthesizedBaseUrlElements(Ot);return re&&re.length>0&&re.forEach((Rt=>{const ee=Ot.findIndex((Ot=>Ot.serviceLocation===Rt.serviceLocation));-1!==ee?Ot[ee]=Rt:Ot.push(Rt)})),Ot}function s(Rt,ee){const ne=ee||Ot;Rt(ne.data),ne.children&&ne.children.forEach((Ot=>s(Rt,Ot)))}function u(){Ot=new St}return Rt={reset:u,update:function(Rt){!function(Rt){!function(){if(!ee||!ee.hasOwnProperty("getBaseURLsFromElement")||!ee.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();const ne=o(Rt);ie.areEqual(ne,Ot.data.baseUrls)||(Ot.data.baseUrls=ne,Ot.data.selectedIdx=xn),Rt&&Rt.Period&&Rt.Period.forEach(((Rt,ne)=>{l(Ot.children,ne,Rt),Rt.AdaptationSet&&Rt.AdaptationSet.forEach(((Rt,re)=>{l(Ot.children[ne].children,re,Rt),Rt.Representation&&Rt.Representation.sort(ee.getRepresentationSortFunction()).forEach(((Rt,ee)=>{l(Ot.children[ne].children[re].children,ee,Rt)}))}))}))}(Rt)},getForPath:function(Rt){let ee=Ot;const ne=[ee.data];return Rt&&Rt.forEach((Rt=>{ee=ee.children[Rt],ee&&ne.push(ee.data)})),ne.filter((Rt=>Rt.baseUrls.length))},invalidateSelectedIndexes:function(Rt){s((Ot=>{isNaN(Ot.selectedIdx)||Rt===Ot.baseUrls[Ot.selectedIdx].serviceLocation&&(Ot.selectedIdx=xn)}))},setConfig:function(Rt){Rt.adapter&&(ee=Rt.adapter),Rt.contentSteeringController&&(ne=Rt.contentSteeringController)},getBaseUrls:function(Rt){return o(Rt)}},u(),Rt}wt.__dashjs_factory_name="BaseURLTreeModel";var Mn=ne.default.getClassFactory(wt),Pn=ee(8748);class At extends Pn.default{constructor(){super(),this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,this.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,this.SEGMENT_BASE_LOADER_ERROR_CODE=15,this.TIME_SYNC_FAILED_ERROR_CODE=16,this.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,this.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,this.APPEND_ERROR_CODE=20,this.REMOVE_ERROR_CODE=21,this.DATA_UPDATE_FAILED_ERROR_CODE=22,this.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,this.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,this.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,this.DOWNLOAD_ERROR_ID_SIDX_CODE=26,this.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,this.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,this.DOWNLOAD_ERROR_ID_XLINK_CODE=29,this.MANIFEST_ERROR_ID_PARSE_CODE=31,this.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,this.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,this.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,this.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,this.NO_SUPPORTED_KEY_IDS=36,this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",this.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",this.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",this.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",this.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",this.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",this.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",this.APPEND_ERROR_MESSAGE="chunk is not defined",this.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",this.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",this.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",this.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",this.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",this.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",this.NO_SUPPORTED_
1KEY_IDS_MESSAGE="All possible Adaptation Sets have an invalid key status"}}var zn=new At;function Nt(Rt){let Ot;Rt=Rt||{};let ee=[];const ne=(0,ce.default)(this.context).getInstance(),re=Rt.updateEventName,ie=Rt.addBlacklistEventName;function l(Rt){-1===ee.indexOf(Rt)&&(ee.push(Rt),ne.trigger(re,{entry:Rt}))}function o(Rt){l(Rt.entry)}return Ot={add:l,remove:function(Rt){const Ot=ee.indexOf(Rt);-1!==Ot&&ee.splice(Ot,1)},contains:function(Rt){return!!(ee.length&&Rt&&Rt.length)&&-1!==ee.indexOf(Rt)},reset:function(){ie&&ne.off(ie,o,Ot),ee=[]}},ie&&ne.on(ie,o,Ot),Ot}Nt.__dashjs_factory_name="BlackListController";var Ln=ne.default.getClassFactory(Nt);function Dt(Rt){let Ot;const ee=(Rt=Rt||{}).blacklistController;return Ot={select:function(Rt){return Rt&&function(Rt){let Ot,ee,ne=0,re=[],ie=0;if(ee=Rt.sort((function(Rt,Ot){let ee=Rt.dvbPriority-Ot.dvbPriority;return isNaN(ee)?0:ee})).filter((function(Rt,Ot,ee){return!Ot||ee[0].dvbPriority&&Rt.dvbPriority&&ee[0].dvbPriority===Rt.dvbPriority})),ee.length)return ee.length>1&&(ee.forEach((Rt=>{ne+=Rt.dvbWeight,re.push(ne)})),Ot=Math.floor(Math.random()*(ne-1)),re.every(((Rt,ee)=>(ie=ee,!(Ot<Rt))))),ee[ie]}(function(Rt){let Ot=[];return Rt.filter((function(Rt){return!ee.contains(Rt.serviceLocation)||(Rt.dvbPriority&&Ot.push(Rt.dvbPriority),!1)})).filter((function(Rt){return!Ot.length||!Rt.dvbPriority||-1===Ot.indexOf(Rt.dvbPriority)}))}(Rt))}},Ot}Dt.__dashjs_factory_name="DVBSelector";var Fn=ne.default.getClassFactory(Dt);function Mt(Rt){let Ot;const ee=(Rt=Rt||{}).blacklistController;return Ot={select:function(Rt){let Ot,ne=0;return Rt&&Rt.some(((Rt,Ot)=>(ne=Ot,!ee.contains(Rt.serviceLocation))))&&(Ot=Rt[ne]),Ot}},Ot}Mt.__dashjs_factory_name="BasicSelector";var Un=ne.default.getClassFactory(Mt),jn=ee(1944),qn=ee(656),Bn=ee(7263);function Ft(){let Rt,Ot;function n(){Ot&&(Ot.onloadend=Ot.onerror=Ot.onprogress=Ot.onload=null,Ot.abort(),Ot=null)}return Rt={load:function(Rt,ee){if(Ot=null,Ot=new XMLHttpRequest,Ot.open(Rt.method,Rt.url,!0),Rt.responseType&&(Ot.responseType=Rt.responseType),Rt.headers)for(let ee in Rt.headers){let ne=Rt.headers[ee];ne&&Ot.setRequestHeader(ee,ne)}return Ot.withCredentials="include"===Rt.credentials,Ot.timeout=Rt.timeout,Ot.onload=function(){ee.url=this.responseURL,ee.status=this.status,ee.statusText=this.statusText,ee.headers=Bn.default.parseHttpHeaders(this.getAllResponseHeaders()),ee.data=this.response},Rt.customData&&(Ot.onloadend=Rt.customData.onloadend,Ot.onprogress=Rt.customData.onprogress,Ot.onabort=Rt.customData.onabort,Ot.ontimeout=Rt.customData.ontimeout),Ot.send(),Rt.customData.abort=n.bind(this),!0},abort:n,getXhr:function(){return Ot},reset:function(){n(),Rt=null},resetInitialSettings:function(){n()}},Rt}Ft.__dashjs_factory_name="XHRLoader";var Gn=ne.default.getClassFactory(Ft);function jt(){const Rt=this.context,Ot=(0,oe.default)(Rt).getInstance();let ee,ne,re;function i(Rt,Ot,ee){Rt.customData.reader.read().then(ee).catch((function(){l(Rt)}))}function l(Rt){Rt.customData.onloadend&&Rt.customData.onloadend()}function s(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function d(){if(this.customData.abortController)this.customData.abortController.abort();else if(this.customData.reader)try{this.customData.reader.cancel(),this.onabort()}catch(Rt){}}function c(Rt,Ot){try{if((Rt=Rt.filter((ee=>ee.bytes>Ot/4/Rt.length))).length>1){let Ot=0;const ee=(Rt[Rt.length-1].timestamp-Rt[0].timestamp)/Rt.length;return Rt.forEach(((ne,re)=>{const ie=Rt[re+1];if(ie){const Rt=ie.timestamp-ne.timestamp;Ot+=Rt<ee?Rt:0}})),Ot}return null}catch(Rt){return null}}function f(Rt,Ot){return 8*Rt/Ot}return re=(0,le.default)(Rt).getInstance().getLogger(ee),ee={abort:d,calculateDownloadedTime:c,load:function(Rt,ee){const ie=function(Rt){const Ot=new Headers;if(Rt.headers)for(let ee in Rt.headers){let ne=Rt.headers[ee];ne&&Ot.append(ee,ne)}return Ot}(Rt),le=function(Rt){let Ot;return"function"==typeof window.AbortController&&(Ot=new AbortController,Rt.customData.abortController=Ot,Ot.signal.onabort=Rt.customData.onabort),Rt.customData.abort=d.bind(Rt),Ot}
1(Rt),oe=function(Rt,Ot,ee){return new Request(Rt.url,{method:Rt.method,headers:Ot,credentials:Rt.credentials,signal:ee?ee.signal:void 0})}(Rt,ie,le);fetch(oe).then((ie=>{!function(Rt,ee,ie){(function(Rt,Ot){Rt.status=Ot.status,Rt.statusText=Ot.statusText,Rt.url=Ot.url;const ee={};for(const Rt of Ot.headers.keys())ee[Rt]=Ot.headers.get(Rt);Rt.headers=ee})(ie,Rt),Rt.ok||ee.customData.onloadend();let le=0,oe=!1,ue=new Uint8Array,ce=0;ee.customData.reader=Rt.body.getReader();let fe=[],he=[],pe=[],be=!0;const ye=Ot.get().streaming.abr.throughput.lowLatencyDownloadTimeCalculationMode,T=({value:Rt,done:Ot})=>{Ot?function(){if(ue){const Rt=function(){let Rt=null;return ye===ge.default.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING?Rt=function(){const Rt=function(Rt,Ot){try{let ee,ne;if(ee=Rt.slice(0,-1),ne=Ot.slice(0,-1),ee.length!==ne.length&&re.warn(`[FetchLoader] Moof and Mdat data arrays have different lengths. Moof: ${ee.length}, Mdat: ${ne.length}`),ee.length<=1)return null;let ie=[],le=0,oe=0;for(let Rt=0;Rt<ee.length;Rt++)if(ee[Rt]&&ne[Rt]){let Ot=ne[Rt].timestamp-ee[Rt].timestamp;if(Ot>1){const ee=f(ne[Rt].bytes,Ot);ie.push(ee),oe=0}else{0===oe&&(oe=ee[Rt].timestamp,le=0);let Ot=ne[Rt].timestamp-oe;if(Ot>1){le+=ne[Rt].bytes;const ee=f(le,Ot);ie.push(ee),oe=0}else le+=ne[Rt].bytes}}return ie.length>0?ie.reduce(((Rt,Ot)=>Rt+Ot),0)/ie.length:null}catch(Rt){return null}}(he,pe);return Rt?8*le/Rt:null}():ye===ge.default.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.DOWNLOADED_DATA&&(Rt=c(fe,le)),Rt}();ee.customData.onprogress({loaded:le,total:le,lengthComputable:!0,time:Rt}),ie.data=ue.buffer}ee.customData.onloadend()}():(Rt&&Rt.length>0&&function(Rt){ue=function(Rt,Ot){if(0===Rt.length)return Ot;const ee=new Uint8Array(Rt.length+Ot.length);return ee.set(Rt),ee.set(Ot,Rt.length),ee}(ue,Rt),le+=Rt.length,fe.push({timestamp:s(),bytes:Rt.length}),ye===ge.default.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING&&be&&ne.findLastTopIsoBoxCompleted(["moof"],ue,ce).found&&(be=!1,he.push({timestamp:s()}));const Ot=ne.findLastTopIsoBoxCompleted(["moov","mdat"],ue,ce);Ot.found?function(Rt){const Ot=function(Rt){let Ot;return Rt===ue.length?(Ot=ue,ue=new Uint8Array):(Ot=new Uint8Array(ue.subarray(0,Rt)),ue=ue.subarray(Rt)),Ot}(Rt.startOffsetOfLastFoundTargetBox+Rt.sizeOfLastFoundTargetBox);ye!==ge.default.LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE.MOOF_PARSING||be||(be=!0,pe.push({timestamp:s(),bytes:Ot.length})),ee.customData.onprogress({data:Ot.buffer,lengthComputable:!1,noTrace:!0}),ce=0}(Ot):function(Rt){ce=Rt.startOffsetOfLastCompletedBox+Rt.sizeOfLastCompletedBox,oe||(ee.customData.onprogress({lengthComputable:!1,noTrace:!0}),oe=!0)}(Ot)}(Rt),i(ee,0,T))};i(ee,0,T)}(ie,Rt,ee)})).catch((()=>{l(Rt)}))},reset:function(){},setConfig:function(Rt){ne=Rt.boxParser}},ee}jt.__dashjs_factory_name="FetchLoader";var Hn=ne.default.getClassFactory(jt),Vn=ee(913),Kn=class{constructor(){this.period=null,this.index=-1,this.id=null,this.type=null}};class Ht{constructor(Rt,Ot,ee,ne){this.url=Rt||"",this.serviceLocation=Ot||Rt||"",this.dvbPriority=ee||1,this.dvbWeight=ne||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0,this.queryParams={}}}Ht.DEFAULT_DVB_PRIORITY=1,Ht.DEFAULT_DVB_WEIGHT=1;var $n=Ht,Xn=ee(8854),Jn=class{constructor(){this.schemeIdUri=null,this.value=null,this.id=null}init(Rt){Rt&&(this.schemeIdUri=Rt.schemeIdUri?Rt.schemeIdUri:null,this.value=null!==Rt.value&&void 0!==Rt.value?Rt.value.toString():null,this.id=Rt.id?Rt.id:null,Rt[Xn.default.DVB_URL]&&(this.dvbUrl=Rt[Xn.default.DVB_URL]),Rt[Xn.default.DVB_MIMETYPE]&&(this.dvbMimeType=Rt[Xn.default.DVB_MIMETYPE]),Rt[Xn.default.DVB_FONTFAMILY]&&(this.dvbFontFamily=Rt[Xn.default.DVB_FONTFAMILY]))}inArray(Rt){return!!Rt&&Rt.some((Rt=>this.schemeIdUri===Rt.schemeIdUri&&(this.value?this.value.toString().match(Rt.value):"".match(Rt.value))))}},ta=class extends Jn{constructor(){super(),this.version=null,this.sessionID=null,this.contentID=null,this.mode=null,this.keys=null,this.includeInRequests=null}init(Rt){super.init(Rt),Rt&&(this.version=Rt.version,this.sessionID=Rt.sessionID,this.contentID=Rt.contentID,this.mode=Rt.mode??"query",this.keys=Rt.keys?Rt.keys.split(" "):null,this.includeInRequests=Rt.includeInRequests?Rt.includeInRequests.split(" "):["segment"],this.schemeIdUri=Rt.schemeIdUri)}},ea=class extends Jn{constructor(){super(),this.ref=null,this.refId=null,this.robustness=null,this.keyId=null,this.cencDefaultKid=null,this.pss
1h=null,this.pro=null,this.laUrl=null}init(Rt){super.init(Rt),Rt&&(this.ref=Rt.hasOwnProperty(Xn.default.REF)?Rt[Xn.default.REF]:null,this.refId=Rt.hasOwnProperty(Xn.default.REF_ID)?Rt[Xn.default.REF_ID]:null,this.robustness=Rt.hasOwnProperty(Xn.default.ROBUSTNESS)?Rt[Xn.default.ROBUSTNESS]:null,this.cencDefaultKid=Rt.hasOwnProperty(Xn.default.CENC_DEFAULT_KID)?Rt[Xn.default.CENC_DEFAULT_KID]:null,this.pssh=Rt.hasOwnProperty(Xn.default.PSSH)?Rt[Xn.default.PSSH]:null,this.pro=Rt.hasOwnProperty(Xn.default.PRO)?Rt[Xn.default.PRO]:null,this.laUrl=Rt.hasOwnProperty(Xn.default.LA_URL)?Rt[Xn.default.LA_URL]:Rt.hasOwnProperty(Xn.default.LA_URL_LOWER_CASE)?Rt[Xn.default.LA_URL_LOWER_CASE]:null)}mergeAttributesFromReference(Rt){["schemeIdUri","value","id","robustness","cencDefaultKid","pro","pssh","laUrl"].forEach((Ot=>{null===this[Ot]&&(this[Ot]=Rt[Ot])}))}},aa=class{constructor(){this.type="",this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN,this.parsedMessageData=null}},ia=class{constructor(){this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri="",this.presentationTimeOffset=0}},oa=class{constructor(Rt,Ot){this.url=Rt||"",this.serviceLocation=Ot||null,this.queryParams={}}};class ae{constructor(){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 sa=ae,ua=class{constructor(){this.period=null,this.index=-1,this.id=1,this.type=null,this.tag=null,this.order="undefined",this.preselectionComponents=[]}},ca=class{constructor(){this.absoluteIndex=NaN,this.adaptation=null,this.availabilityTimeComplete=!0,this.availabilityTimeOffset=0,this.bandwidth=NaN,this.bitrateInKbit=NaN,this.bitsPerPixel=NaN,this.codecFamily=null,this.co
1decPrivateData=null,this.codecs=null,this.dependencyId=null,this.dependentRepresentation=null,this.endNumber=null,this.essentialProperties=[],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.pixelsPerSecond=NaN,this.presentationTimeOffset=0,this.qualityRanking=NaN,this.range=null,this.scanType=null,this.segments=null,this.segmentDuration=NaN,this.segmentInfoType=null,this.segmentSequenceProperties=[],this.supplementalProperties=[],this.startNumber=1,this.timescale=1,this.width=NaN}hasInitialization(){return null!==this.initialization||null!==this.range}hasSegments(){return this.segmentInfoType!==Xn.default.BASE_URL&&this.segmentInfoType!==Xn.default.SEGMENT_BASE&&!this.indexRange}};function se(){let Rt;const Ot=/^[a-z][a-z0-9+\-_.]*:/i,ee=/^https?:\/\//i,ne=/^https:\/\//i,re=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,i=(Rt,Ot)=>{try{return new window.URL(Rt,Ot).toString()}catch(Ot){return Rt}},l=(Rt,Ot)=>{let ee=o;if(!Ot)return Rt;if(!d(Rt))return Rt;c(Rt)&&(ee=s),f(Rt)&&(ee=u);const ne=ee(Ot),re="/"!==ne.charAt(ne.length-1)&&"/"!==Rt.charAt(0)?"/":"";return[ne,Rt].join(re)};function o(Rt){const Ot=Rt.indexOf("/"),ee=Rt.lastIndexOf("/");return-1!==Ot?ee===Ot+1?Rt:(-1!==Rt.indexOf("?")&&(Rt=Rt.substring(0,Rt.indexOf("?"))),Rt.substring(0,ee+1)):""}function s(Rt){const Ot=Rt.match(re);return Ot?Ot[1]:""}function u(Rt){const ee=Rt.match(Ot);return ee?ee[0]:""}function d(Rt){return!Ot.test(Rt)}function c(Rt){return d(Rt)&&"/"===Rt.charAt(0)}function f(Rt){return 0===Rt.indexOf("//")}return function(){try{new window.URL("x","http://y"),Rt=i}catch(Rt){}finally{Rt=Rt||l}}(),{parseBaseUrl:o,parseOrigin:s,parseScheme:u,isRelative:d,isPathAbsolute:c,isSchemeRelative:f,isHTTPURL:function(Rt){return ee.test(Rt)},isHTTPS:function(Rt){return ne.test(Rt)},removeHostname:function(Rt){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(Rt)[2].substring(1)},resolve:function(Ot,ee){return Rt(Ot,ee)}}}se.__dashjs_factory_name="DefaultURLUtils";var ga=ne.default.getSingletonFactory(se);function de(){let Rt,Ot,ee=[];const ne=this.context;function r(Rt,ne,re){let ie=function(Rt){let ne;for(ne=0;ne<ee.length;ne++)if(ee[ne].regex.test(Rt))return ee[ne].utils;return Ot}(re||ne);return ie&&"function"==typeof ie[Rt]?ie[Rt](ne,re):Ot[Rt](ne,re)}return Ot=ga(ne).getInstance(),Rt={registerUrlRegex:function(Rt,Ot){ee.push({regex:Rt,utils:Ot})},parseBaseUrl:function(Rt){return r("parseBaseUrl",Rt)},parseOrigin:function(Rt){return r("parseOrigin",Rt)},parseScheme:function(Rt){return r("parseScheme",Rt)},isRelative:function(Rt){return r("isRelative",Rt)},isPathAbsolute:function(Rt){return r("isPathAbsolute",Rt)},isSchemeRelative:function(Rt){return r("isSchemeRelative",Rt)},isHTTPURL:function(Rt){return r("isHTTPURL",Rt)},isHTTPS:function(Rt){return r("isHTTPS",Rt)},removeHostname:function(Rt){return r("removeHostname",Rt)},resolve:function(Rt,Ot){return r("resolve",Rt,Ot)}},Rt}de.__dashjs_factory_name="URLUtils";var ha=ne.default.getSingletonFactory(de),ba=ee(5717);function me(){let Rt,Ot,ee,ne;const re=this.context,ie=ha(re).getInstance(),oe=Number.isInteger||function(Rt){return"number"==typeof Rt&&isFinite(Rt)&&Math.floor(Rt)===Rt};function s(Rt,Ot){if(!Rt)throw new Error("adaptation is not defined");if(!Ot)throw new Error("type is not defined");if(Rt.Representation&&Rt.Representation.length){const ee=S(Rt.Representation[0]);if(ee&&ee.some((Rt=>ge.default.THUMBNAILS_SCHEME_ID_URIS.indexOf(Rt.schemeIdUri)>=0)))return Ot===ge.default.IMAGE}if(Rt.ContentComponent&&Rt.ContentComponent.length>0){if(Rt.ContentComponent.length>1)return Ot===ge.default.MUXED;if(Rt.ContentComponent[0].contentType===Ot)return!0}const ee=Ot===ge.default.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(Ot);if(Rt.Representation&&Rt.Representation.length){const Ot=Rt.Representation[0].codecs;if(ee.test(Ot))return!0}if(Rt.hasOwnProperty(Xn.default.MIME_TYPE))return ee.test(Rt.mimeType);if(Rt.Representation){let Ot;for(let ne=0;ne<Rt.Representation.length;ne++)if(Ot=Rt.Representation[ne],Ot.hasOwnProperty(Xn.default.MIME_TYPE))return ee.test(Ot.mimeType)}return!1}function u(Rt){if(!Rt)throw new Error("adaptation is not defined");if(Rt.hasOwnProperty(Xn.default.SEGMENT_TEMPLATE)||Rt.hasOwnProperty(Xn.default.SEGMENT_TIMELINE)||Rt.hasOwnProperty(Xn.default.SEGMENT_LIST)||Rt.hasOwnProperty(Xn.default.SEGMENT_BASE))return!0;
1if(Rt.Representation&&Rt.Representation.length>0){const Ot=Rt.Representation[0];if(Ot.hasOwnProperty(Xn.default.SEGMENT_TEMPLATE)||Ot.hasOwnProperty(Xn.default.SEGMENT_TIMELINE)||Ot.hasOwnProperty(Xn.default.SEGMENT_LIST)||Ot.hasOwnProperty(Xn.default.SEGMENT_BASE))return!0}return!1}function d(Rt){return s(Rt,ge.default.TEXT)}function c(Rt){return Rt&&Rt.Representation&&Rt.Representation.sort(((Rt,Ot)=>Rt.bandwidth-Ot.bandwidth)),Rt}function f(Rt,Ot){return Rt&&Rt.Period&&oe(Ot)&&Rt.Period[Ot]?Rt.Period[Ot].AdaptationSet:[]}function g(Rt){return Rt&&Rt.Period?Rt.Period:[]}function h(Rt,Ot,ee){let ne=null;if(Rt&&Rt.Representation&&Rt.Representation.length>0){const re=oe(Ot)&&Ot>=0&&Ot<Rt.Representation.length?Rt.Representation[Ot]:Rt.Representation[0];re&&(ne=re.mimeType+';codecs="'+re.codecs+'"',ee&&void 0!==re.width&&(ne+=';width="'+re.width+'";height="'+re.height+'"'))}return ne&&(ne=ne.replace(/\sprofiles=[^;]*/g,"")),ne}function p(Rt){const Ot=b(Rt);return Ot&&Ot.length>0}function b(Rt){let Ot=[];if(!Rt)return Ot;const ee=y(Rt);return Ot=Ot.concat(ee),Rt.hasOwnProperty(Xn.default.ADAPTATION_SET)&&Rt[Xn.default.ADAPTATION_SET].length>0&&Rt[Xn.default.ADAPTATION_SET].forEach((Rt=>{const ee=y(Rt);Ot=Ot.concat(ee)})),Ot}function y(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.CONTENT_PROTECTION)&&0!==Rt.ContentProtection.length?Rt[Xn.default.CONTENT_PROTECTION].map((Rt=>{const Ot=new ea;return Ot.init(Rt),Ot})):[]}function E(Rt){let Ot=!1;return Rt&&Rt.hasOwnProperty("type")&&(Ot=Rt.type===Xn.default.DYNAMIC),Ot}function T(Rt){if(!Rt)return null;const Ot=Rt[Xn.default.FRAMERATE];if(!Ot)return null;if("string"==typeof Ot&&Ot.includes("/")){const[Rt,ee]=Ot.split("/").map((Rt=>parseInt(Rt,10)));if(!isNaN(Rt)&&!isNaN(ee)&&0!==ee)return Rt/ee}return parseInt(Ot)}function _(Rt,Ot){return Ot&&Ot.hasOwnProperty(Rt)&&Ot[Rt].length?Ot[Rt].map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot})):[]}function v(Rt,Ot){if(!Ot)return[];let ee=function(Rt,Ot){if(!Ot||!Ot.length)return[];let ee=Ot[0][Rt]||[];return 0===ee.length?[]:1===Ot.length?ee:ee.filter((ee=>Ot.slice(1).every((Ot=>Ot.hasOwnProperty(Rt)&&Ot[Rt].some((Rt=>Rt.schemeIdUri===ee.schemeIdUri&&Rt.value===ee.value))))))}(Rt,Ot[Xn.default.REPRESENTATION]);return Ot.hasOwnProperty(Rt)&&Ot[Rt].length&&ee.push(...Ot[Rt]),ee.map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot}))}function S(Rt){return _(Xn.default.ESSENTIAL_PROPERTY,Rt)}function w(Rt){return _(Xn.default.SUPPLEMENTAL_PROPERTY,Rt)}function I(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.SEGMENT_SEQUENCE_PROPERTIES)&&Rt[Xn.default.SEGMENT_SEQUENCE_PROPERTIES].length?Rt[Xn.default.SEGMENT_SEQUENCE_PROPERTIES].map((Rt=>{const Ot=new class{constructor(){this.cadence=1,this.sapType=0,this.event=!0,this.alignment=null}init(Rt){Rt&&(this.cadence=void 0===Rt.cadence||isNaN(Rt.cadence)?1:Rt.cadence,this.sapType=void 0===Rt.sapType||isNaN(Rt.sapType)?0:Rt.sapType,this.event=void 0===Rt.event||Rt.event,this.alignment=void 0!==Rt.alignment?Rt.alignment:null)}}(Rt);return Ot.init(Rt),Ot})):[]}function k(Rt,Ot,ee,ne,re,ie){const le=new ca;!function(Rt,Ot,ee,ne,re){if(Rt.index=re,Rt.adaptation=ee,Rt.mediaInfo=ne,Ot.hasOwnProperty(Xn.default.ID)&&(Rt.id=Ot.id),Ot.hasOwnProperty(Xn.default.CODECS)&&(Rt.codecs=Ot.codecs,Rt.codecFamily=Bn.default.getCodecFamily(Rt.codecs)),Ot.hasOwnProperty(Xn.default.DEPENDENCY_ID)){const ee=Ot[Xn.default.DEPENDENCY_ID].toString().split(" ")[0];Rt.dependencyId=ee,Rt.dependentRepresentation=new ca,Rt.dependentRepresentation.id=ee}Ot.hasOwnProperty(Xn.default.MIME_TYPE)&&(Rt.mimeType=Ot[Xn.default.MIME_TYPE]),Ot.hasOwnProperty(Xn.default.CODEC_PRIVATE_DATA)&&(Rt.codecPrivateData=Ot.codecPrivateData),Ot.hasOwnProperty(Xn.default.BANDWITH)&&(Rt.bandwidth=Ot.bandwidth,Rt.bitrateInKbit=Ot.bandwidth/1e3),Ot.hasOwnProperty(Xn.default.WIDTH)&&(Rt.width=Ot.width),Ot.hasOwnProperty(Xn.default.HEIGHT)&&(Rt.height=Ot.height),Ot.hasOwnProperty(Xn.default.SCAN_TYPE)&&(Rt.scanType=Ot.scanType),Ot.hasOwnProperty(Xn.default.FRAMERATE)&&(Rt.frameRate=T(Ot)),Ot.hasOwnProperty(Xn.default.QUALITY_RANKING)&&(Rt.qualityRanking=Ot[Xn.default.QUALITY_RANKING]),Ot.hasOwnProperty(Xn.default.MAX_PLAYOUT_RATE)&&(Rt.maxPlayoutRate=Ot.maxPlayoutRate),Rt.essentialProperties=S(Ot),Rt.supplementalProperties=w(Ot),Rt.segmentSequenceProperties=I(Ot),Rt.path=[ee.period.index,ee.index,re]}(le,Ot,ee,Rt,ie);const{segmentInfo:oe,segmentInfoType:ue}=function(Rt){let Ot,ee;return Rt.hasOwnProperty(Xn.default.SEGMENT_BASE)?(Ot=Rt.SegmentBase,ee=Xn.default.SEGMENT_BASE):Rt.hasOwnProperty(Xn.default.SEGMENT_LIST)?(Ot=Rt.SegmentList,ee=Ot.hasOwnProperty(Xn.default.SEGMENT_TIMELINE)?Xn.default.SEGMENT_TIMELINE:Xn.default.SEGMENT_LIST):Rt.hasOwnProperty(Xn.default.SEGMENT_TEMPLATE)?(Ot=Rt.SegmentTemplate,ee=Ot.hasOwnProperty(Xn.default.SEGMENT_TIMELINE)?Xn.default.SEGMENT_TIMELINE:Xn.default.SEGMENT_TEMPLATE):ee=Xn.default.BASE_URL,{segmentInfo:Ot,segmentInfoType:ee}}(Ot);return le.segmentInfoType=ue,function(Rt,Ot,ee,ne,re,ie){if(Rt){if(Rt.hasOwnProperty(Xn.default.INITIALIZATION_MINUS)&&(ee.initialization=Rt.initialization.split("$Bandwidth$").join(re.bandwidth).split("$RepresentationID$").join(re.id)),Rt.hasOwnProperty(Xn.default.INITIALIZATION)){const Ot=Rt.Initialization;Ot.hasOwnProperty(Xn.default.SOURCE_URL)&&(ee.initialization=Ot.sourceURL),Ot.hasOwnProperty(Xn.default.RANGE)&&(ee.range=Ot.range)}else d(ne)&&u(ne)&&ne.mimeType&&-1===ne.mimeType.indexOf("application/mp4")&&(ee.range=0);Rt.hasOwnProperty(Xn.default.TIMESCALE)&&(ee.timescale=Rt.timescale),Rt.hasOwnProperty(Xn.default.DURATION)?ee.segmentDuration=Rt.duration/ee.timescale:Ot===Xn.default.SEGMENT_TIMELINE&&(ee.segmentDuration=function(Rt){if(!Rt||!Rt.S)return NaN;let Ot=Rt.S[0],ee=Rt.S[1];return Ot.hasOwnProperty("d")?Ot.d:ee.t-Ot.t}(Rt.SegmentTimeline)/ee.timescale),Rt.hasOwnProperty(Xn.default.MEDIA)&&(ee.media=Rt.media),Rt.hasOwnProperty(Xn.default.START_NUMBER)&&(ee.startNumber=parseInt(Rt.startNumber)),Rt.hasOwnProperty(Xn.default.INDEX_RANGE)&&(ee.indexRange=Rt.indexRange),Rt.hasOwnProperty(Xn.default.PRESENTATION_TIME_OFFSET)&&(ee.presentationTimeOffset=Rt.presentationTimeOffset/ee.timescale),Rt.hasOwnProperty(Xn.default.AVAILABILITY_TIME_OF
1FSET)?ee.availabilityTimeOffset=Rt.availabilityTimeOffset:ie&&void 0!==ie.availabilityTimeOffset&&(ee.availabilityTimeOffset=ie.availabilityTimeOffset),Rt.hasOwnProperty(Xn.default.AVAILABILITY_TIME_COMPLETE)?ee.availabilityTimeComplete="false"!==Rt.availabilityTimeComplete:ie&&void 0!==ie.availabilityTimeComplete&&(ee.availabilityTimeComplete=ie.availabilityTimeComplete),Rt.hasOwnProperty(Xn.default.END_NUMBER)&&(ee.endNumber=Rt[Xn.default.END_NUMBER]),ee.mseTimeOffset=function(Rt){const Ot=Rt.presentationTimeOffset;return Rt.adaptation.period.start-Ot}(ee)}}(oe,ue,le,ne,Ot,re),function(Rt){isNaN(Rt.width)||isNaN(Rt.height)||isNaN(Rt.frameRate)||(Rt.pixelsPerSecond=Math.max(1,Rt.width*Rt.height*Rt.frameRate),isNaN(Rt.bandwidth)||(Rt.bitsPerPixel=Rt.bandwidth/Rt.pixelsPerSecond))}(le),le}function A(Rt){return s(Rt,ge.default.MUXED)?ge.default.MUXED:s(Rt,ge.default.AUDIO)?ge.default.AUDIO:function(Rt){return s(Rt,ge.default.VIDEO)}(Rt)?ge.default.VIDEO:d(Rt)?ge.default.TEXT:function(Rt){return s(Rt,ge.default.IMAGE)}(Rt)?ge.default.IMAGE:(Ot.warn("Unknown Preselection stream type"),null)}function R(Rt,Ot){if(Rt&&Rt.hasOwnProperty(Xn.default.PRESELECTION_COMPONENTS)&&Array.isArray(Ot))return String(Rt.preselectionComponents).split(" ").map((Rt=>Ot.find((Ot=>Ot.id===Rt))))}function N(Rt,Ot){if(!Rt||!Rt.hasOwnProperty(Xn.default.PRESELECTION_COMPONENTS)||!Array.isArray(Ot))return;const ee=String(Rt.preselectionComponents).split(" ");return Ot.find((Rt=>Rt.id===ee[0]))}function C(Rt,Ot){if(!Rt)throw new Error("Period cannot be null or undefined");let ee=sa.DEFAULT_ID+"_"+Ot;return Rt.hasOwnProperty(Xn.default.ID)&&Rt.id.toString().length>0&&"__proto__"!==Rt.id&&(ee=Rt.id.toString()),ee}function D(Rt,Ot,ee){const ne=[];let re;if(!Rt)return ne;for(re=0;re<Rt.length;re++){const ie=new ia;if(ie.timescale=1,ie.representation=Ot,!Rt[re].hasOwnProperty(ge.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");ie.schemeIdUri=Rt[re].schemeIdUri,Rt[re].hasOwnProperty(Xn.default.TIMESCALE)&&(ie.timescale=Rt[re].timescale),Rt[re].hasOwnProperty(Xn.default.VALUE)&&(ie.value=Rt[re].value),ne.push(ie),ie.period=ee}return ne}function x(Rt){const Ot=[],ee=Rt.BaseURL||[Rt.baseUri];let ne=!1;return ee.some((ee=>{if(ee){const re=new $n;let le=ee.__text||ee;return ie.isRelative(le)&&(ne=!0,Rt.baseUri&&(le=ie.resolve(le,Rt.baseUri))),re.url=le,ee.hasOwnProperty(Xn.default.SERVICE_LOCATION)&&ee.serviceLocation.length?re.serviceLocation=ee.serviceLocation:re.serviceLocation=le,ee.hasOwnProperty(Xn.default.DVB_PRIORITY)&&(re.dvbPriority=ee[Xn.default.DVB_PRIORITY]),ee.hasOwnProperty(Xn.default.DVB_WEIGHT)&&(re.dvbWeight=ee[Xn.default.DVB_WEIGHT]),ee.hasOwnProperty(Xn.default.AVAILABILITY_TIME_OFFSET)&&(re.availabilityTimeOffset=ee[Xn.default.AVAILABILITY_TIME_OFFSET]),ee.hasOwnProperty(Xn.default.AVAILABILITY_TIME_COMPLETE)&&(re.availabilityTimeComplete="false"!==ee[Xn.default.AVAILABILITY_TIME_COMPLETE]),Ot.push(re),ne}})),Ot}function M(Rt){const Ot=new class{constructor(){this.defaultServiceLocation=null,this.defaultServiceLocationArray=[],this.queryBeforeStart=!1,this.serverUrl=null,this.clientRequirement=!0}};return Ot.serverUrl=Rt.__text,Rt.hasOwnProperty(Xn.default.DEFAULT_SERVICE_LOCATION)&&(Ot.defaultServiceLocation=Rt[Xn.default.DEFAULT_SERVICE_LOCATION],Ot.defaultServiceLocationArray=Ot.defaultServiceLocation.split(" ")),Rt.hasOwnProperty(Xn.default.QUERY_BEFORE_START)&&(Ot.queryBeforeStart="true"===Rt[Xn.default.QUERY_BEFORE_START].toLowerCase()),Rt.hasOwnProperty(Xn.default.CLIENT_REQUIREMENT)&&(Ot.clientRequirement="false"!==Rt[Xn.default.CLIENT_REQUIREMENT].toLowerCase()),Ot}function P(Rt){const Ot=new class{constructor(){this.adaptationSets=null,this.adaptationSetsArray=[],this.cmcdParameters=null,this.serviceLocations=null,this.serviceLocationsArray=[]}};return Rt.hasOwnProperty(Xn.default.CMCD_PARAMETERS)&&Rt[Xn.default.CMCD_PARAMETERS].schemeIdUri===ge.default.CTA_5004_2023_SCHEME&&(Ot.cmcdParameters=new ta,Ot.cmcdParameters.init(Rt[Xn.default.CMCD_PARAMETERS])),Rt.hasOwnProperty(Xn.default.SERVICE_LOCATIONS)&&""!==Rt[Xn.default.SERVICE_LOCATIONS]&&(Ot.serviceLocations=Rt[Xn.default.SERVICE_LOCATIONS],Ot.serviceLocationsArray=Ot.serviceLocations.toString().split(" ")),Rt.hasOwnProperty(Xn.default.ADAPTATION_SETS)&&""!==Rt[Xn.default.ADAPTATION_SETS]&&(Ot.adaptationSets=Rt[Xn.default.ADAPTATION_SETS],Ot.adaptationSetsArray=Ot.adaptationSets.toString().split(" ")),Ot}return Rt={getAccessibilityForAdaptation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.ACCESSIBILITY)&&Rt[Xn.default.ACCESSIBILITY].length?Rt[Xn.default.ACCESSIBILITY].map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot})):[]},getAdaptationForId:function(Rt,Ot,ee){const ne=f(Ot,ee);let re,ie;for(re=0,ie=ne.length;re<ie;re++)if(ne[re].hasOwnProperty(Xn.default.ID)&&ne[re].id===Rt)return ne[re];return null},getAdaptationForIndex:function(Rt,Ot,ee){const ne=f(Ot,ee);return ne.length>0&&oe(Rt)?ne[Rt]:null},getAdaptationsForPeriod:function(Rt){const Ot=Rt&&oe(Rt.index)?Rt.mpd.manifest.Period[Rt.index]:null,ee=[];let ne,re,ie;if(Ot&&Ot.AdaptationSet)for(ie=0;ie<Ot.AdaptationSet.length;ie++)re=Ot.AdaptationSet[ie],ne=new Kn,re.hasOwnProperty(Xn.default.ID)&&(ne.id=re.id),ne.index=ie,ne.period=Rt,ne.type=A(re),ee.push(ne);return ee},getAdaptationsForType:function(Rt,Ot,ee){const ne=f(Rt,Ot);let re,ie;const le=[];for(re=0,ie=ne.length;re<ie;re++)s(ne[re],ee)&&le.push(c(ne[re]));return le},getAudioChannelConfigurationForAdaptation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.AUDIO_CHANNEL_CONFIGURATION)&&Rt[Xn.default.AUDIO_CHANNEL_CONFIGURATION].length?Rt[Xn.default.AUDIO_CHANNEL_CONFIGURATION].map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot})):[]},getAudioChannelConfigurationForRepresentation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.AUDIO_CHANNEL_CONFIGURATION)&&Rt[Xn.default.AUDIO_CHANNEL_CONFIGURATION].length?Rt[Xn.default.AUDIO_CHANNEL_CONFIGURATION].map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot})):[]},getAvailabilityStartTime:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.AVAILABILITY_START_TIME)&&null!==Rt.availabilityStartTime?Rt.availabilityStartTime.getTime():null},getBandwidth:function(Rt){return Rt&&Rt.bandwidth?Rt.bandwidth:NaN},getBaseURLsFromElement:x,getBitrateListForAdaptation:function(Rt){const Ot=c(Rt);return(Ot&&Ot.Representation?Ot.Representation:[]).map((Rt=>({bandwidth:Rt.bandwidth,width:Rt.width||0,height:Rt.height||0,scanType:Rt.scanType||null,id:Rt.id||null})))},getCodec:h,getCodecForPreselection:function(Rt,ee,ne){let re=null;if(Rt&&ee){let ie=h(N(Rt,ee),0,ne);if(Rt.hasOwnProperty(Xn.default.CODECS)){let ee=Rt.codecs;re=ie.replace(/(codecs=")[^"]*(")/,`$1${ee}$2`),Ot.info("Preselection has own codecs-attribute: replacing in MainAdaptationSet (was: "+ie+"), new Preselection codec is: "+re)}else re=ie}return re},getCombinedEssentialPropertiesForAdaptationSet:function(Rt){return v(Xn.default.ESSENTIAL_PROPERTY,Rt)},getCombinedSupplementalPropertiesForAdaptationSet:function(Rt){return v(Xn.default.SUPPLEMENTAL_PROPERTY,Rt)},getContentProtectionByAdaptation:function(Rt){return y(Rt)},getContentProtectionByManifest:function(Rt){let Ot=[];if(!Rt)return Ot;const ee=y(Rt);return Ot=Ot.concat(ee),Rt.hasOwnProperty(Xn.default.PERIOD)&&Rt[Xn.default.PERIOD].length>
10&&Rt[Xn.default.PERIOD].forEach((Rt=>{const ee=b(Rt);Ot=Ot.concat(ee)})),Ot},getContentProtectionByPeriod:b,getContentSteering:function(Rt){if(Rt&&Rt.hasOwnProperty(Xn.default.CONTENT_STEERING))return M(Rt[Xn.default.CONTENT_STEERING][0])},getDuration:function(Rt){let Ot;return Ot=Rt&&Rt.hasOwnProperty(Xn.default.MEDIA_PRESENTATION_DURATION)?Rt.mediaPresentationDuration:Rt&&"dynamic"===Rt.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,Ot},getEssentialProperties:S,getEventStreamForAdaptationSet:function(Rt,Ot,ee){let ne,re,ie;return Rt&&Rt.Period&&Ot&&Ot.period&&oe(Ot.period.index)&&(re=Rt.Period[Ot.period.index],re&&re.AdaptationSet&&oe(Ot.index)&&(ie=re.AdaptationSet[Ot.index],ie&&(ne=ie.InbandEventStream))),D(ne,null,ee)},getEventStreamForRepresentation:function(Rt,Ot,ee){let ne,re,ie,le;return Rt&&Rt.Period&&Ot&&Ot.adaptation&&Ot.adaptation.period&&oe(Ot.adaptation.period.index)&&(re=Rt.Period[Ot.adaptation.period.index],re&&re.AdaptationSet&&oe(Ot.adaptation.index)&&(ie=re.AdaptationSet[Ot.adaptation.index],ie&&ie.Representation&&oe(Ot.index)&&(le=ie.Representation[Ot.index],le&&(ne=le.InbandEventStream)))),D(ne,Ot,ee)},getEventsForPeriod:function(Rt){const Ot=Rt&&Rt.mpd&&Rt.mpd.manifest?Rt.mpd.manifest:null,ee=Ot?Ot.Period:null,re=ee&&Rt&&oe(Rt.index)?ee[Rt.index].EventStream:null,ie=[];let le,ue;if(re)for(le=0;le<re.length;le++){const Ot=new ia;if(Ot.period=Rt,Ot.timescale=1,!re[le].hasOwnProperty(ge.default.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(Ot.schemeIdUri=re[le][ge.default.SCHEME_ID_URI],re[le].hasOwnProperty(Xn.default.TIMESCALE)&&(Ot.timescale=re[le][Xn.default.TIMESCALE]),re[le].hasOwnProperty(Xn.default.VALUE)&&(Ot.value=re[le][Xn.default.VALUE]),re[le].hasOwnProperty(Xn.default.PRESENTATION_TIME_OFFSET)&&(Ot.presentationTimeOffset=re[le][Xn.default.PRESENTATION_TIME_OFFSET]),ue=0;re[le].Event&&ue<re[le].Event.length;ue++){const ee=re[le].Event[ue],oe=new aa;oe.presentationTime=0,oe.eventStream=Ot,ee.hasOwnProperty(Xn.default.PRESENTATION_TIME)&&(oe.presentationTime=ee.presentationTime);const ce=Ot.presentationTimeOffset?Ot.presentationTimeOffset/Ot.timescale:0;oe.calculatedPresentationTime=oe.presentationTime/Ot.timescale+Rt.start-ce,ee.hasOwnProperty(Xn.default.DURATION)&&(oe.duration=ee.duration/Ot.timescale),ee.hasOwnProperty(Xn.default.ID)?oe.id=parseInt(ee.id):oe.id=null,ee.Signal&&ee.Signal.Binary&&ee.Signal.Binary.__text?oe.messageData=ne.decodeArray(ee.Signal.Binary.__text.toString()):oe.messageData=ee.messageData||ee.__cdata||ee.__text,ie.push(oe)}}return ie},getFramerate:T,getId:function(Rt){return Rt&&Rt[Xn.default.ID]||null},getIndexForAdaptation:function(Rt,Ot,ee){if(!Rt)return-1;const ne=f(Ot,ee);for(let Ot=0;Ot<ne.length;Ot++)if((0,Dn.default)(re).getInstance().areEqual(ne[Ot],Rt))return Ot;return-1},getIsDynamic:E,getIsFragmented:u,getIsText:d,getIsTypeOf:s,getLabelsForAdaptation:function(Rt){if(!Rt||!Rt.Label)return[];const Ot=[];for(let ee=0;ee<Rt.Label.length;ee++)Ot.push({lang:Rt.Label[ee].lang,text:Rt.Label[ee].__text||Rt.Label[ee]});return Ot},getLanguageForAdaptation:function(Rt){let Ot="";return Rt&&Rt.hasOwnProperty(Xn.default.LANG)&&(Ot=Rt.lang),Ot},getLocation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.LOCATION)?Rt[Xn.default.LOCATION].map((Rt=>{const Ot=Rt.__text||Rt,ee=Rt.hasOwnProperty(Xn.default.SERVICE_LOCATION)?Rt[Xn.default.SERVICE_LOCATION]:null;return new oa(Ot,ee)})):[]},getMainAdaptationSetForPreselection:N,getCommonRepresentationForPreselection:function(Rt,Ot){if(!Rt||!Array.isArray(Ot))return;const ee=N(Rt,Ot);return ee?ee.Representation[0]:void 0},getManifestUpdatePeriod:function(Rt,Ot=0){let ee=NaN;return Rt&&Rt.hasOwnProperty(Xn.default.MINIMUM_UPDATE_PERIOD)&&(ee=Rt.minimumUpdatePeriod),isNaN(ee)?ee:Math.max(ee-Ot,1)},getMimeType:function(Rt){return Rt&&Rt.Representation&&Rt.Representation.length>0?Rt.Representation[0].mimeType:null},getMpd:function(Rt){const Ot=new class{constructor(){this.availabilityEndTime=Number.POSITIVE_INFINITY,this.availabilityStartTime=null,this.manifest=null,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.mediaPresentationDuration=NaN,this.minimumUpdatePeriod=NaN,this.publishTime=null,this.suggestedPresentationDelay=0,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY}};return Rt&&(Ot.manifest=Rt,Rt.hasOwnProperty(Xn.default.AVAILABILITY_START_TIME)?Ot.availabilityStartTime=new Date(Rt.availabilityStartTime.getTime()):Rt.loadedTime&&(Ot.availabilityStartTime=new Date(Rt.loadedTime.getTime())),Rt.hasOwnProperty(Xn.default.AVAILABILITY_END_TIME)&&(Ot.availabilityEndTime=new Date(Rt.availabilityEndTime.getTime())),Rt.hasOwnProperty(Xn.default.MINIMUM_UPDATE_PERIOD)&&(Ot.minimumUpdatePeriod=Rt.minimumUpdatePeriod),Rt.hasOwnProperty(Xn.default.MEDIA_PRESENTATION_DURATION)&&(Ot.mediaPresentationDuration=Rt.mediaPresentationDuration),Rt.hasOwnProperty(Xn.default.SUGGESTED_PRESENTATION_DELAY)&&(Ot.suggestedPresentationDelay=Rt.suggestedPresentationDelay),Rt.hasOwnProperty(Xn.default.TIMESHIFT_BUFFER_DEPTH)&&(Ot.timeShiftBufferDepth=Rt.timeShiftBufferDepth),Rt.hasOwnProperty(Xn.default.MAX_SEGMENT_DURATION)&&(Ot.maxSegmentDuration=Rt.maxSegmentDuration),Rt.hasOwnProperty(Xn.default.PUBLISH_TIME)&&(Ot.publishTime=new Date(Rt.publishTime))),Ot},getPatchLocation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.PATCH_LOCATION)?Rt[Xn.default.PATCH_LOCATION].map((Rt=>{const Ot=Rt.__text||Rt,ee=Rt.hasOwnProperty(Xn.default.SERVICE_LOCATION)?Rt[Xn.default.SERVICE_LOCATION]:null;let ne=Rt.hasOwnProperty(Xn.default.TTL)?1e3*parseFloat(Rt[Xn.default.TTL]):NaN;return new class{constructor(Rt,Ot,ee){this.url=Rt||"",this.serviceLocation=Ot||null,this.ttl=ee||NaN,this.queryParams={}}}(Ot,ee,ne)})):[]},getPreselectionIsTypeOf:function(Rt,Ot,ee){if(!Rt)throw new Error("preselection is not defined");if(!Ot)throw new Error("adaptations is not defined");if(!ee)throw new Error("type is not defined");const ne=N(Rt,Ot);return!!ne&&s(ne,ee)},getPreselectionsForPeriod:function(Rt){const ee=Rt&&oe(Rt.index)?Rt.mpd.manifest.Period[Rt.index]:null,ne=[];let re,ie,le;if(ee&&ee.Preselection)for(le=0;le<ee.Preselection.length;
1le++){ie=ee.Preselection[le],re=new ua;const oe=R(ie,ee.AdaptationSet);oe.every((Rt=>!!Rt))&&1===oe.length?(ie.hasOwnProperty(Xn.default.ID)&&(re.id=ie.id),re.index=le,re.period=Rt,ie.hasOwnProperty(Xn.default.TAG)&&(re.tag=ie.tag),ie.hasOwnProperty(Xn.default.PRESELECTION_COMPONENTS)?re.preselectionComponents=oe:Ot.warn("Preselection (index: "+re.index+") missing component(s)"),ie.hasOwnProperty(Xn.default.ORDER)&&(re.order=ie.order),re.type=A(oe[0]),ne.push(re)):Ot.warn("Preselection removed because we don't support multi-representation preselections or not all components available.")}return ne},getProducerReferenceTimesForAdaptation:function(Rt){const Ot=Rt&&Rt.hasOwnProperty(Xn.default.PRODUCER_REFERENCE_TIME)?Rt[Xn.default.PRODUCER_REFERENCE_TIME]:[];(Rt&&Rt.hasOwnProperty(Xn.default.REPRESENTATION)?Rt[Xn.default.REPRESENTATION]:[]).forEach((Rt=>{Rt.hasOwnProperty(Xn.default.PRODUCER_REFERENCE_TIME)&&Ot.push(...Rt[Xn.default.PRODUCER_REFERENCE_TIME])}));const ee=[];return Ot.forEach((Rt=>{const Ot=new class{constructor(){this.id=null,this.inband=!1,this.type="encoder",this.applicationScheme=null,this.wallClockTime=null,this.presentationTime=NaN,this.UTCTiming=null}};Rt.hasOwnProperty(Xn.default.ID)&&(Ot[Xn.default.ID]=parseInt(Rt[Xn.default.ID]),Rt.hasOwnProperty(Xn.default.WALL_CLOCK_TIME)&&(Ot[Xn.default.WALL_CLOCK_TIME]=Rt[Xn.default.WALL_CLOCK_TIME],Rt.hasOwnProperty(Xn.default.PRESENTATION_TIME)&&(Ot[Xn.default.PRESENTATION_TIME]=Rt[Xn.default.PRESENTATION_TIME],Rt.hasOwnProperty(Xn.default.INBAND)&&(Ot[Xn.default.INBAND]="false"!==Rt[Xn.default.INBAND]),Rt.hasOwnProperty(Xn.default.TYPE)&&(Ot[Xn.default.TYPE]=Rt[Xn.default.TYPE]),ee.push(Ot))))})),ee},getPublishTime:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.PUBLISH_TIME)?new Date(Rt[Xn.default.PUBLISH_TIME]):null},getRealPeriodForIndex:function(Rt,Ot){const ee=g(Ot);return ee.length>0&&oe(Rt)?ee[Rt]:null},getRealPeriods:g,getRegularPeriods:function(Rt){const ne=!!Rt&&E(Rt.manifest),re=[];let ie,le,oe=null,ue=null,ce=null,fe=null;for(le=0,ie=Rt&&Rt.manifest&&Rt.manifest.Period?Rt.manifest.Period.length:0;le<ie;le++)ue=Rt.manifest.Period[le],ue.hasOwnProperty(Xn.default.START)?(fe=new sa,fe.start=ue.start):null!==oe&&oe.hasOwnProperty(Xn.default.DURATION)&&null!==ce?(fe=new sa,fe.start=parseFloat((ce.start+ce.duration).toFixed(5))):0!==le||ne||(fe=new sa,fe.start=0),null!==ce&&isNaN(ce.duration)&&(null!==fe?ce.duration=parseFloat((fe.start-ce.start).toFixed(5)):Ot.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==fe&&(fe.id=C(ue,le),fe.index=le,fe.mpd=Rt,fe.isEncrypted=p(ue),ue.hasOwnProperty(Xn.default.DURATION)&&(fe.duration=ue.duration),ce&&(ce.nextPeriodId=fe.id),re.push(fe),oe=ue,ce=fe),ue=null,fe=null;return 0===re.length||null!==ce&&isNaN(ce.duration)&&(ce.duration=parseFloat((function(Rt){!function(){if(!ee||!ee.hasOwnProperty("error"))throw new Error(ge.default.MISSING_CONFIG_ERROR)}();const Ot=E(Rt.mpd.manifest);let ne;return Rt.mpd.manifest.mediaPresentationDuration?ne=Rt.mpd.manifest.mediaPresentationDuration:Rt.duration?ne=Rt.duration:Ot?ne=Number.POSITIVE_INFINITY:ee.error(new jn.default(zn.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",Rt)),ne}(ce)-ce.start).toFixed(5))),re},getRepresentationCount:function(Rt){return Rt&&Rt.Representation?Rt.Representation.length:0},getRepresentationFor:function(Rt,Ot){return Ot&&Ot.Representation&&Ot.Representation.length>0&&oe(Rt)?Ot.Representation[Rt]:null},getRepresentationSortFunction:function(){return(Rt,Ot)=>Rt.bandwidth-Ot.bandwidth},getRepresentationsForAdaptation:function(Rt,Ot){const ee=[],ne=function(Rt){if(Rt&&Rt.period&&oe(Rt.period.index)){const Ot=Rt.period.mpd.manifest.Period[Rt.period.index];if(Ot&&Ot.AdaptationSet&&oe(Rt.index))return c(Ot.AdaptationSet[Rt.index])}}(Rt);let re;if(ne&&ne.Representation){if(Rt&&Rt.period&&oe(Rt.period.index)){const Ot=x(Rt.period.mpd.manifest);Ot&&(re=Ot[0])}for(let ie=0,le=ne.Representation.length;ie<le;++ie){const le=k(Ot,ne.Representation[ie],Rt,ne,re,ie);ee.push(le)}}return ee},getRolesForAdaptation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.ROLE)&&Rt[Xn.default.ROLE].length?Rt[Xn.default.ROLE].map((Rt=>{Rt.schemeIdUri===ge.default.DASH_ROLE_SCHEME_ID&&"Main"===Rt.value&&(Rt.value=Xn.default.MAIN);const Ot=new Jn;return Ot.init(Rt),Ot})):[]},getSegmentAlignment:function(Rt){return!(!Rt||!Rt.hasOwnProperty(Xn.default.SEGMENT_ALIGNMENT))&&"true"===Rt[Xn.default.SEGMENT_ALIGNMENT]},getSegmentSequencePropertiesForAdaptationSet:function(Rt){const Ot=[];return Rt?(Ot.push(...I(Rt)),Rt.Representation&&Rt.Representation.length&&Rt.Representation.forEach((Rt=>{Ot.push(...I(Rt))})),Ot):Ot},getSelectionPriority:function(Rt){try{const Ot=Rt&&void 0!==Rt.selectionPriority?parseInt(Rt.selectionPriority):1;return isNaN(Ot)?1:Ot}catch(Rt){return 1}},getServiceDescriptions:function(Rt){const Ot=[];if(Rt&&Rt.hasOwnProperty(Xn.default.SERVICE_DESCRIPTION))for(const ee of Rt.ServiceDescription){let Rt=null,ne=null,re=null,ie=null,le=null,oe=null,ue=null,ce=null;for(const Ot in ee)if(ee.hasOwnProperty(Ot))if(Ot===Xn.default.ID)Rt=ee[Ot];
1else if(Ot===Xn.default.SERVICE_DESCRIPTION_SCOPE)ne=ee[Ot].schemeIdUri;else if(Ot===Xn.default.SERVICE_DESCRIPTION_LATENCY)re={target:parseInt(ee[Ot].target),max:parseInt(ee[Ot].max),min:parseInt(ee[Ot].min),referenceId:parseInt(ee[Ot].referenceId)};else if(Ot===Xn.default.SERVICE_DESCRIPTION_PLAYBACK_RATE)ie={max:parseFloat(ee[Ot].max),min:parseFloat(ee[Ot].min)};else if(Ot===Xn.default.SERVICE_DESCRIPTION_OPERATING_QUALITY)le={mediaType:ee[Ot].mediaType,max:parseInt(ee[Ot].max),min:parseInt(ee[Ot].min),target:parseInt(ee[Ot].target),type:ee[Ot].type,maxQualityDifference:parseInt(ee[Ot].maxQualityDifference)};else if(Ot===Xn.default.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH)oe={mediaType:ee[Ot].mediaType,max:parseInt(ee[Ot].max),min:parseInt(ee[Ot].min),target:parseInt(ee[Ot].target)};else if(Ot===Xn.default.CONTENT_STEERING){let Rt=ee[Ot];Rt=Array.isArray(Rt)?Rt.at(Rt.length-1):Rt,ue=M(Rt)}else Ot===Xn.default.CLIENT_DATA_REPORTING&&(ce=P(ee[Ot]));Ot.push({id:Rt,schemeIdUri:ne,latency:re,playbackRate:ie,operatingQuality:le,operatingBandwidth:oe,contentSteering:ue,clientDataReporting:ce})}return Ot},getSubSegmentAlignment:function(Rt){return!(!Rt||!Rt.hasOwnProperty(Xn.default.SUB_SEGMENT_ALIGNMENT))&&"true"===Rt[Xn.default.SUB_SEGMENT_ALIGNMENT]},getSuggestedPresentationDelay:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.SUGGESTED_PRESENTATION_DELAY)?Rt.suggestedPresentationDelay:null},getSupplementalProperties:w,getUTCTimingSources:function(Rt){const Ot=E(Rt),ee=!!Rt&&Rt.hasOwnProperty(Xn.default.AVAILABILITY_START_TIME),ne=Rt?Rt.UTCTiming:null,re=[];return(Ot||ee)&&ne&&ne.forEach((function(Rt){const Ot=new ba.default;Rt.hasOwnProperty(ge.default.SCHEME_ID_URI)&&(Ot.schemeIdUri=Rt.schemeIdUri,Rt.hasOwnProperty(Xn.default.VALUE)&&(Ot.value=Rt.value.toString(),re.push(Ot)))})),re},getViewpointForAdaptation:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.VIEWPOINT)&&Rt[Xn.default.VIEWPOINT].length?Rt[Xn.default.VIEWPOINT].map((Rt=>{const Ot=new Jn;return Ot.init(Rt),Ot})):[]},hasProfile:function(Rt,Ot){let ee=!1;return Rt&&Rt.profiles&&Rt.profiles.length>0&&(ee=-1!==Rt.profiles.indexOf(Ot)),ee},isPeriodEncrypted:p,setConfig:function(Rt){Rt&&(Rt.errHandler&&(ee=Rt.errHandler),Rt.BASE64&&(ne=Rt.BASE64))}},Ot=(0,le.default)(re).getInstance().getLogger(Rt),Rt}me.__dashjs_factory_name="DashManifestModel";var Ea=ne.default.getSingletonFactory(me);const _a="utf-16be",va="utf-16le",Sa="utf-8";function Te(Rt,Ot){if(Rt<0)return-Te(-Rt,Ot);const ee=Math.pow(10,Ot);if(Math.abs(Rt*ee%1-.5)<Number.EPSILON){const Ot=Math.floor(Rt*ee);return(Ot%2==0?Ot:Ot+1)/ee}return Math.round(Rt*ee)/ee}const Ia=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g;function ve(Rt){return-1===Rt.indexOf("&")?Rt:Rt.replace(Ia,(Rt=>{switch(Rt){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'";case"&nbsp;":return" ";case"&lrm;":return"‎";case"&rlm;":return"‏";default:if("#"===Rt[1]){const Ot="x"===Rt[2]||"X"===Rt[2]?parseInt(Rt.slice(3),16):parseInt(Rt.slice(2),10);return String.fromCodePoint(Ot)}return Rt}}))}var ka=class t{constructor(Rt,Ot){Array.isArray(Rt)&&(Rt=Rt.map((Rt=>Rt instanceof t?Rt:new t(Rt)))),this.value=Rt,this.params=Ot}};const Aa="Dict";function Ie(Rt,Ot){return{value:Rt,src:Ot}}function ke(Rt,Ot,ee,ne){return new Error(`failed to ${Rt} "${re=Ot,Array.isArray(re)?JSON.stringify(re):re instanceof Map?"Map{}":re instanceof Set?"Set{}":"object"==typeof re?JSON.stringify(re):String(re)}" as ${ee}`,{cause:ne});var re}function Ae(Rt,Ot,ee){return ke("parse",Rt,Ot,ee)}const xa="Inner List",Oa="Bare Item",Pa="Boolean",za="Byte Sequence",La="Date",Fa="Decimal",Ua="Integer",ja=`${Ua} or ${Fa}`;function ze(Rt){return Rt<-999999999999999||999999999999999<Rt}function Le(Rt){let Ot,ee=1,ne="";const re=Ae(Rt,ja);if("-"===Rt[0]&&(ee=-1,Rt=Rt.substring(1)),Rt.length<=0)throw re;const ie=/^(\d+)?/g,le=ie.exec(Rt);if(0===le[0].length)throw re;if(ne+=le[1],"."===(Rt=Rt.substring(ie.lastIndex))[0]){if(ne.length>12)throw re;const ie=/^(\.\d+)?/g,le=ie.exec(Rt);if(Rt=Rt.substring(ie.lastIndex),0===le[0].length||le[1].length>4)throw re;if(ne+=le[1],ne.length>16)throw re;Ot=parseFloat(ne)*ee}else{if(ne.length>15)throw re;if(Ot=parseInt(ne)*ee,ze(Ot))throw Ae(ne,ja)}return Ie(Ot,Rt)}const Ba="String",Ga=/[\x00-\x1f\x7f]+/;var Ha=class{constructor(Rt){this.description=Rt}};const Ya="Token";function Be(Rt,Ot){const ee=Rt[0];if('"'===ee)return function(Rt){let Ot="",ee=0;if('"'!==Rt[ee])throw Ae(Rt,Ba);for(ee++;Rt.length>ee;
vendor: 4,176 bytes, line 1
1){if("\\"===Rt[ee]){if(Rt.length<=ee+1)throw Ae(Rt,Ba);if(ee++,'"'!==Rt[ee]&&"\\"!==Rt[ee])throw Ae(Rt,Ba);Ot+=Rt[ee]}else{if('"'===Rt[ee])return Ie(Ot,Rt.substring(++ee));if(Ga.test(Rt[ee]))throw Ae(Rt,Ba);Ot+=Rt[ee]}ee++}throw Ae(Rt,Ba)}(Rt);if(/^[-0-9]/.test(ee))return Le(Rt);if("?"===ee)return function(Rt){let Ot=0;if("?"!==Rt[Ot])throw Ae(Rt,Pa);if(Ot++,"1"===Rt[Ot])return Ie(!0,Rt.substring(++Ot));if("0"===Rt[Ot])return Ie(!1,Rt.substring(++Ot));throw Ae(Rt,Pa)}(Rt);if(":"===ee)return function(Rt){if(":"!==Rt[0])throw Ae(Rt,za);if(!1===(Rt=Rt.substring(1)).includes(":"))throw Ae(Rt,za);const Ot=/(^.*?)(:)/g,ee=Ot.exec(Rt)[1];return Rt=Rt.substring(Ot.lastIndex),Ie(new Uint8Array([...atob(ee)].map((Rt=>Rt.charCodeAt(0)))),Rt)}(Rt);if(/^[a-zA-Z*]/.test(ee))return function(Rt,Ot){if(!1===/^[a-zA-Z*]$/.test(Rt[0]))throw Ae(Rt,Ya);const ee=/^([!#$%&'*+\-.^_`|~\w:/]+)/g,ne=ee.exec(Rt)[1];return Rt=Rt.substring(ee.lastIndex),Ie(!1===Ot?.useSymbol?new Ha(ne):Symbol.for(ne),Rt)}(Rt,Ot);if("@"===ee)return function(Rt){let Ot=0;if("@"!==Rt[Ot])throw Ae(Rt,La);Ot++;const ee=Le(Rt.substring(Ot));if(!1===Number.isInteger(ee.value))throw Ae(Rt,La);return Ie(new Date(1e3*ee.value),ee.src)}(Rt);throw Ae(Rt,Oa)}function He(Rt){let Ot=0;if(!1===/^[a-z*]$/.test(Rt[Ot]))throw Ae(Rt,"Key");let ee="";for(;Rt.length>Ot;){if(!1===/^[a-z0-9_\-.*]$/.test(Rt[Ot]))return Ie(ee,Rt.substring(Ot));ee+=Rt[Ot],Ot++}return Ie(ee,Rt.substring(Ot))}function Ye(Rt,Ot){let ee;for(;Rt.length>0&&";"===Rt[0];){const ne=He(Rt=Rt.substring(1).trim()),re=ne.value;let ie=!0;if("="===(Rt=ne.src)[0]){const ee=Be(Rt=Rt.substring(1),Ot);ie=ee.value,Rt=ee.src}null==ee&&(ee={}),ee[re]=ie}return Ie(ee,Rt)}function Ve(Rt,Ot){const ee=Be(Rt,Ot),ne=Ye(Rt=ee.src,Ot);return Rt=ne.src,Ie(new ka(ee.value,ne.value),Rt)}function Ke(Rt,Ot){return"("===Rt[0]?function(Rt,Ot){if("("!==Rt[0])throw Ae(Rt,xa);Rt=Rt.substring(1);const ee=[];for(;Rt.length>0;){if(")"===(Rt=Rt.trim())[0]){const ne=Ye(Rt=Rt.substring(1),Ot);return Ie(new ka(ee,ne.value),ne.src)}const ne=Ve(Rt,Ot);if(ee.push(ne.value)," "!==(Rt=ne.src)[0]&&")"!==Rt[0])throw Ae(Rt,xa)}throw Ae(Rt,xa)}(Rt,Ot):Ve(Rt,Ot)}const Va="List";function $e(Rt,Ot,ee){return ke("serialize",Rt,Ot,ee)}function Qe(Rt){if(ze(Rt))throw $e(Rt,Ua);return Rt.toString()}function Xe(Rt){const Ot=Te(Rt,3);if(Math.floor(Math.abs(Ot)).toString().length>12)throw $e(Rt,Fa);const ee=Ot.toString();return ee.includes(".")?ee:`${ee}.0`}function Ze(Rt){return Rt.description||Rt.toString().slice(7,-1)}function Je(Rt){const Ot=Ze(Rt);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(Ot))throw $e(Ot,Ya);return Ot}function tn(Rt){switch(typeof Rt){case"number":if(!Number.isFinite(Rt))throw $e(Rt,Oa);return Number.isInteger(Rt)?Qe(Rt):Xe(Rt);case"string":return function(Rt){if(Ga.test(Rt))throw $e(Rt,Ba);return`"${Rt.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(Rt);case"symbol":return Je(Rt);case"boolean":return function(Rt){if("boolean"!=typeof Rt)throw $e(Rt,Pa);return Rt?"?1":"?0"}(Rt);case"object":if(Rt instanceof Date)return function(Rt){return`@${Qe(Rt.getTime()/1e3)}`}(Rt);if(Rt instanceof Uint8Array)return function(Rt){if(!1===ArrayBuffer.isView(Rt))throw $e(Rt,za);return`:${Ot=Rt,btoa(String.fromCharCode(...Ot))}:`;var Ot}(Rt);if(Rt instanceof Ha)return Je(Rt);default:throw $e(Rt,Oa)}}function en(Rt){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(Rt))throw $e(Rt,"Key");return Rt}function nn(Rt){return null==Rt?"":Object.entries(Rt).map((([Rt,Ot])=>!0===Ot?`;${en(Rt)}`:`;${en(Rt)}=${tn(Ot)}`)).join("")}function an(Rt){return Rt instanceof ka?`${tn(Rt.value)}${nn(Rt.params)}`:tn(Rt)}function rn(Rt,Ot){return function(Rt,Ot={whitespace:!0}){if("object"!=typeof Rt||null==Rt)throw $e(Rt,Aa);const ee=Rt instanceof Map?Rt.entries():Object.entries(Rt),ne=Ot?.whitespace?" ":"";return Array.from(ee).map((([Rt,Ot])=>{Ot instanceof ka==0&&(Ot=new ka(Ot));let ee=en(Rt);return!0===Ot.value?ee+=nn(Ot.params):(ee+="=",Array.isArray(Ot.value)?ee+=function(Rt){return`(${Rt.value.map(an).join(" ")})${nn(Rt.params)}`}(Ot):ee+=an(Ot)),ee})).join(`,${ne}`)}(Rt,Ot)}const Ka={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",
1KEY:"k",OTHER:"o"},$a="CMCD-Object",tr="CMCD-Request",er="CMCD-Session",nr="CMCD-Status",ir={br:$a,ab:$a,d:$a,ot:$a,tb:$a,tpb:$a,lb:$a,tab:$a,lab:$a,url:$a,pb:tr,bl:tr,tbl:tr,dl:tr,ltc:tr,mtp:tr,nor:tr,nrr:tr,rc:tr,sn:tr,sta:tr,su:tr,ttfb:tr,ttfbb:tr,ttlb:tr,cmsdd:tr,cmsds:tr,smrt:tr,df:tr,cs:tr,ts:tr,cid:er,pr:er,sf:er,sid:er,st:er,v:er,msd:er,bs:nr,bsd:nr,cdn:nr,rtp:nr,bg:nr,pt:nr,ec:nr,e:nr},or=tr,sr=er,ur="event",mn=Rt=>Math.round(Rt),hn=(Rt,Ot)=>Array.isArray(Rt)?Rt.map((Rt=>hn(Rt,Ot))):Rt instanceof ka&&"string"==typeof Rt.value?new ka(hn(Rt.value,Ot),Rt.params):(Ot.baseUrl&&(Rt=function(Rt,Ot){const ee=new URL(Rt),ne=new URL(Ot);if(ee.origin!==ne.origin)return Rt;const re=ee.pathname.split("/").slice(1),ie=ne.pathname.split("/").slice(1,-1),le=Math.min(re.length,ie.length);for(let Rt=0;Rt<le&&re[Rt]===ie[Rt];Rt++)re.shift(),ie.shift();for(;ie.length;)ie.shift(),re.unshift("..");return re.join("/")+ee.search+ee.hash}(Rt,Ot.baseUrl)),1===Ot.version?encodeURIComponent(Rt):Rt),pn=Rt=>100*mn(Rt/100),dr={br:mn,d:mn,bl:pn,dl:pn,mtp:pn,nor:(Rt,Ot)=>{let ee=Rt;return Ot.version>=2&&(Rt instanceof ka&&"string"==typeof Rt.value?ee=new ka([Rt]):"string"==typeof Rt&&(ee=[Rt])),hn(ee,Ot)},rtp:pn,tb:mn},cr="request",Ir=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],kr=["e"],Rr=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"],Cr=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function Sn(Rt){return Cr.test(Rt)}const Dr=["d","dl","nor","ot","rtp","su"],xr=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function kn(Rt){return xr.includes(Rt)||Sn(Rt)}const Mr={[ur]:function(Rt){return Ir.includes(Rt)||kr.includes(Rt)||Rr.includes(Rt)||Sn(Rt)},[cr]:function(Rt){return Ir.includes(Rt)||Dr.includes(Rt)||Sn(Rt)}};function Rn(Rt,Ot={}){const ee={};if(null==Rt||"object"!=typeof Rt)return ee;const ne=Ot.version||Rt.v||1,re=Ot.reportingMode||cr,ie=1===ne?kn:Mr[re];let le=Object.keys(Rt).filter(ie);Rt.e&&"rr"!==Rt.e&&(le=le.filter((Rt=>!function(Rt){return Rr.includes(Rt)}(Rt))));const oe=Ot.filter;"function"==typeof oe&&(le=le.filter(oe));const ue=re===ur;ue&&!le.includes("ts")&&le.push("ts"),ne>1&&!le.includes("v")&&le.push("v");const ce=Object.assign({},dr,Ot.formatters),fe={version:ne,reportingMode:re,baseUrl:Ot.baseUrl};return le.sort().forEach((Ot=>{let re=Rt[Ot];const ie=ce[Ot];if("function"==typeof ie&&(re=ie(re,fe)),"v"===Ot){if(1===ne)return;re=ne}"pr"==Ot&&1===re||(ue&&"ts"===Ot&&!Number.isFinite(re)&&(re=Date.now()),function(Rt){return"number"==typeof Rt?Number.isFinite(Rt):null!=Rt&&""!==Rt&&!1!==Rt}(re)&&(function(Rt){return["ot","sf","st","e","sta"].includes(Rt)}(Ot)&&"string"==typeof re&&(re=new Ha(re)),ee[Ot]=re))})),ee}const Or=new Set([...xr,...Ir,...Dr,...Rr,...kr]),Pr=(Array.from(Or),Ka),Ur="d",jr="s",Br="v",Vr="l",Wr="segment";function On(){let Rt,Ot,ee,ne,re,ie,ue,fe,pe,be,ye,Ee,Se,we,Re,Ne,Ce=this.context,De=(0,ce.default)(Ce).getInstance(),xe=(0,oe.default)(Ce).getInstance(),Me=(0,le.default)(Ce).getInstance();function k(){ne={pr:1,nor:null,st:null,sf:null,sid:`${Bn.default.generateUuid()}`,cid:null},Se={},Ee={},we={},ye=void 0,Re=void 0,Ne=!1,C()}function A(){C()}function R(){Re||(Re=Date.now())}function N(){Re&&!ne.msd&&(ne.msd=Date.now()-Re)}function C(){if(!ue)return;const Rt=ue.getStreamController();if(!Rt)return;if("function"!=typeof Rt.getActiveStream)return;const Ot=Rt.getActiveStream();Ot&&(be=Ot.getStreamProcessors())}function D(Rt){try{const Ot=M(),ee=Ot.version?Ot.keys:xe.get().streaming.cmcd.enabledKeys;return Object.keys(Rt).filter((Rt=>ee.includes(Rt))).reduce(((Ot,ee)=>(Ot[ee]=Rt[ee],Ot)),{})}catch(Ot){return Rt}}function x(){const Rt=M();return function(Rt){if(Object.keys(Rt).length){if(1!==parseInt(Rt.version))return ee.error("version parameter must be defined in 1."),!1;if(!Rt.keys)return ee.error("keys parameter must be defined."),!1}const Ot=Rt.version,ne=xe.get().streaming.cmcd&&xe.get().streaming.cmcd.enabled;return Ot||ne}(Rt)&&function(Rt){let Ot=xe.get().streaming.cmcd.includeInRequests;Rt.version&&(Ot=Rt.includeInRequests??[Wr]);const ne=ge.default.CMCD_AVAILABLE_REQUESTS,re=Ot.filter((Rt=>!ne.includes(Rt)));return re.length===Ot.length?(ee.error("None of the request types are supported."),!1):(re.map((Rt=>{ee.warn(`request type ${Rt} is not supported.`)})),!0)}(Rt)&&function(Rt){const Ot=ge.default.CMCD_AVAILABLE_KEYS,ne=ge.default.CMCD_V2_AVAILABLE_KEYS,re=Rt.version?Rt.keys:xe.get().streaming.cmcd.enabledKeys,ie=xe.get().streaming.cmcd.version,le=re.filter((Rt=>!(Ot.includes(Rt)||2===ie&&ne.includes(Rt))));return le.length===re.length&&re.length>0?(ee.error(`None of the keys are implemented for CMCD version ${ie}.`),!1):(le.map((Rt=>{ee.warn(`key parameter ${Rt} is not implemented for CMCD version ${ie}.`)})),!0)}(Rt)}function M(){let Rt={};if(fe){const Ot=fe.getServiceDescriptionSettings();xe.get().streaming.cmcd.applyParametersFromMpd&&Ot.clientDataReporting&&Ot.clientDataReporting.cmcdParameters&&(Rt=Ot.clientDataReporting.cmcdParameters)}return Rt}function P(Rt){try{let ee=null;if(Rt.type,(Ot=Rt.mediaType)!==ge.default.VIDEO&&Ot!==ge.default.AUDIO||ye&&ye!=ge.default.AUDIO||(ye=Ot),function(Rt){const Ot=M();let ee=xe.get().streaming.cmcd.includeInRequests;Ot.version&&(ee=Ot.includeInRequests?Ot.includeInRequests:[Wr]);const ne={[_e.HTTPRequest.INIT_SEGMENT_TYPE]:"segment",[_e.HTTPRequest.MEDIA_SEGMENT_TYPE]:"segment",[_e.HTTPRequest.XLINK_EXPANSION_TYPE]:"xlink",[_e.HTTPRequest.MPD_TYPE]:"mpd",[_e.HTTPRequest.CONTENT_STEERING_TYPE]:"steering",[_e.HTTPRequest.OTHER_TYPE]:"other"};return ee.some((Ot=>ne[Rt]===Ot))}(Rt.type)){if(Rt.type===_e.HTTPRequest.MPD_TYPE)return function(){const Rt=L();return Rt.ot=Pr.MANIFEST,Rt}();if(Rt.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE)return z(Rt.mediaType),O(Rt,Rt.mediaType);if(Rt.type===_e.HTTPRequest.INIT_SEGMENT_TYPE)return function(){const Rt=L();return Rt.ot=Pr.INIT,Rt.su=!0,Rt}();if(Rt.type===_e.HTTPRequest.OTHER_TYPE||Rt.type===_e.HTTPRequest.XLINK_EXPANSION_TYPE)return function(){const Rt=L();return Rt.ot=Pr.OTHER,Rt}();if(Rt.type===_e.HTTPRequest.LICENSE)return function(){const Rt=L();return Rt.ot=Pr.KEY,Rt}();if(Rt.type===_e.HTTPRequest.CONTENT_STEERING_TYPE)return function(Rt){const Ot=ye?O(Rt,ye):L();return Ot.ot=Pr.OTHER,Ot}(Rt)}return ee}catch(Rt){return null}var Ot}function O(Rt,Ot){z(Ot);const ee=L(),le=function(Rt){try{return parseInt(Rt.bandwidth/1e3)}catch(Rt){return null}}(Rt),oe=function(Rt){try{return isNaN(Rt.duration)?NaN:Math.round(1e3*Rt.duration)}catch(Rt){return null}}(Rt),ce=function(Rt){try{return 100*parseInt(pe.getSafeAverageThroughput(Rt)/100)}catch(Rt){return null}}(Ot),fe=function(Rt){try{const Ot=ne.pr,ee=ie.getCurrentBufferLevel(Rt);return isNaN(Ot)||isNaN(ee)?null:100*parseInt(ee/Ot*10)}catch(Rt){return null}}
1(Ot),he=F(Ot),ye=function(Rt){try{const Ot=re.getPossibleVoRepresentationsFilteredBySettings(Rt).map((Rt=>Rt.bitrateInKbit));return Math.max(...Ot)}catch(Rt){return null}}(Rt.representation?.mediaInfo),_e=ne.pr,Re=function(Rt){if(be&&0!==be.length)for(let Ot of be)if(Ot.getType()===Rt)return Ot.probeNextRequest()}(Ot);let Ne;Ot===ge.default.VIDEO&&(Ne=Pr.VIDEO),Ot===ge.default.AUDIO&&(Ne=Pr.AUDIO),Rt.mediaType===ge.default.ENHANCEMENT&&(Ne=Pr.OTHER),Ot===ge.default.TEXT&&(Ne="application/mp4"===Rt.representation.mediaInfo.mimeType?Pr.TIMED_TEXT:Pr.CAPTION);let Ce=xe.get().streaming.cmcd.rtp;return Ce||(Ce=function(Rt){try{let Ot=ue.getPlaybackRate();Ot||(Ot=1);let{bandwidth:ee,mediaType:ne,representation:re,duration:ie}=Rt;if(!re.mediaInfo)return NaN;let le=F(ne);0===le&&(le=500);let oe=ee*ie/1e3/(le/Ot/1e3),ce=xe.get().streaming.cmcd.rtpSafetyFactor&&!isNaN(xe.get().streaming.cmcd.rtpSafetyFactor)?xe.get().streaming.cmcd.rtpSafetyFactor:5;return 100*(parseInt(oe*ce/100)+1)}catch(Rt){return NaN}}(Rt)),isNaN(Ce)||(ee.rtp=Ce),Re&&(Rt.url!==Re.url?ee.nor=encodeURIComponent(Bn.default.getRelativeUrl(Rt.url,Re.url)):Re.range&&(ee.nrr=Re.range)),le&&(ee.br=le),Ne&&(ee.ot=Ne),isNaN(oe)||(ee.d=oe),isNaN(ce)||(ee.mtp=ce),isNaN(fe)||(ee.dl=fe),isNaN(he)||(ee.bl=he),isNaN(ye)||(ee.tb=ye),isNaN(_e)||1===_e||(ee.pr=_e),Se[Ot]&&(ee.bs=!0,Se[Ot]=!1),!Ee[Ot]&&we[Ot]||(ee.su=!0,Ee[Ot]=!1,we[Ot]=!0),ee}function z(Rt){we.hasOwnProperty(Rt)||(we[Rt]=!1),Ee.hasOwnProperty(Rt)||(Ee[Rt]=!1),Se.hasOwnProperty(Rt)||(Se[Rt]=!1)}function L(){const Rt=M(),Ot={};let ee=xe.get().streaming.cmcd.cid?xe.get().streaming.cmcd.cid:ne.cid;if(ee=Rt.contentID?Rt.contentID:ee,Ot.v=xe.get().streaming.cmcd.version??1,Ot.sid=xe.get().streaming.cmcd.sid?xe.get().streaming.cmcd.sid:ne.sid,Ot.sid=Rt.sessionID?Rt.sessionID:Ot.sid,Ot.sid=`${Ot.sid}`,ee&&(Ot.cid=`${ee}`),isNaN(ne.pr)||1===ne.pr||null===ne.pr||(Ot.pr=ne.pr),ne.st&&(Ot.st=ne.st),ne.sf&&(Ot.sf=ne.sf),2===Ot.v){let Rt=1e3*ue.getCurrentLiveLatency();isNaN(Rt)||(Ot.ltc=Rt);const ee=ne.msd;Ne||isNaN(ee)||(Ot.msd=ee,Ne=!0)}return Ot}function F(Rt){try{const Ot=ie.getCurrentBufferLevel(Rt);return isNaN(Ot)?null:100*parseInt(10*Ot)}catch(Rt){return null}}function U(Rt){try{ne.pr=Rt.playbackRate}catch(Rt){}}function j(Ot){try{const ee=Rt.getIsDynamic(Ot.data)?Vr:Br,re=Ot.protocol&&"MSS"===Ot.protocol?jr:Ur;ne.st=`${ee}`,ne.sf=`${re}`}catch(Rt){}}function q(Rt){try{Rt.state&&Rt.mediaType&&Rt.state===he.default.BUFFER_EMPTY&&(Se[Rt.mediaType]||(Se[Rt.mediaType]=!0),Ee[Rt.mediaType]||(Ee[Rt.mediaType]=!0))}catch(Rt){}}function B(){for(let Rt in Se)Se.hasOwnProperty(Rt)&&(Se[Rt]=!0);for(let Rt in Ee)Ee.hasOwnProperty(Rt)&&(Ee[Rt]=!0)}return Ot={getCmcdData:P,getQueryParameter:function(Rt){try{if(x()){const Ot=P(Rt),ee=function(Rt,Ot={}){return Rt?rn(Rn(Rt,Ot),{whitespace:!1}):""}(D(Ot));return De.trigger(Vn.default.CMCD_DATA_GENERATED,{url:Rt.url,mediaType:Rt.mediaType,cmcdData:Ot,cmcdString:ee}),{key:"CMCD",value:ee}}return null}catch(Rt){return null}},getHeaderParameters:function(Rt){try{if(x()){const Ot=P(Rt),ee=function Nn(Rt,Ot={}){const ee={};if(!Rt)return ee;const ne=function(Rt,Ot){const ee={};if(!Rt)return ee;const ne=Object.keys(Rt),re=Ot?(ie=Ot,Object.keys(ie).reduce(((Rt,Ot)=>(ie[Ot]?.forEach((ee=>Rt[ee]=Ot)),Rt)),{})):{};var ie;return ne.reduce(((Ot,ee)=>{const ne=ir[ee]||re[ee]||or;return(Ot[ne]??={})[ee]=Rt[ee],Ot}),ee)}(Rn(Rt,Ot),Ot?.customHeaderMap);return Object.entries(ne).reduce(((Rt,[Ot,ee])=>{const ne=rn(ee,{whitespace:!1});return ne&&(Rt[Ot]=ne),Rt}),ee)}(D(Ot),1===xe.get().streaming.cmcd.version?{}:{customHeaderMap:{[or]:["ltc"],[sr]:["msd"]}});return De.trigger(Vn.default.CMCD_DATA_GENERATED,{url:Rt.url,mediaType:Rt.mediaType,cmcdData:Ot,headers:ee}),ee}return null}catch(Rt){return null}},getCmcdParametersFromManifest:M,setConfig:function(Rt){Rt&&(Rt.abrController&&(re=Rt.abrController),Rt.dashMetrics&&(ie=Rt.dashMetrics),Rt.throughputController&&(pe=Rt.throughputController),Rt.playbackController&&(ue=Rt.playbackController),Rt.serviceDescriptionController&&(fe=Rt.serviceDescriptionController))},reset:function(){De.off(he.default.PLAYBACK_RATE_CHANGED,U,this),De.off(he.default.MANIFEST_LOADED,j,this),De.off(he.default.BUFFER_LEVEL_STATE_CHANGED,q,Ot),De.off(he.default.PLAYBACK_SEEKED,B,Ot),De.off(he.default.PLAYBACK_STARTED,R,Ot),De.off(he.default.PLAYBACK_PLAYING,N,Ot),k()},initialize:function(Rt){De.on(he.default.PLAYBACK_RATE_CHANGED,U,Ot),De.on(he.default.MANIFEST_LOADED,j,Ot),De.on(he.default.BUFFER_LEVEL_STATE_CHANGED,q,Ot),De.on(he.default.PLAYBACK_SEEKED,B,Ot),De.on(he.default.PERIOD_SWITCH_COMPLETED,A,Ot),Rt?De.on(he.default.MANIFEST_LOADING_STARTED,R,Ot):De.on(he.default.PLAYBACK_STARTED,R,Ot),De.on(he.default.PLAYBACK_PLAYING,N,Ot)},isCmcdEnabled:x},Rt=Ea(Ce).getInstance(),ee=Me.getLogger(Ot),k(),Ot}On.__dashjs_factory_name="CmcdModel";var $r=ne.default.getSingletonFactory(On);const Xr="CMSD-Dynamic",Zr="CMSD-Static",ti=Ka,ei=Zr.toLowerCase(),ai=Xr.toLowerCase(),ii=["mb","st","sf","v"],li="stream",oi={video:ti.VIDEO,audio:ti.AUDIO,text:ti.TIMED_TEXT,stream:li};function Yn(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,ie;function l(){re={},ie={}}function s(Rt){Rt&&Object.keys(Rt).forEach((Ot=>{ii.includes(Ot)||delete Rt[Ot]}))}function u(Rt){try{return(Ot=Rt)?Object.entries(function(Rt,Ot){try{const{src:Ot,value:ee}=function(Rt,Ot){const ee={};for(;Rt.length>0;){let ne;const re=He(Rt),ie=re.value;if("="===(Rt=re.src)[0]){const ee=Ke(Rt.substring(1),Ot);ne=ee.value,Rt=ee.src}else{const ee=Ye(Rt,Ot);ne=new ka(!0,ee.value),Rt=ee.src}if(ee[ie]=ne,0===(Rt=Rt.trim()).length)return Ie(ee,Rt);if(","!==Rt[0])throw Ae(Rt,Aa);if(0===(Rt=Rt.substring(1).trim()).length||","===Rt[0])throw Ae(Rt,Aa)}return Ie(ee,Rt)}(Rt.trim(),void 0);if(""!==Ot)throw Ae(Ot,Aa);return ee}catch(Ot){throw Ae(Rt,Aa,Ot)}}(Ot)).reduce(((Rt,[Ot,ee])=>{const{value:ne}=ee;return Rt[Ot]="symbol"==typeof ne?Ze(ne):ne,Rt}),{}):{}}catch(Rt){ne.error("Failed to parse CMSD-Static response header value:",Rt)}var Ot}function d(Rt){try{const ee=(Ot=Rt)?function(Rt,Ot){try{const{src:Ot,value:ee}=function(Rt,Ot){const ee=[];for(;Rt.length>0;){const Ot=Ke(Rt,undefined);if(ee.push(Ot.value),0===(Rt=Ot.src.trim()).length)return Ie(ee,Rt);if(","!==Rt[0])throw Ae(Rt,Va);if(0===(Rt=Rt.substring(1).trim()).length||","===Rt[0])throw Ae(Rt,Va)}return Ie(ee,Rt)}(Rt.trim());if(""!==Ot)throw Ae(Ot,Va);return ee}catch(Ot){throw Ae(Rt,Va,Ot)}}(Ot):[];return ee[ee.length-1]?.params||{}}catch(Rt){return ne.error("Failed to parse CMSD-Dynamic response header value:",Rt),{}}var Ot}function c(Rt){return oi[Rt]||ti.OTHER}function m(Rt,Ot,ee){const ne=Rt===Zr?re:ie,le=ne[Ot]||{},oe=ne[li]||{};return le[ee]||oe[ee]}return ee={setConfig:function(){},initialize:function(){},reset:function(){l()},parseResponseHeaders:function(Rt,ee){let ne=null,le=null;for(const ee in Rt){const re=Rt[ee];switch(ee){case ei:ne=u(re),Ot.trigger(fe.default.CMSD_STATIC_HEADER,ne);break;case ai:le||(le=d(re))}}let oe=li;return ne&&ne.ot?oe=ne.ot:ee&&(oe=c(ee)),s(re[oe]),s(ie[oe]),ne&&(re[oe]=Object.assign(re[oe]||{},ne)),le&&(ie[oe]=Object.assign(ie[oe]||{},le)),{static:ne,dynamic:le}},getMaxBitrate:function(Rt){let Ot=c(Rt);return m(Xr,Ot,"mb")||-1},getEstimatedThroughput:function(Rt){let Ot=c(Rt);return m(Xr,Ot,"etp")||null},getResponseDelay:function(Rt){let Ot=c(Rt);return m(Xr,Ot,"rd")||null},getRoundTripTime:function(Rt){let Ot=c(Rt);return m(Xr,Ot,"rtt")||null}},ne=(0,le.default)(Rt).getInstance().getLogger(ee),l(),ee}Yn.__dashjs_factory_name="CmsdModel";var si=ne.default.getSingletonFactory(Yn),ui=ee(1926);function Wn(){let Rt,Ot;function n(){Ot={}}return Rt={reset:function(){n()},processResponseHeaders:function(Rt){if(!(Rt&&Rt.headers&&Rt.request&&Rt.request.url))return;const ee=Rt.headers[ge.default.COMMON_ACCESS_TOKEN_HEADER];if(ee){const ne=Bn.default.getHostFromUrl(Rt.request.url);ne&&(Ot[ne]=ee)}},getCommonAccessTokenForUrl:function(Rt){if(!Rt)return null;const ee=Bn.default.getHostFromUrl(Rt);return ee?Ot[ee]?Ot[ee]:null:void 0}},n(),Rt}Wn.__dashjs_factory_name="CommonAccessTokenController";var di=ne.default.getSingletonFactory(Wn);function Qn(){let Rt,Ot;return Rt={setConfig:function(Rt){Rt&&Rt.serviceDescriptionController&&(Ot=Rt.serviceDescriptionController)},isAdaptationsIncluded:function(Rt){const{adaptationSetsArray:ee}=Ot?.getServiceDescriptionSettings()?.clientDataReporting??{};return!ee||0===ee?.length||ee.includes(Rt)},isServiceLocationIncluded:function(Rt,ee){if(Rt===_e.HTTPRequest.CONTENT_STEERING_TYPE)return!0;const{serviceLocationsArray:ne}=Ot?.getServiceDescriptionSettings()?.clientDataReporting??{};return!ne||0===ne?.length||ne.includes(ee)}},Rt}Qn.__dashjs_factory_name="ClientDataReportingController";var ci=ne.default.getSingletonFactory(Qn);function Zn(){let Rt,Ot,ee;const ne=this.context;function r(Rt,Ot,ee,ne,re){const ie=function(Rt,Ot){let ee=[];return ee=Ot===Xn.default.PERIOD?Rt[Xn.default.SUPPLEMENTAL_PROPERTY]||[]:[...Rt[Xn.default.ESSENTIAL_PROPERTY]||[],...Rt[Xn.default.SUPPLEMENTAL_PROPERTY]||[]],ee.find((Rt=>Rt.schemeIdUri===ge.default.URL_QUERY_INFO_SCHEME&&Rt.UrlQueryInfo||Rt.schemeIdUri===ge.default.EXT_URL_QUERY_INFO_SCHEME&&Rt.ExtUrlQueryInfo))}(Ot,re);!function(Rt,Ot,ee,ne){ee.initialQueryString="";let re="";const ie=Rt?.ExtUrlQueryInfo||Rt?.UrlQueryInfo;re=ie&&ie.queryString?Ot&&Ot.length>0?Ot+"&"+ie.queryString:ie.queryString:Ot,"true"===ie?.useMPDUrlQuery&&ne&&(re=re?re+"&"+ne:ne),ee.initialQueryString=re}(ie,ne.initialQueryString,Rt,ee),function(Rt,Ot,ee){if(!Rt)return void(Ot.finalQueryString=ee);const ne=Rt?.ExtUrlQueryInfo?.queryTemplate||Rt?.UrlQueryInfo?.queryTemplate||"";Ot.finalQueryString=ne===Xn.default.QUERY_PART?Ot?.initialQueryString:""}(ie,Rt,ne.finalQueryString),Rt.sameOriginOnly=ie?.ExtUrlQueryInfo?.sameOriginOnly,Rt.queryParams=Bn.default.parseQueryParams(Rt?.finalQueryString),Rt.includeInRequests=function(Rt,Ot){return Rt?Rt.ExtUrlQueryInfo?.includeInRequests?Rt.ExtUrlQueryInfo.includeInRequests.split(" "):[Xn.default.SEGMENT_TYPE]:Ot}(ie,ne.includeInRequests)}return Ot=(0,le.default)(ne).getInstance().getLogger(Rt),Rt={getFinalQueryString:function(Rt){try{if(!ee)return null;if(Rt.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE||Rt.type===_e.HTTPRequest.INIT_SEGMENT_TYPE){const Ot=Rt.representation;if(!Ot)return null;const ne=Ot.adaptation,re=ne.period,ie=ee.period[re.index].adaptation[ne.index].representation[Ot.index],le=new URL(Rt.url),oe=!ie.sameOriginOnly||ee.origin===le.origin;if(ie.includeInRequests.includes(Xn.default.SEGMENT_TYPE)&&oe)return ie.queryParams}else if(Rt.type===_e.HTTPRequest.MPD_TYPE){if([Xn.default.MPD_TYPE,Xn.default.MPD_PATCH_TYPE].some((Rt=>ee.includeInRequests.includes(Rt))))return ee.queryParams}
1else if(Rt.type===_e.HTTPRequest.CONTENT_STEERING_TYPE&&ee.includeInRequests.includes(Xn.default.STEERING_TYPE))return ee.queryParams}catch(Rt){return Ot.error(Rt),null}},createFinalQueryStrings:function(Rt){ee={origin:new URL(Rt.url).origin,period:[]};const Ot=Rt.url.split("?")[1];r(ee,Rt,Ot,{initialQueryString:"",includeInRequests:[]},Xn.default.MPD),Rt.Period.forEach((Rt=>{const ne={adaptation:[]};r(ne,Rt,Ot,ee,Xn.default.PERIOD),Rt.AdaptationSet.forEach((Rt=>{const ee={representation:[]};r(ee,Rt,Ot,ne,Xn.default.ADAPTATION_SET),Rt.Representation.forEach((Rt=>{const ne={};r(ne,Rt,Ot,ee,Xn.default.REPRESENTATION),ee.representation.push(ne)})),ne.adaptation.push(ee)})),ee.period.push(ne)}))}},Rt}Zn.__dashjs_factory_name="ExtUrlQueryInfoController";var fi=ne.default.getSingletonFactory(Zn),gi=class{constructor(Rt){this.url=Rt.url,this.method=Rt.method,this.responseType=void 0!==Rt.responseType?Rt.responseType:null,this.headers=void 0!==Rt.headers?Rt.headers:{},this.credentials=void 0!==Rt.credentials?Rt.credentials:null,this.mode=void 0!==Rt.mode?Rt.mode:null,this.timeout=void 0!==Rt.timeout?Rt.timeout:0,this.cmcd=void 0!==Rt.cmcd?Rt.cmcd:null,this.customData=void 0!==Rt.customData?Rt.customData:null}},mi=class{constructor(Rt){this.request=Rt.request,this.url=void 0!==Rt.url?Rt.url:null,this.redirected=void 0!==Rt.redirected&&Rt.redirected,this.status=void 0!==Rt.status?Rt.status:null,this.statusText=void 0!==Rt.statusText?Rt.statusText:"",this.type=void 0!==Rt.type?Rt.type:"",this.headers=void 0!==Rt.headers?Rt.headers:{},this.data=void 0!==Rt.data?Rt.data:null,this.resourceTiming=void 0!==Rt.resourceTiming?Rt.resourceTiming:null}};function na(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.errHandler,ne=Rt.dashMetrics,re=Rt.mediaPlayerModel,ie=Rt.boxParser,ue=Rt.errors,he=Rt.requestTimeout||0,pe=(0,ce.default)(Ot).getInstance(),be=(0,oe.default)(Ot).getInstance();let ye,Ee,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue;function C(Rt,le){const o=function(){D()},u=function(Ot){const ee=new Date;ce&&(ce=!1,(!Ot.lengthComputable||Ot.lengthComputable&&Ot.total!==Ot.loaded)&&(oe.firstByteDate=ee,ln.resourceTiming.responseStart=ee.getTime())),Ot.lengthComputable&&(oe.bytesLoaded=ln.length=Ot.loaded,oe.bytesTotal=ln.resourceTiming.encodedBodySize=Ot.total,ln.length=Ot.total,ln.resourceTiming.encodedBodySize=Ot.loaded),Ot.noTrace||(ue.push({s:je,d:Ot.time?Ot.time:ee.getTime()-je.getTime(),b:[Ot.loaded?Ot.loaded-qe:0],t:Ot.throughput}),oe.traces=ue,je=ee,qe=Ot.loaded),Ge&&(clearTimeout(Ge),Ge=null),be.get().streaming.fragmentRequestProgressTimeout>0&&(Ge=setTimeout((function(){Ue.warn("Abort request "+We.url+" due to progress timeout"),sn.abort(We),o()}),be.get().streaming.fragmentRequestProgressTimeout)),Rt.progress&&Ot&&Rt.progress(Ot)},f=function(){D(!0)},h=function(Rt){let Ot;if(Rt.lengthComputable){let ee=Rt.loaded/Rt.total*100;Ot="Request timeout: loaded: "+Rt.loaded+", out of: "+Rt.total+" : "+ee.toFixed(3)+"% Completed"}else Ot="Request timeout: non-computable download size";Ue.warn(Ot)},D=function(Ot=!1){-1!==Ee.indexOf(We)&&Ee.splice(Ee.indexOf(We),1),Ge&&(clearTimeout(Ge),Ge=null),Oe.processResponseHeaders(ln),x(),M(),function(Rt){const Ot=Me.getResponseInterceptors();return Ot?Ot.reduce(((Rt,Ot)=>Rt.then((Rt=>Ot(Rt)))),Promise.resolve(Rt)):Promise.resolve(Rt)}(ln).then((ee=>{if(ln=ee,function(Rt,Ot,ee){const re=Rt.customData.request,ie=be.get().streaming.cmsd&&be.get().streaming.cmsd.enabled?Ce.parseResponseHeaders(Ot.headers,re.mediaType):null;ne.addHttpRequest(re,Ot.url,Ot.status,Ot.headers,ee,ie)}(We,ln,ue),Ot)Rt.abort&&Rt.abort(oe);else if(oe.type===_e.HTTPRequest.MPD_TYPE&&(ne.addManifestUpdate(oe),pe.trigger(fe.default.MANIFEST_LOADING_FINISHED,{requestObject:oe})),ln.status>=200&&ln.status<=299&&ln.data)Rt.success&&Rt.success(ln.data,ln.statusText,ln.url),Rt.complete&&Rt.complete(oe,ln.statusText);else{try{404===ln.status&&be.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&oe.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE&&re.getRetryAttemptsForType(_e.HTTPRequest.MEDIA_SEGMENT_TYPE)===le&&pe.trigger(fe.default.ATTEMPT_BACKGROUND_SYNC)}catch(Rt){}O()}}))},x=function(){oe.startDate=ye,oe.endDate=new Date,oe.firstByteDate=oe.firstByteDate||ye},M=function(){ln.resourceTiming.responseEnd=Date.now(),function(Rt,Ot){if(!be.get().streaming.abr.throughput.useResourceTimingApi)return;if("undefined"==typeof performance||Rt.range)return;const ee=performance.getEntriesByType?.("resource");if(void 0===ee||ee.length<=0)return;let ne=0,re=null;for(;ne<ee.length;){if(ee[ne].name===Rt.url){re=ee[ne];break}ne+=1}(function(Rt){return Rt&&!isNaN(Rt.responseStart)&&Rt.responseStart>0&&!isNaN(Rt.responseEnd)&&Rt.responseEnd>0&&!isNaN(Rt.transferSize)&&Rt.transferSize>0})(re)&&(Rt.customData.request.resourceTimingValues=re,Ot.resourceTiming.startTime=re.startTime,Ot.resourceTiming.encodedBodySize=re.encodedBodySize,Ot.resourceTiming.responseStart=re.startTime,Ot.resourceTiming.responseEnd=re.responseEnd,Ot.resourceTiming.duration=re.duration)}(We,ln)},P=function(Rt,Ot,ee){return new Promise((ne=>{(function(Rt){const Ot=Me.getRequestInterceptors();return Ot?Ot.reduce(((Rt,Ot)=>Rt.then((Rt=>Ot(Rt)))),Promise.resolve(Rt)):Promise.resolve(Rt)})(Ot).then((re=>{(Ot=re).customData.onloadend=o,Ot.customData.onprogress=u,Ot.customData.onabort=f,Ot.customData.ontimeout=h,ee.resourceTiming.startTime=Date.now(),Rt.load(Ot,ee),ne()}))}))},O=function(){if(le>0){le--,Rt&&Rt.request&&(Rt.request.retryAttempts+=1);let Ot={config:Rt};we.push(Ot),Ot.timeout=setTimeout((function(){-1!==we.indexOf(Ot)&&(we.splice(we.indexOf(Ot),1),C(Rt,le))}),re.getRetryIntervalsForType(oe.type))}else{if(oe.type===_e.HTTPRequest.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;ee.error(new jn.default(Re[oe.type],oe.url+" is not available",{request:oe,response:ln})),Rt.error&&Rt.error(oe,"error",ln.statusText,ln),Rt.complete&&Rt.complete(oe,ln.statusText)}},oe=Rt.request,ue=[];let ce,ye,je,qe,Ge,We,ln;if(oe.bytesLoaded=NaN,oe.bytesTotal=NaN,oe.firstByteDate=null,oe.traces=[],ce=!0,ye=new Date,je=ye,qe=0,Ge=null,!ne||!ee)throw new Error("config object is not correct or missing");const on=function(Rt){let ee,re;return!Rt.isPartialSegmentRequest&&Rt.hasOwnProperty("availabilityTimeComplete")&&!1===Rt.availabilityTimeComplete&&window.fetch&&"arraybuffer"===Rt.responseType&&Rt.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE?(xe||(xe=Hn(Ot).create(),xe.setConfig({dashMetrics:ne,boxParser:ie})),ee=xe,re=ge.default.FILE_LOADER_TYPES.FETCH):(De||(De=Gn(Ot).create()),ee=De,re=ge.default.FILE_LOADER_TYPES.XHR),{loader:ee,fileLoaderType:re}}(oe),sn=on.loader;var un;oe.fileLoaderType=on.fileLoaderType,oe.headers={},function(Rt){const Ot=Rt?.serviceLocation,ee=Rt?.mediaInfo?.id?.toString();if(Pe.isServiceLocationIncluded(Rt.type,Ot)&&Pe.isAdaptationsIncluded(ee)&&Ne.isCmcdEnabled()){const Ot=Ne.getCmcdParametersFromManifest(),ee=Ot.mode?Ot.mode:be.get().streaming.cmcd.mode;if(ee===ge.default.CMCD_MODE_QUERY){Rt.url=Bn.default.removeQueryParameterFromUrl(Rt.url,ge.default.CMCD_QUERY_KEY);const Ot=function(Rt){try{const Ot=[],ee=Ne.getQueryParameter(Rt);return ee&&Ot.push(ee),Ot}catch(Rt){return[]}}(Rt);Rt.url=Bn.default.addAdditionalQueryParameterToUrl(Rt.url,Ot)}else ee===ge.default.CMCD_MODE_HEADER&&(Rt.headers=Object.assign(Rt.headers,Ne.getHeaderParameters(Rt)))}}(un=oe),0===un.retryAttempts&&function(Rt){let Ot=Fe.getFinalQueryString(Rt);Ot&&(Rt.url=Bn.default.addAdditionalQueryParameterToUrl(Rt.url,Ot))}(un),function(Rt){if(Rt.queryParams){const Ot=Object.keys(Rt.queryParams).map((Ot=>({key:Ot,value:Rt.queryParams[Ot]})));Rt.url=Bn.default.addAdditionalQueryParameterToUrl(Rt.url,Ot)}}(un),function(Rt){const Ot=Oe.getCommonAccessTokenForUrl(Rt.url);Ot&&(Rt.headers[ge.default.COMMON_ACCESS_TOKEN_HEADER]=Ot)}(un),oe.range&&(oe.headers.Range="bytes="+oe.range);const dn=Me.getXHRWithCredentialsForType(oe.type);We=new gi({url:oe.url,method:_e.HTTPRequest.GET,responseType:oe.responseType,headers:oe.headers,credentials:dn?"include":"omit",timeout:he,cmcd:Ne.getCmcdData(oe),customData:{request:oe}}),ln=new mi({request:We,resourceTiming:{startTime:Date.now(),encodedBodySize:0},status:0});let cn=(new Date).getTime();if(isNaN(oe.delayLoadingTime)||cn>=oe.delayLoadingTime)return Ee.push(We),P(sn,We,ln);{let Rt={httpRequest:We,httpResponse:ln};return Se.push(Rt),Rt.delayTimeout=setTimeout((function(){if(-1!==Se.indexOf(Rt)){Se.splice(Se.indexOf(Rt),1);try{ye=new Date,je=ye,Ee.push(Rt.httpRequest),P(sn,Rt.httpRequest,Rt.httpResponse)}catch(Ot){Rt.httpRequest.onloadend()}}}),oe.delayLoadingTime-cn),Promise.resolve()}}return ye={abort:function(){we.forEach((Rt=>{clearTimeout(Rt.timeout),Rt.config.request&&Rt.config.abort&&Rt.config.abort(Rt.config.request)})),we=[],Se.forEach((Rt=>clearTimeout(Rt.delayTimeout))),Se=[],Ee.forEach((Rt=>{const Ot=Rt.customData;Ot&&(Ot.request&&Ot.request.type===_e.HTTPRequest.MSS_FRAGMENT_INFO_SEGMENT_TYPE||(Ot.onloadend=Ot.onprogress=void 0,Ot.abort&&Ot.abort()))})),Ee=[]},load:function(Rt){return Rt.request?C(Rt,re.getRetryAttemptsForType(Rt.request.type)):(Rt.error&&Rt.error(Rt.request,"error"),Promise.resolve())},reset:function(){Ee=[],Se=[],we=[],De&&De.reset(),xe&&xe.reset(),De=null,xe=null},resetInitialSettings:function(){De&&De.resetInitialSettings()},setConfig:function(Rt){Rt&&(Rt.commonAccessTokenController&&(Oe=Rt.commonAccessTokenController),Rt.extUrlQueryInfoController&&(Fe=Rt.extUrlQueryInfoController))}},Ue=(0,le.default)(Ot).getInstance().getLogger(ye),Ee=[],Se=[],we=[],Ne=$r(Ot).getInstance(),Pe=ci(Ot).getInstance(),Ce=si(Ot).getInstance(),Me=(0,ui.default)(Ot).getInstance(),Oe=di(Ot).getInstance(),Fe=fi(Ot).getInstance(),Re={[_e.HTTPRequest.MPD_TYPE]:ue.DOWNLOAD_ERROR_ID_MANIFEST_CODE,[_e.HTTPRequest.XLINK_EXPANSION_TYPE]:ue.DOWNLOAD_ERROR_ID_XLINK_CODE,[_e.HTTPRequest.INIT_SEGMENT_TYPE]:ue.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE,[_e.HTTPRequest.MEDIA_SEGMENT_TYPE]:ue.DOWNLOAD_ERROR_ID_CONTENT_CODE,[_e.HTTPRequest.INDEX_SEGMENT_TYPE]:ue.DOWNLOAD_ERROR_ID_CONTENT_CODE,[_e.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE]:ue.DOWNLOAD_ERROR_ID_CONTENT_CODE,[_e.HTTPRequest.OTHER_TYPE]:ue.DOWNLOAD_ERROR_ID_CONTENT_CODE},ye}na.__dashjs_factory_name="HTTPLoader";var hi=ne.default.getClassFactory(na);function ra(){let Rt,Ot;function n(){Ot={}}function a(){n()}return a(),Rt={getLoader:function(Rt){for(var ee in Ot)if(Ot.hasOwnProperty(ee)&&Rt.startsWith(ee))return Ot[ee];return hi},registerLoader:function(Rt,ee){Ot[Rt]=ee},unregisterLoader:function(Rt){Ot[Rt]&&delete Ot[Rt]},unregisterAllLoader:n,reset:a},Rt}ra.__dashjs_factory_name="SchemeLoaderFactory";var pi=ne.default.getSingletonFactory(ra);function la(Rt){Rt=Rt||{};const Ot=this.context;let ee,ne,re;return ne=pi(Ot).getInstance(),ee={abort:function(){re&&re.abort()},load:function(ee){if(!re){let ie=ne.getLoader(ee&&ee.request?ee.request.url:null);re=ie(Ot).create({errHandler:Rt.errHandler,mediaPlayerModel:Rt.mediaPlayerModel,dashMetrics:Rt.dashMetrics,boxParser:Rt.boxParser?Rt.boxParser:null,constants:Rt.constants?Rt.constants:null,dashConstants:Rt.dashConstants?Rt.dashConstants:null,urlUtils:Rt.urlUtils?Rt.urlUtils:null,requestTimeout:isNaN(Rt.requestTimeout)?0:Rt.requestTimeout,errors:Rt.errors})}re.load(ee)},reset:function(){ne&&(ne.reset(),ne=null),re&&"function"==typeof re.reset&&re.reset(),re=null},resetInitialSettings:function(){re&&"function"==typeof re.resetInitialSettings&&re.resetInitialSettings()}},ee}la.__dashjs_factory_name="URLLoader";var bi=ne.default.getClassFactory(la),yi=class{constructor(Rt){this.url=Rt||null,this.type=_e.HTTPRequest.CONTENT_STEERING_TYPE,this.responseType="json"}};function da(){const Rt=this.context,Ot=ha(Rt).getInstance();let ee,ne,re,ie,oe,ue,ce,fe,ge,pe,be,ye,Ee,_e,Se,we;function T(Rt){S(Rt,"baseUrl")}function _(Rt){S(Rt,"location")}function v(Rt){var Ot,ee;Rt&&Rt.throughputValues&&Rt.throughputValues.serviceLocation&&(Ot=Rt.throughputValues.serviceLocation,ee=Rt.throughputValues,_e[Ot]||(_e[Ot]=[]),_e[Ot].push(ee),_e[Ot].length>4&&_e[Ot].shift())}function S(Rt,Ot){if(Rt&&Rt.request&&Rt.request.serviceLocation){const ee=Rt.request.serviceLocation;-1===ye[Ot].all.indexOf(ee)&&ye[Ot].all.push(ee),ye[Ot].current=ee}}function w(){const Rt=fe.getValue();let Ot=ee.getContentSteering(Rt);return Ot||(Ot=be.getServiceDescriptionSettings().contentSteering),!Ot&&ne&&(Ot=ne),ne=Ot,Ot}function I(){return new Promise((Rt=>{try{const ee=w();if(!ee||!ee.serverUrl)return void Rt();const ie=function(Rt){let ee=Rt.serverUrl;re&&re.reloadUri&&(ee=Ot.isRelative(re.reloadUri)?Ot.resolve(re.reloadUri,Rt.serverUrl):re.reloadUri);const ne=[],ie=ye.baseUrl.all.concat(ye.location.all);if(ie.length>0){const Rt=ie.map((Rt=>
1{const Ot=function(Rt){if(!Rt||!_e[Rt]||0===_e[Rt].length)return-1;const Ot=Ee.getArithmeticMean(_e[Rt],_e[Rt].length,!0);return parseInt(1e3*Ot)}(Rt);return{serviceLocation:Rt,throughput:Ot}}));let Ot="",ee="";Rt.forEach(((Rt,ne)=>{0!==ne&&(Ot+=",",ee+=","),Ot+=Rt.serviceLocation,ee+=Rt.throughput>-1?Rt.throughput:""})),ne.push({key:"_DASH_pathway",value:`"${Ot}"`}),ne.push({key:"_DASH_throughput",value:ee})}return ee=Bn.default.addAdditionalQueryParameterToUrl(ee,ne),ee}(ee),le=new yi(ie);Se.load({request:le,success:Ot=>{!function(Rt){Rt&&Rt[Xn.default.CONTENT_STEERING_RESPONSE.VERSION]&&1===parseInt(Rt[Xn.default.CONTENT_STEERING_RESPONSE.VERSION])&&(re=new class{constructor(){this.version=null,this.ttl=300,this.reloadUri=null,this.pathwayPriority=[],this.pathwayClones=[]}},re.version=Rt[Xn.default.CONTENT_STEERING_RESPONSE.VERSION],Rt[Xn.default.CONTENT_STEERING_RESPONSE.TTL]&&!isNaN(Rt[Xn.default.CONTENT_STEERING_RESPONSE.TTL])&&(re.ttl=Rt[Xn.default.CONTENT_STEERING_RESPONSE.TTL]),Rt[Xn.default.CONTENT_STEERING_RESPONSE.RELOAD_URI]&&(re.reloadUri=Rt[Xn.default.CONTENT_STEERING_RESPONSE.RELOAD_URI]),Rt[Xn.default.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]&&(re.pathwayPriority=Rt[Xn.default.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]),Rt[Xn.default.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES]&&(re.pathwayClones=Rt[Xn.default.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES],re.pathwayClones=re.pathwayClones.filter((Rt=>function(Rt){return Rt[Xn.default.CONTENT_STEERING_RESPONSE.BASE_ID]&&Rt[Xn.default.CONTENT_STEERING_RESPONSE.ID]&&Rt[Xn.default.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT]&&Rt[Xn.default.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][Xn.default.CONTENT_STEERING_RESPONSE.HOST]}(Rt)))),R())}(Ot),ue.trigger(he.default.CONTENT_STEERING_REQUEST_COMPLETED,{currentSteeringResponseData:re,url:ie}),Rt()},error:(Ot,ee,ie,le)=>{!function(Rt,Ot){try{switch(ce.warn("Error fetching data from content steering server",Rt),Ot.status){case 404:case 410:ne=null;break;case 429:const Rt=Ot&&Ot.getResponseHeader?Ot.getResponseHeader("retry-after"):null;null!==Rt&&(re||(re={}),re.ttl=parseInt(Rt)),R();break;default:R()}}catch(Rt){ce.error(Rt)}}(Ot,le),Rt(Ot)}
1,complete:()=>{ye.baseUrl.all=k(ye.baseUrl),ye.location.all=k(ye.location)}})}catch(Ot){Rt(Ot)}}))}function k(Rt){return Rt.all&&0!==Rt.all.length&&Rt.current?Rt.all.filter((Ot=>Ot===Rt.current)):[]}function A(Rt){try{const Ot=[];return Rt&&0!==Rt.length&&re&&re.pathwayClones&&0!==re.pathwayClones.length?(re.pathwayClones.forEach((ee=>{let ne=Rt.filter((Rt=>ee[Xn.default.CONTENT_STEERING_RESPONSE.BASE_ID]===Rt.serviceLocation)),re=null;if(ne&&ne.length>0&&(re=ne[0]),re){const Rt=new URL(re.url);let ne=ee[Xn.default.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][Xn.default.CONTENT_STEERING_RESPONSE.HOST];ne=Bn.default.stringHasProtocol(ne)?ne:`${Rt.protocol}//${ne}`;const ie={synthesizedUrl:`${ne}${Rt.pathname}`,serviceLocation:ee[Xn.default.CONTENT_STEERING_RESPONSE.ID],queryParams:ee[Xn.default.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][Xn.default.CONTENT_STEERING_RESPONSE.PARAMS],reference:re};Ot.push(ie)}})),Ot):Ot}catch(Rt){return ce.error(Rt),[]}}function R(){re&&re.ttl&&!isNaN(re.ttl)&&(pe&&clearTimeout(pe),pe=setTimeout((()=>{I()}),1e3*re.ttl))}function N(){pe&&clearTimeout(pe),pe=null}function C(){re=null,ne=null,_e={},ye={baseUrl:{current:null,all:[]},location:{current:null,all:[]}},N()}return we={reset:function(){C(),ue.off(he.default.FRAGMENT_LOADING_STARTED,T,we),ue.off(he.default.MANIFEST_LOADING_STARTED,_,we),ue.off(he.default.THROUGHPUT_MEASUREMENT_STORED,v,we)},setConfig:function(Rt){Rt&&(Rt.adapter&&(ee=Rt.adapter),Rt.errHandler&&(oe=Rt.errHandler),Rt.dashMetrics&&(ie=Rt.dashMetrics),Rt.mediaPlayerModel&&(ge=Rt.mediaPlayerModel),Rt.manifestModel&&(fe=Rt.manifestModel),Rt.serviceDescriptionController&&(be=Rt.serviceDescriptionController),Rt.throughputController&&(Ee=Rt.throughputController),Rt.eventBus&&(ue=Rt.eventBus))},loadSteeringData:I,getCurrentSteeringResponseData:function(){return re},shouldQueryBeforeStart:function(){const Rt=w();return!!Rt&&Rt.queryBeforeStart},getSteeringDataFromManifest:w,stopSteeringRequestTimer:N,getSynthesizedBaseUrlElements:function(Rt){try{return A(Rt).map((Rt=>{const Ot=new $n(Rt.synthesizedUrl,Rt.serviceLocation);return Ot.queryParams=Rt.queryParams,Ot.dvbPriority=Rt.reference.dvbPriority,Ot.dvbWeight=Rt.reference.dvbWeight,Ot.availabilityTimeOffset=Rt.reference.availabilityTimeOffset,Ot.availabilityTimeComplete=Rt.reference.availabilityTimeComplete,Ot}))}catch(Rt){return ce.error(Rt),[]}},getSynthesizedLocationElements:function(Rt){try{return A(Rt).map((Rt=>{const Ot=new oa(Rt.synthesizedUrl,Rt.serviceLocation);return Ot.queryParams=Rt.queryParams,Ot}))}catch(Rt){return ce.error(Rt),[]}},initialize:function(){Se=bi(Rt).create({errHandler:oe,dashMetrics:ie,mediaPlayerModel:ge,errors:zn}),ue.on(he.default.FRAGMENT_LOADING_STARTED,T,we),ue.on(he.default.MANIFEST_LOADING_STARTED,_,we),ue.on(he.default.THROUGHPUT_MEASUREMENT_STORED,v,we)}},ce=(0,le.default)(Rt).getInstance().getLogger(we),C(),we}da.__dashjs_factory_name="ContentSteeringController";var Ei=ne.default.getSingletonFactory(da);function fa(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,ie=[];function l(Rt=[],Ot=[]){let ee=0,ne=NaN;for(;ee<Rt.length;){const ie=Rt[ee],le=Ot.findIndex((Rt=>Rt.serviceLocation&&Rt.serviceLocation===ie));if(-1!==le&&!re.contains(Ot[le].serviceLocation)){ne=le;break}ee+=1}return ne}function o(Rt){const Ot=ne.getCurrentSteeringResponseData();if(!Ot)return;const ee=Rt.entry,le=setTimeout((()=>{re.remove(ee),ie.splice(ie.indexOf(le,1))}),1e3*Ot.ttl);ie.push(le)}return ee={selectBaseUrlIndex:function(Rt){let Ot=NaN;if(isNaN(Rt.selectedIdx)){const ee=ne.getSteeringDataFromManifest();ee&&ee.defaultServiceLocationArray.length>0&&(Ot=l(ee.defaultServiceLocationArray,Rt.baseUrls))}const ee=ne.getCurrentSteeringResponseData();return Rt.baseUrls&&Rt.baseUrls.length&&ee&&ee.pathwayPriority&&ee.pathwayPriority.length&&(Ot=l(ee.pathwayPriority,Rt.baseUrls)),Ot},setConfig:function(Rt){Rt.blacklistController&&(re=Rt.blacklistController),Rt.contentSteeringController&&(ne=Rt.contentSteeringController),Ot.on(Rt.addBlacklistEventName,o,ee)},reset:function(){ie.forEach((Rt=>clearTimeout(Rt))),ie=[]}},ne=Ei(Rt).getInstance(),ee}fa.__dashjs_factory_name="ContentSteeringSelector";var _i=ne.default.getClassFactory(fa);function ma(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance(),ee=(0,oe.default)(Rt).getInstance();let ne,re,ie,le,ue,ge;function d(){ue.reset(),re.reset()}return ne={chooseSelector:function(Rt){(0,qn.checkParameterType)(Rt,"boolean"),ge=Rt?le:ie},select:function(Rt){if(!Rt)return;if(ee.get().streaming.applyContentSteering){const Ot=ue.selectBaseUrlIndex(Rt);isNaN(Ot)||-1===Ot||(Rt.selectedIdx=Ot)}if(!isNaN(Rt.selectedIdx))return Rt.baseUrls[Rt.selectedIdx];let ne=ge.select(Rt.baseUrls);return ne?(Rt.selectedIdx=Rt.baseUrls.indexOf(ne),ne):(Ot.trigger(fe.default.URL_RESOLUTION_FAILED,{error:new jn.default(zn.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,zn.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(ge===ie&&d()))},reset:d,setConfig:function(Rt){Rt.selector&&(ge=Rt.selector),Rt.contentSteeringSelector&&(ue=Rt.contentSteeringSelector)}},re=Ln(Rt).create({updateEventName:fe.default.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,addBlacklistEventName:fe.default.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD}),ie=Un(Rt).create({blacklistController:re}),le=Fn(Rt).create({blacklistController:re}),ue=_i(Rt).create(),ue.setConfig({blacklistController:re,addBlacklistEventName:fe.default.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD}),ge=ie,ne}ma.__dashjs_factory_name="BaseURLSelector";var Si=ne.default.getClassFactory(ma);function pa(){let Rt,Ot;const ee=this.context,ne=(0,ce.default)(ee).getInstance(),re=ha(ee).getInstance();let ie,le,oe;function s(Rt){ie.update(Rt),le.chooseSelector(Ot.getIsDVB(Rt)),ne.trigger(he.default.BASE_URLS_UPDATED,{baseUrls:u(Rt)})}function u(Rt){return ie.getBaseUrls(Rt)}return Rt={reset:function(){ie.reset(),le.reset()},initialize:function(Rt){ie.setConfig({adapter:Ot,contentSteeringController:oe}),s(Rt)},resolve:function(Rt){const Ot=ie.getForPath(Rt).reduce(((Rt,Ot)=>{const ee=le.select(Ot);return ee?(re.isRelative(ee.url)?Rt.url=re.resolve(ee.url,Rt.url):(Rt.url=ee.url,Rt.serviceLocation=ee.serviceLocation),Rt.availabilityTimeOffset=ee.availabilityTimeOffset,Rt.availabilityTimeComplete=ee.availabilityTimeComplete,Rt.queryParams=ee.queryParams,Rt):new $n}),new $n);if(!re.isRelative(Ot.url))return Ot},setConfig:function(Rt){Rt.baseURLTreeModel&&(ie=Rt.baseURLTreeModel),Rt.baseURLSelector&&(le=Rt.baseURLSelector),Rt.adapter&&(Ot=Rt.adapter),Rt.contentSteeringController&&(oe=Rt.contentSteeringController)},getBaseUrls:u,update:s},ie=Mn(ee).create(),le=Si(ee).create(),ne.on(fe.default.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,(function(Rt){ie.invalidateSelectedIndexes(Rt.entry)}),Rt),Rt}pa.__dashjs_factory_name="BaseURLController";var Ii=ne.default.getClassFactory(pa);class ya{constructor(Rt){if(this.offset=Rt._offset,this.type=Rt.type,this.size=Rt.size,this.boxes=[],Rt.boxes)for(let Ot=0;Ot<Rt.boxes.length;Ot++)this.boxes.push(new ya(Rt.boxes[Ot]));switch(this.isComplete=!0,Rt.type){case"sidx":if(this.timescale=Rt.timescale,this.earliest_presentation_time=Rt.earliest_presentation_time,this.first_offset=Rt.first_offset,this.references=Rt.references,Rt.references){this.references=[];for(let Ot=0;Ot<Rt.references.length;Ot++){let ee={reference_type:Rt.references[Ot].reference_type,referenced_size:Rt.references[Ot].referenced_size,subsegment_duration:Rt.references[Ot].subsegment_duration};this.references.push(ee)}}break;case"emsg":this.id=Rt.id,this.version=1===Rt.version?1:0,this.value=Rt.value,this.timescale=Rt.timescale,this.scheme_id_uri=Rt.scheme_id_uri,this.presentation_time_delta=1===Rt.version?Rt.presentation_time:Rt.presentation_time_delta,this.event_duration=Rt.event_duration,this.message_data=Rt.message_data;break;case"mdhd":this.timescale=Rt.timescale;break;case"mfhd":this.sequence_number=Rt.sequence_number;break;case"subs":this.entry_count=Rt.entry_count,this.entries=Rt.entries;break;case"tfhd":this.base_data_offset=Rt.base_data_offset,this.sample_description_index=Rt.sample_description_index,this.default_sample_duration=Rt.default_sample_duration,this.default_sample_size=Rt.default_sample_size,this.default_sample_flags=Rt.default_sample_flags,this.flags=Rt.flags;break;case"tfdt":this.version=Rt.version,this.baseMediaDecodeTime=Rt.baseMediaDecodeTime,this.flags=Rt.flags;break;case"trun":if(this.sample_count=Rt.sample_count,this.first_sample_flags=Rt.first_sample_flags,this.data_offset=Rt.data_offset,this.flags=Rt.flags,this.samples=Rt.samples,Rt.samples){this.samples=[];for(let Ot=0,ee=Rt.samples.length;Ot<ee;Ot++){let ee={sample_size:Rt.samples[Ot].sample_size,sample_duration:Rt.samples[Ot].sample_duration,sample_composition_time_offset:Rt.samples[Ot].sample_composition_time_offset};this.samples.push(ee)}}break;case"prft":this.version=Rt.version,this.reference_track_ID=Rt.reference_track_ID,this.ntp_timestamp_sec=Rt.ntp_timestamp_sec,this.ntp_timestamp_frac=Rt.ntp_timestamp_frac,this.media_time=Rt.media_time,this.flags=Rt.flags}}getChildBox(Rt){for(let Ot=0;Ot<this.boxes.length;Ot++)if(this.boxes[Ot].type===Rt)return this.boxes[Ot]}getChildBoxes(Rt){let Ot=[];for(let ee=0;ee<this.boxes.length;ee++)this.boxes[ee].type===Rt&&Ot.push(this.boxes[ee]);return Ot}}var Ai=ya;function Ta(){let Rt,Ot;function n(Rt){let ee=[];
1if(!Rt||!Ot||"function"!=typeof Ot.fetchAll)return ee;let ne,re=Ot.fetchAll(Rt);for(let Rt=0,Ot=re.length;Rt<Ot;Rt++)ne=a(re[Rt]),ne&&ee.push(ne);return ee}function a(Rt){if(!Rt)return null;let Ot=new Ai(Rt);return Rt.hasOwnProperty("_incomplete")&&(Ot.isComplete=!Rt._incomplete),Ot}return Rt={getBox:function(Rt){return Rt&&Ot&&Ot.boxes&&0!==Ot.boxes.length&&"function"==typeof Ot.fetch?a(Ot.fetch(Rt)):null},getBoxes:n,setData:function(Rt){Ot=Rt},getLastBox:function(){if(!Ot||!Ot.boxes||!Ot.boxes.length)return null;let Rt=n(Ot.boxes[Ot.boxes.length-1].type);return Rt.length>0?Rt[Rt.length-1]:null}},Rt}Ta.__dashjs_factory_name="IsoFile";var Ni=ne.default.getClassFactory(Ta),Di=ee(6877),xi=class{constructor({found:Rt,sizeOfLastCompletedBox:Ot,sizeOfLastFoundTargetBox:ee,startOffsetOfLastCompletedBox:ne,startOffsetOfLastFoundTargetBox:re,typeOfLastCompletedBox:ie,typeOfLastTargetBox:le}){this.found=void 0!==Rt&&Rt,this.sizeOfLastCompletedBox=void 0!==Ot?Ot:0,this.sizeOfLastFoundTargetBox=void 0!==ee?ee:0,this.startOffsetOfLastCompletedBox=void 0!==ne?ne:0,this.startOffsetOfLastFoundTargetBox=void 0!==re?re:0,this.typeOfLastCompletedBox=void 0!==ie?ie:null,this.typeOfLastTargetBox=void 0!==le?le:null}};function wa(){let Rt,Ot,ee=this.context;function a(Rt){if(!Rt)return null;void 0===Rt.fileStart&&(Rt.fileStart=0);let Ot=Di.parseBuffer(Rt),ne=Ni(ee).create();return ne.setData(Ot),ne}function r(Rt,Ot){return Rt[Ot+3]>>>0|Rt[Ot+2]<<8>>>0|Rt[Ot+1]<<16>>>0|Rt[Ot]<<24>>>0}function i(Rt,Ot){return String.fromCharCode(Rt[Ot++])+String.fromCharCode(Rt[Ot++])+String.fromCharCode(Rt[Ot++])+String.fromCharCode(Rt[Ot])}return Ot={findInitRange:function(Ot){let ee,ne,re=null;const ie=a(Ot);if(!ie)return re;const le=ie.getBox("ftyp"),oe=ie.getBox("moov");return Rt.debug("Searching for initialization."),oe&&oe.isComplete&&(ee=le?le.offset:oe.offset,ne=oe.offset+oe.size-1,re=ee+"-"+ne,Rt.debug("Found the initialization.  Range: "+re)),re},findLastTopIsoBoxCompleted:function(Rt,Ot,ee){if(void 0===ee&&(ee=0),!Ot||ee+8>=Ot.byteLength)return new xi({found:!1});const ne=Ot instanceof ArrayBuffer?new Uint8Array(Ot):Ot;let re,ie=0,le=0,oe=null;for(;ee<ne.byteLength;){const Ot=r(ne,ee),ue=i(ne,ee+4);if(0===Ot)break;ee+Ot<=ne.byteLength&&(Rt.indexOf(ue)>=0?re=new xi({found:!0,startOffsetOfLastFoundTargetBox:ee,sizeOfLastFoundTargetBox:Ot,typeOfLastTargetBox:ue}):(ie=ee,le=Ot,oe=ue)),ee+=Ot}return re||new xi({found:!1,startOffsetOfLastCompletedBox:ie,sizeOfLastCompletedBox:le,typeOfLastCompletedBox:oe})},getMediaTimescaleFromMoov:function(Rt){let Ot=a(Rt),ee=Ot?Ot.getBox("mdhd"):void 0;return ee?ee.timescale:NaN},getSamplesInfo:function(Rt){if(!Rt||0===Rt.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};let Ot,ee,ne,re,ie,le,oe,ue,ce,fe,ge,he,pe,be,ye,Ee,_e,Se=a(Rt),we=Se.getBoxes("moof"),Re=Se.getBoxes("mfhd");Ee=Se.getBoxes("moof").length,ye=Re[Re.length-1].sequence_number,ne=0,le=[];let Ne=-1,Ce=-1;for(ge=0;ge<we.length;ge++){let Rt=we[ge],ye=Rt.getChildBoxes("traf");for(ce=0;ce<ye.length;ce++){let ge=ye[ce],Ee=ge.getChildBox("tfhd"),Se=ge.getChildBox("tfdt");ie=Se.baseMediaDecodeTime;let we=ge.getChildBoxes("trun"),Re=ge.getChildBoxes("subs");for(fe=0;fe<we.length;fe++){let ce=we[fe];for(ne=ce.sample_count,be=(Ee.base_data_offset||0)+(ce.data_offset||0),ue=0;ue<ne;ue++){oe=ce.samples[ue],Ot=void 0!==oe.sample_duration?oe.sample_duration:Ee.default_sample_duration,re=void 0!==oe.sample_size?oe.sample_size:Ee.default_sample_size,ee=void 0!==oe.sample_composition_time_offset?oe.sample_composition_time_offset:0;let ne={dts:ie,cts:ie+ee,duration:Ot,offset:Rt.offset+be,size:re,subSizes:[re]};if(Re)for(he=0;he<Re.length;he++){let Rt=Re[he];if(Ne<Rt.entry_count-1&&ue>Ce&&(Ne++,Ce+=Rt.entries[Ne].sample_delta),ue==Ce){ne.subSizes=[];let Ot=Rt.entries[Ne];for(pe=0;pe<Ot.subsample_count;pe++)ne.subSizes.push(Ot.subsamples[pe].subsample_size)}}le.push(ne),be+=re,ie+=Ot}}_e=ie-Se.baseMediaDecodeTime}}return{sampleList:le,lastSequenceNumber:ye,totalDuration:_e,numSequences:Ee}},parse:a},Rt=(0,le.default)(ee).getInstance().getLogger(Ot),Ot}wa.__dashjs_factory_name="BoxParser";var Pi=ne.default.getSingletonFactory(wa),zi=ee(559);const Li={0:void 0,1:{channels:1,lfe:0},2:{channels:2,lfe:0},3:{channels:3,lfe:0},4:{channels:4,lfe:0},5:{channels:5,lfe:0},6:{channels:5,lfe:1},7:{channels:7,lfe:1},8:{channels:2,lfe:0},9:{channels:3,lfe:0},10:{channels:4,lfe:0},11:{channels:6,lfe:1},12:{channels:7,lfe:1},13:{channels:22,lfe:2},14:{channels:7,lfe:1},15:{channels:10,lfe:2},16:{channels:9,lfe:1},17:{channels:11,lfe:1},18:{channels:13,lfe:1},19:{channels:11,lfe:1},20:{channels:13,lfe:1}};function Ra(Rt){return 0==Rt?0:Rt.toString(2).match(/1/g).length}function Na(Rt,Ot){let ee,ne=parseInt("0x"+Rt,16),re=ne&Ot[0],ie=ne&Ot[1];return ee=Ra(re)+2*Ra(ie),ee}var Ca=function(Rt,Ot=!1){let ee;if(!Rt||!Rt.schemeIdUri||!Rt.value)return;const ne=Rt.schemeIdUri,re=Rt.value;
1return"urn:mpeg:dash:23003:3:audio_channel_configuration:2011"===ne||"urn:mpeg:mpegB:cicp:ChannelConfiguration"===ne?ee=Li[re]&&Li[re].channels+(Ot?Li[re].lfe:0):"tag:dolby.com,2014:dash:audio_channel_configuration:2011"===ne?ee=function(Rt,Ot){if(4===Rt.length)return Na(Rt,[63880+(Ot?6:0),1648])}(re,Ot):"tag:dolby.com,2015:dash:audio_channel_configuration:2015"===ne?ee=function(Rt,Ot){if(6===Rt.length)return"800000"===Rt?24:Na(Rt,[56834+(Ot?4160:0),205245])}(re,Ot):"tag:dts.com,2014:dash:audio_channel_configuration:2012"===ne?ee=parseInt(re):"tag:dts.com,2018:uhd:audio_channel_configuration"===ne&&(ee=function(Rt,Ot){if(!(Rt.length>8))return Na(Rt,[4294901727+(Ot?65568:0),0])}(re,Ot)),ee};function Da(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,ie,oe,ue,he;function d(Rt,Ot,ee,ne){const ie=h(Rt,Ot,ee,ne);return re.isCodecSupportedBasedOnTestedConfigurations(ie,Rt)}function c(Rt,Ot,ee,ne,re,ie){const le=h(Rt,Ot,ee,ie),oe=JSON.stringify(le);ne.has(oe)||(ne.add(oe),re.push(le))}function h(Rt,Ot,ee,re){let le=null;switch(Rt){case ge.default.VIDEO:le=function(Rt,Ot,ee){let re={codec:Ot,width:Rt&&Rt.width||null,height:Rt&&Rt.height||null,framerate:ne.getFramerate(Rt)||null,bitrate:Rt&&Rt.bandwidth||null,isSupported:!0};if(Rt.tagName===Xn.default.PRESELECTION&&ee&&(re.width||(re.width=ee.width||null),re.height||(re.height=ee.height||null),re.bitrate||(re.bitrate=ee.bandwidth||null),re.framerate||(re.framerate=ne.getFramerate(ee)||null)),ie.get().streaming.capabilities.filterVideoColorimetryEssentialProperties&&(Object.assign(re,b(Rt)),Rt.tagName===Xn.default.PRESELECTION&&ee)){let Rt=b(ee),Ot=Rt.isSupported;delete Rt.isSupported,re.isSupported=re.isSupported&&Ot,p(re,Rt)}let le=re.isSupported;if(ie.get().streaming.capabilities.filterHDRMetadataFormatEssentialProperties&&(Object.assign(re,y(Rt)),Rt.tagName===Xn.default.PRESELECTION&&ee)){let Rt=y(ee),Ot=Rt.isSupported;delete Rt.isSupported,re.isSupported=re.isSupported&&Ot,p(re,Rt)}let oe=re.isSupported;return le&&oe||(re.isSupported=!1),re}(Ot,ee,re);break;case ge.default.AUDIO:le=function(Rt,Ot,ee){let ne={codec:Ot,samplerate:Rt&&Rt.audioSamplingRate||null,bitrate:Rt&&Rt.bandwidth||null,isSupported:!0};return Rt.tagName===Xn.default.PRESELECTION&&ee&&(ne.samplerate||(ne.samplerate=ee.audioSamplingRate||null),ne.bitrate||(ne.bitrate=ee.bandwidth||null)),ie.get().streaming.capabilities.filterAudioChannelConfiguration&&Object.assign(ne,function(Rt,Ot){let ee=Rt[Xn.default.AUDIO_CHANNEL_CONFIGURATION]||[],ne=null;0==ee.length&&Ot&&(ee=Ot[Xn.default.AUDIO_CHANNEL_CONFIGURATION]||[]);const re=ee.map((Rt=>Ca(Rt,!0)));return re.every((Rt=>Rt==re[0]))&&(ne=re[0]),{channels:ne}}(Rt,ee)),ne}(Ot,ee,re);break;default:return le}return re&&(le=E(re,le)),E(Ot,le)}function p(Rt,Ot){for(const ee in Ot)Object.prototype.hasOwnProperty.call(Ot,ee)&&!(ee in Rt)&&(Rt[ee]=Ot[ee]);return Rt}function b(Rt){let Ot={colorGamut:null,transferFunction:null,isSupported:!0};for(const ee of Rt.EssentialProperty||[])ee.schemeIdUri===ge.default.COLOUR_PRIMARIES_SCHEME_ID_URI&&["1","5","6","7"].includes(ee.value.toString())?Ot.colorGamut=ge.default.MEDIA_CAPABILITIES_API.COLORGAMUT.SRGB:ee.schemeIdUri===ge.default.COLOUR_PRIMARIES_SCHEME_ID_URI&&["11","12"].includes(ee.value.toString())?Ot.colorGamut=ge.default.MEDIA_CAPABILITIES_API.COLORGAMUT.P3:ee.schemeIdUri===ge.default.COLOUR_PRIMARIES_SCHEME_ID_URI&&["9"].includes(ee.value.toString())?Ot.colorGamut=ge.default.MEDIA_CAPABILITIES_API.COLORGAMUT.REC2020:ee.schemeIdUri===ge.default.COLOUR_PRIMARIES_SCHEME_ID_URI&&["2"].includes(ee.value.toString())?Ot.colorGamut=null:ee.schemeIdUri===ge.default.COLOUR_PRIMARIES_SCHEME_ID_URI&&(Ot.isSupported=!1),ee.schemeIdUri===ge.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI&&["1","6","13","14","15"].includes(ee.value.toString())?Ot.transferFunction=ge.default.MEDIA_CAPABILITIES_API.TRANSFERFUNCTION.SRGB:ee.schemeIdUri===ge.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI&&["16"].includes(ee.value.toString())?Ot.transferFunction=ge.default.MEDIA_CAPABILITIES_API.TRANSFERFUNCTION.PQ:ee.schemeIdUri===ge.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI&&["18"].includes(ee.value.toString())?Ot.transferFunction=ge.default.MEDIA_CAPABILITIES_API.TRANSFERFUNCTION.HLG:ee.schemeIdUri===ge.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI&&["2"].includes(ee.value.toString())?Ot.transferFunction=null:ee.schemeIdUri===ge.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI&&(Ot.isSupported=!1);return Ot}function y(Rt){let Ot={isSupported:!0,hdrMetadataType:null};for(const ee of Rt.EssentialProperty||[])ee.schemeIdUri===ge.default.HDR_METADATA_FORMAT_SCHEME_ID_URI&&ee.value===ge.default.HDR_METADATA_FORMAT_VALUES.ST2094_10?Ot.hdrMetadataType=ge.default.MEDIA_CAPABILITIES_API.HDR_METADATATYPE.SMPTE_ST_2094_10:ee.schemeIdUri===ge.default.HDR_METADATA_FORMAT_SCHEME_ID_URI&&ee.value===ge.default.HDR_METADATA_FORMAT_VALUES.SL_HDR2?Ot.hdrMetadataType=ge.default.MEDIA_CAPABILITIES_API.HDR_METADATATYPE.SLHDR2:ee.schemeIdUri===ge.default.HDR_METADATA_FORMAT_SCHEME_ID_URI&&ee.value===ge.default.HDR_METADATA_FORMAT_VALUES.ST2094_40?Ot.hdrMetadataType=ge.default.MEDIA_CAPABILITIES_API.HDR_METADATATYPE.SMPTE_ST_2094_40:ee.schemeIdUri===ge.default.HDR_METADATA_FORMAT_SCHEME_ID_URI&&(Ot.isSupported=!1);return Ot}function E(Rt,Ot){return ue&&Rt&&Rt[Xn.default.CONTENT_PROTECTION]&&Rt[Xn.default.CONTENT_PROTECTION].length>
10&&(Ot.keySystemsMetadata=ue.getSupportedKeySystemMetadataFromContentProtection(Rt[Xn.default.CONTENT_PROTECTION])),Ot}function T(Rt){if(!Rt||0===Rt.length)return!0;let Ot=0;for(;Ot<Rt.length;){if(!re.supportsEssentialProperty(Rt[Ot]))return he.debug("[Stream] EssentialProperty not supported: "+Rt[Ot].schemeIdUri),!1;Ot+=1}return!0}return ee={setConfig:function(Rt){Rt&&(Rt.adapter&&(ne=Rt.adapter),Rt.capabilities&&(re=Rt.capabilities),Rt.settings&&(ie=Rt.settings),Rt.protectionController&&(ue=Rt.protectionController),Rt.customParametersModel&&(oe=Rt.customParametersModel))},filterUnsupportedFeatures:function(Rt){return new Promise((ee=>{const le=[ge.default.VIDEO,ge.default.AUDIO],ue=[];le.forEach((Ot=>{const ee=function(Rt,Ot){if(!Rt||!Rt.Period||0===Rt.Period.length)return[];const ee=new Set,re=[];return Rt.Period.forEach((Rt=>{Rt.AdaptationSet.forEach((Rt=>{ne.getIsTypeOf(Rt,Ot)&&Rt.Representation.forEach(((ie,le)=>{const oe=ne.getCodec(Rt,le,!1);c(Ot,ie,oe,ee,re);const ue=ne.getSupplementalCodecs(ie);ue.length>0&&c(Ot,ie,ue[0],ee,re)}))})),Rt.Preselection&&Rt.Preselection.length&&Rt.Preselection.forEach((ie=>{if(ne.getPreselectionIsTypeOf(ie,Rt.AdaptationSet,Ot)){const le=ne.getCodecForPreselection(ie,Rt.AdaptationSet),oe=ne.getCommonRepresentationForPreselection(ie,Rt.AdaptationSet);c(Ot,ie,le,ee,re,oe)}}))})),re}(Rt,Ot);ee.forEach((Rt=>{ue.push(re.runCodecSupportCheck(Rt,Ot))}))})),Promise.allSettled(ue).then((()=>(le.forEach((ee=>{!function(Rt,ee){ee&&ee.Period&&0!==ee.Period.length&&ee.Period.forEach((ee=>{!function(Rt,ee){Rt&&Rt.AdaptationSet&&0!==Rt.AdaptationSet.length&&(Rt.AdaptationSet=Rt.AdaptationSet.filter((Rt=>{ne.getIsTypeOf(Rt,ee)&&function(Rt,Ot){Rt.Representation&&0!==Rt.Representation.length&&(Rt.Representation=Rt.Representation.filter(((ee,re)=>{const ie=ne.getCodec(Rt,re,!1),le=d(Ot,ee,ie);let oe=function(Rt,Ot){let ee=!1;const re=ne.getSupplementalCodecs(Rt);return re.length>0&&(re.length>1&&he.warn("[CapabilitiesFilter] Multiple supplemental codecs not supported; using the first in list"),ee=d(Ot,Rt,re[0])),ee}(ee,Ot);return oe&&(he.debug(`[CapabilitiesFilter] Codec supported. Upgrading codecs string of Representation with ID ${ee.id}`),ee.codecs=ee[Xn.default.SUPPLEMENTAL_CODECS]),le||oe||he.warn(`[CapabilitiesFilter] Codec ${ie} not supported. Removing Representation with ID ${ee.id}`),le||oe})))}(Rt,ee);const re=Rt.Representation&&Rt.Representation.length>0;return re||(Ot.trigger(fe.default.ADAPTATION_SET_REMOVED_NO_CAPABILITIES,{adaptationSet:Rt}),he.warn(`[CapabilitiesFilter] AdaptationSet with ID ${Rt.id?Rt.id:"undefined"} and codec ${Rt.codecs?Rt.codecs:"undefined"} has been removed because of no supported Representation`)),re})))}(ee,Rt),function(Rt,Ot){Rt&&Rt.Preselection&&0!==Rt.Preselection.length&&(Rt.Preselection=Rt.Preselection.filter((ee=>{if(ne.getPreselectionIsTypeOf(ee,Rt.AdaptationSet,Ot)){const re=ne.getCodecForPreselection(ee,Rt.AdaptationSet);let ie=!0;if(re){let le=ne.getCommonRepresentationForPreselection(ee,Rt.AdaptationSet);ie=d(Ot,ee,re,le)}return ie||he.warn(`[CapabilitiesFilter] Preselection@codecs ${re} not supported. Removing Preselection with ID ${ee.id}`),ie}return!0})))}(ee,Rt)}))}(ee,Rt)})),ie.get().streaming.capabilities.filterUnsupportedEssentialProperties&&function(Rt){Rt&&Rt.Period&&0!==Rt.Period.length&&Rt.Period.forEach((Rt=>{Rt.AdaptationSet=Rt.AdaptationSet.filter((Rt=>!Rt.Representation||0===Rt.Representation.length||!!T(ne.getEssentialProperties(Rt))&&(Rt.Representation=Rt.Representation.filter((Rt=>T(ne.getEssentialProperties(Rt)))),Rt.Representation&&Rt.Representation.length>0))),Rt.Preselection&&Rt.Preselection.length&&(Rt.Preselection=Rt.Preselection.filter((Rt=>!!T(ne.getEssentialProperties(Rt))||(he.warn(`[CapabilitiesFilter] removed Preselection (id: ${Rt.id}) with unsupported EssentialProperty`),!1))))}))}(Rt),function(Rt){Rt&&Rt.Period&&0!==Rt.Period.length&&Rt.Period.forEach((Rt=>{Rt.Preselection&&(Rt.Preselection=Rt.Preselection.filter((Rt=>{const Ot=String(Rt.preselectionComponents).split(" ").length;return 1!==Ot&&he.warn(`Multi-Representation Preselection (id: ${Rt.id}) removed as not supported.`),1===Ot})))}))}(Rt),function(Rt){Rt&&Rt.Period&&0!==Rt.Period.length&&Rt.Period.forEac
1h((Rt=>{Rt.Preselection&&(Rt.Preselection=Rt.Preselection.filter((Ot=>{const ee=String(Ot.preselectionComponents).split(" "),ne=Rt.AdaptationSet.map((Rt=>Rt.id));return ee.every((Rt=>ne.includes(Rt)))})))}))}(Rt),function(Rt){if(!Rt||!Rt.Period||0===Rt.Period.length)return Promise.resolve();const Ot=[];return Rt.Period.forEach((Rt=>{Ot.push(function(Rt){return new Promise((Ot=>{if(!Rt||!Rt.AdaptationSet||0===Rt.AdaptationSet.length)return void Ot();const ee=[];Rt.AdaptationSet.forEach((Rt=>{ee.push(function(Rt){return new Promise((Ot=>{if(!Rt.Representation||0===Rt.Representation.length)return void Ot();const ee=[];Rt.Representation.forEach((Rt=>{ee.push(function(Rt){const Ot=[],ee=oe.getCustomCapabilitiesFilters();return ee&&0!==ee.length?ee.forEach((ee=>{Ot.push(new Promise((Ot=>Ot(ee(Rt)))))})):Ot.push(Promise.resolve(!0)),Promise.all(Ot)}(Rt))})),Promise.all(ee).then((ee=>{Rt.Representation=Rt.Representation.filter(((Rt,Ot)=>{let ne=ee[Ot].every((Rt=>Rt));return ne||he.debug("[Stream] Representation "+Rt.id+" has been removed because of unsupported CustomFilter"),ne})),Ot()})).catch((Rt=>{he.warn("[Stream] at least one promise rejected in CustomFilter with error: ",Rt),Ot()}))}))}(Rt))})),Promise.all(ee).then((()=>{Rt.AdaptationSet=Rt.AdaptationSet.filter((Rt=>Rt.Representation&&Rt.Representation.length>0)),Ot()})).catch((()=>{Ot()}))}))}(Rt))})),Promise.all(Ot)}(Rt)))).then((()=>{ee()})).catch((Rt=>{he.error(Rt),ee()}))}))}},he=(0,le.default)(Rt).getInstance().getLogger(ee),ee}Da.__dashjs_factory_name="CapabilitiesFilter";var Fi=ne.default.getSingletonFactory(Da);function Ma(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,oe,ue,pe,be,ye,Ee,_e;function y(){ne=!1;const Rt=Bn.default.parseUserAgent();re=Rt&&Rt.browser&&Rt.browser.name&&"safari"===Rt.browser.name.toLowerCase()}function E(){ne=!1}function T(Rt){if(Rt.streamId!==pe.getActiveStreamInfo().id||!Ee)return;const Ot=be.getLiveDelay();be.getBufferLevel()>Ot/2&&(Ee=!1)}function _(Rt){Rt.streamId===pe.getActiveStreamInfo().id&&(Ee=Rt.state===ie.BUFFER_EMPTY)}function v(){ye.getCatchupModeEnabled()||oe.setPlaybackRate(1)}function S(){be.getIsDynamic()&&ye.getCatchupModeEnabled()&&(ye.getCatchupPlaybackRates().max>0||ye.getCatchupPlaybackRates().min<0)&&!be.isPaused()&&!be.isSeeking()&&function(){try{return!(!be.getTime()>0||ne)&&(I()===ge.default.LIVE_CATCHUP_MODE_LOLP?function(Rt,Ot){try{return Math.abs(w())>0||Rt<Ot}catch(Rt){return!1}}(be.getBufferLevel(),ue.get().streaming.liveCatchup.playbackBufferMin):function(){try{return Math.abs(w())>0}catch(Rt){return!1}}())}catch(Rt){return!1}}()&&function(){if(!ne&&oe){let Rt;const Ot=oe.getPlaybackRate(),ee=ye.getCatchupPlaybackRates(),ie=be.getBufferLevel(),le=w(),ce=ye.getCatchupMaxDrift();if(!isNaN(ce)&&ce>0&&le>ce)_e.info("[CatchupController]: Low Latency catchup mechanism. Latency too high, doing a seek to live point"),ne=!0,be.seekToCurrentLive(!0,!1);else{const ne=be.getCurrentLiveLatency(),le=be.getLiveDelay();Rt=I()===ge.default.LIVE_CATCHUP_MODE_LOLP?function(Rt,Ot,ee,ne,re){let ie;if(re<ne){const Ot=Math.abs(Rt.min),ee=5*(re-ne);ie=1-Ot+2*Ot/(1+Math.pow(Math.E,-ee)),_e.debug("[LoL+ playback control_buffer-based] bufferLevel: "+re+", newRate: "+ie)}else{const ne=.02;if(Math.abs(Ot-ee)<=ne*ee)ie=1;else{const ne=Ot-ee,re=ne<0?Math.abs(Rt.min):Rt.max,le=5*ne;ie=1-re+2*re/(1+Math.pow(Math.E,-le))}_e.debug("[LoL+ playback control_latency-based] latency: "+Ot+", newRate: "+ie)}return ie}(ee,ne,le,ue.get().streaming.liveCatchup.playbackBufferMin,ie):function(Rt,Ot,ee,ne){if(Ee)return 1;const re=Ot-ee,ie=re<0?Math.abs(Rt.min):Rt.max,le=5*re;let oe=1-ie+2*ie/(1+Math.pow(Math.E,-le));return be.getPlaybackStalled()&&ne<=ee/2&&re>0&&(oe=1),oe}(ee,ne,le,ie);const ce=re?.25:.02/(.5/ee.max);(Rt&&Math.abs(Ot-Rt)>=ce||1==Rt)&&(_e.debug(`[CatchupController]: Setting playback rate to ${Rt}`),oe.setPlaybackRate(Rt))}}}()}function w(){return be.getCurrentLiveLatency()-be.getLiveDelay()}function I(){const Rt=ue.get().streaming.liveCatchup.playbackBufferMin;return ue.get().streaming.liveCatchup.mode!==ge.default.LIVE_CATCHUP_MODE_LOLP||null===Rt||isNaN(Rt)?ge.default.LIVE_CATCHUP_MODE_DEFAULT:ge.default.LIVE_CATCHUP_MODE_LOLP}function k(){ye.getCatchupPlaybackRates(!0)}return ee={reset:function(){Ot.off(he.default.BUFFER_LEVEL_UPDATED,T,ee),Ot.off(he.default.BUFFER_LEVEL_STATE_CHANGED,_,ee),Ot.off(he.default.PLAYBACK_PROGRESS,S,ee),Ot.off(he.default.PLAYBACK_TIME_UPDATED,S,ee),Ot.off(he.default.PLAYBACK_SEEKED,E,ee),Ot.off(fe.default.SETTING_UPDATED_CATCHUP_ENABLED,v,ee),Ot.off(fe.default.SETTING_UPDATED_PLAYBACK_RATE_MIN,k,ee),Ot.off(fe.default.SETTING_UPDATED_PLAYBACK_RATE_MAX,k,ee),Ot.off(he.default.STREAM_INITIALIZED,k,ee),y(),oe.setPlaybackRate(1,!0)},setConfig:function(Rt){Rt&&(Rt.settings&&(ue=Rt.settings),Rt.videoModel&&(oe=Rt.videoModel),Rt.streamController&&(pe=Rt.streamController),Rt.playbackController&&(be=Rt.playbackController),Rt.mediaPlayerModel&&(ye=Rt.mediaPlayerModel))},initialize:function(){Ot.on(he.default.BUFFER_LEVEL_UPDATED,T,ee),Ot.on(he.default.BUFFER_LEVEL_STATE_CHANGED,_,ee),Ot.on(he.default.PLAYBACK_PROGRESS,S,ee),Ot.on(he.default.PLAYBACK_TIME_UPDATED,S,ee),Ot.on(he.default.PLAYBACK_SEEKED,E,ee),Ot.on(fe.default.SETTING_UPDATED_CATCHUP_ENABLED,v,ee),Ot.on(fe.default.SETTING_UPDATED_PLAYBACK_RATE_MIN,k,ee),Ot.on(fe.default.SETTING_UPDATED_PLAYBACK_RATE_MAX,k,ee),Ot.on(he.default.STREAM_INITIALIZED,k,ee),k()}},_e=(0,le.default)(Rt).getInstance().getLogger(ee),y(),ee}Ma.__dashjs_factory_name="CatchupController";var ji=ne.default.getSingletonFactory(Ma);const Bi=[{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"}],Hi="dashjs_?_bitrate",Vi="dashjs_?_settings",Ki="localStorage",Wi="lastBitrate",$i="lastMediaSettings";function qa(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.settings;let ne,re,ie;function l(Rt){if(void 0!==ie)return ie;let Ot;ie=!1;try{"undefined"!=typeof window&&(Ot=window[Rt])}catch(Rt){return re.warn("DOMStorage access denied: "+Rt.message),ie}if(!Ot||Rt!==Ki&&"sessionStorage"!==Rt)return ie;try{Ot.setItem("1","1"),Ot.removeItem("1"),ie=!0}catch(Rt){re.warn("DOMStorage is supported, but cannot be used: "+Rt.message)}return ie}function s(){const Rt=6e5;return Math.round((new Date).getTime()/Rt)*Rt}function u(Rt,Ot){return l(Rt)&&ee.get().streaming[Ot+"CachingInfo"].enabled}function d(){if(!ee)throw new Error(ge.default.MISSING_CONFIG_ERROR)}return ne={getSavedBitrateSettings:function(Rt){if(d(),!ee.get().streaming.lastBitrateCachingInfo.enabled)return NaN;let Ot=NaN;if(u(Ki,Wi)){const ne=Hi.replace(/\?/,Rt);try{const ie=JSON.parse(localStorage.getItem(ne))||{},le=(new Date).getTime()-parseInt(ie.timestamp,10)>=ee.get().streaming.lastBitrateCachingInfo.ttl||!1,oe=parseFloat(ie.bitrate);isNaN(oe)||le?le&&localStorage.removeItem(ne):(Ot=oe,re.debug("Last saved bitrate for "+Rt+" was "+oe))}catch(Rt){return null}}return Ot},setSavedBitrateSettings:function(Rt,Ot){if(u(Ki,Wi)&&Ot){const ee=Hi.replace(/\?/,Rt);try{localStorage.setItem(ee,JSON.stringify({bitrate:Ot.toFixed(3),timestamp:s()}))}catch(Rt){re.error(Rt.message)}}},getSavedMediaSettings:function(Rt){if(d(),!ee.get().streaming.lastMediaSettingsCachingInfo.enabled)return null;let Ot=null;if(u(Ki,$i)){const ne=Vi.replace(/\?/,Rt);try{const Rt=JSON.parse(localStorage.getItem(ne))||{},re=(new Date).getTime()-parseInt(Rt.timestamp,10)>=ee.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;Ot=Rt.settings,re&&(localStorage.removeItem(ne),Ot=null)}catch(Rt){return null}}return Ot},setSavedMediaSettings:function(Rt,Ot){if(u(Ki,$i)){const ee=Vi.replace(/\?/,Rt);try{localStorage.setItem(ee,JSON.stringify({settings:Ot,timestamp:s()}))}catch(Rt){re.error(Rt.message)}}}},re=(0,le.default)(Ot).getInstance().getLogger(ne),l(Ki)&&Bi.forEach((Rt=>{const Ot=localStorage.getItem(Rt.oldKey);if(Ot){localStorage.removeItem(Rt.oldKey);try{localStorage.setItem(Rt.newKey,Ot)}catch(Rt){re.error(Rt.message)}}})),ne}qa.__dashjs_factory_name="DOMStorage";var Xi=ne.default.getSingletonFactory(qa),Ji=class{constructor(){this.accessibility=null,this.adaptationSetSwitchingCompatibleIds=[],this.audioChannelConfiguration=null,this.bitrateList=null,this.co
1dec=null,this.contentProtection=null,this.essentialProperties=[],this.id=null,this.index=null,this.isEmbedded=null,this.isFragmented=null,this.isPreselection=!1,this.isText=!1,this.labels=null,this.lang=null,this.mimeType=null,this.normalizedKeyIds=new Set,this.representationCount=0,this.roles=null,this.segmentAlignment=!1,this.segmentSequenceProperties=[],this.selectionPriority=1,this.streamInfo=null,this.subSegmentAlignment=!1,this.supplementalProperties=[],this.type=null,this.viewpoint=null}},tl=class{constructor(){this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0,this.isEncrypted=!1}};function Wa(){let Rt,Ot;const ee=this.context;return Rt={getIsPatch:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.ORIGINAL_MPD_ID)||!1},getMpdId:function(Rt){return Rt&&Rt[Xn.default.ORIGINAL_MPD_ID]||null},getOriginalPublishTime:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.ORIGINAL_PUBLISH_TIME)?new Date(Rt[Xn.default.ORIGINAL_PUBLISH_TIME]):null},getPatchOperations:function(Rt){return Rt?(Rt.__children||[]).map((Rt=>{const ee=Rt.tagName;if("add"!==ee&&"remove"!==ee&&"replace"!==ee)return Ot.warn(`Ignoring node of invalid action: ${ee}`),null;let ne=Rt.sel;if("add"===ee&&Rt.type){if(!Rt.type.startsWith("@"))return Ot.warn(`Ignoring add action for prefixed namespace declaration: ${Rt.type}=${Rt.__text}`),null;ne=`${ne}/${Rt.type}`}let re=new class{constructor(Rt){this.valid="/"==Rt[0],this.path=Rt.split("/").filter((Rt=>0!==Rt.length)).map((Rt=>{let Ot={name:Rt},ee=Rt.indexOf("[");if(-1!=ee){Ot.name=Rt.substring(0,ee);let ne=Rt.substring(ee+1,Rt.length-1);this.valid=this.valid&&-1==ne.indexOf("[");let re=ne.indexOf("=");-1!=re?(Ot.attribute={name:ne.substring(1,re),value:ne.substring(re+1)},-1!=["'",'"'].indexOf(Ot.attribute.value[0])&&(Ot.attribute.value=Ot.attribute.value.substring(1,Ot.attribute.value.length-1))):Ot.position=parseInt(ne,10)-1}return Ot}))}isValid(){return this.valid}findsElement(){return!this.findsAttribute()}findsAttribute(){return this.path[this.path.length-1].name.startsWith("@")}findsTextReplace(){return"text()"===this.path[this.path.length-1].name}getMpdTarget(Rt,Ot){let ee=null,ne=Rt,re=1,ie="MPD";for(;re<this.path.length&&null!==ne;){ee=ne;let Rt=this.path[re];if(ie=Rt.name,re!==this.path.length-1||!ie.startsWith("@")&&"text()"!==ie){let Ot=ee[ie]||[];if(0===Ot.length&&ee[ie]&&Ot.push(ee[ie]),Rt.position)ne=Ot[Rt.position]||null;else if(Rt.attribute){let ee=Rt.attribute;ne=Ot.filter((Rt=>Rt[ee.name]==ee.value))[0]||null}else ne=Array.isArray(Ot)?Ot[0]:Ot}re++}return null===ne?null:ie.startsWith("@")?{name:ie.substring(1),leaf:ne,target:ne}:"text()"===ie?{name:"__text",leaf:ne,target:ne}:{name:ie,leaf:ne,target:Ot?ee:ne}}}(ne);if(!re.isValid())return Ot.warn(`Ignoring action with invalid selector: ${ee} - ${ne}`),null;let ie=null;re.findsAttribute()||re.findsTextReplace()?ie=Rt.__text||"":"remove"!==ee&&(ie=Rt.__children.reduce(((Rt,Ot)=>{let ee=Ot.tagName;return"#text"!==ee&&(Rt[ee]=Rt[ee]||[],Rt[ee].push(Ot)),Rt}),{}));let le=new class{constructor(Rt,Ot,ee){this.action=Rt,this.xpath=Ot,this.value=ee,this.position=null}getMpdTarget(Rt){let Ot="remove"===this.action||"replace"===this.action||"before"===this.position||"after"===this.position;return this.xpath.getMpdTarget(Rt,Ot)}}(ee,re,ie);return"add"===ee&&(le.position=Rt.pos),le})).filter((Rt=>!!Rt)):[]},getPublishTime:function(Rt){return Rt&&Rt.hasOwnProperty(Xn.default.PUBLISH_TIME)?new Date(Rt[Xn.default.PUBLISH_TIME]):null}},Ot=(0,le.default)(ee).getInstance().getLogger(Rt),Rt}Wa.__dashjs_factory_name="PatchManifestModel";var el=ne.default.getSingletonFactory(Wa);function Qa(Rt={}){let Ot=[];if(Rt.irregular)return Rt.irregular;if(Rt.regular)return Rt.regular;if(Rt.language){Ot=Ot.concat(Rt.language,Rt.extendedLanguageSubtags||[],Rt.script||[],Rt.region||[],Rt.variants||[]);const ee=Rt.extensions||[];let ne=-1;for(;++ne<ee.length;){const Rt=ee[ne];Rt.singleton&&Rt.extensions&&Rt.extensions.length>0&&Ot.push(Rt.singleton,...Rt.extensions)}}return Rt.privateuse&&Rt.privateuse.length>0&&Ot.push("x",...Rt.privateuse),Ot.join("-")}function Xa(Rt){const Ot="string"==typeof Rt?Rt.charCodeAt(0):Rt;return Ot>=97&&Ot<=122||Ot>=65&&Ot<=90}function Za(Rt){const Ot="string"==typeof Rt?Rt.charCodeAt(0):Rt;return Ot>
1=48&&Ot<=57}function Ja(Rt){return Xa(Rt)||Za(Rt)}const nl=["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"],rl={"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"},ll={}.hasOwnProperty;function ar(Rt,Ot={}){const ee={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},ne=String(Rt),re=ne.toLowerCase();let ie=0;if(null==Rt)throw new Error("Expected string, got `"+Rt+"`");if(ll.call(rl,re)){const Rt=rl[re];return void 0!==Ot.normalize&&null!==Ot.normalize&&!Ot.normalize||"string"!=typeof Rt?(ee[nl.includes(re)?"regular":"irregular"]=ne,ee):ar(Rt)}for(;Xa(re.charCodeAt(ie))&&ie<9;)ie++;if(ie>1&&ie<9){if(ee.language=ne.slice(0,ie),ie<4){let Rt=0;for(;45===re.charCodeAt(ie)&&Xa(re.charCodeAt(ie+1))&&Xa(re.charCodeAt(ie+2))&&Xa(re.charCodeAt(ie+3))&&!Xa(re.charCodeAt(ie+4));){if(Rt>2)return l(ie,3,"Too many extended language subtags, expected at most 3 subtags");ee.extendedLanguageSubtags.push(ne.slice(ie+1,ie+4)),ie+=4,Rt++}}for(45===re.charCodeAt(ie)&&Xa(re.charCodeAt(ie+1))&&Xa(re.charCodeAt(ie+2))&&Xa(re.charCodeAt(ie+3))&&Xa(re.charCodeAt(ie+4))&&!Xa(re.charCodeAt(ie+5))&&(ee.script=ne.slice(ie+1,ie+5),ie+=5),45===re.charCodeAt(ie)&&(Xa(re.charCodeAt(ie+1))&&Xa(re.charCodeAt(ie+2))&&!Xa(re.charCodeAt(ie+3))?(ee.region=ne.slice(ie+1,ie+3),ie+=3):Za(re.charCodeAt(ie+1))&&Za(re.charCodeAt(ie+2))&&Za(re.charCodeAt(ie+3))&&!Za(re.charCodeAt(ie+4))&&(ee.region=ne.slice(ie+1,ie+4),ie+=4));45===re.charCodeAt(ie);){const Rt=ie+1;let Ot=Rt;for(;Ja(re.charCodeAt(Ot));){if(Ot-Rt>7)return l(Ot,1,"Too long variant, expected at most 8 characters");Ot++}if(!(Ot-Rt>4||Ot-Rt>3&&Za(re.charCodeAt(Rt))))break;ee.variants.push(ne.slice(Rt,Ot)),ie=Ot}for(;45===re.charCodeAt(ie)&&120!==re.charCodeAt(ie+1)&&Ja(re.charCodeAt(ie+1))&&45===re.charCodeAt(ie+2)&&Ja(re.charCodeAt(ie+3));){let Rt=ie+2,Ot=0;for(;45===re.charCodeAt(Rt)&&Ja(re.charCodeAt(Rt+1))&&Ja(re.charCodeAt(Rt+2));){const ee=Rt+1;for(Rt=ee+2,Ot++;Ja(re.charCodeAt(Rt));){if(Rt-ee>7)return l(Rt,2,"Too long extension, expected at most 8 characters");Rt++}}if(!Ot)return l(Rt,4,"Empty extension, extensions must have at least 2 characters of content");ee.extensions.push({singleton:ne.charAt(ie+1),extensions:ne.slice(ie+3,Rt).split("-")}),ie=Rt}}else ie=0;if(0===ie&&120===re.charCodeAt(ie)||45===re.charCodeAt(ie)&&120===re.charCodeAt(ie+1)){ie=ie?ie+2:1;let Rt=ie;for(;45===re.charCodeAt(Rt)&&Ja(re.charCodeAt(Rt+1));){const Ot=ie+1;for(Rt=Ot;Ja(re.charCodeAt(Rt));){if(Rt-Ot>7)return l(Rt,5,"Too long private-use area, expected at most 8 characters");Rt++}ee.privateuse.push(ne.slice(ie+1,Rt)),ie=Rt}}return ie!==ne.length?l(ie,6,"Found superfluous content after tag"):ee;function l(Rt,ne,re){return Ot.warning&&Ot.warning(re,ne,Rt),Ot.forgiving?ee:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}}function rr(Rt,Ot){return function(ee,ne){let re=lr(ee,"tag");const ie=lr(null==ne?"*":ne,"range"),le=[];let oe=-1;for(;++oe<ie.length;){const ee=ie[oe].toLowerCase();if(!Ot&&"*"===ee)continue;let ne=-1;const ue=[];for(;++ne<re.length;)if(Rt(re[ne].toLowerCase(),ee)){if(!Ot)return re[ne];le.push(re[ne])}else ue.push(re[ne]);re=ue}return Ot?le:void 0}}rr((function(Rt,Ot){return"*"===Ot||Rt===Ot||Rt.includes(Ot+"-")}),!0);const ol=rr((function(Rt,Ot){const ee=Rt.split("-"),ne=Ot.split("-");let re=0,ie=0;if("*"!==ne[ie]&&ee[re]!==ne[ie])return!1;for(re++,ie++;ie<ne.length;)if("*"!==ne[ie]){if(!ee[re])return!1;if(ee[re]!==ne[ie]){if(1===ee[re].length)return!1;re++}else re++,ie++}else ie++;return!0}),!0);function lr(Rt,Ot){const ee=Rt&&"string"==typeof Rt?[Rt]:Rt;if(!ee||"object"!=typeof ee||!("length"in ee))throw new Error("Invalid "+Ot+" `"+ee+"`, expected non-empty string");return ee}rr((function(Rt,Ot){let ee=Ot;for(;;){if("*"===ee||Rt===ee)return!0;let Ot=ee.lastIndexOf("-");if(Ot<0)return!1;"-"===ee.charAt(Ot-2)&&(Ot-=2),ee=ee.slice(0,Ot)}}),!1);const ul=[{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"}
1,{from:"und-hepburn-heploc",to:"und-alalc97"}],cl=[{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"}}
1,{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"}}
1,{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"}}
1,{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"}}
1,{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"}}],gl={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"]}},ml={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
1-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
1:"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",b
1jw:"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:"b
1yi-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
1-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:"du
1s-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
1:"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",g
1wc:"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
1:"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:"k
1ot-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:"
1kxw-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",mc
1d:"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
1-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",
1nhe:"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",nu
1y:"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
1:"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:"ru
1c-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:"sl
1y-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
1:"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
1:"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",t
1su:"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-bal
1i-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-sin
1h-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",ur
1i:"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","
1wof-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",xs
1p:"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
1:"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"},hl={}.hasOwnProperty;function fr(Rt){const{language:Ot,script:ee,region:ne}=Rt;let re;var ie,le;return ee&&ne&&(re=ml[Qa({language:Ot,script:ee,region:ne}
1)])?(Rt.script=void 0,Rt.region=void 0):ee&&(re=ml[Qa({language:Ot,script:ee})])?Rt.script=void 0:ne&&(re=ml[Qa({language:Ot,region:ne})])?Rt.region=void 0:Ot&&(re=ml[Ot]),re&&(Rt.language=void 0,ie=Rt,le=ar(re),ie.language||(ie.language=le.language),ie.script||(ie.script=le.script),ie.region||(ie.region=le.region),le.variants&&ie.variants.push(...le.variants)),Qa(Rt)}function gr(Rt,Ot){const ee=Ot||{},ne=ar(String(Rt||"").toLowerCase(),ee),re=Qa(ne);if(!re)return re;let ie=-1;for(;++ie<ul.length;){let Rt=ul[ie].from;"und-"===Rt.slice(0,4)&&ne.language&&(Rt=ne.language+Rt.slice(3)),ol(re,Rt).length>0&&mr(ne,Rt,ul[ie].to)}for(ie=-1;++ie<cl.length;)hr(ne,cl[ie].from.field,cl[ie].from.value)&&pr(ne,cl[ie].to.field,cl[ie].to.value);if(function(Rt){fr(Rt);const{language:Ot,script:ee,region:ne}=Rt;if(!Ot)return Rt;const re=Qa({language:Ot,script:ee,region:ne});re===fr(ar(Ot))?(Rt.script=void 0,Rt.region=void 0):ne&&re===fr(ar(Ot+"-"+ne))?Rt.script=void 0:ee&&re===fr(ar(Ot+"-"+ee))&&(Rt.region=void 0)}(ne),ne.variants.sort(),ne.extensions.sort(br),ee.warning){let Rt;for(Rt in gl)if(hl.call(gl,Rt)){const Ot=gl[Rt],re=ne[Rt];if(re&&hl.call(Ot,re)){const ne=Ot[re];ee.warning("Deprecated "+Rt+" `"+re+"`, expected one of `"+ne.join("`, `")+"`",-1,7)}}}return ne.script&&(ne.script=ne.script.charAt(0).toUpperCase()+ne.script.slice(1)),ne.region&&(ne.region=ne.region.toUpperCase()),Qa(ne)}function mr(Rt,Ot,ee){const ne=ar(Ot),re=ar(ee),ie=[],le=ne.language;let oe;for(oe in ne)if(hl.call(ne,oe)){const Ot=ne[oe];Ot&&hr(Rt,oe,Ot)&&ie.push(oe)}for(oe in re)if(hl.call(re,oe)){const Ot=re[oe];le&&Ot&&(ie.includes(oe)||!Rt[oe])&&pr(Rt,oe,"language"===oe&&"und"===Ot?le:Ot)}}function hr(Rt,Ot,ee){let ne,re=!1;if(ee){const ie=Rt[Ot];if(ne=ie,Array.isArray(ie)){ne=[];let Rt=-1;for(;++Rt<ie.length;){const Ot=ie[Rt];ee.includes(Ot)?re=!0:ne.push(Ot)}}else ie===ee&&(ne=null,re=!0);Rt[Ot]=ne}return re}function pr(Rt,Ot,ee){const ne=Rt[Ot];if(Array.isArray(ne)){const Rt=Array.isArray(ee)?ee:[ee];let Ot=-1;for(;++Ot<Rt.length;){const ee=Rt[Ot];ne.includes(ee)||ne.push(ee)}}else Rt[Ot]=ee}function br(Rt,Ot){return Rt.singleton>Ot.singleton?1:Rt.singleton<Ot.singleton?-1:0}function yr(Rt,Ot){return Ot+10<=Rt.length&&73===Rt[Ot]&&68===Rt[Ot+1]&&51===Rt[Ot+2]&&Rt[Ot+3]<255&&Rt[Ot+4]<255&&Rt[Ot+6]<128&&Rt[Ot+7]<128&&Rt[Ot+8]<128&&Rt[Ot+9]<128}function Er(Rt,Ot){let ee=0;return ee=(127&Rt[Ot])<<21,ee|=(127&Rt[Ot+1])<<14,ee|=(127&Rt[Ot+2])<<7,ee|=127&Rt[Ot+3],ee}function Tr(Rt,Ot){return Ot+10<=Rt.length&&51===Rt[Ot]&&68===Rt[Ot+1]&&73===Rt[Ot+2]&&Rt[Ot+3]<255&&Rt[Ot+4]<255&&Rt[Ot+6]<128&&Rt[Ot+7]<128&&Rt[Ot+8]<128&&Rt[Ot+9]<128}function _r(Rt,Ot=0,ee=1/0){return function(Rt,Ot,ee,ne){const re=(ie=Rt)instanceof ArrayBuffer?ie:ie.buffer;var ie;let le=1;"BYTES_PER_ELEMENT"in ne&&(le=ne.BYTES_PER_ELEMENT);const oe=(ge=Rt)&&ge.buffer instanceof ArrayBuffer&&void 0!==ge.byteLength&&void 0!==ge.byteOffset?Rt.byteOffset:0,ue=(oe+Rt.byteLength)/le,ce=(oe+Ot)/le,fe=Math.floor(Math.max(0,Math.min(ce,ue)));var ge;
1return new ne(re,fe,Math.floor(Math.min(fe+Math.max(ee,0),ue))-fe)}(Rt,Ot,ee,Uint8Array)}function vr(Rt,Ot=!1){const ee=Ot?Rt.indexOf(0):Rt.length,ne=function(Rt,Ot={}){let ee;ee=Rt instanceof ArrayBuffer?new DataView(Rt):new DataView(Rt.buffer,Rt.byteOffset,Rt.byteLength);let ne=0,{encoding:re}=Ot;if(!re){const Rt=ee.getUint8(0),Ot=ee.getUint8(1);239==Rt&&187==Ot&&191==ee.getUint8(2)?(re=Sa,ne=3):254==Rt&&255==Ot?(re=_a,ne=2):255==Rt&&254==Ot?(re=va,ne=2):re=Sa}if("undefined"!=typeof TextDecoder)return new TextDecoder(re).decode(ee);const{byteLength:ie}=ee,le=re!==_a;let oe,ue="";for(;ne<ie;){switch(re){case Sa:if(oe=ee.getUint8(ne),oe<128)ne++;else if(oe>=194&&oe<=223)if(ne+1<ie){const Rt=ee.getUint8(ne+1);Rt>=128&&Rt<=191?(oe=(31&oe)<<6|63&Rt,ne+=2):ne++}else ne++;else if(oe>=224&&oe<=239)if(ne+2<=ie-1){const Rt=ee.getUint8(ne+1),Ot=ee.getUint8(ne+2);Rt>=128&&Rt<=191&&Ot>=128&&Ot<=191?(oe=(15&oe)<<12|(63&Rt)<<6|63&Ot,ne+=3):ne++}else ne++;else if(oe>=240&&oe<=244)if(ne+3<=ie-1){const Rt=ee.getUint8(ne+1),Ot=ee.getUint8(ne+2),re=ee.getUint8(ne+3);Rt>=128&&Rt<=191&&Ot>=128&&Ot<=191&&re>=128&&re<=191?(oe=(7&oe)<<18|(63&Rt)<<12|(63&Ot)<<6|63&re,ne+=4):ne++}else ne++;else ne++;break;case _a:case"utf-16":case va:oe=ee.getUint16(ne,le),ne+=2}ue+=String.fromCodePoint(oe)}return ue}(new DataView(Rt.buffer,Rt.byteOffset,ee),{encoding:Sa});return Ot?ne:ne.replace(/\0/g,"")}function Sr(Rt){return"PRIV"===Rt.type?function(Rt){if(Rt.size<2)return;const Ot=vr(Rt.data,!0),ee=new Uint8Array(Rt.data.subarray(Ot.length+1));return{key:Rt.type,info:Ot,data:ee.buffer}}(Rt):"W"===Rt.type[0]?function(Rt){if("WXXX"===Rt.type){if(Rt.size<2)return;let Ot=1;const ee=vr(Rt.data.subarray(Ot),!0);Ot+=ee.length+1;const ne=vr(Rt.data.subarray(Ot));return{key:Rt.type,info:ee,data:ne}}const Ot=vr(Rt.data);return{key:Rt.type,info:"",data:Ot}}(Rt):"APIC"===Rt.type?function(Rt){const Ot={key:Rt.type,description:"",data:"",mimeType:null,pictureType:null};if(Rt.size<2)return;if(3!==Rt.data[0])return void console.log("Ignore frame with unrecognized character encoding");const ee=Rt.data.subarray(1).indexOf(0);if(-1===ee)return;const ne=vr(_r(Rt.data,1,ee)),re=Rt.data[2+ee],ie=Rt.data.subarray(3+ee).indexOf(0);if(-1===ie)return;const le=vr(_r(Rt.data,3+ee,ie));let oe;var ue;return oe="--\x3e"===ne?vr(_r(Rt.data,4+ee+ie)):(ue=Rt.data.subarray(4+ee+ie))instanceof ArrayBuffer?ue:0==ue.byteOffset&&ue.byteLength==ue.buffer.byteLength?ue.buffer:new Uint8Array(ue).buffer,Ot.mimeType=ne,Ot.pictureType=re,Ot.description=le,Ot.data=oe,Ot}(Rt):function(Rt){if(Rt.size<2)return;if("TXXX"===Rt.type){let Ot=1;const{data:ee}=Rt,ne=vr(ee.subarray(Ot),!0);Ot+=ne.length+1;const re=vr(ee.subarray(Ot));return{key:Rt.type,info:ne,data:re}}const Ot=vr(Rt.data.subarray(1));return{key:Rt.type,info:"",data:Ot}}(Rt)}function wr(Rt){const Ot=String.fromCharCode(Rt[0],Rt[1],Rt[2],Rt[3]),ee=Er(Rt,4);return{type:Ot,size:ee,data:Rt.subarray(10,10+ee)}}function Ar(){let Rt,Ot,ee,ne,re,ie,le;const ue=this.context;function s(Rt,ee){const ne=ee?ee.index:0,ie=Ot.getAdaptationsForType(re[ne].mpd.manifest,ne,Rt);if(!ie||0===ie.length)return null;if(ie.length>1&&ee)for(let Rt=0,ee=ie.length;Rt<ee;Rt++)if(le=ie[Rt],Ot.getRolesForAdaptation(le).filter((function(Rt){return Rt.schemeIdUri===ge.default.DASH_ROLE_SCHEME_ID&&Rt.value===Xn.default.MAIN}))[0])return ie[Rt];var le;return ie[0]}function d(Rt,ee,re,le,oe,ue){let ce,fe,ge,he,pe,be,ye=[];if(!le||0===le.length)return[];const Ee=Ot.getAdaptationsForPeriod(ee);for(he=0,be=le.length;he<be;he++)if(ce=le[he],ge=Ot.getIndexForAdaptation(ce,Rt,re.index),fe=y(Ee[ge]),ue){let Rt=fe.accessibility.length;for(pe=0;pe<Rt;pe++){if(!fe)continue;let Rt=fe.accessibility[pe];if(Rt.schemeIdUri===ie.ACCESSIBILITY_CEA608_SCHEME)if(Rt.value&&""!==Rt.value){let Ot=Rt.value.split(";");if("CC"===Ot[0].substring(0,2))for(pe=0;pe<Ot.length;pe++)fe||(fe=y.call(this,Ee[ge])),T(fe,Ot[pe].substring(0,3),Ot[pe].substring(4)),ye.push(fe),fe=null;else for(pe=0;pe<Ot.length;pe++)fe||(fe=y.call(this,Ee[ge])),T(fe,"CC"+(pe+1),Ot[pe]),ye.pu
1sh(fe),fe=null}else T(fe,ie.CC1,"eng"),ye.push(fe),fe=null}}else oe===ie.IMAGE?(fe.type=ie.IMAGE,ye.push(fe),fe=null):fe&&ye.push(fe);if(ne.get().streaming.includePreselectionsInMediainfoArray){const Rt=Ot.getPreselectionsForPeriod(ee);for(he=0,be=Rt.length;he<be;he++){const Ot=Rt[he];Ot.hasOwnProperty("type")&&Ot.type===oe&&(fe=E(Rt[he]),fe&&ye.push(fe))}}return ye}function c(Rt){const ee=f(Rt);return Ot.getRegularPeriods(ee)}function f(Rt){const ee=h(Rt);return Ot.getMpd(ee)}function g(){re=[]}function h(Rt){return Rt||(re.length>0?re[0].mpd.manifest:null)}function p(Rt){try{const ee=b(Rt.streamInfo,re),ne=Ot.getAdaptationsForPeriod(ee);return Rt&&Rt.streamInfo&&void 0!==Rt.streamInfo.id&&ne?ne[Rt.index]:null}catch(Rt){return null}}function b(Rt,Ot){const ee=Ot.length;for(let ne=0;ne<ee;ne++){let ee=Ot[ne];if(Rt&&Rt.id===ee.id)return ee}return null}function y(Rt){if(!Rt)return null;let ee=new Ji;const re=Rt.period.mpd.manifest.Period[Rt.period.index].AdaptationSet[Rt.index];ee.id=Rt.id,ee.index=Rt.index,ee.codec=Ot.getCodec(re);const ie=ne.get().streaming.enhancement.codecs;return ee.type=ie.some((Rt=>ee.codec?.includes(Rt)))?ge.default.ENHANCEMENT:Rt.type,ee.streamInfo=_(Rt.period),ee.representationCount=Ot.getRepresentationCount(re),ee.labels=Ot.getLabelsForAdaptation(re),ee.lang=Ot.getLanguageForAdaptation(re),ee.segmentAlignment=Ot.getSegmentAlignment(re),ee.subSegmentAlignment=Ot.getSubSegmentAlignment(re),ee.viewpoint=Ot.getViewpointForAdaptation(re),ee.accessibility=Ot.getAccessibilityForAdaptation(re),ee.accessibility.filter((function(Rt){if(Rt.schemeIdUri&&Rt.schemeIdUri.search("cea-608")>=0&&void 0!==le)return!0}))[0]&&(ee.embeddedCaptions=!0),ee.audioChannelConfiguration=Ot.getAudioChannelConfigurationForAdaptation(re),0===ee.audioChannelConfiguration.length&&re.Representation&&re.Representation.length>0&&(ee.audioChannelConfiguration=Ot.getAudioChannelConfigurationForRepresentation(re.Representation[0])),ee.roles=Ot.getRolesForAdaptation(re),ee.mimeType=Ot.getMimeType(re),ee.contentProtection=Ot.getContentProtectionByAdaptation(re),ee.bitrateList=Ot.getBitrateListForAdaptation(re),ee.selectionPriority=Ot.getSelectionPriority(re),ee.contentProtection&&ee.contentProtection.length>0&&(ee.contentProtection=function(Rt,ee){if(!Rt||!Rt.length||!ee)return Rt;const ne=Ot.getContentProtectionByManifest(ee);if(!ne||!ne.length)return Rt;const re=ne.reduce(((Rt,Ot)=>(Ot.refId&&Rt.set(Ot.refId,Ot),Rt)),new Map);return Rt.map((Rt=>{if(Rt.ref){const Ot=re.get(Rt.ref);Ot&&Rt.mergeAttributesFromReference(Ot)}return Rt}))}(ee.contentProtection,Rt.period.mpd.manifest),ee.contentProtection=function(Rt){const Ot=Rt.map((Rt=>Rt.cencDefaultKid)).filter((Rt=>null!==Rt));if(Ot.length){const ee=Ot[0];Rt.forEach((Rt=>{Rt.keyId=ee}))}return Rt}(ee.contentProtection),ee.normalizedKeyIds=function(Rt){const Ot=new Set;return Rt.forEach((Rt=>{Rt.cencDefaultKid&&"string"==typeof Rt.cencDefaultKid&&Ot.add(Rt.cencDefaultKid.replace(/-/g,"").toLowerCase())})),Ot}(ee.contentProtection)),ee.isText=Ot.getIsText(re),ee.essentialProperties=Ot.getCombinedEssentialPropertiesForAdaptationSet(re),ee.supplementalProperties=Ot.getCombinedSupplementalPropertiesForAdaptationSet(re),ee.isFragmented=Ot.getIsFragmented(re),ee.isEmbedded=!1,ee.adaptationSetSwitchingCompatibleIds=function(Rt){if(!Rt||!Rt.supplementalProperties)return[];let Ot=[];const ee=Rt.supplementalProperties.filter((Rt=>Rt.schemeIdUri===Xn.default.ADAPTATION_SET_SWITCHING_SCHEME_ID_URI));return ee&&ee.length>0&&(Ot=ee[0].value.toString().split(",").map((Rt=>Rt))),Ot}(ee),ee.segmentSequenceProperties=Ot.getSegmentSequencePropertiesForAdaptationSet(re),ee}function E(Rt){if(!Rt)return null;let ee=new Ji;const ne=Rt.period.mpd.manifest.Period[Rt.period.index].Preselection[Rt.index],re=Rt.period.mpd.manifest.Period[Rt.period.index].AdaptationSet,ie=Ot.getAdaptationsForPeriod(Rt.period);return ee=y(Ot.getMainAdaptationSetForPreselection(ne,ie)),ee&&(ee.isPreselection=!0,ee.tag=Rt.tag,ee.id=Rt.id,ee.codec=Ot.getCodecForPreselection(ne,re),ee.selectionPriority=Ot.getSelectionPriority(ne),ee.labels=Ot.getLabelsForAdaptation(ne),ee.lang=Ot.getLanguageForAdaptation(ne),ee.viewpoint=Ot.getViewpointForAdaptation(ne),ee.accessibility=Ot.getAccessibilityForAdaptation(ne),ee.audioChannelConfiguration=Ot.getAudioChannelConfigurationForAdaptation(ne),ee.roles=Ot.getRolesForAdaptation(ne),ee.essentialProperties=Ot.getCombinedEssentialPropertiesForAdaptationSet(ne),ee.supplementalProperties=Ot.getCombinedSupplementalPropertiesForAdaptationSet(ne)),ee}function T(Rt,Ot,ee){Rt.id=Ot,Rt.index=100+parseInt(Ot.substring(2,3)),Rt.type=ie.TEXT,Rt.codec="cea-608-in-SEI",Rt.isEmbedded=!0,Rt.isFragmented=!1,Rt.lang=gr(ee),Rt.roles=[{schemeIdUri:"urn:mpeg:dash:role:2011",value:"caption"}]}function _(Rt){let ee=new tl;return ee.id=Rt.id,ee.index=Rt.index,ee.start=Rt.start,ee.duration=Rt.duration,ee.manifestInfo=function(Rt){let ee=new class{constructor(){this.availableFrom=null,this.duration=NaN,this.dvrWindowSize=NaN,this.isDynamic=!1,this.loadedT
1ime=null,this.maxFragmentDuration=null,this.minBufferTime=NaN,this.protocol=null,this.serviceDescriptions=[]}};return ee.dvrWindowSize=Rt.timeShiftBufferDepth,ee.loadedTime=Rt.manifest.loadedTime,ee.availableFrom=Rt.availabilityStartTime,ee.minBufferTime=Rt.manifest.minBufferTime,ee.maxFragmentDuration=Rt.maxSegmentDuration,ee.duration=Ot.getDuration(Rt.manifest),ee.isDynamic=Ot.getIsDynamic(Rt.manifest),ee.serviceDescriptions=Ot.getServiceDescriptions(Rt.manifest),ee.protocol=Rt.manifest.protocol,ee}(Rt.mpd),ee.isLast=1===Rt.mpd.manifest.Period.length||Math.abs(ee.start+ee.duration-ee.manifestInfo.duration)<1,ee.isEncrypted=Rt.isEncrypted,ee}function v(){if(!ie)throw new Error("setConfig function has to be called previously")}function S(Rt){return re.length>0?re[0].mpd.manifest.Period[Rt]:null}function w(Rt,Ot,ee){let ne,re,ie,le,oe,ue;if(Rt)for(re=Rt.AdaptationSet,oe=0;oe<re.length;oe+=1)for(ne=re[oe],le=ne.Representation,ue=0;ue<le.length;ue+=1)if(ie=le[ue],Ot===ie.id)return ee?ue:ie;return null}return Rt={applyPatchToManifest:function(Rt,Ot){ee.getPatchOperations(Ot).forEach((Ot=>{let ee=Ot.getMpdTarget(Rt);if(null===ee)return;let{name:ne,target:re,leaf:ie}=ee;if(Ot.xpath.findsAttribute()||"__text"===ne){switch(Ot.action){case"add":case"replace":re[ne]=Ot.value;break;case"remove":delete re[ne]}return}let le=(re[ne]||[]).indexOf(ie),oe="prepend"===Ot.position||"before"===Ot.position;if("remove"===Ot.action||"replace"===Ot.action)if(Array.isArray(re[ne])){if(-1!=le){let Rt=re[ne];Rt.splice(le,1),Rt.length>0?re[ne]=Rt:delete re[ne]}}else delete re[ne];"add"!==Ot.action&&"replace"!==Ot.action||Object.keys(Ot.value).forEach((Rt=>{let ee=Ot.value[Rt],ie=re[Rt]||[];if(0===ie.length&&re[Rt]&&ie.push(re[Rt]),0===ie.length)ie=ee;else{let re=ie.length;re=Rt==ne&&-1!=le?le+(oe?0:1)+("replace"===Ot.action?-1:0):oe?0:ie.length,ie.splice.apply(ie,[re,0].concat(ee))}re[Rt]=ie}))}))},areMediaInfosEqual:function(Rt,Ot){if(!Rt||!Ot)return!1;const ee=Rt.id===Ot.id,ne=Rt.codec===Ot.codec,re=JSON.stringify(Rt.viewpoint)===JSON.stringify(Ot.viewpoint),ie=Rt.lang===Ot.lang,le=JSON.stringify(Rt.roles)===JSON.stringify(Ot.roles),oe=JSON.stringify(Rt.accessibility)===JSON.stringify(Ot.accessibility),ue=JSON.stringify(Rt.audioChannelConfiguration)===JSON.stringify(Ot.audioChannelConfiguration);return ee&&ne&&re&&ie&&le&&oe&&ue},getAllMediaInfoForType:function(Rt,ee,ne){let le=re,oe=ne,ue=[];if(oe)v(),le=c(oe);else{if(!(re.length>0))return ue;oe=re[0].mpd.manifest}const ce=b(Rt,le);let fe=Ot.getAdaptationsForType(oe,Rt?Rt.index:null,ee);return ue=d(oe,ce,Rt,fe,ee),ee===ie.TEXT&&(fe=Ot.getAdaptationsForType(oe,Rt?Rt.index:null,ie.VIDEO),ue=ue.concat(d(oe,ce,Rt,fe,ee,!0))),ue},getAvailabilityStartTime:function(Rt){const ee=f(Rt);return Ot.getAvailabilityStartTime(ee)},getBandwidthForRepresentation:function(Rt,Ot){let ee;return ee=w(S(Ot),Rt),ee?ee.bandwidth:null},getBaseURLsFromElement:function(Rt){return Ot.getBaseURLsFromElement(Rt)},getCodec:function(Rt,ee,ne){return Ot.getCodec(Rt,ee,ne)},getCodecForPreselection:function(Rt,ee){return Ot.getCodecForPreselection(Rt,ee)},getContentSteering:function(Rt){return Ot.getContentSteering(Rt)},getDuration:function(Rt){const ee=h(Rt);return Ot.getDuration(ee)},getEssentialProperties:function(Rt){try{return Ot.getEssentialProperties(Rt)}catch(Rt){return[]}},getEvent:function(Rt,Ot,ee,ne){try{if(!Rt||!Ot||isNaN(ee)||!ne)return null;const re=Rt.scheme_id_uri,ie=Rt.value;if(!Ot[re+"/"+ie])return null;const le=new aa,oe=Rt.timescale||1,ue=ne.adaptation.period.start,ce=Ot[re+"/"+ie],fe=isNaN(ne.presentationTimeOffset)?isNaN(ce.presentationTimeOffset)?0:ce.presentationTimeOffset:ne.presentationTimeOffset;let he,pe=Rt.presentation_time_delta/oe;he=0===Rt.version?ue+ee-fe+pe:ue-fe+pe;const be=Rt.event_duration/oe,ye=Rt.id,Ee=Rt.message_data;return le.eventStream=ce,le.eventStream.value=ie,le.eventStream.timescale=oe,le.duration=be,le.id=ye,le.calculatedPresentationTime=he,le.messageData=Ee,le.presentationTimeDelta=pe,le.parsedMessageData=re===ge.default.ID3_SCHEME_ID_URI?function(Rt){let Ot=0;const ee=[];for(;yr(Rt,Ot);){const ne=Er(Rt,Ot+6);Rt[Ot+5]>>6&1&&(Ot+=10),Ot+=10;const re=Ot+ne;for(;Ot+10<re;){const ne=wr(Rt.subarray(Ot)),re=Sr(ne);re&&ee.push(re),Ot+=ne.size+10}Tr(Rt,Ot)&&(Ot+=10)}return ee}(Ee):null,le}catch(Rt){return null}},getEventsFor:function(Rt,ee,ne){let ie=[];if(re.length>0){const le=re[0].mpd.manifest;if(Rt instanceof tl){const ee=b(Rt,re);ie=Ot.getEventsForPeriod(ee)}else if(Rt instanceof Ji){const ee=b(ne,re);ie=Ot.getEventStreamForAdaptationSet(le,p(Rt),ee)}else if(Rt instanceof ca){const Rt=b(ne,re);ie=Ot.getEventStreamForRepresentation(le,ee,Rt)}}return ie},getFramerate:function(Rt){return Ot.getFramerate(Rt)},getIndexForRepresentation:function(Rt,Ot){return function(Rt,Ot){const ee=w(Rt,Ot,!0);return null!==ee?ee:-1}(S(Ot),Rt)},getIsDVB:function(Rt){return Ot.hasProfile(Rt,"urn:dvb:dash:profile:dvb-dash:2014")},getIsDynamic:function(Rt){const ee=h(Rt);return Ot.getIsDynamic(ee)},getIsPatch:function(Rt){return ee.getIsPatch(Rt)},getIsTextTrack:function(Rt){return Ot.getIsText(Rt)},getIsTypeOf:function(Rt,ee){return Ot.getIsTypeOf(Rt,ee)},getLocation:function(Rt){return Ot.getLocation(Rt)},getMainAdaptationForType:s,getMainAdaptationSetForPreselection:function(Rt,ee){return Ot.getMainAdaptationSetForPreselection(Rt,ee)},getCommonRepresentationForPreselection:function(Rt,ee){return Ot.getCommonRepresentationForPreselection(Rt,ee)},getManifestUpdatePeriod:function(Rt,ee=0){return Ot.getManifestUpdatePeriod(Rt,ee)},getMediaInfoForType:function(Rt,ee){if(0===re.length||!Rt)return null;let ne=b(Rt,re);if(!ne)return null;const ie=Ot.getAdaptationsForPeriod(ne);let le=s(ee,Rt);return le?y(ie[Ot.getIndexForAdaptation(le,re[0].mpd.manifest,Rt.index)]):null},getMpd:f,getPatchLocation:function(Rt){const ee=Ot.getPatchLocation(Rt),ne=Ot.getPublishTime(Rt);return ee&&0!==ee.length&&ne?ee.filter((Rt=>isNaN(Rt.ttl)||ne.getTime()+Rt.ttl>(new Date).getTime())):[]},getPeriodById:function(Rt){if(!Rt||0===re.length)return null;const Ot=re.filter((Ot=>Ot.id===Rt));return Ot&&Ot.length>0?Ot[0]:null},getPreselectionIsTypeOf:function(Rt,ee,ne){return Ot.getPreselectionIsTypeOf(Rt,ee,ne)},getProducerReferenceTimes:function(Rt,ee){let ne,ie;const le=b(Rt,re);return ne=ee?ee.id:null,re.length>0&&le&&(ie=ne?Ot.getAdaptationForId(ne,re[0].mpd.manifest,le.index):Ot.getAdaptationForIndex(ee?ee.index:null,re[0].mpd.manifest,le.index)),ie?Ot.getProducerReferenceTimesForAdaptation(ie):[]},getPublishTime:function(Rt){return Ot.getPublishTime(Rt)},getRealAdaptation:function(Rt,ee){let ne,ie;const le=b(Rt,re);return ne=ee?ee.id:null,re.length>0&&le&&(ie=ne?Ot.getAdaptationForId(ne,re[0].mpd.manifest,le.index):Ot.getAdaptationForIndex(ee?ee.index:null,re[0].mpd.manifest,le.index)),ie},getRealPeriodByIndex:function(Rt){return Ot.getRealPeriodForIndex(Rt,re[0].mpd.manifest)},getRegularPeriods:c,getRepresentationSortFunction:function(){return Ot.getRepresentationSortFunction()},getStreamsInfo:function(Rt,Ot){const ee=[];let ne=re;if(Rt&&(v(),ne=c(Rt)),ne.length>0){(!Ot||Ot>ne.length)&&(Ot=ne.length);for(let Rt=0;Rt<Ot;Rt++)ee.push(_(ne[Rt]))}return ee},getSuggestedPresentationDelay:function(){const Rt=re.length>0?re[0].mpd:null;return Ot.getSuggestedPresentationDelay(Rt)},getSupplementalCodecs:function(Rt){const Ot=Rt[Xn.default.SUPPLEMENTAL_CODECS];return Ot?Ot.split(" ").map((Ot=>Rt.mimeType+';codecs="'+Ot+'"')):[]},getUTCTimingSources:function(){const Rt=h();return Ot.getUTCTimingSources(Rt)},getVoRepresentations:function(Rt){let ee;const ne=p(Rt);return ee=Ot.getRepresentationsForAdaptation(ne,Rt),ee},isPatchValid:function(Rt,ne){let re=Ot.getId(Rt),ie=ee.getMpdId(ne),le=Ot.getPublishTime(Rt),oe=ee.getPublishTime(ne),ue=ee.getOriginalPublishTime(ne);return!!(re&&ie&&re==ie&&le&&ue&&le.getTime()==ue.getTime()&&oe&&le.getTime()<oe.getTime())},reset:g,setConfig:function(Rt){Rt&&(Rt.constants&&(ie=Rt.constants),Rt.cea608parser&&(le=Rt.cea608parser),Rt.errHandler&&Ot.setConfig({errHandler:Rt.errHandler}),Rt.BASE64&&Ot.setConfig({BASE64:Rt.BASE64}))},updatePeriods:function(Rt){if(!Rt)return null;v(),re=c(Rt)}},Ot=Ea(ue).getInstance(),ee=el(ue).getInstance(),ne=(0,oe.default)(ue).getInstance(),g(),Rt}Ar.__dashjs_factory_name="DashAdapter";var bl=ne.default.getSingletonFactory(Ar);
1class zr{constructor(){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=[]}}class Lr{constructor(){this.id=null,this.index=null,this.start=null,this.duration=null}}class Fr{constructor(){this.id=null,this.index=null,this.mediaType=null,this.presentationTimeOffset=null,this.startNumber=null}}function qr(Rt){const Ot=(Rt=Rt||{}).settings;let ee,ne,re=this.context,le=(0,ce.default)(re).getInstance();function o(){le.trigger(fe.default.METRICS_CHANGED)}function s(Rt){le.trigger(fe.default.METRIC_CHANGED,{mediaType:Rt}),o()}function u(Rt,Ot,ee){le.trigger(fe.default.METRIC_UPDATED,{mediaType:Rt,metric:Ot,value:ee}),s(Rt)}function d(Rt,Ot,ee){le.trigger(fe.default.METRIC_ADDED,{mediaType:Rt,metric:Ot,value:ee}),s(Rt)}function c(Rt,Ot){let ee=null;return Rt?(ne.hasOwnProperty(Rt)?ee=ne[Rt]:Ot||(ee=new class{constructor(){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=[]}},ne[Rt]=ee),ee):ee}function h(Rt,ee,ne){let re=c(Rt);null!==re&&(re[ee].push(ne),re[ee].length>Ot.get().streaming.metrics.maxListDepth&&re[ee].shift())}function p(Rt,Ot,ee){h(Rt,Ot,ee),d(Rt,Ot,ee)}return ee={addBufferLevel:function(Rt,Ot,ee){let ne=new class{constructor(){this.t=null,this.level=null}};ne.t=Ot,ne.level=ee,p(Rt,ie.BUFFER_LEVEL,ne)},addBufferState:function(Rt,Ot,ee){let ne=new class{constructor(){this.target=null,this.state=ie.BUFFER_EMPTY}};ne.target=ee,ne.state=Ot,p(Rt,ie.BUFFER_STATE,ne)},addDVBErrors:function(Rt){p(ge.default.STREAM,ie.DVB_ERRORS,Rt)},addDVRInfo:function(Rt,Ot,ee,ne){let re=new class{constructor(){this.time=null,this.range=null,this.manifestInfo=null}};re.time=Ot,re.range=ne,re.manifestInfo=ee,p(Rt,ie.DVR_INFO,re)},addDroppedFrames:function(Rt,Ot){let ee=new class{constructor(){this.time=null,this.droppedFrames=null}},ne=c(Rt).DroppedFrames;Ot&&(ee.time=Ot.creationTime,ee.droppedFrames=Ot.droppedVideoFrames,ne.length>0&&ne[ne.length-1]==ee||p(Rt,ie.DROPPED_FRAMES,ee))},addHttpRequest:function t(Rt,Ot,ee,ne){let re=new _e.HTTPRequest;Ot.url&&Ot.url!==Rt.url&&(t({mediaType:Rt.mediaType,type:Rt.type,url:Rt.url,serviceLocation:null,range:Rt.range,startDate:Rt.startDate,firstByteDate:null,endDate:null,duration:Rt.duration,fileLoaderType:Rt.fileLoaderType,resourceTimingValues:Rt.resourceTimingValues},{url:null,status:null,headers:null},null,ne),re.actualurl=Ot.url),re.tcpid=null,re.type=Rt.type,re.url=Rt.url,re.range=Rt.range||null,re.trequest=Rt.startDate,re.tresponse=Rt.firstByteDate,re.responsecode=Ot.status,re.cmsd=ne,re._tfinish=Rt.endDate,re._stream=Rt.mediaType,re._mediaduration=Rt.duration,re._responseHeaders="";for(const Rt in Ot.headers)re._responseHeaders+=Rt+": "+Ot.headers[Rt]+"\r\n";re._serviceLocation=Rt.serviceLocation||null,re._fileLoaderType=Rt.fileLoaderType,re._resourceTimingValues=Rt.resourceTimingValues,re._streamId=Rt&&Rt.representation&&Rt.representation.mediaInfo&&Rt.representation.mediaInfo.streamInfo?Rt.representation.mediaInfo.streamInfo.id:null,ee?ee.forEach((Rt=>{!function(Rt,Ot,ee,ne){let re=new _e.HTTPRequestTrace;re.s=Ot,re.d=ee,re.b=ne,Rt.trace.push(re),Rt.interval||(Rt.interval=0),Rt.interval+=ee}(re,Rt.s,Rt.d,Rt.b,Rt.t)})):(delete re.interval,delete re.trace),p(Rt.mediaType,ie.HTTP_REQUEST,re)},addManifestUpdate:function(Rt,Ot,ee,ne){let re=new zr;re.mediaType=Rt,re.type=Ot,re.requestTime=ee,re.fetchTime=ne,h(ge.default.STREAM,ie.MANIFEST_UPDATE,re),d(Rt,ie.MANIFEST_UPDATE,re)},addManifestUpdateRepresentationInfo:function(Rt,Ot,ee){if(Rt&&Rt.representationInfo){const ne=new Fr;ne.id=Ot?Ot.id:null,ne.index=Ot?Ot.index:null,ne.mediaType=ee,ne.startNumber=Ot?Ot.startNumber:null,ne.presentationTimeOffset=Ot?Ot.presentationTimeOffset:null,Rt.representationInfo.push(ne),u(Rt.mediaType,ie.MANIFEST_UPDATE_TRACK_INFO,Rt)}},addManifestUpdateStreamInfo:function(Rt,Ot,ee,ne,re){if(Rt){let le=new Lr;le.id=Ot,le.index=ee,le.start=ne,le.duration=re,Rt.streamInfo.push(le),u(Rt.mediaType,ie.MANIFEST_UPDATE_STREAM_INFO,Rt)}},addPlayList:function(Rt){Rt.trace&&Array.isArray(Rt.trace)?Rt.trace.forEach((Rt=>{Rt.hasOwnProperty("subreplevel")&&!Rt.subreplevel&&delete Rt.subreplevel})):delete Rt.trace,p(ge.default.STREAM,ie.PLAY_LIST,Rt)},addRepresentationSwitch:function(Rt,Ot,ee,ne,re){let le=new class{constructor(){this.t=null,this.mt=null,this.to=null,this.lto=null}};le.t=Ot,le.mt=ee,le.to=ne,re?le.lto=re:delete le.lto,p(Rt,ie.TRACK_SWITCH,le)},addRequestsQueue:function(Rt,Ot,ee){let ne=new class{constructor(){this.loadingRequests=[],this.executedRequests=[]}};ne.loadingRequests=Ot,ne.executedRequests=ee,c(Rt).RequestsQueue=ne,d(Rt,ie.REQUESTS_QUEUE,ne)},addSchedulingInfo:function(Rt,Ot,ee,ne,re,le,oe,ue,ce){let fe=new class{constructor(){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}};fe.mediaType=Rt,fe.t=Ot,fe.type=ee,fe.startTime=ne,fe.availabilityStartTime=re,fe.duration=le,fe.bandwidth=oe,fe.range=ue,fe.state=ce,p(Rt,ie.SCHEDULING_INFO,fe)},clearAllCurrentMetrics:function(){ne={},o()},clearCurrentMetricsForType:function(Rt){delete ne[Rt],s(Rt)},getMetricsFor:c,updateManifestUpdateInfo:function(Rt,Ot){if(Rt){for(let ee in Ot)Rt[ee]=Ot[ee];u(Rt.mediaType,ie.MANIFEST_UPDATE,Rt)}}},ne={},ee}qr.__dashjs_factory_name="MetricsModel";var yl=ne.default.getSingletonFactory(qr);class Gr{constructor(){this.start=null,this.mstart=null,this.starttype=null,this.trace=[]}}Gr.INITIAL_PLAYOUT_START_REASON="initial_playout",Gr.SEEK_START_REASON="seek",Gr.RESUME_FROM_PAUSE_START_REASON="resume",Gr.METRICS_COLLECTION_START_REASON="metrics_collection_start";class Hr{constructor(){this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null}}function Yr(Rt){Rt=Rt||{};const Ot=this.context;let ee,ne,re,le,oe=Rt.metricsModel;function s(Rt){const Ot=oe.getMetricsFor(Rt,!0);if(!Ot)return null;const ee=Ot.HttpList;let ne,re=null;if(!ee||ee.length<=0)return null;for(ne=ee.length-1;ne>=0;){if(ee[ne].responsecode){re=ee[ne];break}ne--}return re}function u(Rt){const Ot=oe.getMetricsFor(Rt,!0);return Ot&&Ot.HttpList?Ot.HttpList:[]}function d(Rt,Ot){if(!Rt)return null;const ee=Rt[Ot];return ee&&0!==ee.length?ee[ee.length-1]:null}return ee={getCurrentRepresentationSwitch:function(Rt){return d(oe.getMetricsFor(Rt,!0),ie.TRACK_SWITCH)},getCurrentBufferState:function(Rt){return d(oe.getMetricsFor(Rt,!0),ie.BUFFER_STATE)},getCurrentBufferLevel:function(Rt){const Ot=d(oe.getMetricsFor(Rt,!0),ie.BUFFER_LEVEL);return Ot?class Nr{static round10(Rt,Ot){return function(Rt,Ot,ee){return void 0===ee||0==+ee?Math[Rt](Ot):(ee=+ee,null===(Ot=+Ot)||isNaN(Ot)||"number"!=typeof ee||ee%1!=0?NaN:(Ot=Ot.toString().split("e"),+((Ot=(Ot=Math[Rt](+(Ot[0]+"e"+(Ot[1]?+Ot[1]-ee:-ee)))).toString().split("e"))[0]+"e"+(Ot[1]?+Ot[1]+ee:ee))))}("round",Rt,Ot)}}.round10(Ot.level/1e3,-3):0},getCurrentHttpRequest:s,getHttpRequests:u,getCurrentDroppedFrames:function(){return d(oe.getMetricsFor(ge.default.VIDEO,!0),ie.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(Rt){return d(oe.getMetricsFor(Rt,!0),ie.SCHEDULING_INFO)},getCurrentDVRInfo:function(Rt){return d(Rt?oe.getMetricsFor(Rt,!0):oe.getMetricsFor(ge.default.VIDEO,!0)||oe.getMetricsFor(ge.default.AUDIO,!0),ie.DVR_INFO)},getCurrentManifestUpdate:function(){return d(oe.getMetricsFor(ge.default.STREAM),ie.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(Rt,Ot){if(!Ot)return null;let ee={},ne=s(Rt);ne&&(ee=Bn.default.parseHttpHeaders(ne._responseHeaders));const re=ee[Ot.toLowerCase()];return void 0===re?null:re},getLatestMPDRequestHeaderValueByID:function(Rt){if(!Rt)return null;let Ot,ee,ne,re={};for(Ot=u(ge.default.STREAM),ne=Ot.length-1;ne>=0;ne--)if(ee=Ot[ne],ee.type===_e.HTTPRequest.MPD_TYPE){re=Bn.default.parseHttpHeaders(ee._responseHeaders);break}const ie=re[Rt.toLowerCase()];return void 0===ie?null:ie},addRepresentationSwitch:function(Rt,Ot,ee,ne,re){oe.addRepresentationSwitch(Rt,Ot,ee,ne,re)},addDVRInfo:function(Rt,Ot,ee,ne){oe.addDVRInfo(Rt,Ot,ee,ne)},updateManifestUpdateInfo:function(Rt){const Ot=this.getCurrentManifestUpdate();oe.updateManifestUpdateInfo(Ot,Rt)},addManifestUpdateStreamInfo:function(Rt){if(Rt){const Ot=this.getCurrentManifestUpdate();oe.addManifestUpdateStreamInfo(Ot,Rt.id,Rt.index,Rt.start,Rt.duration)}},addManifestUpdateRepresentationInfo:function(Rt,Ot){if(Rt){const ee=this.getCurrentManifestUpdate();oe.addManifestUpdateRepresentationInfo(ee,Rt,Ot)}},addManifestUpdate:function(Rt){oe.addManifestUpdate(ge.default.STREAM,Rt.type,Rt.startDate,Rt.endDate)},addHttpRequest:function(Rt,Ot,ee,ne,re,ie){const le={status:ee,headers:ne,url:Ot};oe.addHttpRequest(Rt,le,re,ie)},addSchedulingInfo:function(Rt,Ot){oe.addSchedulingInfo(Rt.mediaType,new Date,Rt.type,Rt.startTime,Rt.availabilityStartTime,Rt.duration,Rt.bandwidth,Rt.range,Ot)},addRequestsQueue:function(Rt,Ot,ee){oe.addRequestsQueue(Rt,Ot,ee)},addBufferLevel:function(Rt,Ot,ee){oe.addBufferLevel(Rt,Ot,ee)},addBufferState:function(Rt,Ot,ee){oe.addBufferState(Rt,Ot,ee)},addDroppedFrames:function(Rt){oe.addDroppedFrames(ge.default.VIDEO,Rt)},addPlayList:function(){le&&(oe.addPlayList(le),le=null)},addDVBErrors:function(Rt){oe.addDVBErrors(Rt)},createPlaylistMetrics:function(Rt,Ot){le=new Gr,le.start=new Date,le.mstart=Rt,le.starttype=Ot},createPlaylistTraceMetrics:function(Rt,Ot,ee){!0===ne&&(ne=!1,re=new Hr,re.representationid=Rt,re.start=new Date,re.mstart=Ot,re.playbackspeed=null!==ee?ee.toString():null)},updatePlayListTraceMetrics:function(Rt){if(re)for(let Ot in re)re[Ot]=Rt[Ot]},pushPlayListTraceMetrics:function(Rt,Ot){if(!1===ne&&le&&re&&re.start){const ee=re.start;re.duration=Rt.getTime()-ee.getTime(),re.stopreason=Ot,le.trace.push(re),ne=!0}},clearAllCurrentMetrics:function(){oe.clearAllCurrentMetrics()}},oe=oe||yl(Ot).getInstance({settings:Rt.settings}),ne=!0,re=null,le=null,ee}Hr.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",Hr.REBUFFERING_REASON="rebuffering",Hr.USER_REQUEST_STOP_REASON="user_request",Hr.END_OF_PERIOD_STOP_REASON="end_of_period",Hr.END_OF_CONTENT_STOP_REASON="end_of_content",Hr.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",Hr.FAILURE_STOP_REASON="failure",Yr.__dashjs_factory_name="DashMetrics";var Tl=ne.default.getSingletonFactory(Yr);function Kr(){let Rt;const Ot=this.context,ee=(0,ce.default)(Ot).getInstance();return Rt={error:function(Rt){ee.trigger(fe.default.ERROR,{error:Rt})}},Rt}Kr.__dashjs_factory_name="ErrorHandler";var vl=ne.default.getSingletonFactory(Kr),Sl=ee(5560);function Qr(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,ie,oe,ue,he,pe,be,ye,Ee,_e;function y(){_e.debug("Stopping the gap controller"),oe&&(clearInterval(oe),oe=null),function(){Ot.off(fe.default.WALLCLOCK_TIME_UPDATED,S,this),Ot.off(fe.default.INITIAL_STREAM_SWITCH,v,this),Ot.off(fe.default.PLAYBACK_SEEKING,E,this),Ot.off(fe.default.BUFFER_REPLACEMENT_STARTED,T,ee),Ot.off(fe.default.TRACK_CHANGE_RENDERED,_,ee)}(),oe=null,ue=NaN,ie=0,ye=null,Ee={}}function E(){ye&&(clearTimeout(ye),ye=null)}function T(Rt){try{if(Rt.streamId!==pe.getActiveStreamInfo().id||Rt.mediaType!==ge.default.VIDEO&&Rt.mediaType!==ge.default.AUDIO)return;Rt.streamId===pe.getActiveStreamInfo().id&&(Ee[Rt.mediaType]=!0)}catch(Rt){_e.error(Rt)}}function _(Rt){Rt&&Rt.mediaType&&(Ee[Rt.mediaType]=!1)}function v(){oe||function(){try{oe||(_e.debug("Starting the gap controller"),oe=setInterval((()=>{w()&&I(he.getTime())}),100))}catch(Rt){}}()}function S(){if(w(re.get().streaming.gaps.enableSeekFix)&&(ie++,ie>=10)){const Rt=he.getTime();ne===Rt?I(Rt,!0):(ne=Rt,ue=NaN),ie=0}}function w(Rt=!1){if(!pe.getActiveStream())return!1;const Ot=Object.keys(Ee).some((Rt=>Ee[Rt])),ee=!!Rt&&function(){const Rt=pe.getActiveStream(),Ot=parseFloat((Rt.getStartTime()+Rt.getDuration()).toFixed(5));return he.getTime()+re.get().streaming.gaps.threshold>=Ot}();return!Ot&&re.get().streaming.gaps.jumpGaps&&pe.getActiveStreamProcessors().length>0&&(!he.isSeeking()||ee)&&!he.isPaused()&&!pe.getIsStreamSwitchInProgress()&&!pe.getHasMediaOrInitialisationError()}function I(Rt,Ot=!1){const ee=re.get().streaming.gaps.enableStallFix,ne=re.get().streaming.gaps.stallSeek,ie=re.get().streaming.gaps.smallGapLimit,le=re.get().streaming.gaps.jumpLargeGaps,oe=re.get().streaming.gaps.seekOffset,ce=be.getBufferRange();let fe,ge=NaN,Ee=!1;if(fe=function(Rt,Ot){try{if(!Rt||Rt.length<=1&&Ot>0)return NaN;let ee=NaN,ne=0;for(;isNaN(ee)&&ne<Rt.length;){const ie=ne>0?Rt.end(ne-1):0;Ot<Rt.start(ne)&&ie-Ot<re.get().streaming.gaps.threshold&&(ee=ne),ne+=1}return ee}catch(Rt){return null}}(ce,Rt),!isNaN(fe)){const Ot=ce.start(fe),ee=Ot-Rt;ee>0&&(ee<=ie||le)&&(ge=Ot)}const Se=he.getTimeToStreamEnd();if(isNaN(ge)&&Ot&&isFinite(Se)&&!isNaN(Se)&&Se<ie&&(ge=parseFloat(he.getStreamEndTime().toFixed(5)),Ee=!0),ee&&isNaN(ge)&&Ot&&isNaN(fe)&&function(Rt,Ot){for(let ee=0,ne=Rt.length;ee<ne;ee++)if(Ot>=Rt.start(ee)&&Ot<=Rt.end(ee))return!0;return!1}
1(ce,Rt)&&(0===ne?(_e.warn("Toggle play pause to break stall"),be.pause(),be.play()):(_e.warn(`Jumping ${ne}s to break stall`),ge=Rt+ne)),ge>0&&ue!==ge&&ge>Rt&&!ye){const Ot=ge-Rt;if(Ee){const ee=pe.getStreamForTime(ge),ne=ee&&!!ee.getPreloaded();_e.warn(`Jumping to end of stream because of gap from ${Rt} to ${ge}. Gap duration: ${Ot}`),he.seek(ge+oe,!0,ne)}else{const ee=he.getIsDynamic(),ne=fe>0?ce.end(fe-1):Rt,re=ee?1e3*Math.max(0,Ot-.1):0;ye=window.setTimeout((()=>{he.seek(ge+oe,!0,!0);const Rt=pe.getActiveStream();Rt&&_e.warn(`Jumping gap occuring in period ${Rt.getStreamId()} starting at ${ne} and ending at ${ge}. Jumping by: ${ge+oe-ne}`),ye=null}),re)}ue=ge}}return ee={reset:y,setConfig:function(Rt){Rt&&(Rt.settings&&(re=Rt.settings),Rt.playbackController&&(he=Rt.playbackController),Rt.streamController&&(pe=Rt.streamController),Rt.videoModel&&(be=Rt.videoModel))},initialize:function(){!function(){Ot.on(fe.default.WALLCLOCK_TIME_UPDATED,S,this),Ot.on(fe.default.INITIAL_STREAM_SWITCH,v,this),Ot.on(fe.default.PLAYBACK_SEEKING,E,this),Ot.on(fe.default.BUFFER_REPLACEMENT_STARTED,T,ee),Ot.on(fe.default.TRACK_CHANGE_RENDERED,_,ee)}()}},_e=(0,le.default)(Rt).getInstance().getLogger(ee),y(),ee}Qr.__dashjs_factory_name="GapController";var wl=ne.default.getSingletonFactory(Qr),Pl=class extends ln{constructor(Rt,Ot){super(),this.url=Rt||null,this.type=Ot||null,this.mediaType=ge.default.STREAM,this.responseType=""}};function Jr(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance();let ne,re=bi(Ot).create({errHandler:Rt.errHandler,dashMetrics:Rt.dashMetrics,mediaPlayerModel:Rt.mediaPlayerModel,errors:zn});return ne={load:function(Rt,Ot,ne){const i=function(re,ie){Ot.resolved=!0,Ot.resolvedContent=re||null,ee.trigger(fe.default.XLINK_ELEMENT_LOADED,{element:Ot,resolveObject:ne,error:re||ie?null:new jn.default(zn.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,zn.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+Rt)})};if("urn:mpeg:dash:resolve-to-zero:2013"===Rt)i(null,!0);else{const Ot=new Pl(Rt,_e.HTTPRequest.XLINK_EXPANSION_TYPE);re.load({request:Ot,success:function(Rt){i(Rt)},error:function(){i(null)}})}},reset:function(){re&&(re.abort(),re=null)}},ne}Jr.__dashjs_factory_name="XlinkLoader";var zl=ne.default.getClassFactory(Jr);const Fl="onLoad";function ni(Rt){Rt=Rt||{};let Ot=this.context,ee=(0,ce.default)(Ot).getInstance();const ne=ha(Ot).getInstance();let re,ie,le,oe;function s(Rt,Ot,ee){let re,ie,le={};le.elements=Rt,le.type=Ot,le.resolveType=ee,0===le.elements.length&&d(le);for(let Rt=0;Rt<le.elements.length;Rt++)re=le.elements[Rt],ie=ne.isHTTPURL(re.url)?re.url:re.originalContent.BaseURL+re.url,oe.load(ie,re,le)}function u(Rt){let Ot,ee,ne="";if(Ot=Rt.element,ee=Rt.resolveObject,Ot.resolvedContent){let Rt=0;0===Ot.resolvedContent.indexOf("<?xml")&&(Rt=Ot.resolvedContent.indexOf("?>")+2),ne=Ot.resolvedContent.substr(0,Rt)+"<response>"+Ot.resolvedContent.substr(Rt)+"</response>",Ot.resolvedContent=ie.parseXml(ne).response}(function(Rt){let Ot,ee;for(Ot=0;Ot<Rt.elements.length;Ot++)if(ee=Rt.elements[Ot],!1===ee.resolved)return!1;return!0})(ee)&&d(ee)}function d(Rt){let Ot,ne,re=[];if(function(Rt){let Ot,ee,ne,re,oe,ue,ce=[];for(re=Rt.elements.length-1;re>=0;re--){if(Ot=Rt.elements[re],ee=Ot.type,Ot.resolvedContent){if(Ot.resolvedContent)for(oe=0;oe<Ot.resolvedContent[ee].length;oe++)ne=Ot.resolvedContent[ee][oe],ce.push(ne)}else delete Ot.originalContent["xlink:actuate"],delete Ot.originalContent["xlink:href"],ce.push(Ot.originalContent);for(Ot.parentElement[ee].splice(Ot.index,1),ue=0;ue<ce.length;ue++)Ot.parentElement[ee].splice(Ot.index+ue,0,ce[ue]);ce=[]}Rt.elements.length>0&&ie.getIron().run(le)}(Rt),"onActuate"===Rt.resolveType&&ee.trigger(fe.default.XLINK_READY,{manifest:le}),Rt.resolveType===Fl)switch(Rt.type){case Xn.default.PERIOD:for(Ot=0;Ot<le[Xn.default.PERIOD].length;Ot++)ne=le[Xn.default.PERIOD][Ot],ne.hasOwnProperty(Xn.default.ADAPTATION_SET)&&(re=re.concat(c(ne[Xn.default.ADAPTATION_SET],ne,Xn.default.ADAPTATION_SET,Fl))),ne.hasOwnProperty(Xn.default.EVENT_STREAM)&&(re=re.concat(c(ne[Xn.default.EVENT_STREAM
1],ne,Xn.default.EVENT_STREAM,Fl)));s(re,Xn.default.ADAPTATION_SET,Fl);break;case Xn.default.ADAPTATION_SET:ee.trigger(fe.default.XLINK_READY,{manifest:le})}}function c(Rt,Ot,ee,ne){let re,ie,le,oe=[];for(ie=Rt.length-1;ie>=0;ie--)re=Rt[ie],re.hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===re["xlink:href"]&&Rt.splice(ie,1);for(ie=0;ie<Rt.length;ie++)re=Rt[ie],re.hasOwnProperty("xlink:href")&&re.hasOwnProperty("xlink:actuate")&&re["xlink:actuate"]===ne&&(le=m(re["xlink:href"],Ot,ee,ie,ne,re),oe.push(le));return oe}function m(Rt,Ot,ee,ne,re,ie){return{url:Rt,parentElement:Ot,type:ee,index:ne,resolveType:re,originalContent:ie,resolvedContent:null,resolved:!1}}return re={resolveManifestOnLoad:function(Rt){let Ot;le=Rt,le.Period?(Ot=c(le.Period,le,Xn.default.PERIOD,Fl),s(Ot,Xn.default.PERIOD,Fl)):ee.trigger(fe.default.XLINK_READY,{manifest:le})},setParser:function(Rt){Rt&&(ie=Rt)},reset:function(){ee.off(fe.default.XLINK_ELEMENT_LOADED,u,re),oe&&(oe.reset(),oe=null)}},ee.on(fe.default.XLINK_ELEMENT_LOADED,u,re),oe=zl(Ot).create({errHandler:Rt.errHandler,dashMetrics:Rt.dashMetrics,mediaPlayerModel:Rt.mediaPlayerModel,settings:Rt.settings}),re}ni.__dashjs_factory_name="XlinkController";var jl=ne.default.getClassFactory(ni);function ri(Rt){function e(Rt,Ot){for(let ee in Rt)Ot.hasOwnProperty(ee)||(Ot[ee]=Rt[ee])}function n(Rt,Ot,ee){for(let ne=0,re=Rt.length;ne<re;++ne){const re=Rt[ne];if(Ot[re.name])if(ee[re.name]){if(re.merge){const Rt=Ot[re.name],ne=ee[re.name];"object"==typeof Rt&&"object"==typeof ne?e(Rt,ne):ee[re.name]=Rt+ne}}else ee[re.name]=Ot[re.name]}}function a(Rt,Ot){for(let ee=0,ne=Rt.children.length;ee<ne;++ee){const ne=Rt.children[ee],re=Ot[ne.name];if(re)for(let ee=0,ie=re.length;ee<ie;++ee){const ie=re[ee];n(Rt.properties,Ot,ie),a(ne,ie)}}}return{run:function(Ot){if(null===Ot||"object"!=typeof Ot)return Ot;if(Ot.Period&&"period"in Rt){const ee=Rt.period,ne=Ot.Period;for(let Ot=0,re=ne.length;Ot<re;++Ot){const re=ne[Ot];if(a(ee,re),"adaptationset"in Rt){const Ot=re.AdaptationSet;if(Ot){const ee=Rt.adaptationset;for(let Rt=0,ne=Ot.length;Rt<ne;++Rt)a(ee,Ot[Rt])}}}}return Ot}}}ri.__dashjs_factory_name="ObjectIron";var Bl=ne.default.getClassFactory(ri),Hl=class{constructor(Rt,Ot){this._test=Rt,this._converter=Ot}get test(){return this._test}get converter(){return this._converter}};const Vl=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/;var Wl=class extends Hl{constructor(){super(((Rt,Ot,ee)=>{const ne=[Xn.default.MIN_BUFFER_TIME,Xn.default.MEDIA_PRESENTATION_DURATION,Xn.default.MINIMUM_UPDATE_PERIOD,Xn.default.TIMESHIFT_BUFFER_DEPTH,Xn.default.MAX_SEGMENT_DURATION,Xn.default.MAX_SUBSEGMENT_DURATION,Xn.default.SUGGESTED_PRESENTATION_DELAY,Xn.default.START,ge.default.START_TIME,Xn.default.DURATION],re=ne.length;for(let Rt=0;Rt<re;Rt++)if(Ot===ne[Rt])return Vl.test(ee);return!1}),(Rt=>{const Ot=Vl.exec(Rt);let ee=31536e3*parseFloat(Ot[3]||0)+2592e3*parseFloat(Ot[5]||0)+86400*parseFloat(Ot[7]||0)+3600*parseFloat(Ot[9]||0)+60*parseFloat(Ot[11]||0)+parseFloat(Ot[13]||0);return void 0!==Ot[1]&&(ee=-ee),ee}))}};const Ql=/^([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}))?/;var Xl=class extends Hl{constructor(){super(((Rt,Ot,ee)=>Ql.test(ee)),(Rt=>{const Ot=Ql.exec(Rt);let ee;if(ee=Date.UTC(parseInt(Ot[1],10),parseInt(Ot[2],10)-1,parseInt(Ot[3],10),parseInt(Ot[4],10),parseInt(Ot[5],10),Ot[6]&&parseInt(Ot[6],10)||0,Ot[7]&&1e3*parseFloat(Ot[7])||0),Ot[9]&&Ot[10]){const Rt=60*parseInt(Ot[9],10)+parseInt(Ot[10],10);ee+=("+"===Ot[8]?-1:1)*Rt*60*1e3}return new Date(ee)}))}};const Zl=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,to=[Xn.default.ID];var no=class extends Hl{constructor(){super(((Rt,Ot,ee)=>Zl.test(ee)&&-1===to.indexOf(Ot)),(Rt=>parseFloat(Rt)))}},ao=class extends Hl{constructor(){super(((Rt,Ot)=>{const ee={[Xn.default.ADAPTATION_SET]:[Xn.default.LANG],[Xn.default.REPRESENTATION]:[Xn.default.LANG],[Xn.default.CONTENT_COMPONENT]:[Xn.default.LANG],[Xn.default.LABEL]:[Xn.default.LANG],[Xn.default.GROUP_LABEL]:[Xn.default.LANG]};if(ee.hasOwnProperty(Rt)){let ne=ee[Rt];return void 0!==ne&&ne.indexOf(Ot)>=0}return!1}),(Rt=>gr(Rt)||String(Rt)))}},io=class{constructor(Rt,Ot,ee){this._name=Rt||"",this._properties=[],this._children=ee||[],Array.isArray(Ot)&&Ot.forEach((Rt=>{this._properties.push(new class{constructor(Rt){var Ot;this._name=Rt,this._merge=(Ot=Rt)&&Ot.length&&Ot.charAt(0)===Ot.charAt(0).toUpperCase()}get name(){return this._name}
1get merge(){return this._merge}}(Rt))}))}get name(){return this._name}get children(){return this._children}get properties(){return this._properties}},oo=class extends io{constructor(){const Rt=[Xn.default.AUDIO_CHANNEL_CONFIGURATION,Xn.default.AUDIO_SAMPLING_RATE,Xn.default.CODECS,Xn.default.CODING_DEPENDENCY,Xn.default.CONTENT_PROTECTION,Xn.default.FRAMERATE,Xn.default.FRAME_PACKING,Xn.default.HEIGHT,Xn.default.INBAND_EVENT_STREAM,Xn.default.MAXIMUM_SAP_PERIOD,Xn.default.MAX_PLAYOUT_RATE,Xn.default.MIME_TYPE,Xn.default.PROFILES,Xn.default.SAR,Xn.default.SCAN_TYPE,Xn.default.SEGMENT_PROFILES,Xn.default.SEGMENT_SEQUENCE_PROPERTIES,Xn.default.START_WITH_SAP,Xn.default.WIDTH];super(Xn.default.ADAPTATION_SET,Rt,[new io(Xn.default.REPRESENTATION,Rt,[new io(Xn.default.SUB_REPRESENTATION,Rt)])])}},so=class extends io{constructor(){const Rt=[Xn.default.SEGMENT_BASE,Xn.default.SEGMENT_TEMPLATE,Xn.default.SEGMENT_LIST];super(Xn.default.PERIOD,Rt,[new io(Xn.default.ADAPTATION_SET,Rt,[new io(Xn.default.REPRESENTATION,Rt)])])}};const co=[Xn.default.ACCESSIBILITY,Xn.default.ADAPTATION_SET,Xn.default.ADD,Xn.default.AUDIO_CHANNEL_CONFIGURATION,Xn.default.BASE_URL,Xn.default.CONTENT_COMPONENT,Xn.default.CONTENT_PROTECTION,Xn.default.CONTENT_STEERING,Xn.default.ESSENTIAL_PROPERTY,Xn.default.EVENT,Xn.default.EVENT_STREAM,Xn.default.INBAND_EVENT_STREAM,Xn.default.LABEL,Xn.default.LOCATION,Xn.default.METRICS,Xn.default.PATCH_LOCATION,Xn.default.PERIOD,Xn.default.PRESELECTION,Xn.default.PRODUCER_REFERENCE_TIME,Xn.default.REMOVE,Xn.default.REPLACE,Xn.default.REPORTING,Xn.default.REPRESENTATION,Xn.default.ROLE,Xn.default.S,Xn.default.SEGMENT_SEQUENCE_PROPERTIES,Xn.default.SEGMENT_URL,Xn.default.SERVICE_DESCRIPTION,Xn.default.SUPPLEMENTAL_PROPERTY,Xn.default.UTC_TIMING];function Ti(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.debug;let ne,re,ie,le;function o(Rt){try{const Ot=function(Rt){const Ot=function(Rt,Ot={}){let ee=Ot.pos||0;const ne=Rt.length,re=!!Ot.keepComments,ie=!!Ot.keepWhitespace,le="<".charCodeAt(0),oe=">".charCodeAt(0),ue="-".charCodeAt(0),ce="/".charCodeAt(0),fe="?".charCodeAt(0),ge="!".charCodeAt(0),he="'".charCodeAt(0),pe='"'.charCodeAt(0),be="[".charCodeAt(0),ye="]".charCodeAt(0);function E(Rt,Ot="#text"){return{nodeName:Ot,nodeValue:Rt,attributes:{},childNodes:[]}}function T(Ot=""){const he=[];for(;Rt[ee];)if(Rt.charCodeAt(ee)==le){if(Rt.charCodeAt(ee+1)===ce){const ne=ee+2;if(ee=Rt.indexOf(">",ee),!Rt.startsWith(Ot,ne)){const Ot=Rt.substring(0,ee).split("\n");throw new Error("Unexpected close tag\nLine: "+(Ot.length-1)+"\nColumn: "+(Ot[Ot.length-1].length+1)+"\nChar: "+Rt[ee])}return ee+1&&(ee+=1),he}if(Rt.charCodeAt(ee+1)===fe){ee=Rt.indexOf(">",ee),ee++;continue}if(Rt.charCodeAt(ee+1)===ge){if(Rt.charCodeAt(ee+2)==ue){const Ot=ee;for(;-1!==ee&&(Rt.charCodeAt(ee)!==oe||Rt.charCodeAt(ee-1)!=ue||Rt.charCodeAt(ee-2)!=ue||-1==ee);)ee=Rt.indexOf(">",ee+1);-1===ee&&(ee=ne),re&&he.push(E(Rt.substring(Ot,ee+1),"#comment"))}else{if(Rt.charCodeAt(ee+2)===be&&Rt.charCodeAt(ee+8)===be&&Rt.startsWith("CDATA",ee+3)){const Ot=Rt.indexOf("]]>",ee);-1==Ot?(he.push(E(Rt.substr(ee+9),"#cdata")),ee=ne):(he.push(E(Rt.substring(ee+9,Ot),"#cdata")),ee=Ot+3);continue}{const Ot=ee+1;ee+=2;let ne=!1;for(;(Rt.charCodeAt(ee)!==oe||!0===ne)&&Rt[ee];)Rt.charCodeAt(ee)===be?ne=!0:!0===ne&&Rt.charCodeAt(ee)===ye&&(ne=!1),ee++;he.push(E(Rt.substring(Ot,ee),"#doctype"))}}ee++;continue}const ie=S();he.push(ie)}else{const Rt=_();if(ie)Rt.length>0&&he.push(E(Rt));else{const Ot=Rt.trim();Ot.length>0&&he.push(E(Ot))}ee++}return he}function _(){const Ot=ee;return ee=Rt.indexOf("<",ee)-1,-2===ee&&(ee=ne),ve(Rt.slice(Ot,ee+1))}function v(){const Ot=ee;for(;-1==="\r\n\t>/= ".indexOf(Rt[ee])&&Rt[ee];)ee++;return Rt.slice(Ot,ee)}function S(){ee++;const Ot=v();let ne=Ot,re=null;const ie=Ot.indexOf(":");-1!==ie&&(re=Ot.slice(0,ie),ne=Ot.slice(ie+1));const le=function(){const Ot={};for(;Rt.charCodeAt(ee)!==oe&&Rt[ee];){const ne=Rt.charCodeAt(ee);if(ne>64&&ne<91||ne>96&&ne<123){const ne=v();let re="",ie=Rt.charCodeAt(ee);for(;ie!==he&&ie!==pe;)ee++,ie=Rt.charCodeAt(ee);if(ie===he||ie===pe){if(re=w(),-1===ee)throw new Error("Missing closing quote")}else ee--;Ot[ne]=ve(re)}ee++}return Ot}();let ue=[];const fe=Rt.charCodeAt(ee-1);return ee++,fe!==ce&&(ue=T(Ot)),{nodeName:Ot,nodeValue:null,attributes:le,childNodes:ue,prefix:re,localName:ne}}function w(){const Ot=Rt[ee],ne=ee+1;return ee=Rt.indexOf(Ot,ne),Rt.slice(ne,ee)}return{nodeName:"#document",nodeValue:null,childNodes:T(""),attributes:{}}}(Rt),ee=Ot.childNodes.find((Rt=>
1"MPD"===Rt.nodeName||"Patch"===Rt.nodeName))||Ot.childNodes[0];return function t(Rt){-1!==Rt.nodeName.indexOf(":")&&(Rt.__prefix=Rt.prefix,Rt.nodeName=Rt.localName);const{childNodes:Ot,attributes:ee,nodeName:ne}=Rt;Rt.tagName=ne;for(let Ot in ee){let re=ee[Ot];if("S"===ne)re=parseInt(re);else for(let Rt=0,ee=ie.length;Rt<ee;Rt++){const ee=ie[Rt];if(ee.test(ne,Ot,re)){re=ee.converter(re);break}}Rt[Ot]=re}const re=Ot?.length;for(let ee=0;ee<re;ee++){const ne=Ot[ee];if("#text"===ne.nodeName){Rt.__text=ne.nodeValue;continue}t(ne);const{nodeName:re}=ne;Array.isArray(Rt[re])?Rt[re].push(ne):-1!==co.indexOf(re)?(Rt[re]||(Rt[re]=[]),Rt[re].push(ne)):Rt[re]=ne}Rt.__children=Ot}(ee),ee}(Rt);return{[Ot.tagName]:Ot}}catch(Rt){return null}}return ne={getIron:function(){return le},parseXml:o,parse:function(Rt){let Ot;const ee=window.performance.now();if(Ot=o(Rt),!Ot)throw new Error("failed to parse the manifest");Ot.Patch?(Ot=Ot.Patch,Ot.add&&Ot.add.forEach((Rt=>le.run(Rt))),Ot.replace&&Ot.replace.forEach((Rt=>le.run(Rt)))):(Ot=Ot.MPD,le.run(Ot));const ne=window.performance.now();return re.info("Parsing complete: "+(ne-ee).toPrecision(3)+"ms"),Ot.protocol="DASH",Ot}},re=ee.getLogger(ne),ie=[new Wl,new Xl,new no,new ao],le=Bl(Ot).create({adaptationset:new oo,period:new so}),ne}Ti.__dashjs_factory_name="DashParser";var go=ne.default.getClassFactory(Ti);function vi(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.debug,ne=Rt.settings,re=(0,ce.default)(Ot).getInstance(),ie=ha(Ot).getInstance();let le,oe,ue,he,pe,be=Rt.mssHandler,ye=Rt.errHandler;function p(Rt){re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:Rt.manifest})}return le={load:function(Rt,le=null,ce=null){const ge=new Date,ye=new Pl(Rt,_e.HTTPRequest.MPD_TYPE);le&&(ye.serviceLocation=le),ce&&(ye.queryParams=ce),ye.startDate||(ye.startDate=ge),re.trigger(fe.default.MANIFEST_LOADING_STARTED,{request:ye}),ue.load({request:ye,success:function(le,ue,ce){if(!he)return;let ge,ye,Ee;if(ce&&ce!==Rt?(ye=ie.parseBaseUrl(ce),ge=ce):(ie.isRelative(Rt)&&(Rt=ie.resolve(Rt,window.location.href)),ye=ie.parseBaseUrl(Rt)),"No Content"!=ue)if(null===pe&&(pe=function(Rt){let ne=null;return Rt.indexOf("SmoothStreamingMedia")>-1?(be&&(ne=be.createMssParser(),be.createMssFragmentProcessor(),be.registerEvents()),ne):Rt.indexOf("MPD")>-1||Rt.indexOf("Patch")>-1?go(Ot).create({debug:ee}):ne}(le)),null!==pe){he.setParser(pe);try{Ee=pe.parse(le)}catch(Ot){return void re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new jn.default(zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+`${Rt}`)})}if(Ee){if(Ee.url=ge||Rt,Ee.originalUrl||(Ee.originalUrl=Ee.url),ne&&ne.get().streaming.enableManifestDurationMismatchFix&&Ee.mediaPresentationDuration&&Ee.Period.length>1){const Rt=Ee.Period.reduce(((Rt,Ot)=>Rt+Ot.duration),0);!isNaN(Rt)&&Ee.mediaPresentationDuration>Rt&&(oe.warn("Media presentation duration greater than duration of all periods. Setting duration to total period duration"),Ee.mediaPresentationDuration=Rt)}Ee.baseUri=ye,Ee.loadedTime=new Date,he.resolveManifestOnLoad(Ee),re.trigger(fe.default.ORIGINAL_MANIFEST_LOADED,{originalManifest:le})}else re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new jn.default(zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+`${Rt}`)})}else re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new jn.default(zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+`${Rt}`)});else re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:null})},error:function(Ot,ee,ne){re.trigger(fe.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new jn.default(zn.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,zn.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+`${Rt}, ${ne}`)})}})},reset:function(){re.off(fe.default.XLINK_READY,p,le),be&&be.reset(),he&&(he.reset(),he=null),ue&&(ue.abort(),ue=null)}},oe=ee.getLogger(le),re.on(fe.default.XLINK_READY,p,le),ue=bi(Ot).create({errHandler:Rt.errHandler,dashMetrics:Rt.dashMetrics,mediaPlayerModel:Rt.mediaPlayerModel,urlUtils:ie,constants:ge.default,dashConstants:Xn.default,errors:zn,requestTimeout:Rt.settings.get().streaming.manifestRequestTimeout}),he=jl(Ot).create({errHandler:ye,dashMetrics:Rt.dashMetrics,mediaPlayerModel:Rt.mediaPlayerModel,settings:Rt.settings}),pe=null,le}vi.__dashjs_factory_name="ManifestLoader";var mo=ne.default.getClassFactory(vi);function wi(){let Rt,Ot,ee=this.context,ne=(0,ce.default)(ee).getInstance();return Rt={getValue:function(){return Ot},setValue:function(Rt){Ot=Rt,Rt&&ne.trigger(fe.default.MANIFEST_LOADED,{data:Rt})}},Rt}wi.__dashjs_factory_name="ManifestModel";var ho=ne.default.getSingletonFactory(wi);function ki(){const Rt=this.context,Ot=(0,oe.default)(Rt).getInstance();let ee,ne,re;return ee={select:function(Rt){if(!Rt||0===Rt.length)return null;let ee=null;return Ot.get().streaming.applyContentSteering&&(ee=function(Rt){const Ot=re.getCurrentSteeringResponseData();return Ot&&Ot.pathwayPriority&&Ot.pathwayPriority.length>0?function(Rt=[],Ot=[]){let ee=0,re=null;for(;ee<Rt.length;){const ie=Rt[ee],le=Ot.findIndex((Rt=>Rt.serviceLocation&&Rt.serviceLocation===ie));if(-1!==le&&!ne.contains(Ot[le].serviceLocation)){re=Ot[le];break}ee+=1}return re}(Ot.pathwayPriority,Rt):null}(Rt)),ee||(ee=function(Rt){return Rt[0]}(Rt)),ee},setConfig:function(Rt){Rt.blacklistController&&(ne=Rt.blacklistController),Rt.contentSteeringController&&(re=Rt.contentSteeringController)},reset:function(){ne.reset()}},ne=Ln(Rt).create({updateEventName:fe.default.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:fe.default.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD}),re=Ei(Rt).getInstance(),ee}ki.__dashjs_factory_name="LocationSelector";var po=ne.default.getClassFactory(ki);function Ri(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance(),ee=ha(Rt).getInstance();let ne,re,ie,oe,ue,pe,be,ye,Ee,_e,Se,we,Re,Ne,Ce;function S(){Re=NaN,ye=!1,pe=!0,be=!1,w()}function w(){null!==Ne&&(clearTimeout(Ne),Ne=null)}function I(Rt){w(),be||(isNaN(Rt)&&!isNaN(Re)&&(Rt=1e3*Re),isNaN(Rt)||(_e.debug("Refresh manifest in "+Rt+" milliseconds."),Ne=setTimeout(R,Rt)))}function k(Rt=!1){ye=!0;const Ot=we.getValue();let ie=Ot.url;ie&&(ie=Bn.default.removeQueryParameterFromUrl(ie,ge.default.CMCD_QUERY_KEY));let le=null;const oe=ne.getPatchLocation(Ot),ue=Ee.select(oe);let ce=null;if(ue&&!Rt)ie=ue.url,le=ue.serviceLocation,ce=ue.queryParams;else{const Rt=function(Rt){const Ot=ne.getLocation(Rt),ee=re.getSynthesizedLocationElements(Ot);return Ot.concat(ee)}(Ot),ee=Ee.select(Rt);ee&&(ie=ee.url,le=ee.serviceLocation,ce=ee.queryParams)}ee.isRelative(ie)&&(ie=ee.resolve(ie,Ot.url)),Se.load(ie,le,ce)}function A(Rt){if(Rt){if(ne.getIsPatch(Rt)){let Ot=Rt;Rt=we.getValue();let ee=ne.isPatchValid(Rt,Ot),re=ee;if(ee){let ee=ne.getPublishTime(Rt);ne.applyPatchToManifest(Rt,Ot);let ie=ne.getPublishTime(Rt);re=ee.getTime()!==ie.getTime()}
1if(!re)return _e.debug("Patch provided is invalid, performing full manifest refresh"),void k(!0);Rt.loadedTime=new Date}}else(Rt=we.getValue()).loadedTime=new Date;if(we.getValue()&&we.getValue().type===Xn.default.DYNAMIC&&Rt.type===Xn.default.STATIC)return Ot.trigger(fe.default.DYNAMIC_TO_STATIC),ye=!1,void(be=!0);we.setValue(Rt);const ee=new Date,re=(ee.getTime()-Rt.loadedTime.getTime())/1e3;Re=ne.getManifestUpdatePeriod(Rt,re),1e3*Re>2147483647&&(Re=2147483.647),Ot.trigger(fe.default.MANIFEST_UPDATED,{manifest:Rt}),_e.info("Manifest has been refreshed at "+ee+"["+ee.getTime()/1e3+"] "),pe||I()}function R(){pe||(ye?I(Ce.get().streaming.manifestUpdateRetryInterval):k())}function N(Rt){if(Rt.error)Rt.error.code===zn.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&oe.error(Rt.error);else{const Ot=Rt.manifest;!function(Rt){!function(Rt){const Ot=ie.getExternalSubtitles();if(!Ot||0===Ot.length)return;const ee=Rt&&Rt.Period?Rt.Period.length:0;Ot.forEach((Ot=>{if(null===Ot.periodId&&ee>1)_e.warn(`External subtitle with id ${Ot.id} has no periodId and the MPD contains more than one period. Unable to add the external subtitle as it is not clear which period shall be used.`);else if(1===ee)C(Rt.Period[0],Ot);else{const ee=Rt.Period.find((Rt=>Rt.id===Ot.periodId));ee?C(ee,Ot):_e.warn(`External subtitle with id ${Ot.id} has periodId ${Ot.periodId} but the MPD does not contain a period with that id. Unable to add the external subtitle.`)}}))}(Rt)}(Ot),A(Ot)}}function C(Rt,Ot){if(!Rt||!Rt.AdaptationSet)return Rt;Rt.AdaptationSet.push(Ot.serializeToMpdParserFormat())}function D(){pe=!1,I()}function x(){pe=!Ce.get().streaming.scheduling.scheduleWhilePaused,pe&&w()}function M(){ye=!1}return ue={getIsUpdating:function(){return ye},initialize:function(){S(),Ot.on(fe.default.STREAMS_COMPOSED,M,this),Ot.on(he.default.PLAYBACK_STARTED,D,this),Ot.on(he.default.PLAYBACK_PAUSED,x,this),Ot.on(fe.default.INTERNAL_MANIFEST_LOADED,N,this)},refreshManifest:k,reset:function(){Ot.off(he.default.PLAYBACK_STARTED,D,this),Ot.off(he.default.PLAYBACK_PAUSED,x,this),Ot.off(fe.default.STREAMS_COMPOSED,M,this),Ot.off(fe.default.INTERNAL_MANIFEST_LOADED,N,this),S()},setConfig:function(Rt){Rt&&(Rt.manifestModel&&(we=Rt.manifestModel),Rt.adapter&&(ne=Rt.adapter),Rt.manifestLoader&&(Se=Rt.manifestLoader),Rt.errHandler&&(oe=Rt.errHandler),Rt.locationSelector&&(Ee=Rt.locationSelector),Rt.settings&&(Ce=Rt.settings),Rt.contentSteeringController&&(re=Rt.contentSteeringController),Rt.customParametersModel&&(ie=Rt.customParametersModel))},setManifest:function(Rt){A(Rt)}},_e=(0,le.default)(Rt).getInstance().getLogger(ue),Ee=po(Rt).create(),ie=(0,ui.default)(Rt).getInstance(),ue}Ri.__dashjs_factory_name="ManifestUpdater";var yo=ne.default.getClassFactory(Ri);function Ci(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,ie,oe,ue,pe,be,ye,Ee,_e;function y(Rt){if(!(Rt&&Rt.currentRepresentation&&Rt.currentRepresentation.mediaInfo&&Rt.currentRepresentation.mediaInfo.type))return;const Ot=Rt.currentRepresentation.mediaInfo.type;pe[Ot]=Rt.currentRepresentation}function E(Rt,Ot){return Rt&&re[Ot]&&re[Ot][Rt]?re[Ot][Rt].list:[]}function T(Rt,Ot){return Rt&&re[Ot]&&re[Ot][Rt]?re[Ot][Rt].current:null}function _(Rt,ee={}){if(!Rt||!Rt.streamInfo)return;const ne=Rt.type,le=Rt.streamInfo.id,oe=T(ne,le);if(re[le]&&re[le][ne]&&(re[le][ne].current=Rt,re[le][ne].current&&(ne!==ge.default.TEXT&&!w(Rt,oe)||ne===ge.default.TEXT&&Rt.isFragmented)&&Ot.trigger(fe.default.CURRENT_TRACK_CHANGED,{oldMediaInfo:oe,newMediaInfo:Rt,switchMode:ie.get().streaming.trackSwitchMode[ne],options:ee},{streamId:le}),!ee.hasOwnProperty("noSettingsSave")||!ee.noSettingsSave)){let Ot=function(Rt){const Ot={lang:Rt.lang,viewpoint:Rt.viewpoint,roles:Rt.roles,accessibility:Rt.accessibility,audioChannelConfiguration:Rt.audioChannelConfiguration,codec:Rt.codec};return Ot.lang||Ot.viewpoint||Ot.role&&Ot.role.length>0||Ot.accessibility&&Ot.accessibility.length>0||Ot.audioChannelConfiguration&&Ot.audioChannelConfiguration.length>0?Ot:null}(Rt);if(!Ot||!re[le][ne].storeLastSettings)return;Ot.roles&&(Ot.role=Ot.roles[0],delete Ot.roles),Ot.accessibility&&(Ot.accessibility=Ot.accessibility[0]),Ot.audioChannelConfiguration&&(Ot.audioChannelConfiguration=Ot.audioChannelConfiguration[0]),ue[ne]=Ot,_e.setSavedMediaSettings(ne,Ot)}}function v(Rt,Ot){Rt&&Ot&&(oe[Rt]=Ot)}function S(Rt){return Rt?oe[Rt]:null}function w(Rt,Ot){if(!Rt&&!Ot)return!0;
1if(!Rt||!Ot)return!1;if(Rt.isPreselection!==Ot.isPreselection)return!1;const ee=Rt.id===Ot.id,ne=JSON.stringify(Rt.viewpoint)===JSON.stringify(Ot.viewpoint),re=Rt.lang===Ot.lang,ie=Rt.codec===Ot.codec,le=JSON.stringify(Rt.roles)===JSON.stringify(Ot.roles),oe=JSON.stringify(Rt.accessibility)===JSON.stringify(Ot.accessibility),ue=JSON.stringify(Rt.audioChannelConfiguration)===JSON.stringify(Ot.audioChannelConfiguration);return ee&&ie&&ne&&re&&le&&oe&&ue}function I(){re={},ue={},pe={},oe={audio:null,video:null,text:null},Ot.off(he.default.REPRESENTATION_SWITCH,y,ee)}function k(Rt,Ot,ee){let re=[];return Rt.forEach((function(Rt){Ot(ee,Rt)&&re.push(Rt)})),0!==re.length||Ot===D&&ie.get().streaming.assumeDefaultRoleAsMain&&G(ee.role,{schemeIdUri:ge.default.DASH_ROLE_SCHEME_ID,value:Xn.default.MAIN})&&(ne.info("no track with Role set to main - assuming main as default and searching again"),re=k(Rt,x,null),0!==re.length)?re:(ne.info("Filter-Function ("+Ot.name+") resulted in no tracks; setting ignored"),Rt)}function A(Rt,Ot){try{return!Rt.lang||Rt.lang instanceof RegExp?Ot.lang.match(Rt.lang):""!==Ot.lang&&ol(Ot.lang,gr(Rt.lang)).length>0}catch(Rt){return!1}}function R(Rt,Ot){return void 0===Rt.index||null===Rt.index||Ot.index===Rt.index}function N(Rt,Ot){return void 0===Rt.id||null===Rt.id||Ot.id===Rt.id}function C(Rt,Ot){return!Rt.viewpoint||!!Ot.viewpoint.filter((function(Ot){return G(Ot,Rt.viewpoint)}))[0]}function D(Rt,Ot,ee=!1){return!!Ot.roles&&(!Rt.role||!!Ot.roles.filter((function(Ot){return G(Ot,Rt.role)}))[0]||Ot.type===ge.default.AUDIO&&ee)}function x(Rt,Ot){return!Ot.roles||0===Ot.roles.length}function M(Rt,Ot){let ee;return ee=Rt.accessibility?!!Ot.accessibility.filter((function(Ot){return G(Ot,Rt.accessibility)}))[0]:!Ot.accessibility.length,ee}function P(Rt,Ot){return!Rt.audioChannelConfiguration||!!Ot.audioChannelConfiguration.filter((function(Ot){return G(Ot,Rt.audioChannelConfiguration)}))[0]}function O(Rt,Ot){return!Rt.codec||Rt.codec===Ot.codec}function z(Rt){let Ot=0,ee=[];return Rt.forEach((Rt=>{isNaN(Rt.selectionPriority)||(Rt.selectionPriority>Ot?(Ot=Rt.selectionPriority,ee=[Rt]):Rt.selectionPriority===Ot&&ee.push(Rt))})),ee}function L(Rt){let Ot,ee=0,ne=[];return Rt.forEach((function(Rt){Ot=Math.max.apply(Math,Rt.bitrateList.map((function(Rt){return Rt.bandwidth}))),Ot>ee?(ee=Ot,ne=[Rt]):Ot===ee&&ne.push(Rt)})),ne}function F(Rt){return Rt[0]&&Rt[0].type===ge.default.VIDEO?function(Rt){let Ot,ee=1/0,ne=[];return Rt.forEach((function(Rt){const re=Rt.bitrateList.reduce((function(Rt,Ot){const ee=Math.max(1,Ot.width*Ot.height);return Rt+Ot.bandwidth/ee}),0);Ot=re/Rt.bitrateList.length,Ot<ee?(ee=Ot,ne=[Rt]):Ot===ee&&ne.push(Rt)})),ne}(Rt):Rt[0]&&Rt[0].type===ge.default.AUDIO?function(Rt){let Ot=1/0,ee=[];return Rt.forEach((function(Rt){let ne=Rt.audioChannelConfiguration.reduce((function(Rt,Ot){return Rt+(Ca(Ot)||0)}),0)/Rt.audioChannelConfiguration.length;Rt.hasOwnProperty("supplementalProperties")&&Rt.supplementalProperties.some((Rt=>"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"===Rt.schemeIdUri&&"JOC"===Rt.value))&&(ne=16),ne||(ne=1);let re=Rt.bitrateList.reduce((function(Rt,Ot){return Rt+Ot.bandwidth/ne}),0)/Rt.bitrateList.length;re<Ot?(Ot=re,ee=[Rt]):re===Ot&&ee.push(Rt)})),ee}(Rt):Rt}function U(Rt){let Ot,ee=0,ne=[];return Rt.forEach((function(Rt){Ot=Rt.representationCount,Ot>ee?(ee=Ot,ne=[Rt]):Ot===ee&&ne.push(Rt)})),ne}function j(Rt,Ot){if(Rt===ge.default.TEXT)return function(Rt){if(!Rt||0===Rt.length)return null;const Ot=Rt.filter((Rt=>!(Rt&&Rt.roles&&Rt.roles.length>0)||Rt.roles.every((Rt=>Rt.schemeIdUri!==ge.default.DASH_ROLE_SCHEME_ID||Rt.value!==Xn.default.FORCED_SUBTITLE))));return Ot.length>0?Ot[0]:Rt[0]}(Ot);let ee;const re=be.getCustomInitialTrackSelectionFunction();if(ee=function(Rt){try{let Ot;return Ot=function(Rt){try{const Ot=Rt.filter((Rt=>{const Ot=Rt.type;return Rt.bitrateList.some((Rt=>{const ee=ye.getAbrBitrateParameter("maxBitrate",Ot),ne=ye.getAbrBitrateParameter("minBitrate",Ot);return!(ee>-1&&Rt.bandwidth>1e3*ee||ne>-1&&Rt.bandwidth<1e3*ne)}))}));return Ot.length>0?Ot:Rt}catch(Ot){return ne.error(Ot),Rt}}(Rt),Ot=function(Rt){try{if(!ie.get().streaming.abr.limitBitrateByPortal)return Rt;const{elementWidth:Ot}=Ee.getVideoElementSize(),ee=Rt.filter((Rt=>Rt.type!==ge.default.VIDEO||Rt.bitrateList.some((Rt=>Rt.width<=Ot))));return ee.length>0?ee:Rt}catch(Ot){return ne.error(Ot),Rt}}(Ot),Ot}catch(Ot){return ne.error(Ot),Rt}}(Ot),re&&"function"==typeof re)ee=re(ee);else if(pe[Rt])ee=function(Rt,Ot){if(!Rt||0===Rt.length||!Ot||!pe[Ot])return Rt;const ee=pe[Ot].bandwidth;if(!ee||isNaN(ee))return Rt;let ne={min:NaN,track:null};return Rt.forEach((Rt=>{Rt.bitrateList.forEach((Ot=>{const re=Math.abs(Ot.bandwidth-ee);(isNaN(ne.min)||re<ne.min)&&(ne.min=re,ne.track=Rt)}))}
1)),ne.track?[ne.track]:Rt}(ee,Rt);else if(ie.get().streaming.ignoreSelectionPriority||(ne.info("Trying to find track with highest selectionPriority"),ee=function(Rt){return z(Rt)}(ee)),ee.length>1&&ie.get().streaming.prioritizeRoleMain&&(ne.info("Trying to find a main track"),ee=k(ee,D,{role:{schemeIdUri:ge.default.DASH_ROLE_SCHEME_ID,value:Xn.default.MAIN}})),ee.length>1){ne.info("Selecting track based on selectionModeForInitialTrack");let Rt=ie.get().streaming.selectionModeForInitialTrack;switch(Rt){case ge.default.TRACK_SELECTION_MODE_HIGHEST_BITRATE:ee=function(Rt){let Ot=L(Rt);return Ot.length>1&&(Ot=U(Ot)),Ot}(ee);break;case ge.default.TRACK_SELECTION_MODE_FIRST_TRACK:ee=q(ee);break;case ge.default.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY:ee=B(ee);break;case ge.default.TRACK_SELECTION_MODE_WIDEST_RANGE:ee=function(Rt){let Ot=U(Rt);return Ot.length>1&&(Ot=L(Rt)),Ot}(ee);break;case ge.default.TRACK_SELECTION_MODE_LOWEST_STARTUP_DELAY:ee=function(Rt){let Ot=Rt.filter((Rt=>!(!Rt.segmentSequenceProperties||0===Rt.segmentSequenceProperties.length)&&Rt.segmentSequenceProperties.some((Rt=>1===Rt.cadence&&(0===Rt.sapType||1===Rt.sapType)))));return B(Ot.length>0?Ot:Rt)}(ee);break;default:ne.warn(`Track selection mode ${Rt} is not supported. Falling back to TRACK_SELECTION_MODE_FIRST_TRACK`),ee=q(ee)}}return ee.length>0?ee[0]:Ot[0]}function q(Rt){return Rt[0]}function B(Rt){let Ot=F(Rt);return Ot.length>1&&(Ot=L(Ot)),Ot}function G(Rt,Ot){return!(!Rt||!Ot)&&JSON.stringify({schemeIdUri:Rt.schemeIdUri,value:Rt.value})===JSON.stringify({schemeIdUri:Ot.schemeIdUri,value:Ot.value})}return ee={addTrack:function(Rt){if(!Rt)return;ne.info("addTrack with track.codec='"+Rt.codec+"', track.type='"+Rt.type+"'");const Ot=Rt.type;if((ee=Ot)!==ge.default.AUDIO&&ee!==ge.default.VIDEO&&ee!==ge.default.TEXT&&ee!==ge.default.IMAGE)return;var ee;let le=Rt.streamInfo.id;re[le]||(re[le]=function(){const Rt=ie.get().streaming.saveLastMediaSettingsForCurrentStreamingSession;return{audio:{list:[],storeLastSettings:Rt,current:null},video:{list:[],storeLastSettings:Rt,current:null},text:{list:[],storeLastSettings:Rt,current:null},image:{list:[],storeLastSettings:Rt,current:null}}}());const oe=re[le][Ot].list;for(let Ot=0,ee=oe.length;Ot<ee;++Ot)if(w(oe[Ot],Rt))return;oe.push(Rt)},areTracksEqual:w,clearDataForStream:function(Rt){re[Rt]&&delete re[Rt]},getCurrentTrackFor:T,getInitialSettings:S,getTracksFor:E,getTracksWithHighestSelectionPriority:z,getTracksWithHighestBitrate:L,getTracksWithHighestEfficiency:F,getTracksWithWidestRange:U,initialize:function(){Ot.on(he.default.REPRESENTATION_SWITCH,y,ee)},isCurrentTrack:function(Rt){if(!Rt)return!1;const Ot=Rt.type,ee=Rt.streamInfo.id;return re[ee]&&re[ee][Ot]&&w(re[ee][Ot].current,Rt)},matchSettings:function(Rt,Ot,ee=!1){try{let ne=!1;if(Rt.lang){if(Rt.lang instanceof RegExp)ne=Ot.lang.match(Rt.lang);else if(""!==Ot.lang){const ee=gr(Rt.lang);ee&&(ne=ol(Ot.lang,ee).length>0)}}else ne=!0;const re=void 0===Rt.index||null===Rt.index||Ot.index===Rt.index,ie=!Rt.viewpoint||!!Ot.viewpoint.filter((function(Ot){return G(Ot,Rt.viewpoint)}))[0],le=!Rt.role||!!Ot.roles.filter((function(Ot){return G(Ot,Rt.role)}))[0];let oe=!Rt.accessibility||!!Ot.accessibility.filter((function(Ot){return G(Ot,Rt.accessibility)}))[0],ue=!Rt.audioChannelConfiguration||!!Ot.audioChannelConfiguration.filter((function(Ot){return G(Ot,Rt.audioChannelConfiguration)}))[0];return ne&&re&&ie&&(le||Ot.type===ge.default.AUDIO&&ee)&&oe&&ue}catch(Rt){return!1}},matchSettingsAccessibility:M,matchSettingsAudioChannelConfig:P,matchSettingsIndex:R,matchSettingsLang:A,matchSettingsRole:D,matchSettingsViewPoint:C,reset:I,saveTextSettingsDisabled:function(){_e.setSavedMediaSettings(ge.default.TEXT,null)},selectInitialTrack:j,setConfig:function(Rt){Rt&&(Rt.domStorage&&(_e=Rt.domStorage),Rt.settings&&(ie=Rt.settings),Rt.customParametersModel&&(be=Rt.customParametersModel),Rt.mediaPlayerModel&&(ye=Rt.mediaPlayerModel),Rt.videoModel&&(Ee=Rt.videoModel))},setInitialMediaSettingsForType:function(Rt,Ot){let ee=ue[Rt]||S(Rt);const re=E(Rt,Ot.id);let le=[];ee&&0!==Object.keys(ee).length||(ee=_e.getSavedMediaSettings(Rt),ee&&delete ee.codec,v(Rt,ee)),re&&0!==re.length&&(le=ie.get().streaming.includePreselectionsForInitialTrackSelection?Array.from(re):re.filter((Rt=>!Rt.isPreselection)),ee&&(ne.info("Filtering "+le.length+" "+Rt+" tracks based on settings"),le=k(le,N,ee),le=k(le,A,ee),le=k(le,R,ee),le=k(le,C,ee),Rt===ge.default.AUDIO&&ue[Rt]||(le=k(le,D,ee)),le=k(le,M,ee),le=k(le,P,ee),le=k(le,O,ee),ne.info("Filtering "+Rt+" tracks ended, found "+le.length+" matching track(s).")),le.length>
11?_(j(Rt,le)):_(le[0]))},setInitialSettings:v,setTrack:_},ne=(0,le.default)(Rt).getInstance().getLogger(ee),I(),ee}Ci.__dashjs_factory_name="MediaController";const Eo=ne.default.getSingletonFactory(Ci);ne.default.updateSingletonFactory(Ci.__dashjs_factory_name,Eo);var To=Eo;function Mi(){let Rt,Ot,ee,ne;const re=this.context,ie=(0,oe.default)(re).getInstance();function l(Rt,ee){return isNaN(Rt)?0:Rt>0?(ee&&Ot.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):Rt<-.5?(ee&&Ot.warn("Supplied minimum playback rate is out of range and will be limited to -0.5: -50% playback speed."),-.5):Rt}function s(Rt,ee){return isNaN(Rt)?0:Rt<0?(ee&&Ot.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):Rt>1?(ee&&Ot.warn("Supplied maximum playback rate is out of range and will be limited to 1: 200% playback speed."),1):Rt}function d(){const Rt=c(),Ot=ee.getLiveDelay();return!isNaN(Ot)&&Ot>0?Math.min(Rt,Ot):Rt}function c(){return ie.get().streaming.buffer.bufferTimeDefault>0?ie.get().streaming.buffer.bufferTimeDefault:f()?20:12}function f(){return null!==ie.get().streaming.buffer.fastSwitchEnabled?ie.get().streaming.buffer.fastSwitchEnabled:!ee.getLowLatencyModeEnabled()}return Rt={getAbrBitrateParameter:function(Rt,Ot){try{const ee=ie.get().streaming.abr[Rt][Ot];if(!isNaN(ee)&&-1!==ee)return ee;const re=ne.getServiceDescriptionSettings();return re&&re[Rt]&&!isNaN(re[Rt][Ot])?re[Rt][Ot]:-1}catch(Rt){return-1}},getBufferTimeDefault:d,getBufferTimeDefaultUnadjusted:c,getCatchupMaxDrift:function(){if(!isNaN(ie.get().streaming.liveCatchup.maxDrift)&&ie.get().streaming.liveCatchup.maxDrift>=0)return ie.get().streaming.liveCatchup.maxDrift;const Rt=ne.getServiceDescriptionSettings();return Rt&&Rt.liveCatchup&&!isNaN(Rt.liveCatchup.maxDrift)&&Rt.liveCatchup.maxDrift>=0?Rt.liveCatchup.maxDrift:12},getCatchupModeEnabled:function(){return null!==ie.get().streaming.liveCatchup.enabled?ie.get().streaming.liveCatchup.enabled:ee.getInitialCatchupModeActivated()},getCatchupPlaybackRates:function(Rt){const Ot=ie.get().streaming.liveCatchup.playbackRate;if(!isNaN(Ot.min)||!isNaN(Ot.max))return{min:l(Ot.min,Rt),max:s(Ot.max,Rt)};const ee=ne.getServiceDescriptionSettings();if(ee&&ee.liveCatchup&&(!isNaN(ee.liveCatchup.playbackRate.min)||!isNaN(ee.liveCatchup.playbackRate.max))){const Ot=ee.liveCatchup.playbackRate;return{min:l(Ot.min,Rt),max:s(Ot.max,Rt)}}return{min:-.5,max:.5}},getFastSwitchEnabled:f,getInitialBufferLevel:function(){const Rt=ie.get().streaming.buffer.initialBufferLevel;return isNaN(Rt)||Rt<0?0:Math.min(d(),Rt)},getRetryAttemptsForType:function(Rt){const Ot=isNaN(ie.get().streaming.retryAttempts.lowLatencyMultiplyFactor)?5:ie.get().streaming.retryAttempts.lowLatencyMultiplyFactor;return ee.getLowLatencyModeEnabled()?ie.get().streaming.retryAttempts[Rt]*Ot:ie.get().streaming.retryAttempts[Rt]},getRetryIntervalsForType:function(Rt){const Ot=isNaN(ie.get().streaming.retryIntervals.lowLatencyReductionFactor)?10:ie.get().streaming.retryIntervals.lowLatencyReductionFactor;return ee.getLowLatencyModeEnabled()?ie.get().streaming.retryIntervals[Rt]/Ot:ie.get().streaming.retryIntervals[Rt]},getScheduleTimeout:function(){return ee.getLowLatencyModeEnabled()?ie.get().streaming.scheduling.lowLatencyTimeout:ie.get().streaming.scheduling.defaultTimeout},reset:function(){},setConfig:function(Rt){Rt.playbackController&&(ee=Rt.playbackController),Rt.serviceDescriptionController&&(ne=Rt.serviceDescriptionController)}},Ot=(0,le.default)(re).getInstance().getLogger(Rt),Rt}Mi.__dashjs_factory_name="MediaPlayerModel";var vo=ne.default.getSingletonFactory(Mi);function Oi(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,oe,ue,pe,be,ye,Ee,_e,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe;function x(){z(),Ce=!1,_e=0,Ne=0,ne=0,Re=!1,we=!1,oe=!1,xe=NaN,Ee=NaN,je&&(Ot.off(fe.default.DATA_UPDATE_COMPLETED,Q,ue),Ot.off(fe.default.MANIFEST_UPDATED,Et,ue),Ot.off(fe.default.STREAMS_COMPOSED,Tt,ue),Ot.off(he.default.PLAYBACK_ENDED,gt,ue),Ot.off(he.default.STREAM_INITIALIZING,bt,ue),Ot.off(he.default.REPRESENTATION_SWITCH,yt,ue),Ot.off(he.default.BUFFER_LEVEL_STATE_CHANGED,J,ue),$(),je.removeEventListener("canplay",X),je.removeEventListener("canplaythrough",Z),je.removeEventListener("ended",ct),je.removeEventListener("error",mt),je.removeEventListener("loadeddata",dt),je.removeEventListener("loadedmetadata",ut),je.removeEventListener("pause",at),je.removeEventListener("play",tt),je.removeEventListener("playing",nt),je.removeEventListener("progress",ot),je.removeEventListener("ratechange",st),je.removeEventListener("seeked",it),je.removeEventListener("seeking",rt),je.removeEventListener("stalled",pt),je.removeEventListener("timeupdate",lt),je.removeEventListener("volumechange",ft),je.removeEventListener("waiting",et)),qe=null,je=null,Fe=null,be=null}function M(Rt=null){return parseFloat((P(Rt)-j()).toFixed(5))}function P(Rt){const Ot=Rt||Fe;return Ot.start+Ot.duration}function O(Rt=!1){Fe&&je&&je.getElement()?(Rt&&be&&U(j()),je.play()):Ce=!0}function z(){Fe&&je&&je.pause()}function L(Rt,Ot=!1,ee=!1,ne=!1){Fe&&je&&je.getElement()&&Rt!==(isNaN(xe)?je.getTime():xe)&&(pe=!0===ee,pe||(xe=Rt),Se.info("Requesting seek to time: "+Rt+(pe?" (internal)":"")),be&&ne&&U(Rt),je.setCurrentTime(Rt,Ot))}function F(){if(!Fe||!je||!be)return;const Rt=Pe&&Pe.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO,Ot=re.getCurrentDVRInfo(Rt);return Ot&&Ot.range?Ot.range.end:0}function U(Rt){const Ot=new Date(Ue.getClientReferenceTime()),ne=ee.getRegularPeriods()[0],re=Ue.calcPresentationTimeFromWallTime(Ot,ne);_e=re-Rt}function j(){return Fe&&je?je.getTime():null}function q(){return Fe&&je?je.isPaused():null}function B(){return Fe&&je?je.isSeeking():null}function G(){return Fe&&je?je.isStalled():null}function H(){return Fe&&je?je.getPlaybackRate():null}function Y(){return Fe&&je?je.getEnded():null}function V(){return be}function K(Rt=null){if(q()||!be||0===je.getReadyState()||B()||Re)return;Rt||(Rt=Pe.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO);const Ot=j(),ee=function(Rt,Ot){const ee=re.getCurrentDVRInfo(Ot),ne=ee?ee.range:null;let ie;return ne?(ie=Rt>ne.end?Math.max(ne.end-_e,ne.start):Rt>0&&Rt+.25<ne.start&&Math.abs(Rt-ne.start)<31536e4?we?Math.max(ne.end-_e,ne.start):ne.start:Rt,ie):NaN}(Ot,Rt);!isNaN(ee)&&ee!==Ot&&!B()&&(G()||De||1===je.getReadyState())&&(Se.debug(`Upd
1ateCurrentTime: Seek to actual time: ${ee} from currentTime: ${Ot}`),L(ee,!1,!1))}function W(){null===qe&&(qe=setInterval((()=>{!function(){if(Ot.trigger(fe.default.WALLCLOCK_TIME_UPDATED,{isDynamic:be,time:new Date}),V()){const Rt=Date.now();(isNaN(Ee)||Rt>Ee+Oe.get().streaming.liveUpdateTimeThresholdInMilliseconds)&&(Pe.addDVRMetric(),q()?function(){const Rt=Date.now();(!ye||Rt>ye+500)&&(ye=Rt,lt())}():K(),Ee=Rt)}}()}),Oe.get().streaming.wallclockTimeUpdateInterval))}function $(){clearInterval(qe),qe=null}function Q(Rt){const Ot=Rt.currentRepresentation,ee=Ot?Ot.mediaInfo.streamInfo:null;null!==ee&&Fe.id===ee.id&&(Fe=ee)}function X(){Ot.trigger(fe.default.CAN_PLAY)}function Z(){Ot.trigger(fe.default.CAN_PLAY_THROUGH)}function J(Rt){Rt.streamId===Pe.getActiveStreamInfo().id&&(De=Rt.state===ie.BUFFER_EMPTY,Oe.get().streaming.buffer.setStallState&&je.setStallState(Rt.mediaType,Rt.state===ie.BUFFER_EMPTY))}function tt(){Se.info("Native video element event: play"),K(),W(),Ot.trigger(fe.default.PLAYBACK_STARTED,{startTime:j()})}function et(){Se.info("Native video element event: waiting"),Ot.trigger(fe.default.PLAYBACK_WAITING,{playingTime:j()})}function nt(){Se.info("Native video element event: playing"),pe=!1,Ot.trigger(fe.default.PLAYBACK_PLAYING,{playingTime:j()})}function at(){Se.info("Native video element event: pause"),Ot.trigger(fe.default.PLAYBACK_PAUSED,{ended:Y()})}function rt(){if(pe)return;let Rt=j();isNaN(xe)||xe===Rt||(Rt=xe),xe=NaN,Se.info("Seeking to: "+Rt),W(),Ot.trigger(fe.default.PLAYBACK_SEEKING,{seekTime:Rt,streamId:Fe.id})}function it(){Se.info("Native video element event: seeked"),pe=!1,Ot.trigger(fe.default.PLAYBACK_SEEKED,{streamId:Fe.id})}function lt(){Fe&&Ot.trigger(fe.default.PLAYBACK_TIME_UPDATED,{timeToEnd:M(),time:j(),streamId:Fe.id})}function ot(){Ot.trigger(fe.default.PLAYBACK_PROGRESS,{streamId:Fe.id})}function st(){const Rt=H();Se.info("Native video element event: ratechange: ",Rt),Ot.trigger(fe.default.PLAYBACK_RATE_CHANGED,{playbackRate:Rt})}function ut(){Se.info("Native video element event: loadedmetadata"),Ot.trigger(fe.default.PLAYBACK_METADATA_LOADED),W()}function dt(){Se.info("Native video element event: loadeddata"),Ot.trigger(fe.default.PLAYBACK_LOADED_DATA)}function ct(){Se.info("Native video element event: ended"),z(),$();const Rt=Pe?Pe.getActiveStreamInfo():null;Rt&&Ot.trigger(fe.default.PLAYBACK_ENDED,{isLast:Rt.isLast})}function ft(){Ot.trigger(fe.default.PLAYBACK_VOLUME_CHANGED)}function gt(Rt){if(qe&&Rt.isLast){Se.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended");const Ot=Rt.seekTime?Rt.seekTime:P();je.setCurrentTime(Ot),z(),$()}}function mt(Rt){const ee=Rt.target||Rt.srcElement;Ot.trigger(fe.default.PLAYBACK_ERROR,{error:ee.error})}function ht(){be=!1}function pt(Rt){Ot.trigger(fe.default.PLAYBACK_STALLED,{e:Rt})}function bt(Rt){var Ot;(Ot=Rt.mediaInfo)&&Ot.supplementalProperties&&Ot.supplementalProperties.find((Rt=>Rt.schemeIdUri===ge.default.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME))&&(Se.debug("Low Latency critical SupplementalProperty set: Enabling low Latency"),we=!0)}function yt(Rt){const Ot=Pe.getActiveStreamInfo();Rt&&Ot&&Rt.currentRepresentation&&Rt.streamId&&Rt.streamId===Ot.id&&Rt.mediaType&&(Rt.mediaType===ge.default.VIDEO||Rt.mediaType===ge.default.AUDIO)&&(we=!1===Rt.currentRepresentation.availabilityTimeComplete,we&&!oe&&(oe=!0))}function Et(){Re=!0}function Tt(){Re=!1}return ue={computeAndSetLiveDelay:function(Rt,Ot){let re,ie,le;const oe=!isNaN(Rt)&&isFinite(Rt)?Rt:NaN;let ue=ee.getSuggestedPresentationDelay();const ce=Me.getServiceDescriptionSettings();return re=isNaN(Oe.get().streaming.delay.liveDelay)?null===Oe.get().streaming.delay.liveDelayFragmentCount||isNaN(Oe.get().streaming.delay.liveDelayFragmentCount)||isNaN(oe)?ce&&!isNaN(ce.liveDelay)&&ce.liveDelay>0?ce.liveDelay:!0===Oe.get().streaming.delay.useSuggestedPresentationDelay&&null!==ue&&!isNaN(ue)&&ue>0?ue:isNaN(oe)?Ot&&!isNaN(Ot.minBufferTime)?4*Ot.minBufferTime:4*Fe.manifestInfo.minBufferTime:4*oe:oe*Oe.get().streaming.delay.liveDelayFragmentCount:Oe.get().streaming.delay.liveDelay,le=ee.getAvailabilityStartTime(),null!==le&&(ne=le),ie=Ot&&Ot.dvrWindowSize>0?Math.min(re,Ot.dvrWindowSize):re,_e=ie,Ne=ie,ie},getAvailabilityStartTime:function(){return ne},getBufferLevel:function(Rt=null){let Ot=null;
1return Pe.getActiveStreamProcessors().forEach((ee=>{if(!Rt||0===Rt.length||-1===Rt.indexOf(ee.getType())){const Rt=ee.getBufferLevel();Ot=null===Ot?Rt:Math.min(Ot,Rt)}})),Ot},getCurrentLiveLatency:function(){if(!be||isNaN(ne))return NaN;let Rt=j();if(isNaN(Rt)||0===Rt)return 0;const Ot=(new Date).getTime()+1e3*Ue.getClientTimeOffset();return Math.max(((Ot-ne-1e3*Rt)/1e3).toFixed(3),0)},getEnded:Y,getInitialCatchupModeActivated:function(){return oe},getIsDynamic:V,getIsManifestUpdateInProgress:function(){return Re},getLiveDelay:function(){return _e},getLowLatencyModeEnabled:function(){return we},getOriginalLiveDelay:function(){return Ne},getPlaybackRate:H,getPlaybackStalled:function(){return De},getPlayedRanges:function(){return Fe&&je?je.getPlayedRanges():null},getStreamController:function(){return Pe},getStreamEndTime:P,getTime:j,getTimeToStreamEnd:M,initialize:function(Rt,ee){Fe=Rt,!0!==ee&&(je.addEventListener("canplay",X),je.addEventListener("canplaythrough",Z),je.addEventListener("ended",ct),je.addEventListener("error",mt),je.addEventListener("loadeddata",dt),je.addEventListener("loadedmetadata",ut),je.addEventListener("pause",at),je.addEventListener("play",tt),je.addEventListener("playing",nt),je.addEventListener("progress",ot),je.addEventListener("ratechange",st),je.addEventListener("seeked",it),je.addEventListener("seeking",rt),je.addEventListener("stalled",pt),je.addEventListener("timeupdate",lt),je.addEventListener("volumechange",ft),je.addEventListener("waiting",et),be=Fe.manifestInfo.isDynamic,De=!1,pe=!1,Ot.on(fe.default.DATA_UPDATE_COMPLETED,Q,ue),Ot.on(fe.default.MANIFEST_UPDATED,Et,ue),Ot.on(fe.default.STREAMS_COMPOSED,Tt,ue),Ot.on(he.default.PLAYBACK_ENDED,gt,ue,{priority:ce.default.EVENT_PRIORITY_HIGH}),Ot.on(he.default.STREAM_INITIALIZING,bt,ue),Ot.on(he.default.REPRESENTATION_SWITCH,yt,ue),Ot.on(he.default.BUFFER_LEVEL_STATE_CHANGED,J,ue),Ot.on(he.default.DYNAMIC_TO_STATIC,ht,ue),Ce&&(Ce=!1,O()))},isPaused:q,isProgressing:function(Rt=500){return new Promise((ee=>{let ne=-1,re=null;const i=Rt=>{clearTimeout(re),re=null,Ot.off(he.default.PLAYBACK_TIME_UPDATED,l,ue),ee(Rt)},l=Rt=>{ne<0?ne=Rt.time:Rt.time>ne+.1&&i(!0)};re=setTimeout((()=>{i(!1)}),Rt),Ot.on(he.default.PLAYBACK_TIME_UPDATED,l,ue)}))},isSeeking:B,isStalled:G,pause:z,play:O,reset:x,seek:L,seekToCurrentLive:function(Rt=!1,Ot=!1,ee=!1){const ne=F();0!==ne&&L(ne-_e,Rt,Ot,ee)},seekToOriginalLive:function(Rt=!1,Ot=!1,ee=!1){const ne=F();0!==ne&&(_e=Ne,L(ne-_e,Rt,Ot,ee))},setConfig:function(Rt){Rt&&(Rt.streamController&&(Pe=Rt.streamController),Rt.serviceDescriptionController&&(Me=Rt.serviceDescriptionController),Rt.dashMetrics&&(re=Rt.dashMetrics),Rt.adapter&&(ee=Rt.adapter),Rt.videoModel&&(je=Rt.videoModel),Rt.timelineConverter&&(Ue=Rt.timelineConverter),Rt.settings&&(Oe=Rt.settings))},updateCurrentTime:K},Se=(0,le.default)(Rt).getInstance().getLogger(ue),x(),ue}Oi.__dashjs_factory_name="PlaybackController";var So=ne.default.getSingletonFactory(Oi),wo=class{constructor(){this.availabilityEndTime=NaN,this.availabilityStartTime=NaN,this.duration=NaN,this.index=null,this.indexRange=null,this.isPartialSegment=!1,this.media=null,this.mediaRange=null,this.mediaUrl=null,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.replacementNumber=NaN,this.replacementTime=null,this.representation=null,this.wallStartTime=NaN}assignAttributes(Rt){for(let Ot in Rt)Rt.hasOwnProperty(Ot)&&this.hasOwnProperty(Ot)&&(this[Ot]=Rt[Ot])}},Io=class extends wo{constructor(){super()}};function Ui(){const Rt=this.context;let Ot,ee,ne,re,ie,le,oe,ue,ce,fe,ge,he;function g(Rt,Ot,ne,ie){let le=null;const ue=Rt?he.resolve(Rt.path):null,ce=ie||{init:!0,url:ue?ue.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:Ot,representation:Rt};ee.debug("Start searching for initialization.");const fe=p(ce);oe.load({request:fe,success:function(ee){if(ce.bytesLoaded=ce.range.end,le=re.findInitRange(ee),!le)return ce.range.end=ce.bytesLoaded+ce.bytesToLoad,g(Rt,Ot,ne,ce);Rt.range=le,ne(Rt)},error:function(){ne(Rt)}}),ee.debug("Perform init search: "+ce.url)}function m(Rt,Ot,ne,ie,le,ue){if(ne&&(void 0===ne.start||void 0===ne.end)){const Rt=ne?ne.toString().split("-"):null;ne=Rt?{start:parseFloat(Rt[0]),end:parseFloat(Rt[1])}:null}le=le||h;let ce=null,fe=null;const ge=!!ne,pe=Rt?he.resolve(Rt.path):null,be={init:!1,url:pe?pe.url:void 0,range:ge?ne:{start:0,end:1500},searching:!ge,bytesLoaded:ue?ue.bytesLoaded:0,bytesToLoad:1500,mediaType:Ot,representation:Rt},ye=p(be);oe.load({request:ye,success:function(ne){const oe=be.bytesToLoad,ue=ne.byteLength;if(be.bytesLoaded=be.range.end-be.range.start,ce=re.parse(ne),fe=ce.getBox("sidx"),fe&&fe.isComplete){const ne=fe.references;let re,oe;if(null!=ne&&ne.length>0&&(re=1===ne[0].reference_type),re){let re,oe,ue,ce,ge;ee.debug("Initiate multiple SIDX load."),be.range.end=be.range.start+fe.size;let he=[],pe=0,ye=(fe.offset||be.range.start)+fe.size;const p=function(Ot){Ot?(he=he.concat(Ot),pe++,pe>=oe&&(he.sort((function(Rt,Ot){return Rt.startTime-Ot.startTime<0?-1:0})),le(he,Rt,ie))):le(null,Rt,ie)};for(re=0,oe=ne.length;re<oe;re++)ue=ye,ce=ye+ne[re].referenced_size-1,ye+=ne[re].referenced_size,ge={start:ue,end:ce},m(Rt,Ot,ge,ie,p,be)}else ee.debug("Parsing segments from SIDX. representation "+Ot+" - id: "+Rt.id+" for range : "+be.range.start+" - "+be.range.end),oe=function(Rt,Ot){const ee=Rt.references,ne=ee.length,re=Rt.timescale;let ie=Rt.earliest_presentation_time,le=Ot.range.start+Rt.offset+Rt.first_offset+Rt.size;const oe=[];let ue,ce,fe,ge;for(let Rt=0;Rt<ne;Rt++)fe=ee[Rt].subsegment_duration,ge=ee[Rt].referenced_size,ue=new Io,ue.duration=fe,ue.startTime=ie,ue.timescale=re,ce=le+ge-1,ue.mediaRange=le+"-"+ce,oe.push(ue),ie+=fe,le+=ge;return oe}(fe,be),le(oe,Rt,ie)}else{if(fe)be.range.start=fe.offset||be.range.start,be.range.end=be.range.start+(fe.size||oe);else{if(ue<be.bytesLoaded)return void le(null,Rt,ie);{const Rt=ce.getLastBox();Rt&&Rt.size?(be.range.start=Rt.offset+Rt.size,be.range.end=be.range.start+oe):be.range.end+=oe}}m(Rt,Ot,be.range,ie,null,be)}},error:function(){le(null,Rt,ie)}}),ee.debug(`Perform SIDX load for type ${Ot} : ${be.url} with range ${be.range.start} - ${be.range.end}`)}function h(Rt,Ot,ee){ee({segments:Rt,representation:Ot,error:Rt?void 0:new jn.default(ue.SEGMENT_BASE_LOADER_ERROR_CODE,ue.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}function p(Rt){if(!Rt.url)return;const Ot=new ln;return Ot.setInfo(Rt),Ot}return Ot={setConfig:function(Rt){Rt.baseURLController&&(he=Rt.baseURLController),Rt.dashMetrics&&(ie=Rt.dashMetrics),Rt.mediaPlayerModel&&(le=Rt.mediaPlayerModel),Rt.errHandler&&(ne=Rt.errHandler),Rt.boxParser&&(re=Rt.boxParser),Rt.debug&&(ee=Rt.debug.getLogger(Ot)),Rt.errors&&(ue=Rt.errors),Rt.urlUtils&&(ge=Rt.urlUtils),Rt.constants&&(ce=Rt.constants),Rt.dashConstants&&(fe=Rt.dashConstants)},initialize:function(){oe=bi(Rt).create({errHandler:ne,dashMetrics:ie,mediaPlayerModel:le,boxParser:re,errors:ue,urlUtils:ge,constants:ce,dashConstants:fe})},loadInitialization:function(Rt,Ot){return new Promise((ee=>{g(Rt,Ot,ee)}))},loadSegments:function(Rt,Ot,ee){return new Promise((ne=>{m(Rt,Ot,ee,ne)}))},reset:function(){oe&&(oe.abort(),oe=null)}},Ot}Ui.__dashjs_factory_name="SegmentBaseLoader";var ko=ne.default.getSingletonFactory(Ui);function qi(Rt){let Ot;Rt=Rt||{};let ee=new DataView(Rt.data),ne=0;function r(Rt,Ot){let re,ie,le=!0,oe=0;if(void 0===Ot&&(Ot=!1),Rt.tag>16777215?(ee.getUint32(ne)!==Rt.tag&&(le=!1),oe=4):Rt.tag>65535?(re=ee.getUint16(ne),ie=ee.getUint8(ne+2),256*re+ie!==Rt.tag&&(le=!1),oe=3):Rt.tag>255?(ee.getUint16(ne)!==Rt.tag&&(le=!1),oe=2):(ee.getUint8(ne)!==Rt.tag&&(le=!1),oe=1),!le&&Rt.required&&!Ot)throw new Error("required tag not found");return le&&(ne+=oe),le}function i(Rt){let Ot=1,re=128,ie=-1,le=0,oe=ee.getUint8(ne),ue=0;for(ue=0;ue<8;ue+=1){if((oe&re)===re){le=void 0===Rt?oe&~re:oe,ie=ue;break}re>>
1=1}for(ue=0;ue<ie;ue+=1,Ot+=1)le=le<<8|255&ee.getUint8(ne+Ot);return ne+=Ot,le}return Ot={getPos:function(){return ne},setPos:function(Rt){ne=Rt},consumeTag:r,consumeTagAndSize:function(Rt,Ot){let ee=r(Rt,Ot);return ee&&i(),ee},parseTag:function(Rt){let ee;return r(Rt),ee=i(),Ot[Rt.parse](ee)},skipOverElement:function(Rt,Ot){let ee,re=r(Rt,Ot);return re&&(ee=i(),ne+=ee),re},getMatroskaCodedNum:i,getMatroskaFloat:function(Rt){let Ot;switch(Rt){case 4:Ot=ee.getFloat32(ne),ne+=4;break;case 8:Ot=ee.getFloat64(ne),ne+=8}return Ot},getMatroskaUint:function(Rt){if(Rt>4)return function(Rt){const Ot=Math.floor(Number.MAX_SAFE_INTEGER/256);let re=0;for(let ie=0;ie<Rt;ie+=1){if(re>Ot)throw new Error("Value exceeds safe integer limit");re*=256;const Rt=ee.getUint8(ne+ie);if(re>Number.MAX_SAFE_INTEGER-Rt)throw new Error("Value exceeds safe integer limit");re+=Rt}return ne+=Rt,re}(Rt);let Ot=0;for(let re=0;re<Rt;re+=1)Ot<<=8,Ot|=255&ee.getUint8(ne+re);return ne+=Rt,Ot>>>0},moreData:function(){return ne<ee.byteLength}},Ot}qi.__dashjs_factory_name="EBMLParser";var Ao=ne.default.getClassFactory(qi);function Gi(){const Rt=this.context;let Ot,ee,ne,re,ie,le,oe,ue,ce;function d(Rt){const Ot=new ln;return Ot.setInfo(Rt),Ot}return Ot={setConfig:function(Rt){if(!(Rt.baseURLController&&Rt.dashMetrics&&Rt.mediaPlayerModel&&Rt.errHandler))throw new Error(ge.default.MISSING_CONFIG_ERROR);ce=Rt.baseURLController,ie=Rt.dashMetrics,le=Rt.mediaPlayerModel,re=Rt.errHandler,ue=Rt.errors,ee=Rt.debug.getLogger(Ot)},initialize:function(){oe=bi(Rt).create({errHandler:re,dashMetrics:ie,mediaPlayerModel:le,errors:ue})},loadInitialization:function(Rt,Ot){return new Promise((ne=>{let re=null,ie=Rt?ce.resolve(Rt.path):null,le=Rt?Rt.range.split("-"):null,ue={range:{start:le?parseFloat(le[0]):null,end:le?parseFloat(le[1]):null},request:re,url:ie?ie.url:void 0,init:!0,mediaType:Ot};ee.info("Start loading initialization."),re=d(ue),oe.load({request:re,success:function(){ne(Rt)},error:function(){ne(Rt)}}),ee.debug("Perform init load: "+ue.url)}))},loadSegments:function(Ot,re,ie){return new Promise((le=>{let fe=null,ge=Ot?ce.resolve(Ot.path):null,he=ge?ge.url:void 0;fe=d({bytesLoaded:0,bytesToLoad:8192,range:{start:0,end:8192},request:fe,url:he,init:!1,mediaType:re,representation:Ot}),ee.debug("Parsing ebml header"),oe.load({request:fe,success:function(re){!function(Ot,re,ie,le){if(!Ot||0===Ot.byteLength)return void le(null);let ue,ce,fe,ge,he=Ao(Rt).create({data:Ot}),pe=ie?ie.split("-"):null,be=null,ye={url:re,range:{start:pe?parseFloat(pe[0]):null,end:pe?parseFloat(pe[1]):null},request:be};for(ee.debug("Parse EBML header: "+ye.url),he.skipOverElement(ne.EBML),he.consumeTag(ne.Segment),fe=he.getMatroskaCodedNum(),fe+=he.getPos(),ge=he.getPos();he.moreData()&&!he.consumeTagAndSize(ne.Segment.Info,!0);)if(!(he.skipOverElement(ne.Segment.SeekHead,!0)||he.skipOverElement(ne.Segment.Tracks,!0)||he.skipOverElement(ne.Segment.Cues,!0)||he.skipOverElement(ne.Void,!0)))throw new Error("no valid top level element found");for(;void 0===ue;){let Rt=he.getMatroskaCodedNum(!0),Ot=he.getMatroskaCodedNum();Rt===ne.Segment.Info.Duration.tag?ue=he[ne.Segment.Info.Duration.parse](Ot):he.setPos(he.getPos()+Ot)}be=d(ye),oe.load({request:be,success:function(Ot){ce=function(Ot,re,ie,le){let oe,ue,ce,fe,ge,he,pe,be;for(ue=function(Ot){let ee,re,ie=[],le=Ao(Rt).create({data:Ot});for(le.consumeTagAndSize(ne.Segment.Cues);le.moreData()&&le.consumeTagAndSize(ne.Segment.Cues.CuePoint,!0);){for(ee={},ee.CueTime=le.parseTag(ne.Segment.Cues.CuePoint.CueTime),ee.CueTracks=[];le.moreData()&&le.consumeTag(ne.Segment.Cues.CuePoint.CueTrackPositions,!0);){const Rt=le.getMatroskaCodedNum(),Ot=le.getPos();if(re={},re.Track=le.parseTag(ne.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===re.Track)throw new Error("Cue track cannot be 0");re.ClusterPosition=le.parseTag(ne.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),ee.CueTracks.push(re),le.setPos(Ot+Rt)}if(0===ee.CueTracks.length)throw new Error("Mandatory cuetrack not found");ie.push(ee)}if(0===ie.length)throw new Error("mandatory cuepoint not found");return ie}(Ot),ce=[],ge=0,he=ue.length;ge<he;ge+=1)fe=new Io,oe=0,oe=ge<ue.length-1?ue[ge+1].CueTime-ue[ge].CueTime:le-ue[ge].CueTime,fe.duration=oe,fe.startTime=ue[ge].CueTime,fe.timescale=1e3,pe=ue[ge].CueTracks[0].ClusterPosition+re,be=ge<ue.length-1?ue[ge+1].CueTracks[0].ClusterPosition+re-1:ie-1,fe.mediaRange=pe+"-"+be,ce.push(fe);return ee.debug("Parsed cues: "+ce.length+" cues."),ce}(Ot,ge,fe,ue),le(ce)},error:function(){ee.error("Download Error: Cues "+ye.url),le(null)}}),ee.debug("Perform cues load: "+ye.url+" bytes="+ye.range.start+"-"+ye.range.end)}(re,he,ie,(function(Rt){le({segments:Rt,representation:Ot,error:Rt?void 0:new jn.default(ue.SEGMENT_BASE_LOADER_ERROR_CODE,ue.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}))},error:function(){le({representation:Ot,error:new jn.default(ue.SEGMENT_BASE_LOADER_ERROR_CODE,ue.SEGMENT_BASE_LOADER_ERROR_MESSAGE)})}})}))},reset:function(){oe&&(oe.abort(),oe=null)}},ne={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}},Ot}Gi.__dashjs_factory_name="WebmSegmentBaseLoader";var No=ne.default.getSingletonFactory(Gi);function Yi(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.eventBus,ne=Rt.events,re=Rt.dashMetrics,ie=Rt.mediaPlayerModel,le=Rt.errHandler,oe=Rt.baseURLController,ue=Rt.debug,ce=Rt.boxParser,fe=Rt.errors;let ge,he,pe;function m(Rt){return"webm"===(Rt?Rt.split("/")[1]:"").toLowerCase()}return ge={initialize:function(){he.initialize(),pe.initialize()},getSegmentBaseInitSegment:function(Rt){return m(Rt.representation.mimeType)?pe.loadInitialization(Rt.representation,Rt.mediaType):he.loadInitialization(Rt.representation,Rt.mediaType)},getSegmentList:function(Rt){return m(Rt.mimeType)?pe.loadSegments(Rt.representation,Rt.mediaType,Rt.representation?Rt.representation.indexRange:null):he.loadSegments(Rt.representation,Rt.mediaType,Rt.representation?Rt.representation.indexRange:null)},reset:function(){he.reset(),pe.reset()}}
1,he=ko(Ot).getInstance(),pe=No(Ot).getInstance(),he.setConfig({baseURLController:oe,dashMetrics:re,mediaPlayerModel:ie,errHandler:le,eventBus:ee,events:ne,errors:fe,debug:ue,boxParser:ce}),pe.setConfig({baseURLController:oe,dashMetrics:re,mediaPlayerModel:ie,errHandler:le,eventBus:ee,events:ne,errors:fe,debug:ue}),ge}Yi.__dashjs_factory_name="SegmentBaseController";var Co=ne.default.getSingletonFactory(Yi);const Do=[ge.default.SERVICE_DESCRIPTION_DVB_LL_SCHEME],xo="video",Mo="audio";function Qi(){const Rt=this.context;let Ot,ee,ne,re,ie;function l(){ee={liveDelay:NaN,liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN}},minBitrate:{},maxBitrate:{},initialBitrate:{},contentSteering:null,clientDataReporting:null},ne=[]}function s(Rt,Ot,ne){try{ee[Rt][Ot]=ne/1e3}catch(Rt){re.error(Rt)}}return Ot={getServiceDescriptionSettings:function(){return ee},getProducerReferenceTimeOffsets:function(){return ne},calculateProducerReferenceTimeOffsets:function(Rt){try{let Ot=[];if(Rt&&Rt.length>0){const ee=[ge.default.VIDEO,ge.default.AUDIO,ge.default.TEXT],ne=ie.getAvailabilityStartTime()/1e3;Rt.forEach((Rt=>{const re=ee.reduce(((Ot,ee)=>Ot.concat(ie.getAllMediaInfoForType(Rt,ee))),[]).reduce(((Ot,ee)=>(ie.getProducerReferenceTimes(Rt,ee).forEach((re=>{const le=ie.getVoRepresentations(ee);if(le&&le.length>0&&le[0].adaptation&&le[0].segmentInfoType===Xn.default.SEGMENT_TEMPLATE){const ee=le[0],ie=new Date(re[Xn.default.WALL_CLOCK_TIME]).getTime()/1e3-(re[Xn.default.PRESENTATION_TIME]/ee[Xn.default.TIMESCALE]-ee[Xn.default.PRESENTATION_TIME_OFFSET]+Rt.start),oe=ne-ie;Ot.push({id:re[Xn.default.ID],to:oe})}})),Ot)),[]);Ot=Ot.concat(re)}))}ne=Ot}catch(Rt){re.error(Rt),ne=[]}},applyServiceDescription:function(Rt){if(!Rt||!Rt.serviceDescriptions)return;const Ot=Rt.serviceDescriptions.filter((Rt=>Do.includes(Rt.schemeIdUri))),ie=Rt.serviceDescriptions.filter((Rt=>null==Rt.schemeIdUri));let le=Ot.length>0?Ot[Ot.length-1]:ie[ie.length-1];le&&(le.latency&&le.latency.target>0&&function(Rt){let Ot;if(Rt.schemeIdUri,ge.default.SERVICE_DESCRIPTION_DVB_LL_SCHEME,Ot=function(Rt){return{liveDelay:Rt.latency.target/1e3,maxDrift:!isNaN(Rt.latency.max)&&Rt.latency.max>Rt.latency.target?(Rt.latency.max-Rt.latency.target+500)/1e3:NaN,referenceId:Rt.latency.referenceId||NaN}}(Rt),ne.length>0){let{to:Rt,id:ie}=function(Rt){let Ot,ee=0,re=ne.filter((Ot=>Ot.id===Rt.referenceId));return 0===re.length?(ee=ne.length>0?ne[0].to:0,Ot=ne[0].id||NaN):(ee=re[0].to||0,Ot=re[0].id||NaN),{to:ee,id:Ot}}(Ot);ee.liveDelay=Ot.liveDelay-Rt,ee.liveCatchup.maxDrift=Ot.maxDrift,re.debug(`\n                Found latency properties coming from service description. Applied time offset of ${Rt} from ProducerReferenceTime element with id ${ie}.\n                Live Delay: ${Ot.liveDelay-Rt}, Live catchup max drift: ${Ot.maxDrift}\n            `)}else ee.liveDelay=Ot.liveDelay,ee.liveCatchup.maxDrift=Ot.maxDrift,re.debug(`Found latency properties coming from service description: Live Delay: ${Ot.liveDelay}, Live catchup max drift: ${Ot.maxDrift}`)}(le),le.playbackRate&&function(Rt){const Ot=Rt.playbackRate.min?Math.round(1e3*(Rt.playbackRate.min-1))/1e3:NaN,ne=Rt.playbackRate.max?Math.round(1e3*(Rt.playbackRate.max-1))/1e3:NaN;ee.liveCatchup.playbackRate.min=Ot,ee.liveCatchup.playbackRate.max=ne,re.debug(`Found latency properties coming from service description: Live catchup min playback rate: ${Ot}`),re.debug(`Found latency properties coming from service description: Live catchup max playback rate: ${ne}`)}(le),le.operatingQuality,le.operatingBandwidth&&function(Rt){if(!Rt||!Rt.operatingBandwidth||!Rt.operatingBandwidth.mediaType||"all"===Rt.operatingBandwidth.mediaType)return;const Ot={};Ot.minBandwidth=Rt.operatingBandwidth.min,Ot.maxBandwidth=Rt.operatingBandwidth.max,Ot.targetBandwidth=Rt.operatingBandwidth.target;const ee=[];Rt.operatingBandwidth.mediaType===xo||Rt.operatingBandwidth.mediaType===Mo?ee.push(Rt.operatingBandwidth.mediaType):"any"===Rt.operatingBandwidth.mediaType&&(ee.push(Mo),ee.push(xo)),ee.forEach((Rt=>{isNaN(Ot.minBandwidth)||s("minBitrate",Rt,Ot.minBandwidth),isNaN(Ot.maxBandwidth)||s("maxBitrate",Rt,Ot.maxBandwidth),isNaN(Ot.targetBandwidth)||s("initialBitrate",Rt,Ot.targetBandwidth)}))}(le),le.contentSteering&&function(Rt){ee.contentSteering=Rt.contentSteering}(le),le.clientDataReporting&&function(Rt){ee.clientDataReporting=Rt.clientDataReporting}(le))},reset:function(){l()},setConfig:function(Rt){Rt&&Rt.adapter&&(ie=Rt.adapter)}},re=(0,le.default)(Rt).getInstance().getLogger(Ot),l(),Ot}Qi.__dashjs_factory_name="ServiceDescriptionController";var zo=ne.default.getSingletonFactory(Qi);class Zi{constructor(Rt){this._ranges=[];for(const Ot of Rt){const Rt=this._ranges,ee={start:Ot.start,end:Ot.end},ne=Rt.length?Rt[Rt.length-1]:null;!ne||ee.start>ne.end?Rt.push(ee):ne.end=ee.end}}get length(){return this._ranges.length}start(Rt){return this._ranges[Rt].start}end(Rt){return this._ranges[Rt].end}}var Lo=class{constructor(Rt,Ot){this.eventBus=Ot,this.mimeType=Rt,this.updating=!1,this.chunks=[],this.appendWindowStart=0,this.appendWindowEnd=1/0,this.timestampOffset=0,this.mode="segments"}appendBuffer(Rt,Ot,ee){if(this.updating)throw new Error("SourceBuffer is currently updating");this.updating=!0,this.eventBus.trigger("externalSourceBufferUpdateStart",{mimeType:this.mimeType,request:"appendBuffer",data:Rt,start:Ot,end:ee}),Number.isNaN(Ot)||(this.chunks.push({data:Rt,start:Ot,end:ee}),this.chunks.sort(((Rt,Ot)=>Rt.start-Ot.start))),setTimeout((()=>{this.updating=!1,this.eventBus.trigger("externalSourceBufferUpdating",{mimeType:this.mimeType}),this.eventBus.trigger("externalSourceBufferUpdateEnd",{mimeType:this.mimeType})}),10)}abort(){this.updating&&(this.updating=!1,this.eventBus.trigger("externalSourceBufferAbort",{mimeType:this.mimeType}),this.eventBus.trigger("externalSourceBufferUpdateEnd",{mimeType:this.mimeType}))}remove(Rt,Ot){if(this.updating)throw new Error("SourceBuffer is currently updating");this.updating=!0,this.eventBus.trigger("externalSourceBufferUpdateStart",{mimeType:this.mimeType,request:"remove",start:Rt,end:Ot}),this.chunks=this.chunks.filter((ee=>ee.end<=Rt||ee.start>=Ot)),setTimeout((()=>{this.updating=!1,this.eventBus.trigger("externalSourceBufferUpdating",{mimeType:this.mimeType}),this.eventBus.trigger("externalSourceBufferUpdateEnd",{mimeType:this.mimeType})}),10)}get buffered(){return new Zi(this.chunks)}},Fo=class extends ln{constructor(Rt){super(Rt),this.checkForExistenceOnly=!0}};function al(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.eventBus,ne=Rt.events,re=Rt.urlUtils,ie=Rt.errors,le=Rt.streamId;let oe,ue;return oe={abort:function(){ue&&ue.abort()},checkForExistence:function(Rt){const e=function(Ot){ee.trigger(ne.CHECK_FOR_EXISTENCE_COMPLETED,{request:Rt,exists:Ot})};if(Rt){let Ot=new Fo(Rt.url);ue.load({request:Ot,success:function(){e(!0)},error:function(){e(!1)}})}else e(!1)},load:function(Rt){const e=function(Ot,re){ee.trigger(ne.LOADING_COMPLETED,{request:Rt,response:Ot||null,error:re||null,sender:oe})};Rt?ue.load({request:Rt,progress:function(Ot){ee.trigger(ne.LOADING_PROGRESS,{request:Rt,stream
1:Ot.stream,streamId:le}),Ot.data&&ee.trigger(ne.LOADING_DATA_PROGRESS,{request:Rt,response:Ot.data||null,error:null,sender:oe})},success:function(Rt){e(Rt)},error:function(Rt,Ot,ee){e(void 0,new jn.default(ie.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,ee,Ot))},abort:function(Rt){Rt&&ee.trigger(ne.LOADING_ABANDONED,{mediaType:Rt.mediaType,request:Rt,sender:oe})}}):e(void 0,new jn.default(ie.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,ie.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},reset:function(){ue&&(ue.abort(),ue.reset(),ue=null)},resetInitialSettings:function(){ue&&ue.resetInitialSettings()}},ue=bi(Ot).create({errHandler:Rt.errHandler,errors:ie,dashMetrics:Rt.dashMetrics,mediaPlayerModel:Rt.mediaPlayerModel,urlUtils:re,constants:ge.default,boxParser:Rt.boxParser,dashConstants:Rt.dashConstants,requestTimeout:Rt.settings.get().streaming.fragmentRequestTimeout}),oe}al.__dashjs_factory_name="FragmentLoader";var Uo=ne.default.getClassFactory(al);function il(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=Rt.errHandler,re=Rt.mediaPlayerModel,ie=Rt.dashMetrics,oe=(0,le.default)(Ot).getInstance(),ue=Rt.streamInfo;let pe,be,ye;function p(){return ue.id}function b(){for(let Rt in ye)ye[Rt].reset();ye={}}function y(Rt){if(!Rt.sender)return;const Ot=Rt.request,ne=Rt.response,re=Ot.isInitializationRequest(),ie=Ot.representation.mediaInfo.streamInfo;if(Rt.error&&(Ot.mediaType===ge.default.AUDIO||Ot.mediaType===ge.default.VIDEO||Ot.mediaType===ge.default.TEXT&&Ot.representation.mediaInfo.isFragmented)&&ee.trigger(fe.default.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD,{entry:Rt.request.serviceLocation}),!ne||!ie)return void be.warn("No "+Ot.mediaType+" bytes to push or stream is inactive.");const le=function(Rt,Ot,ee,ne){const re=new class{constructor(){this.streamId=null,this.segmentType=null,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representation=null,this.endFragment=null}};return re.streamId=ee,re.segmentType=Ot.type,re.start=Ot.startTime,re.duration=Ot.duration,re.end=re.start+re.duration,re.bytes=Rt,re.index=Ot.index,re.representation=Ot.representation,re.endFragment=ne,re}(ne,Ot,ue.id,Rt.type!==fe.default.FRAGMENT_LOADING_PROGRESS);ee.trigger(re?fe.default.INIT_FRAGMENT_LOADED:fe.default.MEDIA_FRAGMENT_LOADED,{chunk:le,request:Ot},{streamId:ie.id,mediaType:Ot.mediaType})}return pe={getStreamId:p,getModel:function(le){let ce=ye[le];return ce||(ce=cn(Ot).create({streamInfo:ue,type:le,dashMetrics:ie,fragmentLoader:Uo(Ot).create({dashMetrics:ie,mediaPlayerModel:re,errHandler:ne,settings:Rt.settings,boxParser:Rt.boxParser,eventBus:ee,events:fe.default,errors:zn,dashConstants:Rt.dashConstants,urlUtils:Rt.urlUtils,streamId:p()}),debug:oe,eventBus:ee,events:fe.default}),ye[le]=ce),ce},reset:function(){ee.off(he.default.FRAGMENT_LOADING_COMPLETED,y,this),ee.off(he.default.FRAGMENT_LOADING_PROGRESS,y,this),b()}},be=oe.getLogger(pe),b(),ee.on(he.default.FRAGMENT_LOADING_COMPLETED,y,pe),ee.on(he.default.FRAGMENT_LOADING_PROGRESS,y,pe),pe}il.__dashjs_factory_name="FragmentController";var qo=ne.default.getClassFactory(il),Wo=class{constructor(Rt){this.newMediaInfo=Rt.newMediaInfo,this.previouslySelectedRepresentation=Rt.previouslySelectedRepresentation,this.newRepresentation=Rt.newRepresentation}};function sl(Rt){const Ot=this.context,ee=(0,oe.default)(Ot).getInstance(),ne=Rt.textController,re=Rt.eventBus;let ie,ue,ce,he,pe,be,ye=[],Ee=[],Se=!1,we=Rt.mediaSource,Re=null;function T(Rt){return Rt.mimeType+';codecs="'+Rt.codecs+'"'}function _(Rt){return he=ne.getTextSourceBuffer(Rt),Promise.resolve()}function v(){if("function"==typeof he.addEventListener)try{he.addEventListener("updateend",N,!1),he.addEventListener("error",C,!1),he.addEventListener("abort",C,!1)}catch(Rt){be=setInterval(N,50)}else be=setInterval(N,50)}function S(){try{"function"==typeof he.removeEventListener&&(he.removeEventListener("updateend",N,!1),he.removeEventListener("error",C,!1),he.removeEventListener("abort",C,!1)),clearInterval(be)}catch(Rt){ce.error(Rt)}}function I(Rt){return new Promise((Ot=>{he&&ee.get().streaming.buffer.useAppendWindow?D((()=>{try{if(!he)return void Ot();let ee=we.duration,ne=0;Rt&&!isNaN(Rt.start)&&!isNaN(Rt.duration)&&isFinite(Rt.duration)&&(ee=Rt.start+Rt.duration),Rt&&!isNaN(Rt.start)&&(ne=Rt.start),he.appendWindowEnd===ee&&he.appendWindowStart===ne||(he.appendWindowStart=0,he.appendWindowEnd=ee+.01,he.appendWindowStart=Math.max(ne-.1,0),ce.debug(`Upd
1ated append window for ${pe.type}. Set start to ${he.appendWindowStart} and end to ${he.appendWindowEnd}`)),Ot()}catch(Rt){ce.warn("Failed to set append window"),Ot()}})):Ot()}))}function k(Rt){return new Promise((Ot=>{he?D((()=>{try{he.timestampOffset===Rt||isNaN(Rt)||(he.timestampOffset=Rt,ce.debug(`Set MSE timestamp offset to ${Rt}`)),Ot()}catch(Rt){Ot()}})):Ot()}))}function A(){if(!Se&&Ee.length>0){Se=!0;const Rt=Ee[0];Ee.splice(0,1);const e=function(){Se=!1,Ee.length>0&&A.call(this),Rt&&Rt.data&&Rt.data.segmentType&&Rt.data.segmentType!==_e.HTTPRequest.INIT_SEGMENT_TYPE&&delete Rt.data.bytes,Rt.promise.resolve({chunk:Rt.data})};try{if(Re=Rt.request,0===Rt.data.bytes.byteLength)e.call(this);else{try{ce.debug(`Appending ${Rt.data.segmentType} from period ${Rt.data.streamId} to buffer. Request URL: ${Rt.request.url}, Representation: ID: ${Rt.data.representation.id}, bitrate: ${Rt.data.representation.bitrateInKbit}`)}catch(Rt){}he instanceof Lo?he.appendBuffer(Rt.data.bytes,Rt.data.start,Rt.data.end):he.appendBuffer?he.appendBuffer(Rt.data.bytes):he.append(Rt.data.bytes,Rt.data),D(e.bind(this))}}catch(Ot){ce.fatal('SourceBuffer append failed "'+Ot+'"'),Ee.length>0?A():Se=!1,delete Rt.data.bytes,Rt.promise.reject({chunk:Rt.data,error:new jn.default(Ot.code,Ot.message)})}}}function R(){ye.length>0&&!he.updating&&(ye.shift()(),R())}function N(){he.updating||R()}function C(Rt){const Ot=Rt.target||{};!function(Rt,Ot){let ee=Ot||{};re.trigger(Rt,ee,{streamId:pe.streamInfo.id,mediaType:ue})}(fe.default.SOURCE_BUFFER_ERROR,{error:Ot,lastRequestAppended:Re})}function D(Rt){try{ye.push(Rt),he&&!he.updating&&R()}catch(Rt){ce.error(Rt)}}return ie={abort:function(){return new Promise((Rt=>{try{Ee=[],"open"===we.readyState?D((()=>{try{he&&he.abort(),Rt()}catch(Ot){Rt()}})):he&&he.setTextTrack&&"ended"===we.readyState?(he.abort(),Rt()):Rt()}catch(Ot){Rt()}}))},abortBeforeAppend:function(){return new Promise((Rt=>{D((()=>{const Ot=he.appendWindowStart,ee=he.appendWindowEnd;he&&(he.abort(),he.appendWindowStart=Ot,he.appendWindowEnd=ee),Rt()}))}))},append:function(Rt,Ot=null){return new Promise(((ee,ne)=>{Rt?(Ee.push({data:Rt,promise:{resolve:ee,reject:ne},request:Ot}),D(A.bind(this))):ne({chunk:Rt,error:new jn.default(zn.APPEND_ERROR_CODE,zn.APPEND_ERROR_MESSAGE)})}))},changeType:function(Rt){const Ot=T(Rt);return new Promise((Rt=>{D((()=>{he.changeType&&(ce.debug(`Changing SourceBuffer codec to ${Ot}`),he.changeType(Ot)),Rt()}))}))},getAllBufferRanges:function(){try{return he?.buffered}catch(Rt){return ce.error("getAllBufferRanges exception: "+Rt.message),null}},getBuffer:function(){return he},getType:function(){return ue},initializeForFirstUse:function(Rt,Ot){pe=Rt;const ee=Rt.streamInfo;ue=pe.type;const ne=Ot?T(Ot):Rt.codec;try{if(ne.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))return _(ee);he=we.addSourceBuffer(ne),v();const Rt=[];return Rt.push(I(pe.streamInfo)),Ot&&void 0!==Ot.mseTimeOffset&&Rt.push(k(Ot.mseTimeOffset)),Promise.all(Rt)}catch(Rt){return pe.type==ge.default.TEXT&&!pe.isFragmented||-1!==ne.indexOf('codecs="stpp')||-1!==ne.indexOf('codecs="vtt')||-1!==ne.indexOf("text/vtt")?_(ee):Promise.reject(Rt)}},initializeForStreamSwitch:function(Rt,Ot,ee){pe=Rt,ue=pe.type,function(Rt){he=Rt.getBuffer()}(ee),v()},remove:function(Rt){return new Promise(((Ot,ee)=>{const ne=Rt.start,re=Rt.end;ne>=0&&re>ne?D((function(){try{he.remove(ne,re),D((function(){Ot({from:ne,to:re,unintended:!1}),Rt.resolve&&Rt.resolve()}))}catch(Ot){ee({from:ne,to:re,unintended:!1,error:new jn.default(zn.REMOVE_ERROR_CODE,zn.REMOVE_ERROR_MESSAGE)}),Rt.reject&&Rt.reject(Ot)}})):Ot()}))},removeEventListeners:S,reset:function(){if(he){try{ye=[],S(),Se=!1,Ee=[],he.getClassName&&"TextSourceBuffer"===he.getClassName()||(ce.debug("Removing sourcebuffer from media source"),we.removeSourceBuffer(he))}catch(Rt){}he=null}Re=null},updateAppendWindow:I,updateTimestampOffset:k},ce=(0,le.default)(Ot).getInstance().getLogger(ie),ie}sl.__dashjs_factory_name="SourceBufferSink";var Qo=ne.default.getClassFactory(sl);function dl(Rt){const Ot=this.context;let ee,ne,re,ie=[],oe=Rt;function s(Rt,Ot){return ie=ie.filter((ee=>!((isNaN(Ot)||ee.start<Ot)&&(isNaN(Rt)||ee.end>Rt)))),Promise.resolve()}return ee={getAllBufferRanges:function(){let Rt=[];for(let Ot=0;Ot<ie.length;Ot++){let ee=ie[Ot];0===Rt.length||ee.start>Rt[Rt.length-1].end?Rt.push({start:ee.start,end:ee.end}):Rt[Rt.length-1].end=ee.end}const Ot={start:function(Ot){return Rt[Ot].start},end:function(Ot){return Rt[Ot].end}};return Object.defineProperty(Ot,"length",{get:function(){return Rt.length}}),Ot},append:function(Rt){return"InitializationSegment"!==Rt.segmentType?(ie.push(Rt),ie.sort((function(Rt,Ot){return Rt.start-Ot.start}
1)),re=null):re=Rt,ne.debug("PreBufferSink appended chunk s: "+Rt.start+"; e: "+Rt.end),oe&&oe({chunk:Rt}),Promise.resolve()},remove:s,abort:function(){return Promise.resolve()},discharge:function(Rt,Ot){const ee=function(Rt,Ot){return ie.filter((ee=>(isNaN(Ot)||ee.start<Ot)&&(isNaN(Rt)||ee.end>Rt)))}(Rt,Ot);return re&&(ee.push(re),re=null),s(Rt,Ot),ee},reset:function(){ie=[],re=null,oe=null},updateTimestampOffset:function(){return Promise.resolve()},waitForUpdateEnd:function(Rt){Rt()},getBuffer:function(){return this}},ne=(0,le.default)(Ot).getInstance().getLogger(ee),ee}dl.__dashjs_factory_name="PreBufferSink";var Xo=ne.default.getClassFactory(dl);function fl(){let Rt={};return{save:function(Ot){const ee=Ot.streamId,ne=Ot.representation.id;Rt[ee]=Rt[ee]||{},Rt[ee][ne]=Ot},extract:function(Ot,ee){return Rt&&Rt[Ot]&&Rt[Ot][ee]?Rt[Ot][ee]:null},reset:function(){Rt={}}}}fl.__dashjs_factory_name="InitCache";var Jo=ne.default.getSingletonFactory(fl);const es=.01,as="BufferController";function pl(Rt){const Ot=(Rt=Rt||{}).capabilities,ee=this.context,ne=(0,ce.default)(ee).getInstance(),re=Rt.fragmentModel,oe=Rt.playbackController,ue=Rt.representationController,pe=Rt.settings,be=Rt.streamInfo,ye=Rt.textController,Ee=Rt.type;let Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe,Ge,We,ln,on,sn,un,dn;function U(Rt,Ot=null){return new Promise(((ee,ne)=>{De=Rt,Oe&&Ot&&"function"==typeof Oe.discharge?(Pe=Oe,j(Ot).then((()=>{ee()})).catch((Rt=>{ne(Rt)}))):ee()}))}function j(Rt,Ot=new Map,re){return new Promise(((ie,le)=>{on&&Rt?De?(Fe=!1,function(Rt,Ot,re){return new Promise((ie=>{Oe=Qo(ee).create({mediaSource:De,textController:ye,eventBus:ne}),function(Rt,Ot,ee){const ne=ue.getCurrentRepresentation();let re=null;return Ee!==ge.default.VIDEO&&Ee!==ge.default.AUDIO||(re=Ot.get(Ee)),re?function(Rt,Ot,ee,ne){Oe.initializeForStreamSwitch(Rt,Ot,ee);const re=[];return re.push(Oe.abortBeforeAppend()),re.push(ct()),re.push(K(Ot,ne)),Ot&&void 0!==Ot.mseTimeOffset&&re.push(dt(Ot)),Promise.allSettled(re)}(Rt,ne,re,ee):function(Rt,Ot){return Oe.initializeForFirstUse(Rt,Ot)}(Rt,ne)}(Rt,Ot,re).then((()=>dt(ue.getCurrentRepresentation()))).then((()=>{ie(Oe)})).catch((Rt=>{we.warn("Caught error on create SourceBuffer: "+Rt),ie(Oe)}))}))}(Rt,Ot,re).then((Rt=>{ie(Rt)})).catch((Rt=>{le(Rt)}))):(Fe=!0,function(){return new Promise(((Rt,Ot)=>{Oe=Xo(ee).create(Y.bind(this)),dt(ue.getCurrentRepresentation()).then((()=>{Rt(Oe)})).catch((()=>{Ot()}))}))}().then((Rt=>{ie(Rt)})).catch((Rt=>{le(Rt)}))):ie(null)}))}function q(Rt){pe.get().streaming.cacheInitSegments&&(we.info("Init fragment finished loading saving to",Ee+"'s init cache"),on.save(Rt.chunk)),we.debug(`Appending init fragment for type ${Ee}, representationId ${Rt.chunk.representation.id} and bandwidth ${Rt.chunk.representation.bandwidth}`),G(Rt.chunk)}function B(Rt){G(Rt.chunk,Rt.request)}function G(Rt,Ot=null){Oe&&(Oe.append(Rt,Ot).then((Rt=>{Y(Rt)})).catch((Rt=>{Y(Rt)})),Rt.representation.mediaInfo.type===ge.default.VIDEO&&yt(fe.default.VIDEO_CHUNK_RECEIVED,{chunk:Rt}))}function H(Rt){if(Rt&&Rt.length>0)for(let Ot=0,ee=Rt.length;Ot<ee;Ot++)we.debug("Buffered range: "+Rt.start(Ot)+" - "+Rt.end(Ot)+", currentTime = ",oe.getTime())}function Y(Rt){if(Rt.error)return 22===Rt.error.code&&function(){if(ln=!0,Ce=.8*ht(),we.warn("Quota exceeded, Critical Buffer: "+Ce),Ce>0){const Rt=Math.max(.2*Ce,1),Ot=Ce-Rt,ee=Math.min(pe.get().streaming.buffer.bufferTimeAtTopQuality,.9*Ot),ne=Math.min(pe.get().streaming.buffer.bufferTimeAtTopQualityLongForm,.9*Ot),re={streaming:{buffer:{bufferToKeep:parseFloat(Rt.toFixed(5)),bufferTimeAtTopQuality:parseFloat(ee.toFixed(5)),bufferTimeAtTopQualityLongForm:parseFloat(ne.toFixed(5))}}};pe.update(re)}}(),void(22!==Rt.error.code&&bt()||(we.warn("Clearing playback buffer to overcome quota exceed situation"),yt(fe.default.QUOTA_EXCEEDED,{criticalBufferLevel:Ce,quotaExceededTime:Rt.chunk.start}),ot(lt())));if(!Oe)return;if(tt(),ln=!1,qe=Rt.chunk,!qe||!qe.endFragment)return;qe&&!isNaN(qe.index)&&(xe=Math.max(qe.index,xe),et());const Ot=Oe.getAllBufferRanges();qe.segmentType===_e.HTTPRequest.MEDIA_SEGMENT_TYPE&&(H(Ot),Q(),function(){if(isNaN(dn)||Fe)return;if(Ee!==ge.default.AUDIO&&Ee!==ge.default.VIDEO)return void(dn=NaN);const Rt=oe.getTime(),Ot=J(Rt,0),ee=J(dn,0);if(Ot&&ee&&Ot.start===ee.start)return void(dn=NaN);const ne=ue.getCurrentRepresentation().segmentDuration,re=J(dn,ne);re&&(pe.get().streaming.buffer.enableSeekDecorrelationFix&&Math.abs(Rt-dn)>ne?dn<=re.end&&oe.seek(Math.max(dn,re.start),!1,!0):Rt<re.start&&oe.seek(re.start,!1,!0))}());let ee=!1;Ue&&(Ue.indexOf(qe)>0&&(ee=!0),Ue=null),qe&&!ee&&yt(fe.default.BYTES_APPENDED_END_FRAGMENT,{startTime:qe.start,index:qe.index,bufferedRanges:Ot,segmentType:qe.segmentType,mediaType:Ee,representationId:qe.representation.id})}function V(Rt,Ot){const ee=[];return ee.push(dt(Rt)),ee.push(Oe?Oe.abort():Promise.resolve()),ee.push(K(Rt,Ot)),Promise.allSettled(ee)}function K(Rt,ee){if(!Rt||!ee)return we.warn("BufferController._changeCodec() is missing the information about the Representations. Doing nothing"),Promise.resolve();if(Rt&&ee&&Rt.mimeType===ee.mimeType&&Rt.codecFamily===ee.codecFamily)return we.debug(`Switching to new codec ${Rt.codecs} without changeType as previous codec ${ee.codecs} is compatible.`),Promise.resolve();if(!pe.get().streaming.buffer.useChangeType||!Ot.supportsChangeType())return we.debug("changeType() not available"),Promise.resolve();we.debug(`Using changeType() to switch from codec ${ee.codecs} to ${Rt.codecs}`);const ne=Rt.dependentRepresentation?Rt.dependentRepresentation:Rt;return Oe.changeType(ne)}function W(){return new Promise(((Rt,Ot)=>
1{let ee=$();if(!ee||0===ee.length)return Q(),void Rt();ot(ee).then((()=>{Rt()})).catch((Rt=>{Ot(Rt)}))}))}function $(Rt){const Ot=[],ee=Oe.getAllBufferRanges();if(!ee||0===ee.length)return Ot;if(!Rt&&0!==Rt||isNaN(Rt))Ot.push({start:ee.start(0),end:ee.end(ee.length-1)+.5});else{const ne=function(Rt,Ot){const ee=pe.get().streaming.buffer.bufferToKeep,ne=Ot.start(0);if(Rt-ne>ee){let Ot=Math.max(0,Rt-ee);const ie=re.getRequests({state:cn.FRAGMENT_MODEL_EXECUTED,time:Rt,threshold:es})[0];if(ie&&(Ot=Math.min(ie.startTime,Ot)),Ot>0)return{start:ne,end:Ot}}return null}(Rt,ee),ie=function(Rt,Ot){const ee=Ot.end(Ot.length-1)+.5,ne=pt(Rt),ie=be.manifestInfo.duration>=pe.get().streaming.buffer.longFormContentDurationThreshold?pe.get().streaming.buffer.bufferTimeAtTopQualityLongForm:pe.get().streaming.buffer.bufferTimeAtTopQuality;let le=isNaN(ne)?Rt:Math.min(ne,Rt+ie);if(le>=Ot.end(Ot.length-1))return null;const oe=re.getRequests({state:cn.FRAGMENT_MODEL_EXECUTED,time:Rt,threshold:es})[0];if(oe&&(le=Math.max(oe.startTime+oe.duration,le)),pe.get().streaming.buffer.avoidCurrentTimeRangePruning)for(let ne=0;ne<Ot.length;ne++)if(Ot.start(ne)<=Rt&&Rt<=Ot.end(ne)&&Ot.start(ne)<=le&&le<=Ot.end(ne)){let re=le;le=ne+1<Ot.length?Ot.start(ne+1):Ot.end(ne)+1,we.debug("Buffered range ["+Ot.start(ne)+", "+Ot.end(ne)+"] overlaps with targetTime "+Rt+" and range to be pruned ["+re+", "+ee+"], using ["+le+", "+ee+"] instead"+(le<ee?"":" (no actual pruning)"));break}return le<Ot.end(Ot.length-1)?{start:le,end:ee}:null}(Rt,ee);ne&&Ot.push(ne),ie&&Ot.push(ie)}return Ot}function Q(){(!un||Ee===ge.default.TEXT&&ye.isTextEnabled())&&tt()}function X(){at()}function Z(){at(),dn=NaN}function J(Rt,Ot){if(!Oe)return null;const ee=Oe.getAllBufferRanges();let ne,re,ie=0,le=0,oe=null,ue=null,ce=0;const fe=isNaN(Ot)?.15:Ot;if(null!=ee){for(re=0,ne=ee.length;re<ne;re++)if(ie=ee.start(re),le=ee.end(re),null===oe)ce=Math.abs(ie-Rt),(Rt>=ie&&Rt<le||ce<=fe)&&(oe=ie,ue=le);else{if(ce=ie-ue,!(ce<=fe))break;ue=le}if(null!==oe)return{start:oe,end:ue}}return null}function tt(){if(oe){let Rt=oe.getTime()||0;Fe&&(Rt=isNaN(dn)?0:dn);const Ot=pe.get().streaming.gaps.jumpGaps&&!isNaN(pe.get().streaming.gaps.smallGapLimit)?pe.get().streaming.gaps.smallGapLimit:NaN;Ne=Math.max(function(Rt,Ot){let ee,ne;return pe.get().streaming.gaps.jumpGaps&&(Ot=pe.get().streaming.gaps.smallGapLimit),ee=J(Rt,Ot),ne=null===ee?0:ee.end-Rt,ne}(Rt,Ot),0),yt(fe.default.BUFFER_LEVEL_UPDATED,{mediaType:Ee,bufferLevel:Ne}),at()}}function et(){const Rt=xe>=Me-1,Ot=oe.getTimeToStreamEnd(be)-Ne<1e-5;!Rt&&!Ot||Re||(mt(!0),we.debug(`checkIfBufferingCompleted trigger BUFFERING_COMPLETED for stream id ${be.id} and type ${Ee}`))}function at(){if(Ee!==ge.default.AUDIO&&Ee!==ge.default.VIDEO)return;const Rt=oe.getLowLatencyModeEnabled()?pe.get().streaming.buffer.lowLatencyStallThreshold:pe.get().streaming.buffer.stallThreshold;Ne<=Rt&&!Re?rt(ie.BUFFER_EMPTY):(Re||Ne>Rt)&&rt(ie.BUFFER_LOADED)}function rt(Rt){je===Rt||Rt===ie.BUFFER_EMPTY&&0===oe.getTime()||Ee===ge.default.TEXT&&!ye.isTextEnabled()||(je=Rt,yt(fe.default.BUFFER_LEVEL_STATE_CHANGED,{state:Rt}),yt(Rt===ie.BUFFER_LOADED?fe.default.BUFFER_LOADED:fe.default.BUFFER_EMPTY),we.debug(Rt===ie.BUFFER_LOADED?"Got enough buffer to start":"Waiting for more buffer before starting playback"))}function it(){Oe&&Ee!==ge.default.TEXT&&(Re||ot(lt()))}function lt(){const Rt=[],Ot=Oe.getAllBufferRanges();if(!Ot||0===Ot.length)return Rt;const ee=oe.getTime();let ne=Math.max(0,ee-pe.get().streaming.buffer.bufferToKeep);const ie=re.getRequests({state:cn.FRAGMENT_MODEL_EXECUTED,time:ee,threshold:es})[0];if(ie)ne=Math.min(ie.startTime,ne);else if(0===ee&&oe.getIsDynamic())return[];if(Ot.start(0)<=ne){const ee={start:0,end:ne};for(let Rt=0;Rt<Ot.length&&Ot.end(Rt)<=ne;Rt++)ee.end=Ot.end(Rt);ee.start<ee.end&&Rt.push(ee)}return Rt}function ot(Rt){return new Promise(((Ot,ee)=>{if(!Rt||!Oe||0===Rt.length)return tt(),void Ot();const ne=[];Rt.forEach((Rt=>{ne.push(function(Rt){return new Promise(((Ot,ee)=>{Rt.resolve=Ot,Rt.reject=ee,sn.push(Rt)}))}(Rt))})),We||st(),Promise.all(ne).then((()=>{Ot()})).catch((Rt=>{ee(Rt)}))}
1))}function st(){try{if(0===sn.length||!Oe)return we.debug("Nothing to prune, halt pruning"),sn=[],void(We=!1);const Rt=Oe.getBuffer();if(!Rt||!Rt.buffered||0===Rt.buffered.length)return we.debug("SourceBuffer is empty (or does not exist), halt pruning"),sn=[],void(We=!1);const Ot=sn.shift();we.debug(`${Ee}: Removing buffer from: ${Ot.start} to ${Ot.end}`),We=!0,oe.getTime()<Ot.end&&mt(!1),Oe.remove(Ot).then((Rt=>{ut(Rt)})).catch((Rt=>{ut(Rt)}))}catch(Rt){We=!1}}function ut(Rt){we.debug("onRemoved buffer from:",Rt.from,"to",Rt.to),Oe&&(H(Oe.getAllBufferRanges()),0===sn.length&&(We=!1,tt()),Rt.unintended&&(we.warn("Detected unintended removal from:",Rt.from,"to",Rt.to,"setting streamprocessor time to",Rt.from),yt(fe.default.SEEK_TARGET,{time:Rt.from})),We?st():(un?un=!1:tt(),yt(fe.default.BUFFER_CLEARED,{from:Rt.from,to:Rt.to,unintended:Rt.unintended,hasEnoughSpaceToAppend:bt(),quotaExceeded:ln})))}function dt(Rt){return new Promise((Ot=>{Rt&&void 0!==Rt.mseTimeOffset&&Oe&&Oe.updateTimestampOffset?Oe.updateTimestampOffset(Rt.mseTimeOffset).then((()=>{Ot()})).catch((()=>{Ot()})):Ot()}))}function ct(){return Oe&&!Re?Oe.updateAppendWindow(be):Promise.resolve()}function ft(){Ge++,Ge*(pe.get().streaming.wallclockTimeUpdateInterval/1e3)>=pe.get().streaming.buffer.bufferPruningInterval&&(Ge=0,it())}function gt(){at()}function mt(Rt){Re=Rt,Re?yt(fe.default.BUFFERING_COMPLETED):Me=Number.POSITIVE_INFINITY}function ht(){try{const Rt=Oe.getAllBufferRanges();let Ot,ee,ne=0;if(!Rt)return ne;for(ee=0,Ot=Rt.length;ee<Ot;ee++)ne+=Rt.end(ee)-Rt.start(ee);return ne}catch(Rt){return 0}}function pt(Rt){try{let Ot=Rt;const ee=Oe.getAllBufferRanges();if(!ee||0===ee.length)return NaN;let ne=0;for(;Ot===Rt&&ne<ee.length;){const Rt=ee.start(ne),re=ee.end(ne);Ot>=Rt&&Ot<=re&&(Ot=re),ne+=1}return Ot===Rt?NaN:Ot}catch(Rt){return NaN}}function bt(){const Rt=ht();return isNaN(Rt)||Rt<Ce}function yt(Rt,Ot){let ee=Ot||{};ne.trigger(Rt,ee,{streamId:be.id,mediaType:Ee})}function Et(Rt,Ot){if(Ce=Number.POSITIVE_INFINITY,je=void 0,Me=Number.POSITIVE_INFINITY,xe=0,qe=null,Re=!1,We=!1,ln=!1,Ne=0,Ge=0,sn=[],dn=NaN,Fe=!1,Oe){let ee=Oe;Oe=null,Rt||(Ot?ee.removeEventListeners():ee.abort().then((()=>{ee.reset(Ot),ee=null})))}un=!1}return Se={appendInitSegmentFromCache:function(Rt){const Ot=on.extract(be.id,Rt);return!!Ot&&(we.debug(`Appending init fragment for type ${Ee}, representationId ${Ot.representation.id} and bandwidth ${Ot.representation.bandwidth}`),G(Ot),!0)},clearBuffers:ot,createBufferSink:j,dischargePreBuffer:function(){if(Oe&&Pe&&"function"==typeof Pe.discharge){const Rt=Pe.getAllBufferRanges();if(Rt.length>0){let Ot="Beginning "+Ee+"PreBuffer discharge, adding buffer for:";for(let ee=0;ee<Rt.length;ee++)Ot+=" start: "+Rt.start(ee)+", end: "+Rt.end(ee)+";";we.debug(Ot)}else we.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");Ue=[];let Ot=Pe.discharge(),ee=null;for(let Rt=0;Rt<Ot.length;Rt++){const ne=Ot[Rt];if(ne.segmentType!==_e.HTTPRequest.INIT_SEGMENT_TYPE){const Rt=on.extract(ne.streamId,ne.representation.id);Rt&&ee!==Rt&&(Ue.push(Rt),Oe.append(Rt),ee=Rt)}Ue.push(ne),Oe.append(ne)}Pe.reset(),Pe=null}},getAllRangesWithSafetyFactor:$,getBuffer:function(){return Oe},getBufferControllerType:function(){return as},getBufferLevel:function(){return Ne},getContinuousBufferTimeForTargetTime:pt,getIsBufferingCompleted:function(){return Re},getIsPruningInProgress:function(){return We},getMediaSource:function(){return De},getRangeAt:J,getStreamId:function(){return be.id},getType:function(){return Ee},hasBufferAtTime:function(Rt){try{const Ot=Oe.getAllBufferRanges();if(!Ot||0===Ot.length)return!1;let ee=0;for(;ee<Ot.length;){const ne=Ot.start(ee),re=Ot.end(ee);if(Rt>=ne&&Rt<=re)return!0;ee+=1}return!1}catch(Rt){return we.error(Rt),!1}},initialize:function(Rt){U(Rt),ne.on(fe.default.INIT_FRAGMENT_LOADED,q,Se),ne.on(fe.default.MEDIA_FRAGMENT_LOADED,B,Se),ne.on(fe.default.WALLCLOCK_TIME_UPDATED,ft,Se),ne.on(he.default.PLAYBACK_PLAYING,Z,Se),ne.on(he.default.PLAYBACK_PROGRESS,Q,Se),ne.on(he.default.PLAYBACK_TIME_UPDATED,Q,Se),ne.on(he.default.PLAYBACK_RATE_CHANGED,gt,Se),ne.on(he.default.PLAYBACK_STALLED,X,Se)}
1,prepareForAbandonQualitySwitch:function(Rt,Ot){return V(Rt,Ot)},prepareForDefaultQualitySwitch:function(Rt,Ot){return V(Rt,Ot)},prepareForFastQualitySwitch:function(Rt,Ot){return V(Rt,Ot)},prepareForForceReplacementQualitySwitch:function(Rt,Ot){return new Promise((ee=>{const ne=[];ne.push(Oe.abort()),ne.push(ct()),ne.push(W()),ne.push(dt(Rt)),ne.push(K(Rt,Ot)),Promise.allSettled(ne).then((()=>{mt(!1),ee()}))}))},prepareForNonReplacementTrackSwitch:function(Rt,Ot){return new Promise((ee=>{const ne=[];ne.push(ct()),ne.push(K(Rt,Ot)),Promise.allSettled(ne).then((()=>{ee()}))}))},prepareForPlaybackSeek:function(){return Re&&mt(!1),Oe.abort()},prepareForReplacementTrackSwitch:function(Rt,Ot){return new Promise((ee=>{const ne=[];ne.push(Oe.abort()),ne.push(ct()),ne.push(K(Rt,Ot)),ne.push(W()),ne.push(dt(Rt)),Promise.allSettled(ne).then((()=>{mt(!1),ee()}))}))},pruneAllSafely:W,pruneBuffer:it,reset:function(Rt,Ot){ne.off(fe.default.INIT_FRAGMENT_LOADED,q,this),ne.off(fe.default.MEDIA_FRAGMENT_LOADED,B,this),ne.off(fe.default.WALLCLOCK_TIME_UPDATED,ft,this),ne.off(he.default.PLAYBACK_PLAYING,Z,this),ne.off(he.default.PLAYBACK_PROGRESS,Q,this),ne.off(he.default.PLAYBACK_TIME_UPDATED,Q,this),ne.off(he.default.PLAYBACK_RATE_CHANGED,gt,this),ne.off(he.default.PLAYBACK_STALLED,X,this),Et(Rt,Ot)},segmentRequestingCompleted:function(Rt){isNaN(Rt)||(Me=Rt,et())},setIsBufferingCompleted:mt,setMediaSource:U,setSeekTarget:function(Rt){dn=Rt},updateAppendWindow:ct,updateBufferTimestampOffset:dt},we=(0,le.default)(ee).getInstance().getLogger(Se),on=Jo(ee).getInstance(),Et(),Se}pl.__dashjs_factory_name=as;var is=ne.default.getClassFactory(pl);const os="NotFragmentedTextBufferController";function El(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=Rt.textController,re=Rt.errHandler,ie=Rt.streamInfo,le=Rt.type;let oe,ue,ge,he,pe,be;function h(Rt){he=Rt}function p(Rt){ue!==Rt&&(ue=Rt,ue&&function(Rt){ee.trigger(Rt,{},{streamId:ie.id,mediaType:le})}(fe.default.BUFFERING_COMPLETED))}function b(Rt){Rt.chunk.bytes&&!ue&&(be.save(Rt.chunk),pe.append(Rt.chunk),p(!0))}return oe={initialize:function(Rt){h(Rt)},getStreamId:function(){return ie.id},getType:function(){return le},getBufferControllerType:function(){return os},createBufferSink:function(Rt){return new Promise(((ie,oe)=>{try{pe=Qo(Ot).create({mediaSource:he,textController:ne,eventBus:ee}),pe.initializeForFirstUse(Rt),ge||(pe.getBuffer()&&"function"==typeof pe.getBuffer().initialize&&pe.getBuffer().initialize(),ge=!0),ie(pe)}catch(Rt){re.error(new jn.default(zn.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,zn.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+le)),oe(Rt)}}))},dischargePreBuffer:function(){},getBuffer:function(){return pe},getBufferLevel:function(){return 0},getRangeAt:function(){return null},pruneBuffer:function(){},hasBufferAtTime:function(){return!0},getAllRangesWithSafetyFactor:function(){return[]},getContinuousBufferTimeForTargetTime:function(){return Number.POSITIVE_INFINITY},setMediaSource:h,getMediaSource:function(){return he},appendInitSegmentFromCache:function(Rt){return null!==be.extract(ie.id,Rt)},getIsBufferingCompleted:function(){return ue},setIsBufferingCompleted:p,getIsPruningInProgress:function(){return!1},reset:function(Rt){ee.off(fe.default.INIT_FRAGMENT_LOADED,b,oe),!Rt&&pe&&(pe.abort(),pe.reset(),pe=null)},clearBuffers:function(){return Promise.resolve()},prepareForPlaybackSeek:function(){return Promise.resolve()},prepareForReplacementTrackSwitch:function(){return ue=!1,Promise.resolve()},setSeekTarget:function(){},updateAppendWindow:function(){return Promise.resolve()},pruneAllSafely:function(){return Promise.resolve()},updateBufferTimestampOffset:function(){return Promise.resolve()},segmentRequestingCompleted:function(){}},ge=!1,he=null,ue=!1,be=Jo(Ot).getInstance(),ee.on(fe.default.INIT_FRAGMENT_LOADED,b,oe),oe}El.__dashjs_factory_name=os;var us=ne.default.getClassFactory(El);function _l(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=Rt.dashMetrics,re=Rt.mediaPlayerModel,oe=Rt.fragmentModel,ue=Rt.abrController,pe=Rt.playbackController,be=Rt.textController,ye=Rt.type,Ee=Rt.bufferController,_e=Rt.representationController,Se=Rt.settings;let we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je;function D(){Me=(0,le.default)(Ot).getInstance().getLogger(Ce),G(),Fe=Rt.streamInfo}function x(){Oe=!0}function M(){Oe=!1}function P(Rt){if(Ee.getIsBufferingCompleted())return;O();const Ot=isNaN(Rt)?0:Rt;Pe=setTimeout(z,Ot)}function O(){Pe&&(clearTimeout(Pe),Pe=null)}function z(){const Rt=re.getScheduleTimeout();try{if(function(){try{return ye===ge.default.TEXT&&!be.isTextEnabled()||pe.isPaused()&&(!pe.getStreamController().getInitialPlayback()||!pe.getStreamController().getAutoPlay())&&!Se.get().streaming.scheduling.scheduleWhilePaused}catch(Rt){return!1}}())return void O();!function(){try{return!!Oe&&_e.getCurrentRepresentation()&&(null==xe||Ue||function(){const Rt=_e.getCurrentRepresentation();if(!ye||!Rt)return!0;let Ot=Rt&&Rt.segmentDuration&&!isNaN(Rt.segmentDuration)?Rt.segmentDuration:0;const ee=ne.getCurrentBufferLevel(ye),re=L();return(re<=Ot||pe.getLowLatencyModeEnabled()||ye===ge.default.AUDIO&&Re)&&(Ot=0),ee+Ot<re}())}catch(Rt){return!1}}()?P(Rt):function(){if(ue.handlePendingManualQualitySwitch(Fe.id,ye))return;let Rt=!1;we&&(Rt=ue.checkPlaybackQuality(ye,Fe.id)),Rt||function(){const Rt=_e.getCurrentRepresentation();Ne||Rt.id!==xe||Ue?function(Rt){Ue?(Me.debug("Switch track for "+ye+", representation id = "+Rt.id),Ue=!1):Me.debug("Quality has changed, get init request for representationid = "+Rt.id),ee.trigger(fe.default.INIT_FRAGMENT_NEEDED,{representationId:Rt.id,sender:Ce},{streamId:Fe.id,mediaType:ye}),we=!1,Ne=!1}(Rt):(Me.debug(`Media segment needed for ${ye} and stream id ${Fe.id}`),ee.trigger(fe.default.MEDIA_FRAGMENT_NEEDED,{},{streamId:Fe.id,mediaType:ye}),we=!0)}()}()}catch(Ot){P(Rt)}
1}function L(){let Rt=NaN;const Ot=_e.getCurrentRepresentation();return ye&&Ot?(Rt=ye===ge.default.TEXT?function(){try{if(be.isTextEnabled()){const Rt=_e.getCurrentRepresentation();if(isNaN(Rt.fragmentDuration)){const Rt=ne.getCurrentSchedulingInfo(ie.SCHEDULING_INFO);return Rt?Rt.duration:0}return Rt.fragmentDuration}return 0}catch(Rt){return 0}}():ye===ge.default.AUDIO&&Re?function(){try{const Rt=ne.getCurrentBufferLevel(ge.default.VIDEO),Ot=_e.getCurrentRepresentation();return isNaN(Ot.fragmentDuration)?Rt+1:Math.max(Rt+1,Ot.fragmentDuration)}catch(Rt){return 0}}():function(){try{const Rt=Se.get().streaming.enhancement.enabled?_e.getCurrentCompositeRepresentation():_e.getCurrentRepresentation(),Ot=Rt.mediaInfo.streamInfo;return ue.isPlayingAtTopQuality(Rt)?Ot.manifestInfo.duration>=Se.get().streaming.buffer.longFormContentDurationThreshold?Se.get().streaming.buffer.bufferTimeAtTopQualityLongForm:Se.get().streaming.buffer.bufferTimeAtTopQuality:re.getBufferTimeDefaultUnadjusted()}catch(Rt){return re.getBufferTimeDefaultUnadjusted()}}(),Rt):Rt}function F(){U(!0)}function U(Rt){if(pe&&oe){const Ot=oe.getRequests({state:cn.FRAGMENT_MODEL_EXECUTED,time:pe.getTime(),threshold:0})[0];Ot&&pe.getTime()>=Ot.startTime&&((!De.representation||Ot.representation.mediaInfo.type===De.representation.mediaInfo.type&&Ot.representation.mediaInfo.index!==De.representation.mediaInfo.index)&&Rt&&function(Rt){Me.debug(`Track change rendered for streamId ${Fe.id} and type ${ye}`),ee.trigger(fe.default.TRACK_CHANGE_RENDERED,{mediaType:ye,oldMediaInfo:De&&De.representation&&De.representation.mediaInfo?De.representation.mediaInfo:null,newMediaInfo:Rt.representation.mediaInfo,streamId:Fe.id})}(Ot),De.representation&&Ot.representation.id===De.representation.id||!Rt||function(Rt){Me.debug(`Quality change rendered for streamId ${Fe.id} and type ${ye}`),ee.trigger(fe.default.QUALITY_CHANGE_RENDERED,{mediaType:ye,oldRepresentation:De.representation?De.representation:null,newRepresentation:Rt.representation,streamId:Fe.id})}(Ot),De.representation=Ot.representation)}}function j(){oe.abortRequests(),O()}function q(){Se.get().streaming.scheduling.scheduleWhilePaused||P()}function B(Rt){ne.updatePlayListTraceMetrics({playbackspeed:Rt.playbackRate.toString()})}function G(){we=!0,je=0,xe=null,De={representation:null},Ue=!1,Ne=!1,Oe=!0}return Ce={clearScheduleTimer:O,getBufferTarget:L,getPlaybackController:function(){return pe},getStreamId:function(){return Fe.id},getSwitchTrack:function(){return Ue},getTimeToLoadDelay:function(){return je},getType:function(){return ye},initialize:function(Rt){Re=Rt,ee.on(fe.default.URL_RESOLUTION_FAILED,j,Ce),ee.on(he.default.PLAYBACK_STARTED,q,Ce),ee.on(he.default.PLAYBACK_RATE_CHANGED,B,Ce),ee.on(he.default.PLAYBACK_TIME_UPDATED,F,Ce),ee.on(he.default.MANAGED_MEDIA_SOURCE_START_STREAMING,x,Ce),ee.on(he.default.MANAGED_MEDIA_SOURCE_END_STREAMING,M,Ce)},reset:function(){ee.off(fe.default.URL_RESOLUTION_FAILED,j,Ce),ee.off(he.default.PLAYBACK_STARTED,q,Ce),ee.off(he.default.PLAYBACK_RATE_CHANGED,B,Ce),ee.off(he.default.PLAYBACK_TIME_UPDATED,F,Ce),ee.off(he.default.MANAGED_MEDIA_SOURCE_START_STREAMING,x,Ce),ee.off(he.default.MANAGED_MEDIA_SOURCE_END_STREAMING,M,Ce),O(),U(!1),G(),Fe=null},setShouldCheckPlaybackQuality:function(Rt){we=Rt},setInitSegmentRequired:function(Rt){Ne=Rt},setLastInitializedRepresentationId:function(Rt){xe=Rt},setup:D,setSwitchTrack:function(Rt){Ue=Rt},setTimeToLoadDelay:function(Rt){je=Rt},startScheduleTimer:P},D(),Ce}_l.__dashjs_factory_name="ScheduleController";var cs=ne.default.getClassFactory(_l);const gs=/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g;var hs=class extends wo{constructor(){super(),this.isPartialSegment=!0,this.replacementSubNumber=NaN,this.totalNumberOfPartialSegments=NaN}};function Il(Rt){return Rt?Rt.totalNumberOfPartialSegments&&!isNaN(Rt.totalNumberOfPartialSegments)&&Rt.totalNumberOfPartialSegments>0&&!isNaN(Rt.subNumberOfPartialSegmentToRequest)?function(Rt){const Ot=function(Rt,Ot){const ee=new hs,ne=Rt.segmentDurationInSeconds/Rt.totalNumberOfPartialSegments,{representation:re,timelineConverter:ie,isDynamic:le,index:oe,totalNumberOfPartialSegments:ue}=Rt,ce=kl({representation:re,segmentDurationInSeconds:ne,presentationStartTime:Rt.presentationStartTime+Ot*ne,presentationEndTime:Rt.presentationStartTime+(Ot+1)*ne,timelineConverter:ie,isDynamic:le,mediaTimeInSeconds:Rt.mediaTimeInSeconds+Ot*ne,index:oe});return ee.assignAttributes(ce),ee.replacementSubNumber=Ot,ee.totalNumberOfPartialSegments=ue,ee}(Rt,Rt.subNumberOfPartialSegmentToRequest);return Al(Ot,Rt),Ot}(Rt):function(Rt){const Ot=new Io,ee=kl(Rt);return Ot.assignAttributes(ee),Al(Ot,Rt),Ot}(Rt):null}function kl(Rt){const{representation:Ot,segmentDurationInSeconds:ee,presentationStartTime:ne,presentationEndTime:re,mediaTimeInSeconds:ie,timelineConverter:le,isDynamic:oe,index:ue}=Rt,ce={availabilityEndTime:le.calcAvailabilityEndTimeFromPresentationTime(re+ee,Ot,oe),availabilityStartTime:le.calcAvailabilityStartTimeFromPresentationTime(re,Ot,oe),duration:ee,index:ue,mediaStartTime:ie,presentationStartTime:ne,replacementNumber:Ot.startNumber+ue,representation:Ot};return ce.wallStartTime=le.calcWallTimeForSegment(ce,oe),ce}function Al(Rt,Ot){const{tManifest:ee,mediaTime:ne,mediaUrl:re,mediaRange:ie}=Ot;Rt.replacementTime=ee||ne,Rt.media=Nl(re,Rt.representation.id,Rt.replacementNumber,Rt.replacementSubNumber,Rt.representation.bandwidth,Rt.replacementTime),Rt.mediaRange=ie,Rt.mediaUrl=re}function Rl(Rt,Ot,ee,ne){const re=Ot.adaptation.period;
1if(isFinite(re.duration)&&re.start+re.duration<=ee.presentationStartTime)return!1;if(ne){if("INF"===Ot.availabilityTimeOffset)return!0;const ne=Rt.getClientReferenceTime();return ee.availabilityStartTime.getTime()<=ne&&(!isFinite(ee.availabilityEndTime)||ee.availabilityEndTime.getTime()>=ne)}return!0}function Nl(Rt,Ot,ee,ne,re,ie){return Rt?function(Rt,Ot,ee,ne,re,ie){return Rt.replace(gs,((Rt,le,oe,ue)=>{let ce,fe;switch(le){case void 0:return"$";case"RepresentationID":ce=Ot;break;case"Number":ce=ee;break;case"SubNumber":ce=ne;break;case"Bandwidth":ce=re;break;case"Time":if("string"==typeof ie)return ie;ce=ie?Math.round(ie):ie;break;default:ce=null}if(null==ce)return Rt;switch(ue){case void 0:case"d":case"i":case"u":fe=ce.toString();break;case"o":fe=ce.toString(8);break;case"x":fe=ce.toString(16);break;case"X":fe=ce.toString(16).toUpperCase();break;default:fe=ce.toString()}const ge=parseInt(oe,10)||1;return fe.padStart(ge,"0")}))}(Rt,Ot,ee,ne,re,ie):Rt}function Cl(Rt){const{index:Ot,isDynamic:ee,mediaRange:ne,mediaTime:re,mediaUrl:ie,representation:le,subNumberOfPartialSegmentToRequest:oe,timelineConverter:ue,totalNumberOfPartialSegments:ce}=Rt;let fe,ge,he;fe=le.segmentDuration,isNaN(fe)&&(fe=le.adaptation.period.duration),ge=parseFloat((le.adaptation.period.start+Ot*fe).toFixed(5)),he=parseFloat((ge+fe).toFixed(5));const pe=Il({index:Ot,isDynamic:ee,mediaRange:ne,mediaTime:re,mediaTimeInSeconds:ue.calcMediaTimeFromPresentationTime(ge,le),mediaUrl:ie,presentationEndTime:he,presentationStartTime:ge,representation:le,segmentDurationInSeconds:fe,subNumberOfPartialSegmentToRequest:oe,timelineConverter:ue,totalNumberOfPartialSegments:ce});return Rl(ue,le,pe,ee)?pe:null}function Dl(Rt){const{durationInTimescale:Ot,fTimescale:ee,index:ne,subNumberOfPartialSegmentToRequest:re,isDynamic:ie,mediaRange:le,mediaTime:oe,mediaUrl:ue,totalNumberOfPartialSegments:ce,representation:fe,tManifest:ge,timelineConverter:he}=Rt,pe=oe/ee,be=Ot/ee;let ye=he.calcPresentationTimeFromMediaTime(pe,fe),Ee=Il({representation:fe,segmentDurationInSeconds:be,presentationStartTime:ye,presentationEndTime:ye+be,mediaTimeInSeconds:pe,timelineConverter:he,isDynamic:ie,index:ne,totalNumberOfPartialSegments:ce,subNumberOfPartialSegmentToRequest:re,mediaUrl:ue,mediaRange:le,tManifest:ge,mediaTime:oe});return Rl(he,fe,Ee,ie)?Ee:null}function xl(Rt){return Rt.k}function Ml(Rt){const Ot=(Rt=Rt||{}).eventBus,ee=Rt.events,ne=Rt.abrController,re=Rt.dashMetrics,ie=Rt.playbackController,le=Rt.timelineConverter,oe=Rt.type,ue=Rt.streamInfo,ce=Rt.segmentsController,fe=Rt.isDynamic;let pe,be,ye;function p(){return oe}function b(){return ye?.mediaInfo.type===oe?ye:function(){let Rt=ye?.dependentRepresentation;if(Rt){if(!Rt.mediaInfo)throw new Error("dependentRepresentation has no mediaInfo!");if(Rt.mediaInfo.type===oe)return Rt}return null}()}function y(){ye=null,be=[]}function E(Rt){return new Promise(((Ot,ee)=>{const ne=Rt.hasInitialization(),ie=Rt.hasSegments(),oe=[];oe.push(ce.updateInitData(Rt,ne)),oe.push(ce.updateSegmentData(Rt,ie)),Promise.all(oe).then((ee=>{var ne;ee[0]&&!ee[0].error&&(Rt=function(Rt,Ot){return Ot&&!Ot.error&&Ot.representation?Ot.representation:Rt}(Rt,ee[0])),ee[1]&&!ee[1].error&&(Rt=function(Rt,Ot){if(!Ot||Ot.error)return;const ee=Ot.segments,ne=[];let re,ie,oe,ue,ce=0;for(re=0,ie=ee?ee.length:0;re<ie;re++)oe=ee[re],ue=Dl({durationInTimescale:oe.duration,fTimescale:oe.timescale,index:ce,isDynamic:fe,mediaRange:oe.mediaRange,mediaTime:oe.startTime,mediaUrl:oe.media,representation:Rt,timelineConverter:le}),ue&&(ne.push(ue),ue=null,ce++);return ne.length>0&&(Rt.segments=ne),Rt}(Rt,ee[1])),Rt.fragmentDuration=Rt.segmentDuration?Rt.segmentDuration:Rt.segments&&Rt.segments.length>0?Rt.segments[0].duration:NaN,(ne=Rt).mediaFinishedInformation=ce.getMediaFinishedInformation(ne),function(Rt){let Ot,ee=re.getCurrentManifestUpdate(),ne=!1;if(ee){for(let re=0;re<ee.representationInfo.length;re++)if(Ot=ee.representationInfo[re],Ot.index===Rt.index&&Ot.mediaType===p()){ne=!0;break}ne||re.addManifestUpdateRepresentationInfo(Rt,p())}}(Rt),Ot()})).catch((Rt=>{ee(Rt)}))}
1))}function T(Rt){if(!be||0===be.length)return null;const Ot=be.filter((Ot=>Ot.id===Rt));return Ot.length>0?Ot[0]:null}function _(Rt){Ot.trigger(ee.DATA_UPDATE_COMPLETED,{currentRepresentation:ye,error:Rt},{streamId:ue.id,mediaType:oe})}function v(Rt){ye&&ye.id===Rt.id||function(Rt){!function(){if(!(ne&&re&&ie&&le))throw new Error(ge.default.MISSING_CONFIG_ERROR)}();const ee=new Date,ce=1e3*ie.getTime();Rt&&re.addRepresentationSwitch(Rt.adaptation.type,ee,ce,Rt.id),Ot.trigger(he.default.REPRESENTATION_SWITCH,{mediaType:oe,streamId:ue.id,currentRepresentation:Rt},{streamId:ue.id,mediaType:oe})}(Rt),ye=Rt}function S(Rt){if(Rt.newDuration){const Ot=b();Ot&&Ot.adaptation.period&&(Ot.adaptation.period.duration=Rt.newDuration)}}return pe={getCurrentCompositeRepresentation:function(){return ye},getCurrentRepresentation:b,getRepresentationById:T,getStreamId:function(){return ue.id},getType:p,prepareQualityChange:function(Rt){const Ot=be.filter((Ot=>Ot.id===Rt.id));Ot.length>0&&v(Ot[0])},reset:function(){Ot.off(he.default.MANIFEST_VALIDITY_CHANGED,S,pe),y()},updateData:function(Rt,Ot,ee){return new Promise(((le,ce)=>{if(be=Rt,v(T(ee)),oe!==ge.default.VIDEO&&oe!==ge.default.ENHANCEMENT&&oe!==ge.default.AUDIO&&(oe!==ge.default.TEXT||!Ot))return _(),void le();const fe=[];for(let Rt=0,Ot=be.length;Rt<Ot;Rt++){const Ot=be[Rt];fe.push(E(Ot))}Promise.all(fe).then((()=>{!function(){ne.setPlaybackQuality(oe,ue,ye);const Rt=re.getCurrentDVRInfo(oe);Rt&&re.updateManifestUpdateInfo({latency:Rt.range.end-ie.getTime()}),_()}(),le()})).catch((Rt=>{ce(Rt)}))}))}},y(),Ot.on(he.default.MANIFEST_VALIDITY_CHANGED,S,pe),pe}Ml.__dashjs_factory_name="RepresentationController";var ps=ne.default.getClassFactory(Ml);
vendor: 4,235 bytes, line 1
1function Ol(Rt){const Ot=(Rt=Rt||{}).eventBus,ee=Rt.debug,ne=Rt.urlUtils,re=Rt.type,ie=Rt.streamInfo,le=Rt.segmentsController,oe=Rt.timelineConverter,ue=Rt.baseURLController;let ce,fe,ge,pe,be;function m(){return re}function p(){ge=null}function b(Rt,Ot,ee){const re=ue.resolve(ee.path);let ie,le,oe={};return re&&Ot!==re.url&&ne.isRelative(Ot)?(ie=re.url,le=re.serviceLocation,oe=re.queryParams,Ot&&(ie=ne.resolve(Ot,ie))):ie=Ot,!ne.isRelative(ie)&&(Rt.url=ie,Rt.serviceLocation=le,Rt.queryParams=oe,!0)}function y(Rt,Ot,ee){let ne=null;if(!Ot||!Ot.segmentInfoType)return ne;const re=le.getSegmentByTime(Ot,ee);return re&&(ge=re,fe.debug("Index for time "+ee+" is "+re.index),ne=E(0,re)),ne}function E(Rt,Ot){if(null==Ot)return null;const ee=new ln,ne=Ot.representation,re=ne.bandwidth,ie=Nl(Ot.media,ne.id,Ot.replacementNumber,Ot.replacementSubNumber,re,Ot.replacementTime);return ee.adaptationIndex=ne.adaptation.index,ee.availabilityEndTime=Ot.availabilityEndTime,ee.availabilityStartTime=Ot.availabilityStartTime,ee.availabilityTimeComplete=ne.availabilityTimeComplete,ee.bandwidth=ne.bandwidth,ee.duration=Ot.duration,ee.index=Ot.index,ee.isPartialSegmentRequest=Ot.isPartialSegment,ee.mediaStartTime=Ot.mediaStartTime,ee.mediaType=m(),ee.presentationStartTime=Ot.presentationStartTime,ee.range=Ot.mediaRange,ee.representation=ne,ee.startTime=Ot.presentationStartTime,ee.timescale=ne.timescale,ee.type=_e.HTTPRequest.MEDIA_SEGMENT_TYPE,ee.wallStartTime=Ot.wallStartTime,b(ee,ie,ne)?ee:void 0}function T(Rt){if(!Rt)return{indexToRequest:0,subNumberOfPartialSegmentToRequest:NaN};const Ot=Rt.isPartialSegment,ee=!isNaN(Rt.replacementSubNumber),ne=!isNaN(Rt.totalNumberOfPartialSegments);if(Ot&&ee&&ne){const Ot=Rt.replacementSubNumber+1;return Ot<Rt.totalNumberOfPartialSegments?{indexToRequest:Rt.index,subNumberOfPartialSegmentToRequest:Ot}:{indexToRequest:Rt.index+1,subNumberOfPartialSegmentToRequest:0}}return{indexToRequest:Rt.index+1,subNumberOfPartialSegmentToRequest:NaN}}function _(Rt,Ot,ee,ne){let re=null;const ie=le.getSegmentByIndex(Ot,ee,ne,ge);if(ie)re=E(0,ie),ge=ie;else{if(pe&&!be)return fe.debug(m()+" No segment found at index: "+ee+". Wait for next loop"),null;be=!0}return re}function v(){fe.debug("Dynamic stream complete"),be=!0}return ce={getCurrentIndex:function(){return ge?ge.index:-1},getInitRequest:function(Rt,Ot){return Ot?function(Rt,Ot,ee){const ne=new ln,re=Ot.adaptation.period,ie=re.start;if(ne.mediaType=ee,ne.type=_e.HTTPRequest.INIT_SEGMENT_TYPE,ne.range=Ot.range,ne.availabilityStartTime=oe.calcAvailabilityStartTimeFromPresentationTime(ie,Ot,pe),ne.availabilityEndTime=oe.calcAvailabilityEndTimeFromPresentationTime(ie+re.duration,Ot,pe),ne.representation=Ot,b(ne,Ot.initialization,Ot))return ne.url=Nl(ne.url,Ot.id,void 0,void 0,Ot.bandwidth),ne}(0,Ot,m()):null},getLastSegment:function(){return ge},getNextSegmentRequest:function(Rt,Ot){if(!Ot||!Ot.segmentInfoType)return null;if(function(Rt){return Rt&&ge&&Rt.endNumber&&ge.replacementNumber&&ge.replacementNumber>=Rt.endNumber}(Ot))return be=!0,null;let{indexToRequest:ee,subNumberOfPartialSegmentToRequest:ne}=T(ge);return _(0,Ot,ee,ne)},getNextSegmentRequestIdempotent:function(Rt,Ot){let ee=null,{indexToRequest:ne,subNumberOfPartialSegmentToRequest:re}=T(ge);const ie=le.getSegmentByIndex(Ot,ne,re,ge);return ie?(ee=E(0,ie),ee):null},getSegmentRequestForTime:y,getStreamId:function(){return ie.id},getStreamInfo:function(){return ie},getType:m,getValidTimeAheadOfTargetTime:function(Rt,Ot,ee,ne){try{if(isNaN(Rt)||!Ot||!ee)return NaN;if(Rt<0&&(Rt=0),isNaN(ne)&&(ne=.5),y(0,ee,Rt))return Rt;if(ee.adaptation.period.start+ee.adaptation.period.duration<Rt)return NaN;const re=isFinite(ee.adaptation.period.duration)?ee.adaptation.period.start+ee.adaptation.period.duration:Rt+30;let ie=Math.min(Rt+ne,re),le=NaN,oe=null;for(;ie<=re;){let Rt=null;if(ie<=re&&(Rt=y(0,ee,ie)),Rt){le=ie,oe=Rt;break}ie+=ne}if(oe){const Ot=oe.startTime+oe.duration;return Rt>oe.startTime&&Ot-Rt>ne?Rt:!isNaN(oe.startTime)&&Rt<oe.startTime&&le>oe.startTime?oe.startTime+.001:Math.min(Ot-ne,le)}return le}catch(Rt){return NaN}},initialize:function(Rt){pe=Rt,be=!1,le.initialize(Rt)},isLastSegmentRequested:function(Rt,Ot){if(!Rt||!ge)return!1;if(be)return!0;
1if(!isFinite(Rt.adaptation.period.duration))return!1;if(ge.presentationStartTime+ge.duration>Ot)return!1;if(Rt.mediaFinishedInformation&&!isNaN(Rt.mediaFinishedInformation.numberOfSegments)&&!isNaN(ge.index)&&ge.index>=Rt.mediaFinishedInformation.numberOfSegments-1){if(!pe||Rt.segmentInfoType===Xn.default.SEGMENT_TEMPLATE)return!0;if(pe&&Rt.segmentInfoType===Xn.default.SEGMENT_LIST&&Rt.adaptation.period.nextPeriodId)return!0}return!!(pe&&Rt.adaptation.period.nextPeriodId&&Rt.segmentInfoType===Xn.default.SEGMENT_TIMELINE&&Rt.mediaFinishedInformation&&!isNaN(Rt.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&ge&&!isNaN(ge.mediaStartTime)&&!isNaN(ge.duration)&&ge.mediaStartTime+ge.duration>=Rt.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},repeatSegmentRequest:function(Rt,Ot){return Ot&&Ot.segmentInfoType?_(0,Ot,ge?ge.index:0,ge&&ge.isPartialSegment&&!isNaN(ge.replacementSubNumber)?ge.replacementSubNumber:NaN):null},reset:function(){p(),Ot.off(he.default.DYNAMIC_TO_STATIC,v,ce)}},fe=ee.getLogger(ce),p(),Ot.on(he.default.DYNAMIC_TO_STATIC,v,ce),ce}Ol.__dashjs_factory_name="DashHandler";var ys=ne.default.getClassFactory(Ol);function Ll(Rt,Ot){const ee=(Rt=Rt||{}).timelineConverter,ne=Rt.dashMetrics;let re;function i(Rt,ne){if(function(){if(!ee)throw new Error(ge.default.MISSING_CONFIG_ERROR)}(),!Rt)return null;void 0===ne&&(ne=null);let re=null;const ie=ee.calcMediaTimeFromPresentationTime(ne,Rt);return function(Rt,Ot){const ee=function(Rt){return Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentTemplate||Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentList}(Rt),ne=ee.SegmentTimeline,re=ee.SegmentURL;let ie,le,oe,ue,ce,fe,ge=0,he=-1;fe=Rt.timescale,ie=ne.S;let pe=!1;const be=ie.length;for(oe=0;oe<be&&!pe;oe++)for(le=ie[oe],ce=0,le.hasOwnProperty("r")&&(ce=le.r),le.hasOwnProperty("t")&&(ge=le.t),ce<0&&(ce=l(Rt,ie[oe+1],le,fe,ge/fe)),ue=0;ue<=ce&&!pe;ue++)he++,pe=Ot({mediaTime:ge,segmentBase:ee,segmentURL:re,currentSElement:le,sElementCounterIncludingRepeats:he,sElementCounter:oe}),pe&&(Rt.segmentDuration=le.d/fe),ge+=le.d}(Rt,(function(ne){const le=Rt.timescale;return function(ne,ie){const{mediaTime:le,segmentBase:oe,segmentURL:ue,currentSElement:ce,sElementCounterIncludingRepeats:fe,sElementCounter:ge}=ie,he=ce.d,pe=Rt.timescale;return ne<le+he&&ne>=le&&(function(ne){const{segmentBase:ie,segmentURL:le,sElementCounter:oe,currentSElement:ue,mediaTime:ce,durationInTimescale:fe,fTimescale:ge,requiredMediaTimeInTimescaleUnits:he,sElementCounterIncludingRepeats:pe}=ne;let be=function(Rt,Ot,ee){let ne=Rt.media;return Ot&&(ne=Ot[ee].media||""),ne}(ie,le,oe),ye=function(Rt,Ot,ee){let ne=Rt.mediaRange;return Ot&&(ne=Ot[ee].mediaRange),ne}(ue,le,oe);const Ee=xl(ue),_e=function(Rt){if(!Rt||void 0===Rt.totalNumberOfPartialSegments||isNaN(Rt.totalNumberOfPartialSegments)||Rt.totalNumberOfPartialSegments<1)return;const{durationInTimescale:Ot,requiredMediaTimeInTimescaleUnits:ee,mediaTime:ne,totalNumberOfPartialSegments:re}=Rt,ie=Ot/re;for(let Rt=0;Rt<re;Rt++){const Ot=ne+Rt*ie;if(ee>=Ot&&ee<Ot+ie)return Rt}return NaN}({durationInTimescale:fe,requiredMediaTimeInTimescaleUnits:he,mediaTime:ce,totalNumberOfPartialSegments:Ee});re=Dl({timelineConverter:ee,isDynamic:Ot,representation:Rt,mediaTime:ce,durationInTimescale:fe,fTimescale:ge,mediaUrl:be,mediaRange:ye,index:pe,tManifest:ue.tManifest,totalNumberOfPartialSegments:Ee,subNumberOfPartialSegmentToRequest:_e})}({segmentBase:oe,segmentURL:ue,sElementCounter:ge,currentSElement:ce,mediaTime:le,durationInTimescale:he,fTimescale:pe,requiredMediaTimeInTimescaleUnits:ne,sElementCounterIncludingRepeats:fe}),!0)}(parseFloat((ie*le).toPrecision(15)),ne)})),re}function l(Rt,Ot,re,ie,le){let oe;if(Ot&&Ot.hasOwnProperty("t"))oe=Ot.t/ie;else try{let Ot=0;if(isNaN(Rt.adaptation.period.start)||isNaN(Rt.adaptation.period.duration)||!isFinite(Rt.adaptation.period.duration)){const Rt=ne.getCurrentDVRInfo();Ot=isNaN(Rt.end)?0:Rt.end}else Ot=Rt.adaptation.period.start+Rt.adaptation.period.duration;oe=ee.calcMediaTimeFromPresentationTime(Ot,Rt),Rt.segmentDuration=re.d/ie}catch(Rt){oe=0}return Math.max(Math.ceil((oe-le)/(re.d/ie))-1,0)}return re={getMediaFinishedInformation:function(Rt){if(!Rt)return 0;const Ot=(Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentTemplate||Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentList).SegmentTimeline;let ee,ne,re,ie,le,oe,ue=0,ce=0,fe=0;oe=Rt.timescale,ee=Ot.S;const ge=ee.length;for(re=0;re<ge;re++)for(ne=ee[re],le=0,ne.hasOwnProperty("r")&&(le=ne.r),ne.hasOwnProperty("t")&&(ue=ne.t,ce=ue/oe),le<0&&(le=l(Rt,ee[re+1],ne,oe,ce)),ie=0;ie<=le;ie++)fe++,ue+=ne.d,ce=ue/oe;return{numberOfSegments:fe,mediaTimeOfLastSignaledSegment:ce}},getSegmentByIndex:function(Rt,Ot){return Rt?i(Rt,Ot&&!isNaN(Ot.presentationStartTime)?Ot.presentationStartTime+Ot.duration+.01:0):null},getSegmentByTime:i},re}Ll.__dashjs_factory_name="TimelineSegmentsGetter";var Es=ne.default.getClassFactory(Ll);function Ul(Rt,Ot){const ee=(Rt=Rt||{}).timelineConverter;let ne;function r(Rt,ne,re){if(!Rt)return null;const ie=i(Rt),le=xl(ie);void 0!==le&&le>=0&&(re=void 0!==re&&re<le?re:0);const oe=Cl({index:ne=Math.max(ne,0),isDynamic:Ot,mediaTime:Math.round(ne*Rt.segmentDuration*Rt.timescale,10),mediaUrl:ie.media,representation:Rt,subNumberOfPartialSegmentToRequest:re,timelineConverter:ee,totalNumberOfPartialSegments:le});return oe&&Rt.endNumber&&oe.replacementNumber>Rt.endNumber?null:oe}function i(Rt){return Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentTemplate}return ne={getMediaFinishedInformation:function(Rt){const Ot={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!Rt)return Ot;const ee=Rt.segmentDuration;return isNaN(ee)?Ot.numberOfSegments=1:Ot.numberOfSegments=Math.ceil(Rt.adaptation.period.duration/ee),Ot},getSegmentByIndex:r,getSegmentByTime:function(Rt,Ot){if(!Rt)return null;const ne=Rt.segmentDuration;if(isNaN(ne))return null;let re=ee.calcPeriodRelativeTimeFromMpdRelativeTime(Rt,Ot);const ie=i(Rt),le=Math.floor(re/ne),oe=function(Rt){if(!Rt||void 0===Rt.totalNumberOfPartialSegments||isNaN(Rt.totalNumberOfPartialSegments)||Rt.totalNumberOfPartialSegments<1)return;const{totalNumberOfPartialSegments:Ot,representation:ee,requestedTimeRelativeToPeriodStart:ne,indexWithoutStartNumber:re}=Rt,ie=re*ee.segmentDuration,le=ee.segmentDuration/Ot,oe=ne-ie;let ue=Math.floor(oe/le);return ue=Math.max(0,Math.min(ue,Ot-1)),ue}({totalNumberOfPartialSegments:xl(ie),representation:Rt,requestedTimeRelativeToPeriodStart:re,indexWithoutStartNumber:le});return r(Rt,le,oe)}},ne}Ul.__dashjs_factory_name="TemplateSegmentsGetter";var _s=ne.default.getClassFactory(Ul);function ql(Rt,Ot){const ee=(Rt=Rt||{}).timelineConverter;let ne;function r(){if(!ee||!ee.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(ge.default.MISSING_CONFIG_ERROR)}function i(Rt,ne){if(r(),!Rt)return null;const re=Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentList,ie=re.SegmentURL.length,le=Rt&&!isNaN(Rt.startNumber)?Rt.startNumber:1,oe=Math.max(le-1,0),ue=Math.max(ne-oe,0);let ce=null;if(ue<ie){const ie=re.SegmentURL[ue];ce=Cl({index:ne,isDynamic:Ot,mediaRange:ie.mediaRange,mediaTime:(le+ne-1)*Rt.segmentDuration,representation:Rt,timelineConverter:ee}),ce&&(ce.media=ie.media?ie.media:"",ce.indexRange=ie.indexRange)}return ce}return ne={getSegmentByIndex:i,getSegmentByTime:function(Rt,Ot){if(r(),!Rt)return null;const ne=Rt.segmentDuration;if(isNaN(ne))return null;const re=ee.calcPeriodRelativeTimeFromMpdRelativeTime(Rt,Ot);return i(Rt,Math.floor(re/ne))},getMediaFinishedInformation:function(Rt){const Ot={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!Rt)return Ot;const ee=Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index].Representation[Rt.index].SegmentList,ne=Rt&&!isNaN(Rt.startNumber)?Rt.startNumber:1,re=Math.max(ne-1,0);return Ot.numberOfSegments=re+ee.SegmentURL.length,Ot}},ne}ql.__dashjs_factory_name="ListSegmentsGetter";var vs=ne.default.getClassFactory(ql);function Gl(Rt){const Ot=(Rt=Rt||{}).timelineConverter;let ee;function a(){if(!Ot||!Ot.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(ge.default.MISSING_CONFIG_ERROR)}function r(Rt,Ot){if(a(),!Rt)return null;const ee=Rt.segments?Rt.segments.length:-1;let ne;if(Ot<ee&&(ne=Rt.segments[Ot],ne&&ne.index===Ot))return ne;for(let re=0;re<ee;re++)if(ne=Rt.segments[re],ne&&ne.index===Ot)return ne;return null}return ee={getSegmentByIndex:r,getSegmentByTime:function(Rt,Ot){a();const ee=function(Rt,Ot){if(!Rt)return-1;const ee=Rt.segments,ne=ee?ee.length:null;let re,ie,le,oe,ue,ce=-1;if(ee&&ne>0)for(ue=0;ue<ne;ue++)if(ie=ee[ue],le=ie.presentationStartTime,oe=ie.duration,re=oe/2,Ot+re>=le&&Ot-re<le+oe){ce=ie.index;break}return ce}(Rt,Ot);return r(Rt,ee)},getMediaFinishedInformation:function(Rt){const Ot={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return Rt&&Rt.segments?(Ot.numberOfSegments=Rt.segments.length,Ot):Ot}},ee}Gl.__dashjs_factory_name="SegmentBaseGetter";var ws=ne.default.getClassFactory(Gl);function Yl(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.dashConstants,ne=Rt.type,re=Rt.segmentBaseController;let ie,le;function o(Rt){return Rt?Rt.segments?le[ee.SEGMENT_BASE]:le[Rt.segmentInfoType]:null}return ie={initialize:function(ne){le[ee.SEGMENT_TIMELINE]=Es(Ot).create(Rt,ne),le[ee.SEGMENT_TEMPLATE]=_s(Ot).create(Rt,ne),le[ee.SEGMENT_LIST]=vs(Ot).create(Rt,ne),le[ee.SEGMENT_BASE]=ws(Ot).create(Rt,ne)},updateInitData:function(Rt,Ot){return Ot?Promise.resolve():re.getSegmentBaseInitSegment({representation:Rt,mediaType:ne})},updateSegmentData:function(Rt,Ot){return Ot?Promise.resolve():re.getSegmentList({mimeType:Rt.mimeType,representation:Rt,mediaType:ne})},getSegmentByIndex:function(Rt,Ot,ne,re){const ie=o(Rt);return ie?Rt.segmentInfoType?Rt.segmentInfoType===ee.SEGMENT_TIMELINE?ie.getSegmentByIndex(Rt,re):Rt.segmentInfoType===ee.SEGMENT_TEMPLATE?ie.getSegmentByIndex(Rt,Ot,ne):ie.getSegmentByIndex(Rt,Ot):ie.getSegmentByIndex(Rt,Ot):null},getSegmentByTime:function(Rt,Ot){const ee=o(Rt);return ee?ee.getSegmentByTime(Rt,Ot):null},getMediaFinishedInformation:function(Rt){const Ot=o(Rt);return Ot?Ot.getMediaFinishedInformation(Rt):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},le={},ie}Yl.__dashjs_factory_name="SegmentsController";var Is=ne.default.getClassFactory(Yl);function Kl(){let Rt;return Rt={ntpToUTC:function(Rt){const Ot=new Date(Date.UTC(1900,0,1,0,0,0));return new Date(Ot.getTime()+Rt).getTime()}},Rt}Kl.__dashjs_factory_name="TimeUtils";var ks=ne.default.getSingletonFactory(Kl);function $l(Rt){Rt=Rt||{};let Ot,ee,ne,re,oe,ue,pe,be,ye,Ee,Se,we,Re,Ne,Ce,De,xe,Me,Oe=this.context,Pe=(0,ce.default)(Oe).getInstance(),Fe=Rt.abrController,Ue=Rt.adapter,je=Rt.boxParser,qe=Rt.capabilities,Ge=Rt.dashMetrics,We=Rt.errHandler,ln=Rt.fragmentModel,on=Rt.manifestModel,sn=Rt.mediaController,un=Rt.mediaPlayerModel,dn=Rt.mimeType,fn=Rt.playbackController,gn=Rt.segmentBlacklistController,bn=Rt.settings,yn=Rt.streamInfo,En=Rt.textController,Tn=Rt.timelineConverter,_n=Rt.type;function V(){return yn.id}function K(){return _n}function W(){Ee=[],re=null,ee=0,xe=!1,De=!1,we=!1,ue=null,Me=!1,it()}function $(Rt){return!isNaN(Rt)&&!isNaN(yn.duration)&&isFinite(yn.duration)&&Rt>=yn.start+yn.duration}function Q(Rt,ee=!0){if(Rt.sender)if(fn.getIsManifestUpdateInProgress())J();else if((!re.isText||En.isTextEnabled())&&Ot&&Rt.representationId&&!Ot.appendInitSegmentFromCache(Rt.representationId)){const Rt=Re.getCurrentRepresentation();if(0===Rt.range)return void X();const Ot=oe?oe.getInitRequest(re,Rt):null;Ot?ln.executeRequest(Ot):ee&&(Ne.setInitSegmentRequired(!0),J())}}function X(Rt,ne=!0){if(fn.getIsManifestUpdateInProgress()||Ot.getIsPruningInProgress())return void J();let ie=function(){let Rt;if(isNaN(ee)||K()===ge.default.TEXT&&!En.isTextEnabled())return null;if(oe){const Ot=vt();Rt=xe?oe.getSegmentRequestForTime(re,Ot,ee):De?oe.repeatSegmentRequest(re,Ot):oe.getNextSegmentRequest(re,Ot)}return Rt}();ie?(xe=!1,De=!1,function(Rt){isNaN(Rt.startTime+Rt.duration)||(ee=Rt.startTime+Rt.duration),Rt.delayLoadingTime=(new Date).getTime()+Ne.getTimeToLoadDelay(),Ne.setTimeToLoadDelay(0),function(Rt){let Ot=Rt.url;return Rt.range&&(Ot=Ot.concat("_",Rt.range)),gn.contains(Ot)}
1(Rt)?(ye.warn(`Fragment request url ${Rt.url} for stream id ${yn.id} and media type ${_n} is on the ignore list and will be skipped`),J()):(ye.debug(`Next fragment request url for stream id ${yn.id} and media type ${_n} is ${Rt.url} with request range ${Rt.range}`),ln.executeRequest(Rt))}(ie)):function(Rt){const Ot=Re.getCurrentRepresentation();try{if(bn.get().streaming.gaps.enableSeekFix&&(xe||0===fn.getTime())){let ne;if(be?be&&Ot.segmentInfoType===Xn.default.SEGMENT_TIMELINE&&(ne=function(Rt){return oe.getValidTimeAheadOfTargetTime(ee,re,Rt,bn.get().streaming.gaps.threshold)}(Ot)):ne=function(Rt){let Ot=oe.getValidTimeAheadOfTargetTime(ee,re,Rt,bn.get().streaming.gaps.threshold);return isNaN(Ot)&&ee>=Rt.adaptation.period.mpd.mediaPresentationDuration-Rt.segmentDuration&&(Ot=ee-.1),Ot}(Ot),!isNaN(ne)&&ne!==ee)return void function(Rt,Ot){fn.isSeeking()||0===fn.getTime()?(ye.warn(`Adjusting playback time ${Rt} because of gap in the manifest. Seeking by ${Rt-ee}`),fn.seek(Rt,!1,!1)):(ye.warn(`Adjusting buffering time ${Rt} because of gap in the manifest. Adjusting time by ${Rt-ee}`),Ct(Rt),Ot&&J())}(ne,Rt)}}catch(Rt){ye.error(Rt)}Z()||Rt&&J()}(ne)}function Z(){const Rt=Re.getCurrentRepresentation(),ne=oe.isLastSegmentRequested(Rt,ee);if(ne){const Rt=oe.getCurrentIndex();ye.debug(`Segment requesting for stream ${yn.id} has finished`),Pe.trigger(fe.default.STREAM_REQUESTING_COMPLETED,{segmentIndex:Rt},{streamId:yn.id,mediaType:_n}),Ot.segmentRequestingCompleted(Rt),_t()}return ne}function J(){const Rt=un.getScheduleTimeout();Ne.startScheduleTimer(Rt)}function tt(Rt){Ge.addBufferState(_n,Rt.state,Ne.getBufferTarget()),Rt.state!==ie.BUFFER_EMPTY||fn.isSeeking()||(ye.info("Buffer is empty! Stalling!"),Ge.pushPlayListTraceMetrics(new Date,Hr.REBUFFERING_REASON))}function et(Rt){ln.syncExecutedRequestsWithBufferedRange(Ot.getBuffer().getAllBufferRanges(),yn.duration),Rt.quotaExceeded&&Rt.from>fn.getTime()&&Ct(Rt.from),Rt.hasEnoughSpaceToAppend&&Rt.quotaExceeded&&Ne.startScheduleTimer()}function at(Rt){if(!Rt||!Rt.lastRequestAppended||!Rt.lastRequestAppended.url)return;let Ot=Rt.lastRequestAppended.url;Rt.lastRequestAppended.range&&(Ot=Ot.concat("_",Rt.lastRequestAppended.range)),ye.warn(`Blacklisting segment with url ${Ot}`),gn.add(Ot)}function rt(Rt){if(ye.debug(`Appended bytes for ${Rt.mediaType} and stream id ${Rt.streamId}`),Rt.segmentType===_e.HTTPRequest.INIT_SEGMENT_TYPE){const Ot=Rt.representationId;Ne.setLastInitializedRepresentationId(Ot),ye.info("["+_n+"] lastInitializedRepresentationId changed to "+Ot)}Se&&Se.enabled?ft(Se.newRepresentation,Se.oldRepresentation):Me||Ne.startScheduleTimer(0)}function it(){Se={newRepresentation:null,oldRepresentation:null,enabled:!1}}function lt(Rt){return new Promise((ee=>{if(!Re)return Promise.resolve();let ne=null;var ie;ne=Rt.newRepresentation?{selectedRepresentation:(ie=Rt).newRepresentation,currentMediaInfo:ie.newMediaInfo}:null!==re&&Ue.areMediaInfosEqual(re,Rt.newMediaInfo)?function(Rt){return{currentMediaInfo:Rt.newMediaInfo,selectedRepresentation:Re.getCurrentRepresentation()}}(Rt):function(Rt){let Ot=NaN;return Ot=!bn.get().streaming.abr.autoSwitchBitrate[Rt.newMediaInfo.type]&&Rt.previouslySelectedRepresentation?Rt.previouslySelectedRepresentation.bitrateInKbit:Fe.getInitialBitrateFor(_n),{selectedRepresentation:Fe.getOptimalRepresentationForBitrate(Rt.newMediaInfo,Ot,!1),currentMediaInfo:Rt.newMediaInfo}}(Rt),ot(ne.currentMediaInfo),Pe.trigger(),function(Rt){ue&&Rt.selectedRepresentation.dependentRepresentation&&(ye.info("["+_n+"] selectMediaInfo : call selectMediaInfo on enhancementStreamProcessor for index = "+Rt.selectedRepresentation.absoluteIndex),ue.selectMediaInfo(new Wo({newMediaInfo:Rt.selectedRepresentation.mediaInfo,newRepresentation:Rt.selectedRepresentation})))}(ne);const le=Fe.getPossibleVoRepresentations(re,!1);return Re.updateData(le,re.isFragmented,ne.selectedRepresentation.id).then((()=>{!function(){const Rt=Re.getCurrentCompositeRepresentation();Ot.getIsBufferingCompleted()||Ot.updateBufferTimestampOffset(Rt)}(),ee()})).catch((Rt=>{ye.error(Rt),ee()}))}))}function ot(Rt){Ue.areMediaInfosEqual(re,Rt)||Pe.trigger(he.default.NEW_TRACK_SELECTED,{value:Rt}),re=Rt,Fe.handleNewMediaInfo(re),Pe.trigger(fe.default.MEDIAINFO_UPDATED,{mediaType:_n,streamId:yn.id,currentMediaInfo:re})}function st(Rt){const ee=Rt.newRepresentation,ne=Rt.oldRepresentation,le=Dt();ee&&ne||ye.warn("_handleDifferentSwitchTypes() is missing the target representations"),Rt.reason&&Rt.reason.forceReplace?function(Rt,ee){ln.abortRequests(),Pe.trigger(fe.default.BUFFER_REPLACEMENT_STARTED,{mediaType:_n,streamId:yn.id},{mediaType:_n,streamId:yn.id}),Ne.setShouldCheckPlaybackQuality(!1),Ot.prepareForForceReplacementQualitySwitch(Rt,ee).then((()=>{ut()})).catch((()=>{ut()}))}(ee,ne):Rt&&Rt.reason&&Rt.reason.forceAbandon?function(Rt,ee){Ot.prepareForAbandon
1QualitySwitch(Rt,ee).then((()=>{dt()})).catch((()=>{dt()}))}(ee,ne):!un.getFastSwitchEnabled()||le&&le.isPartialSegment?ft(ee,ne):function(Rt,ee){const ne=fn.getTime();let le=1.5*(isNaN(Rt.fragmentDuration)?1:Rt.fragmentDuration);const oe=ln.getRequests({state:cn.FRAGMENT_MODEL_EXECUTED,time:ne+le,threshold:0})[0];if(oe&&!re.isText){const re=Ot.getBufferLevel(),ue=Fe.getAbandonmentStateFor(yn.id,_n);oe.bandwidth<Rt.bandwidth&&re>=le&&ue===ie.ALLOW_LOAD?Ot.prepareForFastQualitySwitch(Rt,ee).then((()=>{ct(ne,le)})).catch((()=>{ct(ne,le)})):ft(Rt,ee)}else ft(Rt,ee)}(ee,ne),Ge.pushPlayListTraceMetrics(new Date,Hr.REPRESENTATION_SWITCH_STOP_REASON),Ge.createPlaylistTraceMetrics(ee.id,1e3*fn.getTime(),fn.getPlaybackRate())}function ut(){kt(),it(),we=!1}function dt(){ln.abortRequests(),De=!0,Ne.setShouldCheckPlaybackQuality(!1),Ne.startScheduleTimer(),we=!1}function ct(Rt,Ot){ln.abortRequests(),Ct(Rt+Ot),Ne.setShouldCheckPlaybackQuality(!1),Ne.startScheduleTimer(),we=!1}function ft(Rt,ee){const ne=ln.getRequests({state:cn.FRAGMENT_MODEL_LOADING});if(ne&&ne.length>0)return ye.debug("Preparing for default quality switch: Waiting for ongoing segment request to be finished before applying switch."),Se.newRepresentation=Rt,Se.oldRepresentation=ee,void(Se.enabled=!0);Ot.prepareForDefaultQualitySwitch(Rt,ee).then((()=>{gt()})).catch((()=>{gt()}))}function gt(){Ne.setShouldCheckPlaybackQuality(!1),re.segmentAlignment||re.subSegmentAlignment?Ne.startScheduleTimer():At(),it(),we=!1}function mt(Rt){ye.info("onFragmentLoadingAbandoned request: "+Rt.request.url+" has been aborted"),fn.isSeeking()||Ne.getSwitchTrack()||we||(ye.info("onFragmentLoadingAbandoned request: "+Rt.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),Rt.request&&Rt.request.isInitializationRequest()?Ne.setInitSegmentRequired(!0):Ct(Rt.request.startTime+Rt.request.duration/2),Ne.startScheduleTimer(0))}function ht(Rt){ye.info("OnFragmentLoadingCompleted for stream id "+yn.id+" and media type "+_n+" - Url:",Rt.request?Rt.request.url:"undefined",Rt.request.range?", Range:"+Rt.request.range:""),re.isText&&Ne.startScheduleTimer(0),Rt.error&&Rt.request.serviceLocation&&function(Rt){ye.info("Fragment loading completed with an error"),Rt&&Rt.request&&Rt.request.type&&(Rt.request.type===_e.HTTPRequest.INIT_SEGMENT_TYPE?Q({representationId:Rt.request.representation.id,sender:{}},!1):Rt.request.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE&&(Ct(Rt.request.startTime+Rt.request.duration/2),X(0,!1)))}(Rt)}function pt(){Ct(fn.getTime()),Tt().startScheduleTimer()}function bt(Rt){const ee=Rt.currentTrackInfo;if(!ee)return;const ne=Ee.find((Rt=>Rt.index===ee.index&&Rt.lang===ee.lang));ne&&lt(new Wo({newMediaInfo:ne})).then((()=>{Ot.setIsBufferingCompleted(!1),Ct(fn.getTime()),Ne.setInitSegmentRequired(!0),Ne.startScheduleTimer()}))}function yt(Rt){Ct(Rt.quotaExceededTime),_t()}function Et(){return Ot?Ot.getBuffer():null}function Tt(){return Ne}function _t(){Ne&&Ne.clearScheduleTimer()}function vt(Rt=NaN){let Ot;return isNaN(Rt)?Ot=Re?Re.getCurrentRepresentation():null:((0,qn.checkInteger)(Rt),Ot=Re?Re.getRepresentationById(Rt):null),Ot}function St(){return!!Ot&&Ot.getIsBufferingCompleted()}function wt(Rt){if(!bn.get().streaming.enableManifestTimescaleMismatchFix)return;const Ot=Rt.chunk,ee=Ot.bytes,ne=vt(Ot.representation.id);ne&&(ne.timescale=je.getMediaTimescaleFromMoov(ee))}function It(Rt){const Ot=Rt.chunk,ee=Ot.bytes,ne=vt(Ot.representation.id);if(ne){let Ot;if(bn.get().streaming.parseInbandPrft&&Rt.request.type===_e.HTTPRequest.MEDIA_SEGMENT_TYPE){Ot=Ot||je.parse(ee);const Rt=function(Rt,Ot){const ee=Rt.getBoxes("prft"),ne=[];return ee.forEach((Rt=>{ne.push(function(Rt,Ot){let ee="unknown";switch(Rt.flags){case 0:ee=Xn.default.PRODUCER_REFERENCE_TIME_TYPE.ENCODER;break;case 16:ee=Xn.default.PRODUCER_REFERENCE_TIME_TYPE.APPLICATION;break;case 24:ee=Xn.default.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED}let ne=1e3*Rt.ntp_timestamp_sec+Rt.ntp_timestamp_frac/2**32*1e3;return ne=ks(Oe).getInstance().ntpToUTC(ne),{type:ee,ntpTimestamp:ne,mediaTime:Rt.media_time/Ot}}(Rt,Ot))})),ne}(Ot,ne.timescale);Rt&&Rt.length&&Pe.trigger(he.default.INBAND_PRFT,{data:Rt},{streamId:yn.id,mediaType:_n})}const re=Ue.getEventsFor(ne.mediaInfo,null,yn),ie=Ue.getEventsFor(ne,ne,yn);if(re&&re.length>0||ie&&ie.length>0){const ne=Rt.request;Ot=Ot||je.parse(ee);const le=function(Rt,Ot,ee,ne){try{const re={},ie=[],le=ee.concat(ne);for(let Rt=0,Ot=le.length;Rt<Ot;Rt++)re[le[Rt].schemeIdUri+"/"+le[Rt].value]=le[Rt];const oe=Rt.getBoxes("emsg");if(!oe||0===oe.length)return ie;const ue=Rt.getBox("sidx"),ce=!ue||isNaN(ue.earliest_presentation_time)||isNaN(ue.timescale)?Ot&&!isNaN(Ot.mediaStartTime)?Ot.mediaStartTime:0:ue.earliest_presentation_time/ue.timescale,fe=Math.max(ce,0),ge=Re.getCurrentRepresentation();for(let Rt=0,Ot=oe.length;Rt<Ot;Rt++){const Ot=Ue.getEvent(oe[Rt],re,fe,ge);Ot&&ie.push(Ot)}return ie}catch(Rt){return[]}}(Ot,ne,re,ie);Pe.trigger(fe.default.INBAND_EVENTS,{events:le},{streamId:yn.id})}}}function kt(){const Rt=fn.getTime();bn.get().streaming.buffer.flushBufferAtTrackSwitch&&fn.seek(Rt+.001,!1,!0),Ct(Rt),Ot.setSeekTarget(Rt),Ne.startScheduleTimer()}function At(){const Rt=fn.getTime(),ee=Ot.getContinuousBufferTimeForTargetTime(Rt);Ct(isNaN(ee)?Rt:ee),Ne.startScheduleTimer()}function Nt(Rt){Rt&&!isNaN(Rt.time)&&(Ct(Rt.time),Ot.setSeekTarget(Rt.time))}function Ct(Rt){ee=Rt,xe=!0}function Dt(){return oe.getLastSegment()}return pe={checkAndHandleCompletedBuffering:Z,clearScheduleTimer:_t,createBufferSinks:function(Rt,ee){const ne=Et();return ne?Promise.resolve(ne):Ot?Ot.createBufferSink(re,Rt,ee):Promise.resolve(null)},dischargePreBuffer:function(){Ot.dischargePreBuffer()},finalisePlayList:function(Rt,Ot){Ge.pushPlayListTraceMetrics(Rt,Ot)},getAllMediaInfos:function(){return Ee},getBuffer:Et,getBufferController:function(){return Ot},getBufferLevel:function(){return Ot?Ot.getBufferLevel():0},getFragmentModel:function(){return ln},getLastSegment:Dt,getMediaInfo:function(){return re},getMediaSource:function(){return Ot.getMediaSource()},getRepresentation:vt,getRepresentationController:function(){return Re},getScheduleController:Tt,getStreamId:V,getStreamInfo:function(){return yn},getType:K,initialize:function(re,ie,ue){Ce=Is(Oe).create({events:fe.default,eventBus:Pe,streamInfo:yn,timelineConverter:Tn,dashConstants:Xn.default,segmentBaseController:Rt.segmentBaseController,type:_n}),oe=ys(Oe).create({baseURLController:Rt.baseURLController,boxParser:je,constants:ge.default,dashConstants:Xn.default,dashMetrics:Ge,debug:(0,le.default)(Oe).getInstance(),errHandler:We,errors:zn,eventBus:Pe,events:fe.default,mediaPlayerModel:un,segmentsController:Ce,settings:bn,streamInfo:yn,timelineConverter:Tn,type:_n,urlUtils:ha(Oe).getInstance()}),be=yn.manifestInfo.isDynamic,oe.initialize(be),Fe.registerStreamType(_n,pe),Re=ps(Oe).create({abrController:Fe,adapter:Ue,dashConstants:Xn.default,dashMetrics:Ge,errors:zn,eventBus:Pe,events:fe.default,isDynamic:be,playbackController:fn,segmentsController:Ce,streamInfo:yn,timelineConverter:Tn,type:_n}),Ot=function(Rt,Ot){let ee=null;return Rt?(ee=Rt!==ge.default.TEXT||Ot?is(Oe).create({abrController:Fe,capabilities:qe,errHandler:We,fragmentModel:ln,manifestModel:on,mediaController:sn,mediaPlayerModel:un,playbackController:fn,representationController:Re,settings:bn,streamInfo:yn,textController:En,type:Rt}):us(Oe).create({errHandler:We,fragmentModel:ln,mimeType:dn,settings:bn,streamInfo:yn,textController:En,type:Rt}),ee):(We.error(new jn.default(zn.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,zn.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+"not properly defined")),null)}(_n,ue),Ot&&Ot.initialize(re),Ne=cs(Oe).create({abrController:Fe,adapter:Ue,bufferController:Ot,dashMetrics:Ge,fragmentModel:ln,mediaController:sn,mediaPlayerModel:un,mimeType:dn,playbackController:fn,representationController:Re,settings:bn,streamInfo:yn,textController:En,type:_n}),ne=ie,Ne.initialize(ie),ee=0,xe=!1,De=!1},isBufferingCompleted:St,prepareInnerPeriodPlaybackSeeking:function(Rt){return new Promise((ee=>{if(Ot.hasBufferAtTime(Rt.seekTime))return Ot.pruneBuffer(),$(Ot.getContinuousBufferTimeForTargetTime(Rt.seekTime))&&Ot.setIsBufferingCompleted(!0),void ee();_t(),ln.abortRequests(),Ot.prepareForPlaybackSeek().then((()=>{const ee=Ot.getAllRangesWithSafetyFactor(Rt.seekTime);return Ot.clearBuffers(ee)})).then((()=>{const ne=Ot.getContinuousBufferTimeForTargetTime(Rt.seekTime);if($(ne))Ot.setIsBufferingCompleted(!0),ee();else{const re=isNaN(ne)?Rt.seekTime:ne;Ct(re),Ot.setSeekTarget(re);const ie=[];ie.push(Ot.updateAppendWindow());const le=vt();ie.push(Ot.updateBufferTimestampOffset(le)),Promise.all(ie).then((()=>{Ne.setInitSegmentRequired(!0),Ne.setShouldCheckPlaybackQuality(!1),Ne.startScheduleTimer(),ee()}))}})).catch((Rt=>{ye.error(Rt)}))}
1))},prepareOuterPeriodPlaybackSeeking:function(){return new Promise(((Rt,ee)=>{try{_t(),ln.abortRequests(),Ot.prepareForPlaybackSeek().then((()=>Ot.pruneAllSafely())).then((()=>{Rt()}))}catch(Rt){ee(Rt)}}))},prepareQualityChange:function(Rt){Rt.newRepresentation&&(function(Rt){if(ue)ue.prepareQualityChange(Rt);else if(_n===ge.default.ENHANCEMENT){const Ot=Rt.oldRepresentation.mediaInfo.type,ee=Rt.newRepresentation.mediaInfo.type;if(Ot===ge.default.ENHANCEMENT&&ee===ge.default.VIDEO)return ye.info("Stop "+_n+" stream processor"),Ne.reset(),!0;if(Ot===ge.default.VIDEO&&ee===ge.default.ENHANCEMENT)return ye.info("Start "+_n+" stream processor"),lt(new Wo({newMediaInfo:Rt.newRepresentation.mediaInfo,newRepresentation:Rt.newRepresentation})).then((()=>{Ne.setup(),Ne.initialize(ne),Ne.startScheduleTimer()})),!0}return!1}(Rt)||(Se&&Se.enabled&&ye.warn(`Canceling queued representation switch to ${Se.newRepresentation.id} for ${_n}`),Rt.isAdaptationSetSwitch?(ye.debug(`Preparing quality switch to different AdaptationSet for type ${_n} from representation id ${Rt.oldRepresentation.id} to ${Rt.newRepresentation.id}`),function(Rt){const Ot=Rt.newRepresentation;we=!0,_t(),Ne.setSwitchTrack(!0);const ee=Ot.mediaInfo;ot(ee),lt(new Wo({newMediaInfo:ee,newRepresentation:Ot})).then((()=>{st(Rt)}))}(Rt)):(ye.debug(`Preparing quality within the same AdaptationSet for type ${_n} from representation id ${Rt.oldRepresentation.id} to ${Rt.newRepresentation.id}`),function(Rt){const Ot=Rt.newRepresentation;we=!0,_t(),Re.prepareQualityChange(Ot),st(Rt)}(Rt))))},prepareTrackSwitch:function(Rt,ee=!1){return new Promise((ne=>{ye.debug(`Preparing track switch for type ${_n}`);const re=_n===ge.default.TEXT||ee||bn.get().streaming.trackSwitchMode[_n]===ge.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&fn.getTimeToStreamEnd(yn)>bn.get().streaming.buffer.stallThreshold;Ot.getIsBufferingCompleted()&&!re?function(Rt){return new Promise((ee=>{const ne=Re.getCurrentRepresentation();Ot.prepareForNonReplacementTrackSwitch(ne,Rt).then((()=>{Pe.trigger(fe.default.BUFFERING_COMPLETED,{},{streamId:yn.id,mediaType:_n}),ee()})).catch((()=>{Pe.trigger(fe.default.BUFFERING_COMPLETED,{},{streamId:yn.id,mediaType:_n}),ee()}))}))}(Rt).then((()=>{ne()})):(Ne.setSwitchTrack(!0),re?function(Rt){return new Promise((ee=>{Pe.trigger(fe.default.BUFFER_REPLACEMENT_STARTED,{mediaType:_n,streamId:yn.id},{mediaType:_n,streamId:yn.id}),ln.abortRequests();const ne=vt();Ot.prepareForReplacementTrackSwitch(ne,Rt).then((()=>{kt(),ee()})).catch((()=>{kt(),ee()}))}))}(Rt).then((()=>{ne()})):function(Rt){return new Promise((ee=>{const a=()=>{const ne=ln.getRequests({state:cn.FRAGMENT_MODEL_LOADING});if(ne&&0!==ne.length)Pe.once(he.default.FRAGMENT_LOADING_COMPLETED,a,pe);else{const ne=vt();Ot.prepareForNonReplacementTrackSwitch(ne,Rt).then((()=>{At(),ee()})).catch((Rt=>{ye.error(Rt),At(),ee()}))}};a()}))}(Rt).then((()=>{ne()})))}))},probeNextRequest:function(){const Rt=vt();return oe.getNextSegmentRequestIdempotent(re,Rt)},reset:function(Rt,ee){oe&&oe.reset(),Ot&&(Ot.reset(Rt,ee),Ot=null),Ne&&(Ne.reset(),Ne=null),Re&&(Re.reset(),Re=null),Ce&&(Ce=null),Fe&&Fe.unRegisterStreamType(V(),_n),Pe.off(fe.default.BUFFER_CLEARED,et,pe),Pe.off(fe.default.BUFFER_LEVEL_STATE_CHANGED,tt,pe),Pe.off(fe.default.BYTES_APPENDED_END_FRAGMENT,rt,pe),Pe.off(fe.default.FRAGMENT_LOADING_ABANDONED,mt,pe),Pe.off(fe.default.FRAGMENT_LOADING_COMPLETED,ht,pe),Pe.off(fe.default.INIT_FRAGMENT_LOADED,wt,pe),Pe.off(fe.default.INIT_FRAGMENT_NEEDED,Q,pe),Pe.off(fe.default.MEDIA_FRAGMENT_LOADED,It,pe),Pe.off(fe.default.MEDIA_FRAGMENT_NEEDED,X,pe),Pe.off(fe.default.QUOTA_EXCEEDED,yt,pe),Pe.off(fe.default.SEEK_TARGET,Nt,pe),Pe.off(fe.default.SET_FRAGMENTED_TEXT_AFTER_DISABLED,pt,pe),Pe.off(fe.default.SET_NON_FRAGMENTED_TEXT,bt,pe),Pe.off(fe.default.SOURCE_BUFFER_ERROR,at,pe),W(),_n=null,yn=null},selectMediaInfo:lt,setEnhancementStreamProcessor:function(Rt){ue=Rt,ye.info("enhancementStreamProcessor = "+ue)},setExplicitBufferingTime:Ct,setMediaInfoArray:function(Rt){Ee=Rt},setMediaSource:function(Rt){return Ot.setMediaSource(Rt,re)},setTrackSwitchInProgress:function(Rt){Me=Rt},updateStreamInfo:function(Rt){return yn=Rt,St()?Promise.resolve():Ot.updateAppendWindow()}},ye=(0,le.default)(Oe).getInstance().getLogger(pe),W(),Pe.on(fe.default.BUFFER_CLEARED,et,pe),Pe.on(fe.default.BUFFER_LEVEL_STATE_CHANGED,tt,pe),Pe.on(fe.default.BYTES_APPENDED_END_FRAGMENT,rt,pe),Pe.on(fe.default.FRAGMENT_LOADING_ABANDONED,mt,pe),Pe.on(fe.default.FRAGMENT_LOADING_COMPLETED,ht,pe),Pe.on(fe.default.INIT_FRAGMENT_LOADED,wt,pe),Pe.on(fe.default.INIT_FRAGMENT_NEEDED,Q,pe),Pe.on(fe.default.MEDIA_FRAGMENT_LOADED,It,pe),Pe.on(fe.default.MEDIA_FRAGMENT_NEEDED,X,pe),Pe.on(fe.default.QUOTA_EXCEEDED,yt,pe),Pe.on(fe.default.SEEK_TARGET,Nt,pe),Pe.on(fe.default.SET_FRAGMENTED_TEXT_AFTER_DISABLED,pt,pe),Pe.on(fe.default.SET_NON_FRAGMENTED_TEXT,bt,pe),Pe.on(fe.default.SOURCE_BUFFER_ERROR,at,pe),pe}$l.__dashjs_factory_name="StreamProcessor";var As=ne.default.getClassFactory($l);function Jl(Rt){const Ot=this.context,ee=Rt.adapter,ne=Rt.baseURLController,re=Rt.streamInfo,ie=Rt.timelineConverter,le=Rt.debug,oe=Rt.eventBus,ue=Rt.events,ce=Rt.dashConstants,fe=ha(Ot).getInstance();let he,pe,be,ye,Ee,_e,Se,we,Re;function _(Rt,Ot){const re=new class{constructor(){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=""}};re.id=Rt.id,re.bitrate=Rt.bandwidth,re.width=Rt.width,re.height=Rt.height,re.tilesHor=1,re.tilesVert=1,Rt.essentialProperties&&Rt.essentialProperties.forEac
1h((Rt=>{if(ge.default.THUMBNAILS_SCHEME_ID_URIS.indexOf(Rt.schemeIdUri)>=0&&Rt.value){const Ot=Rt.value.split("x");2!==Ot.length||isNaN(Ot[0])||isNaN(Ot[1])||(re.tilesHor=parseInt(Ot[0],10),re.tilesVert=parseInt(Ot[1],10))}})),Ot?Se.updateSegmentData(Rt).then((Ot=>{!function(Rt,Ot,re){let le=[];const oe=function(Rt,Ot){const ne=[];let re,le,oe,ue,ce=0;for(re=0,le=Rt.segments.length;re<le;re++)oe=Rt.segments[re],ue=Dl({durationInTimescale:oe.duration,fTimescale:oe.timescale,index:ce,isDynamic:ee.getIsDynamic(),mediaRange:oe.mediaRange,mediaTime:oe.startTime,mediaUrl:oe.media,representation:Ot,timelineConverter:ie}),ue&&(ne.push(ue),ue=null,ce++);return ne}(re,Ot);Ot.segments=oe,Ot.fragmentDuration=Ot.segmentDuration||(Ot.segments&&Ot.segments.length>0?Ot.segments[0].duration:NaN),Rt.segmentDuration=Ot.segments[0].duration,Rt.readThumbnail=function(Rt,ee){let re=null;le.some((Ot=>{if(Ot.start<=Rt&&Ot.end>Rt)return re=Ot.url,!0})),re?ee(re):Ot.segments.some((re=>{if(re.mediaStartTime<=Rt&&re.mediaStartTime+re.duration>Rt){const Rt=ne.resolve(Ot.path),ie=new gi({method:"get",url:Rt.url,responseType:"arraybuffer",customData:{request:{range:re.mediaRange},onloadend:function(Rt){let Ot=Re.getSamplesInfo(Rt.target.response),ne=new Blob([Rt.target.response.slice(Ot.sampleList[0].offset,Ot.sampleList[0].offset+Ot.sampleList[0].size)],{type:"image/jpeg"}),ie=window.URL.createObjectURL(ne);le.push({start:re.mediaStartTime,end:re.mediaStartTime+re.duration,url:ie}),ee&&ee(ie)}}}),oe=new mi({request:ie});return we.load(ie,oe),!0}}))}}(re,Rt,Ot)})):(re.startNumber=Rt.startNumber,re.segmentDuration=Rt.segmentDuration,re.timescale=Rt.timescale,re.templateUrl=function(Rt){const Ot=fe.isRelative(Rt.media)?fe.resolve(Rt.media,ne.resolve(Rt.path).url):Rt.media;return Ot?Nl(Ot,Rt.id):""}(Rt)),re.tilesHor>0&&re.tilesVert>0&&(re.widthPerTile=re.width/re.tilesHor,re.heightPerTile=re.height/re.tilesVert,pe.push(re))}function v(){pe=[],be=[],Ee=-1,_e=null,ye&&(ye.reset(),ye=null)}return he={addTracks:function(){if(!re||!ee)return;if(_e=ee.getMediaInfoForType(re,ge.default.IMAGE),!_e)return;const Rt=ee.getVoRepresentations(_e);Rt&&Rt.length>0&&Rt.forEach((Rt=>{(Rt.segmentInfoType===Xn.default.SEGMENT_TEMPLATE&&Rt.segmentDuration>0&&Rt.media||Rt.segmentInfoType===Xn.default.SEGMENT_TIMELINE)&&_(Rt),Rt.segmentInfoType===Xn.default.SEGMENT_BASE&&_(Rt,!0),be.push(Rt)})),pe.length>0&&pe.sort(((Rt,Ot)=>Rt.bitrate-Ot.bitrate))},getCurrentTrack:function(){return Ee<0?null:pe[Ee]},getCurrentTrackIndex:function(){return Ee},getRepresentations:function(){return be},getThumbnailRequestForTime:function(Rt){let Ot;const ne=ee.getVoRepresentations(_e);for(let Rt=0;Rt<ne.length;Rt++)if(pe[Ee].id===ne[Rt].id){Ot=ne[Rt];break}return ye.getSegmentRequestForTime(_e,Ot,Rt)},getTracks:function(){return pe},reset:v,setTrackById:function(Rt){if(!pe||0===pe.length)return;const Ot=pe.findIndex((Ot=>Ot.id===Rt));-1!==Ot&&(Ee=Ot)},setTrackByIndex:function(Rt){pe&&0!==pe.length&&(Rt>=pe.length&&(Rt=pe.length-1),Ee=Rt)}},v(),we=Gn(Ot).create({}),Re=Pi(Ot).getInstance(),Se=Is(Ot).create({events:ue,eventBus:oe,streamInfo:re,timelineConverter:ie,dashConstants:ce,dashMetrics:Rt.dashMetrics,segmentBaseController:Rt.segmentBaseController,type:ge.default.IMAGE}),ye=ys(Ot).create({streamInfo:re,type:ge.default.IMAGE,timelineConverter:ie,segmentsController:Se,baseURLController:ne,debug:le,eventBus:oe,events:ue,dashConstants:ce,urlUtils:fe}),ye.initialize(!!ee&&ee.getIsDynamic()),he}Jl.__dashjs_factory_name="ThumbnailTracks";var Rs=ne.default.getClassFactory(Jl);function eo(Rt){const Ot=this.context,ee=Rt.streamInfo;let ne,re;function i(Rt){re.setTrackByIndex(Rt)}function l(){re&&re.reset()}return ne={getCurrentTrack:function(){return re.getCurrentTrack()},getCurrentTrackIndex:function(){return re.getCurrentTrackIndex()},getPossibleVoRepresentations:function(){return re.getRepresentations()},getStreamId:function(){return ee.id},initialize:function(){re.addTracks();const Rt=re.getTracks();Rt&&Rt.length>0&&i(0)},provide:function(Rt,Ot){if("function"!=typeof Ot)return;const ee=re.getCurrentTrack();let ne,ie;if(!ee||ee.segmentDuration<=0||null==Rt)return void Ot(null);ie=re.getThumbnailRequestForTime(Rt),ie&&(ee.segmentDuration=ie.duration),ne=Rt%ee.segmentDuration;const le=Math.floor(ne*ee.tilesHor*ee.tilesVert/ee.segmentDuration),oe=new class{constructor(){this.url=null,this.width=null,this.height=null,this.x=null,this.y=null}};if(oe.width=Math.floor(ee.widthPerTile),oe.height=Math.floor(ee.heightPerTile),oe.x=Math.floor(le%ee.tilesHor)*ee.widthPerTile,oe.y=Math.floor(le/ee.tilesHor)*ee.heightPerTile,"readThumbnail"in ee)return ee.readThumbnail(Rt,(Rt=>{oe.url=Rt,Ot(oe)}));if(ie)oe.url=ie.url,ee.segmentDuration=NaN;else{const Ot=Math.floor(Rt/ee.segmentDuration);oe.url=function(Rt,Ot){const ee=Ot+Rt.startNumber;return Nl(Rt.templateUrl,void 0,ee,void 0,Rt.bandwidth,(ee-1)*Rt.segmentDuration*Rt.timescale)}(ee,Ot)}Ot(oe)},reset:l,setTrackByIndex:i,setTrackById:function(Rt){re.setTrackById(Rt)}},l(),re=Rs(Ot).create({streamInfo:ee,adapter:Rt.adapter,baseURLController:Rt.baseURLController,timelineConverter:Rt.timelineConverter,debug:Rt.debug,eventBus:Rt.eventBus,events:Rt.events,dashConstants:Rt.dashConstants,dashMetrics:Rt.dashMetrics,segmentBaseController:Rt.segmentBaseController}),ne}
1eo.__dashjs_factory_name="ThumbnailController";var Ns=ne.default.getClassFactory(eo);const Cs=[ge.default.VIDEO,ge.default.AUDIO,ge.default.TEXT,ge.default.MUXED,ge.default.IMAGE];function ro(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=ha(Ot).getInstance(),re=Rt.manifestModel,ie=Rt.mediaPlayerModel,oe=Rt.dashMetrics,ue=Rt.manifestUpdater,pe=Rt.adapter,be=Rt.timelineConverter,ye=Rt.capabilities,Ee=Rt.errHandler,_e=Rt.abrController,Se=Rt.playbackController,we=Rt.throughputController,Re=Rt.eventController,Ne=Rt.mediaController,Ce=Rt.protectionController,De=Rt.textController,xe=Rt.videoModel;let Me=Rt.streamInfo;const Oe=Rt.settings;let Pe,Fe,Ue,je,qe,Ge,We,ln,on,sn,un,dn,cn,fn,gn,bn;function G(Rt,Ot,ee){return new Promise(((ne,ie)=>{Z(),tt();let le=xe.getElement();const oe=[];Cs.forEach((Ot=>{if((Ot!==ge.default.TEXT||Rt)&&(Ot!==ge.default.VIDEO||!le||le&&/^VIDEO$/i.test(le.nodeName))){const ne=ee.find((Rt=>Rt.mediaInfo.type===Ot));oe.push(H(Ot,Rt,ne))}})),Promise.all(oe).then((()=>function(Rt){return new Promise((Ot=>{const ee={},ne=fn.map((Ot=>{const ee=Ot.getRepresentation();return Ot.createBufferSinks(Rt,ee)}));Promise.all(ne).then((Rt=>{Rt.forEach((Rt=>{Rt&&(ee[Rt.getType()]=Rt)})),Ot(ee)})).catch((()=>{Ot(ee)}))}))}(Ot))).then((Ot=>{if(0===fn.length){const Rt="No streams to play.";Ee.error(new jn.default(zn.MANIFEST_ERROR_ID_NOSTREAMS_CODE,Rt,re.getValue())),un.fatal(Rt)}else ct();Rt&&De.createTracks(Me),ne(Ot)})).catch((Rt=>{ie(Rt)}))}))}function H(ne,re,ie){let le,oe=pe.getAllMediaInfoForType(Me,ne),ue=[],ce=null,he=-1;if(!oe||0===oe.length)return un.info("No "+ne+" data."),Promise.resolve();ne===ge.default.VIDEO&&(Ge=!0),ne===ge.default.AUDIO&&(je=!0);for(let Rt=0,Ot=oe.length;Rt<Ot;Rt++)ce=oe[Rt],ne===ge.default.TEXT&&ce.isEmbedded&&(De.addEmbeddedTrack(Me,ce),ue.push(ce)),Y(ce)&&Ne.addTrack(ce),ce.type===ge.default.ENHANCEMENT&&(he=Rt);if(ue.length>0&&(Ne.setInitialMediaSettingsForType(ne,Me),De.addMediaInfosToBuffer(Me,ne,ue)),oe=oe.filter((Rt=>!Rt.isEmbedded)),0===oe.length)return Promise.resolve();if(ne===ge.default.IMAGE)return gn=Ns(Ot).create({streamInfo:Me,adapter:pe,baseURLController:Rt.baseURLController,timelineConverter:Rt.timelineConverter,debug:Fe,eventBus:ee,events:fe.default,dashConstants:Xn.default,dashMetrics:Rt.dashMetrics,segmentBaseController:Rt.segmentBaseController}),gn.initialize(),Promise.resolve();ee.trigger(fe.default.STREAM_INITIALIZING,{streamInfo:Me,mediaInfo:ce}),Ne.setInitialMediaSettingsForType(ne,Me);let be=V(oe,re,ne);if(he>=0){let Rt=new class{constructor(Rt){this.eventBus=Rt,this.reset()}get duration(){return this._duration}set duration(Rt){if("open"!==this._readyState)throw new Error("ExternalMediaSource is not open");this._duration=Rt}get readyState(){return this._readyState}addSourceBuffer(Rt){if("open"!==this._readyState)throw new Error("ExternalMediaSource is not open");const Ot=new Lo(Rt,this.eventBus);return this.sourceBuffers.set(Ot,Rt),Ot}removeSourceBuffer(Rt){if(!this.sourceBuffers.has(Rt))throw new Error("ExternalSourceBuffer not found");this.sourceBuffers.delete(Rt)}open(){this._readyState="open",this.eventBus.trigger("externalMediaSourceOpen",{})}endOfStream(){if("open"!==this._readyState)throw new Error("ExternalMediaSource is not open");this._readyState="ended",this.eventBus.trigger("externalMediaSourceEnded",{})}close(){this._readyState="closed",this.eventBus.trigger("externalMediaSourceClosed",{})}reset(){this.sourceBuffers=new Map,this._duration=NaN,this._readyState="closed"}}(ee);Rt.open(),Rt.duration=Me.manifestInfo.duration;let Ot=V(oe,Rt,ge.default.ENHANCEMENT);Ot.selectMediaInfo(new Wo({newMediaInfo:oe[he]})),be.setEnhancementStreamProcessor(Ot)}if(le=Ne.getCurrentTrackFor(ne,Me.id),le){const Rt=ne===ge.default.TEXT&&le.isEmbedded?oe[0]:le,Ot=new Wo({newMediaInfo:Rt,previouslySelectedRepresentation:ie});return be.selectMediaInfo(Ot)}return Promise.resolve()}function Y(Rt){const Ot=Rt?Rt.type:null;let ee;return Ot===ge.default.MUXED?(ee="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",un.fatal(ee),Ee.error(new jn.default(zn.MANIFEST_ERROR_ID_MULTIPLEXED_CODE,ee,re.getValue())),!1):!(Ot!==ge.default.TEXT&&Ot!==ge.default.IMAGE&&Rt.contentProtection&&Rt.contentProtection.length>0&&!ye.supportsEncryptedMedia()&&(Ee.error(new jn.default(zn.CAPABILITY_MEDIAKEYS_ERROR_CODE,zn.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE)),1))}function V(ee,ne,le){const oe=ee&&ee.length>0?ee.filter((Rt=>Rt.type===le))[0]:null;let ue=Ue.getModel(oe?oe.type:null);const ce=oe?oe.type:null,fe=oe?oe.mimeType:null,he=oe?oe.isFragmented:null;let Re=As(Ot).create({abrController:_e,adapter:pe,baseURLController:Rt.baseURLController,boxParser:Pe,capabilities:ye,dashMetrics:Rt.dashMetrics,errHandler:Ee,fragmentModel:ue,manifestModel:re,mediaController:Ne,mediaPlayerModel:ie,mimeType:fe,playbackController:Se,segmentBaseController:Rt.segmentBaseController,segmentBlacklistController:cn,settings:Oe,streamInfo:Me,textController:De,throughputController:we,timelineConverter:be,type:ce});return Re.initialize(ne,Ge,he),fn.push(Re),Re.setMediaInfoArray(ee),ce===ge.default.TEXT&&De.addMediaInfosToBuffer(Me,ce,ee,ue),Re}function K(Rt){let Ot=fn?fn.length:0;for(let ee=0;ee<Ot;ee++){let Ot=fn[ee].getFragmentModel();Ot.abortRequests(),Ot.resetInitialSettings(),fn[ee].reset(!1,Rt)}De&&De.deactivateStream(Me),gn&&(gn.reset(),gn=null),fn=[],ln=!1,qe=!1,ft(!1),$(!1),ee.trigger(fe.default.STREAM_DEACTIVATED,{streamInfo:Me})}function W(Rt){K(Rt),sn=!1,Ge=!1,je=!1,on=!1,bn=[]}function $(Rt){on=Rt}function Q(){return Me?Me.start:NaN}function X(){return Me?Me.id:null}function Z(){if(!xe||!_e)throw new Error(ge.default.MISSING_CONFIG_ERROR)}function J(Rt){Rt.error&&(Ee.error(Rt.error),un.fatal(Rt.error.message))}function tt(){if(Re){const Rt=pe.getEventsFor(Me);Rt&&Rt.length>0&&Re.addInlineEvents(Rt,Me.id)}}function et(Rt){let Ot=nt(Rt);return Ot?Ot.getMediaInfo():null}function nt(Rt){return Rt?fn.find((Ot=>Ot.getType()===Rt)):null}function at(){let Rt=ut();const Ot=Rt.length;if(0!==Ot){for(let ee=0;ee<Ot;ee++)if(!Rt[ee].isBufferingCompleted()&&(Rt[ee].getType()===ge.default.AUDIO||Rt[ee].getType()===ge.default.VIDEO))return void un.debug("onBufferingCompleted - One streamProcessor has finished but",Rt[ee].getType(),"one is not buffering completed");un.debug("onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),qe=!0,ee.trigger(fe.default.STREAM_BUFFERING_COMPLETED,{streamInfo:Me},{streamInfo:Me})}else un.warn("onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}function rt(Rt){Re&&Re.addInbandEvents(Rt.events,Me.id)}function it(){ct()}function lt(){tt()}function ot(Rt){return Rt&&Rt.type?st(Rt.type):null}function st(Rt){return Rt?ut().filter((function(Ot){return Ot.getType()===Rt}))[0]:null}function ut(){let Rt,Ot,ee=[];for(let ne=0;ne<fn.length;ne++)Ot=fn[ne],Rt=Ot.getType(),Rt!==ge.default.AUDIO&&Rt!==ge.default.VIDEO&&Rt!==ge.default.TEXT&&Rt!==ge.default.ENHANCEMENT||ee.push(Ot);return ee}function dt(){const Rt=fn.length;for(let Ot=0;Ot<Rt&&fn[Ot];Ot++)fn[Ot].getScheduleController().startScheduleTimer()}function ct(){const Rt=fn.length;if(Ce){Ce.clearMediaInfoArray();for(let Ot=0;Ot<Rt&&fn[Ot];Ot++){const Rt=fn[Ot].getType(),ee=fn[Ot].getMediaInfo();if(Rt===ge.default.AUDIO||Rt===ge.default.VIDEO||Rt===ge.default.TEXT&&ee&&ee.isFragmented){let Rt=fn[Ot].getMediaInfo();Rt&&Ce.initializeForMedia(Rt)}}Ce.handleKeySystemFromManifest()}sn||(sn=!0,xe.waitForReadyState(ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,(()=>{ee.trigger(fe.default.STREAM_INITIALIZED,{streamInfo:Me})})))}function ft(Rt){dn=Rt}function gt(){return dn}return We={activate:function(Rt,Ot,ne=[]){return new Promise(((re,ie)=>
1{if(!ln)return gt()?(ln=!0,ee.trigger(fe.default.STREAM_ACTIVATED,{streamInfo:Me}),void re()):void function(Rt,Ot,ee=[]){return G(Rt,Ot,ee)}(Rt,Ot,ne).then((()=>{ln=!0,ne&&ne.length>0&&dt(),ee.trigger(fe.default.STREAM_ACTIVATED,{streamInfo:Me}),re()})).catch((Rt=>{ie(Rt)}));re()}))},checkAndHandleCompletedBuffering:function(){qe||fn.forEach((Rt=>{Rt.checkAndHandleCompletedBuffering()}))},deactivate:K,getAdapter:function(){return pe},getCurrentMediaInfoForType:function(Rt){const Ot=st(Rt);return Ot?Ot.getMediaInfo():null},getCurrentRepresentationForType:function(Rt){const Ot=st(Rt);return Ot?Ot.getRepresentation():null},getDuration:function(){return Me?Me.duration:NaN},getHasAudioTrack:function(){return je},getHasFinishedBuffering:function(){return qe},getHasVideoTrack:function(){return Ge},getId:X,getIsActive:function(){return ln},getIsEndedEventSignaled:function(){return on},getPreloaded:gt,getRepresentationForTypeById:function(Rt,Ot){let ee;if(Rt===ge.default.IMAGE){if(!gn)return null;ee=gn.getPossibleVoRepresentations()}else{const Ot=function(Rt){let Ot=nt(Rt);return Ot?Ot.getAllMediaInfos():[]}(Rt);ee=Ot.flatMap((Rt=>_e.getPossibleVoRepresentationsFilteredBySettings(Rt,!0)))}if(!ee||0===ee.length)return null;const ne=ee.filter((Rt=>Rt.id===Ot));return ne&&ne.length>0?ne[0]:null},getRepresentationForTypeByIndex:function(Rt,Ot){let ee;if(Rt===ge.default.IMAGE){if(!gn)return null;ee=gn.getPossibleVoRepresentations()}else{const Ot=et(Rt);ee=_e.getPossibleVoRepresentationsFilteredBySettings(Ot,!0)}return ee[Ot=Math.max(Math.min(Ot,ee.length-1),0)]},getRepresentationsByType:function(Rt){if(Z(),Rt===ge.default.IMAGE)return gn?gn.getPossibleVoRepresentations():[];const Ot=et(Rt);return _e.getPossibleVoRepresentationsFilteredBySettings(Ot,!0)},getStartTime:Q,getStreamId:function(){return Me?Me.id:null},getStreamInfo:function(){return Me},getStreamProcessors:ut,getThumbnailController:function(){return gn},initialize:function(){ee.on(fe.default.BUFFERING_COMPLETED,at,We),ee.on(fe.default.INBAND_EVENTS,rt,We),ee.on(fe.default.DATA_UPDATE_COMPLETED,it,We),ee.on(he.default.PLAYBACK_SEEKED,lt,We),Ce&&(ee.on(fe.default.KEY_ERROR,J,We),ee.on(fe.default.SERVER_CERTIFICATE_UPDATED,J,We),ee.on(fe.default.LICENSE_REQUEST_COMPLETE,J,We),ee.on(fe.default.KEY_SYSTEM_SELECTED,J,We),ee.on(fe.default.KEY_SESSION_CREATED,J,We)),De.initializeForStream(Me),ee.trigger(fe.default.STREAM_UPDATED,{streamInfo:Me})},initializeForTextWithMediaSource:function(Rt){return new Promise(((Ot,ee)=>{H(ge.default.TEXT,Rt,null).then((()=>function(){const Rt=st(ge.default.TEXT);return Rt?Rt.createBufferSinks():Promise.resolve()}())).then((()=>{De.createTracks(Me),Ot()})).catch((Rt=>{ee(Rt)}))}))},prepareQualityChange:function(Rt){const Ot=st(Rt.mediaType);Ot&&Ot.prepareQualityChange(Rt)},prepareTrackChange:function(Rt){if(!ln||!Me)return;qe=!1;let Ot=Rt.newMediaInfo,ee=re.getValue(),ne=ot(Ot);if(!ne)return;let ie=Se.getTime();if(un.info("Stream -  Process track changed at current time "+ie),ee.refreshManifestOnSwitchTrack)bn.push(Rt),ue.getIsUpdating()||(un.debug("Stream -  Refreshing manifest for switch track"),ue.refreshManifest());else{ne.clearScheduleTimer(),ne.setTrackSwitchInProgress(!0);const ee=ne.getRepresentation();ne.selectMediaInfo(new Wo({newMediaInfo:Ot})).then((()=>{const Ot=!!(Rt&&Rt.options&&Rt.options.hasOwnProperty("replaceBuffer"))&&Rt.options.replaceBuffer;return ne.prepareTrackSwitch(ee,Ot)})).then((()=>{ne.setTrackSwitchInProgress(!1)}))}},reset:function(Rt){Ue&&(Ue.reset(),Ue=null),_e&&Me&&_e.clearDataForStream(Me.id),cn&&(cn.reset(),cn=null),De&&Me&&De.clearDataForStream(Me.id),Ne&&Me&&Ne.clearDataForStream(Me.id),W(Rt),Me=null,ee.off(fe.default.BUFFERING_COMPLETED,at,We),ee.off(fe.default.INBAND_EVENTS,rt,We),ee.off(fe.default.DATA_UPDATE_COMPLETED,it,We),ee.off(he.default.PLAYBACK_SEEKED,lt,We),Ce&&(ee.off(fe.default.KEY_ERROR,J,We),ee.off(fe.default.SERVER_CERTIFICATE_UPDATED,J,We),ee.off(fe.default.LICENSE_REQUEST_COMPLETE,J,We),ee.off(fe.default.KEY_SYSTEM_SELECTED,J,We),ee.off(fe.default.KEY_SESSION_CREATED,J,We))},setIsEndedEventSignaled:$,setMediaSource:function(Rt){return new Promise(((Ot,ee)=>{const ne=[];for(let Ot=0;Ot<fn.length;)Y(fn[Ot].getMediaInfo())?(ne.push(fn[Ot].setMediaSource(Rt)),Ot++):(fn[Ot].reset(),fn.splice(Ot,1));Promise.all(ne).then((()=>{for(let Rt=0;Rt<fn.length;Rt++)fn[Rt].dischargePreBuffer();if(0===fn.length){const Rt="No streams to play.";Ee.error(new jn.default(zn.MANIFEST_ERROR_ID_NOSTREAMS_CODE,Rt+"nostreams",re.getValue())),un.fatal(Rt)}Ot()})).catch((Rt=>{un.error(Rt),ee(Rt)}))}
1))},startPreloading:function(Rt,Ot,ee=[]){return new Promise(((ne,re)=>{gt()?re():(un.info(`[startPreloading] Preloading next stream with id ${X()}`),ft(!0),G(Rt,Ot,ee).then((()=>{for(let Rt=0;Rt<fn.length&&fn[Rt];Rt++)fn[Rt].setExplicitBufferingTime(Q()),fn[Rt].getScheduleController().startScheduleTimer();ne()})).catch((()=>{ft(!1),re()})))}))},startScheduleControllers:dt,triggerProtectionError:function(Rt){J(Rt)},updateData:function(Rt){return new Promise((Ot=>{Me=Rt,Re&&tt();let ne,re=[];for(let Rt=0,Ot=fn.length;Rt<Ot;Rt++){let Ot=fn[Rt];const ee=Ot.getMediaInfo();re.push(Ot.updateStreamInfo(Me));let ne=pe.getAllMediaInfoForType(Me,Ot.getType());if(ne=ne.filter((Rt=>!Rt.isEmbedded)),Ot.setMediaInfoArray(ne),ne)for(let Rt=0;Rt<ne.length;Rt++)pe.areMediaInfosEqual(ee,ne[Rt])&&re.push(Ot.selectMediaInfo(new Wo({newMediaInfo:ne[Rt]})))}Promise.all(re).then((()=>{let Rt=[];for(;bn.length>0;){let Ot=bn.pop(),ee=Ot.newMediaInfo;if(ne=ot(Ot.oldMediaInfo),!ne)return;const re=ne.getRepresentation();ne.setTrackSwitchInProgress(!0),Rt.push(ne.prepareTrackSwitch(re)),Rt.push(ne.selectMediaInfo(new Wo({newMediaInfo:ee})))}return Promise.all(Rt)})).then((()=>{ct(),ne&&ne.setTrackSwitchInProgress(!1),ee.trigger(fe.default.STREAM_UPDATED,{streamInfo:Me}),Ot()})).catch((Rt=>{Ee.error(Rt)}))}))}},function(){try{Fe=(0,le.default)(Ot).getInstance(),un=Fe.getLogger(We),W(),Pe=Pi(Ot).getInstance(),cn=Ln(Ot).create({updateEventName:fe.default.SEGMENT_LOCATION_BLACKLIST_CHANGED,addBlacklistEventName:fe.default.SEGMENT_LOCATION_BLACKLIST_ADD}),Ue=qo(Ot).create({streamInfo:Me,mediaPlayerModel:ie,dashMetrics:oe,errHandler:Ee,settings:Oe,boxParser:Pe,dashConstants:Xn.default,urlUtils:ne})}catch(Rt){throw Rt}}(),We}ro.__dashjs_factory_name="Stream";var Ds=ne.default.getClassFactory(ro);function lo(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance(),ee=ha(Rt).getInstance();let ne,re,ie,oe,ue,ge,he,pe,be,ye,Ee,Se,we,Re,Ne,Ce;function v(){pe=[],be=[],ye=null,Ee=null,we=null,Se=NaN,ie=!1,oe=!1,Re=ue.get().streaming.utcSynchronization.timeBetweenSyncAttempts}function S(){ue.get().streaming.utcSynchronization.enabled&&!ie&&!oe&&we&&we.value&&we.schemeIdUri&&!isNaN(Se)&&!isNaN(ue.get().streaming.utcSynchronization.backgroundAttempts)&&(Ee&&(Date.now()-Ee)/1e3<30||(pe=[],oe=!0,I(isNaN(ue.get().streaming.utcSynchronization.backgroundAttempts)?2:ue.get().streaming.utcSynchronization.backgroundAttempts)))}function I(Rt){try{if(Rt<=0)return void L();const Ot=Date.now();ge[we.schemeIdUri](we.value,(function(ee){const ne=Date.now(),re=A(Ot,ne,ee);pe.push(re),I(Rt-1)}),(function(){L()}))}catch(Rt){L()}}function k(Rt=null){let Ot=Rt||0;if(!be||0===be.length||Ot>=be.length)return void R();let ee=be[Ot];if(ee)if(ge.hasOwnProperty(ee.schemeIdUri)){const Rt=(new Date).getTime();ge[ee.schemeIdUri](ee.value,(function(Ot){const ne=(new Date).getTime(),re=A(Rt,ne,Ot);we=ee,R(re)}),(function(){k(Ot+1)}))}else k(Ot+1);else R()}function A(Rt,Ot,ee){return ee-(Ot-(Ot-Rt)/2)}function R(Rt=NaN){let Ot=isNaN(Rt);Ot&&ue.get().streaming.utcSynchronization.useManifestDateHeaderTimeSource?function(){let Rt=he.getLatestMPDRequestHeaderValueByID("Date"),Ot=null!==Rt?new Date(Rt).getTime():Number.NaN;isNaN(Ot)?z(!0):z(!1,Ot-Date.now())}():z(Ot,Rt)}function N(Rt){let Ot=Date.parse(Rt);return isNaN(Ot)&&(Ot=function(Rt){let Ot,ee,ne=/^([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(Rt);return Ot=Date.UTC(parseInt(ne[1],10),parseInt(ne[2],10)-1,parseInt(ne[3],10),parseInt(ne[4],10),parseInt(ne[5],10),ne[6]&&(parseInt(ne[6],10)||0),ne[7]&&1e3*parseFloat(ne[7])||0),ne[9]&&ne[10]&&(ee=60*parseInt(ne[9],10)+parseInt(ne[10],10),Ot+=("+"===ne[8]?-1:1)*ee*60*1e3),new Date(Ot).getTime()}(Rt)),Ot}function C(Rt){return Date.parse(Rt)}function D(Rt){return Date.parse(Rt)}function x(Rt,Ot,ee){ee()}function M(Rt,Ot,ee){let ne=N(Rt);isNaN(ne)?ee():Ot(ne)}function P(Rt,Ot,ne,re,ie){let le,oe,ue=!1,ce=new XMLHttpRequest,fe=ie?_e.HTTPRequest.HEAD:_e.HTTPRequest.GET,ge=Ot.match(/\S+/g);
1if(Ot=ge.shift(),le=function(){ue||(ue=!0,ge.length?P(Rt,ge.join(" "),ne,re,ie):re())},oe=function(){let Ot,ee;200===ce.status&&(Ot=ie?ce.getResponseHeader("Date"):ce.response,ee=Rt(Ot),isNaN(ee)||(ne(ee),ue=!0))},ee.isRelative(Ot)){const Rt=Ce.resolve();Rt&&(Ot=ee.resolve(Ot,Rt.url))}ce.open(fe,Ot),ce.timeout=5e3,ce.onload=oe,ce.onloadend=le,ce.send()}function O(Rt,Ot,ee){P(D,Rt,Ot,ee,!0)}function z(Rt,ee){if(isNaN(Se)||isNaN(ee)||Rt||function(Rt){try{const Ot=F(Rt),ee=isNaN(Re)?30:Re,ne=isNaN(ue.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor)?2:ue.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor,ie=isNaN(ue.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts)?600:ue.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts,le=isNaN(ue.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts)?2:ue.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts;let oe;Ot?(oe=Math.min(ee*ne,ie),re.debug(`Increasing timeBetweenSyncAttempts to ${oe}`)):(oe=Math.max(ee/ne,le),re.debug(`Decreasing timeBetweenSyncAttempts to ${oe}`)),Re=oe}catch(Rt){}}(ee),!Rt&&!isNaN(ee)){ye=Date.now(),ie=!1;const Rt=isNaN(Se);Se=ee,Rt&&S(),re.debug(`Completed UTC sync. Setting client - server offset to ${ee}`)}Rt&&(we=null,ie=!1,Ne.error(new jn.default(zn.TIME_SYNC_FAILED_ERROR_CODE,zn.TIME_SYNC_FAILED_ERROR_MESSAGE)));const ne=ue.get().streaming.utcSynchronization.artificialTimeOffsetToApply;Ot.trigger(fe.default.UPDATE_TIME_SYNC_OFFSET,{offset:ee+ne}),Ot.trigger(fe.default.TIME_SYNCHRONIZATION_COMPLETED)}function L(){if(!pe||0===pe.length)return;const Rt=pe.reduce(((Rt,Ot)=>Rt+Ot),0)/pe.length;F(Rt)?re.debug("Completed background UTC sync. Offset is within allowed threshold and is not adjusted."):(re.debug(`Completed background UTC sync. Setting client - server offset to ${Rt}`),Se=Rt,Ot.trigger(fe.default.UPDATE_TIME_SYNC_OFFSET,{offset:Se})),oe=!1,Ee=Date.now()}function F(Rt){try{if(isNaN(Se))return!0;const Ot=ue.get().streaming.utcSynchronization.maximumAllowedDrift&&!isNaN(ue.get().streaming.utcSynchronization.maximumAllowedDrift)?ue.get().streaming.utcSynchronization.maximumAllowedDrift:100;return Rt>=Se-Ot&&Rt<=Se+Ot}catch(Rt){return!0}}return ne={initialize:function(){v(),ge={"urn:mpeg:dash:utc:http-head:2014":O,"urn:mpeg:dash:utc:http-xsdate:2014":P.bind(null,N),"urn:mpeg:dash:utc:http-iso:2014":P.bind(null,C),"urn:mpeg:dash:utc:direct:2014":M,"urn:mpeg:dash:utc:http-head:2012":O,"urn:mpeg:dash:utc:http-xsdate:2012":P.bind(null,N),"urn:mpeg:dash:utc:http-iso:2012":P.bind(null,C),"urn:mpeg:dash:utc:direct:2012":M,"urn:mpeg:dash:utc:http-ntp:2014":x,"urn:mpeg:dash:utc:ntp:2014":x,"urn:mpeg:dash:utc:sntp:2014":x}},attemptSync:function(Rt,ee){be=Rt,ie||(function(Rt){try{if(!Rt||!ue.get().streaming.utcSynchronization.enabled)return!1;const Ot=isNaN(Re)?30:Re;return!(ye&&Ot&&!isNaN(Ot))||(Date.now()-ye)/1e3>=Ot}catch(Rt){return!0}}(ee)?(ie=!0,k()):Ot.trigger(fe.default.TIME_SYNCHRONIZATION_COMPLETED))},setConfig:function(Rt){Rt&&(Rt.dashMetrics&&(he=Rt.dashMetrics),Rt.baseURLController&&(Ce=Rt.baseURLController),Rt.errHandler&&(Ne=Rt.errHandler),Rt.settings&&(ue=Rt.settings))},reset:function(){v(),Ot.off(fe.default.ATTEMPT_BACKGROUND_SYNC,S,ne)}},re=(0,le.default)(Rt).getInstance().getLogger(ne),Ot.on(fe.default.ATTEMPT_BACKGROUND_SYNC,S,ne),ne}lo.__dashjs_factory_name="TimeSyncController";const xs=ne.default.getSingletonFactory(lo);xs.HTTP_TIMEOUT_MS=5e3,ne.default.updateSingletonFactory(lo.__dashjs_factory_name,xs);var Ms=xs;function uo(){let Rt,Ot,ee,ne,re;const ie=this.context,oe=(0,ce.default)(ie).getInstance();return Rt={attachMediaSource:function(Rt){let ee=window.URL.createObjectURL(Ot);return Rt.setSource(ee),"managedMediaSource"===ne&&(Rt.setDisableRemotePlayback(!0),Ot.addEventListener("startstreaming",(()=>{oe.trigger(he.default.MANAGED_MEDIA_SOURCE_START_STREAMING)})),Ot.addEventListener("endstreaming",(()=>{oe.trigger(he.default.MANAGED_MEDIA_SOURCE_END_STREAMING)}))),ee},createMediaSource:function(){let Rt="WebKitMediaSource"in window,ee="MediaSource"in window;return"ManagedMediaSource"in window?(Ot=new ManagedMediaSource,ne="managedMediaSource",re.info("Created ManagedMediaSource")):ee?(Ot=new MediaSource,ne="mediaSource",re.info("Created MediaSource")):Rt&&(Ot=new WebKitMediaSource,re.info("Created WebkitMediaSource")),Ot},detachMediaSource:function(Rt){Rt.setSource(null)},setConfig:function(Rt){Rt&&Rt.settings&&(ee=Rt.settings)},setDuration:function t(Rt){Ot&&"open"===Ot.readyState&&(null===Rt&&isNaN(Rt)||Ot.duration!==Rt&&(Rt!==1/0||ee.get().streaming.buffer.mediaSourceDurationInfinity||(Rt=Math.pow(2,32)),function(Rt){let Ot=Rt.sourceBuffers;for(let Rt=0;Rt<Ot.length;Rt++)if(Ot[Rt].updating)return!0;return!1}(Ot)?setTimeout(t.bind(null,Rt),50):(re.info("Set MediaSource duration:"+Rt),Ot.duration=Rt)))},setSeekable:function(Rt,ee){Ot&&"function"==typeof Ot.setLiveSeekableRange&&"function"==typeof Ot.clearLiveSeekableRange&&"open"===Ot.readyState&&Rt>=0&&Rt<ee&&(Ot.clearLiveSeekableRange(),Ot.setLiveSeekableRange(Rt,ee))}
1,signalEndOfStream:function(Rt){if(!Rt||"open"!==Rt.readyState)return;let Ot=Rt.sourceBuffers;for(let Rt=0;Rt<Ot.length;Rt++){if(Ot[Rt].updating)return;if(0===Ot[Rt].buffered.length)return}re.info("call to mediaSource endOfStream"),Rt.endOfStream()}},re=(0,le.default)(ie).getInstance().getLogger(Rt),Rt}uo.__dashjs_factory_name="MediaSourceController";var Os=ne.default.getSingletonFactory(uo);function fo(){const Rt="urn:mpeg:dash:event:2012",Ot="updated",ee="added",ne=this.context,re=(0,ce.default)(ne).getInstance();let ie,oe,ue,fe,ge,pe,be,ye,Ee,_e,Se;function w(){if(!be||!ye)throw new Error("setConfig function has to be called previously")}function I(){Se=!1,ue={},fe={},ge=null,_e=!1,pe=Date.now()/1e3}function k(){try{if(!_e){_e=!0;const Rt=ye.getTime();let Ot=Rt-pe;Ot=pe>0?Math.max(0,Ot):0,A(fe,Ot,Rt),A(ue,Ot,Rt),R(fe),R(ue),pe=Rt,_e=!1}}catch(Rt){_e=!1,oe.error(Rt)}}function A(Rt,Ot,ee){try{const a=function(ne){if(void 0!==ne){const re=isNaN(ne.duration)?0:ne.duration;ne.calculatedPresentationTime<=ee&&ne.calculatedPresentationTime+Ot+re>=ee?P(ne,he.default.EVENT_MODE_ON_START):(M(ee,re+Ot,ne.calculatedPresentationTime)||function(Rt){try{const Ot=Rt.eventStream.period.start+Rt.eventStream.period.duration;return Rt.calculatedPresentationTime>Ot}catch(Rt){return oe.error(Rt),!1}}(ne))&&(oe.debug(`Removing event ${ne.id} from period ${ne.eventStream.period.id} as it is expired or invalid`),function(Rt,Ot){try{const ee=Ot.eventStream.schemeIdUri,ne=Ot.eventStream.period.id,re=Ot.eventStream.value,ie=Ot.id;Rt[ne][ee]=Rt[ne][ee].filter((Rt=>re&&Rt.eventStream.value&&Rt.eventStream.value!==re||Rt.id!==ie)),0===Rt[ne][ee].length&&delete Rt[ne][ee]}catch(Rt){oe.error(Rt)}}(Rt,ne))}};x(Rt,a)}catch(Rt){oe.error(Rt)}}function R(Rt){try{for(const Ot in Rt)Rt.hasOwnProperty(Ot)&&0===Object.keys(Rt[Ot]).length&&delete Rt[Ot]}catch(Rt){oe.error(Rt)}}function N(Rt,ne,re=!1){const ie=Rt.eventStream.schemeIdUri,le=Rt.eventStream.value,oe=Rt.id;let ue="discarded";ne[ie]||(ne[ie]=[]);const ce=ne[ie].findIndex((Rt=>(!le||Rt.eventStream.value&&Rt.eventStream.value===le)&&Rt.id===oe));if(-1===ce)ne[ie].push(Rt),Rt.triggeredReceivedEvent=!1,Rt.triggeredStartEvent=!1,ue=ee;else if(re){const ee=ne[ie][ce];Rt.triggeredReceivedEvent=ee.triggeredReceivedEvent,Rt.triggeredStartEvent=ee.triggeredStartEvent,ne[ie][ce]=Rt,ue=Ot}return ue}function C(Rt){try{if(1==Rt.eventStream.value){const Ot=Rt.calculatedPresentationTime;let ee;ee=4294967295==Rt.calculatedPresentationTime?NaN:Rt.calculatedPresentationTime+Rt.duration,re.trigger(he.default.MANIFEST_VALIDITY_CHANGED,{id:Rt.id,validUntil:Ot,newDuration:ee,newManifestValidAfter:NaN},{mode:he.default.EVENT_MODE_ON_START})}}catch(Rt){oe.error(Rt)}}function D(Rt){try{const Ot=ye.getTime();x(Rt,(function(Rt){const ee=Rt.eventStream&&Rt.eventStream.period&&!isNaN(Rt.eventStream.period.duration)?Rt.eventStream.period.duration:NaN,ne=Rt.eventStream&&Rt.eventStream.period&&!isNaN(Rt.eventStream.period.start)?Rt.eventStream.period.start:NaN;if(isNaN(ee)||isNaN(ne))return;const re=Rt.calculatedPresentationTime;Math.abs(re-Ot)<300&&P(Rt,he.default.EVENT_MODE_ON_START)}))}catch(Rt){oe.error(Rt)}}function x(Rt,Ot){try{if(Rt){const ee=Object.keys(Rt);for(let ne=0;ne<ee.length;ne++){const re=Rt[ee[ne]],ie=Object.keys(re);for(let Rt=0;Rt<ie.length;Rt++)re[ie[Rt]].forEach((Rt=>{void 0!==Rt&&Ot(Rt)}))}}}catch(Rt){oe.error(Rt)}}function M(Rt,Ot,ee){try{return Rt-Ot>ee}catch(Rt){return oe.error(Rt),!1}}function P(Ot,ee){try{const ie=ye.getTime(),le=Ot.id;if(ee===he.default.EVENT_MODE_ON_RECEIVE&&!Ot.triggeredReceivedEvent)return oe.debug(`Received event ${le}`),Ot.triggeredReceivedEvent=!0,void re.trigger(Ot.eventStream.schemeIdUri,{event:Ot},{mode:ee});Ot.triggeredStartEvent||(Ot.eventStream.schemeIdUri===Rt&&1==Ot.eventStream.value?0===Ot.duration&&0===Ot.presentationTimeDelta||(oe.debug(`Starting manifest refresh event ${le} at ${ie}`),function(){try{w(),be.refreshManifest()}catch(Rt){oe.error(Rt)}}()):"urn:mpeg:dash:event:callback:2015"===Ot.eventStream.schemeIdUri&&1==Ot.eventStream.value?(oe.debug(`Starting callback event ${le} at ${ie}`),function(Rt){try{let Ot=Gn(ne).create({});const ee=new gi({method:"get",url:Rt,responseType:"arraybuffer",customData:{}}),re=new mi({request:ee});Ot.load(ee,re)}catch(Rt){oe.error(Rt)}}(Ot.messageData instanceof Uint8Array?Bn.default.uint8ArrayToString(Ot.messageData):Ot.messageData)):(oe.debug(`Starting event ${le}
1 from period ${Ot.eventStream.period.id} at ${ie}`),re.trigger(Ot.eventStream.schemeIdUri,{event:Ot},{mode:ee}),Ee.get().streaming.events.deleteEventMessageDataTimeout>-1&&setTimeout((()=>{delete Ot.messageData,delete Ot.parsedMessageData}),Ee.get().streaming.events.deleteEventMessageDataTimeout)),Ot.triggeredStartEvent=!0)}catch(Rt){oe.error(Rt)}}return ie={addInlineEvents:function(Rt,ne){try{if(w(),ue[ne]||(ue[ne]={}),Rt)for(let re=0;re<Rt.length;re++){let ie=Rt[re];if(!M(ye.getTime(),isNaN(ie.duration)?0:ie.duration,ie.calculatedPresentationTime)){let Rt=N(ie,ue[ne],!0);Rt===ee?(oe.debug(`Added inline event with id ${ie.id} from period ${ne}`),P(ie,he.default.EVENT_MODE_ON_RECEIVE)):Rt===Ot&&oe.debug(`Updated inline event with id ${ie.id} from period ${ne}`)}}}catch(Rt){throw Rt}},addInbandEvents:function(Ot,ne){try{w(),fe[ne]||(fe[ne]={});for(let re=0;re<Ot.length;re++){let ie=Ot[re];M(ye.getTime(),isNaN(ie.duration)?0:ie.duration,ie.calculatedPresentationTime)||(N(ie,fe[ne],!1)===ee?(ie.eventStream.schemeIdUri===Rt&&C(ie),oe.debug(`Added inband event with id ${ie.id} from period ${ne}`),P(ie,he.default.EVENT_MODE_ON_RECEIVE)):oe.debug(`Inband event with scheme_id_uri ${ie.eventStream.schemeIdUri}, value ${ie.eventStream.value}, period id ${ne} and event id ${ie.id} was ignored because it has been added before.`))}k()}catch(Rt){throw Rt}},getInbandEvents:function(){return fe},getInlineEvents:function(){return ue},start:function(){try{w(),oe.debug("Start Event Controller");const Rt=Ee.get().streaming.events.eventControllerRefreshDelay;Se||isNaN(Rt)||(Se=!0,ge=setInterval(k,Rt))}catch(Rt){throw Rt}},setConfig:function(Rt){try{if(!Rt)return;Rt.manifestUpdater&&(be=Rt.manifestUpdater),Rt.playbackController&&(ye=Rt.playbackController),Rt.settings&&(Ee=Rt.settings)}catch(Rt){throw Rt}},reset:function(){(function(){try{null!==ge&&Se&&(clearInterval(ge),ge=null,Se=!1,function(){try{D(fe),D(ue)}catch(Rt){oe.error(Rt)}}())}catch(Rt){throw Rt}})(),I()}},oe=(0,le.default)(ne).getInstance().getLogger(ie),I(),ie}fo.__dashjs_factory_name="EventController";var Ps=ne.default.getSingletonFactory(fo),zs={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."}}},Ls=ee(445),Fs=ee(1923);function bo(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re,oe,ue,pe,be,ye,Ee,_e,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe,Ge,We,ln,on,sn,un,dn,cn,fn,gn,bn,yn,En,Tn,_n,vn,wn,In,An,Cn,Dn,xn,Mn,Pn;function nt(){if(!(pe&&pe.hasOwnProperty("load")&&Ue&&Ue.hasOwnProperty("initialize")&&Ue.hasOwnProperty("reset")&&Ue.hasOwnProperty("getClientTimeOffset")&&be&&Fe&&Ee&&bn))throw new Error(ge.default.MISSING_CONFIG_ERROR)}function at(){!function(){try{const Rt=ye.getStreamsInfo();if(!qe&&0===Rt.length)throw new Error("There are no periods in the MPD");qe&&Rt.length>0&&Ee.updateManifestUpdateInfo({currentTime:bn.getTime(),buffered:gn.getBufferRange(),presentationStartTime:Rt[0].start,clientTimeOffset:Ue.getClientTimeOffset()}),je.length>0&&function(Rt){0!==Rt.length?je=je.filter((Ot=>{const ee=Rt.filter((Rt=>Rt.id===Ot.getId())).length>0||Ot.getId()===qe.getId();return ee||(ne.debug(`Removing stream ${Ot.getId()}`),Ot.reset(!0),Ot=null),ee})):ne.warn("No periods included in the current manifest. Skipping the filtering of outdated stream objects.")}(Rt);const ee=[];for(let Ot=0,ne=Rt.length;Ot<ne;Ot++){const ne=Rt[Ot];ee.push(it(ne)),Ee.addManifestUpdateStreamInfo(ne)}Promise.all(ee).then((()=>new Promise(((Ot,ee)=>{qe?Ot():lt(Rt,Ot,ee)})))).then((()=>{Ot.trigger(fe.default.STREAMS_COMPOSED),Nt()})).catch((Rt=>{throw Rt}))}catch(Rt){Fe.error(new jn.default(zn.MANIFEST_ERROR_ID_NOSTREAMS_CODE,Rt.message+" nostreamscomposed",be.getValue())),cn=!0,Zt()}}()}function rt(){Dn=!0}function it(Ot){let ee=$t(Ot.id);return ee?ee.updateData(Ot):(ee=Ds(Rt).create({manifestModel:be,mediaPlayerModel:En,dashMetrics:Ee,manifestUpdater:ue,adapter:ye,timelineConverter:Ue,capabilities:re,capabilitiesFilter:oe,errHandler:Fe,baseURLController:Re,segmentBaseController:Ne,textController:We,abrController:De,playbackController:bn,throughputController:xe,eventController:Oe,mediaController:Me,protectionController:Ge,videoModel:gn,streamInfo:Ot,settings:Cn}),je.push(ee),ee.initialize(),Promise.resolve())}function lt(Rt,ee,re){try{Tt();const ie=Ee.getCurrentDVRInfo().range;if(ie.end<ie.start)return void function(Rt,ee,re,ie){xn&&clearTimeout(xn);const le=Math.min(1e3*(-1*(Rt.end-Rt.start)+2),2147483647);ne.debug(`Waiting for ${le} ms before playback can start`),Ot.trigger(fe.default.AST_IN_FUTURE,{delay:le}),xn=setTimeout((()=>{lt(ee,re,ie)}),le)}(ie,Rt,ee,re);Cn.get().streaming.applyProducerReferenceTime&&yn.calculateProducerReferenceTimeOffsets(Rt);const le=Rt[0].manifestInfo;if(Cn.get().streaming.applyServiceDescription&&yn.applyServiceDescription(le),ye.getIsDynamic()){const Rt=Ft(0,le);bn.computeAndSetLiveDelay(Rt,le)}(Cn.get().streaming.applyContentSteering&&we.shouldQueryBeforeStart()?we.loadSteeringData():Promise.resolve()).then((()=>{const Rt=be.getValue();Rt&&Re.update(Rt),ot(),ee()})).catch((Rt=>{ne.error(Rt),ot(),ee()}))}catch(Rt){re(Rt)}}function ot(){const Rt=function(){let Rt;return Rt=ye.getIsDynamic()?function(){let Rt;const Ot=Ee.getCurrentDVRInfo();Rt=(Ot&&Ot.range?Ot.range.end:0)-bn.getOriginalLiveDelay();const ee=Ot?Ot.range:null;if(ee){if(isNaN(Mn)&&-1===Mn.toString().indexOf("posix:")){const Ot=Pt(!0);isNaN(Ot)||(ne.info(`Start time from URI parameters: ${Ot}`),Rt=Math.min(Rt,Ot))}else{ne.info(`Start time provided by the app: ${Mn}`);const Ot=zt(!0,Mn);isNaN(Ot)||(Rt=Math.min(Rt,Ot))}const Ot=Cn.get().streaming.timeShiftBuffer.calcFromSegmentTimeline?.1:0;Rt=Math.max(Rt,ee.start+Ot)}return Rt}():function(){let Rt=te()[0].getStreamInfo().start;if(isNaN(Mn)){const Ot=Pt(!1);isNaN(Ot)||(ne.info(`Start time from URI parameters: ${Ot}`),Rt=Math.max(Rt,Ot))}else{ne.info(`Start time provided by the app: ${Mn}`);const Ot=zt(!1,Mn);isNaN(Ot)||(Rt=Math.max(Rt,Ot))}return Rt}(),Rt}();let ee=Et(Rt);const re=null!==ee?ee:je[0];Ot.trigger(fe.default.INITIAL_STREAM_SWITCH,{startTime:Rt}),st(re,null,Rt),In||(In=setInterval((function(){!un&&bn.getTimeToStreamEnd()<=0&&!bn.isSeeking()&&Ot.trigger(fe.default.PLAYBACK_ENDED,{isLast:Wt().isLast})}),200))}function st(Rt,ee,re){try{if(un||!Rt||ee===Rt&&Rt.getIsActive())return;un=!0,Ot.trigger(fe.default.PERIOD_SWITCH_STARTED,{fromStreamInfo:ee?ee.getStreamInfo():null,toStreamInfo:Rt.getStreamInfo()});let ie=!1,le=[],oe=ft(ee);qe=Rt,ee&&(ie=bt(Rt,ee),le=ct(ee),ee.deactivate(ie)),re=isNaN(re)?!ie&&ee?Rt.getStreamInfo().start:NaN:re,ne.info(`Switch to stream ${Rt.getId()}. Seektime is ${re}, current playback time is ${bn.getTime()}. Seamless period switch is set to ${ie}`),An=An.filter((Rt=>Rt.getId()!==qe.getId())),bn.initialize(Wt(),!!ee),gn.getElement()?ut({seekTime:re,keepBuffers:ie,sourceBufferSinksFromPreviousPeriod:oe,streamActivated:!1,representationsFromPreviousPeriod:le}):dt({seekTime:re,keepBuffers:ie,sourceBufferSinksFromPreviousPeriod:oe})}catch(Rt){un=!1}}function ut(Rt){let Ot;function n(){if(!fn||"open"!==fn.readyState)return;ne.debug("MediaSource is open!"),window.URL.revokeObjectURL(Ot),fn.removeEventListener("sourceopen",n),fn.removeEventListener("webkitsourceopen",n),Mt();const ee=Ee.getCurrentDVRInfo();_e.setSeekable(ee.range.start,ee.range.end),Rt.streamActivated?(isNaN(Rt.seekTime)||bn.seek(Rt.seekTime,!0,!0),qe.setMediaSource(fn).then((()=>{qe.initializeForTextWithMediaSource(fn)}))):dt(Rt)}function r(){fn.addEventListener("sourceopen",n,!1),fn.addEventListener("webkitsourceopen",n,!1),Ot=_e.attachMediaSource(gn),ne.debug("MediaSource attached to element.  Waiting on open...")}fn?Rt.keepBuffers?dt(Rt):(_e.detachMediaSource(gn),r()):(fn=_e.createMediaSource(),r())}function dt(Rt){const ee=Rt.representationsFromPreviousPeriod||[];qe.activate(fn,Rt.sourceBufferSinksFromPreviousPeriod,ee).then((()=>{isNaN(Rt.seekTime)||(Ot.trigger(fe.default.SEEK_TARGET,{time:Rt.seekTime},{streamId:qe.getId()}),bn.seek(Rt.seekTime,!1,!0),qe.startScheduleControllers()),un=!1,Ot.trigger(fe.default.PERIOD_SWITCH_COMPLETED,{toStreamInfo:Wt()})}))}function ct(Rt){return(Rt?Rt.getStreamProcessors():[]).map((Rt=>Rt.getRepresentation()))}function ft(Rt){const Ot=new Map;
1return Rt?((Rt?Rt.getStreamProcessors():[]).forEach((Rt=>{const ee=Rt.getBuffer();ee&&Ot.set(ee.getType(),ee)})),Ot):Ot}function gt(Rt){const Ot=Et(Rt.seekTime);Ot&&Ot!==qe?Ot&&Ot!==qe&&(mt(Ot),function(Rt,Ot){const ee=Rt&&!isNaN(Rt.seekTime)?Rt.seekTime:NaN,ne=qe.getStreamProcessors().map((Ot=>Ot.prepareOuterPeriodPlaybackSeeking(Rt)));Promise.all(ne).then((()=>{st(Ot,qe,ee)})).catch((Rt=>{Fe.error(Rt)}))}(Rt,Ot)):(mt(),function(Rt){qe.getStreamProcessors().forEach((Ot=>Ot.prepareInnerPeriodPlaybackSeeking(Rt))),Gt(Hr.USER_REQUEST_STOP_REASON)}(Rt)),Ht(Gr.SEEK_START_REASON)}function mt(Rt=null){ht()}function ht(){An&&An.length>0&&(An.forEach((Rt=>{Rt.deactivate(!0)})),An=[])}function pt(Rt){if(Rt.newMediaInfo.streamInfo.id===qe.getId()){if(ht(),Cn.get().streaming.buffer.resetSourceBuffersForTrackSwitch&&Rt.oldMediaInfo&&Rt.oldMediaInfo.codec!==Rt.newMediaInfo.codec){const Rt=bn.getTime();return qe.deactivate(!1),void ut({seekTime:Rt,keepBuffers:!1,streamActivated:!1})}qe.prepareTrackChange(Rt)}}function bt(Rt,Ot){try{return Cn.get().streaming.buffer.reuseExistingSourceBuffers&&(re.isProtectionCompatible(Ot.getStreamInfo(),Rt.getStreamInfo())||Dn)&&re.supportsChangeType()&&Cn.get().streaming.buffer.useChangeType}catch(Rt){return!1}}function yt(Rt,Ot=null){if(!fn||Rt.getPreloaded())return;if(!bt(Rt,Ot))return;const ee=ct(Ot),ne=ft(Ot);Rt.startPreloading(fn,ne,ee).then((()=>{An.push(Rt)}))}function Et(Rt){if(isNaN(Rt))return null;const Ot=je.length;for(let ee=0;ee<Ot;ee++){const Ot=je[ee];if(Rt<parseFloat((Ot.getStartTime()+Ot.getDuration()).toFixed(5)))return Ot}return null}function Tt(){try{const Rt=ye.getIsDynamic(),Ot=ye.getStreamsInfo()[0].manifestInfo,ee=bn.getTime(),ne=Ue.calcTimeShiftBufferWindow(je,Rt),re=Dt();if(void 0===ne.start||void 0===ne.end)return;re&&0!==re.length?re.forEach((Rt=>{Ee.addDVRInfo(Rt.getType(),ee,Ot,ne)})):Ee.addDVRInfo(ge.default.VIDEO,ee,Ot,ne)}catch(Rt){}}function _t(Rt){if(vn&&sn){const Rt=En.getInitialBufferLevel(),Ot=[ge.default.TEXT];(isNaN(Rt)||Rt<=bn.getBufferLevel(Ot)||ye.getIsDynamic()&&Rt>bn.getLiveDelay())&&(vn=!1,Ht(Gr.INITIAL_PLAYOUT_START_REASON),bn.play())}Rt&&Rt.mediaType&&Ee.addBufferLevel(Rt.mediaType,new Date,1e3*Rt.bufferLevel)}function vt(Rt){Rt.streamInfo.id===qe.getId()&&ht(),$t(Rt.streamInfo.id).prepareQualityChange(Rt)}function St(){if(ye.getIsDynamic()&&0!==bn.getOriginalLiveDelay()&&qe){const Rt=ye.getStreamsInfo();if(Rt.length>0){const Ot=Rt[0].manifestInfo,ee=Ft(0,Ot);bn.computeAndSetLiveDelay(ee,Ot)}}}function wt(){if(qt()){const Rt=gn.getPlaybackQuality();Rt&&Ee.addDroppedFrames(Rt)}}function It(){ne.debug("[onPlaybackStarted]"),!vn&&_n&&Ht(Gr.RESUME_FROM_PAUSE_START_REASON),vn&&(vn=!1),wn&&(wn=!1,Cn.get().streaming.applyContentSteering&&!we.shouldQueryBeforeStart()&&we.loadSteeringData()),_n=!1}function kt(Rt){ne.debug("[onPlaybackPaused]"),Rt.ended||(_n=!0,Gt(Hr.USER_REQUEST_STOP_REASON))}function At(Rt){ne.debug(`Stream with id ${Rt.streamInfo.id} finished buffering`);const Ot=Rt.streamInfo.isLast;fn&&Ot?(ne.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),_e.signalEndOfStream(fn)):Nt()}function Nt(){if(!qe)return;if(!qe.getHasFinishedBuffering())return void qe.checkAndHandleCompletedBuffering();const Rt=function(Rt=null){try{const Ot=Rt||qe||null;if(Ot){const Rt=Ot.getStreamInfo();return je.filter((function(Ot){const ee=Ot.getStreamInfo();return ee.start>Rt.start&&Rt.id!==ee.id}))}}catch(Rt){return[]}}(qe);let Ot=0;for(;Ot<Rt.length;){const ee=Rt[Ot],ne=0===Ot?qe:Rt[Ot-1];!ee.getPreloaded()&&ne.getHasFinishedBuffering()&&yt(ee,ne),Ot+=1}}function Ct(){In&&(clearInterval(In),In=null)}function Dt(){return qe?qe.getStreamProcessors():[]}function xt(Rt){if(qe&&!qe.getIsEndedEventSignaled()){qe.setIsEndedEventSignaled(!0);const Rt=function(Rt=null){const Ot=Rt||qe||null;if(!Ot)return null;const ee=Ot.getStreamInfo(),ne=ee.start;let re=0,ie=-1,le=NaN;for(;re<je.length;){const Rt=je[re].getStreamInfo(),Ot=Rt.start-ne;Ot>0&&(isNaN(le)||Ot<le)&&ee.id!==Rt.id&&(le=Ot,ie=re),re+=1}return ie>=0?je[ie]:null}();Rt?(ne.debug(`StreamController onEnded, found next stream with i
1d ${Rt.getStreamInfo().id}. Switching from ${qe.getStreamInfo().id} to ${Rt.getStreamInfo().id}`),st(Rt,qe,NaN)):(ne.debug("StreamController no next stream found"),qe.setIsEndedEventSignaled(!1)),Gt(Rt?Hr.END_OF_PERIOD_STOP_REASON:Hr.END_OF_CONTENT_STOP_REASON)}Rt&&Rt.isLast&&(Ct(),we.stopSteeringRequestTimer())}function Mt(Rt){const Ot=Rt||Wt().manifestInfo.duration;_e.setDuration(Ot)}function Pt(Rt){const Ot=Ce.getURIFragmentData();if(!Ot||!Ot.t)return NaN;const ee=te()[0].getStreamInfo().start;return Ot.t=Ot.t.split(",")[0],Lt(Rt,Ot.t,ee)}function zt(Rt,Ot){let ee=0;return Rt||(ee=te()[0].getStreamInfo().start),Lt(Rt,Ot,ee)}function Lt(Rt,Ot,ee){const ne=ye.getRegularPeriods()[0],re=Ot.toString(),ie=-1!==re.indexOf("posix:")?"now"===re.substring(6)?Date.now()/1e3:parseFloat(re.substring(6)):NaN;return Rt&&!isNaN(ie)?Ue.calcPresentationTimeFromWallTime(new Date(1e3*ie),ne):parseFloat(re)+ee}function Ft(Rt,Ot){try{let Rt=NaN;return Ot&&!isNaN(Ot.maxFragmentDuration)&&isFinite(Ot.maxFragmentDuration)?Ot.maxFragmentDuration:isFinite(Rt)?Rt:NaN}catch(Rt){return NaN}}function Ut(){const Rt=be.getValue();Re.initialize(Rt)}function jt(Rt){if(Rt.error)cn=!0,Zt();else{ne.info("Manifest updated... updating data system wide.");const ee=Rt.manifest;ye.updatePeriods(ee),oe.filterUnsupportedFeatures(ee).then((()=>{Re.initialize(ee);let Rt=ye.getUTCTimingSources();!ye.getIsDynamic()||Rt&&0!==Rt.length||Ot.trigger(he.default.CONFORMANCE_VIOLATION,{level:zs.LEVELS.WARNING,event:zs.EVENTS.NO_UTC_TIMING_ELEMENT});let ne=ye.getIsDynamic()?Rt.concat(Tn.getUTCTimingSources()):Rt;Se.attemptSync(ne,ye.getIsDynamic()),on.createFinalQueryStrings(ee)}))}}function qt(){return!!qe&&qe.getHasVideoTrack()}function Bt(){return!!qe&&qe.getHasAudioTrack()}function Gt(Rt,Ot){Ot=Ot||new Date,Dt().forEach((ee=>{ee.finalisePlayList(Ot,Rt)})),Ee.addPlayList()}function Ht(Rt){Ee.createPlaylistMetrics(1e3*bn.getTime(),Rt)}function Yt(Rt){Ge.updateKeyStatusesMap(Rt),function(){const Rt=Dt();let ne=!1;Rt.forEach((Rt=>{const Ot=Rt.getMediaInfo();!Ot||re.areKeyIdsUsable(Ot)?Ot&&re.areKeyIdsExpired(Ot)&&function(Rt){const Ot=$t(Rt.getStreamId());Ot&&Ot.triggerProtectionError({error:new jn.default(Fs.default.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE,Fs.default.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE)})}(Rt):(ne=!0,function(Rt){const Ot=Rt.getAllMediaInfos().filter((Rt=>re.areKeyIdsUsable(Rt)));if(Ot&&0!==Ot.length)Me.setTrack(Ot[0],{replaceBuffer:!0});else{const Ot=Rt.getType();Fe.error(new jn.default(zn.NO_SUPPORTED_KEY_IDS,`Type: ${Ot}: ${zn.NO_SUPPORTED_KEY_IDS_MESSAGE}`))}}(Rt))})),ne&&(0===bn.getTime()?Ot.once(he.default.FRAGMENT_LOADING_COMPLETED,(()=>{Vt()}),ee):bn.isProgressing(500).then((Rt=>{Rt||Vt()})))}()}function Vt(){const Rt=bn.getTime();bn.seek(Rt+.01,!1,!1)}function Kt(Rt){if(!Rt.error)return;let Ot;switch(Rt.error.code){case 1:Ot="MEDIA_ERR_ABORTED";break;case 2:Ot="MEDIA_ERR_NETWORK";break;case 3:Ot="MEDIA_ERR_DECODE",Pn.counts.mediaErrorDecode+=1;break;case 4:Ot="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:Ot="MEDIA_ERR_ENCRYPTED";break;default:Ot="UNKNOWN"}"MEDIA_ERR_DECODE"===Ot&&Cn.get().errors.recoverAttempts.mediaErrorDecode>=Pn.counts.mediaErrorDecode?function(){ne.error("A MEDIA_ERR_DECODE occured: Resetting the MediaSource");const Rt=bn.getTime();qe.deactivate(!1),ne.info(`MediaSource has been resetted. Resuming playback from time ${Rt}`),ut({seekTime:Rt,keepBuffers:!1,streamActivated:!1})}():(dn=!0,Rt.error.message&&(Ot+=" ("+Rt.error.message+")"),Rt.error.msExtendedCode&&(Ot+=" (0x"+(Rt.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),ne.fatal("Video Element Error: "+Ot),Rt.error&&ne.fatal(Rt.error),Fe.error(new jn.default(Rt.error.code,Ot)),Zt())}function Wt(){return qe?qe.getStreamInfo():null}function $t(Rt){for(let Ot=0,ee=je.length;Ot<ee;Ot++)if(je[Ot].getId()===Rt)return je[Ot];return null}function Qt(Rt){isNaN(Rt.newDuration)||Mt(Rt.newDuration)}function Xt(){je=[],Mn=NaN,Ge=null,un=!1,qe=null,dn=!1,cn=!1,vn=!0,wn=!0,_n=!1,sn=!0,In=null,Dn=!1,An=[],xn=null,Pn={counts:{mediaErrorDecode:0}}}
1function Zt(){nt(),Se.reset(),Gt(dn||cn?Hr.FAILURE_STOP_REASON:Hr.USER_REQUEST_STOP_REASON);for(let Rt=0,Ot=je?je.length:0;Rt<Ot;Rt++)je[Rt].reset(dn);Ot.off(he.default.PLAYBACK_TIME_UPDATED,wt,ee),Ot.off(he.default.PLAYBACK_SEEKING,gt,ee),Ot.off(he.default.PLAYBACK_ERROR,Kt,ee),Ot.off(he.default.PLAYBACK_STARTED,It,ee),Ot.off(he.default.PLAYBACK_PAUSED,kt,ee),Ot.off(he.default.PLAYBACK_ENDED,xt,ee),Ot.off(he.default.METRIC_ADDED,Jt,ee),Ot.off(he.default.MANIFEST_VALIDITY_CHANGED,Qt,ee),Ot.off(he.default.BUFFER_LEVEL_UPDATED,_t,ee),Ot.off(he.default.QUALITY_CHANGE_REQUESTED,vt,ee),Ot.off(he.default.CONTENT_STEERING_REQUEST_COMPLETED,Ut,ee),fe.default.KEY_SESSION_UPDATED&&Ot.off(fe.default.KEY_SESSION_UPDATED,rt,ee),Ot.off(fe.default.MANIFEST_UPDATED,jt,ee),Ot.off(fe.default.STREAM_BUFFERING_COMPLETED,At,ee),Ot.off(fe.default.TIME_SYNCHRONIZATION_COMPLETED,at,ee),Ot.off(fe.default.CURRENT_TRACK_CHANGED,pt,ee),Ot.off(fe.default.SETTING_UPDATED_LIVE_DELAY,St,ee),Ot.off(fe.default.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,St,ee),Ot.off(Ls.default.INTERNAL_KEY_STATUSES_CHANGED,Yt,ee),Re.reset(),ue.reset(),Oe.reset(),Ee.clearAllCurrentMetrics(),be.setValue(null),pe.reset(),Ue.reset(),Pe.reset(),fn&&(_e.detachMediaSource(gn),fn=null),gn=null,Ge&&(Ge=null,ln=null,be.getValue()&&Ot.trigger(fe.default.PROTECTION_DESTROYED,{data:be.getValue().url})),Ct(),Ot.trigger(fe.default.STREAM_TEARDOWN_COMPLETE),Xt()}function Jt(Rt){if(Rt.metric===ie.DVR_INFO){const Ot=Bt()?ge.default.AUDIO:ge.default.VIDEO;Rt.mediaType===Ot&&_e.setSeekable(Rt.value.range.start,Rt.value.range.end)}}function te(){return je}return ee={addDVRMetric:Tt,getActiveStream:function(){return qe},getActiveStreamInfo:Wt,getActiveStreamProcessors:Dt,getAutoPlay:function(){return sn},getHasMediaOrInitialisationError:function(){return dn||cn},getInitialPlayback:function(){return vn},getIsStreamSwitchInProgress:function(){return un},getStreamById:$t,getStreamForTime:Et,getStreams:te,getTimeRelativeToStreamId:function(Rt,Ot){let ee=null,ne=0,re=0,ie=null;for(let le=0;le<je.length;le++){if(ee=je[le],re=ee.getStartTime(),ie=ee.getDuration(),Number.isFinite(re)&&(ne=re),ee.getId()===Ot)return Rt-ne;Number.isFinite(ie)&&(ne+=ie)}return null},hasAudioTrack:Bt,hasVideoTrack:qt,initialize:function(ne,re){nt(),sn=ne,ln=re,Ue.initialize(),ue=yo(Rt).create(),ue.setConfig({manifestModel:be,adapter:ye,manifestLoader:pe,errHandler:Fe,settings:Cn,contentSteeringController:we}),ue.initialize(),Oe=Ps(Rt).getInstance(),Oe.setConfig({manifestUpdater:ue,playbackController:bn,settings:Cn}),Oe.start(),on=fi(Rt).getInstance(),Se.setConfig({dashMetrics:Ee,baseURLController:Re,errHandler:Fe,settings:Cn}),Se.initialize(),_e.setConfig({settings:Cn}),Ge&&(Ot.trigger(fe.default.PROTECTION_CREATED,{controller:Ge}),Ge.setMediaElement(gn.getElement()),ln&&Ge.setProtectionData(ln)),Ot.on(he.default.PLAYBACK_TIME_UPDATED,wt,ee),Ot.on(he.default.PLAYBACK_SEEKING,gt,ee),Ot.on(he.default.PLAYBACK_ERROR,Kt,ee),Ot.on(he.default.PLAYBACK_STARTED,It,ee),Ot.on(he.default.PLAYBACK_PAUSED,kt,ee),Ot.on(he.default.PLAYBACK_ENDED,xt,ee),Ot.on(he.default.METRIC_ADDED,Jt,ee),Ot.on(he.default.MANIFEST_VALIDITY_CHANGED,Qt,ee),Ot.on(he.default.BUFFER_LEVEL_UPDATED,_t,ee),Ot.on(he.default.QUALITY_CHANGE_REQUESTED,vt,ee),Ot.on(he.default.CONTENT_STEERING_REQUEST_COMPLETED,Ut,ee),fe.default.KEY_SESSION_UPDATED&&Ot.on(fe.default.KEY_SESSION_UPDATED,rt,ee),Ot.on(fe.default.MANIFEST_UPDATED,jt,ee),Ot.on(fe.default.STREAM_BUFFERING_COMPLETED,At,ee),Ot.on(fe.default.TIME_SYNCHRONIZATION_COMPLETED,at,ee),Ot.on(fe.default.CURRENT_TRACK_CHANGED,pt,ee),Ot.on(fe.default.SETTING_UPDATED_LIVE_DELAY,St,ee),Ot.on(fe.default.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,St,ee),Ot.on(Ls.default.INTERNAL_KEY_STATUSES_CHANGED,Yt,ee)},load:function(Rt,Ot=NaN){nt(),Mn=Ot,pe.load(Rt)},loadWithManifest:function(Rt,Ot=NaN){!function(){if(!ue||!ue.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}(),Mn=Ot,ue.setManifest(Rt)},refreshManifest:function(){ue.getIsUpdating()||ue.refreshManifest()},reset:Zt,setConfig:function(Rt){Rt&&(Rt.capabilities&&(re=Rt.capabilities),Rt.capabilitiesFilter&&(
1oe=Rt.capabilitiesFilter),Rt.manifestLoader&&(pe=Rt.manifestLoader),Rt.manifestModel&&(be=Rt.manifestModel),Rt.mediaPlayerModel&&(En=Rt.mediaPlayerModel),Rt.customParametersModel&&(Tn=Rt.customParametersModel),Rt.protectionController&&(Ge=Rt.protectionController),Rt.adapter&&(ye=Rt.adapter),Rt.dashMetrics&&(Ee=Rt.dashMetrics),Rt.errHandler&&(Fe=Rt.errHandler),Rt.timelineConverter&&(Ue=Rt.timelineConverter),Rt.videoModel&&(gn=Rt.videoModel),Rt.playbackController&&(bn=Rt.playbackController),Rt.throughputController&&(xe=Rt.throughputController),Rt.serviceDescriptionController&&(yn=Rt.serviceDescriptionController),Rt.contentSteeringController&&(we=Rt.contentSteeringController),Rt.textController&&(We=Rt.textController),Rt.abrController&&(De=Rt.abrController),Rt.mediaController&&(Me=Rt.mediaController),Rt.settings&&(Cn=Rt.settings),Rt.baseURLController&&(Re=Rt.baseURLController),Rt.uriFragmentModel&&(Ce=Rt.uriFragmentModel),Rt.segmentBaseController&&(Ne=Rt.segmentBaseController),Rt.manifestUpdater&&(ue=Rt.manifestUpdater))},setProtectionData:function(Rt){ln=Rt,Ge&&Ge.setProtectionData(ln)},switchToVideoElement:function(Rt){qe&&(bn.initialize(Wt()),ut({seekTime:Rt,keepBuffers:!1,streamActivated:!0}))}},ne=(0,le.default)(Rt).getInstance().getLogger(ee),Se=Ms(Rt).getInstance(),_e=Os(Rt).getInstance(),Pe=Jo(Rt).getInstance(),Xt(),ee}bo.__dashjs_factory_name="StreamController";var Us=ne.default.getSingletonFactory(bo),js=class extends Ji{constructor(){super(),this.captionData=null,this.label=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1,this.isTTML=null}},qs=ee(7377);function _o(){let Rt,Ot=0;function n(Rt){let Ot="";for(let ee=0;ee<Rt.length;++ee)Ot+=Rt[ee].uchar;return Ot.length-Ot.replace(/^\s+/,"").length}function a(Rt){return"left: "+3.125*Rt.x+"%; top: "+6.66*Rt.y1+"%; width: "+(100-3.125*Rt.x)+"%; height: "+6.66*Math.max(Rt.y2-1-Rt.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function r(Rt){return"red"===Rt?"rgb(255, 0, 0)":"green"===Rt?"rgb(0, 255, 0)":"blue"===Rt?"rgb(0, 0, 255)":"cyan"===Rt?"rgb(0, 255, 255)":"magenta"===Rt?"rgb(255, 0, 255)":"yellow"===Rt?"rgb(255, 255, 0)":"white"===Rt?"rgb(255, 255, 255)":"black"===Rt?"rgb(0, 0, 0)":Rt}function i(Rt,Ot){const ee=Rt.videoHeight/15;return Ot?"font-size: "+ee+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(Ot.foreground?r(Ot.foreground):"rgb(255, 255, 255)")+"; font-style: "+(Ot.italics?"italic":"normal")+"; text-decoration: "+(Ot.underline?"underline":"none")+"; white-space: pre; background-color: "+(Ot.background?r(Ot.background):"transparent")+";":"font-size: "+ee+"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 l(Rt){return Rt.replace(/^\s+/g,"")}function o(Rt){return Rt.replace(/\s+$/g,"")}return Rt={createHTMLCaptionsFromScreen:function(Rt,ee,ne,re){let ie=null,le=null,oe=!1,ue=-1,ce={start:ee,end:ne,spans:[]},fe="style_cea608_white_black";const ge={},he={},pe=[];let be,ye;for(be=0;be<15;++be){const Rt=re.rows[be];let Ot="",ye=null;if(!1===Rt.isEmpty()){const re=n(Rt.chars);null===ie&&(ie={x:re,y1:be,y2:be+1,p:[]}),re!==ue&&oe&&(ie.p.push(ce),ce={start:ee,end:ne,spans:[]},ie.y2=be,ie.name="region_"+ie.x+"_"+ie.y1+"_"+ie.y2,!1===ge.hasOwnProperty(ie.name)?(pe.push(ie),ge[ie.name]=ie):(le=ge[ie.name],le.p.contat(ie.p)),ie={x:re,y1:be,y2:be+1,p:[]});for(let ee=0;ee<Rt.chars.length;++ee){const ne=Rt.chars[ee],re=ne.penState;if(null===ye||!re.equals(ye)){Ot.trim().length>0&&(ce.spans.push({name:fe,line:Ot,row:be}),Ot="");let Rt="style_cea608_"+re.foreground+"_"+re.background;re.underline&&(Rt+="_underline"),re.italics&&(Rt+="_italics"),he.hasOwnProperty(Rt)||(he[Rt]=JSON.parse(JSON.stringify(re))),ye=re,fe=Rt}Ot+=ne.uchar}Ot.trim().length>0&&ce.spans.push({name:fe,line:Ot,row:be}),oe=!0,ue=re}else oe=!1,ue=-1,ie&&(ie.p.push(ce),ce={start:ee,end:ne,spans:[]},ie.y2=be,ie.name="region_"+ie.x+"_"+ie.y1+"_"+ie.y2,!1===ge.hasOwnProperty(ie.name)?(pe.push(ie),ge[ie.name]=ie):(le=ge[ie.name],le.p.contat(ie.p)),ie=null)}ie&&(ie.p.push(ce),ie.y2=be+1,ie.name="region_"+ie.x+"_"+ie.y1+"_"+ie.y2,!1===ge.hasOwnProperty(ie.name)?(pe.push(ie),ge[ie.name]=ie):(le=ge[ie.name],le.p.contat(ie.p)),ie=null);const Ee=[];for(be=0;be<pe.length;++be){const re=pe[be],ie="sub_cea608_"+Ot++,le=document.createElement("div");le.id=ie;const oe=a(re);le.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+oe;const ue=document.createElement("div");ue.className="paragraph bodyStyle",ue.style.cssText=i(Rt);const ce=document.createElement("div");
1ce.className="cueUniWrapper",ce.style.cssText="unicode-bidi: normal; direction: ltr;";for(let Ot=0;Ot<re.p.length;++Ot){const ee=re.p[Ot];let ne=0;for(ye=0;ye<ee.spans.length;++ye){let Ot=ee.spans[ye];if(Ot.line.length>0){if(0!==ye&&ne!=Ot.row){const Rt=document.createElement("br");Rt.className="lineBreak",ce.appendChild(Rt)}let re=!1;ne===Ot.row&&(re=!0),ne=Ot.row;const ie=he[Ot.name],le=document.createElement("span");le.className="spanPadding "+Ot.name+" customSpanColor",le.style.cssText=i(Rt,ie),0!==ye&&re?ye===ee.spans.length-1?le.textContent=o(Ot.line):le.textContent=Ot.line:ee.spans.length>1&&ye<ee.spans.length-1&&Ot.row===ee.spans[ye+1].row?le.textContent=l(Ot.line):le.textContent=Ot.line.trim(),ce.appendChild(le)}}}ue.appendChild(ce),le.appendChild(ue);const fe={bodyStyle:["%",90]};for(const Rt in he)he.hasOwnProperty(Rt)&&(fe[Rt]=["%",90]);Ee.push({type:"html",start:ee,end:ne,cueHTMLElement:le,cueID:ie,cellResolution:[32,15],isFromCEA608:!0,fontSize:fe,lineHeight:{},linePadding:{}})}return Ee}},Rt}_o.__dashjs_factory_name="EmbeddedTextHtmlRender";var Bs=ne.default.getSingletonFactory(_o),Gs=class{constructor(){this.time=null,this.verboseLevel=0}log(Rt,Ot){if(this.verboseLevel>=Rt){const ee="function"==typeof Ot?Ot():Ot;console.log(`${this.time} [${Rt}] ${ee}`)}}},Hs=class{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(Rt){for(const Ot of["foreground","underline","italics","background","flash"])Object.prototype.hasOwnProperty.call(Rt,Ot)&&(this[Ot]=Rt[Ot])}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(Rt){return this.foreground===Rt.foreground&&this.underline===Rt.underline&&this.italics===Rt.italics&&this.background===Rt.background&&this.flash===Rt.flash}copy(Rt){this.foreground=Rt.foreground,this.underline=Rt.underline,this.italics=Rt.italics,this.background=Rt.background,this.flash=Rt.flash}},Ys=class{constructor(){this.uchar=" ",this.penState=new Hs}reset(){this.uchar=" ",this.penState.reset()}setChar(Rt,Ot){this.uchar=Rt,this.penState.copy(Ot)}setPenState(Rt){this.penState.copy(Rt)}equals(Rt){return this.uchar===Rt.uchar&&this.penState.equals(Rt.penState)}copy(Rt){this.uchar=Rt.uchar,this.penState.copy(Rt.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}};const Vs=100,Ks={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};function Ro(Rt){return String.fromCharCode(Ks[Rt]||Rt)}var Ws=class{constructor(Rt=new Gs){this.chars=[],this.cueStartTime=null,this.pos=0,this.currPenState=new Hs;for(let Rt=0;Rt<Vs;Rt++)this.chars.push(new Ys);this.logger=Rt}equals(Rt){for(let Ot=0;Ot<Vs;Ot++)if(!this.chars[Ot].equals(Rt.chars[Ot]))return!1;return!0}copy(Rt){for(let Ot=0;Ot<Vs;Ot++)this.chars[Ot].copy(Rt.chars[Ot])}isEmpty(){let Rt=!0;for(let Ot=0;Ot<Vs;Ot++)if(!this.chars[Ot].isEmpty()){Rt=!1;break}return Rt}setCursor(Rt){this.pos!==Rt&&(this.pos=Rt),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Vs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Vs)}moveCursor(Rt){const Ot=this.pos+Rt;if(Rt>1)for(let Rt=this.pos+1;Rt<Ot+1;Rt++)this.chars[Rt].setPenState(this.currPenState);this.setCursor(Ot)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(Rt){Rt>=144&&this.backSpace();const Ot=Ro(Rt);this.pos>=Vs?this.logger.log(0,(()=>"Cannot insert "+Rt.toString(16)+" ("+Ot+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(Ot,this.currPenState),this.moveCursor(1))}clearFromPos(Rt){let Ot;for(Ot=Rt;Ot<Vs;Ot++)this.chars[Ot].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const Rt=[];let Ot=!0;for(let ee=0;ee<Vs;ee++){const ne=this.chars[ee].uchar;" "!==ne&&(Ot=!1),Rt.push(ne)}return Ot?"":Rt.join("")}setPenStyles(Rt){this.currPenState.setStyles(Rt),this.chars[this.pos].setPenState(this.currPenState)}};const $s=15;var Qs=class{constructor(Rt=new Gs){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null;for(let Ot=0;Ot<$s;Ot++)this.rows.push(new Ws(Rt));this.logger=Rt}reset(){for(let Rt=0;Rt<$s;Rt++)this.rows[Rt].clear();this.currRow=14}equals(Rt){let Ot=!0;for(let ee=0;ee<$s;ee++)if(!this.rows[ee].equals(Rt.rows[ee])){Ot=!1;break}return Ot}copy(Rt){for(let Ot=0;Ot<$s;Ot++)this.rows[Ot].copy(Rt.rows[Ot])}isEmpty(){let Rt=!0;for(let Ot=0;Ot<$s;Ot++)if(!this.rows[Ot].isEmpty()){Rt=!1;break}return Rt}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(Rt){this.rows[this.currRow].insertChar(Rt)}setPen(Rt){this.rows[this.currRow].setPenStyles(Rt)}moveCursor(Rt){this.rows[this.currRow].moveCursor(Rt)}setCursor(Rt){this.logger.log(2,"setCursor: "+Rt),this.rows[this.currRow].setCursor(Rt)}setPAC(Rt){this.logger.log(2,(()=>"pacData = "+JSON.stringify(Rt)));let Ot=Rt.row-1;if(this.nrRollUpRows&&Ot<this.nrRollUpRows-1&&(Ot=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==Ot){for(let Rt=0;Rt<$s;Rt++)this.rows[Rt].clear();const Rt=this.currRow+1-this.nrRollUpRows,ee=this.lastOutputScreen;if(ee){const ne=ee.rows[Rt].cueStartTime,re=this.logger.time;if(null!==ne&&null!==re&&ne<re)for(let ne=0;ne<this.nrRollUpRows;ne++)this.rows[Ot-this.nrRollUpRows+ne+1].copy(ee.rows[Rt+ne])}}this.currRow=Ot;const ee=this.rows[this.currRow];if(null!==Rt.indent){const Ot=Rt.indent,ne=Math.max(Ot-1,0);ee.setCursor(Rt.indent),Rt.color=ee.chars[ne].penState.foreground}const ne={foreground:Rt.color,underline:Rt.underline,italics:Rt.italics,background:"black",flash:!1};this.setPen(ne)}setBkgData(Rt){this.logger.log(2,(()=>"bkgData = "+JSON.stringify(Rt))),this.backSpace(),this.setPen(Rt),this.insertChar(32)}setRollUpRows(Rt){this.nrRollUpRows=Rt}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const Rt=this.currRow+1-this.nrRollUpRows,Ot=this.rows.splice(Rt,1)[0];Ot.clear(),this.rows.splice(this.currRow,0,Ot),this.logger.log(2,"Rolling up")}getDisplayText(Rt){Rt=Rt||!1;const Ot=[];let ee="",ne=-1;for(let ee=0;ee<$s;ee++){const re=this.rows[ee].getTextString();
1re&&(ne=ee+1,Rt?Ot.push("Row "+ne+": '"+re+"'"):Ot.push(re.trim()))}return Ot.length>0&&(ee=Rt?"["+Ot.join(" | ")+"]":Ot.join("\n")),ee}getTextAndFormat(){return this.rows}},Xs=class{constructor(Rt,Ot,ee=new Gs){this.chNr=Rt,this.outputFilter=Ot,this.mode=null,this.displayedMemory=new Qs(ee),this.nonDisplayedMemory=new Qs(ee),this.lastOutputScreen=new Qs(ee),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=ee,this.logger.log(2,"new Cea608Channel("+this.chNr+")")}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter?.reset?.(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(Rt){this.outputFilter=Rt}setPAC(Rt){this.writeScreen.setPAC(Rt)}setBkgData(Rt){this.writeScreen.setBkgData(Rt)}setMode(Rt){Rt!==this.mode&&(this.mode=Rt,this.logger.log(2,(()=>"MODE="+Rt)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.setRollUpRows(null),this.nonDisplayedMemory.setRollUpRows(null)),this.mode=Rt)}insertChars(Rt){for(const Ot of Rt)this.writeScreen.insertChar(Ot);const Ot=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>Ot+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(Rt){this.logger.log(2,"RU("+Rt+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(Rt)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const Rt=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=Rt,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(Rt){this.logger.log(2,"TO("+Rt+") - Tab Offset"),this.writeScreen.moveCursor(Rt)}ccMIDROW(Rt){const Ot={flash:!1};Ot.underline=Rt%2==1,Ot.italics=Rt>=46,Ot.italics?Ot.foreground="white":Ot.foreground=["white","green","blue","cyan","red","yellow","magenta"][Math.floor(Rt/2)-16],this.logger.log(2,"MIDROW: "+JSON.stringify(Ot)),this.writeScreen.setPen(Ot)}outputDataUpdate(Rt=!1){const Ot=this.logger.time;null!==Ot&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,Ot,this.lastOutputScreen),Rt&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:Ot):this.cueStartTime=Ot,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(Rt){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,Rt,this.displayedMemory),this.cueStartTime=Rt))}};const Zs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];function Po(Rt,Ot,ee){return ee.a===Rt&&ee.b===Ot}function Oo(Rt){const Ot=[];for(const ee of Rt)Ot.push(ee.toString(16));return Ot}const Js={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tu={25:2,26:4,29:6,30:8,31:10,27:13,28:15},eu={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},nu={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14};function jo(Rt,Ot,ee){ee.a=Rt,ee.b=Ot}var au=class{constructor(Rt,Ot,ee){this.currentChannel=0,this.cmdHistory={a:null,b:null},this.lastTime=null;const ne=this.logger=new Gs;
1this.channels=[null,new Xs(Rt,Ot,ne),new Xs(Rt+1,ee,ne)]}addData(Rt,Ot){this.lastTime=Rt,this.logger.time=Rt;for(let ee=0;ee<Ot.length;ee+=2){const ne=127&Ot[ee],re=127&Ot[ee+1];let ie=!1,le=null;if(null!==this.lastTime&&(Rt=this.lastTime+.5*ee*1001/3e4,this.logger.time=Rt),0===ne&&0===re)continue;this.logger.log(3,(()=>"["+Oo([Ot[ee],Ot[ee+1]])+"] -> ("+Oo([ne,re])+")"));const oe=this.cmdHistory;if(ne>=16&&ne<=31){if(Po(ne,re,oe)){jo(null,null,oe),this.logger.log(3,(()=>"Repeated command ("+Oo([ne,re])+") is dropped"));continue}jo(ne,re,this.cmdHistory),ie=this.parseCmd(ne,re),ie||(ie=this.parseMidrow(ne,re)),ie||(ie=this.parsePAC(ne,re)),ie||(ie=this.parseBackgroundAttributes(ne,re))}else jo(null,null,oe);if(!ie&&(le=this.parseChars(ne,re),le.length)){const Rt=this.currentChannel;Rt&&Rt>0?this.channels[Rt].insertChars(le):this.logger.log(2,"No channel found yet. TEXT-MODE?")}ie||le||this.logger.log(2,(()=>"Couldn't parse cleaned data "+Oo([ne,re])+" orig: "+Oo([Ot[ee],Ot[ee+1]])))}}parseCmd(Rt,Ot){if(!((20===Rt||28===Rt||21===Rt||29===Rt)&&Ot>=32&&Ot<=47||(23===Rt||31===Rt)&&Ot>=33&&Ot<=35))return!1;const ee=20===Rt||21===Rt||23===Rt?1:2,ne=this.channels[ee];return 20===Rt||21===Rt||28===Rt||29===Rt?32===Ot?ne.ccRCL():33===Ot?ne.ccBS():34===Ot?ne.ccAOF():35===Ot?ne.ccAON():36===Ot?ne.ccDER():37===Ot?ne.ccRU(2):38===Ot?ne.ccRU(3):39===Ot?ne.ccRU(4):40===Ot?ne.ccFON():41===Ot?ne.ccRDC():42===Ot?ne.ccTR():43===Ot?ne.ccRTD():44===Ot?ne.ccEDM():45===Ot?ne.ccCR():46===Ot?ne.ccENM():47===Ot&&ne.ccEOC():ne.ccTO(Ot-32),this.currentChannel=ee,!0}parseMidrow(Rt,Ot){let ee=0;if((17===Rt||25===Rt)&&Ot>=32&&Ot<=47){if(ee=17===Rt?1:2,ee!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const ne=this.channels[ee];return!!ne&&(ne.ccMIDROW(Ot),this.logger.log(3,(()=>"MIDROW ("+Oo([Rt,Ot])+")")),!0)}return!1}parsePAC(Rt,Ot){let ee;if(!((Rt>=17&&Rt<=23||Rt>=25&&Rt<=31)&&Ot>=64&&Ot<=127||(16===Rt||24===Rt)&&Ot>=64&&Ot<=95))return!1;const ne=Rt<=23?1:2;ee=Ot>=64&&Ot<=95?1===ne?eu[Rt]:nu[Rt]:1===ne?Js[Rt]:tu[Rt];const re=this.channels[ne];return!!re&&(re.setPAC(this.interpretPAC(ee,Ot)),this.currentChannel=ne,!0)}interpretPAC(Rt,Ot){let ee;const ne={color:null,italics:!1,indent:null,underline:!1,row:Rt};return ee=Ot>95?Ot-96:Ot-64,ne.underline=!(1&~ee),ee<=13?ne.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(ee/2)]:ee<=15?(ne.italics=!0,ne.color="white"):ne.indent=4*Math.floor((ee-16)/2),ne}parseChars(Rt,Ot){let ee,ne=[],re=null;if(Rt>=25?(ee=2,re=Rt-8):(ee=1,re=Rt),re>=17&&re<=19){let Rt;Rt=17===re?Ot+80:18===re?Ot+112:Ot+144,this.logger.log(2,(()=>"Special char '"+Ro(Rt)+"' in channel "+ee)),ne=[Rt]}else Rt>=32&&Rt<=127&&(ne=0===Ot?[Rt]:[Rt,Ot]);return ne&&this.logger.log(3,(()=>"Char codes =  "+Oo(ne).join(","))),ne}parseBackgroundAttributes(Rt,Ot){if(!((16===Rt||24===Rt)&&Ot>=32&&Ot<=47||(23===Rt||31===Rt)&&Ot>=45&&Ot<=47))return!1;let ee;const ne={};16===Rt||24===Rt?(ee=Math.floor((Ot-32)/2),ne.background=Zs[ee],Ot%2==1&&(ne.background=ne.background+"_semi")):45===Ot?ne.background="transparent":(ne.foreground="black",47===Ot&&(ne.underline=!0));const re=Rt<=23?1:2;return this.channels[re].setBkgData(ne),!0}reset(){for(let Rt=0;Rt<Object.keys(this.channels).length;Rt++){const Ot=this.channels[Rt];Ot&&Ot.reset()}jo(null,null,this.cmdHistory)}cueSplitAtTime(Rt){for(const Ot of this.channels)Ot&&Ot.cueSplitAtTime(Rt)}};function Bo(Rt,Ot,ee){const ne=[];for(let re=Ot;re<ee;re++)re+2<ee&&0===Rt.getUint8(re)&&0===Rt.getUint8(re+1)&&3===Rt.getUint8(re+2)?(ne.push(0),ne.push(0),re+=2):ne.push(Rt.getUint8(re));return new DataView(new Uint8Array(ne).buffer)}function Go(Rt,Ot,ee,ne){return!(4!==Rt||Ot<8)&&181===ee.getUint8(ne)&&49===ee.getUint16(ne+1)&&1195456820===ee.getUint32(ne+3)&&3===ee.getUint8(ne+7)}function Ho(Rt,Ot){return(127&Rt)>0||(127&Ot)>0}function Yo(Rt,Ot){let ee=0;for(;ee<Rt.byteLength;){let re,ie=0,le=0;do{ie+=re=Rt.getUint8(ee++)}while(255===re);do{le+=re=Rt.getUint8(ee++)}while(255===re);if(Go(ie,le,Rt,ee)){const re=ee+10,ie=re+3*(31&Rt.getUint8(re-2));for(let ee=re;ee<ie;ee+=3){const re=Rt.getUint8(ee);if(4&re){const ie=3&re;if(0===(ne=ie)||1===ne){const ne=Rt.getUint8(ee+1),re=Rt.getUint8(ee+2);Ho(ne,re)&&Ot[ie].push(ne,re)}
1}}}ee+=le}var ne}function Vo(Rt,Ot,ee){let ne=0,re=0;const ie=[[],[]];for(let le=Ot;le<Ot+ee-5&&(ne=Rt.getUint32(le),re=31&Rt.getUint8(le+4),!(le+5+ne>Ot+ee));le++)6===re&&le+5+ne<=Rt.byteLength&&Yo(Bo(Rt,le+5,le+5+ne),ie),le+=ne+3;return ie}function Ko(Rt){const Ot=Rt.errHandler,ee=Rt.manifestModel,ne=Rt.mediaController,re=Rt.videoModel,ie=Rt.textTracks,oe=Rt.vttParser,ue=Rt.vttCustomRenderingParser,he=Rt.ttmlParser,pe=Rt.streamInfo,be=Rt.settings,ye=this.context,Ee=(0,ce.default)(ye).getInstance();let Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe,Ge,We,ln,on=!1;function z(){De=null,Me=NaN,Oe=[],Pe=null,xe=!1,Ce=[],Ne=null}function L(Rt){const Ot={};Ot[Xn.default.SUBTITLE]="subtitles",Ot[Xn.default.CAPTION]="captions",Ot[Xn.default.FORCED_SUBTITLE]="subtitles";const ee=new js;for(let Ot in Rt)ee[Ot]=Rt[Ot];ee.defaultTrack=function(Rt){let Ot=!1;return Ue.length>1&&Rt.isEmbedded?Ot=Rt.id&&Rt.id===ge.default.CC1:1===Ue.length?Rt.id&&"string"==typeof Rt.id&&"CC"===Rt.id.substring(0,2)&&(Ot=!0):0===Ue.length&&(Ot=Rt.index===Ce[0].index),Ot}(Rt),ee.isTTML=function(Rt){return Rt.codec&&Rt.codec.search(ge.default.STPP)>=0||Rt.mimeType&&Rt.mimeType.search(ge.default.TTML)>=0}(Rt),ee.kind=function(Rt,Ot){let ee=Rt.roles&&Rt.roles.length>0?Ot[Rt.roles[0].value]:Ot.caption;return ee=Object.values(Ot).includes(ee)?ee:Ot.caption,ee}(Rt,Ot),ie.addTextTrackInfo(ee)}function F(Rt){const Ot=Rt.chunk;Ot.representation.mediaInfo.embeddedCaptions&&j(Ot.bytes,Ot)}
1function U(Rt){Fe=Rt}function j(Rt,ne){const re=ne.representation.mediaInfo,le=re.type,ue=re.mimeType,ce=re.codec||ue;ce?-1!==re.codec.indexOf("application/mp4")?function(Rt,Ot,ne){let re,le;if("InitializationSegment"===Ot.segmentType)xe=!0,Me=Re.getMediaTimescaleFromMoov(Rt);else{if(!xe)return;le=Re.getSamplesInfo(Rt),re=le.sampleList,re.length>0&&(Pe=re[0].cts-Ot.start*Me),ne.search(ge.default.STPP)>=0?function(Rt,Ot,ne){let re,le;for(Ne=null!==Ne?Ne:G(ne),re=0;re<Ot.length;re++){const ne=Ot[re],oe=ne.cts,ue=B(),ce=ue+oe/Me,fe=ce+ne.duration/Me;Se.buffered.add(ce,fe);const he=new DataView(Rt,ne.offset,ne.subSizes[0]);let pe=Di.Utils.dataViewToString(he,ge.default.UTF8);const be=[];let ye=ne.offset+ne.subSizes[0];for(le=1;le<ne.subSizes.length;le++){const Ot=new Uint8Array(Rt,ye,ne.subSizes[le]),ee=String.fromCharCode.apply(null,Ot);be.push(ee),ye+=ne.subSizes[le]}try{const Rt=ee.getValue().ttmlTimeIsRelative?oe/Me:0,Ot=Ne.parse(pe,Rt,oe/Me,(oe+ne.duration)/Me,be);ie.addCaptions(Fe,ue,Ot)}catch(Rt){De.removeExecutedRequestsBeforeTime(),H(),we.error("TTML parser error: "+Rt)}}}(Rt,re,ne):function(Rt,Ot){let ee,ne,re;const le=[];for(ee=0;ee<Ot.length;ee++){const ie=Ot[ee];ie.cts-=Pe;const ue=B()+ie.cts/Me,ce=ue+ie.duration/Me;Se.buffered.add(ue,ce);const fe=Rt.slice(ie.offset,ie.offset+ie.size),ge=Di.parseBuffer(fe);for(ne=0;ne<ge.boxes.length;ne++){const Ot=ge.boxes[ne];if(we.debug("VTT box1: "+Ot.type),"vtte"!==Ot.type&&"vttc"===Ot.type){we.debug("VTT vttc boxes.length = "+Ot.boxes.length);let ee={styles:{}};for(re=0;re<Ot.boxes.length;re++){const ne=Ot.boxes[re];if(we.debug("VTT box2: "+ne.type),"payl"===ne.type)ee.start=ie.cts/Me,ee.end=(ie.cts+ie.duration)/Me,ee.data=ne.cue_text;else if("sttg"===ne.type&&ne.settings&&""!==ne.settings)try{const Rt=ne.settings.split(" ");ee.styles=oe.getCaptionStyles(Rt)}catch(Rt){}}ee&&ee.data&&(le.push(ee),we.debug(`VTT  ${ee.start} - ${ee.end} :  ${ee.data}`))}}}le.length>0&&ie.addCaptions(Fe,0,le)}(Rt,re)}}(Rt,ne,ce):le===ge.default.VIDEO?function(Rt,Ot){let ee,ne;if(Ot.segmentType===_e.HTTPRequest.INIT_SEGMENT_TYPE)0===je&&(je=Re.getMediaTimescaleFromMoov(Rt));else if(Ot.segmentType===_e.HTTPRequest.MEDIA_SEGMENT_TYPE){if(0===je)return void we.warn("CEA-608: No timescale for embeddedTextTrack yet");ne=Re.getSamplesInfo(Rt);const re=ne.lastSequenceNumber,le=Math.trunc(Ot.start),oe=Math.trunc(Ot.end);if(We[0]||We[1]||function(){let Rt;for(let Ot=0;Ot<Ue.length;Ot++){if(Rt=ie.getTrackIdxForId(Ue[Ot].id),-1===Rt)return void we.warn("CEA-608: data before track is ready.");const ee=q(Rt);We[Ot]=new au(Ot+1,{newCue:ee},null)}}(),je){if(function(Rt,Ot,ee,ne,re){return null!==Rt&&null!==Ot&&null!==ne&&null!==re&&(Ot===Rt?ne!==re:Ot!==Rt+ee)}(qe,re,ne.numSequences,Ge,le))for(ee=0;ee<We.length;ee++)We[ee]&&We[ee].reset();const Ot=function(Rt,Ot){if(0===Ot.length)return null;const ee={splits:[],fields:[[],[]]},ne=new DataView(Rt);for(let Rt=0;Rt<Ot.length;Rt++){const re=Ot[Rt],ie=Vo(ne,re.offset,re.size);let le=null,oe=0;for(let Rt=0;Rt<2;Rt++)if(ie[Rt].length>0){re.cts!==le?oe=0:oe+=1;const Ot=B();ee.fields[Rt].push([re.cts+Ot*je,ie[Rt],oe]),le=re.cts}}return ee.fields.forEach((function(Rt){Rt.sort((function(Rt,Ot){return Rt[0]===Ot[0]?Rt[2]-Ot[2]:Rt[0]-Ot[0]}))})),ee}(Rt,ne.sampleList);for(let Rt=0;Rt<We.length;Rt++){const ne=Ot.fields[Rt],re=We[Rt];if(re)for(ee=0;ee<ne.length;ee++)re.addData(ne[ee][0]/je,ne[ee][1])}qe=re,Ge=oe}}}(Rt,ne):function(Rt,ee,ne){let re,le;const oe=new DataView(Rt,0,Rt.byteLength);le=Di.Utils.dataViewToString(oe,ge.default.UTF8);try{re=G(ne).parse(le,0),ie.addCaptions(ie.getCurrentTrackIdx(),0,re),Se.buffered&&Se.buffered.add(ee.start,ee.end)}catch(Rt){Ot.error(new jn.default(zn.TIMED_TEXT_ERROR_ID_PARSE_CODE,zn.TIMED_TEXT_ERROR_MESSAGE_PARSE+Rt.message,le))}}(Rt,ne,ce):we.error("No text type defined")}function q(Rt){return function(Ot,ee,ne){let le;le=re.getTTMLRenderingDiv()?ln.createHTMLCaptionsFromScreen(re.getElement(),Ot,ee,ne):[{start:Ot,end:ee,data:ne.getDisplayText(),styles:{}}],le&&ie.addCaptions(Rt,0,le)}}function B(){return isNaN(Se.timestampOffset)?0:Se.timestampOffset}function G(Rt){let Ot;return Rt.search(ge.default.VTT)>=0?Ot=be.get().streaming.text.webvtt.customRenderingEnabled&&ue?ue:oe:(Rt.search(ge.default.TTML)>=0||Rt.search(ge.default.STPP)>
1=0)&&(Ot=he),Ot}function H(Rt,Ot){void 0===Rt&&Rt===Ot&&(Rt=Se.buffered.start(0),Ot=Se.buffered.end(Se.buffered.length-1)),Se.buffered.remove(Rt,Ot),ie.deleteCuesFromTrackIdx(Fe,Rt,Ot)}function Y(Rt){Ue.forEach((function(Ot){const ee=ie.getTrackIdxForId(Ot.id);ee>=0&&ie.deleteCuesFromTrackIdx(ee,Rt.from,Rt.to)}))}return Se={initialize:function(){on||(Ue=[],Fe=null,je=0,We=[],qe=null,Ge=null,on=!0,ln=Bs(ye).getInstance(),Ee.on(fe.default.VIDEO_CHUNK_RECEIVED,F,Se),Ee.on(fe.default.BUFFER_CLEARED,Y,Se))},addMediaInfos:function(Rt,Ot,ee){if(Ce=Ce.concat(Ot),Rt===ge.default.TEXT&&Ot[0].isFragmented&&!Ot[0].isEmbedded){De=ee,Se.buffered=(0,qs.default)(ye).create(),Oe=ne.getTracksFor(ge.default.TEXT,pe.id).filter((Rt=>Rt.isFragmented));const Rt=ne.getCurrentTrackFor(ge.default.TEXT,pe.id);for(let Ot=0;Ot<Oe.length;Ot++)if(Oe[Ot]===Rt){U(Ot);break}}for(let Rt=0;Rt<Ot.length;Rt++)L(Ot[Rt])},resetMediaInfos:function(){Ce=[]},getStreamId:function(){return pe.id},append:j,abort:function(){},addEmbeddedTrack:function(Rt){if(on&&Rt)if(Rt.id===ge.default.CC1||Rt.id===ge.default.CC3){for(let Ot=0;Ot<Ue.length;Ot++)if(Ue[Ot].id===Rt.id)return;Ue.push(Rt)}else we.warn("Embedded track "+Rt.id+" not supported!")},resetEmbedded:function(){Ee.off(fe.default.VIDEO_CHUNK_RECEIVED,F,Se),Ee.off(fe.default.BUFFER_CLEARED,Y,Se),ie&&ie.deleteAllTextTracks(),on=!1,Ue=[],We=[null,null],qe=null,Ge=null},getConfig:function(){return{fragmentModel:De,fragmentedTracks:Oe,videoModel:re}},setCurrentFragmentedTrackIdx:U,remove:H,reset:function(){z(),Ce=[],Re=null}},we=(0,le.default)(ye).getInstance().getLogger(Se),Re=Pi(ye).getInstance(),z(),Se}Ko.__dashjs_factory_name="TextSourceBuffer";var ru=ne.default.getClassFactory(Ko);class $o{constructor(){this.root=null,this.size=0}addCue(Rt){const Ot={start:Rt.startTime,end:Rt.endTime,cue:Rt,maxEnd:Rt.endTime,left:null,right:null,height:1},[ee,ne]=this._insert(Ot,this.root);this.root=ee,ne&&this.size++}removeCue(Rt){const[Ot,ee]=this._remove(Rt,this.root);return this.root=Ot,ee&&this.size--,ee}findCuesInRange(Rt,Ot){const ee=[];return this._searchRange(this.root,Rt,Ot,ee),ee}findCuesAtTime(Rt){return this.findCuesInRange(Rt,Rt)}getAllCues(){const Rt=[];return this._inorderTraversal(this.root,Rt),Rt}getSize(){return this.size}clear(){this.root=null,this.size=0}_compareCues(Rt,Ot){return Rt.startTime!==Ot.startTime?Rt.startTime-Ot.startTime:Rt.endTime!==Ot.endTime?Rt.endTime-Ot.endTime:"undefined"!=typeof VTTCue&&Rt instanceof VTTCue&&Ot instanceof VTTCue||Rt.text&&Ot.text?Rt.text.localeCompare(Ot.text):0}_compareIntervals(Rt,Ot){return this._compareCues(Rt.cue,Ot.cue)}_insert(Rt,Ot){if(!Ot)return[Rt,!0];const ee=this._compareIntervals(Rt,Ot);if(ee<0){const[ee]=this._insert(Rt,Ot.left);Ot.left=ee}else{if(!(ee>0))return[Ot,!1];{const[ee]=this._insert(Rt,Ot.right);Ot.right=ee}}Ot.height=1+Math.max(this._getHeight(Ot.left),this._getHeight(Ot.right)),Ot.maxEnd=Math.max(Ot.maxEnd,Rt.maxEnd);const ne=this._getBalance(Ot);return ne>1?(this._compareIntervals(Rt,Ot.left)<0||(Ot.left=this._leftRotate(Ot.left)),[this._rightRotate(Ot),!0]):ne<-1?(this._compareIntervals(Rt,Ot.right)>0||(Ot.right=this._rightRotate(Ot.right)),[this._leftRotate(Ot),!0]):[Ot,!0]}_searchRange(Rt,Ot,ee,ne){Rt&&(this._overlaps(Rt,Ot,ee)&&ne.push(Rt.cue),Rt.left&&Rt.left.maxEnd>=Ot&&this._searchRange(Rt.left,Ot,ee,ne),Rt.right&&Rt.start<=ee&&this._searchRange(Rt.right,Ot,ee,ne))}_inorderTraversal(Rt,Ot){Rt&&(this._inorderTraversal(Rt.left,Ot),Ot.push(Rt.cue),this._inorderTraversal(Rt.right,Ot))}_overlaps(Rt,Ot,ee){if(ee===Ot){const ee=Ot;return Rt.start<=ee&&ee<Rt.end}return Rt.start<ee&&Ot<Rt.end}_getHeight(Rt){return Rt?Rt.height:0}_getBalance(Rt){return Rt?this._getHeight(Rt.left)-this._getHeight(Rt.right):0}_leftRotate(Rt){const Ot=Rt.right,ee=Ot.left;return Ot.left=Rt,Rt.right=ee,Rt.height=1+Math.max(this._getHeight(Rt.left),this._getHeight(Rt.right)),Ot.height=1+Math.max(this._getHeight(Ot.left),this._getHeight(Ot.right)),Rt.maxEnd=Math.max(Rt.end,Rt.left?Rt.left.maxEnd:0,Rt.right?Rt.right.maxEnd:0),Ot.maxEnd=Math.max(Ot.end,Ot.left?Ot.left.maxEnd:0,Ot.right?Ot.right.maxEnd:0),Ot}_rightRotate(Rt){const Ot=Rt.left,ee=Ot.right;return Ot.right=Rt,Rt.left=ee,Rt.height=1+Math.max(this._getHeight(Rt.left),this._getHeight(Rt.right)),Ot.height=1+Math.max(this._getHeight(Ot.left),this._getHeight(Ot.right)),Rt.maxEnd=Math.max(Rt.end,Rt.left?Rt.left.maxEnd:0,Rt.right?Rt.right.maxEnd:0),Ot.maxEnd=Math.max(Ot.end,Ot.left?Ot.left.maxEnd:0,Ot.right?Ot.right.maxEnd:0),Ot}_remove(Rt,Ot){if(!Ot)return[null,!1];const ee=this._compareCues(Rt,Ot.cue);if(ee<0){const[ee,ne]=this._remove(Rt,Ot.left);return Ot.left=ee,ne&&this._updateNode(Ot),[Ot,ne]}if(ee>0){const[ee,ne]=this._remove(Rt,Ot.right);return Ot.right=ee,ne&&this._updateNode(Ot),[Ot,ne]}if(Ot.left||Ot.right){if(Ot.left){if(Ot.right){const Rt=this._findMin(Ot.right);Ot.cue=Rt.cue,Ot.start=Rt.start,Ot.end=Rt.end;const[ee]=this._remove(Rt.cue,Ot.right);return Ot.right=ee,this._updateNode(Ot),[Ot,!0]}return[Ot.left,!0]}return[Ot.right,!0]}return[null,!0]}_findMin(Rt){for(;Rt.left;)Rt=Rt.left;return Rt}_updateNode(Rt){Rt.height=1+Math.max(this._getHeight(Rt.left),this._getHeight(Rt.right)),Rt.maxEnd=Math.max(Rt.end,Rt.left?Rt.left.maxEnd:0,Rt.right?Rt.right.maxEnd:0)}}var iu=ee(7640);const lu=["text","align","fontSize","id","isd","line","lineAlign","lineHeight","linePadding","position","positionAlign","region","size","snapToLines","vertical"];function Zo(Rt){const Ot=this.context,ee=(0,ce.default)(Ot).getInstance(),ne=Rt.videoModel,re=Rt.streamInfo,ie=Rt.settings;let oe,ue,pe,be,ye,Ee,_e,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je;const qe=new Map;
1function x(Rt){const Ot=Rt.kind,ee=void 0!==Rt.id?Rt.id:Rt.lang,re=Rt.lang,ie=Rt.isTTML,le=Rt.isEmbedded;return ne.addTextTrack(Ot,ee,re,ie,le)}function M(Rt,Ot,ee,ne,re,ie){let le=0,oe=0;Rt/Ot>ee/ne?(oe=Ot,le=oe/ne*ee):(le=Rt,oe=le/ee*ne);let ue=0,ce=0,fe=0,ge=0;return le/oe>re?(ge=oe,fe=oe*re):(fe=le,ge=le/re),ue=(Rt-fe)/2,ce=(Ot-ge)/2,ie?{x:ue+.1*fe,y:ce+.1*ge,w:.8*fe,h:.8*ge}:{x:ue,y:ce,w:fe,h:ge}}function P(Rt,Ot){const re=ne.getClientWidth(),ie=ne.getClientHeight(),le=ne.getVideoWidth(),oe=ne.getVideoHeight(),ue=ne.getVideoRelativeOffsetTop(),ce=ne.getVideoRelativeOffsetLeft();if(0!==le&&0!==oe){let ne=le/oe,fe=!1;Rt.isFromCEA608&&(ne=3.5/3,fe=!0);const ge=M.call(this,re,ie,le,oe,ne,fe),pe=ge.w,be=ge.h,ye=ge.x,Ee=ge.y;if(pe!=we||be!=Re||ye!=_e||Ee!=Se||Ot){if(_e=ye+ce,Se=Ee+ue,we=pe,Re=be,Ne){const Rt=Ne.style;Rt&&(Rt.left=_e+"px",Rt.top=Se+"px",Rt.width=we+"px",Rt.height=Re+"px",Rt.zIndex=xe&&document[xe]||Me?Pe:null,ee.trigger(he.default.CAPTION_CONTAINER_RESIZE))}const Ot=Rt.activeCues;if(Ot){const Rt=Ot.length;for(let ee=0;ee<Rt;++ee){const Rt=Ot[ee];Rt.scaleCue(Rt)}}}}}function O(Rt){const Ot=we,ee=Re;let ne,re,ie,le,oe;if(Rt.cellResolution){const ue=[Ot/Rt.cellResolution[0],ee/Rt.cellResolution[1]];if(Rt.linePadding)for(ne in Rt.linePadding)if(Rt.linePadding.hasOwnProperty(ne)){re=(Rt.linePadding[ne]*ue[0]).toString();const Ot=document.getElementsByClassName("spanPadding");for(let Rt=0;Rt<Ot.length;Rt++)Ot[Rt].style.cssText=Ot[Rt].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+re),Ot[Rt].style.cssText=Ot[Rt].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+re)}if(Rt.fontSize){for(ne in Rt.fontSize)if(Rt.fontSize.hasOwnProperty(ne)){"%"===Rt.fontSize[ne][0]?ie=Rt.fontSize[ne][1]/100:"c"===Rt.fontSize[ne][0]&&(ie=Rt.fontSize[ne][1]),re=(ie*ue[1]).toString(),oe="defaultFontSize"!==ne?document.getElementsByClassName(ne):document.getElementsByClassName("paragraph");for(let Rt=0;Rt<oe.length;Rt++)oe[Rt].style.cssText=oe[Rt].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+re)}if(Rt.lineHeight)for(ne in Rt.lineHeight)if(Rt.lineHeight.hasOwnProperty(ne)){"%"===Rt.lineHeight[ne][0]?le=Rt.lineHeight[ne][1]/100:"c"===Rt.fontSize[ne][0]&&(le=Rt.lineHeight[ne][1]),re=(le*ue[1]).toString(),oe=document.getElementsByClassName(ne);for(let Rt=0;Rt<oe.length;Rt++)oe[Rt].style.cssText=oe[Rt].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+re)}}}if(Rt.isd){let Ot=document.getElementById(Rt.cueID);Ot&&Ne.removeChild(Ot),L(Rt)}}function z(Rt,Ot){const ee=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/,ne=/^#(.*)$/;if(ee.test(Ot)){const ne=ee.exec(Ot),re=parseInt(ne[4],10)-1;return"data:image/png;base64,"+btoa(Rt.images[re])}if(ne.test(Ot)){const ee=ne.exec(Ot)[1];return"data:image/png;base64,"+Rt.embeddedImages[ee]}return Ot}function L(Rt){if(Ne){lt.call(this);const Ot=document.createElement("div");Ne.appendChild(Ot),Oe=(0,iu.renderHTML)(Rt.isd,Ot,(function(Ot){return z(Rt,Ot)}),Ne.clientHeight,Ne.clientWidth,ie.get().streaming.text.imsc.displayForcedOnlyMode,(function(Rt){ue.info("renderCaption :",Rt)}),Oe,ie.get().streaming.text.imsc.enableRollUp),Ot.id=Rt.cueID,ee.trigger(he.default.CAPTION_RENDERED,{captionDiv:Ot,currentTrackIdx:Ee})}}function F(Rt,Ot){const ee=Ot.findCuesInRange(Rt.startTime-.1,Rt.endTime+.1);for(const Ot of ee){if(U(Rt,Ot)&&j(Rt,Ot,lu))return Ot;if(U(Ot,Rt)&&j(Rt,Ot,lu))return Ot}return null}function U(Rt,Ot){return!!Ot&&Ot.endTime>=Rt.startTime}function j(Rt,Ot,ee){for(let ne=0;ne<ee.length;ne++){const re=ee[ne];if(JSON.stringify(Rt[re])!==JSON.stringify(Ot[re]))return!1}return!0}function q(Rt,Ot){Ot&&Ot.forEach((Ot=>{Ot.kind&&"image"===Ot.kind&&(Ot.src=z(Rt,Ot.src)),q(Rt,Ot.contents)}))}function B(Rt,Ot,ee){const ne=Z(Rt),re=qe.get(ne),le=ie.get().streaming.text.dispatchForManualRendering;if(ne&&re&&Array.isArray(ee)&&0!==ee.length){for(let Rt=0;Rt<ee.length;Rt++){let fe=null;const ge=ee[Rt];if(ne.cellResolution=ge.cellResolution,ne.isFromCEA608=ge.isFromCEA608,isNaN(ge.start)||isNaN(ge.end)||(le?fe=G(ge,Ot):W(ge)&&Ne?fe=V(ge,Ot,ne):ge.data&&(fe=K(ge,Ot,ne))),fe){if(ie.get().streaming.text.extendSegmentedCues){const Rt=F(fe,re.allCues);Rt&&(re.allCues.removeCue(Rt),ce=fe,(oe=Rt).startTime=Math.min(oe.startTime,ce.startTime),oe.endTime=Math.max(oe.endTime,ce.endTime),fe=oe)}re.allCues.addCue(fe)}else ue.error("Impossible to display subtitles. You might have missed setting a TTML rendering div via player.attachTTMLRenderingDiv(TTMLRenderingDiv)")}var oe,ce;at()}}
1function G(Rt,Ot){let ee=$(Rt,Ot);return ee.onenter=function(){W(Rt)&&je&&je.cueID!==ee.cueID&&Y(je),delete ee.type,je=ee,H(ee)},ee.onexit=function(){Y(ee),je=null},ee}function H(Rt){ee.trigger(he.default.CUE_ENTER,Rt)}function Y(Rt){ee.trigger(he.default.CUE_EXIT,{cueID:Rt.cueID})}function V(Rt,Ot,ne){const re=this;let ie=$(Rt,Ot);return Ne.style.left=_e+"px",Ne.style.top=Se+"px",Ne.style.width=we+"px",Ne.style.height=Re+"px",ie.onenter=function(){ne.mode===ge.default.TEXT_SHOWING&&(this.isd?(Ue?requestAnimationFrame((()=>L(this))):L(this),ue.debug("Cue enter id:"+this.cueID)):(Ne.appendChild(this.cueHTMLElement),O.call(re,this),ee.trigger(he.default.CAPTION_RENDERED,{captionDiv:this.cueHTMLElement,currentTrackIdx:Ee})))},ie.onexit=function(){if(Ne){const Rt=Ne.childNodes;for(let Ot=0;Ot<Rt.length;++Ot)Rt[Ot].id===this.cueID&&(ue.debug("Cue exit id:"+Rt[Ot].id),Ne.removeChild(Rt[Ot]),--Ot)}},ie}function K(Rt,Ot,ne){let re=$(Rt,Ot);if(Rt.styles)try{void 0!==Rt.styles.align&&"align"in re&&(re.align=Rt.styles.align),void 0!==Rt.styles.line&&"line"in re&&(re.line=Rt.styles.line),void 0!==Rt.styles.lineAlign&&(re.lineAlign=Rt.styles.lineAlign),void 0!==Rt.styles.snapToLines&&"snapToLines"in re&&(re.snapToLines=Rt.styles.snapToLines),void 0!==Rt.styles.position&&"position"in re&&(re.position=Rt.styles.position),void 0!==Rt.styles.positionAlign&&(re.positionAlign=Rt.styles.positionAlign),void 0!==Rt.styles.size&&"size"in re&&(re.size=Rt.styles.size)}catch(Rt){ue.error(Rt)}return re.onenter=function(){ne.mode===ge.default.TEXT_SHOWING&&ee.trigger(he.default.CAPTION_RENDERED,{currentTrackIdx:Ee})},re}function W(Rt){return"html"===Rt.type}function $(Rt,Ot){return W(Rt)?function(Rt,Ot){let ee=new pe(Rt.start+Ot,Rt.end+Ot,"");return ee.cueHTMLElement=Rt.cueHTMLElement,ee.isd=Rt.isd,ee.images=Rt.images,ee.embeddedImages=Rt.embeddedImages,ee.cueID=Rt.cueID,ee.scaleCue=O.bind(self),ee.cellResolution=Rt.cellResolution,ee.lineHeight=Rt.lineHeight,ee.linePadding=Rt.linePadding,ee.fontSize=Rt.fontSize,ee.isd&&q(ee,ee.isd.contents),ee}(Rt,Ot):function(Rt,Ot){let ee=new pe(Rt.start-Ot,Rt.end-Ot,Rt.data);return ee.cueID=Bn.default.generateUuid(),ee}(Rt,Ot)}function Q(Rt){if(Ce){const Ot=Ce.childNodes;for(let ee=0;ee<Ot.length;++ee)Ot[ee].id===Rt.cueID&&(Ce.removeChild(Ot[ee]),--ee)}}function X(){const Rt=ne.getTextTracks(),Ot=[];for(const ee of Rt)ee.manualMode===ge.default.TEXT_SHOWING&&Ot.push(ee);return Ot}function Z(Rt){return Rt>=0&&be[Rt]?ne.getTextTrack(be[Rt].kind,be[Rt].id,be[Rt].lang,be[Rt].isTTML,be[Rt].isEmbedded):null}function J(Rt){if(Rt===Ee)return;Ee=Rt;const Ot=Z(Ee);tt.call(this,Ot),De&&(clearInterval(De),De=null),Ot&&"html"===Ot.renderingType&&(P.call(this,Ot,!0),window.ResizeObserver?(Fe=new window.ResizeObserver((()=>{P.call(this,Ot,!0)})),Fe.observe(ne.getElement())):De=setInterval(P.bind(this,Ot),500))}function tt(Rt){lt.call(this),Rt&&"html"===Rt.renderingType?rt.call(this):it.call(this)}function et(Rt,Ot,ee,ne=!0){return!!Rt&&(isNaN(Ot)||(ne?Rt.startTime:Rt.endTime)>=Ot)&&(isNaN(ee)||(ne?Rt.endTime:Rt.startTime)<=ee)}function nt(Rt,Ot,ee,ne=!0){if(!Rt)return;if(Rt.cues&&Rt.cues.length>0)for(let re=Rt.cues.length-1;re>=0;re--)et(Rt.cues[re],Ot,ee,ne)&&(Rt.cues[re].onexit&&Rt.cues[re].onexit(),Rt.removeCue(Rt.cues[re]));const re=qe.get(Rt);if(re){const Rt=re.activeCues,ne=Rt.filter((Rt=>Rt.startTime>=Ot&&Rt.endTime<=ee));ne.forEach((Rt=>{ie.get().streaming.text.dispatchForManualRendering?Y(Rt):Q(Rt)})),re.activeCues=Rt.filter((Rt=>!ne.includes(Rt)))}}function at(){for(const Rt of qe.values())Rt.lastCueWindowUpdate=-1/0}function rt(){let Rt=document.getElementById("native-cue-style");if(Rt)return;Rt=document.createElement("style"),Rt.id="native-cue-style",document.head.appendChild(Rt);const Ot=Rt.sheet,ee=ne.getElement();try{ee&&(ee.id?Ot.insertRule("#"+ee.id+"::cue {background: transparent}",0):0!==ee.classList.length?Ot.insertRule("."+ee.className+"::cue {background: transparent}",0):Ot.insertRule("video::cue {background: transparent}",0))}catch(Rt){ue.info(""+Rt.message)}}function it(){const Rt=document.getElementById("native-cue-style");Rt&&document.head.removeChild(Rt)}
1function lt(){if(Ne)for(;Ne.firstChild;)Ne.removeChild(Ne.firstChild)}function ot(){return be}return oe={addCaptions:B,addTextTrackInfo:function(Rt){be.push(Rt)},createTracks:function(){be.sort((function(Rt,Ot){return Rt.index-Ot.index})),Ne=ne.getTTMLRenderingDiv(),Ce=ne.getVttRenderingDiv();let Rt=-1;for(let Ot=0;Ot<be.length;Ot++){const ne=x(be[Ot]);ye.push(ne),be[Ot].defaultTrack&&(ne.default=!0,Rt=Ot);const re=Z(Ot);re&&(re.mode=ge.default.TEXT_SHOWING,Ne&&(be[Ot].isTTML||be[Ot].isEmbedded)?re.renderingType="html":re.renderingType="default",qe.set(re,{allCues:new $o,lastCueWindowUpdate:-1/0,activeCues:[]})),B(Ot,0,be[Ot].captionData),ee.trigger(he.default.TEXT_TRACK_ADDED)}if(J.call(this,Rt),Rt>=0){let e=function(){const Ot=Z(Rt);Ot&&"html"===Ot.renderingType&&P.call(this,Ot,!0),ee.off(he.default.PLAYBACK_METADATA_LOADED,e,this)};ee.on(he.default.PLAYBACK_METADATA_LOADED,e,this);for(let Ot=0;Ot<be.length;Ot++){const ee=Z(Ot);if(ee){const ne=ie.get().streaming.text.dispatchForManualRendering;ee.mode=Ot!==Rt||ne?ge.default.TEXT_HIDDEN:ge.default.TEXT_SHOWING,ee.manualMode=Ot===Rt?ge.default.TEXT_SHOWING:ge.default.TEXT_HIDDEN}}}ee.trigger(fe.default.TEXT_TRACKS_QUEUE_INITIALIZED,{index:Ee,tracks:be,streamId:re.id})},deleteAllTextTracks:function(){const Rt=ye?ye.length:0;for(let Ot=0;Ot<Rt;Ot++){const Rt=Z(Ot);Rt&&nt.call(this,Rt,re.start,re.start+re.duration,!1)}ye=[],be=[],De&&(clearInterval(De),De=null),Fe&&ne&&(Fe.unobserve(ne.getElement()),Fe=null),Ee=-1,lt.call(this),qe.clear()},deleteCuesFromTrackIdx:function(Rt,Ot,ee){const ne=Z(Rt);ne&&nt(ne,Ot,ee)},disableManualTracks:function(){const Rt=X();if(Rt&&Rt.length>0){const Ot=Rt[0],ee=qe.get(Ot);if(!ee)return;ee.activeCues.forEach((Rt=>{ie.get().streaming.text.dispatchForManualRendering?Y(Rt):Q(Rt)})),ee.activeCues=[]}},getCurrentTrackIdx:function(){return Ee},getCurrentTextTrackInfo:function(){return be[Ee]},getStreamId:function(){return re.id},getTextTrackInfos:ot,getTrackIdxForId:function(Rt){let Ot=-1;for(let ee=0;ee<be.length;ee++)if(be[ee].id===Rt){Ot=ee;break}return Ot},initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(pe=window.VTTCue||window.TextTrackCue,be=[],ye=[],Ee=-1,_e=0,Se=0,we=0,Re=0,Ne=null,Ce=null,De=null,Me=!1,Pe=2147483647,Oe=null,Ue="requestAnimationFrame"in window,qe.clear(),void 0!==document.fullscreenElement?xe="fullscreenElement":void 0!==document.webkitIsFullScreen?xe="webkitIsFullScreen":document.msFullscreenElement?xe="msFullscreenElement":document.mozFullScreen&&(xe="mozFullScreen"))},manualCueProcessing:function(Rt){const Ot=X();if(Ot&&Ot.length>0){const ee=Ot[0],ne=qe.get(ee);if(!ne)return;const re=ne.activeCues,le=ne.allCues.findCuesAtTime(Rt),oe=re.filter((Rt=>!le.includes(Rt))),ue=le.filter((Rt=>!re.includes(Rt)));oe.forEach((Rt=>{ie.get().streaming.text.dispatchForManualRendering?Y(Rt):Q(Rt)})),ue.forEach((Rt=>{ie.get().streaming.text.dispatchForManualRendering?H(Rt):WebVTT.processCues(window,[Rt],Ce,Rt.cueID)})),ne.activeCues=le}},setCurrentTrackIdx:J,setModeForTrackIdx:function(Rt,Ot){const ee=Z(Rt);ee&&ee.mode!==Ot&&(ee.mode=Ot),ee&&ee.manualMode!==Ot&&(ee.manualMode=Ot)},updateTextTrackWindow:function(Rt,Ot=!1){const ee=ot(),re=ie.get().streaming.text.webvtt.customRenderingEnabled;for(let le=0;le<ee.length;le++){const oe=ee[le],ue=Z(le),ce=qe.get(ue);if(!ue||!ce)continue;if(!oe.isEmbedded&&re)continue;const{bufferToKeep:fe,bufferPruningInterval:he}=ie.get().streaming.buffer,pe=Date.now();if((pe-ce.lastCueWindowUpdate)/1e3<he&&!Ot)continue;const be=ne.getPlaybackRate()||1,ye=Math.max(0,Rt-fe/be),Ee=Rt+2*he/be;if(ue.cues)for(;ue.cues.length>0;)ue.removeCue(ue.cues[0]);ue.mode!==ge.default.TEXT_DISABLED&&ce.allCues.findCuesInRange(ye,Ee).forEach((Rt=>{ue.addCue(Rt)})),ce.lastCueWindowUpdate=pe}},invalidateCueWindow:at},ue=(0,le.default)(Ot).getInstance().getLogger(oe),oe}Zo.__dashjs_factory_name="TextTracks";var ou=ne.default.getClassFactory(Zo);function ts(){const Rt=this.context;let Ot,ee,ne,re,ie,oe;function s(Rt){const Ot=Rt.split(":"),ee=Ot.length-1;return Rt=60*parseInt(Ot[ee-1],10)+parseFloat(Ot[ee]),2===ee&&(Rt+=3600*parseInt(Ot[0],10)),Rt}function u(Rt){const Ot=Rt.split(re),ee=Ot[1].split(oe);return ee.shift(),Ot[1]=ee[0],ee.shift(),{cuePoints:Ot,styles:d(ee)}}function d(Rt){const Ot={};return Rt.forEach((function(Rt){const ee=Rt.split(":");if(ee.length>1){const[Rt,ne]=ee;switch(Rt){case"align":case"A":Ot.align=ne;break;case"line":case"L":const[Rt,ee]=ne.split(","),re=Rt.endsWith("%");Ot.line="auto"===Rt?Rt:parseInt(Rt,10),re&&(Ot.snapToLines=!1),ee&&(Ot.lineAlign=ee);break;case"position":case"P":const[ie,le]=ne.split(",");Ot.position=parseInt(ie,10),le&&(Ot.positionAlign=le);break;case"size":case"S":Ot.size=parseInt(ne,10)}}})),Ot}function c(Rt,Ot){let ee,ne=Ot,ie="",le="";for(;""!==Rt[ne]&&ne<Rt.length;)ne++;if(ee=ne-Ot,ee>1)for(let ne=0;ne<ee;ne++){if(le=Rt[Ot+ne],le.match(re)){ie="";break}ie+=le,ne!==ee-1&&(ie+="\n")}else le=Rt[Ot],le.match(re)||(ie=le);return ie}return Ot={parse:function(Rt){const Ot=[];let le,oe;if(!Rt)return Ot;le=(Rt=Rt.split(ne)).length,oe=-1;for(let ne=0;ne<le;ne++){let le=Rt[ne];if(le.length>0&&"WEBVTT"!==le&&le.match(re)){const re=u(le),ue=re.cuePoints,ce=re.styles,fe=c(Rt,ne+1),ge=s(ue[0].replace(ie,"")),he=s(ue[1].replace(ie,""));!isNaN(ge)&&!isNaN(he)&&ge>=oe&&he>ge?""!==fe?(oe=ge,Ot.push({start:ge,end:he,data:fe,styles:ce})):ee.error("Skipping cue due to empty/malformed cue text"):ee.error("Skipping cue due to incorrect cue timing")}}return Ot},getCaptionStyles:d},ee=(0,le.default)(Rt).getInstance().getLogger(Ot),ne=/(?:\r\n|\r|\n)/gm,re=/-->/,ie=/(^[\s]+|[\s]+$)/g,oe=/\s\b/g,Ot}ts.__dashjs_factory_name="VTTParser";var su=ne.default.getSingletonFactory(ts);function ns(){let Rt,Ot;return Rt={parse:function(Rt){let ee=[];return Ot.oncue=function(Rt){Rt.start=Rt.startTime,Rt.end=Rt.endTime,Rt.data=Rt.text,Rt.styles={align:Rt.align,line:Rt.line,position:Rt.position,size:Rt.size},ee.push(Rt)},Ot.parse(Rt),ee}},function(){try{window&&window.WebVTT&&window.WebVTT.Parser&&(Ot=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()))}catch(Rt){}}(),Rt}ns.__dashjs_factory_name="VttCustomRenderingParser";var uu=ne.default.getSingletonFactory(ns);function rs(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re=0;function i(){const Rt="cue_TTML_"+re;return re++,Rt}return ee={parse:function(Rt,ee,re,ie,le){let oe="";
1const ue=[];let ce,ge,pe;const be={},ye={};let Ee="",_e="",Se={onOpenTag:function(Rt,ee,re){if(re[" imagetype"]&&!re[" imageType"]&&(Ot.trigger(he.default.CONFORMANCE_VIOLATION,{level:zs.LEVELS.ERROR,event:zs.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE}),re[" imageType"]=re[" imagetype"]),"image"===ee&&("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===Rt||"http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"===Rt)){if(!re[" imageType"]||"PNG"!==re[" imageType"].value)return void ne.warn("smpte-tt imageType != PNG. Discarded");Ee=re["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){Ee&&(ye[Ee]=_e.trim()),_e="",Ee=""},onText:function(Rt){Ee&&(_e+=Rt)}};if(!Rt)throw oe="no ttml data to parse",new Error(oe);be.data=Rt,Ot.trigger(fe.default.TTML_TO_PARSE,be);let we=(0,iu.fromXML)(be.data,(function(Rt){oe=Rt}),Se);Ot.trigger(fe.default.TTML_PARSED,{ttmlString:be.data,ttmlDoc:we});const Re=we.getMediaTimeEvents();for(pe=0;pe<Re.length;pe++){let Rt=(0,iu.generateISD)(we,Re[pe],(function(Rt){oe=Rt}));Rt.contents.some((Rt=>Rt.contents.length))&&(ce=Re[pe]+ee,ge=Re[pe+1]+ee,ce<ge&&ue.push({start:ce,end:ge,type:"html",cueID:i(),isd:Rt,images:le,embeddedImages:ye}))}if(""!==oe)throw ne.error(oe),new Error(oe);return ue}},ne=(0,le.default)(Rt).getInstance().getLogger(ee),ee}rs.__dashjs_factory_name="TTMLParser";var du=ne.default.getSingletonFactory(rs);function ls(Rt){let Ot=this.context;const ee=(0,ce.default)(Ot).getInstance(),ne=ha(Ot).getInstance(),re=Rt.adapter,ie=Rt.baseURLController;let oe,ue,fe;function p(Rt,Ot){let ee,le,oe=!1;if(ie.resolve()){const Ot=re.getVoRepresentations(Rt);Ot&&Ot.length>0&&(ee=ie.resolve(Ot[0].path).url)}const ue=Rt.essentialProperties.filter((Rt=>Rt.schemeIdUri&&Rt.schemeIdUri===ge.default.FONT_DOWNLOAD_DVB_SCHEME)),ce=Rt.supplementalProperties.filter((Rt=>Rt.schemeIdUri&&Rt.schemeIdUri===ge.default.FONT_DOWNLOAD_DVB_SCHEME));ue.length>0?(oe=!0,le=ue):le=ce,le.forEach((re=>{if(function(Rt){return!(!(Rt.value&&1===parseInt(Rt.value)&&Rt.dvbUrl&&Rt.dvbUrl.length>0&&Rt.dvbFontFamily&&Rt.dvbFontFamily.length>0&&Rt.dvbMimeType)||Rt.dvbMimeType!==ge.default.OFF_MIMETYPE&&Rt.dvbMimeType!==ge.default.WOFF_MIMETYPE)}(re)){let ue=(ie=re.dvbUrl,le=ee,ne.isPathAbsolute(ie)?ie:ne.isRelative(ie)?le?ne.resolve(ie,le):ne.resolve(ie):ie);fe.push({fontFamily:re.dvbFontFamily,url:ue,mimeType:re.dvbMimeType,trackId:Rt.id,streamId:Ot,isEssential:oe,status:"unloaded",fontFace:new FontFace(re.dvbFontFamily,`url(${ue})`,{display:"swap"})})}var ie,le}))}function b(Rt,Ot){const ee=fe[Rt];fe[Rt]={...ee,status:Ot}}function y(){fe=[]}return oe={addFontsFromTracks:function(Rt,Ot){if(Rt&&Array.isArray(Rt)&&Ot)for(let ee=0;ee<Rt.length;ee++)p(Rt[ee],Ot)},downloadFonts:function(){for(let Rt=0;Rt<fe.length;Rt++){let Ot=fe[Rt];document.fonts.add(Ot.fontFace),ee.trigger(he.default.DVB_FONT_DOWNLOAD_ADDED,Ot),Ot.fontFace.load().then((()=>{b(Rt,"loaded"),ee.trigger(he.default.DVB_FONT_DOWNLOAD_COMPLETE,Ot)}),(ne=>{b(Rt,"error"),ue.debug("Font download error: ",ne),ee.trigger(he.default.DVB_FONT_DOWNLOAD_FAILED,Ot)}))}},getFonts:function(){return fe},getFontsForTrackId:function(Rt){return fe.filter((Ot=>Ot.trackId&&Ot.trackId===Rt))},reset:function(){!function(){for(const Rt of fe){let Ot=document.fonts.delete(Rt.fontFace);ue.debug(`Removal of fontFamily: ${Rt.fontFamily} was ${Ot?"successful":"unsuccessful"}`)}}(),y()}},ue=(0,le.default)(Ot).getInstance().getLogger(oe),y(),oe}ls.__dashjs_factory_name="DVBFonts";var cu=ne.default.getClassFactory(ls);function ss(Rt){let Ot=this.context;const ee=Rt.adapter,ne=Rt.errHandler,re=Rt.manifestModel,ie=Rt.mediaController,oe=Rt.baseURLController,ue=Rt.videoModel,pe=Rt.settings;let be,ye,Ee,_e,Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe;function R(Rt){if(Pe.error(`Could not download ${Rt.isEssential?"an essential":"a"} font - fontFamily: ${Rt.fontFamily}, url: ${Rt.url}`),Rt.isEssential){let Ot=_e[Rt.streamId].getTrackIdxForId(Rt.trackId);_e[Rt.streamId].setModeForTrackIdx(Ot,ge.default.TEXT_DISABLED)}}function N(Rt){if(Pe.debug(`Successfully downloaded ${Rt.isEssential?"an essential":"a"} font - fontFamily: ${Rt.fontFamily}, url: ${Rt.url}`),Rt.isEssential){let Ot=_e[Rt.streamId].getTrackIdxForId(Rt.trackId);Ot===_e[Rt.streamId].getCurrentTrackIdx()?_e[Rt.streamId].setModeForTrackIdx(Ot,ge.default.TEXT_SHOWING):_e[Rt.streamId].setModeForTrackIdx(Ot,ge.default.TEXT_HIDDEN)}}function C(Rt){let Ot=Rt.tracks,ee=Rt.index;const ne=Rt.streamId;if(!1===pe.get().streaming.text.defaultEnabled&&!O()||Me)z(ne,-1);else{const Rt=ie.getCurrentTrackFor(ge.default.TEXT,ne);if(Rt){const re={lang:Rt.lang,role:Rt.roles[0],index:Rt.index,codec:Rt.codec,accessibility:Rt.accessibility[0]};Ot.some(((Rt,Ot)=>
1{if(ie.matchSettings(re,Rt))return z(ne,Ot),ee=Ot,!0}))}Ce=!1}ye[ne].lastEnabledIndex=ee,Ne.trigger(he.default.TEXT_TRACKS_ADDED,{enabled:O(),index:ee,tracks:Ot,streamId:ne}),xe=!0,Oe.addFontsFromTracks(Ot,ne),Oe.getFonts().forEach((Rt=>{if(Rt.isEssential){let Ot=_e[Rt.streamId].getTrackIdxForId(Rt.trackId);_e[Rt.streamId].setModeForTrackIdx(Ot,ge.default.TEXT_DISABLED)}})),Oe.downloadFonts()}function D(Rt){try{const Ot=Rt.streamId,ee=_e[Ot];if(!ee||isNaN(Rt.time))return;ee.updateTextTrackWindow(Rt.time),pe.get().streaming.text.webvtt.customRenderingEnabled&&ee.manualCueProcessing(Rt.time)}catch(Rt){}}function x(Rt){try{const Ot=Rt.streamId;if(!_e[Ot])return;_e[Ot].disableManualTracks()}catch(Rt){}}function M(Rt){try{const Ot=_e[Rt.streamId];if(!Ot)return;const ee=ue.getTime()||0;Ot.updateTextTrackWindow(ee,!0)}catch(Rt){Pe.error(Rt)}}function P(Rt){try{if(!Rt||!Rt.mediaType||Rt.mediaType!==ge.default.AUDIO||!Rt.currentMediaInfo)return;const Ot=_e[Rt.streamId].getCurrentTextTrackInfo();let ee=NaN;Ce?ee=L(Rt.streamId):F(Ot)&&Rt.currentMediaInfo.lang&&Rt.currentMediaInfo.lang!==Ot.lang&&(ee=L(Rt.streamId),isNaN(ee)&&(ee=-1)),isNaN(ee)||z(Rt.streamId,ee)}catch(Rt){Pe.error(Rt)}}function O(){let Rt=!0;return Ce&&!De&&(Rt=!1),Rt}function z(Rt,Ot){Ce=-1===Ot,Ce&&ie&&ie.saveTextSettingsDisabled();let ee=U(Rt);if(ee===Ot||!_e[Rt])return;_e[Rt].disableManualTracks(),_e[Rt].invalidateCueWindow();let ne=_e[Rt].getCurrentTextTrackInfo(),re=ne?ue.getTextTrack(ne.kind,ne.id,ne.lang,ne.isTTML,ne.isEmbedded):null;re&&re.mode!==ge.default.TEXT_DISABLED&&_e[Rt].setModeForTrackIdx(ee,ge.default.TEXT_HIDDEN),_e[Rt].setCurrentTrackIdx(Ot),ne=_e[Rt].getCurrentTextTrackInfo();const le=pe.get().streaming.text.dispatchForManualRendering;if(ne&&!le&&ne.mode!==ge.default.TEXT_DISABLED&&_e[Rt].setModeForTrackIdx(Ot,ge.default.TEXT_SHOWING),ne&&ne.isFragmented&&!ne.isEmbedded)!function(Rt,Ot,ee){if(!Ee[Rt])return;let ne=Ee[Rt].getConfig().fragmentedTracks;for(let re=0;re<ne.length;re++){let le=ne[re];if(Ot.lang===le.lang&&(le.id?Ot.id===le.id:Ot.index===le.index)){let Ot=ie.getCurrentTrackFor(ge.default.TEXT,Rt);(le.id?Ot.id!==le.id:Ot.index!==le.index)?(_e[Rt].deleteCuesFromTrackIdx(ee),Ee[Rt].setCurrentFragmentedTrackIdx(re)):-1===ee&&Ne.trigger(fe.default.SET_FRAGMENTED_TEXT_AFTER_DISABLED,{},{streamId:Rt,mediaType:ge.default.TEXT})}}}(Rt,ne,ee);else if(ne&&!ne.isFragmented)!function(Rt,Ot){Ne.trigger(fe.default.SET_NON_FRAGMENTED_TEXT,{currentTrackInfo:Ot},{streamId:Rt,mediaType:ge.default.TEXT})}(Rt,ne);else if(!ne&&Ce){const Ot=L(Rt);return void(isNaN(Ot)||z(Rt,Ot))}ie.setTrack(ne)}function L(Rt){const Ot=function(Rt){return _e[Rt].getTextTrackInfos().filter(((Rt,Ot)=>(Rt._indexToSelect=Ot,!!(Rt&&Rt.roles&&Rt.roles.length>0)&&F(Rt))))}(Rt);if(!Ot||Ot.length<=0)return NaN;const ee=ie.getCurrentTrackFor(ge.default.AUDIO,Rt);if(!ee)return NaN;const ne=Ot.find((Rt=>ee.lang===Rt.lang));return ne?ne._indexToSelect:NaN}function F(Rt){return!(!Rt||!Rt.roles||0===Rt.roles.length)&&Rt.roles.some((Rt=>Rt.schemeIdUri===ge.default.DASH_ROLE_SCHEME_ID&&Rt.value===Xn.default.FORCED_SUBTITLE))}function U(Rt){return _e[Rt].getCurrentTrackIdx()}function j(){Ee={},_e={},ye={},Ce=!0,xe=!1,Me=!1}return be={addEmbeddedTrack:function(Rt,Ot){const ee=Rt.id;Ee[ee]&&Ee[ee].addEmbeddedTrack(Ot)},addMediaInfosToBuffer:function(Rt,Ot,ee,ne=null){const re=Rt.id;Ee[re]&&Ee[re].addMediaInfos(Ot,ee,ne)},createTracks:function(Rt){const Ot=Rt.id;_e[Ot]&&_e[Ot].createTracks()},deactivateStream:function(Rt){if(!Rt)return;const Ot=Rt.id;Ee[Ot]&&Ee[Ot].resetMediaInfos(),_e[Ot]&&_e[Ot].deleteAllTextTracks()},enableForcedTextStreaming:function(Rt){return(0,qn.checkParameterType)(Rt,"boolean"),De=Rt,!0},enableText:function(Rt,Ot){return(0,qn.checkParameterType)(Ot,"boolean"),O()!==Ot&&(Ot&&z(Rt,ye[Rt].lastEnabledIndex),Ot||(ye[Rt].lastEnabledIndex=U(Rt),xe?z(Rt,-1):Me=!0)),!0},getAllTracksAreDisabled:function(){return Ce},getCurrentTrackIdx:U,getTextSourceBuffer:function(Rt){const Ot=Rt.id;if(Ee&&Ee[Ot])return Ee[Ot]},initialize:function(){Oe=cu(Ot).create({adapter:ee,baseURLController:oe}),Ne.on(fe.default.TEXT_TRACKS_QUEUE_INITIALIZED,C,be),Ne.on(fe.default.DVB_FONT_DOWNLOAD_FAILED,R,be),Ne.on(fe.default.DVB_FONT_DOWNLOAD_COMPLETE,N,be),Ne.on(fe.default.MEDIAINFO_UPDATED,P,be),Ne.on(fe.default.PLAYBACK_TIME_UPDATED,D,be),pe.get().streaming.text.webvtt.customRenderingEnabled&&Ne.on(fe.default.PLAYBACK_SEEKING,x,be),Ne.on(fe.default.PLAYBACK_SEEKED,M,be)},initializeForStream:function(Rt){const le=Rt.id,oe=ou(Ot).create({videoModel:ue,settings:pe,streamInfo:Rt});oe.initialize(),_e[le]=oe;const ce=ru(Ot).create({errHandler:ne,adapter:ee,dvbFonts:Oe,manifestModel:re,mediaController:ie,videoModel:ue,textTracks:oe,vttParser:Se,vttCustomRenderingParser:we,ttmlParser:Re,streamInfo:Rt,settings:pe});ce.initialize(),Ee[le]=ce,ye[le]={},ye[le].lastEnabledIndex=-1},isTextEnabled:O,reset:function(){Object.keys(Ee).forEach((Rt=>{Ee[Rt].resetEmbedded(),Ee[Rt].reset()})),Oe.reset(),j(),Ne.off(fe.default.TEXT_TRACKS_QUEUE_INITIALIZED,C,be),Ne.off(fe.default.DVB_FONT_DOWNLOAD_FAILED,R,be),Ne.off(fe.default.DVB_FONT_DOWNLOAD_COMPLETE,N,be),Ne.off(fe.default.MEDIAINFO_UPDATED,P,be),Ne.off(fe.default.PLAYBACK_TIME_UPDATED,D,be),pe.get().streaming.text.webvtt.customRenderingEnabled&&Ne.off(fe.default.PLAYBACK_SEEKING,x,be),Ne.off(fe.default.PLAYBACK_SEEKED,M,be)},setTextTrack:z,clearDataForStream:function(Rt){Ee[Rt]&&(Ee[Rt].resetEmbedded(),Ee[Rt].reset(),delete Ee[Rt]),_e[Rt]&&(_e[Rt].deleteAllTextTracks(),delete _e[Rt]),ye[Rt]&&delete ye[Rt]}},De=!1,xe=!1,Me=!1,Se=su(Ot).getInstance(),we=uu(Ot).getInstance(),Re=du(Ot).getInstance(),Ne=(0,ce.default)(Ot).getInstance(),Pe=(0,le.default)(Ot).getInstance().getLogger(be),j(),be}ss.__dashjs_factory_name="TextController";var fu=ne.default.getClassFactory(ss);function ds(Rt){Rt=Rt||{};const Ot=this.context,ee=(0,le.default)(Ot).getInstance(),ne=Rt.settings,re=(0,ce.default)(Ot).getInstance();let ie,oe,ue,fe,pe,be;function g(){return navigator&&navigator.connection&&!isNaN(navigator.connection.downlink)&&navigator.connection.downlink>0?1e3*navigator.connection.downlink:NaN}function p(Rt,Ot,ee,ne){const re=Math.pow(.5,ee/ne.fast);Rt.fastEstimate=(1-re)*Ot+re*Rt.fastEstimate;const ie=Math.pow(.5,ee/ne.slow);Rt.slowEstimate=(1-ie)*Ot+ie*Rt.slowEstimate,Rt.totalWeight+=ee}function b(){ie={},oe={},ue={},fe={}}const ye={addEntry:function(Rt,Ot){try{if(!(Rt&&Ot&&Ot.trace&&Ot.trace.length))return;!function(Rt){ie[Rt]=ie[Rt]||[],oe[Rt]=oe[Rt]||[],ue[Rt]=ue[Rt]||{fastEstimate:0,slowEstimate:0,totalWeight:0},fe[Rt]=fe[Rt]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}(Rt);const ee=Ot.tresponse.getTime()-Ot.trequest.getTime()||1;let le=function(Rt,Ot){return Rt._fileLoaderType&&Rt._fileLoaderType===ge.default.FILE_LOADER_TYPES.FETCH?function(Rt){const Ot=Rt.trace.reduce(((Rt,Ot)=>Rt+Ot.b[0]),0),ee=Rt.trace.reduce(((Rt,Ot)=>Rt+Ot.d),0);let re=NaN;return ne.get().streaming.abr.throughput.useNetworkInformationApi.fetch&&(re=g()),isNaN(re)&&(re=Math.round(8*Ot/ee)),{downloadedBytes:Ot,value:re,downloadTimeInMs:ee}}(Rt):function(Rt,Ot){let ee=NaN,re=NaN,ie=!1;if(ne.get().streaming.abr.throughput.useResourceTimingApi&&Rt._resourceTimingValues)ee=Rt._resourceTimingValues.transferSize,re=Rt._resourceTimingValues.responseEnd-Rt._resourceTimingValues.responseStart,ie=!0;else{if(Rt.trace.length<=1)return{throughput:NaN,downloadTimeInMs:NaN};ee=Rt.trace.reduce(((Rt,Ot)=>Rt+Ot.b[0]),0)-Rt.trace[0].b[0],re=Math.max(Rt.trace.reduce(((Rt,Ot)=>Rt+Ot.d),0)-Rt.trace[0].d,1)}let le=NaN;if(!ie&&ne.get().streaming.abr.throughput.useNetworkInformationApi.xhr&&(le=g()),isNaN(le)){const Rt=ne.get().streaming.abr.throughput.useDeadTimeLatency?re:re+Ot;le=Math.round(8*ee/Rt)}return{downloadedBytes:ee,value:le,downloadTimeInMs:re}}(Rt,Ot)}(Ot,ee);if(le.latencyInMs=ee,isNaN(le.value)||!isFinite(le.value))return;if(Ot.cmsd){const Rt=Ot.cmsd.dynamic&&Ot.cmsd.dynamic.etp?Ot.cmsd.dynamic.etp:null;if(Rt){const Ot=ne.get().streaming.cmsd.abr.etpWeightRatio;Ot>0&&Ot<=1&&(le.value=le.value*(1-Ot)+Rt*Ot)}}if(function(Rt,Ot,ee){return ne.get().streaming.abr.throughput.useResourceTimingApi&&ee._resourceTimingValues?0===ee._resourceTimingValues.transferSize&&ee._resourceTimingValues.decodedBodySize>0:!isNaN(Ot)&&(Rt===ge.default.VIDEO?Ot<ne.get().streaming.cacheLoadThresholds[ge.default.VIDEO]:Rt===ge.default.AUDIO?Ot<ne.get().streaming.cacheLoadThresholds[ge.default.AUDIO]:void 0)}(Rt,Ot._tfinish.getTime()-Ot.trequest.getTime(),Ot))return void be.debug(`${Rt} Assuming segment ${Ot.url} came from cache, ignoring it for throughput calculation`);be.debug(`Added throughput entry for ${Rt}: ${le.value} kbit/s`),le.serviceLocation=Ot._serviceLocation,ie[Rt].push(le),oe[Rt].push({value:ee}),function(Rt){ie[Rt].length>ne.get().streaming.abr.throughput.sampleSettings.maxMeasurementsToKeep&&ie[Rt].shift(),oe[Rt].length>ne.get().streaming.abr.throughput.sampleSettings.maxMeasurementsToKeep&&oe[Rt].shift()}(Rt),re.trigger(he.default.THROUGHPUT_MEASUREMENT_STORED,{throughputValues:le}),Ot.type!==_e.HTTPRequest.MPD_TYPE&&(p(ue[Rt],le.value,ne.get().streaming.abr.throughput.ewma.weightDownloadTimeMultiplicationFactor*le.downloadTimeInMs,pe.bandwidthHalfLife),p(fe[Rt],ee,1,pe.latencyHalfLife))}catch(Rt){be.error(Rt)}},getThroughputDict:function(Rt){return Rt?ie[Rt]:ie},getEwmaThroughputDict:function(Rt){return Rt?ue[Rt]:ue},getEwmaLatencyDict:function(Rt){return Rt?fe[Rt]:fe},getEwmaHalfLife:function(){return pe},getLatencyDict:function(Rt){return Rt?oe[Rt]:oe},reset:b};return be=ee.getLogger(ye),pe={bandwidthHalfLife:{fast:ne.get().streaming.abr.throughput.ewma.throughputFastHalfLifeSeconds,slow:ne.get().streaming.abr.throughput.ewma.throughputSlowHalfLifeSeconds},latencyHalfLife:{fast:ne.get().streaming.abr.throughput.ewma.latencyFastHalfLifeCount,slow:ne.get().streaming.abr.throughput.ewma.latencySlowHalfLifeCount}},b(),ye}ds.__dashjs_factory_name="ThroughputModel";var gu=ne.default.getClassFactory(ds);function fs(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance();let ee,ne,re;function i(){performance.clearResourceTimings()}function o(Rt){Rt.metric!==ie.HTTP_REQUEST||!Rt.value||Rt.value.type!==_e.HTTPRequest.MPD_TYPE&&(Rt.value.type!==_e.HTTPRequest.MEDIA_SEGMENT_TYPE||Rt.mediaType!==ge.default.AUDIO&&Rt.mediaType!==ge.default.VIDEO)||ee.addEntry(Rt.mediaType,Rt.value)}function s(Rt,Ot,ie=null,le=NaN){let oe,ue=null,ce=ee.getEwmaHalfLife(),fe=null,he=!0;switch(ie||(ie=re.get().streaming.abr.throughput.averageCalculationMode),Rt){case ge.default.THROUGHPUT_TYPES.BANDWIDTH:ue=ie===ge.default.THROUGHPUT_CALCULATION_MODES.EWMA?ee.getEwmaThroughputDict(Ot):ee.getThroughputDict(Ot),fe=ce.bandwidthHalfLife,he=!0,le=isNaN(le)?ne.getIsDynamic()?re.get().streaming.abr.throughput.sampleSettings.live:re.get().streaming.abr.throughput.sampleSettings.vod:le;break;case ge.default.THROUGHPUT_TYPES.LATENCY:ue=ie===ge.default.THROUGHPUT_CALCULATION_MODES.EWMA?ee.getEwmaLatencyDict(Ot):ee.getLatencyDict(Ot),fe=ce.latencyHalfLife,he=!1,le=isNaN(le)?re.get().streaming.abr.throughput.sampleSettings.averageLatencySampleAmount:le}if(!ue||0===ue.length)return NaN;switch(ie){case ge.default.THROUGHPUT_CALCULATION_MODES.ARITHMETIC_MEAN:return oe=u(ue,le,Rt),d(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.BYTE_SIZE_WEIGHTED_ARITHMETIC_MEAN:return oe=u(ue,le,Rt),c(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.DATE_WEIGHTED_ARITHMETIC_MEAN:return oe=u(ue,le,Rt),g(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.HARMONIC_MEAN:return oe=u(ue,le,Rt),p(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.BYTE_SIZE_WEIGHTED_HARMONIC_MEAN:return oe=u(ue,le,Rt),b(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.DATE_WEIGHTED_HARMONIC_MEAN:return oe=u(ue,le,Rt),y(ue,oe);case ge.default.THROUGHPUT_CALCULATION_MODES.EWMA:return E(ue,fe,he);case ge.default.THROUGHPUT_CALCULATION_MODES.ZLEMA:return oe=u(ue,le,Rt),T(ue,oe)}}function u(Rt,Ot,ee){if(Rt){if(Ot>=Rt.length)Ot=Rt.length;else if(ee===ge.default.THROUGHPUT_TYPES.BANDWIDTH&&re.get().streaming.abr.throughput.sampleSettings.enableSampleSizeAdjustment)for(let ee=1;ee<Ot;++ee){const ne=Rt[Rt.length-ee].value/Rt[Rt.length-ee-1].value;if((ne>=re.get().streaming.abr.throughput.sampleSettings.increaseScale||ne<=re.get().streaming.abr.throughput.sampleSettings.decreaseScale)&&(Ot+=1)===Rt.length)break}}else Ot=0;return Ot}function d(Rt,Ot){let ee=Rt;return 0!==Ot&&ee&&0!==ee.length?(ee=ee.slice(-Ot),ee.reduce(((Rt,Ot)=>Rt+Ot.value),0)/ee.length):NaN}function c(Rt,Ot){let ee=Rt;if(0===Ot||!ee||0===ee.length)return NaN;ee=ee.slice(-Ot);let ne=0;return ee.reduce(((Rt,Ot)=>{let ee=Math.sqrt(Ot.downloadedBytes);return ne+=ee,Rt+Ot.value*ee}),0)/ne}function g(Rt,Ot){let ee=Rt;if(0===Ot||!ee||0===ee.length)return NaN;ee=ee.slice(-Ot);let ne=0;return ee.reduce(((Rt,Ot,ee)=>{let re=ee+1;return ne+=re,Rt+Ot.value*re}),0)/ne}function p(Rt,Ot){let ee=Rt;if(0===Ot||!ee||0===ee.length)return NaN;ee=ee.slice(-Ot);const ne=ee.reduce(((Rt,Ot)=>Rt+1/Ot.value),0);return ee.length/ne}function b(Rt,Ot){let ee=Rt;if(0===Ot||!ee||0===ee.length)return NaN;ee=ee.slice(-Ot);let ne=0;const re=ee.reduce(((Rt,Ot)=>{let ee=Math.sqrt(Ot.downloadedBytes);return ne+=ee,Rt+1/Ot.value*ee}),0);return ne/re}function y(Rt,Ot){let ee=Rt;if(0===Ot||!ee||0===ee.length)return NaN;ee=ee.slice(-Ot);let ne=0;const re=ee.reduce(((Rt,Ot,ee)=>{let re=ee+1;return ne+=re,Rt+1/Ot.value*re}),0);return ne/re}function E(Rt,Ot,ee=!0){if(!Rt||Rt.totalWeight<=0)return NaN;const ne=Rt.fastEstimate/(1-Math.pow(.5,Rt.totalWeight/Ot.fast)),re=Rt.slowEstimate/(1-Math.pow(.5,Rt.totalWeight/Ot.slow));return ee?Math.min(ne,re):Math.max(ne,re)}
1function T(Rt,Ot){if(0===Ot||!Rt||0===Rt.length)return NaN;let ee=Rt.slice(-Ot).map((Rt=>Rt.value)),ne=2/(ee.length+1),re=ee[ee.length-1],ie=ee[ee.length-1];for(let Rt=0;Rt<ee.length;Rt++)re=ne*ee[Rt]+(1-ne)*re,ie=ne*re+(1-ne)*ie;return ie}function _(Rt,Ot=null,ee=NaN){const ne=s(ge.default.THROUGHPUT_TYPES.BANDWIDTH,Rt,Ot,ee);return Math.round(ne)}const le={getArithmeticMean:d,getAverageLatency:function(Rt,Ot=null,ee=NaN){const ne=s(ge.default.THROUGHPUT_TYPES.LATENCY,Rt,Ot,ee);return Math.round(ne)},getAverageThroughput:_,getByteSizeWeightedArithmeticMean:c,getByteSizeWeightedHarmonicMean:b,getDateWeightedArithmeticMean:g,getDateWeightedHarmonicMean:y,getEwma:E,getHarmonicMean:p,getRawThroughputData:function(Rt){return Rt?ee.getThroughputDict(Rt):[]},getSafeAverageThroughput:function(Rt,Ot=null,ee=NaN){let ne=_(Rt,Ot,ee);return isNaN(ne)||(ne*=re.get().streaming.abr.throughput.bandwidthSafetyFactor),ne},getZlema:T,initialize:function(){ee=gu(Rt).create({settings:re}),Ot.on(he.default.METRIC_ADDED,o,le),window.performance?.addEventListener?.("resourcetimingbufferfull",i)},reset:function(){ee.reset(),Ot.off(he.default.METRIC_ADDED,o,le),window.performance?.removeEventListener?.("resourcetimingbufferfull",i)},setConfig:function(Rt){Rt.settings&&(re=Rt.settings),Rt.playbackController&&(ne=Rt.playbackController)}};return le}fs.__dashjs_factory_name="ThroughputController";var mu=ne.default.getSingletonFactory(fs);function ms(){const Rt=this.context,Ot=(0,ce.default)(Rt).getInstance(),ee=(0,oe.default)(Rt).getInstance();let ne,re,ie,le;function o(Rt){le=Rt}function s(Rt,Ot,ee,ne){let re,ie=Ot.adaptation.period.mpd;const le=ie.availabilityStartTime;if(ne)re=ee&&ie.timeShiftBufferDepth!==Number.POSITIVE_INFINITY?new Date(le.getTime()+1e3*(Rt+ie.timeShiftBufferDepth)):ie.availabilityEndTime;else if(ee){const ee=Ot.availabilityTimeOffset;
1re=new Date(le.getTime()+1e3*(Rt-ee))}else re=le;return re}function d(Rt,Ot){return(Rt.getTime()-Ot.mpd.availabilityStartTime.getTime()+1e3*le)/1e3}function c(Rt,Ot){return Rt+(Ot.adaptation.period.start-Ot.presentationTimeOffset)}function p(Rt){const Ot={start:NaN,end:NaN},ee=Rt[0].getAdapter().getRegularPeriods()[0],ne=d(new Date,ee);if(!Rt||0===Rt.length)return{range:Ot,now:ne};Rt.forEach((Rt=>{let ee=Rt.getCurrentRepresentationForType(ge.default.VIDEO);if(ee||(ee=Rt.getCurrentRepresentationForType(ge.default.AUDIO)),!ee){const Ot=Rt.getAdapter(),ne=Ot.getMediaInfoForType(Rt.getStreamInfo(),ge.default.VIDEO)||Ot.getMediaInfoForType(Rt.getStreamInfo(),ge.default.AUDIO);ee=Ot.getVoRepresentations(ne)[0]}let ie={start:NaN,end:NaN};if(ee)if(ee.segmentInfoType===Xn.default.SEGMENT_TIMELINE)ie=function(Rt){const Ot=Rt.adaptation.period.mpd.manifest.Period[Rt.adaptation.period.index].AdaptationSet[Rt.adaptation.index],ee=re.getRepresentationFor(Rt.index,Ot),ne=ee.SegmentTemplate||ee.SegmentList,ie=ne.SegmentTimeline,le=ne.timescale,oe=ie.S,ue={start:0,end:0},ce=oe[0].t,fe=!isNaN(ce),ge=fe?ce:0;let he,pe,be,ye,Ee=0;for(fe&&(ue.start=c(ge/le,Rt)),be=0,ye=oe.length;be<ye;be++)he=oe[be],pe=0,he.hasOwnProperty("r")&&(pe=he.r),Ee+=he.d*(1+pe);return ue.end=c((ge+Ee)/le,Rt),ue}(ee);else{const Rt=ee.adaptation.period;ie.start=Rt.start,ie.end=Math.max(ne,Rt.start+Rt.duration)}!isNaN(ie.start)&&(isNaN(Ot.start)||Ot.start>ie.start)&&(Ot.start=ie.start),!isNaN(ie.end)&&(isNaN(Ot.end)||Ot.end<ie.end)&&(Ot.end=ie.end)})),Ot.end=Math.min(ne,Ot.end);const ie=y(Rt,Ot.end,!0);return Ot.end=isNaN(ie)?Ot.end:ie,Ot.start=ee&&ee.mpd&&ee.mpd.timeShiftBufferDepth&&!isNaN(ee.mpd.timeShiftBufferDepth)&&!isNaN(Ot.end)?Math.max(Ot.end-ee.mpd.timeShiftBufferDepth,Ot.start):Ot.start,Ot.start=y(Rt,Ot.start),{range:Ot,now:ne}}function b(Rt,Ot){ie=Rt-Ot.end}function y(Rt,Ot,ee=!1){try{let ne=0,re=!1,ie=NaN;for(;!re&&ne<Rt.length;){const le=Rt[ne].getStreamInfo();le.start<=Ot&&(!isFinite(le.duration)||le.start+le.duration>=Ot)?(ie=Ot,re=!0):!ee&&le.start>Ot&&(isNaN(ie)||le.start<ie)?ie=le.start:ee&&le.start+le.duration<Ot&&(isNaN(ie)||le.start+le.duration>ie)&&(ie=le.start+le.duration),ne+=1}return ie}catch(Rt){return Ot}}function E(Rt){void 0===Rt.offset||isNaN(Rt.offset)||o(Rt.offset/1e3)}function T(){le=0,ie=0}function _(){Ot.off(fe.default.UPDATE_TIME_SYNC_OFFSET,E,this),T()}return ne={calcAvailabilityEndTimeFromPresentationTime:function(Rt,Ot,ee){return s(Rt,Ot,ee,!0)},calcAvailabilityStartTimeFromPresentationTime:function(Rt,Ot,ee){return s(Rt,Ot,ee)},calcMediaTimeFromPresentationTime:function(Rt,Ot){return Rt-Ot.adaptation.period.start+Ot.presentationTimeOffset},calcPeriodRelativeTimeFromMpdRelativeTime:function(Rt,Ot){return Ot-Rt.adaptation.period.start},calcPresentationTimeFromMediaTime:c,calcPresentationTimeFromWallTime:d,calcTimeShiftBufferWindow:function(Rt,ne){if(!ne)return function(Rt){const Ot={start:NaN,end:NaN};let ee=0,ne=NaN;return Rt.forEach((Rt=>{const Ot=Rt.getStreamInfo();ee+=Ot.duration,(isNaN(ne)||Ot.start<ne)&&(ne=Ot.start)})),Ot.start=ne,Ot.end=ne+ee,Ot}(Rt);if(ee.get().streaming.timeShiftBuffer.calcFromSegmentTimeline){const Ot=p(Rt);return b(Ot.now,Ot.range),Ot.range}return function(Rt){const ne={start:NaN,end:NaN};if(!Rt||0===Rt.length)return ne;const re=Rt[0].getAdapter().getRegularPeriods()[0],ie=d(new Date,re),le=re.mpd.timeShiftBufferDepth,oe=isNaN(le)?0:ie-le;if(ne.start=y(Rt,oe),ne.end=!isNaN(ne.start)&&ie<ne.start?ie:y(Rt,ie,!0),!isNaN(le)&&ne.end<ie-le&&(ne.end=NaN),ee.get().streaming.timeShiftBuffer.fallbackToSegmentTimeline){const ee=p(Rt);if(ee.range.end<ne.start)return Ot.trigger(he.default.CONFORMANCE_VIOLATION,{level:zs.LEVELS.WARNING,event:zs.EVENTS.INVALID_DVR_WINDOW}),b(ee.now,ee.range),ee.range}return ne}(Rt)},calcWallTimeForSegment:function(Rt,Ot){let ee,ne,re;return Ot&&(ee=Rt.representation.adaptation.period.mpd.suggestedPresentationDelay,ne=Rt.presentationStartTime+ee,re=new Date(Rt.availabilityStartTime.getTime()+1e3*ne)),re},getClientReferenceTime:function(){return Date.now()-1e3*ie+1e3*le}
1,getClientTimeOffset:function(){return le},initialize:function(){T(),Ot.on(fe.default.UPDATE_TIME_SYNC_OFFSET,E,this)},reset:_,setClientTimeOffset:o,setConfig:function(Rt){Rt&&Rt.dashManifestModel&&(re=Rt.dashManifestModel)}},re=Ea(Rt).getInstance(),_(),ne}ms.__dashjs_factory_name="TimelineConverter";var hu=ne.default.getSingletonFactory(ms);function bs(){let Rt,Ot;return Rt={initialize:function(Rt){if(Ot=new class{constructor(){this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null}},!Rt)return null;const ee=Rt.indexOf("#");if(-1!==ee){const ne=Rt.substr(ee+1).split("&");for(let Rt=0,ee=ne.length;Rt<ee;++Rt){const ee=ne[Rt],re=ee.indexOf("=");if(-1!==re){const Rt=ee.substring(0,re);Ot.hasOwnProperty(Rt)&&(Ot[Rt]=ee.substr(re+1))}}}},getURIFragmentData:function(){return Ot}},Rt}bs.__dashjs_factory_name="URIFragmentModel";var pu=ne.default.getSingletonFactory(bs);const bu=new Map([[ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,"loadedmetadata"],[ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_CURRENT_DATA,"loadeddata"],[ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA,"canplay"],[ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_ENOUGH_DATA,"canplaythrough"]]);function Ts(){let Rt,Ot,ee,ne,re,ie,ue,he,pe,be,ye,Ee;const _e=this.context,Se=(0,ce.default)(_e).getInstance(),we=[];function T(Rt,Ot=!1){ee&&(Ot?ee.playbackRate=Rt:D(ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA,(()=>{ee.playbackRate=Rt})))}function _(){return we.length>0}function S(){if(ee&&_()&&0===ee.playbackRate){const Rt=document.createEvent("Event");Rt.initEvent("waiting",!0,!1),ee.dispatchEvent(Rt)}}function w(Rt,Ot){ee&&ee.addEventListener(Rt,Ot)}function I(Rt,Ot){ee&&ee.removeEventListener(Rt,Ot)}function k(){return ee?ee.readyState:NaN}function A(){return ee?ee.buffered:null}function R(){return ee?ee.clientWidth:NaN}function N(){return ee?ee.clientHeight:NaN}function C(Rt,Ot,ne,re,ie){if(ee)for(let le=0;le<ee.textTracks.length;le++)if(ee.textTracks[le].kind===Rt&&(!Ot||ee.textTracks[le].label==Ot)&&ee.textTracks[le].language===ne&&ee.textTracks[le].isTTML===re&&ee.textTracks[le].isEmbedded===ie)return ee.textTracks[le];return null}function D(Rt,Ot){return Rt===ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_NOTHING||k()>=Rt?(Ot(),null):function(Rt,Ot){const n=()=>{I(Rt,n),Ot(Rt)};return w(Rt,n),{func:n,event:Rt}}(bu.get(Rt),Ot)}return ne={addEventListener:w,addTextTrack:function(Rt,Ot,ne,re,ie){if(!ee)return null;let le=C(Rt,Ot,ne,re,ie);return le||(le=ee.addTextTrack(Rt,Ot,ne),le.isEmbedded=ie,le.isTTML=re),le},appendChild:function(Rt){ee&&(ee.appendChild(Rt),void 0!==Rt.isTTML&&(ee.textTracks[ee.textTracks.length-1].isTTML=Rt.isTTML,ee.textTracks[ee.textTracks.length-1].isEmbedded=Rt.isEmbedded))},getBufferRange:A,getClientHeight:N,getClientWidth:R,getElement:function(){return ee},getEnded:function(){return ee?ee.ended:null},getPlaybackQuality:function(){if(!ee)return null;let Rt="webkitDroppedFrameCount"in ee&&"webkitDecodedFrameCount"in ee,Ot=null;return"getVideoPlaybackQuality"in ee?Ot=ee.getVideoPlaybackQuality():Rt&&(Ot={droppedVideoFrames:ee.webkitDroppedFrameCount,totalVideoFrames:ee.webkitDroppedFrameCount+ee.webkitDecodedFrameCount,creationTime:new Date}),Ot},getPlaybackRate:function(){return ee?ee.playbackRate:null},getPlayedRanges:function(){return ee?ee.played:null},getReadyState:k,getSource:function(){return ee?ee.src:null},getTTMLRenderingDiv:function(){return Rt},getTextTrack:C,getTextTracks:function(){return ee?ee.textTracks:[]},getTime:function(){return ee?isNaN(Ot)?ee.currentTime:Ot:null},getVideoElementSize:function(){const Rt=be.get().streaming.abr.usePixelRatioInLimitBitrateByPortal&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;return{elementWidth:R()*Rt,elementHeight:N()*Rt}},getVideoHeight:function(){return ee?ee.videoHeight:NaN},getVideoRelativeOffsetLeft:function(){if(ee){const Rt=ee.parentNode.host||ee.parentNode;return Rt?ee.getBoundingClientRect().left-Rt.getBoundingClientRect().left:NaN}return NaN},getVideoRelativeOffsetTop:function(){if(ee){const Rt=ee.parentNode.host||ee.parentNode;return Rt?ee.getBoundingClientRect().top-Rt.getBoundingClientRect().top:NaN}return NaN},getVideoWidth:function(){return ee?ee.videoWidth:NaN},getVttRenderingDiv:function(){return Ee},initialize:function(){Se.on(fe.default.PLAYBACK_PLAYING,S,this)},isPaused:function(){return ee?ee.paused:null},isSeeking:function(){return ee?ee.seeking||!isNaN(Ot):null},isStalled:_,pause:function(){ee&&(ee.pause(),ee.autoplay=!1)},play:function(){if(ee){ee.autoplay=!0;const Rt=ee.play();Rt&&Rt.catch&&"undefined"!=typeof Promise&&Rt.catch((Rt=>{"NotAllowedError"===Rt.name&&Se.trigger(fe.default.PLAYBACK_NOT_ALLOWED),re.warn(`Caught pending play exception - continuing (${Rt})`)}))}},removeChild:function(Rt){ee&&ee.removeChild(Rt)},removeEventListener:I,reset:function(){clearTimeout(ye),Se.off(fe.default.PLAYBACK_PLAYING,S,this),we.length=0,function(){try{ue&&ee&&(ue.unobserve(ee),ue.disconnect(),ue=null)}catch(Rt){}}()},setConfig:function(Rt){Rt&&Rt.settings&&(be=Rt.settings)},setCurrentTime:function(Rt,ne){ee&&(pe&&pe.func&&pe.event&&I(pe.event,pe.func),Ot=Rt,pe=D(ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,(()=>{if(ee)if(ee.currentTime!==Ot)try{Ot=ne?function(Rt){const Ot=A();let ee=Rt,ne=9999999999;if(Ot)for(let re=0;re<Ot.length;re++){const ie=Ot.start(re),le=Ot.end(re),oe=Math.abs(ie-Rt),ue=Math.abs(le-Rt);if(Rt>=ie&&Rt<=le)return Rt;oe<ne&&(ne=oe,ee=ie),ue<ne&&(ne=ue,ee=le)}return ee}(Ot):Ot,isNaN(Ot)||(ee.currentTime=Ot),Ot=NaN}catch(Rt){0===ee.readyState&&Rt.code===Rt.INVALID_STATE_ERR&&(ye=setTimeout((function(){ee.currentTime=Ot,Ot=NaN}
1),400))}else Ot=NaN})))},setDisableRemotePlayback:function(Rt){ee&&(ee.disableRemotePlayback=Rt)},setElement:function(Rt){if(!(null==Rt||Rt&&/^(VIDEO|AUDIO)$/i.test(Rt.nodeName)))throw"element is not video or audio DOM type!";ee=Rt,function(Rt){try{if(!ue||!Rt)return;ue.observe(Rt)}catch(Rt){}}(ee)},setPlaybackRate:T,setSource:function(Rt){ee&&(Rt?ee.src=Rt:(ee.removeAttribute("src"),ee.load()))},setStallState:function(Rt,Ot){!function(Rt,Ot){Ot?function(Rt){if(null!==Rt&&ee&&!ee.seeking&&-1===we.indexOf(Rt)&&(we.push(Rt),be.get().streaming.buffer.syntheticStallEvents.enabled&&ee&&1===we.length&&(be.get().streaming.buffer.syntheticStallEvents.ignoreReadyState||k()>=ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA))){ie=ee.playbackRate,T(0,!0);const Rt=document.createEvent("Event");Rt.initEvent("waiting",!0,!1),ee.dispatchEvent(Rt)}}(Rt):function v(Rt){let Ot=we.indexOf(Rt);if(null!==Rt&&(-1!==Ot&&we.splice(Ot,1),be.get().streaming.buffer.syntheticStallEvents.enabled&&ee&&!_())){const t=()=>{if(T(ie||1,be.get().streaming.buffer.syntheticStallEvents.ignoreReadyState),!ee.paused){const Rt=document.createEvent("Event");Rt.initEvent("playing",!0,!1),ee.dispatchEvent(Rt)}};be.get().streaming.buffer.syntheticStallEvents.ignoreReadyState?t():(he&&he.func&&he.event&&I(he.event,he.func),he=D(ge.default.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA,t))}}(Rt)}(Rt,Ot)},setTTMLRenderingDiv:function(Ot){Rt=Ot,Rt.style.position="absolute",Rt.style.display="flex",Rt.style.overflow="hidden",Rt.style.pointerEvents="none",Rt.style.top=0,Rt.style.left=0},setVttRenderingDiv:function(Rt){Ee=Rt},waitForReadyState:D},re=(0,le.default)(_e).getInstance().getLogger(ne),be=(0,oe.default)(_e).getInstance(),Ot=NaN,function(){try{ue=new ResizeObserver((()=>{Se.trigger(fe.default.VIDEO_ELEMENT_RESIZED)}))}catch(Rt){}}(),ne}Ts.__dashjs_factory_name="VideoModel";var yu=ne.default.getSingletonFactory(Ts),Eu=ee(8986);function Ss(){const Rt="You must first call initialize() and set a source before calling this method",Ot="You must first call initialize() and set a valid source and view before calling this method",ee="You must first call attachView() to set the video element before calling this method",re="You must first call attachSource() with a valid source before calling this method",ue="MediaPlayer not initialized!",pe=this.context,be=(0,ce.default)(pe).getInstance();let ye=(0,oe.default)(pe).getInstance();const Ee=(0,le.default)(pe).getInstance({settings:ye});let Se,we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe,Ge,We,ln,on,sn,un,dn,cn,fn,gn,bn,yn,En,Tn,_n,vn,wn,An,Dn,xn,Mn,Pn,Ln,Fn,Un,Bn,Gn;function it(){_t(null),yt(null),Ne=null,Ge&&(Ge.reset(),Ge=null),We&&(We.reset(),We=null),dn&&dn.reset(),ye.reset(),on&&(on.reset(),on=null)}function lt(){return!!Re&&!!Ln.getElement()}function ot(){return(0,Eu.getVersionString)()}function st(){if(!xe)throw Ot;return _n.isPaused()}function ut(){if(!xe)throw Ot;return _n.getIsDynamic()}function dt(Rt){const Ot=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ee=Dn.getCurrentDVRInfo(Ot);return ee?ct(ee.range.start+Rt,ee):0}function ct(Rt,Ot){let ee=_n.getOriginalLiveDelay();return Rt>Ot.range.end-ee&&(Rt=Ot.range.end-ee),Rt}function ft(Rt=""){if(!xe)throw Ot;let ee=bt().currentTime;return""!==Rt&&(ee=yn.getTimeRelativeToStreamId(ee,Rt)),ee}function gt(Rt){(0,qn.checkParameterType)(Rt,"boolean"),Me=Rt}function mt(){dn.restoreDefaultUTCTimingSources()}function ht(){return Dn}function bt(){if(!Ln.getElement())throw ee;return Ln.getElement()}function yt(Rt){if(!Ce)throw ue;Ln.setElement(Rt),Rt&&(kt(),function(){if(We||"undefined"==typeof dashjs)return;let Rt=dashjs.MetricsReporting;if("function"==typeof Rt){let Ot=Rt(pe).create();We=Ot.createMetricsReporting({debug:Ee,eventBus:be,mediaElement:bt(),adapter:sn,dashMetrics:Dn,mediaPlayerModel:un,events:fe.default,constants:ge.default,metricsConstants:ie})}}(),function(){if(ln||"undefined"==typeof dashjs)return;let Rt=dashjs.MssHandler;"function"==typeof Rt&&(zn.extend(Rt.errors),ln=Rt(pe).create({eventBus:be,mediaPlayerModel:un,dashMetrics:Dn,manifestModel:xn,playbackController:_n,streamController:yn,protectionController:Ge,baseURLController:fn,errHandler:cn,events:fe.default,constants:ge.default,debug:Ee,initSegmentType:_e.HTTPRequest.INIT_SEGMENT_TYPE,BASE64:Cn,ISOBoxer:Di,settings:ye}))}(),yn&&yn.switchToVideoElement(Oe)),xe&&(St(),wt()),Nt(Oe)}function Et(Ot){if(!De)throw Rt;let ee=yn.getActiveStreamInfo();return ee?qe.getTracksFor(Ot,ee.id).filter((Rt=>!Ge||Ge.areKeyIdsUsable(Rt.normalizedKeyIds))):[]}function _t(Rt,Ot=NaN){if(!Ce)throw ue;"string"==typeof Rt&&Fn.initialize(Rt),null==Ot&&(Ot=NaN),isNaN(Ot)||(Ot=Math.max(0,Ot)),Oe=Ot,Re=Rt,(De||xe)&&(St(),wt()),lt()&&Nt
1(Oe)}function vt(){if(!De)throw Rt;let Ot=yn.getActiveStreamInfo();return Ot?yn.getStreamById(Ot.id):null}function St(){xe=!1,De=!1,sn.reset(),yn.reset(),Tn.reset(),An.reset(),_n.reset(),vn.reset(),wn.reset(),Pe.reset(),Fe.reset(),qe.reset(),Bn.reset(),Ge&&(ye.get().streaming.protection.keepProtectionMediaKeys?Ge.stop():(Ge.reset(),Ge=null,kt())),En.reset(),Mn.reset(),Pn.reset()}function wt(){dn.resetPlaybackSessionSpecificSettings()}function It(){return mo(pe).create({debug:Ee,errHandler:cn,dashMetrics:Dn,mediaPlayerModel:un,mssHandler:ln,settings:ye})}function kt(){if(Ge)return Ge;if("undefined"==typeof dashjs)return null;let Rt=dashjs.Protection;if("function"==typeof Rt){let Ot=Rt(pe).create();return fe.default.extend(Rt.events),he.default.extend(Rt.events,{publicOnly:!0}),zn.extend(Rt.errors),Ge=Ot.createProtectionSystem({debug:Ee,errHandler:cn,videoModel:Ln,customParametersModel:dn,capabilities:gn,eventBus:be,events:fe.default,BASE64:Cn,constants:ge.default,cmcdModel:Mn,settings:ye}),gn||(gn=(0,zi.default)(pe).getInstance()),gn.setProtectionController(Ge),Ge}return null}function At(){if(!Ce)throw ue;if(on)return on;if("undefined"==typeof dashjs)return null;let Rt=dashjs.OfflineController;if("function"==typeof Rt){fe.default.extend(Rt.events),he.default.extend(Rt.events,{publicOnly:!0}),zn.extend(Rt.errors);const Ot=It(),ee=yo(pe).create();return ee.setConfig({manifestModel:xn,adapter:sn,manifestLoader:Ot,errHandler:cn,contentSteeringController:wn}),on=Rt(pe).create({debug:Ee,manifestUpdater:ee,baseURLController:fn,manifestLoader:Ot,manifestModel:xn,mediaPlayerModel:un,abrController:Pe,playbackController:_n,adapter:sn,errHandler:cn,dashMetrics:Dn,timelineConverter:je,segmentBaseController:Bn,schemeLoaderFactory:Ue,eventBus:be,events:fe.default,errors:zn,constants:ge.default,settings:ye,dashConstants:Xn.default,urlUtils:ha(pe).getInstance()}),on}return null}function Nt(Rt=NaN){on&&on.resetRecords(),!De&&Re&&(De=!0,we.info("Streaming Initialized"),function(){const Rt=It();yn||(yn=Us(pe).getInstance()),En||(En=fu(pe).create({errHandler:cn,manifestModel:xn,adapter:sn,mediaController:qe,baseURLController:fn,videoModel:Ln,settings:ye})),bn.setConfig({capabilities:gn,customParametersModel:dn,adapter:sn,settings:ye,protectionController:Ge,manifestModel:xn,errHandler:cn}),yn.setConfig({capabilities:gn,capabilitiesFilter:bn,manifestLoader:Rt,manifestModel:xn,mediaPlayerModel:un,customParametersModel:dn,protectionController:Ge,textController:En,adapter:sn,dashMetrics:Dn,errHandler:cn,timelineConverter:je,videoModel:Ln,playbackController:_n,serviceDescriptionController:vn,contentSteeringController:wn,abrController:Pe,throughputController:Fe,mediaController:qe,settings:ye,baseURLController:fn,uriFragmentModel:Fn,segmentBaseController:Bn}),Tn.setConfig({settings:ye,playbackController:_n,streamController:yn,videoModel:Ln,timelineConverter:je,adapter:sn}),_n.setConfig({streamController:yn,serviceDescriptionController:vn,dashMetrics:Dn,adapter:sn,videoModel:Ln,timelineConverter:je,settings:ye}),An.setConfig({streamController:yn,playbackController:_n,mediaPlayerModel:un,videoModel:Ln,settings:ye}),Fe.setConfig({settings:ye,playbackController:_n}),Pe.setConfig({streamController:yn,capabilities:gn,domStorage:Un,mediaPlayerModel:un,customParametersModel:dn,throughputController:Fe,cmsdModel:Pn,dashMetrics:Dn,adapter:sn,videoModel:Ln,settings:ye}),Mn.setConfig({abrController:Pe,dashMetrics:Dn,playbackController:_n,serviceDescriptionController:vn,throughputController:Fe}),Gn.setConfig({serviceDescriptionController:vn}),Pn.setConfig({}),qe.initialize(),Fe.initialize(),Pe.initialize(),yn.initialize(Me,Ne),En.initialize(),Tn.initialize(),An.initialize(),Mn.initialize(Me),Pn.initialize(),wn.initialize(),Bn.initialize()}(),"string"==typeof Re?yn.load(Re,Rt):yn.loadWithManifest(Re,Rt)),!xe&&lt()&&(xe=!0,be.trigger(he.default.PLAYBACK_INITIALIZED),we.info("Playback Initialized"))}return Se={addABRCustomRule:function(Rt,Ot,ee){dn.addAbrCustomRule(Rt,Ot,ee)},addExternalSubtitle:function(Rt){Rt instanceof Sl.default||we.error("Invalid external subtitle object. Must be an instance of dashjs.ExternalSubtitle"),dn.addExternalSubtitle(Rt)}
1,addRequestInterceptor:function(Rt){dn.addRequestInterceptor(Rt)},addResponseInterceptor:function(Rt){dn.addResponseInterceptor(Rt)},addUTCTimingSource:function(Rt,Ot){dn.addUTCTimingSource(Rt,Ot)},attachProtectionController:function(Rt){Ge=Rt},attachSource:_t,attachTTMLRenderingDiv:function(Rt){if(!Ln.getElement())throw ee;Ln.setTTMLRenderingDiv(Rt)},attachView:yt,attachVttRenderingDiv:function(Rt){if(!Ln.getElement())throw ee;Ln.setVttRenderingDiv(Rt)},clearDefaultUTCTimingSources:function(){dn.clearDefaultUTCTimingSources()},convertToTimeCode:function(Rt){Rt=Math.max(Rt,0);let Ot=Math.floor(Rt/3600),ee=Math.floor(Rt%3600/60),ne=Math.floor(Rt%3600%60);return(0===Ot?"":Ot<10?"0"+Ot.toString()+":":Ot.toString()+":")+(ee<10?"0"+ee.toString():ee.toString())+":"+(ne<10?"0"+ne.toString():ne.toString())},destroy:function(){it(),ne.default.deleteSingletonInstances(pe)},duration:function(){if(!xe)throw Ot;let Rt=bt().duration;if(_n.getIsDynamic()){const Ot=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ee=Dn.getCurrentDVRInfo(Ot);Rt=ee?ee.range.end-ee.range.start:0}return Rt},enableForcedTextStreaming:function(Rt){return!(!yn.getActiveStreamInfo()||!En)&&En.enableForcedTextStreaming(Rt)},enableText:function(Rt){const Ot=yn.getActiveStreamInfo();return!(!Ot||!En)&&En.enableText(Ot.id,Rt)},extend:function(Rt,Ot,ee){ne.default.extend(Rt,Ot,ee,pe)},formatUTC:function(Rt,Ot,ee,ne=!1){const re=new Date(1e3*Rt),ie=re.toLocaleDateString(Ot),le=re.toLocaleTimeString(Ot,{hour12:ee});return ne?le+" "+ie:le},getABRCustomRules:function(){return dn.getAbrCustomRules()},getActiveStream:vt,getAutoPlay:function(){return Me},getAvailableBaseUrls:function(){const Rt=xn.getValue();return Rt?fn.getBaseUrls(Rt):[]},getAvailableLocations:function(){const Rt=xn.getValue();if(!Rt)return[];const Ot=sn.getLocation(Rt),ee=wn.getSynthesizedLocationElements(Ot);return Ot.concat(ee)},getAverageLatency:function(Rt=ge.default.VIDEO,Ot=null,ee=NaN){return Fe?Fe.getAverageLatency(Rt,Ot,ee):0},getAverageThroughput:function(Rt=ge.default.VIDEO,Ot=null,ee=NaN){return Fe?Fe.getAverageThroughput(Rt,Ot,ee):0},getBufferLength:function(Rt){const Ot=[ge.default.VIDEO,ge.default.AUDIO,ge.default.TEXT];if(Rt)return-1!==Ot.indexOf(Rt)?ht().getCurrentBufferLevel(Rt)||NaN:(we.warn("getBufferLength requested for invalid type"),NaN);{const Rt=Ot.map((Rt=>Et(Rt).length>0?ht().getCurrentBufferLevel(Rt):Number.MAX_VALUE)).reduce(((Rt,Ot)=>Math.min(Rt,Ot)));return Rt===Number.MAX_VALUE?NaN:Rt}},getCurrentLiveLatency:function(){if(!Ce)throw ue;return xe?_n.getCurrentLiveLatency():NaN},getCurrentRepresentationForType:function(Ot){if(!De)throw Rt;if(Ot!==ge.default.IMAGE&&Ot!==ge.default.VIDEO&&Ot!==ge.default.AUDIO)return null;const ee=vt();if(!ee)return null;if(Ot===ge.default.IMAGE){const Rt=ee.getThumbnailController();return Rt?Rt.getCurrentTrack():-1}return ee.getCurrentRepresentationForType(Ot)},getCurrentSteeringResponseData:function(){if(wn)return wn.getCurrentSteeringResponseData()},getCurrentTextTrackIndex:function(){let Rt=NaN;const Ot=yn.getActiveStreamInfo();if(Ot&&En)return Rt=En.getCurrentTrackIdx(Ot.id),Rt},getCurrentTrackFor:function(Ot){if(!De)throw Rt;let ee=yn.getActiveStreamInfo();return ee?qe.getCurrentTrackFor(Ot,ee.id):null},getDashAdapter:function(){return sn},getDashMetrics:ht,getDebug:function(){return Ee},getDvrSeekOffset:dt,getDvrWindow:function(){if(!xe)throw Ot;const Rt=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ee=Dn.getCurrentDVRInfo(Rt);if(!ee)return{};let ne=0;const re=_n.getIsDynamic();return re&&(ne=ee.manifestInfo.availableFrom.getTime()/1e3),{start:ee.range.start,end:ee.range.end,startAsUtc:re?ne+ee.range.start:NaN,endAsUtc:re?ne+ee.range.end:NaN,size:ee.range.end-ee.range.start}},getExternalSubtitles:function(){dn.getExternalSubtitles()},getInitialMediaSettingsFor:function(Rt){if(!Ce)throw ue;return qe.getInitialSettings(Rt)},getLowLatencyModeEnabled:function(){if(!xe)throw Ot;return _n.getLowLatencyModeEnabled()},getManifest:function(){return xn.getValue()},getOfflineController:function(){return At()},getPlaybackRate:function(){return bt().playbackRate},getProtectionController:function(){return kt()},getRawThroughputData:function(Rt=ge.default.VIDEO){return Fe?Fe.getRawThroughputData(Rt):[]},getRepresentationsByType:function(Ot,ee=null){if(!De)throw Rt;let ne=ee?yn.getStreamById(ee):vt();return ne?ne.getRepresentationsByType(Ot):[]},getSafeAverageThroughput:function(Rt=ge.default.VIDEO,Ot=null,ee=NaN){return Fe?Fe.getSafeAverageThroughput(Rt,Ot,ee):0},getSettings:function(){return ye.get()},getSource:function(){if(!Re)throw re;return Re},getStreamsFromManifest:function(Ot){if(!De)throw Rt;return sn.getStreamsInfo(Ot)},getTTMLRenderingDiv:function(){return Ln?Ln.getTTMLRenderingDiv():null},getTargetLiveDelay:function(){if(!xe)throw Ot;return _n.getOriginalLiveDelay()}
1,getTracksFor:Et,getTracksForTypeFromManifest:function(Ot,ee,ne){if(!De)throw Rt;return(ne=ne||sn.getStreamsInfo(ee,1)[0])?sn.getAllMediaInfoForType(ne,Ot,ee):[]},getVersion:ot,getVideoElement:bt,getVolume:function(){return bt().volume},getXHRWithCredentialsForType:function(Rt){return dn.getXHRWithCredentialsForType(Rt)},initialize:function(Rt,Ot,ee,ne=NaN){gn||(gn=(0,zi.default)(pe).getInstance(),gn.setConfig({settings:ye,protectionController:Ge})),cn||(cn=vl(pe).getInstance()),gn.supportsMediaSource()?(Ce||(Ce=!0,je=hu(pe).getInstance(),Fe||(Fe=mu(pe).getInstance()),Pe||(Pe=In(pe).getInstance()),Ue||(Ue=pi(pe).getInstance()),_n||(_n=So(pe).getInstance()),qe||(qe=To(pe).getInstance()),yn||(yn=Us(pe).getInstance()),Tn||(Tn=wl(pe).getInstance()),An||(An=ji(pe).getInstance()),vn||(vn=zo(pe).getInstance()),wn||(wn=Ei(pe).getInstance()),bn||(bn=Fi(pe).getInstance()),sn=bl(pe).getInstance(),xn=ho(pe).getInstance(),Mn=$r(pe).getInstance(),Pn=si(pe).getInstance(),Gn=ci(pe).getInstance(),Dn=Tl(pe).getInstance({settings:ye}),Un=Xi(pe).getInstance({settings:ye}),sn.setConfig({constants:ge.default,cea608parser:new au,errHandler:cn,BASE64:Cn}),fn||(fn=Ii(pe).create()),fn.setConfig({adapter:sn,contentSteeringController:wn}),vn.setConfig({adapter:sn}),Bn||(Bn=Co(pe).getInstance({dashMetrics:Dn,mediaPlayerModel:un,errHandler:cn,baseURLController:fn,events:fe.default,eventBus:be,debug:Ee,boxParser:Pi(pe).getInstance(),errors:zn})),qe.setConfig({domStorage:Un,settings:ye,mediaPlayerModel:un,customParametersModel:dn,videoModel:Ln}),un.setConfig({playbackController:_n,serviceDescriptionController:vn}),wn.setConfig({adapter:sn,errHandler:cn,dashMetrics:Dn,mediaPlayerModel:un,manifestModel:xn,serviceDescriptionController:vn,throughputController:Fe,eventBus:be}),mt(),gt(void 0===ee||ee),At()),Rt&&yt(Rt),Ot&&_t(Ot,ne),we.info("[dash.js "+ot()+"] MediaPlayer has been initialized")):cn.error(new jn.default(zn.CAPABILITY_MEDIASOURCE_ERROR_CODE,zn.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},isDynamic:ut,isMuted:function(){return bt().muted},isPaused:st,isReady:lt,isSeeking:function(){if(!xe)throw Ot;return _n.isSeeking()},isTextEnabled:function(){const Rt=yn.getActiveStreamInfo();return!(!Rt||!En)&&En.isTextEnabled(Rt)},off:function(Rt,Ot,ee){be.off(Rt,Ot,ee)},on:function(Rt,Ot,ee,ne){be.on(Rt,Ot,ee,ne)},pause:function(){if(!xe)throw Ot;_n.pause()},play:function(){if(!xe)throw Ot;(!Me||st()&&xe)&&_n.play(!0)},preload:function(){if(!Ln.getElement()&&!De){if(!Re)throw re;Nt(Oe)}},provideThumbnail:function(Rt,Ot){if("function"!=typeof Ot)return;if(Rt<0)return void Ot(null);const ee=_n.getIsDynamic()?dt(Rt):Rt,ne=yn.getStreamForTime(ee);if(null===ne)return void Ot(null);const re=ne.getThumbnailController();if(re)return re.provide(ee,Ot);Ot(null)},refreshManifest:function(Rt){if(!Ce)throw ue;if(!lt())return Rt(null,re);let Ot=this;if("function"==typeof Rt){const n=function(ee){be.off(fe.default.INTERNAL_MANIFEST_LOADED,n,Ot),ee.error?Rt(null,ee.error):Rt(ee.manifest)};be.on(fe.default.INTERNAL_MANIFEST_LOADED,n,Ot)}yn.refreshManifest()},registerCustomCapabilitiesFilter:function(Rt){dn.registerCustomCapabilitiesFilter(Rt)},registerLicenseRequestFilter:function(Rt){dn.registerLicenseRequestFilter(Rt)},registerLicenseResponseFilter:function(Rt){dn.registerLicenseResponseFilter(Rt)},removeABRCustomRule:function(Rt){dn.removeAbrCustomRule(Rt)},removeAllABRCustomRule:function(){dn.removeAllAbrCustomRule()},removeExternalSubtitleById:function(Rt){dn.removeExternalSubtitleById(Rt)},removeExternalSubtitleByUrl:function(Rt){dn.removeExternalSubtitleByUrl(Rt)},removeRequestInterceptor:function(Rt){dn.removeRequestInterceptor(Rt)},removeResponseInterceptor:function(Rt){dn.removeResponseInterceptor(Rt)},removeUTCTimingSource:function(Rt,Ot){dn.removeUTCTimingSource(Rt,Ot)},reset:it,resetCustomInitialTrackSelectionFunction:function(){dn.resetCustomInitialTrackSelectionFunction(null)},resetSettings:function(){ye.reset()},restoreDefaultUTCTimingSources:mt,retrieveManifest:function(Rt,Ot){let ee=It(),ne=this;const r=function(Rt){Rt.error?Ot(null,Rt.error):Ot(Rt.manifest),be.off(fe.default.INTERNAL_MANIFEST_LOADED,r,ne),ee.reset()};be.on(fe.default.INTERNAL_MANIFEST_LOADED,r,ne),Fn.initialize(Rt),ee.load(Rt)},seek:function(Rt){if(!xe)throw Ot;if((0,qn.checkParameterType)(Rt,"number"),isNaN(Rt))throw ge.default.BAD_ARGUMENT_ERROR;Rt<0&&(Rt=0);let ee=_n.getIsDynamic()?dt(Rt):Rt;const ne=bt();!_n.getIsDynamic()&&ne.duration&&(ee=Math.min(ne.duration,ee)),_n.seek(ee,!1,!1,!0)},seekToOriginalLive:function(){xe&&ut()&&_n.seekToOriginalLive()},seekToPresentationTime:function(Rt){if(!xe)throw Ot;if((0,qn.checkParameterType)(Rt,"number"),isNaN(Rt))throw ge.default.BAD_ARGUMENT_ERROR;Rt<0&&(Rt=0);const ee=bt();
1if(!_n.getIsDynamic()&&ee.duration&&(Rt=Math.min(ee.duration,Rt)),_n.getIsDynamic()){const Ot=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ee=Dn.getCurrentDVRInfo(Ot);if(!ee)return;(Rt=ct(Rt,ee))<ee.range.start&&(Rt=ee.range.start)}_n.seek(Rt,!1,!1,!0)},setAutoPlay:gt,setConfig:function(Rt){Rt&&(Rt.capabilities&&(gn=Rt.capabilities),Rt.capabilitiesFilter&&(bn=Rt.capabilitiesFilter),Rt.streamController&&(yn=Rt.streamController),Rt.textController&&(En=Rt.textController),Rt.gapController&&(Tn=Rt.gapController),Rt.throughputController&&(Fe=Rt.throughputController),Rt.playbackController&&(_n=Rt.playbackController),Rt.serviceDescriptionController&&(vn=Rt.serviceDescriptionController),Rt.contentSteeringController&&(wn=Rt.contentSteeringController),Rt.clientDataReportingController&&(Gn=Rt.clientDataReportingController),Rt.catchupController&&(An=Rt.catchupController),Rt.mediaPlayerModel&&(un=Rt.mediaPlayerModel),Rt.customParametersModel&&(dn=Rt.customParametersModel),Rt.abrController&&(Pe=Rt.abrController),Rt.schemeLoaderFactory&&(Ue=Rt.schemeLoaderFactory),Rt.mediaController&&(qe=Rt.mediaController),Rt.settings&&(ye=Rt.settings),Rt.dashMetrics&&(Dn=Rt.dashMetrics))},setCurrentTrack:function(Ot,ee=!1){if(!De)throw Rt;!Ge||Ge.areKeyIdsUsable(Ot.normalizedKeyIds)?qe.setTrack(Ot,{noSettingsSave:ee}):we.error(`Can not switch to track with index ${Ot.index} because key is not usable`)},setCustomInitialTrackSelectionFunction:function(Rt){dn.setCustomInitialTrackSelectionFunction(Rt)},setInitialMediaSettingsFor:function(Rt,Ot){if(!Ce)throw ue;let ee=function(Rt){const Ot=ye.get().streaming.defaultSchemeIdUri;let ee={};function a(Rt,Ot,ee){let ne={};if(Ot){if(Ot instanceof Array)throw"Array type not supported for settings!";return Ot instanceof Object?(ne.schemeIdUri=Ot.schemeIdUri?Ot.schemeIdUri:"",ne.value=Ot.value?Ot.value:""):(ne.schemeIdUri=ee,ne.value=Ot,we.warn("No schemeIdUri provided for "+Rt+', using default "'+ee+'"')),ne}return null}return void 0!==Rt.id&&(ee.id=Rt.id),void 0!==Rt.lang&&(ee.lang=Rt.lang),isNaN(Rt.index)||(ee.index=Rt.index),void 0!==Rt.viewpoint&&(ee.viewpoint=a("viewpoint",Rt.viewpoint,Ot.viewpoint)),void 0!==Rt.audioChannelConfiguration&&(ee.audioChannelConfiguration=a("audioChannelConfiguration",Rt.audioChannelConfiguration,Ot.audioChannelConfiguration)),void 0!==Rt.role&&null!==Rt.role&&(ee.role=a("role",Rt.role,Ot.role),ee.role.schemeIdUri===ge.default.DASH_ROLE_SCHEME_ID&&"Main"===ee.role.value&&(ee.role.value=Xn.default.MAIN)),void 0!==Rt.accessibility&&(ee.accessibility=a("accessibility",Rt.accessibility,Ot.accessibility)),ee}(Ot);qe.setInitialSettings(Rt,ee)},setMute:function(Rt){(0,qn.checkParameterType)(Rt,"boolean"),bt().muted=Rt},setPlaybackRate:function(Rt){bt().playbackRate=Rt},setProtectionData:function(Rt){Ne=Rt,yn&&yn.setProtectionData(Ne)},setRepresentationForTypeById:function(Ot,ee,ne=!1){if(Ot!==ge.default.IMAGE&&Ot!==ge.default.VIDEO&&Ot!==ge.default.AUDIO)return;if(!De)throw Rt;const re=vt();if(re)if(Ot===ge.default.IMAGE){const Rt=re.getThumbnailController();Rt&&Rt.setTrackById(ee)}else{const Rt=re.getRepresentationForTypeById(Ot,ee);Rt&&Pe.manuallySetPlaybackQuality(Ot,yn.getActiveStreamInfo(),Rt,{forceReplace:ne})}},setRepresentationForTypeByIndex:function(Ot,ee,ne=!1){if(Ot!==ge.default.IMAGE&&Ot!==ge.default.VIDEO&&Ot!==ge.default.AUDIO)return;if(!De)throw Rt;const re=vt();if(re)if(Ot===ge.default.IMAGE){const Rt=re.getThumbnailController();Rt&&Rt.setTrackByIndex(ee)}else{const Rt=re.getRepresentationForTypeByIndex(Ot,ee);Rt&&Pe.manuallySetPlaybackQuality(Ot,yn.getActiveStreamInfo(),Rt,{forceReplace:ne})}},setTextTrack:function(Rt){if(!xe)throw Ot;const ee=yn.getActiveStreamInfo();ee&&En&&En.setTextTrack(ee.id,Rt)},setVolume:function(Rt){if("number"!=typeof Rt||isNaN(Rt)||Rt<0||Rt>1)throw ge.default.BAD_ARGUMENT_ERROR;bt().volume=Rt},setXHRWithCredentialsForType:function(Rt,Ot){dn.setXHRWithCredentialsForType(Rt,Ot)},time:ft,timeAsUTC:function(){if(!xe)throw Ot;if(!_n.getIsDynamic()||ft()<0)return NaN;const Rt=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ee,ne,re=Dn.getCurrentDVRInfo(Rt);return re?(ee=re.manifestInfo.availableFrom.getTime()/1e3,ne=ee+ft(),ne):0},timeInDvrWindow:function(){if(!xe)throw Ot;if(!_n.getIsDynamic())return ft();let Rt=bt().currentTime;const ee=yn&&yn.hasVideoTrack()?ge.default.VIDEO:ge.default.AUDIO;let ne=Dn.getCurrentDVRInfo(ee);return Rt=null===ne||0===Rt?0:Math.max(0,Rt-ne.range.start),Rt},trigger:function(Rt,Ot,ee){be.trigger(Rt,Ot,ee)},triggerSteeringRequest:function(){if(wn)return wn.loadSteeringData()},unregisterCustomCapabilitiesFilter:function(Rt){dn.unregisterCustomCapabilitiesFilter(Rt)},unregisterLicenseRequestFilter:function(Rt){dn.unregisterLicenseRequestFilter(Rt)},unregisterLicenseResponseFilter:function(Rt){dn.unregisterLicenseResponseFilter(Rt)},updateSettings:function(Rt){ye.update(Rt)},updateSource:function(Rt){Re=Rt,yn.load(Re)}},we=Ee.getLogger(Se),Ce=!1,xe=!1,De=!1,Me=!0,Oe=NaN,Ge=null,on=null,Ne=null,sn=null,Bn=null,fe.default.extend(he.default),un=vo(pe).getInstance(),dn=(0,ui.default)(pe).getInstance(),Ln=yu(pe).getInstance(),Fn=pu(pe).getInstance(),Se}Ss.__dashjs_factory_name="MediaPlayer";const Tu=ne.default.getClassFactory(Ss);Tu.events=he.default,Tu.errors=zn,ne.default.updateClassFactory(Ss.__dashjs_factory_name,Tu);var _u=Tu},1191:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(7252);class r extends ne.default{constructor(){super(),this.AST_IN_FUTURE="astInFuture",this.BASE_URLS_UPDATED="baseUrlsUpdated",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_LOADED="bufferLoaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.DVB_FONT_DOWNLOAD_ADDED="dvbFontDownloadAdded",this.DVB_FONT_DOWNLOAD_COMPLETE="dvbFontDownloadComplete",this.DVB_FONT_DOWNLOAD_FAILED="dvbFontDownloadFailed",this.DYNAMIC_TO_STATIC="dynamicToStatic",this.ERROR="error",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.LOG="log",this.MANIFEST_LOADING_STARTED="manifestLoadingStarted",this.MANIFEST_LOADING_FINISHED="manifestLoadingFinished",this.MANIFEST_LOADED="manifestLoaded",this.METRICS_CHANGED="metricsChanged",this.METRIC_CHANGED="metricChanged",this.METRIC_ADDED="metricAdded",this.METRIC_UPDATED="metricUpdated",this.PERIOD_SWITCH_STARTED="periodSwitchStarted",this.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.NEW_TRACK_SELECTED="newTrackSelected",this.TRACK_CHANGE_RENDERED="trackChangeRendered",this.STREAM_INITIALIZING="streamInitializing",this.STREAM_UPDATED="streamUpdated",this.STREAM_ACTIVATED="streamActivated",this.STREAM_DEACTIVATED="streamDeactivated",this.STREAM_INITIALIZED="streamInitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TEXT_TRACKS_ADDED="allTextTracksAdded",this.TEXT_TRACK_ADDED="textTrackAdded",this.CUE_ENTER="cueEnter",this.CUE_EXIT="cueExit",this.THROUGHPUT_MEASUREMENT_STORED="throughputMeasurementStored",this.TTML_PARSED="ttmlParsed",this.TTML_TO_PARSE="ttmlToParse",this.CAPTION_RENDERED="captionRendered",this.CAPTION_CONTAINER_RESIZE="captionContainerResize",this.CAN_PLAY="canPlay",this.CAN_PLAY_THROUGH="canPlayThrough",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_INITIALIZED="playbackInitialized",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_LOADED_DATA="playbackLoadedData",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_STALLED="playbackStalled",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",this.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",this.PLAYBACK_WAITING="playbackWaiting",this.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",this.EVENT_MODE_ON_START="eventModeOnStart",this.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",this.CONFORMANCE_VIOLATION="conformanceViolation",this.REPRESENTATION_SWITCH="representationSwitch",this.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",this.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",this.INBAND_PRFT="inbandPrft",this.MANAGED_MEDIA_SOURCE_START_STREAMING="managedMediaSourceStartStreaming",this.MANAGED_MEDIA_SOURCE_END_STREAMING="managedMediaSourceEndStreaming"}}let re=new r;Ot.default=re},5212:function(Rt,Ot,ee){ee.r(Ot),Ot.default={STREAM:"stream",VIDEO:"video",ENHANCEMENT:"enhancement",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_LOWEST_STARTUP_DELAY:"lowestStartupDelay",TRACK_SELECTION_MODE_WIDEST_RANGE:"widestRange",CMCD_QUERY_KEY:"CMCD",CMCD_MODE_QUERY:"query",CMCD_MODE_HEADER:"header",CMCD_AVAILABLE_KEYS:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"],CMCD_V2_AVAILABLE_KEYS:["msd","ltc"],CMCD_AVAILABLE_REQUESTS:["segment","mpd","xlink","steering","other"],INITIALIZE:"initialize",TEXT_SHOWING:"showing",TEXT_HIDDEN:"hidden",TEXT_DISABLED:"disabled",ACCESSIBILITY_CEA608_SCHEME:"urn:scte:dash:cc:cea-608:2
1015",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",CTA_5004_2023_SCHEME:"urn:mpeg:dash:cta-5004:2023",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",URL_QUERY_INFO_SCHEME:"urn:mpeg:dash:urlparam:2014",EXT_URL_QUERY_INFO_SCHEME:"urn:mpeg:dash:urlparam:2016",MATRIX_COEFFICIENTS_SCHEME_ID_URI:"urn:mpeg:mpegB:cicp:MatrixCoefficients",TRANSFER_CHARACTERISTICS_SCHEME_ID_URI:"urn:mpeg:mpegB:cicp:TransferCharacteristics",SEGMENT_SEQUENCE_REPRESENTATION_SCHEME_ID_URI:"urn:mpeg:dash:ssr:2023",HDR_METADATA_FORMAT_SCHEME_ID_URI:"urn:dvb:dash:hdr-dmi",HDR_METADATA_FORMAT_VALUES:{ST2094_10:"ST2094-10",SL_HDR2:"SL-HDR2",ST2094_40:"ST2094-40"},MEDIA_CAPABILITIES_API:{COLORGAMUT:{SRGB:"srgb",P3:"p3",REC2020:"rec2020"},TRANSFERFUNCTION:{SRGB:"srgb",PQ:"pq",HLG:"hlg"},HDR_METADATATYPE:{SMPTE_ST_2094_10:"smpteSt2094-10",SLHDR2:"slhdr2",SMPTE_ST_2094_40:"smpteSt2094-40"}},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",DASH_ROLE_SCHEME_ID:"urn:mpeg:dash:role:2011",CODEC_FAMILIES:{MP3:"mp3",AAC:"aac",AC3:"ac3",EC3:"ec3",DTSX:"dtsx",DTSC:"dtsc",AVC:"avc",HEVC:"hevc"}}},2861:function(Rt,Ot,ee){ee.r(Ot),Ot.default={CLEARKEY_KEYSTEM_STRING:"org.w3.clearkey",WIDEVINE_KEYSTEM_STRING:"com.widevine.alpha",PLAYREADY_KEYSTEM_STRING:"com.microsoft.playready",PLAYREADY_RECOMMENDATION_KEYSTEM_STRING:"com.microsoft.playready.recommendation",WIDEVINE_UUID:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",PLAYREADY_UUID:"9a04f079-9840-4286-ab92-e65be0885f95",CLEARKEY_UUID:"e2719d58-a985-b3c9-781a-b030af78d30e",W3C_CLEARKEY_UUID:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",INITIALIZATION_DATA_TYPE_CENC:"cenc",INITIALIZATION_DATA_TYPE_KEYIDS:"keyids",INITIALIZATION_DATA_TYPE_WEBM:"webm",ENCRYPTION_SCHEME_CENC:"cenc",ENCRYPTION_SCHEME_CBCS:"cbcs",MEDIA_KEY_MESSAGE_TYPES:{LICENSE_REQUEST:"license-request",LICENSE_RENEWAL:"license-renewal",LICENSE_RELEASE:"license-release",INDIVIDUALIZATION_REQUEST:"individualization-request"},ROBUSTNESS_STRINGS:{WIDEVINE:{SW_SECURE_CRYPTO:"SW_SECURE_CRYPTO",SW_SECURE_DECODE:"SW_SECURE_DECODE",HW_SECURE_CRYPTO:"HW_SECURE_CRYPTO",HW_SECURE_DECODE:"HW_SECURE_DECODE",HW_SECURE_ALL:"HW_SECURE_ALL"}},MEDIA_KEY_STATUSES:{USABLE:"usable",EXPIRED:"expired",RELEASED:"released",OUTPUT_RESTRICTED:"output-restricted",OUTPUT_DOWNSCALED:"output-downscaled",STATUS_PENDING:"status-pending",INTERNAL_ERROR:"internal-error"}}},4469:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{default:function(){return Oe}});class a{constructor(){this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null}}a.SSL_CONNECTION_FAILED_PREFIX="SSL",a.DNS_RESOLUTION_FAILED="C00",a.HOST_UNREACHABLE="C01",a.CONNECTION_REFUSED="C02",a.CONNECTION_ERROR="C03",a.CORRUPT_MEDIA_ISOBMFF="M00",a.CORRUPT_MEDIA_OTHER="M01",a.BASE_URL_CHANGED="F00",a.BECAME_REPORTER="S00";var ne=a,re=ee(913),ie=ee(138);function o(Rt){let Ot,ee;const ie=(Rt=Rt||{}).eventBus,le=Rt.dashMetrics,oe=Rt.metricsConstants,ue=Rt.events;function u(Rt){let Ot=new ne;if(ee){for(const ee in Rt)Rt.hasOwnProperty(ee)&&(Ot[ee]=Rt[ee]);Ot.mpdurl||(Ot.mpdurl=ee.originalUrl||ee.url),Ot.terror||(Ot.terror=new Date),le.addDVBErrors(Ot)}}function d(Rt){Rt.error||(ee=Rt.manifest)}function c(Rt){u({errorcode:ne.BASE_URL_CHANGED,servicelocation:Rt.entry})}function f(){u({errorcode:ne.BECAME_REPORTER})}function g(Rt){var Ot;Rt.metric===oe.HTTP_REQUEST&&(0===(Ot=Rt.value).responsecode||null==Ot.responsecode||Ot.responsecode>
1=400||Ot.responsecode<100||Ot.responsecode>=600)&&u({errorcode:Ot.responsecode||ne.CONNECTION_ERROR,url:Ot.url,terror:Ot.tresponse,servicelocation:Ot._serviceLocation})}function m(Rt){let Ot;switch(Rt.error?Rt.error.code:0){case MediaError.MEDIA_ERR_NETWORK:Ot=ne.CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:Ot=ne.CORRUPT_MEDIA_OTHER;break;default:return}u({errorcode:Ot})}return Ot={initialize:function(){ie.on(ue.MANIFEST_UPDATED,d,Ot),ie.on(ue.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,c,Ot),ie.on(ue.METRIC_ADDED,g,Ot),ie.on(ue.METRIC_UPDATED,g,Ot),ie.on(ue.PLAYBACK_ERROR,m,Ot),ie.on(re.default.BECAME_REPORTING_PLAYER,f,Ot)},reset:function(){ie.off(ue.MANIFEST_UPDATED,d,Ot),ie.off(ue.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,c,Ot),ie.off(ue.METRIC_ADDED,g,Ot),ie.off(ue.METRIC_UPDATED,g,Ot),ie.off(ue.PLAYBACK_ERROR,m,Ot),ie.off(re.default.BECAME_REPORTING_PLAYER,f,Ot)}},Ot}o.__dashjs_factory_name="DVBErrorsTranslator";var le=ie.default.getSingletonFactory(o),oe=ee(7377);function d(Rt){Rt=Rt||{};let Ot,ee,ne=!1,re=this.context,ie=Rt.mediaElement;return Ot={initialize:function(Rt){Rt&&Rt.length&&(Rt.forEach((Rt=>{let Ot=Rt.starttime,ne=Ot+Rt.duration;ee.add(Ot,ne)})),ne=!!Rt[0]._useWallClockTime)},reset:function(){ee.clear()},isEnabled:function(){let Rt,Ot=ee.length;if(!Ot)return!0;Rt=ne?(new Date).getTime()/1e3:ie.currentTime;for(let ne=0;ne<Ot;ne+=1){let Ot=ee.start(ne),re=ee.end(ne);if(Ot<=Rt&&Rt<re)return!0}return!1}},ee=(0,oe.default)(re).create(),Ot}d.__dashjs_factory_name="RangeController";var ue=ie.default.getClassFactory(d);function f(){return{serialise:function t(Rt){let Ot,ee,ne=[],re=[];for(Ot in Rt)if(Rt.hasOwnProperty(Ot)&&0!==Ot.indexOf("_")){if(ee=Rt[Ot],null==ee&&(ee=""),Array.isArray(ee)){if(!ee.length)continue;re=[],ee.forEach((function(Rt){let Ot="Object"!==Object.prototype.toString.call(Rt).slice(8,-1);re.push(Ot?Rt:t(Rt))})),ee=re.map(encodeURIComponent).join(",")}else"string"==typeof ee?ee=encodeURIComponent(ee):ee instanceof Date?ee=ee.toISOString():"number"==typeof ee&&(ee=Math.round(ee));ne.push(Ot+"="+ee)}return ne.join("&")}}}f.__dashjs_factory_name="MetricSerialiser";var ce=ie.default.getSingletonFactory(f);function m(){let Rt,Ot,ee,ne=window.crypto||window.msCrypto,re=Uint32Array,ie=Math.pow(2,8*re.BYTES_PER_ELEMENT)-1;function l(){ne&&(Rt||(Rt=new re(10)),ne.getRandomValues(Rt),Ot=0)}return ee={random:function(ee,re){let le;return ee||(ee=0),re||(re=1),ne?(Ot===Rt.length&&l(),le=Rt[Ot]/ie,Ot+=1):le=Math.random(),le*(re-ee)+ee}},l(),ee}m.__dashjs_factory_name="RNG";var fe=ie.default.getSingletonFactory(m),ge=ee(1926);function b(Rt){let Ot;Rt=Rt||{};let ee,ne,re,ie,le,oe,ue,he=this.context,pe=[];const be=Rt.metricsConstants;function f(){ie=!1,le=!1,oe=null,ue=null}return Ot={report:function(Rt,Ot){Array.isArray(Ot)||(Ot=[Ot]),le&&ue.isEnabled()&&Ot.forEach((function(Ot){let re=ee.serialise(Ot);Rt!==be.DVB_ERRORS&&(re=`metricname=${Rt}&${re}`),re=`${oe}?${re}`,function(Rt,Ot,ee){let re=new XMLHttpRequest;re.withCredentials=ne.getXHRWithCredentialsForType(be.HTTP_REQUEST_DVB_REPORTING_TYPE);const i=function(){let Rt=pe.indexOf(re);-1!==Rt&&(pe.splice(Rt,1),!(re.status>=200&&re.status<300)&&ee&&ee())};pe.push(re);try{re.open("GET",Rt),re.onloadend=i,re.onerror=i,re.send()}catch(Rt){re.onerror()}}(re,0,(function(){le=!1}))}))},initialize:function(Rt,Ot){let ee;if(ue=Ot,oe=Rt.dvbReportingUrl,!oe)throw new Error("required parameter missing (dvb:reportingUrl)");ie||(ee=Rt.dvbProbability,ee&&(1e3===ee||ee/1e3>=re.random())&&(le=!0),ie=!0)},reset:function(){f()}},ee=ce(he).getInstance(),re=fe(he).getInstance(),ne=(0,ge.default)(he).getInstance(),f(),Ot}b.__dashjs_factory_name="DVBReporting";var he=ie.default.getClassFactory(b);function E(Rt){Rt=Rt||{};const Ot={"urn:dvb:dash:reporting:2014":he},ee=this.context;let ne;const re=Rt.debug?Rt.debug.getLogger(ne):{},ie=Rt.metricsConstants,le=Rt.mediaPlayerModel||{};return ne={create:function(Rt,ne){let oe;try{oe=Ot[Rt.schemeIdUri](ee).create({metricsConstants:ie,mediaPlayerModel:le}),oe.initialize(Rt,ne)}catch(Ot){oe=null,re.error(`ReportingFactory: could not create Reporting with schemeIdUri ${Rt.schemeIdUri} (${Ot.message})`)}return oe},register:function(Rt,ee){Ot[Rt]=ee},unregister:function(Rt){delete Ot[Rt]}},ne}E.__dashjs_factory_name="ReportingFactory";var pe=ie.default.getSingletonFactory(E);function _(Rt){let Ot,ee=[];const ne=pe(this.context).getInstance(Rt);return Ot={initialize:function(Rt,Ot){Rt.some((Rt=>{let re=ne.create(Rt,Ot);if(re)return ee.push(re),!0}))},reset:function(){ee.forEach((Rt=>Rt.reset())),ee=[]},report:function(Rt,Ot){ee.forEach((ee=>ee.report(Rt,Ot)))}},Ot}_.__dashjs_factory_name="ReportingController";var be=ie.default.getClassFactory(_);function S(){return{reconstructFullMetricName:function(Rt,Ot,ee){let ne=Rt;return Ot&&(ne+="("+Ot,ee&&ee.length&&(ne+=","+ee),ne+=")"),ne},validateN:function(Rt){if(!Rt)throw new Error("missing n");if(isNaN(Rt))throw new Error("n is NaN");if(Rt<0)throw new Error("n must be positive");return Rt}}}S.__dashjs_factory_name="HandlerHelpers";var ye=ie.default.getSingletonFactory(S);function I(Rt){let Ot,ee,ne,re,ie,le;Rt=Rt||{};let oe=this.context,ue=ye(oe).getInstance(),ce=[];const fe=Rt.metricsConstants;function c(){let Rt=function(){try{return Object.keys(ce).map((Rt=>ce[Rt])).reduce(((Rt,Ot)=>Rt.level<Ot.level?Rt:Ot))}catch(Rt){return}}();Rt&&le!==Rt.t&&(le=Rt.t,ee.report(re,Rt))}return Ot={initialize:function(Rt,Ot,le){Ot&&(ne=ue.validateN(le),ee=Ot,re=ue.reconstructFullMetricName(Rt,le),ie=setInterval(c,ne))},reset:function(){clearInterval(ie),ie=null,ne=0,ee=null,le=null},handleNewMetric:function(Rt,Ot,ee){Rt===fe.BUFFER_LEVEL&&(ce[ee]=Ot)}},Ot}I.__dashjs_factory_name="BufferLevelHandler";var Ee=ie.default.getClassFactory(I),_e=ie.default.getClassFactory((function(Rt){let Ot,ee,ne=(Rt=Rt||{}).eventBus;const ie=Rt.metricsConstants;function l(){ne.off(re.default.METRICS_INITIALISATION_COMPLETE,l,this),ne.trigger(re.default.BECAME_REPORTING_PLAYER)}return Ot={initialize:function(Rt,Ot){Ot&&(ee=Ot,ne.on(re.default.METRICS_INITIALISATION_COMPLETE,l,this))},reset:function(){ee=null},handleNewMetric:function(Rt,Ot){Rt===ie.DVB_ERRORS&&ee&&ee.report(Rt,Ot)}},Ot}));function R(Rt){let Ot,ee,ne,re,ie,le;Rt=Rt||{};let oe=[],ue=ye(this.context).getInstance();const ce=Rt.metricsConstants;function d(){var Rt=oe;Rt.length&&ee&&ee.report(ie,Rt),oe=[]}return Ot={initialize:function(Rt,Ot,oe,ce){Ot&&(ne=ue.validateN(oe),ee=Ot,ce&&ce.length&&(re=ce),ie=ue.reconstructFullMetricName(Rt,oe,ce),le=setInterval(d,ne))},reset:function(){clearInterval(le),le=null,ne=null,re=null,oe=[],ee=null},handleNewMetric:function(Rt,Ot){Rt===ce.HTTP_REQUEST&&(re&&re!==Ot.type||oe.push(Ot))}},Ot}R.__dashjs_factory_name="HttpListHandler";var Se=ie.default.getClassFactory(R);function C(){let Rt,Ot,ee;return Rt={initialize:function(Rt,ne){Ot=Rt,ee=ne},reset:function(){ee=null,Ot=void 0},handleNewMetric:function(Rt,ne){Rt===Ot&&ee&&ee.report(Ot,ne)}},Rt}C.__dashjs_factory_name="GenericMetricHandler";var we=ie.default.getClassFactory(C);function x(Rt){let Ot;const ee=(Rt=Rt||{}).debug?Rt.debug.getLogger(Ot):{};let ne=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/;const re=this.context;let ie={BufferLevel:Ee,DVBErrors:_e,HttpList:Se,PlayList:we,RepSwitchList:we,TcpList:we};return Ot={create:function(Ot,le){var oe,ue=Ot.match(ne);if(ue){try{(oe=ie[ue[1]](re).create({eventBus:Rt.eventBus,metricsConstants:Rt.metricsConstants})).initialize(ue[1],le,ue[3],ue[5])}catch(Rt){oe=null,ee.error(`MetricsHandlerFactory: Could not create handler for type ${ue[1]} with args ${ue[3]}, ${ue[5]} (${Rt.message})`)}return oe}},register:function(Rt,Ot){ie[Rt]=Ot},unregister:function(Rt){delete ie[Rt]}},Ot}x.__dashjs_factory_name="MetricsHandlerFactory";var Re=ie.default.getSingletonFactory(x);function P(Rt){Rt=Rt||{};let Ot,ee=[];const ne=this.context,re=Rt.eventBus,ie=Rt.events;let le=Re(ne).getInstance({debug:Rt.debug,eventBus:Rt.eventBus,metricsConstants:Rt.metricsConstants});function o(Rt){ee.forEach((Ot=>{Ot.handleNewMetric(Rt.metric,Rt.value,Rt.mediaType)}))}return Ot={initialize:function(Rt,ne){Rt.split(",").forEach(((Rt,Ot,re)=>{let ie;if(-1!==Rt.indexOf("(")&&-1===Rt.indexOf(")")){let ee=re[Ot+1];ee&&-1===ee.indexOf("(")&&-1!==ee.indexOf(")")&&(Rt+=","+ee,delete re[Ot+1])}ie=le.create(Rt,ne),ie&&ee.push(ie)})),re.on(ie.METRIC_ADDED,o,Ot),re.on(ie.METRIC_UPDATED,o,Ot)},reset:function(){re.off(ie.METRIC_ADDED,o,Ot),re.off(ie.METRIC_UPDATED,o,Ot),ee.forEach((Rt=>Rt.reset())),ee=[]}},Ot}P.__dashjs_factory_name="MetricsHandlersController";var Ne=ie.default.getClassFactory(P);function z(Rt){let Ot,ee,ne,re;Rt=Rt||{};let ie=this.context;function l(){Ot&&Ot.reset(),ee&&ee.reset(),ne&&ne.reset()}return re={initialize:function(re){try{ne=ue(ie).create({mediaElement:Rt.mediaElement}),ne.initialize(re.Range),ee=be(ie).create({debug:Rt.debug,metricsConstants:Rt.metricsConstants,mediaPlayerModel:Rt.mediaPlayerModel}),ee.initialize(re.Reporting,ne),Ot=Ne(ie).create({debug:Rt.debug,eventBus:Rt.eventBus,metricsConstants:Rt.metricsConstants,events:Rt.events}),Ot.initialize(re.metrics,ee)}catch(Rt){throw l(),Rt}},reset:l},re}z.__dashjs_factory_name="MetricsController";var Ce=ie.default.getClassFactory(z);function q(Rt){let Ot,ee=(Rt=Rt||{}).adapter;const ne=Rt.constants;return Ot={getMetrics:function(Rt){let Ot=[];return Rt&&Rt.Metrics&&Rt.Metrics.forEach((re=>{var ie=new class{constructor(){this.metrics="",this.Range=[],this.Reporting=[]}},le=ee.getIsDynamic(Rt);re.hasOwnProperty("metrics")&&(ie.metrics=re.metrics,re.Range&&re.Range.forEach((Ot=>{var re=new class{constructor(){this.starttime=0,this.duration=1/0,this._useWallClockTime=!1}};re.starttime=function(Rt,Ot,re){let ie,le,oe=0;return Ot?oe=ee.getAvailabilityStartTime(Rt)/1e3:(ie=ee.getRegularPeriods(Rt),ie.length&&(oe=ie[0].start)),le=oe,re&&re.hasOwnProperty(ne.START_TIME)&&(le+=re.starttime),le}(Rt,le,Ot),Ot.hasOwnProperty("duration")?re.duration=Ot.duration:re.duration=ee.getDuration(Rt),re._useWallClockTime=le,ie.Range.push(re)})),re.Reporting&&(re.Reporting.forEach((Rt=>{var Ot=new class{constructor(){this.schemeIdUri="",this.value="",this.dvbReportingUrl="",this.dvbProbability=1e3}};Rt.hasOwnProperty(ne.SCHEME_ID_URI)&&(Ot.schemeIdUri=Rt.schemeIdUri,Rt.hasOwnProperty("value")&&(Ot.value=Rt.value),Rt.hasOwnProperty(ne.DVB_REPORTING_URL)&&(Ot.dvbReportingUrl=Rt[ne.DVB_REPORTING_URL]),Rt.hasOwnProperty(ne.DVB_PROBABILITY)&&(Ot.dvbProbability=Rt[ne.DVB_PROBABILITY]),ie.Reporting.push(Ot))})),Ot.push(ie)))})),Ot}},Ot}q.__dashjs_factory_name="ManifestParsing";var De=ie.default.getSingletonFactory(q);function G(Rt){let Ot;Rt=Rt||{};let ee={},ne=this.context,ie=Rt.eventBus;const le=Rt.events;function o(Ot){if(Ot.error)return;let le=Object.keys(ee);De(ne).getInstance({adapter:Rt.adapter,constants:Rt.constants}).getMetrics(Ot.manifest).forEach((Ot=>{const re=JSON.stringify(Ot);if(ee.hasOwnProperty(re))le.splice(re,1);else try{let ie=Ce(ne).create(Rt);ie.initialize(Ot),ee[re]=ie}catch(Rt){}})),le.forEach((Rt=>{ee[Rt].reset(),delete ee[Rt]})),ie.trigger(re.default.METRICS_INITIALISATION_COMPLETE)}function s(){Object.keys(ee).forEach((Rt=>{ee[Rt].reset()})),ee={}}return Ot={reset:function(){ie.off(le.MANIFEST_UPDATED,o,Ot),ie.off(le.STREAM_TEARDOWN_COMPLETE,s,Ot)}},ie.on(le.MANIFEST_UPDATED,o,Ot),ie.on(le.STREAM_TEARDOWN_COMPLETE,s,Ot),Ot}G.__dashjs_factory_name="MetricsCollectionController";var xe=ie.default.getClassFactory(G);function Y(){let Rt,Ot,ee=this.context;return Rt={createMetricsReporting:function(Rt){return Ot=le(ee).getInstance({eventBus:Rt.eventBus,dashMetrics:Rt.dashMetrics,metricsConstants:Rt.metricsConstants,events:Rt.events}),Ot.initialize(),xe(ee).create(Rt)},getReportingFactory:function(){return pe(ee).getInstance()},getMetricsHandlerFactory:function(){return Re(ee).getInstance()}},Rt}Y.__dashjs_factory_name="MetricsReporting";const Me=ie.default.getClassFactory(Y);Me.events=re.default,ie.default.updateClassFactory(Y.__dashjs_factory_name,Me);var Oe=Me},913:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(7252);class r extends ne.default{constructor(){super(),this.METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",this.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",this.CMCD_DATA_GENERATED="cmcdD
1ataGenerated"}}let re=new r;Ot.default=re},1926:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(5717),re=ee(138),ie=ee(8261),le=ee(656),oe=ee(5212),ue=ee(5560);function u(){let Rt,Ot,ee,re,ce,fe,ge,he,pe,be,ye;const Ee=this.context,_e=(0,ie.default)(Ee).getInstance();function y(){re=[],ce=[],fe=[],ge=[],he=[],ye=[],pe=null,Ot=[],be=new Set}function E(Rt,Ot){let ee=-1;Rt.some(((Rt,ne)=>{if(Rt===Ot)return ee=ne,!0})),ee<0||Rt.splice(ee,1)}function T(Rt){let Ot;for(Ot=0;Ot<ye.length;Ot++)if(ye[Ot].rulename===Rt)return Ot;return-1}function _(Rt,Ot){let ee=!1;return be.forEach((ne=>{ne[Rt]===Ot&&(ee=!0)})),ee}function v(Rt,ee){S(Rt,ee);let re=new ne.default;re.schemeIdUri=Rt,re.value=ee,Ot.push(re)}function S(Rt,ee){(0,le.checkParameterType)(Rt,"string"),(0,le.checkParameterType)(ee,"string"),Ot.forEach((function(ne,re){ne.schemeIdUri===Rt&&ne.value===ee&&Ot.splice(re,1)}))}return Rt={addAbrCustomRule:function(Rt,Ot,ee){if("string"!=typeof Rt||Rt!==oe.default.RULES_TYPES.ABANDON_FRAGMENT_RULES&&Rt!==oe.default.RULES_TYPES.QUALITY_SWITCH_RULES||"string"!=typeof Ot)throw oe.default.BAD_ARGUMENT_ERROR;let ne=T(Ot);-1===ne?ye.push({type:Rt,rulename:Ot,rule:ee}):(ye[ne].type=Rt,ye[ne].rule=ee)},addExternalSubtitle:function(Rt){if(!(Rt&&void 0!==Rt.id&&Rt.url&&Rt.language&&Rt.mimeType&&void 0!==Rt.bandwidth))return;const Ot=new ue.default(Rt);_("url",Ot.url)||_("id",Ot.id)||be.add(Ot)},addRequestInterceptor:function(Rt){re.push(Rt)},addResponseInterceptor:function(Rt){ce.push(Rt)},addUTCTimingSource:v,clearDefaultUTCTimingSources:function(){Ot=[]},getAbrCustomRules:function(){return ye},getCustomCapabilitiesFilters:function(){return he},getCustomInitialTrackSelectionFunction:function(){return pe},getExternalSubtitles:function(){return be},getLicenseRequestFilters:function(){return fe},getLicenseResponseFilters:function(){return ge},getRequestInterceptors:function(){return re},getResponseInterceptors:function(){return ce},getUTCTimingSources:function(){return Ot},getXHRWithCredentialsForType:function(Rt){const Ot=ee[Rt];return void 0===Ot?ee.default:Ot},registerCustomCapabilitiesFilter:function(Rt){he.push(Rt)},registerLicenseRequestFilter:function(Rt){fe.push(Rt)},registerLicenseResponseFilter:function(Rt){ge.push(Rt)},removeAbrCustomRule:function(Rt){if(Rt){let Ot=T(Rt);-1!==Ot&&ye.splice(Ot,1)}else ye=[]},removeAllAbrCustomRule:function(){ye=[]},removeExternalSubtitleById:function(Rt){be.forEach((Ot=>{Ot.id===Rt&&be.delete(Ot)}))},removeExternalSubtitleByUrl:function(Rt){be.forEach((Ot=>{Ot.url===Rt&&be.delete(Ot)}))},removeRequestInterceptor:function(Rt){E(re,Rt)},removeResponseInterceptor:function(Rt){E(ce,Rt)},removeUTCTimingSource:S,reset:function(){y()},resetCustomInitialTrackSelectionFunction:function(){pe=null},resetPlaybackSessionSpecificSettings:function(){be=new Set},restoreDefaultUTCTimingSources:function(){let Rt=_e.get().streaming.utcSynchronization.defaultTimingSource;v(Rt.scheme,Rt.value)},setConfig:function(){},setCustomInitialTrackSelectionFunction:function(Rt){pe=Rt},setXHRWithCredentialsForType:function t(Rt,Ot){Rt?ee[Rt]=!!Ot:Object.keys(ee).forEach((Rt=>{t(Rt,Ot)}))},unregisterCustomCapabilitiesFilter:function(Rt){E(he,Rt)},unregisterLicenseRequestFilter:function(Rt){E(fe,Rt)},unregisterLicenseResponseFilter:function(Rt){E(ge,Rt)}},ee={default:!1},y(),Rt}u.__dashjs_factory_name="CustomParametersModel",Ot.default=re.default.getSingletonFactory(u)},3888:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{default:function(){return Cn}});var ne=ee(8854),re=ee(2861);const ie={prefixes:["clearkey","dashif","ck"]};class l{static findMp4ProtectionElement(Rt){let Ot=null;for(let ee=0;ee<Rt.length;++ee){let ie=Rt[ee];ie.schemeIdUri&&ie.schemeIdUri.toLowerCase()===ne.default.MP4_PROTECTION_SCHEME&&ie.value&&(ie.value.toLowerCase()===re.default.ENCRYPTION_SCHEME_CENC||ie.value.toLowerCase()===re.default.ENCRYPTION_SCHEME_CBCS)&&(Ot=ie)}return Ot}static getPSSHData(Rt){let Ot=8,ee=new DataView(Rt),ne=ee.getUint8(Ot);return Ot+=20,ne>0&&(Ot+=4+16*ee.getUint32(Ot)),Ot+=4,Rt.slice(Ot)}static getPSSHForKeySystem(Rt,Ot){let ee=l.parsePSSHList(Ot);return Rt&&ee.hasOwnProperty(Rt.uuid.toLowerCase())?ee[Rt.uuid.toLowerCase()]:null}static parseInitDataFromContentProtection(Rt,Ot){return"pssh"in Rt&&Rt.pssh?(Rt.pssh.__text=Rt.pssh.__text.replace(/\r?\n|\r/g,"").replace(/\s+/g,""),Ot.decodeArray(Rt.pssh.__text).buffer):null}static parsePSSHList(Rt){if(null==Rt)return[];let Ot=new DataView(Rt.buffer||Rt),ee={},ne=0;for(;;){let Rt,re,ie,le,oe,ue,ce=ne;if(ne>=Ot.buffer.byteLength)break;if(Rt=Ot.getUint32(ne),re=ne+Rt,ne+=4,1886614376===Ot.getUint32(ne))if(ne+=4,ie=Ot.getUint8(ne),0===ie||1===ie){for(ne++,ne+=3,le="",oe=0;oe<4;oe++)ue=Ot.getUint8(ne+oe).toString(16),le+=1===ue.length?"0"+ue:ue;for(ne+=4,le+="-",oe=0;oe<2;oe++)ue=Ot.getUint8(ne+oe).toString(16),le+=1===ue.length?"0"+ue:ue;for(ne+=2,le+="-",oe=0;oe<2;oe++)ue=Ot.getUint8(ne+oe).toString(16),le+=1===ue.length?"0"+ue:ue;for(ne+=2,le+="-",oe=0;oe<2;oe++)ue=Ot.getUint8(ne+oe).toString(16),le+=1===ue.length?"0"+ue:ue;for(ne+=2,le+="-",oe=0;oe<6;oe++)ue=Ot.getUint8(ne+oe).toString(16),le+=1===ue.length?"0"+ue:ue;ne+=6,le=le.toLowerCase(),ne+=4,ee[le]=Ot.buffer.slice(ce,re),ne=re}else ne=re;else ne=re}return ee}static getLicenseServerUrlFromMediaInfo(Rt,Ot){try{if(!Rt||0===Rt.length)return null;let ee=0,ne=null;for(;ee<Rt.length&&!ne;){const re=Rt[ee];if(re&&re.contentProtection&&re.contentProtection.length>0){const Rt=re.contentProtection.filter((Rt=>Rt.schemeIdUri&&Rt.schemeIdUri===Ot));if(Rt&&Rt.length>0){let Ot=0;for(;Ot<Rt.length&&!ne;){const ee=Rt[Ot];ee.laUrl&&ee.laUrl.__prefix&&ie.prefixes.includes(ee.laUrl.__prefix)&&ee.laUrl.__text&&(ne=ee.laUrl.__text),Ot+=1}}}ee+=1}return ne}catch(Rt){return null}}
1static hexKidToBufferSource(Rt){const Ot=Rt.replace(/-/g,"");return new Uint8Array(Ot.match(/[\da-f]{2}/gi).map((function(Rt){return parseInt(Rt,16)}))).buffer}}var le=l,oe=class{constructor(Rt,Ot){this.contentType=Rt,this.robustness=Ot}},ue=class{constructor(Rt,Ot,ee,ne,ie,le){this.initDataTypes=le&&le.length>0?le:[re.default.INITIALIZATION_DATA_TYPE_CENC],Rt&&Rt.length&&(this.audioCapabilities=Rt),Ot&&Ot.length&&(this.videoCapabilities=Ot),this.distinctiveIdentifier=ee,this.persistentState=ne,this.sessionTypes=ie}},ce=ee(1923),fe=ee(1944),ge=ee(7568),he=ee(7263),pe=ee(5212),be=ee(138);function y(Rt){const Ot=(Rt=Rt||{}).BASE64,ee=Rt.cmcdModel,ne=Rt.constants,ie=Rt.customParametersModel,be=Rt.debug,ye=Rt.eventBus,Ee=Rt.events,_e=Rt.protectionKeyController,Se=Rt.settings;let we,Re,Ne,Ce,De,xe,Me,Oe,Pe,Fe,Ue,je,qe=Rt.protectionModel,Ge=[];function O(){if(!(ye&&ye.hasOwnProperty("on")&&_e&&_e.hasOwnProperty("getSupportedKeySystemMetadataFromContentProtection")))throw new Error("Missing config parameter(s)")}function z(Rt,ee){Ue||Ce?Ue&&L():function(Rt,ee){if(Ce)return;var ne;Ce=!0;const re=function(Rt){const Ot=[];for(let ee=0;ee<Rt.length;ee++){const ne=F(Rt[ee]);Ot.push({ks:Rt[ee].ks,configs:[ne],protData:Rt[ee].protData})}return Ot}(Rt=(ne=Rt).sort(((Rt,Ot)=>(we&&we[Rt.ks.systemString]&&we[Rt.ks.systemString].priority>=0?we[Rt.ks.systemString].priority:ne.length)-(we&&we[Ot.ks.systemString]&&we[Ot.ks.systemString].priority>=0?we[Ot.ks.systemString].priority:ne.length))));let ie;qe.requestKeySystemAccess(re).then((Rt=>(ie=Rt.data,function(Rt){let Ot=Rt&&Rt.selectedSystemString?Rt.selectedSystemString:Rt.keySystem.systemString;return Me.info("DRM: KeySystem Access Granted for system string ("+Ot+")!  Selecting key system..."),qe.selectKeySystem(Rt)}(ie)))).then((Rt=>{!function(Rt,ee){try{Ue=Rt,Ce=!1,ye.trigger(Ee.KEY_SYSTEM_SELECTED,{data:ee});const ne=q(Ue);ne&&ne.serverCertificate&&ne.serverCertificate.length>0&&qe.setServerCertificate(Ot.decodeArray(ne.serverCertificate).buffer),L()}catch(Rt){Me.error(Rt)}}(Rt,ie)})).catch((Rt=>{!function(Rt,Ot){Ue=null,Ce=!1,Ot||ye.trigger(Ee.KEY_SYSTEM_SELECTED,{data:null,error:new fe.default(ce.default.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE,ce.default.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE+"Error selecting key system! -- "+Rt.error)})}(Rt,ee)}))}(Rt,ee)}function L(){let Rt;for(let ee=0;ee<Pe.length;ee++)for(Rt=0;Rt<Pe[ee].length;Rt++)if(Ue===Pe[ee][Rt].ks){Ot=Pe[ee][Rt],_e.isClearKey(Ue)&&function(Rt){if(Rt.protData&&Rt.protData.hasOwnProperty("clearkeys")&&0!==Object.keys(Rt.protData.clearkeys).length){const Ot={kids:Object.keys(Rt.protData.clearkeys)};Rt.initData=(new TextEncoder).encode(JSON.stringify(Ot))}}(Ot),Ot.sessionId?U(Ot):null!==Ot.initData&&j(Ot);break}var Ot;Pe=[]}function F(Rt){const Ot=Rt.protData,ee=[],ie=[],le=Ot&&Ot.initDataTypes&&Ot.initDataTypes.length>0?Ot.initDataTypes:[re.default.INITIALIZATION_DATA_TYPE_CENC],ce=Ot&&Ot.audioRobustness&&Ot.audioRobustness.length>0?Ot.audioRobustness:Fe,fe=Ot&&Ot.videoRobustness&&Ot.videoRobustness.length>0?Ot.videoRobustness:Fe,ge=Rt.sessionType,he=Ot&&Ot.distinctiveIdentifier?Ot.distinctiveIdentifier:"optional",pe=Ot&&Ot.persistentState?Ot.persistentState:"temporary"===ge?"optional":"required";return Oe.forEach((Rt=>{Rt.type===ne.AUDIO?ee.push(new oe(Rt.codec,ce)):Rt.type===ne.VIDEO&&ie.push(new oe(Rt.codec,fe))})),new ue(ee,ie,he,pe,[ge],le)}function U(Rt){O(),qe.loadKeySession(Rt)}function j(Rt){if(Rt&&function(Rt){if(!Rt)return!1;try{const Ot=qe.getSessionTokens();for(let ee=0;ee<Ot.length;ee++)if(Ot[ee].getKeyId()===Rt)return!0;return!1}catch(Rt){return!1}}(Rt.keyId))return;!function(){if(!Se)return;const Rt=Se.get().streaming.protection.keepProtectionMediaKeys,Ot=Se.get().streaming.protection.keepProtectionMediaKeysMaximumOpenSessions;if("number"!=typeof Ot||Ot<=0)return;if(!Rt)return void Me.warn("DRM: keepProtectionMediaKeysMaximumOpenSessions is set to "+Ot+", but keepProtectionMediaKeys is not enabled. Therefore, keepProtectionMediaKeysMaximumOpenSessions will be ignored.");if(!qe||"function"!=typeof qe.getSessionTokens)return;const ee=qe.getSessionTokens()||[];
1if(ee.length<Ot)return;const ne=ee[0];ne&&(Me.info("DRM: Maximum number of open MediaKeySessions reached ("+Ot+"), closing oldest session."),G(ne))}();const Ot=le.getPSSHForKeySystem(Ue,Rt?Rt.initData:null);if(Ot){if(B(Ot))return;try{Rt.initData=Ot,qe.createKeySession(Rt)}catch(Rt){ye.trigger(Ee.KEY_SESSION_CREATED,{data:null,error:new fe.default(ce.default.KEY_SESSION_CREATED_ERROR_CODE,ce.default.KEY_SESSION_CREATED_ERROR_MESSAGE+Rt.message)})}}else Rt&&Rt.initData?qe.createKeySession(Rt):ye.trigger(Ee.KEY_SESSION_CREATED,{data:null,error:new fe.default(ce.default.KEY_SESSION_CREATED_ERROR_CODE,ce.default.KEY_SESSION_CREATED_ERROR_MESSAGE+"Selected key system is "+(Ue?Ue.systemString:null)+".  needkey/encrypted event contains no initData corresponding to that key system!")})}function q(Rt){if(Rt){const Ot=Rt.systemString;if(we)return Ot in we?we[Ot]:null}return null}function B(Rt){if(!Rt)return!1;try{const Ot=qe.getAllInitData();for(let ee=0;ee<Ot.length;ee++)if(_e.initDataEquals(Rt,Ot[ee]))return Me.debug("DRM: Ignoring initData because we have already seen it!"),!0;return!1}catch(Rt){return!1}}function G(Rt){O(),qe.closeKeySession(Rt)}function H(Rt){O(),Rt?(qe.setMediaElement(Rt),ye.on(Ee.NEED_KEY,Z,Re)):null===Rt&&(qe.setMediaElement(Rt),ye.off(Ee.NEED_KEY,Z,Re))}function Y(Rt){Me.debug("DRM: onKeyMessage");const Ot=Rt.data;ye.trigger(Ee.KEY_MESSAGE,{data:Ot});const ee=Ot.messageType?Ot.messageType:re.default.MEDIA_KEY_MESSAGE_TYPES.LICENSE_REQUEST,ne=Ot.message,oe=Ot.sessionToken,ue=q(Ue),pe=_e.getLicenseServerModelInstance(Ue,ue,ee),be={sessionToken:oe,messageType:ee};if(ne&&0!==ne.byteLength){if(!pe)return Me.debug("DRM: License server request not required for this message (type = "+Rt.data.messageType+").  Session ID = "+oe.getSessionId()),void V(be);
1if(_e.isClearKey(Ue)){const Rt=_e.processClearKeyLicenseRequest(Ue,ue,ne);if(Rt&&Rt.keyPairs&&Rt.keyPairs.length>0)return Me.debug("DRM: ClearKey license request handled by application!"),V(be),void qe.updateKeySession(oe,Rt)}!function(Rt,Ot,ee){const ne=Rt.sessionToken,oe=Rt.messageType?Rt.messageType:re.default.MEDIA_KEY_MESSAGE_TYPES.LICENSE_REQUEST,ue={sessionToken:ne,messageType:oe},pe=Ue?Ue.systemString:null;let be=function(Rt,Ot,ee,ne,re){let ie=null;const oe=ne.message;if(Rt&&Rt.serverURL){const ee=Rt.serverURL;"string"==typeof ee&&""!==ee?ie=ee:"object"==typeof ee&&ee.hasOwnProperty(Ot)&&(ie=ee[Ot])}else if(Rt&&Rt.laURL&&""!==Rt.laURL)ie=Rt.laURL;else if(ie=le.getLicenseServerUrlFromMediaInfo(Oe,Ue.schemeIdURI),!ie&&!_e.isClearKey(Ue)){const Rt=le.getPSSHData(ee.initData);ie=Ue.getLicenseServerURLFromInitData(Rt),ie||(ie=ne.laURL)}return ie=re.getServerURLFromMessage(ie,oe,Ot),ie}(ee,oe,ne,Rt,Ot);if(!be)return void V(ue,new fe.default(ce.default.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE));const ye={};let Ee=!1;ee&&$(ye,ee.httpRequestHeaders);const we=Rt.message;$(ye,Ue.getRequestHeadersFromMessage(we)),Object.keys(ye).forEach((Rt=>{"authorization"===Rt.toLowerCase()&&(Ee=!0)})),ee&&"boolean"==typeof ee.withCredentials&&(Ee=ee.withCredentials);const v=function(Rt){if(qe)if(Rt.status>=200&&Rt.status<=299){const ee=he.default.parseHttpHeaders(Rt.getAllResponseHeaders?Rt.getAllResponseHeaders():null);let re=new class{constructor(Rt,Ot,ee){this.url=Rt,this.headers=Ot,this.data=ee}}(Rt.responseURL,ee,Rt.response);X(ie.getLicenseResponseFilters(),re).then((()=>{const ee=Ot.getLicenseMessage(re.data,pe,oe);null!==ee?(V(ue),qe.updateKeySession(ne,ee)):Q(Rt,ue,pe,oe,Ot)}))}else Q(Rt,ue,pe,oe,Ot)},S=function(Rt){V(ue,new fe.default(ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+pe+' update, XHR aborted. status is "'+Rt.statusText+'" ('+Rt.status+"), readyState is "+Rt.readyState))},w=function(Rt){V(ue,new fe.default(ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+pe+' update, XHR error. status is "'+Rt.statusText+'" ('+Rt.status+"), readyState is "+Rt.readyState))},Re=Ue.getLicenseRequestFromMessage(we),Ne=Ot.getHTTPMethod(oe),Ce=Ot.getResponseType(pe,oe),De=ee&&!isNaN(ee.httpTimeout)?ee.httpTimeout:8e3,xe=ne.getSessionId()||null;let Me=new class{constructor(Rt,Ot,ee,ne,re,ie,le,oe){this.url=Rt,this.method=Ot,this.responseType=ee,this.headers=ne,this.withCredentials=re,this.messageType=ie,this.sessionId=le,this.data=oe}}(be,Ne,Ce,ye,Ee,oe,xe,Re);const Pe=isNaN(Se.get().streaming.retryAttempts[ge.HTTPRequest.LICENSE])?3:Se.get().streaming.retryAttempts[ge.HTTPRequest.LICENSE];X(ie.getLicenseRequestFilters(),Me).then((()=>{K(Me,Pe,De,v,S,w)}))}(Ot,pe,ue)}else V(be,new fe.default(ce.default.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE))}function V(Rt,Ot=null){ye.trigger(Ee.LICENSE_REQUEST_COMPLETE,{data:Rt,error:Ot})}function K(Rt,Ot,ne,re,ie,le){const oe=new XMLHttpRequest,ue=ee.getCmcdParametersFromManifest();if(ee.isCmcdEnabled()&&(ue.mode?ue.mode:Se.get().streaming.cmcd.mode)===pe.default.CMCD_MODE_QUERY){const Ot=ee.getQueryParameter({url:Rt.url,type:ge.HTTPRequest.LICENSE});Ot&&(Rt.url=he.default.addAdditionalQueryParameterToUrl(Rt.url,[Ot]))}oe.open(Rt.method,Rt.url,!0),oe.responseType=Rt.responseType,oe.withCredentials=Rt.withCredentials,ne>0&&(oe.timeout=ne);for(const Ot in Rt.headers)oe.setRequestHeader(Ot,Rt.headers[Ot]);if(ee.isCmcdEnabled()&&(ue.mode?ue.mode:Se.get().streaming.cmcd.mode)===pe.default.CMCD_MODE_HEADER){const Ot=ee.getHeaderParameters({url:Rt.url,type:ge.HTTPRequest.LICENSE});if(Ot)for(const Rt in Ot){let ee=Ot[Rt];ee&&oe.setRequestHeader(Rt,ee)}}const u=function(){Ot--;const ee=isNaN(Se.get().streaming.retryIntervals[ge.HTTPRequest.LICENSE])?1e3:Se.get().streaming.retryIntervals[ge.HTTPRequest.LICENSE];De=setTimeout((function(){K(Rt,Ot,ne,re,ie,le)}),ee)};oe.onload=function(){xe=null,this.status>=200&&this.status<=299||Ot<=0?re(this):(Me.warn("License request failed ("+this.status+"). Retrying it... Pending retries: "+Ot),u())},oe.ontimeout=oe.onerror=function(){xe=null,Ot<=0?le(this):(Me.warn("License request network request failed . Retrying it... Pending retries: "+Ot),u())},oe.onabort=function(){ie(this)},ye.trigger(Ee.LICENSE_REQUEST_SENDING,{url:Rt.url,headers:Rt.headers,payload:Rt.data,sessionId:Rt.sessionId}),xe=oe,oe.send(Rt.data)}function W(){xe&&(xe.onloadend=xe.onerror=xe.onprogress=void 0,xe.abort(),xe=null),De&&(clearTimeout(De),De=null)}function $(Rt,Ot){if(Ot)for(const ee in Ot)Rt[ee]=Ot[ee]}function Q(Rt,Ot,ee,ne,re){let ie="NONE",le=null;Rt.response&&(ie=re.getErrorResponse(Rt.response,ee,ne),le={serverResponse:Rt.response||null,responseCode:Rt.status||null,responseText:Rt.statusText||null}),V(Ot,new fe.default(ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+ee+' update, XHR complete. status is "'+Rt.statusText+'" ('+Rt.status+"), readyState is "+Rt.readyState+".  Response is "+ie,le))}function X(Rt,Ot){return Rt?Rt.reduce(((Rt,ee)=>Rt.then((()=>
1ee(Ot)))),Promise.resolve()):Promise.resolve()}function Z(Rt,Ot){if(Se.get().streaming.protection.ignoreEmeEncryptedEvent)return;if(Me.debug("DRM: onNeedKey"),Rt.key.initDataType!==re.default.INITIALIZATION_DATA_TYPE_CENC)return void Me.warn("DRM:  Only 'cenc' initData is supported!  Ignoring initData of type: "+Rt.key.initDataType);if(0===Oe.length&&(Me.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"),(Ot=void 0===Ot?1:Ot+1)<5))return void Ge.push(setTimeout((()=>{Z(Rt,Ot)}),500));let ee=Rt.key.initData;if(ArrayBuffer.isView(ee)&&(ee=ee.buffer),Ue){const Rt=le.getPSSHForKeySystem(Ue,ee);if(Rt&&B(Rt))return}Me.debug("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(ee)));const ne=_e.getSupportedKeySystemMetadataFromSegmentPssh(ee,we,je);0!==ne.length?function(Rt){Pe.push(Rt),z(Rt,!1)}(ne):Me.debug("DRM: Received needkey event with initData, but we don't support any of the key systems!")}function J(Rt,Ot){if(Rt.size<=0)return!1;if(Ot.size>0&&[...Rt].every((Rt=>{const ee=Ot.get(Rt);return void 0!==ee&&""!==ee})))return!0;const ee=qe.getSessionTokens();if(ee&&ee.length>0){const Ot=ee.filter((Ot=>[...Rt].includes(Ot.normalizedKeyId)));if(Ot.some((Rt=>!Rt.hasTriggeredKeyStatusMapUpdate))||0===Ot.length)return!1}return!Se.get().streaming.protection.ignoreKeyStatuses&&Rt&&Rt.size>0&&Ot&&Ot.size>0}return Re={areKeyIdsExpired:function(Rt){try{return!!J(Rt,Ne)&&[...Rt].every((Rt=>Ne.get(Rt)===re.default.MEDIA_KEY_STATUSES.EXPIRED))}catch(Rt){return Me.error(Rt),!1}},areKeyIdsUsable:function(Rt){try{return!J(Rt,Ne)||[...Rt].some((Rt=>{const Ot=Ne.get(Rt);return Ot&&Ot!==re.default.MEDIA_KEY_STATUSES.INTERNAL_ERROR&&Ot!==re.default.MEDIA_KEY_STATUSES.OUTPUT_RESTRICTED}))}catch(Rt){return Me.error(Rt),!0}},clearMediaInfoArray:function(){Oe=[]},closeKeySession:G,createKeySession:j,getKeySystems:function(){return _e?_e.getKeySystems():[]},getSupportedKeySystemMetadataFromContentProtection:function(Rt){return O(),_e.getSupportedKeySystemMetadataFromContentProtection(Rt,we,je)},handleKeySystemFromManifest:function(){if(!Oe||0===Oe.length)return;let Rt=[];Oe.forEach((Ot=>{const ee=_e.getSupportedKeySystemMetadataFromContentProtection(Ot.contentProtection,we,je);ee.length>0&&(0===Rt.length&&(Rt=ee),Pe.push(ee))})),Rt&&Rt.length>0&&z(Rt,!0)},initializeForMedia:function(Rt){if(!Rt)throw new Error("mediaInfo can not be null or undefined");O(),Oe.push(Rt)},loadKeySession:U,removeKeySession:function(Rt){O(),qe.removeKeySession(Rt)},reset:function(){ye.off(Ee.INTERNAL_KEY_MESSAGE,Y,Re),O(),W(),H(null),Ue=null,Ce=!1,Ne=new Map,qe&&(qe.reset(),qe=null),Ge.forEach((Rt=>clearTimeout(Rt))),Ge=[],Oe=[],Pe=[]},setKeySystems:function(Rt){_e&&_e.setKeySystems(Rt)},setMediaElement:H,setProtectionData:function(Rt){we=Rt,_e.setProtectionData(Rt)},setRobustnessLevel:function(Rt){Fe=Rt},setServerCertificate:function(Rt){return O(),qe.setServerCertificate(Rt)},setSessionType:function(Rt){je=Rt},stop:function(){W(),qe&&qe.stop()},updateKeyStatusesMap:function(Rt){try{if(!Rt||!Rt.sessionToken||!Rt.parsedKeyStatuses)return;Rt.sessionToken.hasTriggeredKeyStatusMapUpdate=!0;const Ot=Rt.parsedKeyStatuses,ee=he.default.parseUserAgent(),ne=ee&&ee.browser&&ee.browser.name&&"edge"===ee.browser.name.toLowerCase();Ot.forEach((Rt=>{ne&&Ue.uuid===re.default.PLAYREADY_UUID&&Rt.keyId&&16===Rt.keyId.byteLength&&function(Rt){const Ot=he.default.bufferSourceToDataView(Rt),ee=Ot.getUint32(0,!0),ne=Ot.getUint16(4,!0),re=Ot.getUint16(6,!0);Ot.setUint32(0,ee,!1),Ot.setUint16(4,ne,!1),Ot.setUint16(6,re,!1)}(Rt.keyId);const Ot=he.default.bufferSourceToHex(Rt.keyId).slice(0,32);Ot&&""!==Ot&&Ne.set(Ot,Rt.status)})),ye.trigger(Ee.KEY_STATUSES_MAP_UPDATED,{keyStatusMap:Ne})}catch(Rt){Me.error(Rt)}}},Me=be.getLogger(Re),Pe=[],Oe=[],je="temporary",Fe="",xe=null,De=null,Ne=new Map,ye.on(Ee.INTERNAL_KEY_MESSAGE,Y,Re),Re}y.__dashjs_factory_name="ProtectionController";var ye=be.default.getClassFactory(y),Ee=class{constructor(Rt,Ot){this.keyID=Rt,this.key=Ot}},_e=class{constructor(Rt,Ot){if(Ot&&"persistent"!==Ot&&"temporary"!==Ot)throw new Error("Invalid ClearKey key set type!  Must be one of 'persistent' or 'temporary'");this.keyPairs=Rt,this.type=Ot}toJWK(){let Rt,Ot=this.keyPairs.length,ee={keys:[]};for(Rt=0;Rt<Ot;Rt++){let Ot={kty:"oct",alg:"A128KW",kid:this.keyPairs[Rt].keyID,k:this.keyPairs[Rt].key};ee.keys.push(Ot)}
vendor: 33,369 bytes, line 1
1this.type&&(ee.type=this.type);let ne=JSON.stringify(ee);const re=ne.length;let ie=new ArrayBuffer(re),le=new Uint8Array(ie);for(Rt=0;Rt<re;Rt++)le[Rt]=ne.charCodeAt(Rt);return ie}};const Se=re.default.CLEARKEY_UUID,we=re.default.CLEARKEY_KEYSTEM_STRING,Re="urn:uuid:"+Se;function I(Rt){let Ot;const ee=(Rt=Rt||{}).BASE64;return Ot={uuid:Se,schemeIdURI:Re,systemString:we,getInitData:function(Rt,Ot){try{let ne=le.parseInitDataFromContentProtection(Rt,ee);if(!ne&&Ot){const Rt={kids:[function(Rt){try{let Ot=Rt.replace(/-/g,"");return Ot=btoa(Ot.match(/\w{2}/g).map((Rt=>String.fromCharCode(parseInt(Rt,16)))).join("")),Ot.replace(/=/g,"").replace(/\//g,"_").replace(/\+/g,"-")}catch(Rt){return null}}(Ot.cencDefaultKid)]};ne=(new TextEncoder).encode(JSON.stringify(Rt))}return ne}catch(Rt){return null}},getRequestHeadersFromMessage:function(){return{"Content-Type":"application/json"}},getLicenseRequestFromMessage:function(Rt){return JSON.stringify(JSON.parse(String.fromCharCode.apply(null,new Uint8Array(Rt))))},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(Rt,Ot){let ee=null;if(Rt){const ne=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(Ot))),re=[];for(let Ot=0;Ot<ne.kids.length;Ot++){const ee=ne.kids[Ot],ie=Rt.clearkeys&&Rt.clearkeys.hasOwnProperty(ee)?Rt.clearkeys[ee]:null;if(!ie)throw new Error("DRM: ClearKey keyID ("+ee+") is not known!");re.push(new Ee(ee,ie))}ee=new _e(re)}return ee}},Ot}I.__dashjs_factory_name="KeySystemClearKey";var Ne=be.default.getSingletonFactory(I);const Ce=re.default.W3C_CLEARKEY_UUID,De=re.default.CLEARKEY_KEYSTEM_STRING,xe="urn:uuid:"+Ce;function C(Rt){let Ot;const ee=Rt.BASE64,ne=Rt.debug.getLogger(Ot);return Ot={uuid:Ce,schemeIdURI:xe,systemString:De,getInitData:function(Rt){return le.parseInitDataFromContentProtection(Rt,ee)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(Rt){return new Uint8Array(Rt)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getClearKeysFromProtectionData:function(Rt,Ot){let ee=null;if(Rt){const re=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(Ot))),ie=[];for(let Ot=0;Ot<re.kids.length;Ot++){const ee=re.kids[Ot],ne=Rt.clearkeys&&Rt.clearkeys.hasOwnProperty(ee)?Rt.clearkeys[ee]:null;if(!ne)throw new Error("DRM: ClearKey keyID ("+ee+") is not known!");ie.push(new Ee(ee,ne))}ee=new _e(ie),ne.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 ee}},Ot}C.__dashjs_factory_name="KeySystemW3CClearKey";var Me=be.default.getSingletonFactory(C);const Oe=re.default.WIDEVINE_UUID,Pe=re.default.WIDEVINE_KEYSTEM_STRING,Fe="urn:uuid:"+Oe;function O(Rt){let Ot;const ee=(Rt=Rt||{}).BASE64;return Ot={uuid:Oe,schemeIdURI:Fe,systemString:Pe,getInitData:function(Rt){return le.parseInitDataFromContentProtection(Rt,ee)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(Rt){return new Uint8Array(Rt)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null}},Ot}O.__dashjs_factory_name="KeySystemWidevine";var Ue=be.default.getSingletonFactory(O);const je=re.default.PLAYREADY_UUID,qe=re.default.PLAYREADY_KEYSTEM_STRING,Ge="urn:uuid:"+je;function j(Rt){let Ot,ee="utf-16";const ne=(Rt=Rt||{}).BASE64,re=Rt.settings;function i(){if(!ne||!ne.hasOwnProperty("decodeArray")||!ne.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}return Ot={uuid:je,schemeIdURI:Ge,systemString:qe,getInitData:function(Rt){const Ot=new Uint8Array([112,115,115,104,0,0,0,0]),ee=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);let re,ie,oe,ue,ce,fe=0,ge=null;if(i(),!Rt)return null;if("pssh"in Rt&&Rt.pssh)return le.parseInitDataFromContentProtection(Rt,ne);if("pro"in Rt&&Rt.pro)ge=ne.decodeArray(Rt.pro.__text);else{if(!("prheader"in Rt)||!Rt.prheader)return null;ge=ne.decodeArray(Rt.prheader.__text)}return re=ge.length,ie=4+Ot.length+ee.length+4+re,oe=new ArrayBuffer(ie),ue=new Uint8Array(oe),ce=new DataView(oe),ce.setUint32(fe,ie),fe+=4,ue.set(Ot,fe),fe+=Ot.length,ue.set(ee,fe),fe+=ee.length,ce.setUint32(fe,re),fe+=4,ue.set(ge,fe),fe+=re,ue.buffer},getRequestHeadersFromMessage:function(Rt){let Ot,ne;const ie={},le=new DOMParser;if(re&&re.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===ee&&Rt&&Rt.byteLength%2==1)return ie["Content-Type"]="text/xml; charset=utf-8",ie;const oe="utf-16"===ee?new Uint16Array(Rt):new Uint8Array(Rt);Ot=String.fromCharCode.apply(null,oe),ne=le.parseFromString(Ot,"application/xml");const ue=ne.getElementsByTagName("name"),ce=ne.getElementsByTagName("value");for(let Rt=0;Rt<ue.length;Rt++)ie[ue[Rt].childNodes[0].nodeValue]=ce[Rt].childNodes[0].nodeValue;return ie.hasOwnProperty("Content")&&(ie["Content-Type"]=ie.Content,delete ie.Content),ie.hasOwnProperty("Content-Type")||(ie["Content-Type"]="text/xml; charset=utf-8"),ie},getLicenseRequestFromMessage:function(Rt){let Ot=null;const ie=new DOMParser;if(re&&re.get().streaming.protection.detectPlayreadyMessageFormat&&"utf-16"===ee&&Rt&&Rt.byteLength%2==1)return Rt;const le="utf-16"===ee?new Uint16Array(Rt):new Uint8Array(Rt);i();const oe=String.fromCharCode.apply(null,le),ue=ie.parseFromString(oe,"application/xml");if(!ue.getElementsByTagName("PlayReadyKeyMessage")[0])return Rt;{const Rt=ue.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;Rt&&(Ot=ne.decode(Rt))}return Ot},getLicenseServerURLFromInitData:function(Rt){if(Rt){const Ot=new DataView(Rt),ee=Ot.getUint16(4,!0);let ne=6;const re=new DOMParser;for(let ie=0;ie<ee;ie++){const ee=Ot.getUint16(ne,!0);ne+=2;const ie=Ot.getUint16(ne,!0);if(ne+=2,1!==ee){ne+=ie;continue}const le=Rt.slice(ne,ne+ie),oe=String.fromCharCode.apply(null,new Uint16Array(le)),ue=re.parseFromString(oe,"application/xml");if(ue.getElementsByTagName("LA_URL")[0]){const Rt=ue.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(Rt)return Rt}if(ue.getElementsByTagName("LUI_URL")[0]){const Rt=ue.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(Rt)return Rt}}}return null},getCDMData:function(Rt){let Ot,ee,re,ie;if(i(),!Rt)return null;for(Ot=[],ie=0;ie<Rt.length;++ie)Ot.push(Rt.charCodeAt(ie)),Ot.push(0);for(Ot=String.fromCharCode.apply(null,Ot),Ot=ne.encode(Ot),ee='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">%CUSTOMDATA%</CustomData></LicenseAcquisition></PlayReadyCDMData>'.replace("%CUSTOMDATA%",Ot),re=[],ie=0;ie<ee.length;++ie)re.push(ee.charCodeAt(ie)),re.push(0);return new Uint8Array(re).buffer},setPlayReadyMessageFormat:function(Rt){if("utf-8"!==Rt&&"utf-16"!==Rt)throw new Error('Specified message format is not one of "utf-8" or "utf-16"');ee=Rt}},Ot}j.__dashjs_factory_name="KeySystemPlayReady";var We=be.default.getSingletonFactory(j);function B(Rt){const Ot=(Rt=Rt||{}).BASE64,ee={};let ne;return ee[re.default.WIDEVINE_KEYSTEM_STRING]={responseType:"json",getLicenseMessage:function(Rt){return Ot.decodeArray(Rt.license)},getErrorResponse:function(Rt){return Rt}},ee[re.default.PLAYREADY_KEYSTEM_STRING]={responseType:"arraybuffer",getLicenseMessage:function(Rt){return Rt},getErrorResponse:function(Rt){return String.fromCharCode.apply(null,new Uint8Array(Rt))}},ne={getServerURLFromMessage:function(Rt){return Rt},getHTTPMethod:function(){return"POST"},getResponseType:function(Rt){return ee[Rt].responseType},getLicenseMessage:function(Rt,ne){return function(){if(!Ot||!Ot.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}(),ee[ne].getLicenseMessage(Rt)},getErrorResponse:function(Rt,Ot){return ee[Ot].getErrorResponse(Rt)}},ne}B.__dashjs_factory_name="DRMToday";var ln=be.default.getSingletonFactory(B);function H(){let Rt;const Ot="http://schemas.xmlsoap.org/soap/envelope/";function n(Rt){const Ot=String.fromCharCode.apply(null,new Uint8Array(Rt));return decodeURIComponent(escape(Ot))}function a(Rt){if(window.DOMParser){const ee=n(Rt),ne=(new window.DOMParser).parseFromString(ee,"text/xml"),re=ne?ne.getElementsByTagNameNS(Ot,"Envelope")[0]:null,ie=re?re.getElementsByTagNameNS(Ot,"Body")[0]:null;if(ie&&ie.getElementsByTagNameNS(Ot,"Fault")[0])return null}return Rt}function r(Rt){let ee="",ne="",re="",ie=-1,le=-1;if(window.DOMParser){const oe=n(Rt),ue=(new window.DOMParser).parseFromString(oe,"text/xml"),ce=ue?ue.getElementsByTagNameNS(Ot,"Envelope")[0]:null,fe=ce?ce.getElementsByTagNameNS(Ot,"Body")[0]:null,ge=fe?fe.getElementsByTagNameNS(Ot,"Fault")[0]:null,he=ge?ge.getElementsByTagName("detail")[0]:null,pe=he?he.getElementsByTagName("Exception")[0]:null;let be=null;if(null===ge)return oe;be=ge.getElementsByTagName("faultstring")[0].firstChild,ee=be?be.nodeValue:null,null!==pe&&(be=pe.getElementsByTagName("StatusCode")[0],ne=be?be.firstChild.nodeValue:null,be=pe.getElementsByTagName("Message")[0],re=be?be.firstChild.nodeValue:null,ie=re?re.lastIndexOf("[")+1:-1,le=re?re.indexOf("]"):-1,re=re?re.substring(ie,le):"")}let oe=`code: ${ne}, name: ${ee}`;return re&&(oe+=`, message: ${re}`),oe}return Rt={getServerURLFromMessage:function(Rt){return Rt},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(Rt){return a.call(this,Rt)},getErrorResponse:function(Rt){return r.call(this,Rt)}},Rt}H.__dashjs_factory_name="PlayReady";var on=be.default.getSingletonFactory(H);function V(){let Rt;return Rt={getServerURLFromMessage:function(Rt){return Rt},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(Rt){return Rt},getErrorResponse:function(Rt){return String.fromCharCode.apply(null,new Uint8Array(Rt))}},Rt}V.__dashjs_factory_name="Widevine";var sn=be.default.getSingletonFactory(V);function W(){let Rt;return Rt={getServerURLFromMessage:function(Rt){return Rt},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"json"},getLicenseMessage:function(Rt){if(!Rt.hasOwnProperty("keys"))return null;let Ot=[];for(let ee=0;ee<Rt.keys.length;ee++){let ne=Rt.keys[ee],re=ne.kid.replace(/=/g,""),ie=ne.k.replace(/=/g,"");Ot.push(new Ee(re,ie))}return new _e(Ot)},getErrorResponse:function(Rt){return String.fromCharCode.apply(null,new Uint8Array(Rt))}},Rt}W.__dashjs_factory_name="ClearKey";var un=be.default.getSingletonFactory(W),dn=class{constructor(Rt){this.ks=Rt.ks,this.keyId=Rt.keyId,this.initData=Rt.initData,this.protData=Rt.protData,this.cdmData=Rt.cdmData,this.sessionId=Rt.sessionId,this.sessionType=Rt.sessionType}};function X(){let Rt,Ot,ee,ne,ie,oe,ue,ce,fe=this.context;function c(Rt,Ot){return Ot&&Rt in Ot?Ot[Rt]:null}function f(Rt,Ot){return Rt&&Rt.sessionId?Rt.sessionId:Ot&&Ot.sessionId?Ot.sessionId:null}function g(Rt,Ot){return Rt&&Rt.sessionType?Rt.sessionType:Ot}return Rt={getKeySystemBySystemString:function(Rt){for(let Ot=0;Ot<ne.length;Ot++)if(ne[Ot].systemString===Rt)return ne[Ot];return null},getKeySystems:function(){return ne},getLicenseServerModelInstance:function(Rt,Ot,ee){if(ee===re.default.MEDIA_KEY_MESSAGE_TYPES.LICENSE_RELEASE||ee===re.default.MEDIA_KEY_MESSAGE_TYPES.INDIVIDUALIZATION_REQUEST)return null;let ne=null;return Ot&&Ot.hasOwnProperty("drmtoday")?ne=ln(fe).getInstance({BASE64:ie}):Rt.systemString===re.default.WIDEVINE_KEYSTEM_STRING?ne=sn(fe).getInstance():Rt.systemString===re.default.PLAYREADY_KEYSTEM_STRING?ne=on(fe).getInstance():Rt.systemString===re.default.CLEARKEY_KEYSTEM_STRING&&(ne=un(fe).getInstance()),ne},getSupportedKeySystemMetadataFromContentProtection:function(Rt,Ot,ee){let re,ie,oe,ue,ce=[];if(!Rt||!Rt.length)return ce;const fe=le.findMp4ProtectionElement(Rt);for(oe=0;oe<ne.length;oe++){ie=ne[oe];const le=c(ie.systemString,Ot);for(ue=0;ue<Rt.length;ue++)if(re=Rt[ue],re.schemeIdUri.toLowerCase()===ie.schemeIdURI){let Rt=ie.getInitData(re,fe);const Ot=new dn({ks:ne[oe],keyId:re.keyId,initData:Rt,protData:le,cdmData:ie.getCDMData(le?le.cdmData:null),sessionId:f(le,re),sessionType:g(le,ee)});le?ce.unshift(Ot):ce.push(Ot)}}return ce},getSupportedKeySystemMetadataFromSegmentPssh:function(Rt,Ot,ee){let re,ie,oe=[],ue=le.parsePSSHList(Rt);for(let Rt=0;Rt<ne.length;++Rt){re=ne[Rt],ie=re.systemString;const le=c(ie,Ot);re.uuid in ue&&oe.push({ks:re,initData:ue[re.uuid],protData:le,cdmData:re.getCDMData(le?le.cdmData:null),sessionId:f(le),sessionType:g(le,ee)})}return oe},initDataEquals:function(Rt,Ot){if(Rt.byteLength===Ot.byteLength){let ee=new Uint8Array(Rt),ne=new Uint8Array(Ot);for(let Rt=0;Rt<ee.length;Rt++)if(ee[Rt]!==ne[Rt])return!1;return!0}return!1},initialize:function(){let Rt;ne=[],Rt=We(fe).getInstance({BASE64:ie,settings:oe}),ne.push(Rt),Rt=Ue(fe).getInstance({BASE64:ie}),ne.push(Rt),Rt=Ne(fe).getInstance({BASE64:ie}),ne.push(Rt),ue=Rt,Rt=Me(fe).getInstance({BASE64:ie,debug:Ot}),ne.push(Rt),ce=Rt},isClearKey:function(Rt){return Rt===ue||Rt===ce},processClearKeyLicenseRequest:function(Rt,Ot,ne){try{return Rt.getClearKeysFromProtectionData(Ot,ne)}catch(Rt){return ee.error("Failed to retrieve clearkeys from ProtectionData"),null}},setConfig:function(ne){ne&&(ne.debug&&(Ot=ne.debug,ee=Ot.getLogger(Rt)),ne.BASE64&&(ie=ne.BASE64),ne.settings&&(oe=ne.settings))},setKeySystems:function(Rt){ne=Rt},setProtectionData:function(Rt){for(var Ot,ee,re=0;re<ne.length;re++){var ie=ne[re];ie.hasOwnProperty("init")&&ie.init((Ot=ie.systemString,ee=void 0,ee=null,Rt&&(ee=Ot in Rt?Rt[Ot]:null),ee))}}},Rt}X.__dashjs_factory_name="ProtectionKeyController";var cn=be.default.getSingletonFactory(X),fn=ee(445),gn=class{constructor(Rt,Ot){this.initData=Rt,this.initDataType=Ot}},bn=class{constructor(Rt,Ot,ee,ne){this.sessionToken=Rt,this.message=Ot,this.defaultURL=ee,this.messageType=ne||re.default.MEDIA_KEY_MESSAGE_TYPES.LICENSE_REQUEST}},yn=class{constructor(Rt,Ot){this.keySystem=Rt,this.ksConfiguration=Ot,this.nativeMediaKeySystemAccessObject=null,this.selectedSystemString=null}};const En={};function rt(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.eventBus,ne=Rt.events,ie=Rt.debug;let le,oe,ue,ge,he,pe,be,ye;function p(Rt,Ot,re,ie){if(void 0===navigator.requestMediaKeySystemAccess||"function"!=typeof navigator.requestMediaKeySystemAccess){const Rt="Insecure origins are not allowed";return ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{error:Rt}),void ie({error:Rt})}const le=Rt[Ot].protData&&Rt[Ot].protData.systemStringPriority?Rt[Ot].protData.systemStringPriority:null,oe=Rt[Ot].configs,ue=Rt[Ot].ks;let ce=ue.systemString;(function(Rt,Ot){return new Promise(((ee,ne)=>{b(Rt,Ot,0,ee,ne)}))})(le||(En[ce]?En[ce]:[ce]),oe).then((Rt=>{const Ot=Rt&&Rt.nativeMediaKeySystemAccessObject&&"function"==typeof Rt.nativeMediaKeySystemAccessObject.getConfiguration?Rt.nativeMediaKeySystemAccessObject.getConfiguration():null,ie=new yn(ue,Ot);ie.selectedSystemString=Rt.selectedSystemString,ie.nativeMediaKeySystemAccessObject=Rt.nativeMediaKeySystemAccessObject,ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{data:ie}),re({data:ie})})).catch((le=>{if(Ot+1<Rt.length)p(Rt,Ot+1,re,ie);else{const Rt="Key system access denied! ";ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{error:Rt+le.message}),ie({error:Rt+le.message})}}))}function b(Rt,Ot,ee,ne,re){const ie=Rt[ee];oe.debug(`Requesting key system access for system string ${ie}`),navigator.requestMediaKeySystemAccess(ie,Ot).then((Rt=>{ne({nativeMediaKeySystemAccessObject:Rt,selectedSystemString:ie})})).catch((ie=>{ee+1<Rt.length?b(Rt,Ot,ee+1,ne,re):re(ie)}))}function y(Rt){if(!Rt||!Rt.session)return Promise.resolve;const Ot=Rt.session;return Ot.removeEventListener("keystatuseschange",Rt),Ot.removeEventListener("message",Rt),Ot.close()}function E(Rt){for(let Ot=0;Ot<pe.length;Ot++)if(pe[Ot]===Rt){pe.splice(Ot,1);break}}function T(Rt,Ot){const ie={session:Rt,keyId:Ot.keyId,normalizedKeyId:Ot&&Ot.keyId&&"string"==typeof Ot.keyId?Ot.keyId.replace(/-/g,"").toLowerCase():"",initData:Ot.initData,sessionId:Ot.sessionId,sessionType:Ot.sessionType,hasTriggeredKeyStatusMapUpdate:!1,handleEvent:function(Rt){switch(Rt.type){case"keystatuseschange":this._onKeyStatusesChange(Rt);break;case"message":this._onKeyMessage(Rt)}},_onKeyStatusesChange:function(Rt){ee.trigger(ne.KEY_STATUSES_CHANGED,{data:this});const Ot=[];Rt.target.keyStatuses.forEach((function(){Ot.push(_(arguments))})),ee.trigger(ne.INTERNAL_KEY_STATUSES_CHANGED,{parsedKeyStatuses:Ot,sessionToken:ie})},_onKeyMessage:function(Rt){let Ot=ArrayBuffer.isView(Rt.message)?Rt.message.buffer:Rt.message;ee.trigger(ne.INTERNAL_KEY_MESSAGE,{data:new bn(this,Ot,void 0,Rt.messageType)})},getKeyId:function(){return this.keyId},getSessionId:function(){return Rt.sessionId},getSessionType:function(){return this.sessionType},getExpirationTime:function(){return Rt.expiration},getKeyStatuses:function(){return Rt.keyStatuses},getUsable:function(){let Ot=!1;return Rt.keyStatuses.forEach((function(){_(arguments).status===re.default.MEDIA_KEY_STATUSES.USABLE&&(Ot=!0)})),Ot}};return Rt.addEventListener("keystatuseschange",ie),Rt.addEventListener("message",ie),Rt.closed.then((()=>{E(ie),oe.debug("DRM: Session closed.  SessionID = "+ie.getSessionId()),ee.trigger(ne.KEY_SESSION_CLOSED,{data:ie.getSessionId()})})),pe.push(ie),ie}function _(Rt){let Ot,ee;return Rt&&Rt.length>0&&(Rt[0]&&("string"==typeof Rt[0]?Ot=Rt[0]:ee=Rt[0]),Rt[1]&&("string"==typeof Rt[1]?Ot=Rt[1]:ee=Rt[1])),{status:Ot,keyId:ee}}return le={closeKeySession:function(Rt){y(Rt).catch((function(Ot){E(Rt),ee.trigger(ne.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+Rt.getSessionId()+") "+Ot.name})}))},createKeySession:function(Rt){if(!ue||!he)throw new Error("Can not create sessions until you have selected a key system");const Ot=he.createSession(Rt.sessionType),ie=T(Ot,Rt),le=ue.systemString===re.default.CLEARKEY_KEYSTEM_STRING&&(Rt.initData||Rt.protData&&Rt.protData.clearkeys)?re.default.INITIALIZATION_DATA_TYPE_KEYIDS:re.default.INITIALIZATION_DATA_TYPE_CENC;Ot.generateRequest(le,Rt.initData).then((function(){oe.debug("DRM: Session created.  SessionID = "+ie.getSessionId()),ee.trigger(ne.KEY_SESSION_CREATED,{data:ie})})).catch((function(Rt){E(ie),ee.trigger(ne.KEY_SESSION_CREATED,{data:null,error:new fe.default(ce.default.KEY_SESSION_CREATED_ERROR_CODE,ce.default.KEY_SESSION_CREATED_ERROR_MESSAGE+"Error generating key request -- "+Rt.name)})}))},getAllInitData:function(){const Rt=[];for(let Ot=0;Ot<pe.length;Ot++)pe[Ot].initData&&Rt.push(pe[Ot].initData);return Rt},getSessionTokens:function(){return pe},loadKeySession:function(Rt){if(!ue||!he)throw new Error("Can not load sessions until you have selected a key system");const Ot=Rt.sessionId;for(let Rt=0;Rt<pe.length;Rt++)if(Ot===pe[Rt].sessionId)return void oe.warn("DRM: Ignoring session ID because we have already seen it!");const re=he.createSession(Rt.sessionType),ie=T(re,Rt);ie.hasTriggeredKeyStatusMapUpdate=!0,re.load(Ot).then((function(Rt){Rt?(oe.debug("DRM: Session loaded.  SessionID = "+ie.getSessionId()),ee.trigger(ne.KEY_SESSION_CREATED,{data:ie})):(E(ie),ee.trigger(ne.KEY_SESSION_CREATED,{data:null,error:new fe.default(ce.default.KEY_SESSION_CREATED_ERROR_CODE,ce.default.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session! Invalid Session ID ("+Ot+")")}))})).catch((function(Rt){E(ie),ee.trigger(ne.KEY_SESSION_CREATED,{data:null,error:new fe.default(ce.default.KEY_SESSION_CREATED_ERROR_CODE,ce.default.KEY_SESSION_CREATED_ERROR_MESSAGE+"Could not load session ("+Ot+")! "+Rt.name)})}))},removeKeySession:function(Rt){Rt.session.remove().then((function(){oe.debug("DRM: Session removed.  SessionID = "+Rt.getSessionId()),ee.trigger(ne.KEY_SESSION_REMOVED,{data:Rt.getSessionId()})}),(function(Ot){ee.trigger(ne.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+Rt.getSessionId()+"). "+Ot.name})}))},requestKeySystemAccess:function(Rt){return new Promise(((Ot,ee)=>{p(Rt,0,Ot,ee)}))},reset:function(){const Rt=pe.length;let Ot;if(0!==Rt){const r=function(Rt){E(Rt),0===pe.length&&(ge?(ge.removeEventListener("encrypted",be),ge.setMediaKeys(null).then((function(){ee.trigger(ne.TEARDOWN_COMPLETE)}))):ee.trigger(ne.TEARDOWN_COMPLETE))};for(let ee=0;ee<Rt;ee++)Ot=pe[ee],function(Rt){y(Ot),r(Rt)}(Ot)}else ee.trigger(ne.TEARDOWN_COMPLETE)},selectKeySystem:function(Rt){return new Promise(((Ot,ee)=>{Rt.nativeMediaKeySystemAccessObject.createMediaKeys().then((Ot=>(ue=Rt.keySystem,he=Ot,ge?ge.setMediaKeys(he):Promise.resolve()))).then((()=>{Ot(ue)})).catch((function(){ee({error:"Error selecting keys system ("+Rt.keySystem.systemString+")! Could not create MediaKeys -- TODO"})}))}))},setMediaElement:function(Rt){ge!==Rt&&(ge&&(ge.removeEventListener("encrypted",be),ge.setMediaKeys&&ge.setMediaKeys(null)),ge=Rt,ge&&(ge.addEventListener("encrypted",be),ge.setMediaKeys&&he&&ge.setMediaKeys(he)))},setServerCertificate:function(Rt){return new Promise((Ot=>{he.setServerCertificate(Rt).then((function(){oe.info("DRM: License server certificate successfully updated."),ee.trigger(ne.SERVER_CERTIFICATE_UPDATED),Ot()})).catch((Rt=>{ee.trigger(ne.SERVER_CERTIFICATE_UPDATED,{error:new fe.default(ce.default.SERVER_CERTIFICATE_UPDATED_ERROR_CODE,ce.default.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE+Rt.name)}),Ot()}))}))},stop:function(){let Rt;for(let Ot=0;Ot<pe.length;Ot++)Rt=pe[Ot],Rt.getUsable()||(y(Rt),E(Rt))},updateKeySession:function(Rt,Ot){const re=Rt.session;ye.isClearKey(ue)&&(Ot=Ot.toJWK()),re.update(Ot).then((()=>{ee.trigger(ne.KEY_SESSION_UPDATED)})).catch((function(Ot){ee.trigger(ne.KEY_ERROR,{error:new fe.default(ce.default.MEDIA_KEYERR_CODE,"Error sending update() message! "+Ot.name,Rt)})}))}},oe=ie.getLogger(le),ue=null,ge=null,he=null,pe=[],ye=cn(Ot).getInstance(),be={handleEvent:function(Rt){if("encrypted"===Rt.type&&Rt.initData){let Ot=ArrayBuffer.isView(Rt.initData)?Rt.initData.buffer:Rt.initData;ee.trigger(ne.NEED_KEY,{key:new gn(Ot,Rt.initDataType)})}}},le}En[re.default.PLAYREADY_KEYSTEM_STRING]=[re.default.PLAYREADY_KEYSTEM_STRING,re.default.PLAYREADY_RECOMMENDATION_KEYSTEM_STRING],En[re.default.WIDEVINE_KEYSTEM_STRING]=[re.default.WIDEVINE_KEYSTEM_STRING],En[re.default.CLEARKEY_KEYSTEM_STRING]=[re.default.CLEARKEY_KEYSTEM_STRING],rt.__dashjs_factory_name="DefaultProtectionModel";var Tn=be.default.getClassFactory(rt);function lt(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.eventBus,ne=Rt.events,ie=Rt.debug,le=Rt.api;let oe,ge,he,pe,be,ye,Ee,_e,Se;function E(){try{for(let Rt=0;Rt<Ee.length;Rt++)T(Ee[Rt]);he&&he.removeEventListener(le.needkey,_e),ee.trigger(ne.TEARDOWN_COMPLETE)}catch(Rt){ee.trigger(ne.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+Rt.message})}}function T(Rt){const Ot=Rt.session;Ot.removeEventListener(le.error,Rt),Ot.removeEventListener(le.message,Rt),Ot.removeEventListener(le.ready,Rt),Ot.removeEventListener(le.close,Rt);for(let Ot=0;Ot<Ee.length;Ot++)if(Ee[Ot]===Rt){Ee.splice(Ot,1);break}Ot[le.release]()}function _(){let Rt=null;const e=function(){he.removeEventListener("loadedmetadata",Rt),he[le.setMediaKeys](be),ee.trigger(ne.VIDEO_ELEMENT_SELECTED)};he.readyState>=1?e():(Rt=e.bind(this),he.addEventListener("loadedmetadata",Rt))}return oe={getAllInitData:function(){const Rt=[];for(let Ot=0;Ot<Ee.length;Ot++)Rt.push(Ee[Ot].initData);return Rt},getSessionTokens:function(){return Ee},requestKeySystemAccess:function(Rt){return new Promise(((Ot,re)=>{let ie=!1;for(let re=0;re<Rt.length;re++){const oe=Rt[re].ks.systemString,ce=Rt[re].configs;let fe=null,ge=null;for(let Rt=0;Rt<ce.length;Rt++){const re=ce[Rt].audioCapabilities,he=ce[Rt].videoCapabilities;if(re&&0!==re.length){fe=[];for(let Rt=0;Rt<re.length;Rt++)window[le.MediaKeys].isTypeSupported(oe,re[Rt].contentType)&&fe.push(re[Rt])}if(he&&0!==he.length){ge=[];for(let Rt=0;Rt<he.length;Rt++)window[le.MediaKeys].isTypeSupported(oe,he[Rt].contentType)&&ge.push(he[Rt])}if(!fe&&!ge||fe&&0===fe.length||ge&&0===ge.length)continue;ie=!0;const pe=new ue(fe,ge),be=Se.getKeySystemBySystemString(oe),ye=new yn(be,pe);ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{data:ye}),Ot({data:ye});break}}if(!ie){const Rt="Key system access denied! -- No valid audio/video content configurations detected!";ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{error:Rt}),re({error:Rt})}}))},selectKeySystem:function(Rt){return new Promise(((Ot,ee)=>{try{be=Rt.mediaKeys=new window[le.MediaKeys](Rt.keySystem.systemString),pe=Rt.keySystem,ye=Rt,he&&_(),Ot(pe)}catch(Rt){ee({error:"Error selecting keys system ("+pe.systemString+")! Could not create MediaKeys -- TODO"})}}))},setMediaElement:function(Rt){he!==Rt&&(he&&he.removeEventListener(le.needkey,_e),he=Rt,he&&(he.addEventListener(le.needkey,_e),be&&_()))},createKeySession:function(Rt){if(!pe||!be||!ye)throw new Error("Can not create sessions until you have selected a key system");let Ot=null;if(ye.ksConfiguration.videoCapabilities&&ye.ksConfiguration.videoCapabilities.length>0&&(Ot=ye.ksConfiguration.videoCapabilities[0]),null===Ot&&ye.ksConfiguration.audioCapabilities&&ye.ksConfiguration.audioCapabilities.length>0&&(Ot=ye.ksConfiguration.audioCapabilities[0]),null===Ot)throw new Error("Can not create sessions for unknown content types.");const re=Ot.contentType,ie=be.createSession(re,new Uint8Array(Rt.initData),Rt.cdmData?new Uint8Array(Rt.cdmData):null),oe=function(Rt,Ot){return{session:Rt,keyId:Ot.keyId,normalizedKeyId:Ot&&Ot.keyId&&"string"==typeof Ot.keyId?Ot.keyId.replace(/-/g,"").toLowerCase():"",initData:Ot.initData,hasTriggeredKeyStatusMapUpdate:!1,getKeyId:function(){return this.keyId},getSessionId:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},getKeyStatuses:function(){return{size:0,has:()=>!1,get:()=>{}}},handleEvent:function(Rt){switch(Rt.type){case le.error:let Ot="KeyError";ee.trigger(ne.KEY_ERROR,{error:new fe.default(ce.default.MEDIA_KEYERR_CODE,Ot,this)});break;case le.message:let re=ArrayBuffer.isView(Rt.message)?Rt.message.buffer:Rt.message;ee.trigger(ne.INTERNAL_KEY_MESSAGE,{data:new bn(this,re,Rt.destinationURL)});break;case le.ready:ge.debug("DRM: Key added."),ee.trigger(ne.KEY_ADDED);break;case le.close:ge.debug("DRM: Session closed.  SessionID = "+this.getSessionId()),ee.trigger(ne.KEY_SESSION_CLOSED,{data:this.getSessionId()})}}}}(ie,Rt);ie.addEventListener(le.error,oe),ie.addEventListener(le.message,oe),ie.addEventListener(le.ready,oe),ie.addEventListener(le.close,oe),Ee.push(oe),ge.debug("DRM: Session created.  SessionID = "+oe.getSessionId()),ee.trigger(ne.KEY_SESSION_CREATED,{data:oe})},updateKeySession:function(Rt,Ot){const re=Rt.session;Se.isClearKey(pe)?re.update(new Uint8Array(Ot.toJWK())):re.update(new Uint8Array(Ot)),ee.trigger(ne.KEY_SESSION_UPDATED)},closeKeySession:T,setServerCertificate:function(){return Promise.resolve()},loadKeySession:function(){},removeKeySession:function(){},stop:E,reset:E},ge=ie.getLogger(oe),he=null,pe=null,be=null,ye=null,Ee=[],Se=cn(Ot).getInstance(),_e={handleEvent:function(Rt){if(Rt.type===le.needkey&&Rt.initData){const Ot=ArrayBuffer.isView(Rt.initData)?Rt.initData.buffer:Rt.initData;ee.trigger(ne.NEED_KEY,{key:new gn(Ot,re.default.INITIALIZATION_DATA_TYPE_CENC)})}}},oe}lt.__dashjs_factory_name="ProtectionModel_3Feb2014";var _n=be.default.getClassFactory(lt);function st(Rt){Rt=Rt||{};const Ot=this.context,ee=Rt.eventBus,ne=Rt.events,ie=Rt.debug,le=Rt.api,oe=Rt.errHandler;let ge,he,pe,be,ye,Ee,_e,Se,we;function T(){pe&&S();for(let Rt=0;Rt<_e.length;Rt++)_(_e[Rt]);ee.trigger(ne.TEARDOWN_COMPLETE)}function _(Rt){try{pe[le.cancelKeyRequest](be.systemString,Rt.sessionId)}catch(Ot){ee.trigger(ne.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+Rt.sessionId+") "+Ot.message})}}function v(Rt,Ot){if(Ot&&Rt){const ee=Rt.length;for(let ne=0;ne<ee;ne++)if(Rt[ne].sessionId==Ot)return Rt[ne];return null}return null}function S(){pe.removeEventListener(le.keyerror,we),pe.removeEventListener(le.needkey,we),pe.removeEventListener(le.keymessage,we),pe.removeEventListener(le.keyadded,we)}return ge={getAllInitData:function(){const Rt=[];for(let Ot=0;Ot<Ee.length;Ot++)Rt.push(Ee[Ot].initData);for(let Ot=0;Ot<_e.length;Ot++)Rt.push(_e[Ot].initData);return Rt},getSessionTokens:function(){return _e.concat(Ee)},requestKeySystemAccess:function(Rt){return new Promise(((Ot,re)=>{let ie=pe;ie||(ie=document.createElement("video"));let le=!1;for(let re=0;re<Rt.length;re++){const oe=Rt[re].ks.systemString,ce=Rt[re].configs;let fe=null,ge=null;for(let Rt=0;Rt<ce.length;Rt++){const re=ce[Rt].videoCapabilities;if(re&&0!==re.length){ge=[];for(let Rt=0;Rt<re.length;Rt++)""!==ie.canPlayType(re[Rt].contentType,oe)&&ge.push(re[Rt])}if(!fe&&!ge||fe&&0===fe.length||ge&&0===ge.length)continue;le=!0;const he=new ue(fe,ge),pe=ye.getKeySystemBySystemString(oe),be=new yn(pe,he);ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{data:be}),Ot({data:be});break}}if(!le){const Rt="Key system access denied! -- No valid audio/video content configurations detected!";ee.trigger(ne.KEY_SYSTEM_ACCESS_COMPLETE,{error:Rt}),re({error:Rt})}}))},selectKeySystem:function(Rt){return be=Rt.keySystem,Promise.resolve(be)},setMediaElement:function(Rt){if(pe!==Rt){if(pe){S();for(var Ot=0;Ot<_e.length;Ot++)_(_e[Ot]);_e=[]}pe=Rt,pe&&(pe.addEventListener(le.keyerror,we),pe.addEventListener(le.needkey,we),pe.addEventListener(le.keymessage,we),pe.addEventListener(le.keyadded,we),ee.trigger(ne.VIDEO_ELEMENT_SELECTED))}},createKeySession:function(Rt){if(!be)throw new Error("Can not create sessions until you have selected a key system");if(Se||0===_e.length){const Ot={sessionId:null,keyId:Rt.keyId,normalizedKeyId:Rt&&Rt.keyId&&"string"==typeof Rt.keyId?Rt.keyId.replace(/-/g,"").toLowerCase():"",initData:Rt.initData,hasTriggeredKeyStatusMapUpdate:!1,getKeyId:function(){return this.keyId},getSessionId:function(){return this.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},getKeyStatuses:function(){return{size:0,has:()=>!1,get:()=>{}}}};return Ee.push(Ot),pe[le.generateKeyRequest](be.systemString,new Uint8Array(Rt.initData)),Ot}throw new Error("Multiple sessions not allowed!")},updateKeySession:function(Rt,Ot){const re=Rt.sessionId;if(ye.isClearKey(be))for(let Rt=0;Rt<Ot.keyPairs.length;Rt++)pe[le.addKey](be.systemString,Ot.keyPairs[Rt].key,Ot.keyPairs[Rt].keyID,re);else pe[le.addKey](be.systemString,new Uint8Array(Ot),new Uint8Array(Rt.initData),re);ee.trigger(ne.KEY_SESSION_UPDATED)},closeKeySession:_,setServerCertificate:function(){return Promise.resolve()},loadKeySession:function(){},removeKeySession:function(){},stop:T,reset:T},he=ie.getLogger(ge),pe=null,be=null,Ee=[],_e=[],ye=cn(Ot).getInstance(),we={handleEvent:function(Rt){let Ot=null;switch(Rt.type){case le.needkey:let ie=ArrayBuffer.isView(Rt.initData)?Rt.initData.buffer:Rt.initData;ee.trigger(ne.NEED_KEY,{key:new gn(ie,re.default.INITIALIZATION_DATA_TYPE_CENC)});break;case le.keyerror:if(Ot=v(_e,Rt.sessionId),Ot||(Ot=v(Ee,Rt.sessionId)),Ot){let re=ce.default.MEDIA_KEYERR_CODE,ie="";switch(Rt.errorCode.code){case 1:re=ce.default.MEDIA_KEYERR_UNKNOWN_CODE,ie+="MEDIA_KEYERR_UNKNOWN - "+ce.default.MEDIA_KEYERR_UNKNOWN_MESSAGE;break;case 2:re=ce.default.MEDIA_KEYERR_CLIENT_CODE,ie+="MEDIA_KEYERR_CLIENT - "+ce.default.MEDIA_KEYERR_CLIENT_MESSAGE;break;case 3:re=ce.default.MEDIA_KEYERR_SERVICE_CODE,ie+="MEDIA_KEYERR_SERVICE - "+ce.default.MEDIA_KEYERR_SERVICE_MESSAGE;break;case 4:re=ce.default.MEDIA_KEYERR_OUTPUT_CODE,ie+="MEDIA_KEYERR_OUTPUT - "+ce.default.MEDIA_KEYERR_OUTPUT_MESSAGE;break;case 5:re=ce.default.MEDIA_KEYERR_HARDWARECHANGE_CODE,ie+="MEDIA_KEYERR_HARDWARECHANGE - "+ce.default.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE;break;case 6:re=ce.default.MEDIA_KEYERR_DOMAIN_CODE,ie+="MEDIA_KEYERR_DOMAIN - "+ce.default.MEDIA_KEYERR_DOMAIN_MESSAGE}ie+="  System Code = "+Rt.systemCode,ee.trigger(ne.KEY_ERROR,{error:new fe.default(re,ie,Ot)})}else he.error("No session token found for key error");break;case le.keyadded:Ot=v(_e,Rt.sessionId),Ot||(Ot=v(Ee,Rt.sessionId)),Ot?(he.debug("DRM: Key added."),ee.trigger(ne.KEY_ADDED,{data:Ot})):he.debug("No session token found for key added");break;case le.keymessage:if(Se=null!==Rt.sessionId&&void 0!==Rt.sessionId,Se?(Ot=v(_e,Rt.sessionId),!Ot&&Ee.length>0&&(Ot=Ee.shift(),_e.push(Ot),Ot.sessionId=Rt.sessionId,ee.trigger(ne.KEY_SESSION_CREATED,{data:Ot}))):Ee.length>0&&(Ot=Ee.shift(),_e.push(Ot),0!==Ee.length&&oe.error(new fe.default(ce.default.MEDIA_KEY_MESSAGE_ERROR_CODE,ce.default.MEDIA_KEY_MESSAGE_ERROR_MESSAGE))),Ot){let re=ArrayBuffer.isView(Rt.message)?Rt.message.buffer:Rt.message;Ot.keyMessage=re,ee.trigger(ne.INTERNAL_KEY_MESSAGE,{data:new bn(Ot,re,Rt.defaultURL)})}else he.warn("No session token found for key message")}}},ge}st.__dashjs_factory_name="ProtectionModel_01b";var vn=be.default.getClassFactory(st);const wn=[{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"}],In=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keya
1dded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];function ft(){let Rt;const Ot=this.context;function n(Rt,Ot){for(let ee=0;ee<Ot.length;ee++){const ne=Ot[ee];if("function"==typeof Rt[ne[Object.keys(ne)[0]]])return ne}return null}return Rt={createProtectionSystem:function(ee){let ne=null;const re=cn(Ot).getInstance();re.setConfig({debug:ee.debug,BASE64:ee.BASE64,settings:ee.settings}),re.initialize();let ie=function(ee){const ne=ee.debug,re=ne.getLogger(Rt),ie=ee.eventBus,le=ee.errHandler,oe=ee.videoModel?ee.videoModel.getElement():null;return oe&&void 0===oe.onencrypted||oe&&void 0===oe.mediaKeys?n(oe,In)?(re.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"),_n(Ot).create({debug:ne,eventBus:ie,events:ee.events,api:n(oe,In)})):n(oe,wn)?(re.info("EME detected on this user agent! (ProtectionModel_01b)"),vn(Ot).create({debug:ne,eventBus:ie,errHandler:le,events:ee.events,api:n(oe,wn)})):(re.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null):(re.info("EME detected on this user agent! (DefaultProtectionModel"),Tn(Ot).
1create({debug:ne,eventBus:ie,events:ee.events}))}(ee);return ie&&(ne=ye(Ot).create({BASE64:ee.BASE64,cmcdModel:ee.cmcdModel,constants:ee.constants,customParametersModel:ee.customParametersModel,debug:ee.debug,eventBus:ee.eventBus,events:ee.events,protectionKeyController:re,protectionModel:ie,settings:ee.settings}),ee.capabilities.setEncryptedMediaSupported(!0)),ne}},Rt}ft.__dashjs_factory_name="Protection";const An=be.default.getClassFactory(ft);An.events=fn.default,An.errors=ce.default,be.default.updateClassFactory(ft.__dashjs_factory_name,An);var Cn=An},445:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(7252);class r extends ne.default{constructor(){super(),this.INTERNAL_KEY_MESSAGE="internalKeyMessage",this.INTERNAL_KEY_STATUSES_CHANGED="internalkeyStatusesChanged",this.KEY_ADDED="public_keyAdded",this.KEY_ERROR="public_keyError",this.KEY_MESSAGE="public_keyMessage",this.KEY_SESSION_CLOSED="public_keySessionClosed",this.KEY_SESSION_CREATED="public_keySessionCreated",this.KEY_SESSION_REMOVED="public_keySessionRemoved",this.KEY_STATUSES_CHANGED="public_keyStatusesChanged",this.KEY_STATUSES_MAP_UPDATED="keyStatusesMapUpdated",this.KEY_SYSTEM_ACCESS_COMPLETE="public_keySystemAccessComplete",this.KEY_SYSTEM_SELECTED="public_keySystemSelected",this.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",this.LICENSE_REQUEST_SENDING="public_licenseRequestSending",this.NEED_KEY="needkey",this.PROTECTION_CREATED="public_protectioncreated",this.PROTECTION_DESTROYED="public_protectiondestroyed",this.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",this.TEARDOWN_COMPLETE="protectionTeardownComplete",this.VIDEO_ELEMENT_SELECTED="videoElementSelected",this.KEY_SESSION_UPDATED="public_keySessionUpdated"}}let re=new r;Ot.default=re},1923:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(8748);class r extends ne.default{constructor(){super(),this.MEDIA_KEYERR_CODE=100,this.MEDIA_KEYERR_UNKNOWN_CODE=101,this.MEDIA_KEYERR_CLIENT_CODE=102,this.MEDIA_KEYERR_SERVICE_CODE=103,this.MEDIA_KEYERR_OUTPUT_CODE=104,this.MEDIA_KEYERR_HARDWARECHANGE_CODE=105,this.MEDIA_KEYERR_DOMAIN_CODE=106,this.MEDIA_KEY_MESSAGE_ERROR_CODE=107,this.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE=108,this.SERVER_CERTIFICATE_UPDATED_ERROR_CODE=109,this.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE=110,this.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE=111,this.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE=112,this.KEY_SESSION_CREATED_ERROR_CODE=113,this.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE=114,this.MEDIA_KEYERR_UNKNOWN_MESSAGE="An unspecified error occurred. This value is used for errors that don't match any of the other codes.",this.MEDIA_KEYERR_CLIENT_MESSAGE="The Key System could not be installed or updated.",this.MEDIA_KEYERR_SERVICE_MESSAGE="The message passed into update indicated an error from the license service.",this.MEDIA_KEYERR_OUTPUT_MESSAGE="There is no available output device with the required characteristics for the content protection system.",this.MEDIA_KEYERR_HARDWARECHANGE_MESSAGE="A hardware configuration change caused a content protection error.",this.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.",this.MEDIA_KEY_MESSAGE_ERROR_MESSAGE="Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!",this.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE="DRM: Empty key message from CDM",this.SERVER_CERTIFICATE_UPDATED_ERROR_MESSAGE="Error updating server certificate -- ",this.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE="DRM: KeyStatusChange error! -- License has expired",this.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE="DRM: No license server URL specified!",this.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE="DRM: KeySystem Access Denied! -- ",this.KEY_SESSION_CREATED_ERROR_MESSAGE="DRM: unable to create session! --",this.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE="DRM: licenser error! --"}}let re=new r;Ot.default=re},4246:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(138);const re={DEFAULT:.5,STRONG:1,WEAK:0};function i(Rt,Ot,ee,ne){let ie,le,oe,ue,ce;return le=void 0===Rt?null:Rt,oe=function(Rt){let Ot=re.DEFAULT;return Rt!==re.DEFAULT&&Rt!==re.STRONG&&Rt!==re.WEAK||(Ot=Rt),Ot}(ee),ue=void 0===Ot?null:Ot,ce=void 0===ne?null:ne,ie={representation:le,reason:ue,rule:ce,priority:oe},ie}i.__dashjs_factory_name="SwitchRequest";const ie=ne.default.getClassFactory(i);ie.NO_CHANGE=null,ie.PRIORITY=re,ne.default.updateClassFactory(i.__dashjs_factory_name,ie),Ot.default=ie},559:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{supportsMediaSource:function(){return s}});var ne=ee(138),re=ee(5212),ie=ee(2861),le=ee(7393),oe=ee(649);function s(){let Rt="ManagedMediaSource"in window,Ot="WebKitMediaSource"in window,ee="MediaSource"in window;return Rt||Ot||ee}function u(){let Rt,Ot,ee,ne,ue,ce;const fe=this.context,ge=(0,le.default)(fe).getInstance();function g(Rt,Ot){let ee;Ot===re.default.VIDEO?ee=function(Rt){const Ot={video:{}};return Rt?(Rt.width&&(Ot.video.width=Rt.width),Rt.height&&(Ot.video.height=Rt.height),Rt.framerate&&(Ot.video.framerate=parseFloat(Rt.framerate)),Rt.hdrMetadataType&&(Ot.video.hdrMetadataType=Rt.hdrMetadataType),Rt.colorGamut&&(Ot.video.colorGamut=Rt.colorGamut),Rt.transferFunction&&(Ot.video.transferFunction=Rt.transferFunction),Ot):Ot}(Rt):Ot===re.default.AUDIO&&(ee=function(Rt){const Ot={audio:{}};return Rt.samplerate&&(Ot.audio.samplerate=Rt.samplerate),Rt.channels&&(Ot.audio.channels=Rt.channels),Ot}(Rt)),ee[Ot].contentType=Rt.codec,ee[Ot].bitrate=parseInt(Rt.bitrate),ee.type="media-source";let ne=Rt.codec;return Rt.width&&Rt.height&&(ne+=';width="'+Rt.width+'";height="'+Rt.height+'"'),ee.mediaSourceCodecString=ne,function(Rt,Ot,ee){if(!Ot||!Ot.keySystemsMetadata||0===Ot.keySystemsMetadata.length)return[Rt];const ne=[];return Ot.keySystemsMetadata.forEach((Ot=>{if(!Ot.ks)return void ne.push({...Rt});const le=Ot.protData&&Ot.protData.systemStringPriority?Ot.protData.systemStringPriority:null;let oe=Ot.ks.systemString;
1(le||[oe]).forEach((le=>{const oe={...Rt};oe.keySystemConfiguration={},le&&(oe.keySystemConfiguration.keySystem=le);let ue="";Ot.ks.systemString===ie.default.WIDEVINE_KEYSTEM_STRING&&(ue=ie.default.ROBUSTNESS_STRINGS.WIDEVINE.SW_SECURE_CRYPTO);const ce=Ot.protData,fe=ce&&ce.audioRobustness&&ce.audioRobustness.length>0?ce.audioRobustness:ue,ge=ce&&ce.videoRobustness&&ce.videoRobustness.length>0?ce.videoRobustness:ue;ee===re.default.AUDIO?oe.keySystemConfiguration[ee]={robustness:fe}:ee===re.default.VIDEO&&(oe.keySystemConfiguration[ee]={robustness:ge}),ne.push(oe)}))})),ne}(ee,Rt,Ot)}function m(Rt){return Ot.get().streaming.enhancement.codecs.some((Ot=>Rt.includes(Ot)))}function h(Rt){if(ne&&0!==ne.length&&Rt)return ne.find((Ot=>{const ee=p(Rt,Ot,re.default.AUDIO),ne=p(Rt,Ot,re.default.VIDEO),ie=p(Rt,Ot,"keySystemConfiguration");return ee&&ne&&ie}))}function p(Rt,Ot,ee){return!Rt[ee]&&!Ot[ee]||!(!Rt[ee]||!Ot[ee])&&ge.areEqual(Rt[ee],Ot[ee])}function b(Rt,Ot){return(Rt=Rt.filter((Rt=>!(Rt.schemeIdUri&&Ot.some((Ot=>Ot.schemeIdUri===Rt.schemeIdUri)))))).push(...Ot),Rt}return Rt={areKeyIdsExpired:function(Rt){return!!(ee&&Rt&&Rt.normalizedKeyIds&&0!==Rt.normalizedKeyIds.size)&&ee.areKeyIdsExpired(Rt.normalizedKeyIds)},areKeyIdsUsable:function(Rt){return!(ee&&Rt&&Rt.normalizedKeyIds&&0!==Rt.normalizedKeyIds.size)||ee.areKeyIdsUsable(Rt.normalizedKeyIds)},isCodecSupportedBasedOnTestedConfigurations:function(Rt,Ot){if(!Rt||!Rt.codec||!1===Rt.isSupported)return!1;const ee=g(Rt,Ot).map((Rt=>h(Rt))).filter((Rt=>null!=Rt));return!(ee&&ee.length>0)||function(Rt){return Rt.some((Rt=>Rt&&Rt.decodingInfo&&Rt.decodingInfo.supported))}(ee)},isProtectionCompatible:function(Rt,Ot){return!Ot||!(!Rt.isEncrypted&&Ot.isEncrypted)},runCodecSupportCheck:function(Rt,ee){if(ee!==re.default.AUDIO&&ee!==re.default.VIDEO)return Promise.resolve();if(Ot.get().streaming.enhancement.enabled&&m(Rt.codec))return ne=ne.filter((Rt=>!m(Rt.mediaSourceCodecString))),Promise.resolve(!0);const ie=g(Rt,ee);return function(Rt,ee){return Ot.get().streaming.capabilities.useMediaCapabilitiesApi&&navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo&&(Rt.codec&&ee===re.default.AUDIO||ee===re.default.VIDEO&&Rt.codec&&Rt.width&&Rt.height&&Rt.bitrate&&Rt.framerate)}(Rt,ee)?function(Rt){return new Promise((Ot=>{if(!Rt||0===Rt.length)return void Ot();const ee=Rt.map((Rt=>function(Rt){return new Promise((Ot=>{h(Rt)?Ot():navigator.mediaCapabilities.decodingInfo(Rt).then((ee=>{Rt.decodingInfo=ee,ne.push(Rt),Ot()})).catch((ee=>{Rt.decodingInfo={supported:!1},ne.push(Rt),ce.error(ee),Ot()}))}))}(Rt)));Promise.allSettled(ee).then((()=>{Ot()})).catch((Rt=>{ce.error(Rt),Ot()}))}))}(ie):(function(Rt){if(!Rt||!Rt.length)return;const Ot=Rt[0];if(h(Ot))return;let ee={supported:!1};("ManagedMediaSource"in window&&ManagedMediaSource.isTypeSupported(Ot.mediaSourceCodecString)||"MediaSource"in window&&MediaSource.isTypeSupported(Ot.mediaSourceCodecString)||"WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(Ot.mediaSourceCodecString))&&(ee.supported=!0),Ot.decodingInfo=ee,ne.push(Ot)}(ie),Promise.resolve())},setConfig:function(Rt){Rt&&(Rt.settings&&(Ot=Rt.settings),Rt.protectionController&&(ee=Rt.protectionController))},setEncryptedMediaSupported:function(Rt){ue=Rt},setProtectionController:function(Rt){ee=Rt},supportsChangeType:function(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType},supportsEncryptedMedia:function(){return ue},supportsEssentialProperty:function(Rt){let ee=Ot.get().streaming.capabilities.supportedEssentialProperties;Ot.get().streaming.capabilities.useMediaCapabilitiesApi&&Ot.get().streaming.capabilities.filterVideoColorimetryEssentialProperties&&(ee=b(ee,[{schemeIdUri:re.default.COLOUR_PRIMARIES_SCHEME_ID_URI},{schemeIdUri:re.default.MATRIX_COEFFICIENTS_SCHEME_ID_URI},{schemeIdUri:re.default.TRANSFER_CHARACTERISTICS_SCHEME_ID_URI}])),Ot.get().streaming.capabilities.useMediaCapabilitiesApi&&Ot.get().streaming.capabilities.filterHDRMetadataFormatEssentialProperties&&(ee=b(ee,[{schemeIdUri:re.default.HDR_METADATA_FORMAT_SCHEME_ID_URI}]));try{return Rt.inArray(ee)}catch(Rt){return!0}},supportsMediaSource:s},ue=!1,ne=[],ce=(0,oe.default)(fe).getInstance().getLogger(Rt),Rt}u.__dashjs_factory_name="Capabilities",Ot.default=ne.default.getSingletonFactory(u)},7377:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(138),re=ee(656);function i(){return{customTimeRangeArray:[],length:0,add:function(Rt,Ot){let ee;
1for(ee=0;ee<this.customTimeRangeArray.length&&Rt>this.customTimeRangeArray[ee].start;ee++);for(this.customTimeRangeArray.splice(ee,0,{start:Rt,end:Ot}),ee=0;ee<this.customTimeRangeArray.length-1;ee++)this.mergeRanges(ee,ee+1)&&ee--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(Rt,Ot){for(let ee=0;ee<this.customTimeRangeArray.length;ee++)if(Rt<=this.customTimeRangeArray[ee].start&&Ot>=this.customTimeRangeArray[ee].end)this.customTimeRangeArray.splice(ee,1),ee--;else{if(Rt>this.customTimeRangeArray[ee].start&&Ot<this.customTimeRangeArray[ee].end){this.customTimeRangeArray.splice(ee+1,0,{start:Ot,end:this.customTimeRangeArray[ee].end}),this.customTimeRangeArray[ee].end=Rt;break}Rt>this.customTimeRangeArray[ee].start&&Rt<this.customTimeRangeArray[ee].end?this.customTimeRangeArray[ee].end=Rt:Ot>this.customTimeRangeArray[ee].start&&Ot<this.customTimeRangeArray[ee].end&&(this.customTimeRangeArray[ee].start=Ot)}this.length=this.customTimeRangeArray.length},mergeRanges:function(Rt,Ot){let ee=this.customTimeRangeArray[Rt],ne=this.customTimeRangeArray[Ot];return ee.start<=ne.start&&ne.start<=ee.end&&ee.end<=ne.end?(ee.end=ne.end,this.customTimeRangeArray.splice(Ot,1),!0):ne.start<=ee.start&&ee.start<=ne.end&&ne.end<=ee.end?(ee.start=ne.start,this.customTimeRangeArray.splice(Ot,1),!0):ne.start<=ee.start&&ee.start<=ne.end&&ee.end<=ne.end?(this.customTimeRangeArray.splice(Rt,1),!0):ee.start<=ne.start&&ne.start<=ee.end&&ne.end<=ee.end&&(this.customTimeRangeArray.splice(Ot,1),!0)},start:function(Rt){return(0,re.checkInteger)(Rt),Rt>=this.customTimeRangeArray.length||Rt<0?NaN:this.customTimeRangeArray[Rt].start},end:function(Rt){return(0,re.checkInteger)(Rt),Rt>=this.customTimeRangeArray.length||Rt<0?NaN:this.customTimeRangeArray[Rt].end}}}i.__dashjs_factory_name="CustomTimeRanges",Ot.default=ne.default.getClassFactory(i)},7393:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(138),re=ee(7316);function i(){let Rt;return Rt={areEqual:function(Rt,Ot){return re(Rt,Ot)}},Rt}i.__dashjs_factory_name="ObjectUtils",Ot.default=ne.default.getSingletonFactory(i)},656:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{checkInteger:function(){return i},checkIsVideoOrAudioType:function(){return o},checkParameterType:function(){return r},checkRange:function(){return l}});var ne=ee(5212);function r(Rt,Ot){if(typeof Rt!==Ot)throw ne.default.BAD_ARGUMENT_ERROR}function i(Rt){if(null===Rt||isNaN(Rt)||Rt%1!=0)throw ne.default.BAD_ARGUMENT_ERROR+" : argument is not an integer"}function l(Rt,Ot,ee){if(Rt<Ot||Rt>ee)throw ne.default.BAD_ARGUMENT_ERROR+" : argument out of range"}function o(Rt){if("string"!=typeof Rt||Rt!==ne.default.AUDIO&&Rt!==ne.default.VIDEO)throw ne.default.BAD_ARGUMENT_ERROR}},1944:function(Rt,Ot,ee){ee.r(Ot),Ot.default=class{constructor(Rt,Ot,ee){this.code=Rt||null,this.message=Ot||null,this.data=ee||null}}},5560:function(Rt,Ot,ee){ee.r(Ot);var ne=ee(8854);Ot.default=class{constructor(Rt){this.id=Rt.id,this.url=Rt.url,this.language=Rt.language,this.mimeType=Rt.mimeType,this.bandwidth=Rt.bandwidth,this.periodId=Rt.periodId||null}serializeToMpdParserFormat(){return{tagName:ne.default.ADAPTATION_SET,mimeType:this.mimeType,lang:this.language,Representation:[{tagName:ne.default.REPRESENTATION,id:this.id,bandwidth:this.bandwidth,BaseURL:[{tagName:ne.default.BASE_URL,__text:this.url}],mimeType:this.mimeType}]}}}},7568:function(Rt,Ot,ee){ee.r(Ot),ee.d(Ot,{HTTPRequest:function(){return a},HTTPRequestTrace:function(){return r}});class a{constructor(){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._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null,this._resourceTimingValues=null}}class r{constructor(){this.s=null,this.d=null,this.b=[]}}a.GET="GET",a.HEAD="HEAD",a.MPD_TYPE="MPD",a.XLINK_EXPANSION_TYPE="XLinkExpansion",a.INIT_SEGMENT_TYPE="InitializationSegment",a.INDEX_SEGMENT_TYPE="IndexSegment",a.MEDIA_SEGMENT_TYPE="MediaSegment",a.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",a.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",a.DVB_REPORTING_TYPE="DVBReporting",a.LICENSE="license",a.CONTENT_STEERING_TYPE="ContentSteering",a.OTHER_TYPE="other"}},ie={};function n(Rt){var Ot=ie[Rt];if(void 0!==Ot)return Ot.exports;var ee=ie[Rt]={exports:{}};return re[Rt].call(ee.exports,ee,ee.exports,n),ee.exports}n.amdO={},n.d=function(Rt,Ot){for(var ee in Ot)n.o(Ot,ee)&&!n.o(Rt,ee)&&Object.defineProperty(Rt,ee,{enumerable:!0,get:Ot[ee]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(Rt){if("object"==typeof window)return window}
1}(),n.o=function(Rt,Ot){return Object.prototype.hasOwnProperty.call(Rt,Ot)},n.r=function(Rt){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(Rt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Rt,"__esModule",{value:!0})};var le={};n.r(le),n.d(le,{Constants:function(){return ye.default},Debug:function(){return be.default},ExternalSubtitle:function(){return _e.default},MediaPlayer:function(){return oe.MediaPlayer},MediaPlayerFactory:function(){return pe},MetricsReporting:function(){return ue.default},Protection:function(){return ce.default},default:function(){return Se},supportsMediaSource:function(){return Ee.supportsMediaSource}});var oe=n(5393),ue=n(4469),ce=n(3888),fe=n(8200);let ge,he=function(){const Rt="application/dash+xml";let Ot;function n(ee,ne,re){if(!ee||!/^VIDEO$/i.test(ee.nodeName))return null;if(ee._dashjs_player)return ee._dashjs_player;let ie,le=ee.id||ee.name||"video element";if(!(ne=ne||[].slice.call(ee.querySelectorAll("source")).filter((function(Ot){return Ot.type==Rt}))[0])&&ee.src)(ne=document.createElement("source")).src=ee.src;else if(!ne&&!ee.src)return null;return re=re||{},ie=(0,fe.default)(re).create(),ie.initialize(ee,ne.src,ee.autoplay),Ot||(Ot=ie.getDebug().getLogger()),Ot.debug("Converted "+le+" to dash.js player and added content: "+ne.src),ee._dashjs_player=ie,ie}function a(Rt){return/^VIDEO$/i.test(Rt.nodeName)?Rt:a(Rt.parentNode)}return{create:n,createAll:function(Ot,ee){let ne=[];Ot=Ot||"[data-dashjs-player]";let re=(ee=ee||document).querySelectorAll(Ot);for(let Rt=0;Rt<re.length;Rt++){let Ot=n(re[Rt],null);ne.push(Ot)}let ie=ee.querySelectorAll('source[type="'+Rt+'"]');for(let Rt=0;Rt<ie.length;Rt++){let Ot=n(a(ie[Rt]),null);ne.push(Ot)}return ne}}}();!("undefined"!=typeof window&&window&&window.dashjs&&window.dashjs.skipAutoCreate)&&"undefined"!=typeof window&&window&&window.addEventListener&&("complete"===window.document.readyState?window.dashjs?he.createAll():ge=window.setInterval((function(){window.dashjs&&(window.clearInterval(ge),he.createAll())}),500):window.addEventListener("load",(function t(){window.removeEventListener("load",t),he.createAll()})));var pe=he,be=n(649),ye=n(5212),Ee=n(559),_e=n(5560);dashjs.Protection=ce.default,dashjs.MetricsReporting=ue.default,dashjs.MediaPlayerFactory=pe,dashjs.Debug=be.default,dashjs.supportsMediaSource=Ee.supportsMediaSource,dashjs.Constants=ye.default,dashjs.ExternalSubtitle=_e.default;var Se=dashjs,we=(le=le.default).Constants,Re=le.Debug,Ne=le.ExternalSubtitle,Ce=le.MediaPlayer,De=le.MediaPlayerFactory,xe=le.MetricsReporting,Me=le.Protection,Oe=le.default,Pe=le.supportsMediaSource}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.