/*!
 THEOplayer

 Usage of this software is limited by the THEOplayer License.

 It is prohibited to reverse engineer, decompile, translate,
 disassemble, decipher, decrypt, or otherwise attempt to
 discover the source code of this software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.

 For more information, visit https://www.theoplayer.com or contact
 contact @ theoplayer . com



 THEOplayer is based on patented technology developed by
 THEO Technologies (https://www.theoplayer.com).

 Version: 7.1.0
 Created: 2024-04-11T07:36:00.199Z
 */
!function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,y=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var E=u;function I(n){return Boolean(n&&void 0!==n.length)}function p(){}function R(n){if(!(this instanceof R))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.ja=0,this.ttn=!1,this.olt=void 0,this.ntn=[],b(n,this)}function g(n,t){for(;3===n.ja;)n=n.olt;0!==n.ja?(n.ttn=!0,R.itn((function(){var r=1===n.ja?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.olt)}catch(n){return void S(t.promise,n)}O(t.promise,i)}else(1===n.ja?O:S)(t.promise,n.olt)}))):n.ntn.push(t)}function O(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof R)return n.ja=3,n.olt=t,void T(n);if("function"==typeof r)return void b(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.ja=1,n.olt=t,T(n)}catch(t){S(n,t)}}function S(n,t){n.ja=2,n.olt=t,T(n)}function T(n){2===n.ja&&0===n.ntn.length&&R.itn((function(){n.ttn||R.rtn(n.olt)}));for(var t=0,r=n.ntn.length;t<r;t++)g(n,n.ntn[t]);n.ntn=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,O(t,n))}),(function(n){r||(r=!0,S(t,n))}))}catch(n){if(r)return;r=!0,S(t,n)}}R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,t){var r=new this.constructor(p);return g(this,new k(n,t,r)),r},R.prototype.finally=function(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))},R.all=function(n){return new R((function(t,r){if(!I(n))return r(new a("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(n){r(n)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}(n))+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){u(n,t)}),(function(r){i[n]={status:"rejected",reason:r},0==--e&&t(i)}))}i[n]={status:"fulfilled",value:r},0==--e&&t(i)}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.resolve=function(n){return n&&"object"==typeof n&&n.constructor===R?n:new R((function(t){t(n)}))},R.reject=function(n){return new R((function(t,r){r(n)}))},R.race=function(n){return new R((function(t,r){if(!I(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)R.resolve(n[i]).then(t,r)}))},R.itn="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){E(n,0)},R.rtn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),A=e?e.userAgent:"",N=A.match(/Firefox\/([0-9]+)/i),C=null!=N,D=N?Number(N[1]):0,P=A.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=P,F=P?Number(P[3]):0,U=function(){function n(n){this.HL=0,this.Qf=0,this.Fk=[],this.etn=n}return n.prototype.utn=function(n){var t=this.length();this.stn(t+1);var r=this.Qf+t&this.etn-1;this.Fk[r]=n,this.HL=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.etn<t)this.utn(n);else{var r=this.Qf+t-1,i=this.etn-1;this.Fk[r&i]=n,this.HL=t}},n.prototype.shift=function(){var n=this.Qf,t=this.Fk[n];return this.Fk[n]=void 0,this.Qf=n+1&this.etn-1,this.HL--,t},n.prototype.length=function(){return this.HL},n.prototype.stn=function(n){this.etn<n&&this.otn(this.etn<<1)},n.prototype.otn=function(n){var t=this.etn;this.etn=n;var r=this.Qf+this.HL&t-1;!function(n,t,r,i){for(var e=0;e<i;++e)n[e+r]=n[e+t],n[e+t]=void 0}(this.Fk,0,t,r)},n}();var M="unhandledrejection",W=self.PromiseRejectionEvent,V=self.CustomEvent;function H(n){return new W(M,{reason:n,promise:m.reject(n).catch((function(){})),cancelable:!0})}function B(n){var t=new V(M,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function x(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(M,!1,!0,{reason:n}),t}var G,j,K,q,z,X,$,Y,Z,J=function(n){return J=function(){try{var n=m.resolve(),t="error",r=new W(M,{reason:t,promise:n});return M===r.type&&t===r.reason}catch(n){}return!1}()?H:function(){try{var n="error",t=new V(M,{detail:{reason:n}});return M===t.type&&n===t.detail.reason}catch(n){}return!1}()?B:x,J(n)};function Q(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function nn(n,t,r){return t&&Q(n.prototype,t),r&&Q(n,r),n}function tn(n,t){return tn=h.setPrototypeOf||function(n,t){return n.__proto__=t,n},tn(n,t)}function rn(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&tn(n,t)}function en(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=n[r];return i}function un(n,t){if(n){if("string"==typeof n)return en(n,t);var r=h.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?en(n,t):void 0}}function on(n){return function(n){if(Array.isArray(n))return en(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||un(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}m&&!(C&&D<60||L&&F<15)?j=m:(j=R,$=null!==(G=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=m;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==G?G:R.itn,K=$,q=new U(16),z=!1,(Y={N1:function(n){q.push(n),z||(z=!0,K(X))},EY:X=function(){for(;q.length()>0;)q.shift()();z=!1}}).EY,R.itn=Y.N1,R.rtn=function(n){try{var t=J(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.ME="web",n.TE="android",n.NE="android-tv",n.DE="ios",n.SE="tvos",n.EE="chromecast",n.bE="theoliveweb"}(Z||(Z={}));var fn=e?e.userAgent:"",sn=fn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),cn=fn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),an=fn.match(/Android ([0-9\.]+)/i),hn=fn.match(/Windows NT ([0-9\.]+)/i),ln=fn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),vn=fn.match(/Firefox\/([0-9\.]+)/i),_n=fn.match(/OPR\/(\d+\.\d+)/i),yn=fn.match(/Tizen ([0-9\.]+)/i),dn=fn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),wn=function(){function n(){this.LE=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.CE=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(fn)||/(macintosh|mac(?=_powerpc)\s)/i.test(fn),this.OE=/Windows NT/i.test(fn),this.zE=hn?_(hn[1]):0,this.BE=/Android/i.test(fn),this.UE=an?_(an[1]):0,this.FE=/windows phone (8|8\.1)/i.test(fn),this.GE=/iPhone/i.test(fn),this.WE=/iPad/i.test(fn),this.qE=this.CE&&this.LE&&!this.WE,this.ZE=/iPod/i.test(fn),this.hb=/Mobile Safari/i.test(fn),this.eb=/EOS\d*STB/i.test(fn),this.sb=/APP\d*STB/i.test(fn),this.KE=(this.GE||this.WE||this.qE||this.ZE)&&!this.FE,this.$E=dn?_(dn[2]):0,this.ob=this.FE||this.KE||this.BE||this.hb,this.fb=/CriOS/i.test(fn),this.gb=Boolean(self.chrome&&/google/i.test(e.vendor))||this.fb,this.mb=this.gb&&/Edg\//i.test(e.userAgent),this.yb=cn?v(cn[1],10):0,this._L=Boolean(self.chrome||/Chrome/i.test(fn)||/CriOS/i.test(fn)),this.Ab=sn?v(sn[1],10):0,this.Tb=/SMART-TV.*Tizen/i.test(fn),this.Db=yn?_(yn[1]):0,this.Sb=/webos|web0s/i.test(fn),this.bb=/VIZIO/i.test(fn),this.kb=/Edge\/\d+/i.test(fn),this.xb=/Trident/i.test(fn),this.jb=this.xb&&!self.ActiveXObject&&"ActiveXObject"in self,this.Pb=/Vivaldi/i.test(fn),this.Rb=/Firefox/i.test(fn)&&!/Seamonkey/i.test(fn),this.Qb=vn?_(vn[1]):0,this.Yb=/Safari/i.test(fn)&&!/Chrome/i.test(fn)&&!this.FE&&!this.Tb,this.Vb=ln?_(ln[2]):0,this.Hb=Boolean(_n),this.Xb=_n?_(_n[1]):0,this.Kb=/CrKey/.test(fn),this.$b=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(fn),this.eL="web"===Z.NE,this.nL="web"===Z.TE,this.hL=this.nL||this.eL,this.aL="web"===Z.DE,this.cL="web"===Z.SE,this.dL="web"===Z.EE}return nn(n,[{key:"Je",get:function(){return this.LE}},{key:"kE",get:function(){return this.CE}},{key:"xE",get:function(){return this.OE}},{key:"jE",get:function(){return this.zE}},{key:"PE",get:function(){return this.BE}},{key:"RE",get:function(){return this.UE}},{key:"QE",get:function(){return this.FE}},{key:"YE",get:function(){return this.GE}},{key:"VE",get:function(){return this.WE}},{key:"HE",get:function(){return this.qE}},{key:"XE",get:function(){return this.ZE}},{key:"Ga",get:function(){return this.KE}},{key:"JE",get:function(){return this.$E}},{key:"ib",get:function(){return this.eb||this.sb}},{key:"td",get:function(){return this.hb}},{key:"Qs",get:function(){return this.ob}},{key:"ub",get:function(){return this.fb}},{key:"_b",get:function(){return this.gb}},{key:"wb",get:function(){return this.Ab}},{key:"vb",get:function(){return this.mb}},{key:"pb",get:function(){return this.yb}},{key:"Mb",get:function(){return this.Tb}},{key:"Nb",get:function(){return this.Db}},{key:"Ib",get:function(){return this.Sb}},{key:"Eb",get:function(){return this.bb}},{key:"Lb",get:function(){return this.kb}},{key:"Cb",get:function(){return this.xb}},{key:"Ob",get:function(){return this.jb}},{key:"zb",get:function(){return this.Pb}},{key:"Bb",get:function(){return this.Rb}},{key:"Ub",get:function(){return this.Qb}},{key:"Fb",get:function(){return this.Yb}},{key:"Gb",get:function(){return this.Vb}},{key:"Wb",get:function(){return this.Hb}},{key:"qb",get:function(){return this.Xb}},{key:"Zb",get:function(){return this.Kb}},{key:"Jb",get:function(){return this.$b}},{key:"tL",get:function(){return!(!this.Ib&&!this.Mb)&&this.wb<=56}},{key:"iL",get:function(){return this.eL}},{key:"sL",get:function(){return this.nL}},{key:"rL",get:function(){return this.hL}},{key:"oL",get:function(){return this.aL}},{key:"uL",get:function(){return this.cL}},{key:"lL",get:function(){return this.dL}},{key:"fL",get:function(){return this._L}}]),n}();wn.gL=new wn;var En=wn.gL,In={}.toString;function pn(n){return null!=n}Array.isArray;function Rn(n){return"object"==typeof n&&null!==n}function gn(n){return function(n){return"function"==typeof n}(n)||Rn(n)}var On=function(){},Sn=!(En.Cb&&!En.Ob),Tn=self.console;function kn(n){if(Rn(n))try{return JSON.stringify(n)}catch(n){}return n}function bn(n){return n.map(kn).join(" ")}function mn(n){var t=Tn&&Tn[n];return t?t.bind&&Sn?t.bind(Tn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Tn[n](bn(r))}:void 0}var An=mn("log")||On,Nn=mn("warn")||An.bind(void 0,"WARNING:"),Cn=mn("error")||An.bind(void 0,"ERROR:"),Dn=function(){var n=Tn&&Tn.assert;return n?n.bind&&Sn?n.bind(Tn):function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Tn.assert(n,bn(r))}:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n||Cn.apply(void 0,["Assertion failed:"].concat(on(r)))}}(),Pn=null;try{Pn=new WebAssembly.Instance(new WebAssembly.Module(new d([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(K){}function Ln(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Fn(n){return!0===(n&&n.Sp)}function Un(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.Sp,h.defineProperty(Ln.prototype,"Sp",{value:!0}),Ln.isLong=Fn;var Mn={},Wn={};function Vn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Wn[n])?i:(r=Bn(n,0,!0),e&&(Wn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Mn[n])?i:(r=Bn(n,n<0?-1:0,!1),e&&(Mn[n]=r),r)}function Hn(n,t){if(y(n))return t?Yn:$n;if(t){if(n<0)return Yn;if(n>=qn)return tt}else{if(n<=-zn)return rt;if(n+1>=zn)return nt}return n<0?Hn(-n,t).neg():Bn(n%Kn|0,n/Kn|0,t)}function Bn(n,t,r){return new Ln(n,t,r)}Ln.fromInt=Vn,Ln.fromNumber=Hn,Ln.fromBits=Bn;var xn=l.pow;function Gn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Yn:$n;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return Gn(n.substring(1),t,r).neg();for(var e=Hn(xn(r,8)),u=$n,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Hn(xn(r,f));u=u.mul(a).add(Hn(s))}else u=(u=u.mul(e)).add(Hn(s))}return u.unsigned=t,u}function jn(n,t){return"number"==typeof n?Hn(n,t):"string"==typeof n?Gn(n,t):Bn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Ln.fromString=Gn,Ln.fromValue=jn;var Kn=4294967296,qn=Kn*Kn,zn=qn/2,Xn=Vn(1<<24),$n=Vn(0);Ln.ZERO=$n;var Yn=Vn(0,!0);Ln.UZERO=Yn;var Zn=Vn(1);Ln.ONE=Zn;var Jn=Vn(1,!0);Ln.UONE=Jn;var Qn=Vn(-1);Ln.NEG_ONE=Qn;var nt=Bn(-1,2147483647,!1);Ln.MAX_VALUE=nt;var tt=Bn(-1,-1,!0);Ln.MAX_UNSIGNED_VALUE=tt;var rt=Bn(0,-2147483648,!1);Ln.MIN_VALUE=rt;var it=Ln.prototype;it.toInt=function(){return this.unsigned?this.low>>>0:this.low},it.toNumber=function(){return this.unsigned?(this.high>>>0)*Kn+(this.low>>>0):this.high*Kn+(this.low>>>0)},it.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(rt)){var t=Hn(n),r=this.div(t),i=r.mul(t).sub(this);return r.toString(n)+i.toInt().toString(n)}return"-"+this.neg().toString(n)}for(var e=Hn(xn(n,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(n);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},it.getHighBits=function(){return this.high},it.getHighBitsUnsigned=function(){return this.high>>>0},it.getLowBits=function(){return this.low},it.getLowBitsUnsigned=function(){return this.low>>>0},it.getNumBitsAbs=function(){if(this.isNegative())return this.eq(rt)?64:this.neg().getNumBitsAbs();for(var n=0!=this.high?this.high:this.low,t=31;t>0&&0==(n&1<<t);t--);return 0!=this.high?t+33:t+1},it.isZero=function(){return 0===this.high&&0===this.low},it.eqz=it.isZero,it.isNegative=function(){return!this.unsigned&&this.high<0},it.isPositive=function(){return this.unsigned||this.high>=0},it.isOdd=function(){return 1==(1&this.low)},it.isEven=function(){return 0==(1&this.low)},it.equals=function(n){return Fn(n)||(n=jn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},it.eq=it.equals,it.notEquals=function(n){return!this.eq(n)},it.neq=it.notEquals,it.ne=it.notEquals,it.lessThan=function(n){return this.comp(n)<0},it.lt=it.lessThan,it.lessThanOrEqual=function(n){return this.comp(n)<=0},it.lte=it.lessThanOrEqual,it.le=it.lessThanOrEqual,it.greaterThan=function(n){return this.comp(n)>0},it.gt=it.greaterThan,it.greaterThanOrEqual=function(n){return this.comp(n)>=0},it.gte=it.greaterThanOrEqual,it.ge=it.greaterThanOrEqual,it.compare=function(n){if(Fn(n)||(n=jn(n)),this.eq(n))return 0;var t=this.isNegative(),r=n.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?n.high>>>0>this.high>>>0||n.high===this.high&&n.low>>>0>this.low>>>0?-1:1:this.sub(n).isNegative()?-1:1},it.comp=it.compare,it.negate=function(){return!this.unsigned&&this.eq(rt)?rt:this.not().add(Zn)},it.neg=it.negate,it.add=function(n){Fn(n)||(n=jn(n));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&n.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=t+u,Bn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},it.subtract=function(n){return Fn(n)||(n=jn(n)),this.add(n.neg())},it.sub=it.subtract,it.multiply=function(n){if(this.isZero())return this;if(Fn(n)||(n=jn(n)),Pn)return Bn(Pn.mul(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Yn:$n;if(this.eq(rt))return n.isOdd()?rt:$n;if(n.eq(rt))return this.isOdd()?rt:$n;if(this.isNegative())return n.isNegative()?this.neg().mul(n.neg()):this.neg().mul(n).neg();if(n.isNegative())return this.mul(n.neg()).neg();if(this.lt(Xn)&&n.lt(Xn))return Hn(this.toNumber()*n.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=65535&n.low,c=0,a=0,h=0,l=0;return h+=(l+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=t*s+r*f+i*o+e*u,Bn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},it.mul=it.multiply,it.divide=function(n){if(Fn(n)||(n=jn(n)),n.isZero())throw c("division by zero");var t,r,i;if(Pn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Bn((this.unsigned?Pn.div_u:Pn.div_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Yn:$n;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Yn;if(n.gt(this.shru(1)))return Jn;i=Yn}else{if(this.eq(rt))return n.eq(Zn)||n.eq(Qn)?rt:n.eq(rt)?Zn:(t=this.shr(1).div(n).shl(1)).eq($n)?n.isNegative()?Zn:Qn:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(rt))return this.unsigned?Yn:$n;if(this.isNegative())return n.isNegative()?this.neg().div(n.neg()):this.neg().div(n).neg();if(n.isNegative())return this.div(n.neg()).neg();i=$n}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:xn(2,e-48),o=Hn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Hn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Zn),i=i.add(o),r=r.sub(f)}return i},it.div=it.divide,it.modulo=function(n){return Fn(n)||(n=jn(n)),Pn?Bn((this.unsigned?Pn.rem_u:Pn.rem_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},it.mod=it.modulo,it.rem=it.modulo,it.not=function(){return Bn(~this.low,~this.high,this.unsigned)},it.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},it.clz=it.countLeadingZeros,it.countTrailingZeros=function(){return this.low?Un(this.low):Un(this.high)+32},it.ctz=it.countTrailingZeros,it.and=function(n){return Fn(n)||(n=jn(n)),Bn(this.low&n.low,this.high&n.high,this.unsigned)},it.or=function(n){return Fn(n)||(n=jn(n)),Bn(this.low|n.low,this.high|n.high,this.unsigned)},it.xor=function(n){return Fn(n)||(n=jn(n)),Bn(this.low^n.low,this.high^n.high,this.unsigned)},it.shiftLeft=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Bn(0,this.low<<n-32,this.unsigned)},it.shl=it.shiftLeft,it.shiftRight=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Bn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},it.shr=it.shiftRight,it.shiftRightUnsigned=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Bn(32===n?this.high:this.high>>>n-32,0,this.unsigned)},it.shru=it.shiftRightUnsigned,it.shr_u=it.shiftRightUnsigned,it.rotateLeft=function(n){var t;return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Bn(this.high,this.low,this.unsigned):n<32?(t=32-n,Bn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Bn(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},it.rotl=it.rotateLeft,it.rotateRight=function(n){var t;return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Bn(this.high,this.low,this.unsigned):n<32?(t=32-n,Bn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Bn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},it.rotr=it.rotateRight,it.toSigned=function(){return this.unsigned?Bn(this.low,this.high,!1):this},it.toUnsigned=function(){return this.unsigned?this:Bn(this.low,this.high,!0)},it.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},it.toBytesLE=function(){var n=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]},it.toBytesBE=function(){var n=this.high,t=this.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]},Ln.fromBytes=function(n,t,r){return r?Ln.fromBytesLE(n,t):Ln.fromBytesBE(n,t)},Ln.fromBytesLE=function(n,t){return new Ln(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Ln.fromBytesBE=function(n,t){return new Ln(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var et=Ln;l.pow(2,-52);function ut(){return Date.now()||(new Date).getTime()}et.fromNumber(9007199254740991);function ot(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function ft(n,t){var r=function(n,t){var r=n.length;if(r<=1)return n;for(var i=new Array(r),e=1;e<r;e*=2){st(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&st(r,null,n.length,n),n}function st(n,t,r,i){var e,u,o,f,s,c=n.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)t(n[f],n[s])<=0?i[a++]=n[f++]:i[a++]=n[s++];else if(f<u)i[a++]=n[f++];else{if(!(s<o))break;i[a++]=n[s++]}}var ct=/[a-zA-Z]/,at=/[0-9]/,ht=/[0-9a-fA-F]/,lt=/^0x/i,vt=/^[0-9]+$/,_t=/^[0-9a-fA-F]+$/,yt=/^[0-7]+$/,dt=h.prototype.toString,wt=Array.isArray||function(n){return"[object Array]"===dt.call(n)},Et="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function It(n){return wt(n)?n:Array.from(n)}function pt(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function Rt(n){return n>=65&&n<=90}function gt(n){return Rt(n)||function(n){return n>=97&&n<=122}(n)}function Ot(n){return n>=48&&n<=57}function St(n){return Ot(n)||gt(n)}function Tt(n){return Ot(n)||n>=65&&n<=70||n>=97&&n<=102}function kt(n){return Rt(n)?n+32:n}function bt(n){return Ot(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function mt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var At=l.min,Nt=String.fromCharCode,Ct=16384;function Dt(n){for(var t=n.length,r=[],i=0;i<t;i+=Ct){var e=At(i+Ct,t);r.push(Nt.apply(null,n.slice(i,e)))}return r.join("")}var Pt=2147483647,Lt=/[^\0-\x7E]/,Ft=/[\x2E\u3002\uFF0E\uFF61]/g,Ut={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=l.floor,Wt=String.fromCharCode;function Vt(n){throw new RangeError(Ut[n])}function Ht(n){for(var t=[],r=0,i=n.length;r<i;){var e=n.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=n.charCodeAt(r++);56320==(64512&u)?t.push(((1023&e)<<10)+(1023&u)+65536):(t.push(e),r--)}else t.push(e)}return t}var Bt,xt,Gt,jt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Kt=function(n,t,r){var i=0;for(n=r?Mt(n/700):n>>1,n+=Mt(n/t);n>455;i+=36)n=Mt(n/35);return Mt(i+36*n/(n+38))},qt=function(n){return function(n,t){var r=n.split("@"),i="";r.length>1&&(i=r[0]+"@",n=r[1]);var e=function(n,t){for(var r=[],i=n.length;i--;)r[i]=t(n[i]);return r}((n=n.replace(Ft,".")).split("."),t).join(".");return i+e}(n,(function(n){return Lt.test(n)?"xn--"+function(n){for(var t=[],r=(n=Ht(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Wt(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Pt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Mt((Pt-e)/y)&&Vt("overflow"),e+=(h-i)*y,i=h;for(var d=0,w=n;d<w.length;d++){var E=w[d];if(E<i&&++e>Pt&&Vt("overflow"),E==i){for(var I=e,p=36;;p+=36){var R=p<=u?1:p>=u+26?26:p-u;if(I<R)break;var g=I-R,O=36-R;t.push(Wt(jt(R+g%O,0))),I=Mt(g/O)}t.push(Wt(jt(I,0))),u=Kt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function zt(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i)}return Dt(t)}function Xt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function $t(n,t){return n>>t&63|128}function Yt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(Xt(n),t.push(n>>12&15|224),t.push($t(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push($t(n,12)),t.push($t(n,6))),t.push(63&n|128)):t.push(n)}function Zt(n){for(var t=[],r=0;r<n.length;r++){Yt(n[r],t)}return t}function Jt(){if(Gt>=xt)throw new c("Invalid byte index");var n=255&Bt[Gt];if(Gt++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function Qt(){var n,t;if(Gt>xt)throw new c("Invalid byte index");if(Gt===xt)return!1;if(n=255&Bt[Gt],Gt++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Jt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Jt()<<6|Jt())>=2048)return Xt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Jt()<<12|Jt()<<6|Jt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function nr(n){return[37,mt(n>>4),mt(15&n)]}function tr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function rr(n){return tr(n)||32===n||34===n||60===n||62===n||96===n}function ir(n){return rr(n)||35===n||63===n||123===n||125===n}function er(n){return ir(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function ur(n){return n<33||n>126||34===n||35===n||60===n||62===n}function or(n){return ur(n)||39===n}function fr(n,t){if(!t(n))return[n];for(var r=Zt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,nr(u))}return i}function sr(n,t){for(var r=[],i=0,e=Ht(n);i<e.length;i++){var u=e[i];r.push.apply(r,fr(u,t))}return zt(r)}function cr(n){return function(n){for(var t=[],r=n.length,i=0;i<r;i++){var e=n[i];if(37===e&&i+2<r&&Tt(n[i+1])&&Tt(n[i+2])){var u=bt(n[i+1])<<4|bt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Zt(n))}function ar(n){return zt(function(n){Bt=n.slice(),xt=Bt.length,Gt=0;for(var t,r=[];!1!==(t=Qt());)r.push(t);return r}(cr(Ht(n))))}function hr(n){var t=n.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<t&&":"===n[u]){if(!(u+1<t&&":"===n[u+1]))throw new a;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new a("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&ht.test(n[u]);)o=o<<4|v(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new a;if(u-=f,i>6)throw new a;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new a;u+=1}if(!at.test(n[u]))throw new a;for(;u<t&&at.test(n[u]);){var h=v(n[u],10);if(null===c)c=h;else{if(0===c)throw new a;if((c=10*c+h)>255)throw new a}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new a;break}if(":"===n[u]){if((u+=1)===t)throw new a}else if(u<t)throw new a;r[i]=o,i+=1}else{if(null!==e)throw new a("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var l=i-e;for(i=7;0!==i&&l>0;)pt(r,i,e+l-1),i-=1,l-=1}else if(8!==i)throw new a;return r}function lr(n){var t=10,r=vt;return lt.test(n)?(n=n.slice(2),t=16,r=_t):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=yt),""===n?0:r.test(n)?v(n,t):void 0}var vr={v0:4},_r=/[\0\t\n\r #%/:?@\[\\\]]/,yr=/[\0\t\n\r #/:?@\[\\\]]/;function dr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{v0:2,G7:hr(n.slice(1,-1))}}if(!t)return function(n){if(yr.test(n))throw new a("Invalid code point in opaque host");var t=sr(n,tr);return""===t?vr:{v0:3,Fk:t}}(n);var r=function(n){var t=function(n){return qt(n.toLowerCase())}(n);return t}(ar(n));if(_r.test(r))throw new a("Invalid code point in host");var i=function(n){var t=n.split(".");if(""===t[t.length-1]&&t.pop(),!(t.length>4)){for(var r=[],i=0;i<t.length;i++){var e=t[i];if(""===e)return;var u=lr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{v0:1,G7:i}:""===r?vr:{v0:0,V7:r}}function wr(n){switch(n.v0){case 0:return n.V7;case 1:return function(n){for(var t=[],r=n,i=1;i<=4;i++)t.push(""+(255&r)),4!==i&&t.push("."),r>>>=8;return t.reverse().join("")}(n.G7);case 2:return"["+function(n){for(var t="",r=function(n){for(var t=0,r=0,i=0,e=0,u=0;u<8;u++)0===n[u]?(0===e&&(i=u),e++):(e>r&&(t=i,r=e),e=0);return e>r&&(t=i,r=e),r>1?t:null}(n),i=!1,e=0;e<8;e++){if(i){if(0===n[e])continue;i=!1}r!==e?(t+=n[e].toString(16),7!==e&&(t+=":")):(t+=0===e?"::":":",i=!0)}return t}(n.G7)+"]";case 3:return n.Fk;case 4:return""}}var Er=/\+/g;function Ir(n){return 42===n||45===n||46===n||95===n||St(n)}function pr(n){for(var t=n.split("&"),r=[],i=0;i<t.length;i++){var e=t[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(Er," "),f=f.replace(Er," ");var s=ar(o),c=ar(f);r.push([s,c])}}return r}function Rr(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=gr(Zt(Ht(i[0])))+"="+gr(Zt(Ht(i[1])))}return t}function gr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):Ir(i)?t.push(i):t.push.apply(t,nr(i))}return Dt(t)}var Or=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Sr(n){var t=""+n,r=Or.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(kr(u))if(br(u)||e===r-1)i.push(Tr);else{var o=n.charCodeAt(e+1);br(o)?(i.push(u,o),e++):i.push(Tr)}else i.push(u)}return n.slice(0,t)+Dt(i)}(t,r.index):t}var Tr=65533,kr=function(n){return 55296==(63488&n)},br=function(n){return 0!=(1024&n)};function mr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Ar(n){n.W7.length=0}function Nr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.W7,pr(t))}function Cr(n){if(n.Ju){var t=Rr(n.W7);""===t&&(t=null),n.Ju.Ju.H7=t}}var Dr=function(){function n(n){if(void 0===n&&(n=void 0),this.Ju=null,null==n)this.W7=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Dr&&!!wt(n.W7)&&(!Et||n[Symbol.iterator]===Pr)}(n))this.W7=n.W7.slice();else if(function(n){return null!=n&&(!!wt(n)||!!Et&&"function"==typeof n[Symbol.iterator])}(n)){this.W7=[];for(var t=0,r=It(n);t<r.length;t++){var i=It(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.W7.push([Sr(i[0]),Sr(i[1])])}}else for(var e in this.W7=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.W7.push([Sr(e),Sr(n[e])]);else(n=Sr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.W7=pr(n)}var t=n.prototype;return t.append=function(n,t){n=Sr(n),t=Sr(t),this.W7.push([n,t]),Cr(this)},t.delete=function(n){n=Sr(n);for(var t=this.W7,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Cr(this)},t.get=function(n){n=Sr(n);for(var t=this.W7,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=Sr(n);for(var t=this.W7,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},t.has=function(n){n=Sr(n);for(var t=this.W7,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=Sr(n),t=Sr(t);for(var r=this.W7,i=!1,e=0;e<r.length;){var u=r[e];u[0]===n?i?r.splice(e,1):(u[1]=t,i=!0,e++):e++}i||r.push([n,t]),Cr(this)},t.sort=function(){ft(this.W7,mr),Cr(this)},t.toString=function(){return Rr(this.W7)},t.entries=function(){return new Mr(this.W7,Lr)},t.keys=function(){return new Mr(this.W7,Fr)},t.values=function(){return new Mr(this.W7,Ur)},t.forEach=function(n){var t=this;this.W7.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Pr=Dr.prototype.entries;Et&&(Dr.prototype[Symbol.iterator]=Pr);var Lr=function(n){return[n[0],n[1]]},Fr=function(n){return n[0]},Ur=function(n){return n[1]},Mr=function(){function n(n,t){this.q7=0,this.W7=n,this.X7=t}return n.prototype.next=function(){return this.q7<this.W7.length?{done:!1,value:this.X7(this.W7[this.q7++])}:{done:!0,value:void 0}},n}(),Wr="null";var Vr=h.create(null);Vr.ftp=21,Vr.file=0,Vr.gopher=70,Vr.http=80,Vr.https=443,Vr.ws=80,Vr.wss=443;var Hr=/^(?:\.|%2e)$/i,Br=/^(?:\.|%2e){2}$/i;function xr(n){return Hr.test(n)}function Gr(n){return Br.test(n)}function jr(n){return void 0!==Vr[n]}function Kr(n){return jr(n.Z7)}function qr(n){return""!==n.K7||""!==n.J7}function zr(n){var t=n.length;if(!(t>=2))return!1;if(!$r(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Xr(n){return 2===n.length&&ct.test(n[0])&&(":"===n[1]||"|"===n[1])}function $r(n){return 2===n.length&&Xr(Dt(n))}function Yr(n){return Xr(n)&&":"===n[1]}function Zr(n){var t=n.ttt;0!==t.length&&("file"===n.Z7&&1===t.length&&Yr(t[0])||t.pop())}function Jr(n){return null===n.itt||vr===n.itt||n.ett||"file"===n.Z7}var Qr=-1,ni=/\t|\n|\r/g,ti=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ri(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new ei,n=n.replace(ti,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Ht(n=n.replace(ni,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:Qr;switch(e){case 0:if(!gt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(kt(_)),e=1;break;case 1:if(St(_)||43===_||45===_||46===_)u.push(kt(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var y=zt(u);if(null!==i){if(jr(r.Z7)&&!jr(y))return;if(!jr(r.Z7)&&jr(y))return;if((qr(r)||null!==r.c8)&&"file"===y)return;if("file"===r.Z7&&(r.itt===vr||null===r.itt))return}if(r.Z7=y,null!==i)return void(Kr(r)&&r.c8===Vr[r.Z7]&&(r.c8=null));u.length=0,"file"===r.Z7?e=13:Kr(r)&&t&&t.Z7===r.Z7?e=3:Kr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.ett=!0,r.ttt.push(""),e=18)}break;case 2:if(!t||t.ett&&35!==_)throw new a("Invalid scheme");t.ett&&35===_?(r.Z7=t.Z7,r.ttt=t.ttt.slice(),r.H7=t.H7,r.stt="",r.ett=!0,e=20):"file"!==t.Z7?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.Z7=t.Z7,Qr===_?(r.K7=t.K7,r.J7=t.J7,r.itt=t.itt,r.c8=t.c8,r.ttt=t.ttt.slice(),r.H7=t.H7):47===_?e=6:63===_?(r.K7=t.K7,r.J7=t.J7,r.itt=t.itt,r.c8=t.c8,r.ttt=t.ttt.slice(),r.H7="",e=19):35===_?(r.K7=t.K7,r.J7=t.J7,r.itt=t.itt,r.c8=t.c8,r.ttt=t.ttt.slice(),r.H7=t.H7,r.stt="",e=20):92===_&&Kr(r)?e=6:(r.K7=t.K7,r.J7=t.J7,r.itt=t.itt,r.c8=t.c8,r.ttt=t.ttt.slice(),r.ttt.pop(),e=17,l-=1);break;case 6:!Kr(r)||47!==_&&92!==_?47===_?e=9:(r.K7=t.K7,r.J7=t.J7,r.itt=t.itt,r.c8=t.c8,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var E=zt(fr(w,er));s?r.J7+=E:r.K7+=E}else s=!0}u.length=0}else if(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.Z7)l-=1,e=15;else if(58!==_||f)if(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_){if(l-=1,Kr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(qr(r)||null!==r.c8))return;var I=dr(zt(u),Kr(r));if(r.itt=I,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var p=dr(zt(u),Kr(r));if(r.itt=p,u.length=0,e=12,11===i)return}break;case 12:if(Ot(_))u.push(_);else{if(!(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var R=v(zt(u),10);if(R>65535)throw new a("Invalid port");r.c8=R===Vr[r.Z7]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.Z7="file",47===_||92===_?e=14:t&&"file"===t.Z7?Qr===_?(r.itt=t.itt,r.ttt=t.ttt.slice(),r.H7=t.H7):63===_?(r.itt=t.itt,r.ttt=t.ttt.slice(),r.H7="",e=19):35===_?(r.itt=t.itt,r.ttt=t.ttt.slice(),r.H7=t.H7,r.stt="",e=20):(zr(c.slice(l))||(r.itt=t.itt,r.ttt=t.ttt.slice(),Zr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.Z7&&!zr(c.slice(l))&&(Yr(t.ttt[0])?r.ttt.push(t.ttt[0]):r.itt=t.itt),e=17,l-=1);break;case 15:if(Qr===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&$r(u))e=17;else if(0===u.length){if(r.itt=vr,null!==i)return;e=16}else{var g=dr(zt(u),Kr(r));if(0===g.v0&&"localhost"===g.V7&&(g=vr),r.itt=g,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:Kr(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.H7="",e=19):null===i&&35===_?(r.stt="",e=20):Qr!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(Qr===_||47===_||Kr(r)&&92===_||null===i&&(63===_||35===_)){var O=zt(u);if(Gr(O)?(Zr(r),47===_||Kr(r)&&92===_||r.ttt.push("")):!xr(O)||47===_||Kr(r)&&92===_?xr(O)||("file"===r.Z7&&0===r.ttt.length&&$r(u)&&(vr!==r.itt&&null!==r.itt&&(r.itt=vr),u[1]=58,O=zt(u)),r.ttt.push(O)):r.ttt.push(""),u.length=0,"file"===r.Z7&&(Qr===_||63===_||35===_))for(;r.ttt.length>1&&""===r.ttt[0];)r.ttt.shift();63===_?(r.H7="",e=19):35===_&&(r.stt="",e=20)}else u.push.apply(u,fr(_,ir));break;case 18:63===_?(r.H7="",e=19):35===_?(r.stt="",e=20):Qr!==_&&(r.ttt[0]+=zt(fr(_,tr)));break;case 19:null===i&&35===_?(r.stt="",e=20):Qr!==_&&(r.H7+=zt(fr(_,Kr(r)?or:ur)));break;case 20:Qr===_||0===_||(r.stt+=zt(fr(_,rr)))}l++}return r}function ii(n,t,r,i){try{ri(n,t,r,i)}catch(n){}}var ei=function(){this.Z7="",this.K7="",this.J7="",this.itt=null,this.c8=null,this.ttt=[],this.H7=null,this.stt=null,this.ett=!1};function ui(n){switch(n.Z7){case"blob":var t;try{t=ri(n.ttt[0],null)}catch(n){return Wr}return ui(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+wr(t)+(null===r?"":":"+r)}(n.Z7,n.itt,n.c8);default:return Wr}}var oi,fi,si=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof si&&"object"==typeof n.Ju}(t))i=t.Ju;else try{i=ri(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{r=ri(String(n),i)}catch(n){throw new a("Invalid URL: "+n.message)}var e=r.H7;this.Ju=r,this.H7=function(n){var t=new Dr;return null!==n&&Nr(t,n),t}(e),this.H7.Ju=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&ot(n.prototype,t),r&&ot(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Z7+":";if(null!==n.itt?(r+="//",qr(n)&&(r+=n.K7,""!==n.J7&&(r+=":"+n.J7),r+="@"),r+=wr(n.itt),null!==n.c8&&(r+=":"+n.c8)):null===n.itt&&"file"===n.Z7&&(r+="//"),n.ett)r+=n.ttt[0];else for(var i=0,e=n.ttt;i<e.length;i++)r+="/"+e[i];return null!==n.H7&&(r+="?"+n.H7),t||null===n.stt||(r+="#"+n.stt),r}(this.Ju)},set:function(n){var t;try{t=ri(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.Ju=t,Ar(this.H7);var r=this.Ju.H7;null!==r&&Nr(this.H7,r)}},{key:"origin",get:function(){return ui(this.Ju)}},{key:"protocol",get:function(){return this.Ju.Z7+":"},set:function(n){ii(n+":",null,this.Ju,0)}},{key:"username",get:function(){return this.Ju.K7},set:function(n){Jr(this.Ju)||(this.Ju.K7=sr(n,er))}},{key:"password",get:function(){return this.Ju.J7},set:function(n){Jr(this.Ju)||(this.Ju.J7=sr(n,er))}},{key:"host",get:function(){var n=this.Ju,t=n.itt;if(null===t)return"";var r=n.c8,i=wr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.Ju.ett||ii(n,null,this.Ju,10)}},{key:"hostname",get:function(){var n=this.Ju.itt;return null===n?"":wr(n)},set:function(n){this.Ju.ett||ii(n,null,this.Ju,11)}},{key:"port",get:function(){var n=this.Ju.c8;return null===n?"":""+n},set:function(n){Jr(this.Ju)||(""===n?this.Ju.c8=null:ii(n,null,this.Ju,12))}},{key:"pathname",get:function(){var n=this.Ju.ttt;return this.Ju.ett?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.Ju.ett||(this.Ju.ttt.length=0,ii(n,null,this.Ju,16))}},{key:"search",get:function(){var n=this.Ju.H7;return null===n||""===n?"":"?"+n},set:function(n){n=Sr(n);var t=this.Ju;if(""===n)return t.H7=null,void Ar(this.H7);"?"===n[0]&&(n=n.slice(1)),t.H7="",ii(n,null,t,19),Nr(this.H7,n)}},{key:"searchParams",get:function(){return this.H7}},{key:"hash",get:function(){var n=this.Ju.stt;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.Ju.stt="",ii(n,null,this.Ju,20)):this.Ju.stt=null}}]),n}();function ci(n){return n.document&&n.document.baseURI||n.location.href||""}function ai(){return void 0!==r?r.createElement("video"):void 0}var hi=!!("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch)||!(!e||!e.msMaxTouchPoints),li=(fi||(fi=ai()),fi),vi=!(!li||!li.webkitShowPlaybackTargetPicker),_i=function(){function n(){this.htt=void 0,this.mtt=!1,this.Je=hi,this.Qs=!1,this.i9=!0}var r=n.prototype;return r.ott=function(){return 0},r.wtt=function(n,t){return!0},r.Att=function(n){return n>=.3333333333333333},nn(n,[{key:"ntt",get:function(){return void 0===this.htt&&(this.htt=this.ott()),this.htt}},{key:"att",get:function(){return!En.Jb}},{key:"utt",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"B4",get:function(){return t.devicePixelRatio||1}},{key:"ctt",get:function(){return vi}},{key:"m4",get:function(){return!1}},{key:"d4",get:function(){return!0}},{key:"_A",get:function(){return En.Fb||En.Ga}},{key:"ltt",get:function(){return!En.Ga}},{key:"Pj",get:function(){return!0}},{key:"wA",get:function(){return!0}},{key:"gA",get:function(){return!1}},{key:"dtt",get:function(){}},{key:"ftt",get:function(){return!0}},{key:"pJ",get:function(){return!1}},{key:"_tt",get:function(){return!1}},{key:"gtt",get:function(){return En.Eb}}]),n}(),yi=function(){var n=ai();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(En.HE)return!1;var n=ai();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var di=function(n){function t(t){var r;return(r=n.call(this)||this).ptt=t,r.ptt&&(r.mtt=r.ptt.mtt,r.Je=r.ptt.Je,r.i9=yi&&r.ptt.i9),r}rn(t,n);var r=t.prototype;return r.ott=function(){return this.ptt?this.ptt.ntt:n.prototype.ott.call(this)},r.wtt=function(t,r){return this.ptt?this.ptt.wtt(t,r):n.prototype.wtt.call(this,t,r)},r.Att=function(t){return this.ptt?this.ptt.Att(t):n.prototype.Att.call(this,t)},nn(t,[{key:"dtt",get:function(){var n;return null==(n=this.ptt)?void 0:n.dtt}},{key:"ftt",get:function(){var n,t;return null==(t=null==(n=this.ptt)?void 0:n.ftt)||t}}]),t}(_i),wi=function(n){function t(t){var r;return(r=n.call(this,t)||this).mtt=!0,r.Qs=!0,r}return rn(t,n),nn(t,[{key:"gA",get:function(){return En.Ga}}]),t}(di);var Ei=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.ott=function(){return function(n){return n&&gn(oi.ManagedMediaSource)?oi.ManagedMediaSource:gn(oi.MediaSource)?oi.MediaSource:void 0}(!0)?n.prototype.ott.call(this):1},nn(t,[{key:"gA",get:function(){return!0}}]),t}(wi),Ii=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),r.prototype.wtt=function(t,r){return n.prototype.wtt.call(this,t,r)},nn(r,[{key:"m4",get:function(){return En.Nb<3}},{key:"d4",get:function(){return En.Nb>=3}},{key:"utt",get:function(){var n=this;return t.tizen&&!this.ytt&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.ytt={width:r,height:i})})),this.ytt}},{key:"pJ",get:function(){return En.Nb<3}},{key:"_tt",get:function(){return!0}}]),r}(di),pi=function(n){function t(){return n.call(this)}return rn(t,n),t}(_i),Ri=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.wtt=function(n,t){if(n&&n.Mtt&&t&&t.Mtt){var r=gi(n.Mtt,"mp4a.40.2")&&gi(t.Mtt,"mp4a.40.5"),i=gi(n.Mtt,"mp4a.40.5")&&gi(t.Mtt,"mp4a.40.2"),e=gi(n.Mtt,"mp4a.40.2")&&gi(t.Mtt,"mp4a.40.34"),u=gi(n.Mtt,"mp4a.40.34")&&gi(t.Mtt,"mp4a.40.2"),o=gi(n.Mtt,"mp4a.40.5")&&gi(t.Mtt,"mp4a.40.34"),f=gi(n.Mtt,"mp4a.40.34")&&gi(t.Mtt,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},nn(t,[{key:"dtt",get:function(){if(En.kE)return 4096}}]),t}(pi);function gi(n,t){return n.indexOf(t)>-1}var Oi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.Att=function(n){return n>=2},t}(pi),Si=function(n){function t(){var t;return(t=n.call(this)||this).mtt=En.Gb>=11,t.i9=En.Fb&&!(En.Ga&&En.Gb<10),t}return rn(t,n),t}(pi),Ti=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),nn(r,[{key:"utt",get:function(){var n=this;return t.webOS&&!this.ytt&&t.webOS.deviceInfo((function(t){n.ytt={width:t.screenWidth,height:t.screenHeight}})),this.ytt}},{key:"Pj",get:function(){return!1}},{key:"_tt",get:function(){return!0}}]),r}(di),ki=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"ftt",get:function(){return!En.xE||(En.vb?92!==En.pb:En.wb>=100)}}]),t}(pi),bi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"gA",get:function(){return!0}}]),t}(di),mi=function(){function n(){this.Stt=new Ai,this.btt=function(){var n=function(){if(En.Bb)return new Ri;if(En.Lb||En.Cb)return new Oi;if(En.Fb)return new Si;if(En._b)return new ki;return new pi}();return En.Ga?new Ei(n):En.Qs?new wi(n):En.Mb?new Ii(n):En.Ib?new Ti(n):En.kE?new bi(n):new di(n)}(),this.Ett=function(){if(self.URL)try{var n=new self.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(n){}return!1}(),self.performance&&self.performance.now?this.f_=function(){return self.performance.now()}:this.f_=ut}var t=n.prototype;return t.Ttt=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];An.apply(void 0,on(t))},t.Pv=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Nn.apply(void 0,on(t))},t.Ntt=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,on(t))},t.Dtt=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Dn.apply(void 0,[n].concat(on(r)))},t.g_=function(n,t){return u(n,t)},t.s$=function(n,t){return f(n,t)},t.__=function(n){o(n)},t.r$=function(n){s(n)},t.zx=function(){return this.Itt.zx()},t.bx=function(){return this.Itt.bx()},t.kx=function(){return this.Itt.kx()},t.Lx=function(){return this.Itt.Lx()},t.Sx=function(){return this.Itt.Sx()},t.xx=function(n,t){return this.Itt.xx(n,t)},t.Ex=function(n){return this.Itt.Ex(n)},t.Dh=function(n,t){var r;return void 0===t&&(t=ci(oi)),r="object"!=typeof t||t instanceof si?t:t.href,new si(n,r)},t.zv=function(n,t){if(void 0===t&&(t=ci(oi)),this.Ett){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Dh(n,t).href},nn(n,[{key:"bj",get:function(){return this.Stt}},{key:"Ys",get:function(){return this.btt}},{key:"vA",get:function(){return{AA:e&&e.userAgent.match(/Android /i)?"Android":"other",mA:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"rV",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Ltt",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ai=function(){function n(){}return nn(n,[{key:"Lj",get:function(){return e.oscpu}},{key:"Ys",get:function(){return e.platform}},{key:"Cj",get:function(){return e.vendor}},{key:"xj",get:function(){return e.vendorSub}}]),n}();var Ni,Ci=function(){function n(){}var t=n.prototype;return t.Sx=function(){return j.resolve(!1)},t.bx=function(){return j.resolve(!1)},t.Lx=function(){return j.resolve(!1)},t.kx=function(){return j.resolve(!1)},t.Ex=function(n){return j.resolve(!1)},t.xx=function(n,t){return j.resolve(!1)},t.zx=function(){return j.resolve(!1)},n}(),Di=function(){function n(){}var t=n.prototype;return t.YQ=function(){},t.OL=function(n){},t.kL=function(n){},t.zz=function(n,t){},n}();function Pi(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||un(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.OS="arraybuffer",n.jS="json",n.zS="stream",n.Ru="text"}(Ni||(Ni={}));var Li,Fi=function(){function n(t){var r=this;this.Kf={},t instanceof n?t.asList().forEach((function(n){var t=Pi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.getOwnPropertyNames(t).forEach((function(n){r.append(n,t[n])}))}var t=n.prototype;return t.append=function(n,t){var r=n,i=t;r=Ui(r),i=Mi(i);var e=r.toLowerCase();if(this.Kf.hasOwnProperty(e)){var u=this.Kf[e],o=u[1];u[1]=o?o+", "+i:i}else this.Kf[e]=[r,i]},t.delete=function(n){var t=Ui(n).toLowerCase();delete this.Kf[t]},t.get=function(n){var t=Ui(n).toLowerCase();return this.Kf.hasOwnProperty(t)?this.Kf[t][1]:null},t.has=function(n){var t=Ui(n).toLowerCase();return this.Kf.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ui(r)).toLowerCase();this.Kf[i]=[r,Mi(t)]},t.forEach=function(n,t){for(var r in this.Kf)this.Kf.hasOwnProperty(r)&&n.call(t,this.Kf[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Kf)if(this.Kf.hasOwnProperty(t)){var r=Pi(this.Kf[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.PS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.RS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.US=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ui(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Mi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Wi(n,t,r,i,e,u,o){try{var f=n[u](o),s=f.value}catch(n){return void r(n)}f.done?t(s):j.resolve(s).then(i,e)}function Vi(n){return function(){var t=this,r=arguments;return new j((function(i,e){var u=n.apply(t,r);function o(n){Wi(u,i,e,o,f,"next",n)}function f(n){Wi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Hi(n,t){var r,i,e,u,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function f(f){return function(s){return function(f){if(r)throw new a("Generator is already executing.");for(;u&&(u=0,f[0]&&(o=0)),o;)try{if(r=1,i&&(e=2&f[0]?i.return:f[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,f[1])).done)return e;switch(i=0,e&&(f=[2&f[0],e.value]),f[0]){case 0:case 1:e=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!e||f[1]>e[0]&&f[1]<e[3])){o.label=f[1];break}if(6===f[0]&&o.label<e[1]){o.label=e[1],e=f;break}if(e&&o.label<e[2]){o.label=e[2],o.ops.push(f);break}e[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(n,o)}catch(n){f=[6,n],i=0}finally{r=e=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,s])}}}!function(n){n[n.Zr=0]="Zr",n[n.Wf=1]="Wf",n[n.Hf=-1]="Hf"}(Li||(Li={}));Array.prototype.find,Array.prototype.findLast;var Bi="function"==typeof Array.prototype.findIndex?function(n,t){return n.findIndex(t)}:function(n,t){for(var r=0;r<n.length;r+=1){if(t(n[r],r,n))return r}return-1},xi="function"==typeof Array.prototype.findLastIndex?function(n,t){return n.findLastIndex(t)}:function(n,t){for(var r=n.length-1;r>=0;r-=1){if(t(n[r],r,n))return r}return-1};function Gi(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){0===t?n.shift():n.splice(t,1)}(n,r),!0)}function ji(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var Ki,qi,zi,Xi,$i,Yi=function(){function n(){this.$f=!1,this.t_=!1,this.i_=[],this.s_=[]}var t=n.prototype;return t.Jf=function(){if(!this.$f&&!this.t_){this.$f=!0;for(var n=0,t=this.i_.slice();n<t.length;n++){(0,t[n])()}this.e_()}},t.e_=function(){if(!this.t_){this.t_=!0;for(var n=0,t=this.s_.slice();n<t.length;n++){(0,t[n])()}ji(this.i_),ji(this.s_)}},t.n_=function(n){this.t_||this.i_.push(n)},t.r_=function(n){this.t_||Gi(this.i_,n)},t.h_=function(n){this.t_||this.s_.push(n)},t.o_=function(n){this.t_||Gi(this.s_,n)},n}(),Zi=function(){function n(){this.u_=new Yi}var t=n.prototype;return t.c_=function(){this.u_.Jf()},t.e_=function(){this.u_.e_()},t.l_=function(n){var t=this.u_;if(!t.$f)if(n.$f)t.Jf();else if(!t.t_&&!n.t_){var r=function(){i(),t.Jf()},i=function(){n.r_(r),n.o_(i),t.r_(r),t.o_(i)};n.n_(r),n.h_(i),t.n_(r),t.h_(i)}},t.d_=function(){var t=new n,r=new n,i=t.a_,e=r.a_,u=this.u_,o=function(){i.$f&&e.t_||e.$f&&i.t_?u.Jf():i.t_&&e.t_&&u.e_()};i.n_(o),e.n_(o),i.h_(o),e.h_(o),t.l_(u),r.l_(u);return u.h_((function(){i.r_(o),e.r_(o),i.o_(o),e.o_(o)})),[t,r]},nn(n,[{key:"a_",get:function(){return this.u_}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(Ki||(Ki={})),function(n){n.KT="",n.QS="manifest",n.FS="segment",n.YS="preload-hint",n.GS="content-protection"}(qi||(qi={})),function(n){n.KT="",n.VS="initialization-segment",n.WS="fairplay-license",n.HS="fairplay-certificate",n.qS="widevine-license",n.XS="widevine-certificate",n.ZS="playready-license",n.KS="clearkey-license",n.JS="aes128-key"}(zi||(zi={})),function(n){n.KT="",n.mp="audio",n.vp="video",n.Ru="text",n.ZT="image"}(Xi||(Xi={})),function(n){n.$S="same-origin",n.Bv="no-cors",n.tE="cors",n.iE="navigate"}($i||($i={}));var Ji=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,y,d=n.zu;t?(r=t.eE,i=t.sE,e=t.nE,u=t.rE,o=t.NS,f=t.hE,s=t.a_,c=t.hA,a=t.oE,h=t.aE,l=t.uE,v=t.cE,_=t.eA):(r=null,i={},e="GET",u=Ni.Ru,o=0,f=0,c="",a="",h="",l=!1,_=void 0),this.zu=d,this.eE=n.eE||r,this.sE=new Fi(n.sE||i),this.nE=n.nE||e,this.rE=n.rE||u,this.NS=void 0!==n.NS?Number(n.NS)||0:o,this.hE=void 0!==n.hE?Number(n.hE)||0:f,this.a_=n.a_||s||(new Zi).a_,this.hA=n.hA||c,this.oE=n.oE||a,this.aE=n.aE||h,this.uE=void 0!==n.uE?Boolean(n.uE):l,this.cE=n.cE||v,this.eA=null!=(y=n.eA)?y:_};var Qi=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(Qi.prototype=h.create(c.prototype)).constructor=Qi;var ne,te=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return rn(t,n),nn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Qi);!function(n){n.wS="HttpOpenError",n.AS="HttpResponseError",n.vS="HttpTimeoutError"}(ne||(ne={}));var re=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).pS=t,e}return rn(t,n),nn(t,[{key:"mS",get:function(){return this.pS}}]),t}(te);var ie,ee,ue,oe=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.zu),r)}return rn(t,n),nn(t,[{key:"name",get:function(){return ne.wS}}]),t}(re),fe=function(){function n(){}var t=n.prototype;return t.mS=function(n){return j.reject(new oe(new Ji(n)))},t.CY=function(n){},t.gn=function(){},n}(),se=function(n){function t(t){return n.call(this,"Invalid XML",t)}return rn(t,n),t}(te),ce=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).Mit=new Ci,t.gE=new fe,t.i=new Di,t}return rn(t,n),t.prototype.oS=function(n){throw new se},nn(t,[{key:"Itt",get:function(){return this.Mit}},{key:"Tit",get:function(){return!1}},{key:"ZJ",get:function(){return!1}},{key:"Sit",get:function(){return!1}},{key:"f$",get:function(){return!1}},{key:"xz",get:function(){return this.i}},{key:"Eit",get:function(){return{Lit:On}}},{key:"kit",get:function(){return"default"}},{key:"Cit",get:function(){return"unknown"}},{key:"tj",get:function(){return this.gE}}]),t}(mi);!function(n){n}(new ce),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(ie||(ie={})),function(n){n[n.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",n[n.LICENSE_ERROR=2e3]="LICENSE_ERROR",n[n.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",n[n.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",n[n.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",n[n.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",n[n.SOURCE_INVALID=3e3]="SOURCE_INVALID",n[n.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",n[n.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",n[n.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",n[n.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",n[n.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",n[n.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",n[n.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",n[n.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",n[n.MEDIA_ABORTED=5004]="MEDIA_ABORTED",n[n.NETWORK_ERROR=6e3]="NETWORK_ERROR",n[n.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",n[n.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",n[n.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",n[n.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",n[n.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",n[n.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",n[n.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",n[n.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",n[n.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",n[n.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",n[n.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",n[n.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",n[n.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",n[n.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",n[n.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",n[n.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",n[n.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",n[n.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",n[n.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",n[n.AD_ERROR=1e4]="AD_ERROR",n[n.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",n[n.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",n[n.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",n[n.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",n[n.THEO_LIVE_UNKNOWN_ERROR=13e3]="THEO_LIVE_UNKNOWN_ERROR",n[n.THEO_LIVE_CHANNEL_NOT_FOUND=13001]="THEO_LIVE_CHANNEL_NOT_FOUND",n[n.THEO_LIVE_END_OF_DEMO=13002]="THEO_LIVE_END_OF_DEMO",n[n.THEO_LIVE_ANALYTICS_ERROR=13003]="THEO_LIVE_ANALYTICS_ERROR"}(ee||(ee={})),function(n){n[n.CONFIGURATION=1]="CONFIGURATION",n[n.LICENSE=2]="LICENSE",n[n.SOURCE=3]="SOURCE",n[n.MANIFEST=4]="MANIFEST",n[n.MEDIA=5]="MEDIA",n[n.NETWORK=6]="NETWORK",n[n.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",n[n.SUBTITLE=8]="SUBTITLE",n[n.VR=9]="VR",n[n.AD=10]="AD",n[n.FULLSCREEN=11]="FULLSCREEN",n[n.CACHE=12]="CACHE",n[n.THEOLIVE=13]="THEOLIVE"}(ue||(ue={})),function(n){n.fromCode=function(t){var r=l.floor(t/1e3);if(r in n)return r;throw new a("Invalid error code: "+t)}}(ue||(ue={}));var ae=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return rn(t,n),nn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return ue.fromCode(this.code)}}]),t}(te);var he,le=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),ve=function(){function n(n,t){this.encoding=n,this.fatal=(null==t?void 0:t.fatal)||!1,this.ignoreBOM=(null==t?void 0:t.ignoreBOM)||!1}return n.prototype.decode=function(n,t){return n?(r=n instanceof ArrayBuffer?new d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var _e=new Array(32).fill(void 0);function ye(n){return _e[n]}_e.push(void 0,null,!0,!1);var de=_e.length;function we(n){var t=ye(n);return function(n){n<36||(_e[n]=de,de=n)}(n),t}var Ee=new ve("utf-8",{ignoreBOM:!0,fatal:!0});Ee.decode();var Ie=new d;function pe(){return Ie.buffer!==he.memory.buffer&&(Ie=new d(he.memory.buffer)),Ie}function Re(n,t){return Ee.decode(pe().subarray(n,n+t))}function ge(n){de===_e.length&&_e.push(_e.length+1);var t=de;return de=_e[t],_e[t]=n,t}var Oe=0;function Se(n,t){var r=t(1*n.length);return pe().set(n,r/1),Oe=n.length,r}var Te=new Int32Array;function ke(){return Te.buffer!==he.memory.buffer&&(Te=new Int32Array(he.memory.buffer)),Te}function be(n){return null==n}function me(n,t){return pe().subarray(n/1,n/1+t)}var Ae=new le("utf-8"),Ne="function"==typeof Ae.encodeInto?function(n,t){return Ae.encodeInto(n,t)}:function(n,t){var r=Ae.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ce(n,t){return De.apply(this,arguments)}function De(){return De=Vi((function(n,t){var r,i,e;return Hi(this,(function(u){switch(u.label){case 0:if(!("function"==typeof Response&&n instanceof Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(n,t)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==n.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,n.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,t)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(n,t)];case 8:return(e=u.sent())instanceof WebAssembly.Instance?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))})),De.apply(this,arguments)}function Pe(){var n={wbg:{}};return n.wbg.__wbg_data_04446ebb06f2ac29=function(n,t){var r=Se(ye(t).data,he.__wbindgen_export_0),i=Oe;ke()[n/4+1]=i,ke()[n/4+0]=r},n.wbg.__wbg_metadata_792d18db149354e3=function(n){var t=ye(n).metadata;return be(t)?0:ge(t)},n.wbg.__wbg_spsnal_949e2b91c67b1988=function(n,t){var r=ye(t).sps_nal,i=be(r)?0:Se(r,he.__wbindgen_export_0),e=Oe;ke()[n/4+1]=e,ke()[n/4+0]=i},n.wbg.__wbg_ppsnal_0b287208c8bee8dc=function(n,t){var r=ye(t).pps_nal,i=be(r)?0:Se(r,he.__wbindgen_export_0),e=Oe;ke()[n/4+1]=e,ke()[n/4+0]=i},n.wbg.__wbg_videopid_ed2a669b38200ee4=function(n){var t=ye(n).video_pid;return be(t)?16777215:t},n.wbg.__wbg_audiopid_736a11dfa0cbf838=function(n){var t=ye(n).audio_pid;return be(t)?16777215:t},n.wbg.__wbg_programmaptablepid_8b78c2977f51f0e8=function(n){var t=ye(n).program_map_table_pid;return be(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){we(n)},n.wbg.__wbg_createoutputdata_eadfe6fd26e5edb1=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=me(n,t).slice(),he.__wbindgen_export_1(n,1*t)),0!==r&&(c=me(r,i).slice(),he.__wbindgen_export_1(r,1*i)),0!==e&&(a=me(e,u).slice(),he.__wbindgen_export_1(e,1*u)),0!==o&&(h=me(o,f).slice(),he.__wbindgen_export_1(o,1*f));var l=function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h);return ge(l)},n.wbg.__wbg_createtimestampwithbase_6dd9c5e5d3d34518=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return ge(i)},n.wbg.__wbg_createoutputmetadata_85c4182fc10c40bd=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,y){var d,w,E,I;0!==r&&(d=Re(r,i).slice(),he.__wbindgen_export_1(r,1*i)),0!==e&&(w=Re(e,u).slice(),he.__wbindgen_export_1(e,1*u)),0!==o&&(E=me(o,f).slice(),he.__wbindgen_export_1(o,1*f)),0!==s&&(I=me(s,c).slice(),he.__wbindgen_export_1(s,1*c));var p=function(n,t,r,i,e,u,o,f,s,c,a){return{video_pid:n,audio_pid:t,video_codec:r,audio_codec:i,sps_nal:e,pps_nal:u,first_decode_timestamp:o,first_presentation_timestamp:f,first_video_presentation_timestamp:s,program_map_table_pid:c,video_frame_rate:a}}(16777215===n?void 0:n,16777215===t?void 0:t,d,w,E,I,we(a),we(h),we(l),16777215===v?void 0:v,0===_?void 0:y);return ge(p)},n.wbg.__wbg_createoutput_c1b51e340fe44a00=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(we(n),we(t));return ge(r)},n.wbg.__wbindgen_string_new=function(n,t){return ge(Re(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return ge(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Ae.encode(n),e=t(i.length);return pe().subarray(e,e+i.length).set(i),Oe=i.length,e}for(var u=n.length,o=t(u),f=pe(),s=0;s<u;s++){var c=n.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(n=n.slice(s)),o=r(o,u,u=s+3*n.length);var a=pe().subarray(o+s,o+u);s+=Ne(n,a).written}return Oe=s,o}(ye(t).stack,he.__wbindgen_export_0,he.__wbindgen_export_2),i=Oe;ke()[n/4+1]=i,ke()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(Re(n,t))}finally{he.__wbindgen_export_1(n,t)}},n}function Le(n,t){return he=n.exports,Fe.__wbindgen_wasm_module=t,Te=new Int32Array,Ie=new d,he.__wbindgen_start(),he}function Fe(n){return Ue.apply(this,arguments)}function Ue(){return Ue=Vi((function(n){var t,r,i,e;return Hi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=Pe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Ce.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Le(i,e)]}}))})),Ue.apply(this,arguments)}function Me(){return Me=Vi((function(n){var t;return Hi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,Ve(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,Fe(t)];case 4:return r.sent(),[2,new We(t)]}}))})),Me.apply(this,arguments)}var We=function(){function n(n){this.IE=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=he.__wbindgen_add_to_stack_pointer(-16);he.mpegts_to_fmp4(t,ge(n));var r=ke()[t/4+0],i=ke()[t/4+1];if(ke()[t/4+2])throw we(i);return we(r)}finally{he.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=he.__wbindgen_add_to_stack_pointer(-16);he.raw_audio_to_fmp4(t,ge(n));var r=ke()[t/4+0],i=ke()[t/4+1];if(ke()[t/4+2])throw we(i);return we(r)}finally{he.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Vi((function(){return Hi(this,(function(t){switch(t.label){case 0:return[4,Fe(n.IE)];case 1:return t.sent(),[2]}}))}))()},n}();function Ve(n){return He.apply(this,arguments)}function He(){return He=Vi((function(n){var t,r,i,e;return Hi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,Be(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))})),He.apply(this,arguments)}function Be(n){return new j((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var xe=new URL("./THEOplayer.transmux.wasm",i.href);!function(n){var t,r=j.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({HPt:"7.1.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof ae?t.code:ee.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Vi((function(n){var i,e,u,o,f,s;return Hi(this,(function(a){switch(a.label){case 0:return void 0===r?[3,2]:[4,r];case 1:a.sent(),a.label=2;case 2:if(u=n.id,n.type===ie.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==ie.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+n.type);o=t.raw_audio_to_fmp4(n.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=n.input.metadata)?void 0:i.sps_nal,null==(e=n.input.metadata)?void 0:e.pps_nal,n.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(pn).map((function(n){return n.buffer})),self.postMessage(f,s),[2]}}))}))).apply(this,arguments)}self.addEventListener("message",(function(n){var t=n.data.id;(function(n){return i.apply(this,arguments)})(n.data).catch((function(n){var r=n,i={success:!1,requestId:t,error:r.message,errorCode:r instanceof ae?r.code:ee.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Me.apply(this,arguments)}(xe)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof s?s:"undefined"!=typeof global?global:this);