nim-web-sdk-ng
Version:
Yunxin IM SDK next generation
15 lines (14 loc) • 308 kB
JavaScript
/**
*
* Version: 10.9.10
*
* Git Hash: 030de1cce227d21d595df684cb01842578a9a774
*
* Created At: 6/18/2025, 10:06:37 AM
*
* Target: CHATROOM_BROWSER_SDK.js
*
*/
!function(t,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(t="undefined"!=typeof globalThis?globalThis:t||self).Chatroom=a()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function createCommonjsModule(t){var a={exports:{}};return t(a,a.exports),a.exports}var a,u,_=getDefaultExportFromCjs(createCommonjsModule((function(t){t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}))),check=function(t){return t&&t.Math==Math&&t},h=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||function(){return this}()||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},m=!fails((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),E=Function.prototype,g=E.apply,T=E.call,I="object"==typeof Reflect&&Reflect.apply||(m?T.bind(g):function(){return T.apply(g,arguments)}),S=Function.prototype,M=S.bind,N=S.call,A=m&&M.bind(N,N),O=m?function(t){return t&&A(t)}:function(t){return t&&function(){return N.apply(t,arguments)}},isCallable=function(t){return"function"==typeof t},R=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,b=m?C.bind(C):function(){return C.apply(C,arguments)},P={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,k={f:x&&!P.call({1:2},1)?function propertyIsEnumerable(t){var a=x(this,t);return!!a&&a.enumerable}:P},createPropertyDescriptor=function(t,a){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:a}},w=O({}.toString),L=O("".slice),classofRaw=function(t){return L(w(t),8,-1)},D=Object,V=O("".split),U=fails((function(){return!D("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?V(t,""):D(t)}:D,isNullOrUndefined=function(t){return null==t},G=TypeError,requireObjectCoercible=function(t){if(isNullOrUndefined(t))throw G("Can't call method on "+t);return t},toIndexedObject=function(t){return U(requireObjectCoercible(t))},B="object"==typeof document&&document.all,Y=void 0===B&&void 0!==B?function(t){return"object"==typeof t?null!==t:isCallable(t)||t===B}:function(t){return"object"==typeof t?null!==t:isCallable(t)},j={},aFunction=function(t){return isCallable(t)?t:void 0},getBuiltIn=function(t,a){return arguments.length<2?aFunction(j[t])||aFunction(h[t]):j[t]&&j[t][a]||h[t]&&h[t][a]},H=O({}.isPrototypeOf),K=getBuiltIn("navigator","userAgent")||"",W=h.process,q=h.Deno,z=W&&W.versions||q&&q.version,$=z&&z.v8;$&&(u=(a=$.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!u&&K&&(!(a=K.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=K.match(/Chrome\/(\d+)/))&&(u=+a[1]);var J,X=u,Q=!!Object.getOwnPropertySymbols&&!fails((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Z=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Object,te=Z?function(t){return"symbol"==typeof t}:function(t){var a=getBuiltIn("Symbol");return isCallable(a)&&H(a.prototype,ee(t))},re=String,tryToString=function(t){try{return re(t)}catch(t){return"Object"}},oe=TypeError,aCallable=function(t){if(isCallable(t))return t;throw oe(tryToString(t)+" is not a function")},getMethod=function(t,a){var u=t[a];return isNullOrUndefined(u)?void 0:aCallable(u)},ne=TypeError,ie=Object.defineProperty,ae="__core-js_shared__",se=h[ae]||function(t,a){try{ie(h,t,{value:a,configurable:!0,writable:!0})}catch(u){h[t]=a}return a}(ae,{}),ce=createCommonjsModule((function(t){(t.exports=function(t,a){return se[t]||(se[t]=void 0!==a?a:{})})("versions",[]).push({version:"3.25.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),le=Object,toObject=function(t){return le(requireObjectCoercible(t))},ue=O({}.hasOwnProperty),de=Object.hasOwn||function hasOwn(t,a){return ue(toObject(t),a)},pe=0,fe=Math.random(),_e=O(1..toString),uid=function(t){return"Symbol("+(void 0===t?"":t)+")_"+_e(++pe+fe,36)},he=ce("wks"),me=h.Symbol,Ee=me&&me.for,ge=Z?me:me&&me.withoutSetter||uid,wellKnownSymbol=function(t){if(!de(he,t)||!Q&&"string"!=typeof he[t]){var a="Symbol."+t;Q&&de(me,t)?he[t]=me[t]:he[t]=Z&&Ee?Ee(a):ge(a)}return he[t]},ve=TypeError,Te=wellKnownSymbol("toPrimitive"),toPrimitive=function(t,a){if(!Y(t)||te(t))return t;var u,_=getMethod(t,Te);if(_){if(void 0===a&&(a="default"),u=b(_,t,a),!Y(u)||te(u))return u;throw ve("Can't convert object to primitive value")}return void 0===a&&(a="number"),function(t,a){var u,_;if("string"===a&&isCallable(u=t.toString)&&!Y(_=b(u,t)))return _;if(isCallable(u=t.valueOf)&&!Y(_=b(u,t)))return _;if("string"!==a&&isCallable(u=t.toString)&&!Y(_=b(u,t)))return _;throw ne("Can't convert object to primitive value")}(t,a)},toPropertyKey=function(t){var a=toPrimitive(t,"string");return te(a)?a:a+""},ye=h.document,Ie=Y(ye)&&Y(ye.createElement),documentCreateElement=function(t){return Ie?ye.createElement(t):{}},Se=!R&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),Me=Object.getOwnPropertyDescriptor,Ne={f:R?Me:function getOwnPropertyDescriptor(t,a){if(t=toIndexedObject(t),a=toPropertyKey(a),Se)try{return Me(t,a)}catch(t){}if(de(t,a))return createPropertyDescriptor(!b(k.f,t,a),t[a])}},Ae=/#|\.prototype\./,isForced=function(t,a){var u=Re[Oe(t)];return u==be||u!=Ce&&(isCallable(a)?fails(a):!!a)},Oe=isForced.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},Re=isForced.data={},Ce=isForced.NATIVE="N",be=isForced.POLYFILL="P",Pe=isForced,xe=O(O.bind),functionBindContext=function(t,a){return aCallable(t),void 0===a?t:m?xe(t,a):function(){return t.apply(a,arguments)}},ke=R&&fails((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),we=String,Le=TypeError,anObject=function(t){if(Y(t))return t;throw Le(we(t)+" is not an object")},De=TypeError,Ve=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Fe="enumerable",Ge="configurable",Be="writable",Ye={f:R?ke?function defineProperty(t,a,u){if(anObject(t),a=toPropertyKey(a),anObject(u),"function"==typeof t&&"prototype"===a&&"value"in u&&Be in u&&!u.writable){var _=Ue(t,a);_&&_.writable&&(t[a]=u.value,u={configurable:Ge in u?u.configurable:_.configurable,enumerable:Fe in u?u.enumerable:_.enumerable,writable:!1})}return Ve(t,a,u)}:Ve:function defineProperty(t,a,u){if(anObject(t),a=toPropertyKey(a),anObject(u),Se)try{return Ve(t,a,u)}catch(t){}if("get"in u||"set"in u)throw De("Accessors not supported");return"value"in u&&(t[a]=u.value),t}},je=R?function(t,a,u){return Ye.f(t,a,createPropertyDescriptor(1,u))}:function(t,a,u){return t[a]=u,t},He=Ne.f,wrapConstructor=function(t){var Wrapper=function(a,u,_){if(this instanceof Wrapper){switch(arguments.length){case 0:return new t;case 1:return new t(a);case 2:return new t(a,u)}return new t(a,u,_)}return I(t,this,arguments)};return Wrapper.prototype=t.prototype,Wrapper},_export=function(t,a){var u,_,m,E,g,T,I,S,M=t.target,N=t.global,A=t.stat,R=t.proto,C=N?h:A?h[M]:(h[M]||{}).prototype,b=N?j:j[M]||je(j,M,{})[M],P=b.prototype;for(m in a)u=!Pe(N?m:M+(A?".":"#")+m,t.forced)&&C&&de(C,m),g=b[m],u&&(T=t.dontCallGetSet?(S=He(C,m))&&S.value:C[m]),E=u&&T?T:a[m],u&&typeof g==typeof E||(I=t.bind&&u?functionBindContext(E,h):t.wrap&&u?wrapConstructor(E):R&&isCallable(E)?O(E):E,(t.sham||E&&E.sham||g&&g.sham)&&je(I,"sham",!0),je(b,m,I),R&&(de(j,_=M+"Prototype")||je(j,_,{}),je(j[_],m,E),t.real&&P&&!P[m]&&je(P,m,E)))},Ke=Math.ceil,We=Math.floor,qe=Math.trunc||function trunc(t){var a=+t;return(a>0?We:Ke)(a)},toIntegerOrInfinity=function(t){var a=+t;return a!=a||0===a?0:qe(a)},ze=Math.max,$e=Math.min,toAbsoluteIndex=function(t,a){var u=toIntegerOrInfinity(t);return u<0?ze(u+a,0):$e(u,a)},Je=Math.min,lengthOfArrayLike=function(t){return(a=t.length)>0?Je(toIntegerOrInfinity(a),9007199254740991):0;var a},createMethod$4=function(t){return function(a,u,_){var h,m=toIndexedObject(a),E=lengthOfArrayLike(m),g=toAbsoluteIndex(_,E);if(t&&u!=u){for(;E>g;)if((h=m[g++])!=h)return!0}else for(;E>g;g++)if((t||g in m)&&m[g]===u)return t||g||0;return!t&&-1}},Xe={includes:createMethod$4(!0),indexOf:createMethod$4(!1)},Qe={},Ze=Xe.indexOf,et=O([].push),objectKeysInternal=function(t,a){var u,_=toIndexedObject(t),h=0,m=[];for(u in _)!de(Qe,u)&&de(_,u)&&et(m,u);for(;a.length>h;)de(_,u=a[h++])&&(~Ze(m,u)||et(m,u));return m},tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rt=Object.keys||function keys(t){return objectKeysInternal(t,tt)},ot=R&&!ke?Object.defineProperties:function defineProperties(t,a){anObject(t);for(var u,_=toIndexedObject(a),h=rt(a),m=h.length,E=0;m>E;)Ye.f(t,u=h[E++],_[u]);return t},nt={f:ot},it=getBuiltIn("document","documentElement"),at=ce("keys"),sharedKey=function(t){return at[t]||(at[t]=uid(t))},st=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag("")),t.close();var a=t.parentWindow.Object;return t=null,a},NullProtoObject=function(){try{J=new ActiveXObject("htmlfile")}catch(t){}var t,a;NullProtoObject="undefined"!=typeof document?document.domain&&J?NullProtoObjectViaActiveX(J):((a=documentCreateElement("iframe")).style.display="none",it.appendChild(a),a.src=String("javascript:"),(t=a.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F):NullProtoObjectViaActiveX(J);for(var u=tt.length;u--;)delete NullProtoObject.prototype[tt[u]];return NullProtoObject()};Qe[st]=!0;var ct=Object.create||function create(t,a){var u;return null!==t?(EmptyConstructor.prototype=anObject(t),u=new EmptyConstructor,EmptyConstructor.prototype=null,u[st]=t):u=NullProtoObject(),void 0===a?u:nt.f(u,a)};_export({target:"Object",stat:!0,sham:!R},{create:ct});var lt=j.Object,ut=function create(t,a){return lt.create(t,a)},dt=String,pt=TypeError,ft=Object.setPrototypeOf||("__proto__"in{}?function(){var t,a=!1,u={};try{(t=O(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(u,[]),a=u instanceof Array}catch(t){}return function setPrototypeOf(u,_){return anObject(u),function(t){if("object"==typeof t||isCallable(t))return t;throw pt("Can't set "+dt(t)+" as a prototype")}(_),a?t(u,_):u.__proto__=_,u}}():void 0);_export({target:"Object",stat:!0},{setPrototypeOf:ft});var _t=j.Object.setPrototypeOf,ht=O([].slice),mt=Function,Et=O([].concat),gt=O([].join),vt={},construct$8=function(t,a,u){if(!de(vt,a)){for(var _=[],h=0;h<a;h++)_[h]="a["+h+"]";vt[a]=mt("C,a","return new C("+gt(_,",")+")")}return vt[a](t,u)},Tt=m?mt.bind:function bind(t){var a=aCallable(this),u=a.prototype,_=ht(arguments,1),h=function bound(){var u=Et(_,ht(arguments));return this instanceof h?construct$8(a,u.length,u):a.apply(t,u)};return Y(u)&&(h.prototype=u),h};_export({target:"Function",proto:!0,forced:Function.bind!==Tt},{bind:Tt});var entryVirtual=function(t){return j[t+"Prototype"]},yt=entryVirtual("Function").bind,It=Function.prototype,bind$1=function(t){var a=t.bind;return t===It||H(It,t)&&a===It.bind?yt:a},St=createCommonjsModule((function(t){function _setPrototypeOf(a,u){var _;return t.exports=_setPrototypeOf=_t?bind$1(_=_t).call(_):function _setPrototypeOf(t,a){return t.__proto__=a,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(a,u)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports})),Mt=getDefaultExportFromCjs(createCommonjsModule((function(t){t.exports=function _inheritsLoose(t,a){t.prototype=ut(a.prototype),t.prototype.constructor=t,St(t,a)},t.exports.__esModule=!0,t.exports.default=t.exports})));_export({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991});var Nt={f:Object.getOwnPropertySymbols},At=Object.assign,Ot=Object.defineProperty,Rt=O([].concat),Ct=!At||fails((function(){if(R&&1!==At({b:1},At(Ot({},"a",{enumerable:!0,get:function(){Ot(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},a={},u=Symbol(),_="abcdefghijklmnopqrst";return t[u]=7,_.split("").forEach((function(t){a[t]=t})),7!=At({},t)[u]||rt(At({},a)).join("")!=_}))?function assign(t,a){for(var u=toObject(t),_=arguments.length,h=1,m=Nt.f,E=k.f;_>h;)for(var g,T=U(arguments[h++]),I=m?Rt(rt(T),m(T)):rt(T),S=I.length,M=0;S>M;)g=I[M++],R&&!b(E,T,g)||(u[g]=T[g]);return u}:At;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ct},{assign:Ct});var bt=j.Object.assign,Pt=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),xt=sharedKey("IE_PROTO"),kt=Object,wt=kt.prototype,Lt=Pt?kt.getPrototypeOf:function(t){var a=toObject(t);if(de(a,xt))return a[xt];var u=a.constructor;return isCallable(u)&&a instanceof u?u.prototype:a instanceof kt?wt:null},Dt=tt.concat("length","prototype"),Vt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,Dt)}},Ut=O([].concat),Ft=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var a=Vt.f(anObject(t)),u=Nt.f;return u?Ut(a,u(t)):a},Gt=Error,Bt=O("".replace),Yt=String(Gt("zxcasd").stack),jt=/\n\s*at [^:]*:[^\n]*/,Ht=jt.test(Yt),errorStackClear=function(t,a){if(Ht&&"string"==typeof t&&!Gt.prepareStackTrace)for(;a--;)t=Bt(t,jt,"");return t},installErrorCause=function(t,a){Y(a)&&"cause"in a&&je(t,"cause",a.cause)},Kt={},Wt=wellKnownSymbol("iterator"),qt=Array.prototype,isArrayIteratorMethod=function(t){return void 0!==t&&(Kt.Array===t||qt[Wt]===t)},zt={};zt[wellKnownSymbol("toStringTag")]="z";var $t="[object z]"===String(zt),Jt=wellKnownSymbol("toStringTag"),Xt=Object,Qt="Arguments"==classofRaw(function(){return arguments}()),Zt=$t?classofRaw:function(t){var a,u,_;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(u=function(t,a){try{return t[a]}catch(t){}}(a=Xt(t),Jt))?u:Qt?classofRaw(a):"Object"==(_=classofRaw(a))&&isCallable(a.callee)?"Arguments":_},er=wellKnownSymbol("iterator"),getIteratorMethod$5=function(t){if(!isNullOrUndefined(t))return getMethod(t,er)||getMethod(t,"@@iterator")||Kt[Zt(t)]},tr=TypeError,getIterator=function(t,a){var u=arguments.length<2?getIteratorMethod$5(t):a;if(aCallable(u))return anObject(b(u,t));throw tr(tryToString(t)+" is not iterable")},iteratorClose=function(t,a,u){var _,h;anObject(t);try{if(!(_=getMethod(t,"return"))){if("throw"===a)throw u;return u}_=b(_,t)}catch(t){h=!0,_=t}if("throw"===a)throw u;if(h)throw _;return anObject(_),u},rr=TypeError,Result=function(t,a){this.stopped=t,this.result=a},or=Result.prototype,iterate=function(t,a,u){var _,h,m,E,g,T,I,S=u&&u.that,M=!(!u||!u.AS_ENTRIES),N=!(!u||!u.IS_RECORD),A=!(!u||!u.IS_ITERATOR),O=!(!u||!u.INTERRUPTED),R=functionBindContext(a,S),stop=function(t){return _&&iteratorClose(_,"normal",t),new Result(!0,t)},callFn=function(t){return M?(anObject(t),O?R(t[0],t[1],stop):R(t[0],t[1])):O?R(t,stop):R(t)};if(N)_=t.iterator;else if(A)_=t;else{if(!(h=getIteratorMethod$5(t)))throw rr(tryToString(t)+" is not iterable");if(isArrayIteratorMethod(h)){for(m=0,E=lengthOfArrayLike(t);E>m;m++)if((g=callFn(t[m]))&&H(or,g))return g;return new Result(!1)}_=getIterator(t,h)}for(T=N?t.next:_.next;!(I=b(T,_)).done;){try{g=callFn(I.value)}catch(t){iteratorClose(_,"throw",t)}if("object"==typeof g&&g&&H(or,g))return g}return new Result(!1)},nr=String,toString=function(t){if("Symbol"===Zt(t))throw TypeError("Cannot convert a Symbol value to a string");return nr(t)},normalizeStringArgument=function(t,a){return void 0===t?arguments.length<2?"":a:toString(t)},ir=!fails((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",createPropertyDescriptor(1,7)),7!==t.stack)})),ar=wellKnownSymbol("toStringTag"),sr=Error,cr=[].push,lr=function AggregateError(t,a){var u,_=arguments.length>2?arguments[2]:void 0,h=H(ur,this);ft?u=ft(sr(),h?Lt(this):ur):(u=h?this:ct(ur),je(u,ar,"Error")),void 0!==a&&je(u,"message",normalizeStringArgument(a)),ir&&je(u,"stack",errorStackClear(u.stack,1)),installErrorCause(u,_);var m=[];return iterate(t,cr,{that:m}),je(u,"errors",m),u};ft?ft(lr,sr):function(t,a,u){for(var _=Ft(a),h=Ye.f,m=Ne.f,E=0;E<_.length;E++){var g=_[E];de(t,g)||u&&de(u,g)||h(t,g,m(a,g))}}(lr,sr,{name:!0});var ur=lr.prototype=ct(sr.prototype,{constructor:createPropertyDescriptor(1,lr),message:createPropertyDescriptor(1,""),name:createPropertyDescriptor(1,"AggregateError")});_export({global:!0,constructor:!0,arity:2},{AggregateError:lr});var dr,pr,fr,_r=h.WeakMap,hr=isCallable(_r)&&/native code/.test(String(_r)),mr="Object already initialized",Er=h.TypeError,gr=h.WeakMap;if(hr||se.state){var vr=se.state||(se.state=new gr),Tr=O(vr.get),yr=O(vr.has),Ir=O(vr.set);dr=function(t,a){if(yr(vr,t))throw Er(mr);return a.facade=t,Ir(vr,t,a),a},pr=function(t){return Tr(vr,t)||{}},fr=function(t){return yr(vr,t)}}else{var Sr=sharedKey("state");Qe[Sr]=!0,dr=function(t,a){if(de(t,Sr))throw Er(mr);return a.facade=t,je(t,Sr,a),a},pr=function(t){return de(t,Sr)?t[Sr]:{}},fr=function(t){return de(t,Sr)}}var Mr,Nr,Ar,Or={set:dr,get:pr,has:fr,enforce:function(t){return fr(t)?pr(t):dr(t,{})},getterFor:function(t){return function(a){var u;if(!Y(a)||(u=pr(a)).type!==t)throw Er("Incompatible receiver, "+t+" required");return u}}},Rr=Function.prototype,Cr=R&&Object.getOwnPropertyDescriptor,br=de(Rr,"name"),Pr={EXISTS:br,PROPER:br&&"something"===function something(){}.name,CONFIGURABLE:br&&(!R||R&&Cr(Rr,"name").configurable)},defineBuiltIn=function(t,a,u,_){return _&&_.enumerable?t[a]=u:je(t,a,u),t},xr=wellKnownSymbol("iterator"),kr=!1;[].keys&&("next"in(Ar=[].keys())?(Nr=Lt(Lt(Ar)))!==Object.prototype&&(Mr=Nr):kr=!0);var wr=!Y(Mr)||fails((function(){var t={};return Mr[xr].call(t)!==t}));Mr=wr?{}:ct(Mr),isCallable(Mr[xr])||defineBuiltIn(Mr,xr,(function(){return this}));var Lr={IteratorPrototype:Mr,BUGGY_SAFARI_ITERATORS:kr},Dr=$t?{}.toString:function toString(){return"[object "+Zt(this)+"]"},Vr=Ye.f,Ur=wellKnownSymbol("toStringTag"),setToStringTag=function(t,a,u,_){if(t){var h=u?t:t.prototype;de(h,Ur)||Vr(h,Ur,{configurable:!0,value:a}),_&&!$t&&je(h,"toString",Dr)}},Fr=Lr.IteratorPrototype,returnThis$1=function(){return this},Gr=Pr.PROPER,Br=Lr.BUGGY_SAFARI_ITERATORS,Yr=wellKnownSymbol("iterator"),jr="keys",Hr="values",Kr="entries",returnThis=function(){return this},iteratorDefine=function(t,a,u,_,h,m,E){!function(t,a,u,_){var h=a+" Iterator";t.prototype=ct(Fr,{next:createPropertyDescriptor(+!_,u)}),setToStringTag(t,h,!1,!0),Kt[h]=returnThis$1}(u,a,_);var g,T,I,getIterationMethod=function(t){if(t===h&&O)return O;if(!Br&&t in N)return N[t];switch(t){case jr:return function keys(){return new u(this,t)};case Hr:return function values(){return new u(this,t)};case Kr:return function entries(){return new u(this,t)}}return function(){return new u(this)}},S=a+" Iterator",M=!1,N=t.prototype,A=N[Yr]||N["@@iterator"]||h&&N[h],O=!Br&&A||getIterationMethod(h),R="Array"==a&&N.entries||A;if(R&&(g=Lt(R.call(new t)))!==Object.prototype&&g.next&&(setToStringTag(g,S,!0,!0),Kt[S]=returnThis),Gr&&h==Hr&&A&&A.name!==Hr&&(M=!0,O=function values(){return b(A,this)}),h)if(T={values:getIterationMethod(Hr),keys:m?O:getIterationMethod(jr),entries:getIterationMethod(Kr)},E)for(I in T)(Br||M||!(I in N))&&defineBuiltIn(N,I,T[I]);else _export({target:a,proto:!0,forced:Br||M},T);return E&&N[Yr]!==O&&defineBuiltIn(N,Yr,O,{name:h}),Kt[a]=O,T};Ye.f;var Wr="Array Iterator",qr=Or.set,zr=Or.getterFor(Wr);iteratorDefine(Array,"Array",(function(t,a){qr(this,{type:Wr,target:toIndexedObject(t),index:0,kind:a})}),(function(){var t=zr(this),a=t.target,u=t.kind,_=t.index++;return!a||_>=a.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==u?{value:_,done:!1}:"values"==u?{value:a[_],done:!1}:{value:[_,a[_]],done:!1}}),"values"),Kt.Arguments=Kt.Array;var $r="process"==classofRaw(h.process),Jr=wellKnownSymbol("species"),setSpecies=function(t){var a=getBuiltIn(t),u=Ye.f;R&&a&&!a[Jr]&&u(a,Jr,{configurable:!0,get:function(){return this}})},Xr=TypeError,anInstance=function(t,a){if(H(a,t))return t;throw Xr("Incorrect invocation")},Qr=O(Function.toString);isCallable(se.inspectSource)||(se.inspectSource=function(t){return Qr(t)});var Zr=se.inspectSource,noop=function(){},eo=[],to=getBuiltIn("Reflect","construct"),ro=/^\s*(?:class|function)\b/,oo=O(ro.exec),no=!ro.exec(noop),io=function isConstructor(t){if(!isCallable(t))return!1;try{return to(noop,eo,t),!0}catch(t){return!1}},ao=function isConstructor(t){if(!isCallable(t))return!1;switch(Zt(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return no||!!oo(ro,Zr(t))}catch(t){return!0}};ao.sham=!0;var so,co,lo,uo,po=!to||fails((function(){var t;return io(io.call)||!io(Object)||!io((function(){t=!0}))||t}))?ao:io,fo=TypeError,aConstructor=function(t){if(po(t))return t;throw fo(tryToString(t)+" is not a constructor")},_o=wellKnownSymbol("species"),speciesConstructor=function(t,a){var u,_=anObject(t).constructor;return void 0===_||isNullOrUndefined(u=anObject(_)[_o])?a:aConstructor(u)},ho=TypeError,validateArgumentsLength=function(t,a){if(t<a)throw ho("Not enough arguments");return t},mo=/(?:ipad|iphone|ipod).*applewebkit/i.test(K),Eo=h.setImmediate,go=h.clearImmediate,vo=h.process,To=h.Dispatch,yo=h.Function,Io=h.MessageChannel,So=h.String,Mo=0,No={},Ao="onreadystatechange";try{so=h.location}catch(t){}var run=function(t){if(de(No,t)){var a=No[t];delete No[t],a()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){h.postMessage(So(t),so.protocol+"//"+so.host)};Eo&&go||(Eo=function setImmediate(t){validateArgumentsLength(arguments.length,1);var a=isCallable(t)?t:yo(t),u=ht(arguments,1);return No[++Mo]=function(){I(a,void 0,u)},co(Mo),Mo},go=function clearImmediate(t){delete No[t]},$r?co=function(t){vo.nextTick(runner(t))}:To&&To.now?co=function(t){To.now(runner(t))}:Io&&!mo?(uo=(lo=new Io).port2,lo.port1.onmessage=listener,co=functionBindContext(uo.postMessage,uo)):h.addEventListener&&isCallable(h.postMessage)&&!h.importScripts&&so&&"file:"!==so.protocol&&!fails(post)?(co=post,h.addEventListener("message",listener,!1)):co=Ao in documentCreateElement("script")?function(t){it.appendChild(documentCreateElement("script")).onreadystatechange=function(){it.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)});var Oo,Ro,Co,bo,Po,xo,ko,wo,Lo={set:Eo,clear:go},Do=/ipad|iphone|ipod/i.test(K)&&void 0!==h.Pebble,Vo=/web0s(?!.*chrome)/i.test(K),Uo=Ne.f,Fo=Lo.set,Go=h.MutationObserver||h.WebKitMutationObserver,Bo=h.document,Yo=h.process,jo=h.Promise,Ho=Uo(h,"queueMicrotask"),Ko=Ho&&Ho.value;Ko||(Oo=function(){var t,a;for($r&&(t=Yo.domain)&&t.exit();Ro;){a=Ro.fn,Ro=Ro.next;try{a()}catch(t){throw Ro?bo():Co=void 0,t}}Co=void 0,t&&t.enter()},mo||$r||Vo||!Go||!Bo?!Do&&jo&&jo.resolve?((ko=jo.resolve(void 0)).constructor=jo,wo=functionBindContext(ko.then,ko),bo=function(){wo(Oo)}):$r?bo=function(){Yo.nextTick(Oo)}:(Fo=functionBindContext(Fo,h),bo=function(){Fo(Oo)}):(Po=!0,xo=Bo.createTextNode(""),new Go(Oo).observe(xo,{characterData:!0}),bo=function(){xo.data=Po=!Po}));var Wo=Ko||function(t){var a={fn:t,next:void 0};Co&&(Co.next=a),Ro||(Ro=a,bo()),Co=a},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Queue=function(){this.head=null,this.tail=null};Queue.prototype={add:function(t){var a={item:t,next:null};this.head?this.tail.next=a:this.head=a,this.tail=a},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var qo,zo,$o=Queue,Jo=h.Promise,Xo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Qo=!Xo&&!$r&&"object"==typeof window&&"object"==typeof document,Zo=Jo&&Jo.prototype,en=wellKnownSymbol("species"),tn=!1,rn=isCallable(h.PromiseRejectionEvent),nn=Pe("Promise",(function(){var t=Zr(Jo),a=t!==String(Jo);if(!a&&66===X)return!0;if(!Zo.catch||!Zo.finally)return!0;if(!X||X<51||!/native code/.test(t)){var u=new Jo((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};if((u.constructor={})[en]=FakePromise,!(tn=u.then((function(){}))instanceof FakePromise))return!0}return!a&&(Qo||Xo)&&!rn})),an={CONSTRUCTOR:nn,REJECTION_EVENT:rn,SUBCLASSING:tn},sn=TypeError,PromiseCapability=function(t){var a,u;this.promise=new t((function(t,_){if(void 0!==a||void 0!==u)throw sn("Bad Promise constructor");a=t,u=_})),this.resolve=aCallable(a),this.reject=aCallable(u)},cn={f:function(t){return new PromiseCapability(t)}},ln=Lo.set,un="Promise",dn=an.CONSTRUCTOR,pn=an.REJECTION_EVENT,fn=Or.getterFor(un),_n=Or.set,hn=Jo&&Jo.prototype,mn=Jo,En=hn,gn=h.TypeError,vn=h.document,Tn=h.process,yn=cn.f,In=yn,Sn=!!(vn&&vn.createEvent&&h.dispatchEvent),Mn="unhandledrejection",isThenable=function(t){var a;return!(!Y(t)||!isCallable(a=t.then))&&a},callReaction=function(t,a){var u,_,h,m=a.value,E=1==a.state,g=E?t.ok:t.fail,T=t.resolve,I=t.reject,S=t.domain;try{g?(E||(2===a.rejection&&onHandleUnhandled(a),a.rejection=1),!0===g?u=m:(S&&S.enter(),u=g(m),S&&(S.exit(),h=!0)),u===t.promise?I(gn("Promise-chain cycle")):(_=isThenable(u))?b(_,u,T,I):T(u)):I(m)}catch(t){S&&!h&&S.exit(),I(t)}},notify=function(t,a){t.notified||(t.notified=!0,Wo((function(){for(var u,_=t.reactions;u=_.get();)callReaction(u,t);t.notified=!1,a&&!t.rejection&&onUnhandled(t)})))},dispatchEvent=function(t,a,u){var _,m;Sn?((_=vn.createEvent("Event")).promise=a,_.reason=u,_.initEvent(t,!1,!0),h.dispatchEvent(_)):_={promise:a,reason:u},!pn&&(m=h["on"+t])?m(_):t===Mn&&function(t,a){var u=h.console;u&&u.error&&(1==arguments.length?u.error(t):u.error(t,a))}("Unhandled promise rejection",u)},onUnhandled=function(t){b(ln,h,(function(){var a,u=t.facade,_=t.value;if(isUnhandled(t)&&(a=perform((function(){$r?Tn.emit("unhandledRejection",_,u):dispatchEvent(Mn,u,_)})),t.rejection=$r||isUnhandled(t)?2:1,a.error))throw a.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){b(ln,h,(function(){var a=t.facade;$r?Tn.emit("rejectionHandled",a):dispatchEvent("rejectionhandled",a,t.value)}))},bind=function(t,a,u){return function(_){t(a,_,u)}},internalReject=function(t,a,u){t.done||(t.done=!0,u&&(t=u),t.value=a,t.state=2,notify(t,!0))},internalResolve=function(t,a,u){if(!t.done){t.done=!0,u&&(t=u);try{if(t.facade===a)throw gn("Promise can't be resolved itself");var _=isThenable(a);_?Wo((function(){var u={done:!1};try{b(_,a,bind(internalResolve,u,t),bind(internalReject,u,t))}catch(a){internalReject(u,a,t)}})):(t.value=a,t.state=1,notify(t,!1))}catch(a){internalReject({done:!1},a,t)}}};dn&&(En=(mn=function Promise(t){anInstance(this,En),aCallable(t),b(qo,this);var a=fn(this);try{t(bind(internalResolve,a),bind(internalReject,a))}catch(t){internalReject(a,t)}}).prototype,(qo=function Promise(t){_n(this,{type:un,done:!1,notified:!1,parent:!1,reactions:new $o,rejection:!1,state:0,value:void 0})}).prototype=defineBuiltIn(En,"then",(function then(t,a){var u=fn(this),_=yn(speciesConstructor(this,mn));return u.parent=!0,_.ok=!isCallable(t)||t,_.fail=isCallable(a)&&a,_.domain=$r?Tn.domain:void 0,0==u.state?u.reactions.add(_):Wo((function(){callReaction(_,u)})),_.promise})),zo=function(){var t=new qo,a=fn(t);this.promise=t,this.resolve=bind(internalResolve,a),this.reject=bind(internalReject,a)},cn.f=yn=function(t){return t===mn||undefined===t?new zo(t):In(t)}),_export({global:!0,constructor:!0,wrap:!0,forced:dn},{Promise:mn}),setToStringTag(mn,un,!1,!0),setSpecies(un);var Nn=wellKnownSymbol("iterator"),An=!1;try{var On=0,Rn={next:function(){return{done:!!On++}},return:function(){An=!0}};Rn[Nn]=function(){return this},Array.from(Rn,(function(){throw 2}))}catch(t){}var checkCorrectnessOfIteration=function(t,a){if(!a&&!An)return!1;var u=!1;try{var _={};_[Nn]=function(){return{next:function(){return{done:u=!0}}}},t(_)}catch(t){}return u},Cn=an.CONSTRUCTOR||!checkCorrectnessOfIteration((function(t){Jo.all(t).then(void 0,(function(){}))}));_export({target:"Promise",stat:!0,forced:Cn},{all:function all(t){var a=this,u=cn.f(a),_=u.resolve,h=u.reject,m=perform((function(){var u=aCallable(a.resolve),m=[],E=0,g=1;iterate(t,(function(t){var T=E++,I=!1;g++,b(u,a,t).then((function(t){I||(I=!0,m[T]=t,--g||_(m))}),h)})),--g||_(m)}));return m.error&&h(m.value),u.promise}});var bn=an.CONSTRUCTOR;Jo&&Jo.prototype,_export({target:"Promise",proto:!0,forced:bn,real:!0},{catch:function(t){return this.then(void 0,t)}}),_export({target:"Promise",stat:!0,forced:Cn},{race:function race(t){var a=this,u=cn.f(a),_=u.reject,h=perform((function(){var h=aCallable(a.resolve);iterate(t,(function(t){b(h,a,t).then(u.resolve,_)}))}));return h.error&&_(h.value),u.promise}}),_export({target:"Promise",stat:!0,forced:an.CONSTRUCTOR},{reject:function reject(t){var a=cn.f(this);return b(a.reject,void 0,t),a.promise}});var promiseResolve=function(t,a){if(anObject(t),Y(a)&&a.constructor===t)return a;var u=cn.f(t);return(0,u.resolve)(a),u.promise},Pn=an.CONSTRUCTOR,xn=getBuiltIn("Promise"),kn=!Pn;_export({target:"Promise",stat:!0,forced:!0},{resolve:function resolve(t){return promiseResolve(kn&&this===xn?Jo:this,t)}}),_export({target:"Promise",stat:!0},{allSettled:function allSettled(t){var a=this,u=cn.f(a),_=u.resolve,h=u.reject,m=perform((function(){var u=aCallable(a.resolve),h=[],m=0,E=1;iterate(t,(function(t){var g=m++,T=!1;E++,b(u,a,t).then((function(t){T||(T=!0,h[g]={status:"fulfilled",value:t},--E||_(h))}),(function(t){T||(T=!0,h[g]={status:"rejected",reason:t},--E||_(h))}))})),--E||_(h)}));return m.error&&h(m.value),u.promise}});var wn="No one promise resolved";_export({target:"Promise",stat:!0},{any:function any(t){var a=this,u=getBuiltIn("AggregateError"),_=cn.f(a),h=_.resolve,m=_.reject,E=perform((function(){var _=aCallable(a.resolve),E=[],g=0,T=1,I=!1;iterate(t,(function(t){var S=g++,M=!1;T++,b(_,a,t).then((function(t){M||I||(I=!0,h(t))}),(function(t){M||I||(M=!0,E[S]=t,--T||m(new u(E,wn)))}))})),--T||m(new u(E,wn))}));return E.error&&m(E.value),_.promise}});var Ln=Jo&&Jo.prototype,Dn=!!Jo&&fails((function(){Ln.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Dn},{finally:function(t){var a=speciesConstructor(this,getBuiltIn("Promise")),u=isCallable(t);return this.then(u?function(u){return promiseResolve(a,t()).then((function(){return u}))}:t,u?function(u){return promiseResolve(a,t()).then((function(){throw u}))}:t)}});var Vn=O("".charAt),Un=O("".charCodeAt),Fn=O("".slice),createMethod$3=function(t){return function(a,u){var _,h,m=toString(requireObjectCoercible(a)),E=toIntegerOrInfinity(u),g=m.length;return E<0||E>=g?t?"":void 0:(_=Un(m,E))<55296||_>56319||E+1===g||(h=Un(m,E+1))<56320||h>57343?t?Vn(m,E):_:t?Fn(m,E,E+2):h-56320+(_-55296<<10)+65536}},Gn={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)}.charAt,Bn="String Iterator",Yn=Or.set,jn=Or.getterFor(Bn);iteratorDefine(String,"String",(function(t){Yn(this,{type:Bn,string:toString(t),index:0})}),(function next(){var t,a=jn(this),u=a.string,_=a.index;return _>=u.length?{value:void 0,done:!0}:(t=Gn(u,_),a.index+=t.length,{value:t,done:!1})}));var Hn=j.Promise,Kn=wellKnownSymbol("toStringTag");for(var Wn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qn=h[Wn],zn=qn&&qn.prototype;zn&&Zt(zn)!==Kn&&je(zn,Kn,Wn),Kt[Wn]=Kt.Array}var $n=Hn;_export({target:"Promise",stat:!0,forced:!0},{try:function(t){var a=cn.f(this),u=perform(t);return(u.error?a.reject:a.resolve)(u.value),a.promise}});var Jn=$n,Xn=Date,Qn=O(Xn.prototype.getTime);_export({target:"Date",stat:!0},{now:function now(){return Qn(new Xn)}});var Zn=j.Date.now,ei=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},ti=TypeError,doesNotExceedSafeInteger=function(t){if(t>9007199254740991)throw ti("Maximum allowed index exceeded");return t},createProperty=function(t,a,u){var _=toPropertyKey(a);_ in t?Ye.f(t,_,createPropertyDescriptor(0,u)):t[_]=u},ri=wellKnownSymbol("species"),oi=Array,arraySpeciesCreate=function(t,a){return new(function(t){var a;return ei(t)&&(a=t.constructor,(po(a)&&(a===oi||ei(a.prototype))||Y(a)&&null===(a=a[ri]))&&(a=void 0)),void 0===a?oi:a}(t))(0===a?0:a)},ni=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return X>=51||!fails((function(){var a=[];return(a.constructor={})[ni]=function(){return{foo:1}},1!==a[t](Boolean).foo}))},ii=wellKnownSymbol("isConcatSpreadable"),ai=X>=51||!fails((function(){var t=[];return t[ii]=!1,t.concat()[0]!==t})),si=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!Y(t))return!1;var a=t[ii];return void 0!==a?!!a:ei(t)};_export({target:"Array",proto:!0,arity:1,forced:!ai||!si},{concat:function concat(t){var a,u,_,h,m,E=toObject(this),g=arraySpeciesCreate(E,0),T=0;for(a=-1,_=arguments.length;a<_;a++)if(isConcatSpreadable(m=-1===a?E:arguments[a]))for(h=lengthOfArrayLike(m),doesNotExceedSafeInteger(T+h),u=0;u<h;u++,T++)u in m&&createProperty(g,T,m[u]);else doesNotExceedSafeInteger(T+1),createProperty(g,T++,m);return g.length=T,g}});var ci=entryVirtual("Array").concat,li=Array.prototype,concat=function(t){var a=t.concat;return t===li||H(li,t)&&a===li.concat?ci:a},ui=/MSIE .\./.test(K),di=h.Function,wrap$1=function(t){return ui?function(a,u){var _=validateArgumentsLength(arguments.length,1)>2,h=isCallable(a)?a:di(a),m=_?ht(arguments,2):void 0;return t(_?function(){I(h,this,m)}:h,u)}:t},pi={setTimeout:wrap$1(h.setTimeout),setInterval:wrap$1(h.setInterval)},fi=pi.setInterval;_export({global:!0,bind:!0,forced:h.setInterval!==fi},{setInterval:fi});var _i=pi.setTimeout;_export({global:!0,bind:!0,forced:h.setTimeout!==_i},{setTimeout:_i});var hi=j.setTimeout,mi=createCommonjsModule((function(t){var a=Object.prototype.hasOwnProperty,u="~";function Events(){}function EE(t,a,u){this.fn=t,this.context=a,this.once=u||!1}function addListener(t,a,_,h,m){if("function"!=typeof _)throw new TypeError("The listener must be a function");var E=new EE(_,h||t,m),g=u?u+a:a;return t._events[g]?t._events[g].fn?t._events[g]=[t._events[g],E]:t._events[g].push(E):(t._events[g]=E,t._eventsCount++),t}function clearEvent(t,a){0==--t._eventsCount?t._events=new Events:delete t._events[a]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),(new Events).__proto__||(u=!1)),EventEmitter.prototype.eventNames=function eventNames(){var t,_,h=[];if(0===this._eventsCount)return h;for(_ in t=this._events)a.call(t,_)&&h.push(u?_.slice(1):_);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(t)):h},EventEmitter.prototype.listeners=function listeners(t){var a=u?u+t:t,_=this._events[a];if(!_)return[];if(_.fn)return[_.fn];for(var h=0,m=_.length,E=new Array(m);h<m;h++)E[h]=_[h].fn;return E},EventEmitter.prototype.listenerCount=function listenerCount(t){var a=u?u+t:t,_=this._events[a];return _?_.fn?1:_.length:0},EventEmitter.prototype.emit=function emit(t,a,_,h,m,E){var g=u?u+t:t;if(!this._events[g])return!1;var T,I,S=this._events[g],M=arguments.length;if(S.fn){switch(S.once&&this.removeListener(t,S.fn,void 0,!0),M){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,a),!0;case 3:return S.fn.call(S.context,a,_),!0;case 4:return S.fn.call(S.context,a,_,h),!0;case 5:return S.fn.call(S.context,a,_,h,m),!0;case 6:return S.fn.call(S.context,a,_,h,m,E),!0}for(I=1,T=new Array(M-1);I<M;I++)T[I-1]=arguments[I];S.fn.apply(S.context,T)}else{var N,A=S.length;for(I=0;I<A;I++)switch(S[I].once&&this.removeListener(t,S[I].fn,void 0,!0),M){case 1:S[I].fn.call(S[I].context);break;case 2:S[I].fn.call(S[I].context,a);break;case 3:S[I].fn.call(S[I].context,a,_);break;case 4:S[I].fn.call(S[I].context,a,_,h);break;default:if(!T)for(N=1,T=new Array(M-1);N<M;N++)T[N-1]=arguments[N];S[I].fn.apply(S[I].context,T)}}return!0},EventEmitter.prototype.on=function on(t,a,u){return addListener(this,t,a,u,!1)},EventEmitter.prototype.once=function once(t,a,u){return addListener(this,t,a,u,!0)},EventEmitter.prototype.removeListener=function removeListener(t,a,_,h){var m=u?u+t:t;if(!this._events[m])return this;if(!a)return clearEvent(this,m),this;var E=this._events[m];if(E.fn)E.fn!==a||h&&!E.once||_&&E.context!==_||clearEvent(this,m);else{for(var g=0,T=[],I=E.length;g<I;g++)(E[g].fn!==a||h&&!E[g].once||_&&E[g].context!==_)&&T.push(E[g]);T.length?this._events[m]=1===T.length?T[0]:T:clearEvent(this,m)}return this},EventEmitter.prototype.removeAllListeners=function removeAllListeners(t){var a;return t?(a=u?u+t:t,this._events[a]&&clearEvent(this,a)):(this._events=new Events,this._eventsCount=0),this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prefixed=u,EventEmitter.EventEmitter=EventEmitter,t.exports=EventEmitter}));_export({global:!0},{globalThis:h});var Ei=Array,gi=Math.max,arraySliceSimple=function(t,a,u){for(var _=lengthOfArrayLike(t),h=toAbsoluteIndex(a,_),m=toAbsoluteIndex(void 0===u?_:u,_),E=Ei(gi(m-h,0)),g=0;h<m;h++,g++)createProperty(E,g,t[h]);return E.length=g,E},vi=Vt.f,Ti="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yi={f:function getOwnPropertyNames(t){return Ti&&"Window"==classofRaw(t)?function(t){try{return vi(t)}catch(t){return arraySliceSimple(Ti)}}(t):vi(toIndexedObject(t))}},Ii={f:wellKnownSymbol},Si=Ye.f,wellKnownSymbolDefine=function(t){var a=j.Symbol||(j.Symbol={});de(a,t)||Si(a,t,{value:Ii.f(t)})},symbolDefineToPrimitive=function(){var t=getBuiltIn("Symbol"),a=t&&t.prototype,u=a&&a.valueOf,_=wellKnownSymbol("toPrimitive");a&&!a[_]&&defineBuiltIn(a,_,(function(t){return b(u,this)}),{arity:1})},Mi=O([].push),createMethod$2=function(t){var a=1==t,u=2==t,_=3==t,h=4==t,m=6==t,E=7==t,g=5==t||m;return function(T,I,S,M){for(var N,A,O=toObject(T),R=U(O),C=functionBindContext(I,S),b=lengthOfArrayLike(R),P=0,x=M||arraySpeciesCreate,k=a?x(T,b):u||E?x(T,0):void 0;b>P;P++)if((g||P in R)&&(A=C(N=R[P],P,O),t))if(a)k[P]=A;else if(A)switch(t){case 3:return!0;case 5:return N;case 6:return P;case 2:Mi(k,N)}else switch(t){case 4:return!1;case 7:Mi(k,N)}return m?-1:_||h?h:k}},Ni={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},Ai=Ni.forEach,Oi=sharedKey("hidden"),Ri="Symbol",Ci=Or.set,bi=Or.getterFor(Ri),Pi=Object.prototype,xi=h.Symbol,ki=xi&&xi.prototype,wi=h.TypeError,Li=h.QObject,Di=Ne.f,Vi=Ye.f,Ui=yi.f,Fi=k.f,Gi=O([].push),Bi=ce("symbols"),Yi=ce("op-symbols"),ji=ce("wks"),Hi=!Li||!Li.prototype||!Li.prototype.findChild,Ki=R&&fails((function(){return 7!=ct(Vi({},"a",{get:function(){return Vi(this,"a",{value:7}).a}})).a}))?function(t,a,u){var _=Di(Pi,a);_&&delete Pi[a],Vi(t,a,u),_&&t!==Pi&&Vi(Pi,a,_)}:Vi,wrap=function(t,a){var u=Bi[t]=ct(ki);return Ci(u,{type:Ri,tag:t,description:a}),R||(u.description=a),u},Wi=function defineProperty(t,a,u){t===Pi&&Wi(Yi,a,u),anObject(t);var _=toPropertyKey(a);return anObject(u),de(Bi,_)?(u.enumerable?(de(t,Oi)&&t[Oi][_]&&(t[Oi][_]=!1),u=ct(u,{enumerable:createPropertyDescriptor(0,!1)})):(de(t,Oi)||Vi(t,Oi,createPropertyDescriptor(1,{})),t[Oi][_]=!0),Ki(t,_,u)):Vi(t,_,u)},qi=function defineProperties(t,a){anObject(t);var u=toIndexedObject(a),_=rt(u).concat($getOwnPropertySymbols(u));return Ai(_,(function(a){R&&!b(zi,u,a)||Wi(t,a,u[a])})),t},zi=function propertyIsEnumerable(t){var a=toPropertyKey(t),u=b(Fi,this,a);return!(this===Pi&&de(Bi,a)&&!de(Yi,a))&&(!(u||!de(this,a)||!de(Bi,a)||de(this,Oi)&&this[Oi][a])||u)},$i=function getOwnPropertyDescriptor(t,a){var u=toIndexedObject(t),_=toPropertyKey(a);if(u!==Pi||!de(Bi,_)||de(Yi,_)){var h=Di(u,_);return!h||!de(Bi,_)||de(u,Oi)&&u[Oi][_]||(h.enumerable=!0),h}},Ji=function getOwnPropertyNames(t){var a=Ui(toIndexedObject(t)),u=[];return Ai(a,(function(t){de(Bi,t)||de(Qe,t)||Gi(u,t)})),u},$getOwnPropertySymbols=function(t){var a=t===Pi,u=Ui(a?Yi:toIndexedObject(t)),_=[];return Ai(u,(function(t){!de(Bi,t)||a&&!de(Pi,t)||Gi(_,Bi[t])})),_};Q||(xi=function Symbol(){if(H(ki,this))throw wi("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?toString(arguments[0]):void 0,a=uid(t),setter=function(t){this===Pi&&b(setter,Yi,t),de(this,Oi)&&de(this[Oi],a)&&(this[Oi][a]=!1),Ki(this,a,createPropertyDescriptor(1,t))};return R&&Hi&&Ki(Pi,a,{configurable:!0,set:setter}),wrap(a,t)},ki=xi.prototype,defineBuiltIn(ki,"toString",(function toString(){return bi(this).tag})),defineBuiltIn(xi,"withoutSetter",(function(t){return wrap(uid(t),t)})),k.f=zi,Ye.f=Wi,nt.f=qi,Ne.f=$i,Vt.f=yi.f=Ji,Nt.f=$getOwnPropertySymbols,Ii.f=function(t){return wrap(wellKnownSymbol(t),t)},R&&Vi(ki,"description",{configurable:!0,get:function description(){return bi(this).description}})),_export({global:!0,constructor:!0,wrap:!0,forced:!Q,sham:!Q},{Symbol:xi}),Ai(rt(ji),(function(t){wellKnownSymbolDefine(t)})),_export({target:Ri,stat:!0,forced:!Q},{useSetter:function(){Hi=!0},useSimple:function(){Hi=!1}}),_export({target:"Object",stat:!0,forced:!Q,sham:!R},{create:function create(t,a){return void 0===a?ct(t):qi(ct(t),a)},defineProperty:Wi,defineProperties:qi,getOwnPropertyDescriptor:$i}),_export({target:"Object",stat:!0,forced:!Q},{getOwnPropertyNames:Ji}),symbolDefineToPrimitive(),setToStringTag(xi,Ri),Qe[Oi]=!0;var Xi=Q&&!!Symbol.for&&!!Symbol.keyFor,Qi=ce("string-to-symbol-registry"),Zi=ce("symbol-to-string-registry");_export({target:"Symbol",stat:!0,forced:!Xi},{for:function(t){var a=toString(t);if(de(Qi,a))return Qi[a];var u=getBuiltIn("Symbol")(a);return Qi[a]=u,Zi[u]=a,u}});var ea=ce("symbol-to-string-registry");_export({target:"Symbol",stat:!0,forced:!Xi},{keyFor:function keyFor(t){if(!te(t))throw TypeError(tryToString(t)+" is not a symbol");if(de(ea,t))return ea[t]}});var ta=getBuiltIn("JSON","stringify"),ra=O(/./.exec),oa=O("".charAt),na=O("".charCodeAt),ia=O("".replace),aa=O(1..toString),sa=/[\uD800-\uDFFF]/g,ca=/^[\uD800-\uDBFF]$/,la=/^[\uDC00-\uDFFF]$/,ua=!Q||fails((function(){var t=getBuiltIn("Symbol")();return"[null]"!=ta([t])||"{}"!=ta({a:t})||"{}"!=ta(Object(t))})),da=fails((function(){return'"\\udf06\\ud834"'!==ta("\udf06\ud834")||'"\\udead"'!==ta("\udead")})),stringifyWithSymbolsFix=function(t,a){var u=ht(arguments),_=a;if((Y(a)||void 0!==t)&&!te(t))return ei(a)||(a=function(t,a){if(isCallable(_)&&(a=b(_,this,t,a)),!te(a))return a}),u[1]=a,I(ta,null,u)},fixIllFormed=function(t,a,u){var _=oa(u,a-1),h=oa(u,a+1);return ra(ca,t)&&!ra(la,h)||ra(la,t)&&!ra(ca,_)?"\\u"+aa(na(t,0),16):t};ta&&_export({target:"JSON",stat:!0,arity:3,forced:ua||da},{stringify:function stringify(t,a,u){var _=ht(arguments),h=I(ua?stringifyWithSymbolsFix:ta,null,_);return da&&"string"==typeof h?ia(h,sa,fixIllFormed):h}});var pa=!Q||fails((function(){Nt.f(1)}));_export({target:"Object",stat:!0,forced:pa},{getOwnPropertySymbols:function getOwnPropertySymbols(t){var a=Nt.f;return a?a(toObject(t)):[]}}),wellKnownSymbolDefine("asyncIterator"),wellKnownSymbolDefine("hasInstance"),wellKnownSymbolDefine("isConcatSpreadable"),wellKnownSymbolDefine("iterator"),wellKnownSymbolDefine("match"),wellKnownSymbolDefine("matchAll"),wellKnownSymbolDefine("replace"),wellKnownSymbolDefine("search"),wellKnownSymbolDefine("species"),wellKnownSymbolDefine("split"),wellKnownSymbolDefine("toPrimitive"),symbolDefineToPrimitive(),wellKnownSymbolDefine("toStringTag"),setToStringTag(getBuiltIn("Symbol"),"Symbol"),wellKnownSymbolDefine("unscopables"),setToStringTag(h.JSON,"JSON",!0);var fa=j.Symbol;wellKnownSymbolDefine("asyncDispose"),wellKnownSymbolDefine("dispose"),wellKnownSymbolDefine("matcher"),wellKnownSymbolDefine("metadataKey"),wellKnownSymbolDefine("observable"),wellKnownSymbolDefine("metadata"),wellKnownSymbolDefine("patternMatch"),wellKnownSymbolDefine("replaceAll");var _a=fa,ha=Ye.f;_export({target:"Object",stat:!0,forced:Object.defineProperty!==ha,sham:!R},{defineProperty:ha});var ma=createCommonjsModule((function(t){var a=j.Object,u=t.exports=function defineProperty(t,u,_){return a.defineProperty(t,u,_)};a.defineProperty.sham&&(u.sham=!0)})),Ea=ma,ga=fails((function(){Lt(1)}));_export({target:"Object",stat:!0,forced:ga,sham:!Pt},{getPrototypeOf:function getPrototypeOf(t){return Lt(toObject(t))}});var va=j.Object.getPrototypeOf,arrayMethodIsStrict=function(t,a){var u=[][t];return!!u&&fails((function(){u.call(null,a||function(){return 1},1)}))},Ta=Ni.forEach,ya=arrayMethodIsStrict("forEach")?[].forEach:function forEach(t){return Ta(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=ya},{forEach:ya});var Ia=entryVirtual("Array").forEach,Sa=Array.prototype,Ma={DOMTokenList:!0,NodeList:!0},forEach$1=function(t){var a=t.forEach;return t===Sa||H(Sa,t)&&a===Sa.forEach||de(Ma,Zt(t))?Ia:a},Na=O([].reverse),Aa=[1,2];_export({target:"Array",proto:!0,forced:String(Aa)===String(Aa.reverse())},{reverse:function reverse(){return ei(this)&&(this.length=this.length),Na(this)}});var Oa=entryVirtual("Array").reverse,Ra=Array.prototype,reverse=function(t){var a=t.reverse;return t===Ra||H(Ra,t)&&a===Ra.reverse?Oa:a},Ca=arrayMethodHasSpeciesSupport("slice"),ba=wellKnownSymbol("species"),Pa=Array,xa=Math.max;_export({target:"Array",proto:!0,forced:!Ca},{slice:function slice(t,a){var u,_,h,m=toIndexedObject(this),E=lengthOfArrayLike(m),g=toAbsoluteIndex(t,E),T=toAbsoluteIndex(void 0===a?E:a,E);if(ei(m)&&(u=m.constructor,(po(u)&&(u===Pa||ei(u.prototype))||Y(u)&&null===(u=u[ba]))&&(u=void 0),u===Pa||void 0===u))return ht(m,g,T);for(_=new(void 0===u?Pa:u)(xa(T-g,0)),h=0;g<T;g++,h++)g in m&&createProperty(_,h,m[g]);return _.length=h,_}});var ka=entryVirtual("Array").slice,wa=Array.prototype,slice=function(t){var a=t.slice;return t===wa||H(wa,t)&&a===wa.slice?ka:a},La=Ii.f("iterator"),Da=Ni.find,Va="find",Ua=!0;Va in[]&&Array(1).find((function(){Ua=!1})),_export({target:"Array",proto:!0,forced:Ua},{find:function find(t){return Da(this,t,arguments.length>1?arguments[1]:void 0)}});var Fa=entryVirtual("Array").find,Ga=Array.prototype,find=function(t){var a=t.find;return t===Ga||H(Ga,t)&&a===Ga.find?Fa:a},Ba=Xe.includes,Ya=fails((function(){return!Array(1).includes()}));_export({target:"Array",proto:!0,forced:Ya},{includes:function includes(t){return Ba(this,t,arguments.length>1?arguments[1]:void 0)}});var ja=entryVirtual("Array").includes,Ha=wellKnownSymbol("match"),Ka=TypeError,notARegexp=function(t){if(function(t){var a;return Y(t)&&(void 0!==(a=t[Ha])?!!a:"RegExp"==classofRaw(t))}(t))throw Ka("The method doesn't accept regular expressions");return t},Wa=wellKnownSymbol("match"),qa=O("".indexOf);_export({target:"String",proto:!0,forced:!function(t){var a=/./;try{"/./"[t](a)}catch(u){try{return a[Wa]=!1,"/./"[t](a)}catch(t){}}return!1}("includes")},{includes:function includes(t){return!!~qa(toString(requireObjectCoercible(this)),toString(notARegexp(t)),arguments.length>1?arguments[1]:void 0)}});var za=entryVirtual("String").includes,$a=Array.prototype,Ja=String.prototype,includes=function(t){var a=t.includes;return t===$a||H($a,t)&&a===$a.includes?ja:"string"==typeof t||t===Ja||H(Ja,t)&&a===Ja.includes?za:a},Xa=fails((function(){rt(1)}));_export({target:"Object",stat:!0,forced:Xa},{keys:function keys(t){return rt(toObject(t))}});var Qa=j.Object.keys,Za=Ni.map,es=arrayMethodHasSpeciesSupport("map");_export({target:"Array",proto:!0,forced:!es},{map:function map(t){return Za(this,t,arguments.length>1?arguments[1]:void 0)}});var ts=entryVirtual("Array").map,rs=Array.prototype,map$6=function(t){var a=t.map;return t===rs||H(rs,t)&&a===rs.map?ts:a},os=Ni.filter,ns=arrayMethodHasSpeciesSupport("filter");_export({target:"Array",proto:!0,forced:!ns},{filter:function filter(t){return os(this,t,arguments.length>1?arguments[1]:void 0)}});var is=entryVirtual("Array").filter,as=Array.prototype,filter=function(t){var a=t.filter;return t===as||H(as,t)&&a===as.filter?is:a},ss=createCommonjsModule((function(t,a){t.exports=function(){function _regeneratorRuntime(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
_regeneratorRuntime=function _regeneratorRuntime(){return t};var t={},a=Object.prototype,u=a.hasOwnProperty,_="function"==typeof _a?_a:{},h=_.iterator||"@@iterator",m=_.asyncIterator||"@@asyncIterator",E=_.toStringTag||"@@toStringTag";function define(t,a,u){return Ea(t,a,{value:u,enumerable:!0,configurable:!0,writable:!0}),t[a]}try{define({},"")}catch(t){define=function define(t,a,u){return t[a]=u}}function wrap(t,a,u,_){var h=a&&a.prototype instanceof Generator?a:Generator,m=ut(h.prototype),E=new Context(_||[]);return m._invoke=function(t,a,u){var _="suspendedStart";return function(h,m){if("executing"===_)throw new Error("Generator is already running");if("completed"===_){if("throw"===h)throw m;return doneResult()}for(u.method=h,u.arg=m;;){var E=u.delegate;if(E){var T=maybeInvokeDelegate(E,u);if(T){if(T===g)continue;return T}}if("next"==