3 lines
75 KiB
JavaScript
3 lines
75 KiB
JavaScript
import{aA as sf}from"./@vue-DqCYILjk.js";import{r as RA}from"./trtc-js-sdk-DYM4KK88.js";var Vr={exports:{}},DA=Vr.exports,cf;function WA(){return cf||(cf=1,function(ff,NA){(function(pi,Yr){ff.exports=Yr(RA())})(DA,function(pi){function Yr(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var X=Yr(pi);function hi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hi(Object(r),!0).forEach(function(n){pf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function M(){M=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=typeof Symbol=="function"?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(y,d,T){return Object.defineProperty(y,d,{value:T,enumerable:!0,configurable:!0,writable:!0}),y[d]}try{a({},"")}catch{a=function(d,T,x){return d[T]=x}}function u(y,d,T,x){var A=d&&d.prototype instanceof h?d:h,L=Object.create(A.prototype),N=new ci(x||[]);return L._invoke=function(tt,ct,I){var q="suspendedStart";return function(rt,af){if(q==="executing")throw new Error("Generator is already running");if(q==="completed"){if(rt==="throw")throw af;return of()}for(I.method=rt,I.arg=af;;){var uf=I.delegate;if(uf){var li=V(uf,I);if(li){if(li===f)continue;return li}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(q==="suspendedStart")throw q="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);q="executing";var Le=c(tt,ct,I);if(Le.type==="normal"){if(q=I.done?"completed":"suspendedYield",Le.arg===f)continue;return{value:Le.arg,done:I.done}}Le.type==="throw"&&(q="completed",I.method="throw",I.arg=Le.arg)}}}(y,T,N),L}function c(y,d,T){try{return{type:"normal",arg:y.call(d,T)}}catch(x){return{type:"throw",arg:x}}}t.wrap=u;var f={};function h(){}function g(){}function v(){}var p={};a(p,o,function(){return this});var w=Object.getPrototypeOf,m=w&&w(w(fi([])));m&&m!==e&&r.call(m,o)&&(p=m);var l=v.prototype=h.prototype=Object.create(p);function b(y){["next","throw","return"].forEach(function(d){a(y,d,function(T){return this._invoke(d,T)})})}function E(y,d){function T(A,L,N,tt){var ct=c(y[A],y,L);if(ct.type!=="throw"){var I=ct.arg,q=I.value;return q&&typeof q=="object"&&r.call(q,"__await")?d.resolve(q.__await).then(function(rt){T("next",rt,N,tt)},function(rt){T("throw",rt,N,tt)}):d.resolve(q).then(function(rt){I.value=rt,N(I)},function(rt){return T("throw",rt,N,tt)})}tt(ct.arg)}var x;this._invoke=function(A,L){function N(){return new d(function(tt,ct){T(A,L,tt,ct)})}return x=x?x.then(N,N):N()}}function V(y,d){var T=y.iterator[d.method];if(T===void 0){if(d.delegate=null,d.method==="throw"){if(y.iterator.return&&(d.method="return",d.arg=void 0,V(y,d),d.method==="throw"))return f;d.method="throw",d.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var x=c(T,y.iterator,d.arg);if(x.type==="throw")return d.method="throw",d.arg=x.arg,d.delegate=null,f;var A=x.arg;return A?A.done?(d[y.resultName]=A.value,d.next=y.nextLoc,d.method!=="return"&&(d.method="next",d.arg=void 0),d.delegate=null,f):A:(d.method="throw",d.arg=new TypeError("iterator result is not an object"),d.delegate=null,f)}function ue(y){var d={tryLoc:y[0]};1 in y&&(d.catchLoc=y[1]),2 in y&&(d.finallyLoc=y[2],d.afterLoc=y[3]),this.tryEntries.push(d)}function Dt(y){var d=y.completion||{};d.type="normal",delete d.arg,y.completion=d}function ci(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(ue,this),this.reset(!0)}function fi(y){if(y){var d=y[o];if(d)return d.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var T=-1,x=function A(){for(;++T<y.length;)if(r.call(y,T))return A.value=y[T],A.done=!1,A;return A.value=void 0,A.done=!0,A};return x.next=x}}return{next:of}}function of(){return{value:void 0,done:!0}}return g.prototype=v,a(l,"constructor",v),a(v,"constructor",g),g.displayName=a(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(y){var d=typeof y=="function"&&y.constructor;return!!d&&(d===g||(d.displayName||d.name)==="GeneratorFunction")},t.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,v):(y.__proto__=v,a(y,s,"GeneratorFunction")),y.prototype=Object.create(l),y},t.awrap=function(y){return{__await:y}},b(E.prototype),a(E.prototype,i,function(){return this}),t.AsyncIterator=E,t.async=function(y,d,T,x,A){A===void 0&&(A=Promise);var L=new E(u(y,d,T,x),A);return t.isGeneratorFunction(d)?L:L.next().then(function(N){return N.done?N.value:L.next()})},b(l),a(l,s,"Generator"),a(l,o,function(){return this}),a(l,"toString",function(){return"[object Generator]"}),t.keys=function(y){var d=[];for(var T in y)d.push(T);return d.reverse(),function x(){for(;d.length;){var A=d.pop();if(A in y)return x.value=A,x.done=!1,x}return x.done=!0,x}},t.values=fi,ci.prototype={constructor:ci,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Dt),!y)for(var d in this)d.charAt(0)==="t"&&r.call(this,d)&&!isNaN(+d.slice(1))&&(this[d]=void 0)},stop:function(){this.done=!0;var y=this.tryEntries[0].completion;if(y.type==="throw")throw y.arg;return this.rval},dispatchException:function(y){if(this.done)throw y;var d=this;function T(ct,I){return L.type="throw",L.arg=y,d.next=ct,I&&(d.method="next",d.arg=void 0),!!I}for(var x=this.tryEntries.length-1;x>=0;--x){var A=this.tryEntries[x],L=A.completion;if(A.tryLoc==="root")return T("end");if(A.tryLoc<=this.prev){var N=r.call(A,"catchLoc"),tt=r.call(A,"finallyLoc");if(N&&tt){if(this.prev<A.catchLoc)return T(A.catchLoc,!0);if(this.prev<A.finallyLoc)return T(A.finallyLoc)}else if(N){if(this.prev<A.catchLoc)return T(A.catchLoc,!0)}else{if(!tt)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return T(A.finallyLoc)}}}},abrupt:function(y,d){for(var T=this.tryEntries.length-1;T>=0;--T){var x=this.tryEntries[T];if(x.tryLoc<=this.prev&&r.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var A=x;break}}A&&(y==="break"||y==="continue")&&A.tryLoc<=d&&d<=A.finallyLoc&&(A=null);var L=A?A.completion:{};return L.type=y,L.arg=d,A?(this.method="next",this.next=A.finallyLoc,f):this.complete(L)},complete:function(y,d){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&d&&(this.next=d),f},finish:function(y){for(var d=this.tryEntries.length-1;d>=0;--d){var T=this.tryEntries[d];if(T.finallyLoc===y)return this.complete(T.completion,T.afterLoc),Dt(T),f}},catch:function(y){for(var d=this.tryEntries.length-1;d>=0;--d){var T=this.tryEntries[d];if(T.tryLoc===y){var x=T.completion;if(x.type==="throw"){var A=x.arg;Dt(T)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(y,d,T){return this.delegate={iterator:fi(y),resultName:d,nextLoc:T},this.method==="next"&&(this.arg=void 0),f}},t}function di(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(c){return void r(c)}a.done?e(u):Promise.resolve(u).then(n,o)}function ft(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function s(u){di(i,n,o,s,a,"next",u)}function a(u){di(i,n,o,s,a,"throw",u)}s(void 0)})}}function zr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hr(t,e,r){return e&&lf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function pf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof sf<"u"?sf:typeof self<"u"?self:{},O=function(t){try{return!!t()}catch{return!0}},De=!O(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),yi=De,gi=Function.prototype,qr=gi.call,hf=yi&&gi.bind.bind(qr,qr),mi=function(t){return yi?hf(t):function(){return qr.apply(t,arguments)}},bi=mi,df=bi({}.toString),vf=bi("".slice),At=function(t){return vf(df(t),8,-1)},yf=At,gf=mi,k=function(t){if(yf(t)==="Function")return gf(t)},mf=O,bf=At,Kr=Object,wf=k("".split),Xr=mf(function(){return!Kr("z").propertyIsEnumerable(0)})?function(t){return bf(t)=="String"?wf(t,""):Kr(t)}:Kr,Nt=function(t){return t==null},Af=Nt,_f=TypeError,Ne=function(t){if(Af(t))throw _f("Can't call method on "+t);return t},Tf=Xr,xf=Ne,lt=function(t){return Tf(xf(t))},Fe=function(t){return t&&t.Math==Math&&t},S=Fe(typeof globalThis=="object"&&globalThis)||Fe(typeof window=="object"&&window)||Fe(typeof self=="object"&&self)||Fe(typeof vi=="object"&&vi)||function(){return this}()||Function("return this")(),$r={exports:{}},wi=S,Of=Object.defineProperty,Jr=function(t,e){try{Of(wi,t,{value:e,configurable:!0,writable:!0})}catch{wi[t]=e}return e},kf=Jr,Ai="__core-js_shared__",Qr=S[Ai]||kf(Ai,{}),_i=Qr;($r.exports=function(t,e){return _i[t]||(_i[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var pt,Ue,Sf=Ne,Ef=Object,nt=function(t){return Ef(Sf(t))},If=nt,Cf=k({}.hasOwnProperty),W=Object.hasOwn||function(t,e){return Cf(If(t),e)},jf=k,Pf=0,Mf=Math.random(),Lf=jf(1 .toString),We=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Lf(++Pf+Mf,36)},Zr=typeof document=="object"&&document.all,Be={all:Zr,IS_HTMLDDA:Zr===void 0&&Zr!==void 0},Rf=Be.all,C=Be.IS_HTMLDDA?function(t){return typeof t=="function"||t===Rf}:function(t){return typeof t=="function"},tn=S,Df=C,Nf=function(t){return Df(t)?t:void 0},ht=function(t,e){return arguments.length<2?Nf(tn[t]):tn[t]&&tn[t][e]},_t=ht("navigator","userAgent")||"",Ti=S,en=_t,xi=Ti.process,Oi=Ti.Deno,ki=xi&&xi.versions||Oi&&Oi.version,Si=ki&&ki.v8;Si&&(Ue=(pt=Si.split("."))[0]>0&&pt[0]<4?1:+(pt[0]+pt[1])),!Ue&&en&&(!(pt=en.match(/Edge\/(\d+)/))||pt[1]>=74)&&(pt=en.match(/Chrome\/(\d+)/))&&(Ue=+pt[1]);var se=Ue,Ei=se,Ff=O,Ii=!!Object.getOwnPropertySymbols&&!Ff(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ei&&Ei<41}),Ci=Ii&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=S,Wf=$r.exports,ji=W,Bf=We,Pi=Ii,Mi=Ci,ce=Wf("wks"),Tt=Uf.Symbol,Li=Tt&&Tt.for,Gf=Mi?Tt:Tt&&Tt.withoutSetter||Bf,j=function(t){if(!ji(ce,t)||!Pi&&typeof ce[t]!="string"){var e="Symbol."+t;Pi&&ji(Tt,t)?ce[t]=Tt[t]:ce[t]=Mi&&Li?Li(e):Gf(e)}return ce[t]},Ri=C,Vf=Be.all,P=Be.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Ri(t)||t===Vf}:function(t){return typeof t=="object"?t!==null:Ri(t)},Yf=P,zf=String,Hf=TypeError,$=function(t){if(Yf(t))return t;throw Hf(zf(t)+" is not an object")},Di={},F=!O(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ni=F&&O(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),R={},Fi=P,rn=S.document,qf=Fi(rn)&&Fi(rn.createElement),Ge=function(t){return qf?rn.createElement(t):{}},Kf=Ge,Ui=!F&&!O(function(){return Object.defineProperty(Kf("div"),"a",{get:function(){return 7}}).a!=7}),Xf=De,Ve=Function.prototype.call,U=Xf?Ve.bind(Ve):function(){return Ve.apply(Ve,arguments)},Ft=k({}.isPrototypeOf),$f=ht,Jf=C,Qf=Ft,Zf=Object,Ye=Ci?function(t){return typeof t=="symbol"}:function(t){var e=$f("Symbol");return Jf(e)&&Qf(e.prototype,Zf(t))},tl=String,Ut=function(t){try{return tl(t)}catch{return"Object"}},el=C,rl=Ut,nl=TypeError,ot=function(t){if(el(t))return t;throw nl(rl(t)+" is not a function")},ol=ot,il=Nt,nn=function(t,e){var r=t[e];return il(r)?void 0:ol(r)},on=U,an=C,un=P,al=TypeError,ul=U,Wi=P,Bi=Ye,sl=nn,cl=function(t,e){var r,n;if(e==="string"&&an(r=t.toString)&&!un(n=on(r,t))||an(r=t.valueOf)&&!un(n=on(r,t))||e!=="string"&&an(r=t.toString)&&!un(n=on(r,t)))return n;throw al("Can't convert object to primitive value")},fl=TypeError,ll=j("toPrimitive"),sn=function(t,e){if(!Wi(t)||Bi(t))return t;var r,n=sl(t,ll);if(n){if(e===void 0&&(e="default"),r=ul(n,t,e),!Wi(r)||Bi(r))return r;throw fl("Can't convert object to primitive value")}return e===void 0&&(e="number"),cl(t,e)},pl=sn,hl=Ye,ze=function(t){var e=pl(t,"string");return hl(e)?e:e+""},dl=F,vl=Ui,yl=Ni,He=$,Gi=ze,gl=TypeError,cn=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,bl="enumerable",wl="configurable",Al="writable";R.f=dl?yl?function(t,e,r){if(He(t),e=Gi(e),He(r),typeof t=="function"&&e==="prototype"&&"value"in r&&Al in r&&!r.writable){var n=ml(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:wl in r?r.configurable:n.configurable,enumerable:bl in r?r.enumerable:n.enumerable,writable:!1})}return cn(t,e,r)}:cn:function(t,e,r){if(He(t),e=Gi(e),He(r),vl)try{return cn(t,e,r)}catch{}if("get"in r||"set"in r)throw gl("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var _l=Math.ceil,Tl=Math.floor,xl=Math.trunc||function(t){var e=+t;return(e>0?Tl:_l)(e)},xt=function(t){var e=+t;return e!=e||e===0?0:xl(e)},Ol=xt,kl=Math.max,Sl=Math.min,Ot=function(t,e){var r=Ol(t);return r<0?kl(r+e,0):Sl(r,e)},El=xt,Il=Math.min,Wt=function(t){return t>0?Il(El(t),9007199254740991):0},Cl=Wt,Y=function(t){return Cl(t.length)},jl=lt,Pl=Ot,Ml=Y,Vi=function(t){return function(e,r,n){var o,i=jl(e),s=Ml(i),a=Pl(n,s);if(t&&r!=r){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},fn={includes:Vi(!0),indexOf:Vi(!1)},qe={},ln=W,Ll=lt,Rl=fn.indexOf,Dl=qe,Yi=k([].push),zi=function(t,e){var r,n=Ll(t),o=0,i=[];for(r in n)!ln(Dl,r)&&ln(n,r)&&Yi(i,r);for(;e.length>o;)ln(n,r=e[o++])&&(~Rl(i,r)||Yi(i,r));return i},pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nl=zi,Fl=pn,Ul=Object.keys||function(t){return Nl(t,Fl)},Wl=F,Bl=Ni,Gl=R,Vl=$,Yl=lt,zl=Ul;Di.f=Wl&&!Bl?Object.defineProperties:function(t,e){Vl(t);for(var r,n=Yl(e),o=zl(e),i=o.length,s=0;i>s;)Gl.f(t,r=o[s++],n[r]);return t};var Ke,Hi=ht("document","documentElement"),Hl=$r.exports,ql=We,qi=Hl("keys"),hn=function(t){return qi[t]||(qi[t]=ql(t))},Kl=$,Xl=Di,Ki=pn,$l=qe,Jl=Hi,Ql=Ge,Xi=hn("IE_PROTO"),dn=function(){},$i=function(t){return"<script>"+t+"<\/script>"},Ji=function(t){t.write($i("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{Ke=new ActiveXObject("htmlfile")}catch{}var t,e;Xe=typeof document<"u"?document.domain&&Ke?Ji(Ke):((e=Ql("iframe")).style.display="none",Jl.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write($i("document.F=Object")),t.close(),t.F):Ji(Ke);for(var r=Ki.length;r--;)delete Xe.prototype[Ki[r]];return Xe()};$l[Xi]=!0;var $e=Object.create||function(t,e){var r;return t!==null?(dn.prototype=Kl(t),r=new dn,dn.prototype=null,r[Xi]=t):r=Xe(),e===void 0?r:Xl.f(r,e)},Zl=j,tp=$e,ep=R.f,vn=Zl("unscopables"),yn=Array.prototype;yn[vn]==null&&ep(yn,vn,{configurable:!0,value:tp(null)});var Je,fe,Qe,le={},rp=C,Qi=S.WeakMap,np=rp(Qi)&&/native code/.test(String(Qi)),pe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},op=R,ip=pe,kt=F?function(t,e,r){return op.f(t,e,ip(1,r))}:function(t,e,r){return t[e]=r,t},ap=np,Zi=S,up=P,sp=kt,gn=W,mn=Qr,cp=hn,fp=qe,ta="Object already initialized",bn=Zi.TypeError,lp=Zi.WeakMap;if(ap||mn.state){var et=mn.state||(mn.state=new lp);et.get=et.get,et.has=et.has,et.set=et.set,Je=function(t,e){if(et.has(t))throw bn(ta);return e.facade=t,et.set(t,e),e},fe=function(t){return et.get(t)||{}},Qe=function(t){return et.has(t)}}else{var Bt=cp("state");fp[Bt]=!0,Je=function(t,e){if(gn(t,Bt))throw bn(ta);return e.facade=t,sp(t,Bt,e),e},fe=function(t){return gn(t,Bt)?t[Bt]:{}},Qe=function(t){return gn(t,Bt)}}var B={set:Je,get:fe,has:Qe,enforce:function(t){return Qe(t)?fe(t):Je(t,{})},getterFor:function(t){return function(e){var r;if(!up(e)||(r=fe(e)).type!==t)throw bn("Incompatible receiver, "+t+" required");return r}}},Gt={},ea={},ra={}.propertyIsEnumerable,na=Object.getOwnPropertyDescriptor,pp=na&&!ra.call({1:2},1);ea.f=pp?function(t){var e=na(this,t);return!!e&&e.enumerable}:ra;var hp=F,dp=U,vp=ea,yp=pe,gp=lt,mp=ze,bp=W,wp=Ui,oa=Object.getOwnPropertyDescriptor;Gt.f=hp?oa:function(t,e){if(t=gp(t),e=mp(e),wp)try{return oa(t,e)}catch{}if(bp(t,e))return yp(!dp(vp.f,t,e),t[e])};var ia={exports:{}},wn=F,Ap=W,aa=Function.prototype,_p=wn&&Object.getOwnPropertyDescriptor,ua=Ap(aa,"name"),Ze={PROPER:ua&&(function(){}).name==="something",CONFIGURABLE:ua&&(!wn||wn&&_p(aa,"name").configurable)},Tp=C,An=Qr,xp=k(Function.toString);Tp(An.inspectSource)||(An.inspectSource=function(t){return xp(t)});var _n=An.inspectSource,Op=O,kp=C,tr=W,Tn=F,Sp=Ze.CONFIGURABLE,Ep=_n,Ip=B.enforce,Cp=B.get,er=Object.defineProperty,jp=Tn&&!Op(function(){return er(function(){},"length",{value:8}).length!==8}),Pp=String(String).split("String"),Mp=ia.exports=function(t,e,r){String(e).slice(0,7)==="Symbol("&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!tr(t,"name")||Sp&&t.name!==e)&&(Tn?er(t,"name",{value:e,configurable:!0}):t.name=e),jp&&r&&tr(r,"arity")&&t.length!==r.arity&&er(t,"length",{value:r.arity});try{r&&tr(r,"constructor")&&r.constructor?Tn&&er(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=Ip(t);return tr(n,"source")||(n.source=Pp.join(typeof e=="string"?e:"")),t};Function.prototype.toString=Mp(function(){return kp(this)&&Cp(this).source||Ep(this)},"toString");var Lp=C,Rp=R,Dp=ia.exports,Np=Jr,J=function(t,e,r,n){n||(n={});var o=n.enumerable,i=n.name!==void 0?n.name:e;if(Lp(r)&&Dp(r,i,n),n.global)o?t[e]=r:Np(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch{}o?t[e]=r:Rp.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},St={},Fp=zi,Up=pn.concat("length","prototype");St.f=Object.getOwnPropertyNames||function(t){return Fp(t,Up)};var sa={};sa.f=Object.getOwnPropertySymbols;var Et,ca,fa,Wp=ht,Bp=St,Gp=sa,Vp=$,Yp=k([].concat),zp=Wp("Reflect","ownKeys")||function(t){var e=Bp.f(Vp(t)),r=Gp.f;return r?Yp(e,r(t)):e},Hp=W,qp=zp,Kp=Gt,Xp=R,$p=O,Jp=C,Qp=/#|\.prototype\./,he=function(t,e){var r=th[Zp(t)];return r==rh||r!=eh&&(Jp(e)?$p(e):!!e)},Zp=he.normalize=function(t){return String(t).replace(Qp,".").toLowerCase()},th=he.data={},eh=he.NATIVE="N",rh=he.POLYFILL="P",rr=he,xn=S,nh=Gt.f,oh=kt,ih=J,ah=Jr,uh=function(t,e,r){for(var n=qp(e),o=Xp.f,i=Kp.f,s=0;s<n.length;s++){var a=n[s];Hp(t,a)||r||o(t,a,i(e,a))}},sh=rr,D=function(t,e){var r,n,o,i,s,a=t.target,u=t.global,c=t.stat;if(r=u?xn:c?xn[a]||ah(a,{}):(xn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(s=nh(r,n))&&s.value:r[n],!sh(u?n:a+(c?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;uh(i,o)}(t.sham||o&&o.sham)&&oh(i,"sham",!0),ih(r,n,i,t)}},ch=!O(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),fh=W,lh=C,ph=nt,hh=ch,la=hn("IE_PROTO"),On=Object,dh=On.prototype,nr=hh?On.getPrototypeOf:function(t){var e=ph(t);if(fh(e,la))return e[la];var r=e.constructor;return lh(r)&&e instanceof r?r.prototype:e instanceof On?dh:null},vh=O,yh=C,gh=P,pa=nr,mh=J,kn=j("iterator"),ha=!1;[].keys&&("next"in(fa=[].keys())?(ca=pa(pa(fa)))!==Object.prototype&&(Et=ca):ha=!0);var bh=!gh(Et)||vh(function(){var t={};return Et[kn].call(t)!==t});bh&&(Et={}),yh(Et[kn])||mh(Et,kn,function(){return this});var Sn={IteratorPrototype:Et,BUGGY_SAFARI_ITERATORS:ha},wh=R.f,Ah=W,da=j("toStringTag"),de=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Ah(t,da)&&wh(t,da,{configurable:!0,value:e})},_h=Sn.IteratorPrototype,Th=$e,xh=pe,Oh=de,kh=le,Sh=function(){return this},Eh=C,Ih=String,Ch=TypeError,jh=k,Ph=$,Mh=function(t){if(typeof t=="object"||Eh(t))return t;throw Ch("Can't set "+Ih(t)+" as a prototype")},Vt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=jh(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Ph(n),Mh(o),e?t(n,o):n.__proto__=o,n}}():void 0),Lh=D,Rh=U,Dh=C,Nh=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Th(_h,{next:xh(1,r)}),Oh(t,o,!1),kh[o]=Sh,t},va=nr,ya=Vt,Fh=de,Uh=kt,En=J,Wh=le,Bh=Ze.PROPER,Gh=Ze.CONFIGURABLE,ga=Sn.IteratorPrototype,or=Sn.BUGGY_SAFARI_ITERATORS,ve=j("iterator"),ma="keys",ye="values",ba="entries",Vh=function(){return this},In=function(t,e,r,n,o,i,s){Nh(r,e,n);var a,u,c,f=function(l){if(l===o&&w)return w;if(!or&&l in v)return v[l];switch(l){case ma:case ye:case ba:return function(){return new r(this,l)}}return function(){return new r(this)}},h=e+" Iterator",g=!1,v=t.prototype,p=v[ve]||v["@@iterator"]||o&&v[o],w=!or&&p||f(o),m=e=="Array"&&v.entries||p;if(m&&(a=va(m.call(new t)))!==Object.prototype&&a.next&&(va(a)!==ga&&(ya?ya(a,ga):Dh(a[ve])||En(a,ve,Vh)),Fh(a,h,!0)),Bh&&o==ye&&p&&p.name!==ye&&(Gh?Uh(v,"name",ye):(g=!0,w=function(){return Rh(p,this)})),o)if(u={values:f(ye),keys:i?w:f(ma),entries:f(ba)},s)for(c in u)(or||g||!(c in v))&&En(v,c,u[c]);else Lh({target:e,proto:!0,forced:or||g},u);return v[ve]!==w&&En(v,ve,w,{name:o}),Wh[e]=w,u},Cn=function(t,e){return{value:t,done:e}},Yh=lt,jn=function(t){yn[vn][t]=!0},wa=le,Aa=B,zh=R.f,Hh=In,_a=Cn,qh=F,Ta="Array Iterator",Kh=Aa.set,Xh=Aa.getterFor(Ta),xa=Hh(Array,"Array",function(t,e){Kh(this,{type:Ta,target:Yh(t),index:0,kind:e})},function(){var t=Xh(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,_a(void 0,!0)):_a(r=="keys"?n:r=="values"?e[n]:[n,e[n]],!1)},"values"),Oa=wa.Arguments=wa.Array;if(jn("keys"),jn("values"),jn("entries"),qh&&Oa.name!=="values")try{zh(Oa,"name",{value:"values"})}catch{}var Pn={exports:{}},ka={},$h=ze,Jh=R,Qh=pe,Mn=function(t,e,r){var n=$h(e);n in t?Jh.f(t,n,Qh(0,r)):t[n]=r},Sa=Ot,Zh=Y,td=Mn,ed=Array,rd=Math.max,Ln=function(t,e,r){for(var n=Zh(t),o=Sa(e,n),i=Sa(r===void 0?n:r,n),s=ed(rd(i-o,0)),a=0;o<i;o++,a++)td(s,a,t[o]);return s.length=a,s},nd=At,od=lt,Ea=St.f,id=Ln,Ia=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ka.f=function(t){return Ia&&nd(t)=="Window"?function(e){try{return Ea(e)}catch{return id(Ia)}}(t):Ea(od(t))};var ad=O(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),ud=O,sd=P,cd=At,Ca=ad,ir=Object.isExtensible,fd=ud(function(){ir(1)})||Ca?function(t){return!!sd(t)&&(!Ca||cd(t)!="ArrayBuffer")&&(!ir||ir(t))}:ir,ld=!O(function(){return Object.isExtensible(Object.preventExtensions({}))}),pd=D,hd=k,dd=qe,vd=P,Rn=W,yd=R.f,ja=St,gd=ka,Dn=fd,md=ld,Pa=!1,it=We("meta"),bd=0,Nn=function(t){yd(t,it,{value:{objectID:"O"+bd++,weakData:{}}})},wd=Pn.exports={enable:function(){wd.enable=function(){},Pa=!0;var t=ja.f,e=hd([].splice),r={};r[it]=1,t(r).length&&(ja.f=function(n){for(var o=t(n),i=0,s=o.length;i<s;i++)if(o[i]===it){e(o,i,1);break}return o},pd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gd.f}))},fastKey:function(t,e){if(!vd(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!Rn(t,it)){if(!Dn(t))return"F";if(!e)return"E";Nn(t)}return t[it].objectID},getWeakData:function(t,e){if(!Rn(t,it)){if(!Dn(t))return!0;if(!e)return!1;Nn(t)}return t[it].weakData},onFreeze:function(t){return md&&Pa&&Dn(t)&&!Rn(t,it)&&Nn(t),t}};dd[it]=!0;var Ad=ot,_d=De,Td=k(k.bind),Yt=function(t,e){return Ad(t),e===void 0?t:_d?Td(t,e):function(){return t.apply(e,arguments)}},xd=le,Od=j("iterator"),kd=Array.prototype,Ma=function(t){return t!==void 0&&(xd.Array===t||kd[Od]===t)},La={};La[j("toStringTag")]="z";var Fn=String(La)==="[object z]",Sd=Fn,Ed=C,ar=At,Id=j("toStringTag"),Cd=Object,jd=ar(function(){return arguments}())=="Arguments",dt=Sd?ar:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Cd(t),Id))=="string"?r:jd?ar(e):(n=ar(e))=="Object"&&Ed(e.callee)?"Arguments":n},Pd=dt,Ra=nn,Md=Nt,Ld=le,Rd=j("iterator"),Un=function(t){if(!Md(t))return Ra(t,Rd)||Ra(t,"@@iterator")||Ld[Pd(t)]},Dd=U,Nd=ot,Fd=$,Ud=Ut,Wd=Un,Bd=TypeError,Da=function(t,e){var r=arguments.length<2?Wd(t):e;if(Nd(r))return Fd(Dd(r,t));throw Bd(Ud(t)+" is not iterable")},Gd=U,Na=$,Vd=nn,Yd=Yt,zd=U,Hd=$,qd=Ut,Kd=Ma,Xd=Y,Fa=Ft,$d=Da,Jd=Un,Ua=function(t,e,r){var n,o;Na(t);try{if(!(n=Vd(t,"return"))){if(e==="throw")throw r;return r}n=Gd(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Na(n),r},Qd=TypeError,ur=function(t,e){this.stopped=t,this.result=e},Wa=ur.prototype,sr=function(t,e,r){var n,o,i,s,a,u,c,f=r&&r.that,h=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),w=Yd(e,f),m=function(b){return n&&Ua(n,"normal",b),new ur(!0,b)},l=function(b){return h?(Hd(b),p?w(b[0],b[1],m):w(b[0],b[1])):p?w(b,m):w(b)};if(g)n=t.iterator;else if(v)n=t;else{if(!(o=Jd(t)))throw Qd(qd(t)+" is not iterable");if(Kd(o)){for(i=0,s=Xd(t);s>i;i++)if((a=l(t[i]))&&Fa(Wa,a))return a;return new ur(!1)}n=$d(t,o)}for(u=g?t.next:n.next;!(c=zd(u,n)).done;){try{a=l(c.value)}catch(b){Ua(n,"throw",b)}if(typeof a=="object"&&a&&Fa(Wa,a))return a}return new ur(!1)},Zd=Ft,tv=TypeError,ge=function(t,e){if(Zd(e,t))return t;throw tv("Incorrect invocation")},Ba=j("iterator"),Ga=!1;try{var ev=0,Va={next:function(){return{done:!!ev++}},return:function(){Ga=!0}};Va[Ba]=function(){return this},Array.from(Va,function(){throw 2})}catch{}var Wn=function(t,e){if(!e&&!Ga)return!1;var r=!1;try{var n={};n[Ba]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},rv=C,nv=P,Ya=Vt,Bn=function(t,e,r){var n,o;return Ya&&rv(n=e.constructor)&&n!==r&&nv(o=n.prototype)&&o!==r.prototype&&Ya(t,o),t},ov=D,iv=S,av=k,za=rr,uv=J,sv=Pn.exports,cv=sr,fv=ge,lv=C,pv=Nt,Gn=P,Vn=O,hv=Wn,dv=de,vv=Bn,yv=J,Ha=function(t,e,r){for(var n in e)yv(t,n,e[n],r);return t},gv=ht,mv=R,bv=F,qa=j("species"),cr=function(t){var e=gv(t),r=mv.f;bv&&e&&!e[qa]&&r(e,qa,{configurable:!0,get:function(){return this}})},wv=R.f,Av=$e,Ka=Ha,_v=Yt,Tv=ge,xv=Nt,Ov=sr,kv=In,Xa=Cn,Sv=cr,me=F,$a=Pn.exports.fastKey,Ja=B.set,Yn=B.getterFor,Ev={getConstructor:function(t,e,r,n){var o=t(function(c,f){Tv(c,i),Ja(c,{type:e,index:Av(null),first:void 0,last:void 0,size:0}),me||(c.size=0),xv(f)||Ov(f,c[n],{that:c,AS_ENTRIES:r})}),i=o.prototype,s=Yn(e),a=function(c,f,h){var g,v,p=s(c),w=u(c,f);return w?w.value=h:(p.last=w={index:v=$a(f,!0),key:f,value:h,previous:g=p.last,next:void 0,removed:!1},p.first||(p.first=w),g&&(g.next=w),me?p.size++:c.size++,v!=="F"&&(p.index[v]=w)),c},u=function(c,f){var h,g=s(c),v=$a(f);if(v!=="F")return g.index[v];for(h=g.first;h;h=h.next)if(h.key==f)return h};return Ka(i,{clear:function(){for(var c=s(this),f=c.index,h=c.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete f[h.index],h=h.next;c.first=c.last=void 0,me?c.size=0:this.size=0},delete:function(c){var f=this,h=s(f),g=u(f,c);if(g){var v=g.next,p=g.previous;delete h.index[g.index],g.removed=!0,p&&(p.next=v),v&&(v.previous=p),h.first==g&&(h.first=v),h.last==g&&(h.last=p),me?h.size--:f.size--}return!!g},forEach:function(c){for(var f,h=s(this),g=_v(c,arguments.length>1?arguments[1]:void 0);f=f?f.next:h.first;)for(g(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(c){return!!u(this,c)}}),Ka(i,r?{get:function(c){var f=u(this,c);return f&&f.value},set:function(c,f){return a(this,c===0?0:c,f)}}:{add:function(c){return a(this,c=c===0?0:c,c)}}),me&&wv(i,"size",{get:function(){return s(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Yn(e),i=Yn(n);kv(t,e,function(s,a){Ja(this,{type:n,target:s,state:o(s),kind:a,last:void 0})},function(){for(var s=i(this),a=s.kind,u=s.last;u&&u.removed;)u=u.previous;return s.target&&(s.last=u=u?u.next:s.state.first)?Xa(a=="keys"?u.key:a=="values"?u.value:[u.key,u.value],!1):(s.target=void 0,Xa(void 0,!0))},r?"entries":"values",!r,!0),Sv(e)}},Iv=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",s=iv[t],a=s&&s.prototype,u=s,c={},f=function(m){var l=av(a[m]);uv(a,m,m=="add"?function(b){return l(this,b===0?0:b),this}:m=="delete"?function(b){return!(o&&!Gn(b))&&l(this,b===0?0:b)}:m=="get"?function(b){return o&&!Gn(b)?void 0:l(this,b===0?0:b)}:m=="has"?function(b){return!(o&&!Gn(b))&&l(this,b===0?0:b)}:function(b,E){return l(this,b===0?0:b,E),this})};if(za(t,!lv(s)||!(o||a.forEach&&!Vn(function(){new s().entries().next()}))))u=r.getConstructor(e,t,n,i),sv.enable();else if(za(t,!0)){var h=new u,g=h[i](o?{}:-0,1)!=h,v=Vn(function(){h.has(1)}),p=hv(function(m){new s(m)}),w=!o&&Vn(function(){for(var m=new s,l=5;l--;)m[i](l,l);return!m.has(-0)});p||((u=e(function(m,l){fv(m,a);var b=vv(new s,m,u);return pv(l)||cv(l,b[i],{that:b,AS_ENTRIES:n}),b})).prototype=a,a.constructor=u),(v||w)&&(f("delete"),f("has"),n&&f("get")),(w||g)&&f(i),o&&a.clear&&delete a.clear}return c[t]=u,ov({global:!0,constructor:!0,forced:u!=s},c),dv(u,t),o||r.setStrong(u,t,n),u};Iv("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ev);var Cv=dt,jv=Fn?{}.toString:function(){return"[object "+Cv(this)+"]"};Fn||J(Object.prototype,"toString",jv,{unsafe:!0});var Pv=dt,Mv=String,zn=function(t){if(Pv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Mv(t)},Hn=k,Lv=xt,Rv=zn,Dv=Ne,Nv=Hn("".charAt),Qa=Hn("".charCodeAt),Fv=Hn("".slice),Uv=function(t){return function(e,r){var n,o,i=Rv(Dv(e)),s=Lv(r),a=i.length;return s<0||s>=a?t?"":void 0:(n=Qa(i,s))<55296||n>56319||s+1===a||(o=Qa(i,s+1))<56320||o>57343?t?Nv(i,s):n:t?Fv(i,s,s+2):o-56320+(n-55296<<10)+65536}},Wv={charAt:Uv(!0)}.charAt,Bv=zn,Za=B,Gv=In,tu=Cn,eu="String Iterator",Vv=Za.set,Yv=Za.getterFor(eu);Gv(String,"String",function(t){Vv(this,{type:eu,string:Bv(t),index:0})},function(){var t,e=Yv(this),r=e.string,n=e.index;return n>=r.length?tu(void 0,!0):(t=Wv(r,n),e.index+=t.length,tu(t,!1))});var qn=Ge("span").classList,ru=qn&&qn.constructor&&qn.constructor.prototype,zv=ru===Object.prototype?void 0:ru,nu=S,ou={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},Hv=zv,be=xa,Kn=kt,iu=j,Xn=iu("iterator"),au=iu("toStringTag"),$n=be.values,uu=function(t,e){if(t){if(t[Xn]!==$n)try{Kn(t,Xn,$n)}catch{t[Xn]=$n}if(t[au]||Kn(t,au,e),ou[e]){for(var r in be)if(t[r]!==be[r])try{Kn(t,r,be[r])}catch{t[r]=be[r]}}}};for(var Jn in ou)uu(nu[Jn]&&nu[Jn].prototype,Jn);uu(Hv,"DOMTokenList");var qv=At,Qn=Array.isArray||function(t){return qv(t)=="Array"},Kv=k,Xv=O,su=C,$v=dt,Jv=_n,cu=function(){},Qv=[],fu=ht("Reflect","construct"),Zn=/^\s*(?:class|function)\b/,Zv=Kv(Zn.exec),ty=!Zn.exec(cu),we=function(t){if(!su(t))return!1;try{return fu(cu,Qv,t),!0}catch{return!1}},lu=function(t){if(!su(t))return!1;switch($v(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ty||!!Zv(Zn,Jv(t))}catch{return!0}};lu.sham=!0;var to=!fu||Xv(function(){var t;return we(we.call)||!we(Object)||!we(function(){t=!0})||t})?lu:we,ey=O,ry=se,ny=j("species"),pu=function(t){return ry>=51||!ey(function(){var e=[];return(e.constructor={})[ny]=function(){return{foo:1}},e[t](Boolean).foo!==1})},fr=k([].slice),oy=D,hu=Qn,iy=to,ay=P,du=Ot,uy=Y,sy=lt,cy=Mn,fy=j,ly=fr,py=pu("slice"),hy=fy("species"),eo=Array,dy=Math.max;oy({target:"Array",proto:!0,forced:!py},{slice:function(t,e){var r,n,o,i=sy(this),s=uy(i),a=du(t,s),u=du(e===void 0?s:e,s);if(hu(i)&&(r=i.constructor,(iy(r)&&(r===eo||hu(r.prototype))||ay(r)&&(r=r[hy])===null)&&(r=void 0),r===eo||r===void 0))return ly(i,a,u);for(n=new(r===void 0?eo:r)(dy(u-a,0)),o=0;a<u;a++,o++)a in i&&cy(n,o,i[a]);return n.length=o,n}});var vy=D,vu=Date,yy=k(vu.prototype.getTime);vy({target:"Date",stat:!0},{now:function(){return yy(new vu)}});var yu=k,gy=J,ro=Date.prototype,gu="Invalid Date",my="toString",by=yu(ro.toString),wy=yu(ro.getTime);String(new Date(NaN))!=gu&&gy(ro,my,function(){var t=wy(this);return t==t?by(this):gu});var Ay=TypeError,mu=Qn,_y=to,Ty=P,xy=j("species"),bu=Array,Oy=function(t){var e;return mu(t)&&(e=t.constructor,(_y(e)&&(e===bu||mu(e.prototype))||Ty(e)&&(e=e[xy])===null)&&(e=void 0)),e===void 0?bu:e},wu=function(t,e){return new(Oy(t))(e===0?0:e)},ky=D,Sy=O,Ey=Qn,Iy=P,Cy=nt,jy=Y,Au=function(t){if(t>9007199254740991)throw Ay("Maximum allowed index exceeded");return t},_u=Mn,Py=wu,My=pu,Ly=se,Tu=j("isConcatSpreadable"),Ry=Ly>=51||!Sy(function(){var t=[];return t[Tu]=!1,t.concat()[0]!==t}),Dy=My("concat"),Ny=function(t){if(!Iy(t))return!1;var e=t[Tu];return e!==void 0?!!e:Ey(t)};ky({target:"Array",proto:!0,arity:1,forced:!Ry||!Dy},{concat:function(t){var e,r,n,o,i,s=Cy(this),a=Py(s,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Ny(i=e===-1?s:arguments[e]))for(o=jy(i),Au(u+o),r=0;r<o;r++,u++)r in i&&_u(a,u,i[r]);else Au(u+1),_u(a,u++,i);return a.length=u,a}});var Fy=k(1 .valueOf),Uy=Ne,Wy=zn,xu=k("".replace),lr=`[
|
||
\v\f\r \u2028\u2029\uFEFF]`,By=RegExp("^"+lr+lr+"*"),Gy=RegExp(lr+lr+"*$"),Vy=function(t){return function(e){var r=Wy(Uy(e));return 1&t&&(r=xu(r,By,"")),2&t&&(r=xu(r,Gy,"")),r}},Yy={trim:Vy(3)},zy=F,no=S,Ou=k,Hy=rr,qy=J,ku=W,Ky=Bn,Xy=Ft,$y=Ye,Su=sn,Jy=O,Qy=St.f,Zy=Gt.f,tg=R.f,eg=Fy,rg=Yy.trim,Eu="Number",vt=no.Number,oo=vt.prototype,ng=no.TypeError,og=Ou("".slice),pr=Ou("".charCodeAt),ig=function(t){var e=Su(t,"number");return typeof e=="bigint"?e:ag(e)},ag=function(t){var e,r,n,o,i,s,a,u,c=Su(t,"number");if($y(c))throw ng("Cannot convert a Symbol value to a number");if(typeof c=="string"&&c.length>2){if(c=rg(c),(e=pr(c,0))===43||e===45){if((r=pr(c,2))===88||r===120)return NaN}else if(e===48){switch(pr(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(i=og(c,2)).length,a=0;a<s;a++)if((u=pr(i,a))<48||u>o)return NaN;return parseInt(i,n)}}return+c};if(Hy(Eu,!vt(" 0o1")||!vt("0b1")||vt("+0x1"))){for(var hr,zt=function(t){var e=arguments.length<1?0:vt(ig(t)),r=this;return Xy(oo,r)&&Jy(function(){eg(r)})?Ky(Object(e),r,zt):e},Iu=zy?Qy(vt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),io=0;Iu.length>io;io++)ku(vt,hr=Iu[io])&&!ku(zt,hr)&&tg(zt,hr,Zy(vt,hr));zt.prototype=oo,oo.constructor=zt,qy(no,Eu,zt,{constructor:!0})}var Ae,Ht,Cu,ao,dr=At(S.process)=="process",ug=to,sg=Ut,cg=TypeError,ju=function(t){if(ug(t))return t;throw cg(sg(t)+" is not a constructor")},Pu=$,fg=ju,lg=Nt,pg=j("species"),uo=function(t,e){var r,n=Pu(t).constructor;return n===void 0||lg(r=Pu(n)[pg])?e:fg(r)},hg=De,Mu=Function.prototype,Lu=Mu.apply,Ru=Mu.call,vr=typeof Reflect=="object"&&Reflect.apply||(hg?Ru.bind(Lu):function(){return Ru.apply(Lu,arguments)}),dg=TypeError,Du=/(?:ipad|iphone|ipod).*applewebkit/i.test(_t),z=S,vg=vr,yg=Yt,Nu=C,gg=W,mg=O,Fu=Hi,bg=fr,Uu=Ge,wg=function(t,e){if(t<e)throw dg("Not enough arguments");return t},Ag=Du,_g=dr,so=z.setImmediate,Wu=z.clearImmediate,Tg=z.process,co=z.Dispatch,xg=z.Function,Bu=z.MessageChannel,Og=z.String,fo=0,_e={},kg="onreadystatechange";try{Ae=z.location}catch{}var lo=function(t){if(gg(_e,t)){var e=_e[t];delete _e[t],e()}},po=function(t){return function(){lo(t)}},Gu=function(t){lo(t.data)},Vu=function(t){z.postMessage(Og(t),Ae.protocol+"//"+Ae.host)};so&&Wu||(so=function(t){wg(arguments.length,1);var e=Nu(t)?t:xg(t),r=bg(arguments,1);return _e[++fo]=function(){vg(e,void 0,r)},Ht(fo),fo},Wu=function(t){delete _e[t]},_g?Ht=function(t){Tg.nextTick(po(t))}:co&&co.now?Ht=function(t){co.now(po(t))}:Bu&&!Ag?(ao=(Cu=new Bu).port2,Cu.port1.onmessage=Gu,Ht=yg(ao.postMessage,ao)):z.addEventListener&&Nu(z.postMessage)&&!z.importScripts&&Ae&&Ae.protocol!=="file:"&&!mg(Vu)?(Ht=Vu,z.addEventListener("message",Gu,!1)):Ht=kg in Uu("script")?function(t){Fu.appendChild(Uu("script")).onreadystatechange=function(){Fu.removeChild(this),lo(t)}}:function(t){setTimeout(po(t),0)});var Te,It,xe,qt,ho,vo,yo,Yu,zu={set:so},Sg=S,Eg=/ipad|iphone|ipod/i.test(_t)&&Sg.Pebble!==void 0,Ig=/web0s(?!.*chrome)/i.test(_t),Ct=S,Hu=Yt,Cg=Gt.f,go=zu.set,jg=Du,Pg=Eg,Mg=Ig,mo=dr,qu=Ct.MutationObserver||Ct.WebKitMutationObserver,Ku=Ct.document,Xu=Ct.process,yr=Ct.Promise,$u=Cg(Ct,"queueMicrotask"),Ju=$u&&$u.value;Ju||(Te=function(){var t,e;for(mo&&(t=Xu.domain)&&t.exit();It;){e=It.fn,It=It.next;try{e()}catch(r){throw It?qt():xe=void 0,r}}xe=void 0,t&&t.enter()},jg||mo||Mg||!qu||!Ku?!Pg&&yr&&yr.resolve?((yo=yr.resolve(void 0)).constructor=yr,Yu=Hu(yo.then,yo),qt=function(){Yu(Te)}):mo?qt=function(){Xu.nextTick(Te)}:(go=Hu(go,Ct),qt=function(){go(Te)}):(ho=!0,vo=Ku.createTextNode(""),new qu(Te).observe(vo,{characterData:!0}),qt=function(){vo.data=ho=!ho}));var Lg=Ju||function(t){var e={fn:t,next:void 0};xe&&(xe.next=e),It||(It=e,qt()),xe=e},Rg=S,bo=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Qu=function(){this.head=null,this.tail=null};Qu.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Dg=Qu,gr=S.Promise,Zu=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Ng=!Zu&&!dr&&typeof window=="object"&&typeof document=="object",Fg=S,Oe=gr,Ug=C,Wg=rr,Bg=_n,Gg=j,Vg=Ng,Yg=Zu,wo=se;Oe&&Oe.prototype;var zg=Gg("species"),ts=!1,es=Ug(Fg.PromiseRejectionEvent),Hg=Wg("Promise",function(){var t=Bg(Oe),e=t!==String(Oe);if(!e&&wo===66)return!0;if(!wo||wo<51||!/native code/.test(t)){var r=new Oe(function(o){o(1)}),n=function(o){o(function(){},function(){})};if((r.constructor={})[zg]=n,!(ts=r.then(function(){})instanceof n))return!0}return!e&&(Vg||Yg)&&!es}),jt={CONSTRUCTOR:Hg,REJECTION_EVENT:es,SUBCLASSING:ts},Kt={},rs=ot,qg=TypeError,Kg=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw qg("Bad Promise constructor");e=n,r=o}),this.resolve=rs(e),this.reject=rs(r)};Kt.f=function(t){return new Kg(t)};var Ao,ns,os,Xg=D,mr=dr,yt=S,Xt=U,is=J,as=Vt,$g=de,Jg=cr,Qg=ot,br=C,Zg=P,tm=ge,em=uo,us=zu.set,_o=Lg,rm=function(t,e){var r=Rg.console;r&&r.error&&(arguments.length==1?r.error(t):r.error(t,e))},nm=bo,om=Dg,ss=B,wr=gr,cs=Kt,Ar="Promise",fs=jt.CONSTRUCTOR,im=jt.REJECTION_EVENT,am=jt.SUBCLASSING,To=ss.getterFor(Ar),um=ss.set,$t=wr&&wr.prototype,Jt=wr,_r=$t,ls=yt.TypeError,xo=yt.document,Oo=yt.process,ko=cs.f,sm=ko,cm=!!(xo&&xo.createEvent&&yt.dispatchEvent),ps="unhandledrejection",hs=function(t){var e;return!(!Zg(t)||!br(e=t.then))&&e},ds=function(t,e){var r,n,o,i=e.value,s=e.state==1,a=s?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{a?(s||(e.rejection===2&&lm(e),e.rejection=1),a===!0?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?c(ls("Promise-chain cycle")):(n=hs(r))?Xt(n,r,u,c):u(r)):c(i)}catch(h){f&&!o&&f.exit(),c(h)}},vs=function(t,e){t.notified||(t.notified=!0,_o(function(){for(var r,n=t.reactions;r=n.get();)ds(r,t);t.notified=!1,e&&!t.rejection&&fm(t)}))},ys=function(t,e,r){var n,o;cm?((n=xo.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),yt.dispatchEvent(n)):n={promise:e,reason:r},!im&&(o=yt["on"+t])?o(n):t===ps&&rm("Unhandled promise rejection",r)},fm=function(t){Xt(us,yt,function(){var e,r=t.facade,n=t.value;if(gs(t)&&(e=nm(function(){mr?Oo.emit("unhandledRejection",n,r):ys(ps,r,n)}),t.rejection=mr||gs(t)?2:1,e.error))throw e.value})},gs=function(t){return t.rejection!==1&&!t.parent},lm=function(t){Xt(us,yt,function(){var e=t.facade;mr?Oo.emit("rejectionHandled",e):ys("rejectionhandled",e,t.value)})},Qt=function(t,e,r){return function(n){t(e,n,r)}},Zt=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,vs(t,!0))},So=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ls("Promise can't be resolved itself");var n=hs(e);n?_o(function(){var o={done:!1};try{Xt(n,e,Qt(So,o,t),Qt(Zt,o,t))}catch(i){Zt(o,i,t)}}):(t.value=e,t.state=1,vs(t,!1))}catch(o){Zt({done:!1},o,t)}}};if(fs&&(_r=(Jt=function(t){tm(this,_r),Qg(t),Xt(Ao,this);var e=To(this);try{t(Qt(So,e),Qt(Zt,e))}catch(r){Zt(e,r)}}).prototype,(Ao=function(t){um(this,{type:Ar,done:!1,notified:!1,parent:!1,reactions:new om,rejection:!1,state:0,value:void 0})}).prototype=is(_r,"then",function(t,e){var r=To(this),n=ko(em(this,Jt));return r.parent=!0,n.ok=!br(t)||t,n.fail=br(e)&&e,n.domain=mr?Oo.domain:void 0,r.state==0?r.reactions.add(n):_o(function(){ds(n,r)}),n.promise}),ns=function(){var t=new Ao,e=To(t);this.promise=t,this.resolve=Qt(So,e),this.reject=Qt(Zt,e)},cs.f=ko=function(t){return t===Jt||t===void 0?new ns(t):sm(t)},br(wr)&&$t!==Object.prototype)){os=$t.then,am||is($t,"then",function(t,e){var r=this;return new Jt(function(n,o){Xt(os,r,n,o)}).then(t,e)},{unsafe:!0});try{delete $t.constructor}catch{}as&&as($t,_r)}Xg({global:!0,constructor:!0,wrap:!0,forced:fs},{Promise:Jt}),$g(Jt,Ar,!1),Jg(Ar);var pm=gr,ms=jt.CONSTRUCTOR||!Wn(function(t){pm.all(t).then(void 0,function(){})}),hm=U,dm=ot,vm=Kt,ym=bo,gm=sr;D({target:"Promise",stat:!0,forced:ms},{all:function(t){var e=this,r=vm.f(e),n=r.resolve,o=r.reject,i=ym(function(){var s=dm(e.resolve),a=[],u=0,c=1;gm(t,function(f){var h=u++,g=!1;c++,hm(s,e,f).then(function(v){g||(g=!0,a[h]=v,--c||n(a))},o)}),--c||n(a)});return i.error&&o(i.value),r.promise}});var mm=D,bm=jt.CONSTRUCTOR,Eo=gr,wm=ht,Am=C,_m=J,bs=Eo&&Eo.prototype;if(mm({target:"Promise",proto:!0,forced:bm,real:!0},{catch:function(t){return this.then(void 0,t)}}),Am(Eo)){var ws=wm("Promise").prototype.catch;bs.catch!==ws&&_m(bs,"catch",ws,{unsafe:!0})}var Tm=U,xm=ot,Om=Kt,km=bo,Sm=sr;D({target:"Promise",stat:!0,forced:ms},{race:function(t){var e=this,r=Om.f(e),n=r.reject,o=km(function(){var i=xm(e.resolve);Sm(t,function(s){Tm(i,e,s).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var Em=U,Im=Kt;D({target:"Promise",stat:!0,forced:jt.CONSTRUCTOR},{reject:function(t){var e=Im.f(this);return Em(e.reject,void 0,t),e.promise}});var Cm=$,jm=P,Pm=Kt,Mm=D,Lm=jt.CONSTRUCTOR,Rm=function(t,e){if(Cm(t),jm(e)&&e.constructor===t)return e;var r=Pm.f(t);return(0,r.resolve)(e),r.promise};ht("Promise"),Mm({target:"Promise",stat:!0,forced:Lm},{resolve:function(t){return Rm(this,t)}}),window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;var at,Dm=function(){if(at)return at;at=new window.AudioContext({sampleRate:48e3});var t=function e(){at.state==="suspended"?(at.resume(),document.removeEventListener("click",e)):at.state==="interrupted"?at.resume():document.removeEventListener("click",e)};return document.addEventListener("click",t),at.onstatechange=function(){t()},at},ke="input",Tr="output",Nm="schedule.cloud-rtc.com",Fm="schedule.rtc.tencentcloud.com";function Um(t){return Wm(t)?Fm:Nm}var Wm=function(t){return(t=Number(t))>0&&t<14e8};function Bm(t){return As.apply(this,arguments)}function As(){return(As=ft(M().mark(function t(e){var r,n,o,i,s,a,u,c,f,h,g,v,p,w,m;return M().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=e.sdkAppId,n=e.userId,o=e.userSig,i=e.timestamp,s=Um(r),a="https://".concat(s,"/api/v1/audioAiAuth?sdkAppId=").concat(r,"&userId=").concat(n,"&userSig=").concat(o,"×tamp=").concat(i),l.next=5,fetch(a);case 5:return u=l.sent,l.next=8,u.json();case 8:if(c=l.sent,f=c.data,h=f.errCode,g=f.errMsg,v=f.sign,(p=f.status)!=="1"){l.next=16;break}return l.abrupt("return",{auth:!0,sign:v,status:p,message:g});case 16:w="Init RTCAIDenoiser failed.",m="",l.t0=h,l.next=l.t0===1?21:l.t0===2?23:l.t0===3?25:l.t0===4?27:l.t0===5?29:l.t0===6?31:33;break;case 21:return m="Please check your params.",l.abrupt("break",33);case 23:return m="You need to buy packages. Refer to: https://cloud.tencent.com/document/product/647/44247",l.abrupt("break",33);case 25:return m="Server is invalid. Please contact our engineer. ",l.abrupt("break",33);case 27:return m="Your packages is not active. Refer to: https://cloud.tencent.com/document/product/647/44247",l.abrupt("break",33);case 29:return m="Your packages is expired. Refer to: https://cloud.tencent.com/document/product/647/44247",l.abrupt("break",33);case 31:return m="Your version is not supported.",l.abrupt("break",33);case 33:return l.abrupt("return",{auth:!1,status:p,message:g?"".concat(w," Reason: ").concat(g,". ").concat(m):"".concat(w,", ").concat(m)});case 34:case"end":return l.stop()}},t)}))).apply(this,arguments)}var _s={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function i(u,c,f,h,g){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new o(f,h||u,g),p=r?r+c:c;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],v]:u._events[p].push(v):(u._events[p]=v,u._eventsCount++),u}function s(u,c){--u._eventsCount==0?u._events=new n:delete u._events[c]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var u,c,f=[];if(this._eventsCount===0)return f;for(c in u=this._events)e.call(u,c)&&f.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(u)):f},a.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,g=f.length,v=new Array(g);h<g;h++)v[h]=f[h].fn;return v},a.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},a.prototype.emit=function(u,c,f,h,g,v){var p=r?r+u:u;if(!this._events[p])return!1;var w,m,l=this._events[p],b=arguments.length;if(l.fn){switch(l.once&&this.removeListener(u,l.fn,void 0,!0),b){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,c),!0;case 3:return l.fn.call(l.context,c,f),!0;case 4:return l.fn.call(l.context,c,f,h),!0;case 5:return l.fn.call(l.context,c,f,h,g),!0;case 6:return l.fn.call(l.context,c,f,h,g,v),!0}for(m=1,w=new Array(b-1);m<b;m++)w[m-1]=arguments[m];l.fn.apply(l.context,w)}else{var E,V=l.length;for(m=0;m<V;m++)switch(l[m].once&&this.removeListener(u,l[m].fn,void 0,!0),b){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,c);break;case 3:l[m].fn.call(l[m].context,c,f);break;case 4:l[m].fn.call(l[m].context,c,f,h);break;default:if(!w)for(E=1,w=new Array(b-1);E<b;E++)w[E-1]=arguments[E];l[m].fn.apply(l[m].context,w)}}return!0},a.prototype.on=function(u,c,f){return i(this,u,c,f,!1)},a.prototype.once=function(u,c,f){return i(this,u,c,f,!0)},a.prototype.removeListener=function(u,c,f,h){var g=r?r+u:u;if(!this._events[g])return this;if(!c)return s(this,g),this;var v=this._events[g];if(v.fn)v.fn!==c||h&&!v.once||f&&v.context!==f||s(this,g);else{for(var p=0,w=[],m=v.length;p<m;p++)(v[p].fn!==c||h&&!v[p].once||f&&v[p].context!==f)&&w.push(v[p]);w.length?this._events[g]=w.length===1?w[0]:w:s(this,g)}return this},a.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&s(this,c)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a})(_s);var Gm=_s.exports,Io=typeof ArrayBuffer<"u"&&typeof DataView<"u",Vm=xt,Ym=Wt,zm=RangeError,Ts=function(t){if(t===void 0)return 0;var e=Vm(t),r=Ym(e);if(e!==r)throw zm("Wrong length or index");return r},Hm=Array,qm=Math.abs,ut=Math.pow,Km=Math.floor,Xm=Math.log,$m=Math.LN2,Jm=nt,xs=Ot,Qm=Y,Os=function(t){for(var e=Jm(this),r=Qm(e),n=arguments.length,o=xs(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,s=i===void 0?r:xs(i,r);s>o;)e[o++]=t;return e},xr=S,Co=k,jo=F,Zm=Io,ks=Ze,Ss=kt,Es=Ha,Po=O,Or=ge,tb=xt,eb=Wt,kr=Ts,Is={pack:function(t,e,r){var n,o,i,s=Hm(r),a=8*r-e-1,u=(1<<a)-1,c=u>>1,f=e===23?ut(2,-24)-ut(2,-77):0,h=t<0||t===0&&1/t<0?1:0,g=0;for((t=qm(t))!=t||t===1/0?(o=t!=t?1:0,n=u):(n=Km(Xm(t)/$m),t*(i=ut(2,-n))<1&&(n--,i*=2),(t+=n+c>=1?f/i:f*ut(2,1-c))*i>=2&&(n++,i/=2),n+c>=u?(o=0,n=u):n+c>=1?(o=(t*i-1)*ut(2,e),n+=c):(o=t*ut(2,c-1)*ut(2,e),n=0));e>=8;)s[g++]=255&o,o/=256,e-=8;for(n=n<<e|o,a+=e;a>0;)s[g++]=255&n,n/=256,a-=8;return s[--g]|=128*h,s},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,s=i>>1,a=o-7,u=n-1,c=t[u--],f=127&c;for(c>>=7;a>0;)f=256*f+t[u--],a-=8;for(r=f&(1<<-a)-1,f>>=-a,a+=e;a>0;)r=256*r+t[u--],a-=8;if(f===0)f=1-s;else{if(f===i)return r?NaN:c?-1/0:1/0;r+=ut(2,e),f-=s}return(c?-1:1)*r*ut(2,f-e)}},rb=nr,Cs=Vt,nb=St.f,ob=R.f,ib=Os,ab=Ln,js=de,ub=ks.PROPER,Ps=ks.CONFIGURABLE,te=B.get,Ms=B.set,Mo="ArrayBuffer",sb="DataView",Ls="Wrong index",K=xr.ArrayBuffer,Q=K,ee=Q&&Q.prototype,st=xr.DataView,Pt=st&&st.prototype,Rs=Object.prototype,cb=xr.Array,Sr=xr.RangeError,fb=Co(ib),lb=Co([].reverse),Ds=Is.pack,Ns=Is.unpack,Fs=function(t){return[255&t]},Us=function(t){return[255&t,t>>8&255]},Ws=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Bs=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},pb=function(t){return Ds(t,23,4)},hb=function(t){return Ds(t,52,8)},Er=function(t,e){ob(t.prototype,e,{get:function(){return te(this)[e]}})},gt=function(t,e,r,n){var o=kr(r),i=te(t);if(o+e>i.byteLength)throw Sr(Ls);var s=te(i.buffer).bytes,a=o+i.byteOffset,u=ab(s,a,a+e);return n?u:lb(u)},mt=function(t,e,r,n,o,i){var s=kr(r),a=te(t);if(s+e>a.byteLength)throw Sr(Ls);for(var u=te(a.buffer).bytes,c=s+a.byteOffset,f=n(+o),h=0;h<e;h++)u[c+h]=f[i?h:e-h-1]};if(Zm){var Gs=ub&&K.name!==Mo;if(Po(function(){K(1)})&&Po(function(){new K(-1)})&&!Po(function(){return new K,new K(1.5),new K(NaN),K.length!=1||Gs&&!Ps}))Gs&&Ps&&Ss(K,"name",Mo);else{(Q=function(t){return Or(this,ee),new K(kr(t))}).prototype=ee;for(var Lo,Vs=nb(K),Ys=0;Vs.length>Ys;)(Lo=Vs[Ys++])in Q||Ss(Q,Lo,K[Lo]);ee.constructor=Q}Cs&&rb(Pt)!==Rs&&Cs(Pt,Rs);var Ir=new st(new Q(2)),zs=Co(Pt.setInt8);Ir.setInt8(0,2147483648),Ir.setInt8(1,2147483649),!Ir.getInt8(0)&&Ir.getInt8(1)||Es(Pt,{setInt8:function(t,e){zs(this,t,e<<24>>24)},setUint8:function(t,e){zs(this,t,e<<24>>24)}},{unsafe:!0})}else ee=(Q=function(t){Or(this,ee);var e=kr(t);Ms(this,{bytes:fb(cb(e),0),byteLength:e}),jo||(this.byteLength=e)}).prototype,Pt=(st=function(t,e,r){Or(this,Pt),Or(t,ee);var n=te(t).byteLength,o=tb(e);if(o<0||o>n)throw Sr("Wrong offset");if(o+(r=r===void 0?n-o:eb(r))>n)throw Sr("Wrong length");Ms(this,{buffer:t,byteLength:r,byteOffset:o}),jo||(this.buffer=t,this.byteLength=r,this.byteOffset=o)}).prototype,jo&&(Er(Q,"byteLength"),Er(st,"buffer"),Er(st,"byteLength"),Er(st,"byteOffset")),Es(Pt,{getInt8:function(t){return gt(this,1,t)[0]<<24>>24},getUint8:function(t){return gt(this,1,t)[0]},getInt16:function(t){var e=gt(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=gt(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Bs(gt(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Bs(gt(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Ns(gt(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Ns(gt(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){mt(this,1,t,Fs,e)},setUint8:function(t,e){mt(this,1,t,Fs,e)},setInt16:function(t,e){mt(this,2,t,Us,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){mt(this,2,t,Us,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){mt(this,4,t,Ws,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){mt(this,4,t,Ws,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){mt(this,4,t,pb,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){mt(this,8,t,hb,e,arguments.length>2?arguments[2]:void 0)}});js(Q,Mo),js(st,sb);var Se={ArrayBuffer:Q,DataView:st},db=D,Ro=k,vb=O,Hs=$,qs=Ot,yb=Wt,gb=uo,Do=Se.ArrayBuffer,No=Se.DataView,Ks=No.prototype,Xs=Ro(Do.prototype.slice),mb=Ro(Ks.getUint8),bb=Ro(Ks.setUint8);db({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:vb(function(){return!new Do(2).slice(1,void 0).byteLength})},{slice:function(t,e){if(Xs&&e===void 0)return Xs(Hs(this),t);for(var r=Hs(this).byteLength,n=qs(t,r),o=qs(e===void 0?r:e,r),i=new(gb(this,Do))(yb(o-n)),s=new No(this),a=new No(i),u=0;n<o;)bb(a,u++,mb(s,n++));return i}});var G,re,Cr,Fo={exports:{}},wb=Io,$s=F,H=S,Js=C,Uo=P,Ee=W,Qs=dt,Ab=Ut,_b=kt,Tb=J,xb=R.f,Ob=Ft,jr=nr,Ie=Vt,kb=j,Sb=We,Zs=B.enforce,Eb=B.get,Pr=H.Int8Array,Wo=Pr&&Pr.prototype,tc=H.Uint8ClampedArray,ec=tc&&tc.prototype,Mt=Pr&&jr(Pr),Z=Wo&&jr(Wo),Ib=Object.prototype,Bo=H.TypeError,rc=kb("toStringTag"),Go=Sb("TYPED_ARRAY_TAG"),Cb="TypedArrayConstructor",bt=wb&&!!Ie&&Qs(H.opera)!=="Opera",nc=!1,ne={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},oc={BigInt64Array:8,BigUint64Array:8},ic=function(t){var e=jr(t);if(Uo(e)){var r=Eb(e);return r&&Ee(r,Cb)?r.TypedArrayConstructor:ic(e)}},ac=function(t){if(!Uo(t))return!1;var e=Qs(t);return Ee(ne,e)||Ee(oc,e)};for(G in ne)(Cr=(re=H[G])&&re.prototype)?Zs(Cr).TypedArrayConstructor=re:bt=!1;for(G in oc)(Cr=(re=H[G])&&re.prototype)&&(Zs(Cr).TypedArrayConstructor=re);if((!bt||!Js(Mt)||Mt===Function.prototype)&&(Mt=function(){throw Bo("Incorrect invocation")},bt))for(G in ne)H[G]&&Ie(H[G],Mt);if((!bt||!Z||Z===Ib)&&(Z=Mt.prototype,bt))for(G in ne)H[G]&&Ie(H[G].prototype,Z);if(bt&&jr(ec)!==Z&&Ie(ec,Z),$s&&!Ee(Z,rc))for(G in nc=!0,xb(Z,rc,{get:function(){return Uo(this)?this[Go]:void 0}}),ne)H[G]&&_b(H[G],Go,G);var _={NATIVE_ARRAY_BUFFER_VIEWS:bt,TYPED_ARRAY_TAG:nc&&Go,aTypedArray:function(t){if(ac(t))return t;throw Bo("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Js(t)&&(!Ie||Ob(Mt,t)))return t;throw Bo(Ab(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if($s){if(r)for(var o in ne){var i=H[o];if(i&&Ee(i.prototype,t))try{delete i.prototype[t]}catch{try{i.prototype[t]=e}catch{}}}Z[t]&&!r||Tb(Z,t,r?e:bt&&Wo[t]||e,n)}},getTypedArrayConstructor:ic,isTypedArray:ac,TypedArray:Mt,TypedArrayPrototype:Z},uc=S,Vo=O,jb=Wn,Pb=_.NATIVE_ARRAY_BUFFER_VIEWS,Mb=uc.ArrayBuffer,Lt=uc.Int8Array,Lb=!Pb||!Vo(function(){Lt(1)})||!Vo(function(){new Lt(-1)})||!jb(function(t){new Lt,new Lt(null),new Lt(1.5),new Lt(t)},!0)||Vo(function(){return new Lt(new Mb(2),1,void 0).length!==1}),Rb=P,Db=Math.floor,Nb=Number.isInteger||function(t){return!Rb(t)&&isFinite(t)&&Db(t)===t},Fb=xt,Ub=RangeError,Wb=function(t){var e=Fb(t);if(e<0)throw Ub("The argument can't be less than 0");return e},Bb=RangeError,sc=function(t,e){var r=Wb(t);if(r%e)throw Bb("Wrong offset");return r},Gb=dt,Vb=k("".slice),Yb=sn,zb=TypeError,cc=function(t){var e=Yb(t,"number");if(typeof e=="number")throw zb("Can't convert number to bigint");return BigInt(e)},Hb=Yt,qb=U,Kb=ju,Xb=nt,$b=Y,Jb=Da,Qb=Un,Zb=Ma,tw=function(t){return Vb(Gb(t),0,3)==="Big"},ew=_.aTypedArrayConstructor,rw=cc,nw=Yt,ow=Xr,iw=nt,aw=Y,uw=wu,fc=k([].push),Rt=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,s=t==7,a=t==5||i;return function(u,c,f,h){for(var g,v,p=iw(u),w=ow(p),m=nw(c,f),l=aw(w),b=0,E=h||uw,V=e?E(u,l):r||s?E(u,0):void 0;l>b;b++)if((a||b in w)&&(v=m(g=w[b],b,p),t))if(e)V[b]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:fc(V,g)}else switch(t){case 4:return!1;case 7:fc(V,g)}return i?-1:n||o?o:V}},wt={forEach:Rt(0),map:Rt(1),filter:Rt(2),some:Rt(3),every:Rt(4),find:Rt(5),findIndex:Rt(6)},lc=D,pc=S,hc=U,sw=F,cw=Lb,oe=_,dc=Se,vc=ge,fw=pe,Ce=kt,lw=Nb,pw=Wt,yc=Ts,Yo=sc,gc=ze,je=W,hw=dt,zo=P,dw=Ye,vw=$e,yw=Ft,Mr=Vt,gw=St.f,mc=function(t){var e,r,n,o,i,s,a,u,c=Kb(this),f=Xb(t),h=arguments.length,g=h>1?arguments[1]:void 0,v=g!==void 0,p=Qb(f);if(p&&!Zb(p))for(u=(a=Jb(f,p)).next,f=[];!(s=qb(u,a)).done;)f.push(s.value);for(v&&h>2&&(g=Hb(g,arguments[2])),r=$b(f),n=new(ew(c))(r),o=tw(n),e=0;r>e;e++)i=v?g(f[e],e):f[e],n[e]=o?rw(i):+i;return n},mw=wt.forEach,bw=cr,bc=R,wc=Gt,ww=Bn,Ho=B.get,Aw=B.set,_w=B.enforce,qo=bc.f,Tw=wc.f,xw=Math.round,Ko=pc.RangeError,Ac=dc.ArrayBuffer,Ow=Ac.prototype,kw=dc.DataView,Lr=oe.NATIVE_ARRAY_BUFFER_VIEWS,_c=oe.TYPED_ARRAY_TAG,Tc=oe.TypedArray,Pe=oe.TypedArrayPrototype,Sw=oe.aTypedArrayConstructor,Xo=oe.isTypedArray,Rr="BYTES_PER_ELEMENT",$o="Wrong length",xc=function(t,e){Sw(t);for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},Dr=function(t,e){qo(t,e,{get:function(){return Ho(this)[e]}})},Oc=function(t){var e;return yw(Ow,t)||(e=hw(t))=="ArrayBuffer"||e=="SharedArrayBuffer"},kc=function(t,e){return Xo(t)&&!dw(e)&&e in t&&lw(+e)&&e>=0},Sc=function(t,e){return e=gc(e),kc(t,e)?fw(2,t[e]):Tw(t,e)},Ec=function(t,e,r){return e=gc(e),!(kc(t,e)&&zo(r)&&je(r,"value"))||je(r,"get")||je(r,"set")||r.configurable||je(r,"writable")&&!r.writable||je(r,"enumerable")&&!r.enumerable?qo(t,e,r):(t[e]=r.value,t)};sw?(Lr||(wc.f=Sc,bc.f=Ec,Dr(Pe,"buffer"),Dr(Pe,"byteOffset"),Dr(Pe,"byteLength"),Dr(Pe,"length")),lc({target:"Object",stat:!0,forced:!Lr},{getOwnPropertyDescriptor:Sc,defineProperty:Ec}),Fo.exports=function(t,e,r){var n=t.match(/\d+$/)[0]/8,o=t+(r?"Clamped":"")+"Array",i="get"+t,s="set"+t,a=pc[o],u=a,c=u&&u.prototype,f={},h=function(v,p){qo(v,p,{get:function(){return function(w,m){var l=Ho(w);return l.view[i](m*n+l.byteOffset,!0)}(this,p)},set:function(w){return function(m,l,b){var E=Ho(m);r&&(b=(b=xw(b))<0?0:b>255?255:255&b),E.view[s](l*n+E.byteOffset,b,!0)}(this,p,w)},enumerable:!0})};Lr?cw&&(u=e(function(v,p,w,m){return vc(v,c),ww(zo(p)?Oc(p)?m!==void 0?new a(p,Yo(w,n),m):w!==void 0?new a(p,Yo(w,n)):new a(p):Xo(p)?xc(u,p):hc(mc,u,p):new a(yc(p)),v,u)}),Mr&&Mr(u,Tc),mw(gw(a),function(v){v in u||Ce(u,v,a[v])}),u.prototype=c):(u=e(function(v,p,w,m){vc(v,c);var l,b,E,V=0,ue=0;if(zo(p)){if(!Oc(p))return Xo(p)?xc(u,p):hc(mc,u,p);l=p,ue=Yo(w,n);var Dt=p.byteLength;if(m===void 0){if(Dt%n||(b=Dt-ue)<0)throw Ko($o)}else if((b=pw(m)*n)+ue>Dt)throw Ko($o);E=b/n}else E=yc(p),l=new Ac(b=E*n);for(Aw(v,{buffer:l,byteOffset:ue,byteLength:b,length:E,view:new kw(l)});V<E;)h(v,V++)}),Mr&&Mr(u,Tc),c=u.prototype=vw(Pe)),c.constructor!==u&&Ce(c,"constructor",u),_w(c).TypedArrayConstructor=u,_c&&Ce(c,_c,o);var g=u!=a;f[o]=u,lc({global:!0,constructor:!0,forced:g,sham:!Lr},f),Rr in u||Ce(u,Rr,n),Rr in c||Ce(c,Rr,n),bw(o)}):Fo.exports=function(){},(0,Fo.exports)("Float32",function(t){return function(e,r,n){return t(this,e,r,n)}});var Ic=Ut,Ew=TypeError,Iw=nt,Jo=Ot,Cw=Y,jw=function(t,e){if(!delete t[e])throw Ew("Cannot delete property "+Ic(e)+" of "+Ic(t))},Pw=Math.min,Mw=[].copyWithin||function(t,e){var r=Iw(this),n=Cw(r),o=Jo(t,n),i=Jo(e,n),s=arguments.length>2?arguments[2]:void 0,a=Pw((s===void 0?n:Jo(s,n))-i,n-o),u=1;for(i<o&&o<i+a&&(u=-1,i+=a-1,o+=a-1);a-- >0;)i in r?r[o]=r[i]:jw(r,o),o+=u,i+=u;return r},Cc=_,Lw=k(Mw),Rw=Cc.aTypedArray;(0,Cc.exportTypedArrayMethod)("copyWithin",function(t,e){return Lw(Rw(this),t,e,arguments.length>2?arguments[2]:void 0)});var Dw=wt.every,Nw=_.aTypedArray;(0,_.exportTypedArrayMethod)("every",function(t){return Dw(Nw(this),t,arguments.length>1?arguments[1]:void 0)});var Fw=Os,Uw=cc,Ww=dt,Bw=U,Gw=O,Vw=_.aTypedArray,Yw=_.exportTypedArrayMethod,zw=k("".slice);Yw("fill",function(t){var e=arguments.length;Vw(this);var r=zw(Ww(this),0,3)==="Big"?Uw(t):+t;return Bw(Fw,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)},Gw(function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),t!==1}));var Hw=Y,qw=uo,Kw=_.aTypedArrayConstructor,Xw=_.getTypedArrayConstructor,Nr=function(t){return Kw(qw(t,Xw(t)))},$w=function(t,e){for(var r=0,n=Hw(e),o=new t(n);n>r;)o[r]=e[r++];return o},Jw=Nr,Qw=wt.filter,Zw=function(t,e){return $w(Jw(t),e)},t0=_.aTypedArray;(0,_.exportTypedArrayMethod)("filter",function(t){var e=Qw(t0(this),t,arguments.length>1?arguments[1]:void 0);return Zw(this,e)});var e0=wt.find,r0=_.aTypedArray;(0,_.exportTypedArrayMethod)("find",function(t){return e0(r0(this),t,arguments.length>1?arguments[1]:void 0)});var n0=wt.findIndex,o0=_.aTypedArray;(0,_.exportTypedArrayMethod)("findIndex",function(t){return n0(o0(this),t,arguments.length>1?arguments[1]:void 0)});var i0=wt.forEach,a0=_.aTypedArray;(0,_.exportTypedArrayMethod)("forEach",function(t){i0(a0(this),t,arguments.length>1?arguments[1]:void 0)});var u0=fn.includes,s0=_.aTypedArray;(0,_.exportTypedArrayMethod)("includes",function(t){return u0(s0(this),t,arguments.length>1?arguments[1]:void 0)});var c0=fn.indexOf,f0=_.aTypedArray;(0,_.exportTypedArrayMethod)("indexOf",function(t){return c0(f0(this),t,arguments.length>1?arguments[1]:void 0)});var l0=S,p0=O,Qo=k,jc=_,Zo=xa,ti=j("iterator"),Pc=l0.Uint8Array,h0=Qo(Zo.values),d0=Qo(Zo.keys),v0=Qo(Zo.entries),ei=jc.aTypedArray,Fr=jc.exportTypedArrayMethod,ie=Pc&&Pc.prototype,Ur=!p0(function(){ie[ti].call([1])}),Mc=!!ie&&ie.values&&ie[ti]===ie.values&&ie.values.name==="values",Lc=function(){return h0(ei(this))};Fr("entries",function(){return v0(ei(this))},Ur),Fr("keys",function(){return d0(ei(this))},Ur),Fr("values",Lc,Ur||!Mc,{name:"values"}),Fr(ti,Lc,Ur||!Mc,{name:"values"});var y0=_.aTypedArray,g0=_.exportTypedArrayMethod,m0=k([].join);g0("join",function(t){return m0(y0(this),t)});var b0=O,w0=vr,A0=lt,_0=xt,T0=Y,x0=function(t,e){var r=[][t];return!!r&&b0(function(){r.call(null,e||function(){return 1},1)})},O0=Math.min,ri=[].lastIndexOf,Rc=!!ri&&1/[1].lastIndexOf(1,-0)<0,k0=x0("lastIndexOf"),S0=Rc||!k0?function(t){if(Rc)return w0(ri,this,arguments)||0;var e=A0(this),r=T0(e),n=r-1;for(arguments.length>1&&(n=O0(n,_0(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:ri,E0=vr,I0=S0,C0=_.aTypedArray;(0,_.exportTypedArrayMethod)("lastIndexOf",function(t){var e=arguments.length;return E0(I0,C0(this),e>1?[t,arguments[1]]:[t])});var j0=wt.map,P0=Nr,M0=_.aTypedArray;(0,_.exportTypedArrayMethod)("map",function(t){return j0(M0(this),t,arguments.length>1?arguments[1]:void 0,function(e,r){return new(P0(e))(r)})});var L0=ot,R0=nt,D0=Xr,N0=Y,F0=TypeError,Dc=function(t){return function(e,r,n,o){L0(r);var i=R0(e),s=D0(i),a=N0(i),u=t?a-1:0,c=t?-1:1;if(n<2)for(;;){if(u in s){o=s[u],u+=c;break}if(u+=c,t?u<0:a<=u)throw F0("Reduce of empty array with no initial value")}for(;t?u>=0:a>u;u+=c)u in s&&(o=r(o,s[u],u,i));return o}},Nc={left:Dc(!1),right:Dc(!0)},U0=Nc.left,W0=_.aTypedArray;(0,_.exportTypedArrayMethod)("reduce",function(t){var e=arguments.length;return U0(W0(this),t,e,e>1?arguments[1]:void 0)});var B0=Nc.right,G0=_.aTypedArray;(0,_.exportTypedArrayMethod)("reduceRight",function(t){var e=arguments.length;return B0(G0(this),t,e,e>1?arguments[1]:void 0)});var V0=_.aTypedArray,Y0=_.exportTypedArrayMethod,z0=Math.floor;Y0("reverse",function(){for(var t,e=this,r=V0(e).length,n=z0(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e});var Fc=S,Uc=U,ni=_,H0=Y,q0=sc,K0=nt,Wc=O,X0=Fc.RangeError,oi=Fc.Int8Array,Bc=oi&&oi.prototype,Gc=Bc&&Bc.set,$0=ni.aTypedArray,J0=ni.exportTypedArrayMethod,ii=!Wc(function(){var t=new Uint8ClampedArray(2);return Uc(Gc,t,{length:1,0:3},1),t[1]!==3}),Q0=ii&&ni.NATIVE_ARRAY_BUFFER_VIEWS&&Wc(function(){var t=new oi(2);return t.set(1),t.set("2",1),t[0]!==0||t[1]!==2});J0("set",function(t){$0(this);var e=q0(arguments.length>1?arguments[1]:void 0,1),r=K0(t);if(ii)return Uc(Gc,this,r,e);var n=this.length,o=H0(r),i=0;if(o+e>n)throw X0("Wrong length");for(;i<o;)this[e+i]=r[i++]},!ii||Q0);var Z0=Nr,tA=fr,eA=_.aTypedArray;(0,_.exportTypedArrayMethod)("slice",function(t,e){for(var r=tA(eA(this),t,e),n=Z0(this),o=0,i=r.length,s=new n(i);i>o;)s[o]=r[o++];return s},O(function(){new Int8Array(1).slice()}));var rA=wt.some,nA=_.aTypedArray;(0,_.exportTypedArrayMethod)("some",function(t){return rA(nA(this),t,arguments.length>1?arguments[1]:void 0)});var Vc=Ln,oA=Math.floor,ai=function(t,e){var r=t.length,n=oA(r/2);return r<8?iA(t,e):aA(t,ai(Vc(t,0,n),e),ai(Vc(t,n),e),e)},iA=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},aA=function(t,e,r,n){for(var o=e.length,i=r.length,s=0,a=0;s<o||a<i;)t[s+a]=s<o&&a<i?n(e[s],r[a])<=0?e[s++]:r[a++]:s<o?e[s++]:r[a++];return t},uA=ai,Yc=_t.match(/firefox\/(\d+)/i),sA=!!Yc&&+Yc[1],cA=/MSIE|Trident/.test(_t),zc=_t.match(/AppleWebKit\/(\d+)\./),fA=!!zc&&+zc[1],lA=k,ui=O,pA=ot,hA=uA,Hc=sA,dA=cA,qc=se,Kc=fA,vA=_.aTypedArray,yA=_.exportTypedArrayMethod,Me=S.Uint16Array,ae=Me&&lA(Me.prototype.sort),gA=!(!ae||ui(function(){ae(new Me(2),null)})&&ui(function(){ae(new Me(2),{})})),Xc=!!ae&&!ui(function(){if(qc)return qc<74;if(Hc)return Hc<67;if(dA)return!0;if(Kc)return Kc<602;var t,e,r=new Me(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(ae(r,function(o,i){return(o/4|0)-(i/4|0)}),t=0;t<516;t++)if(r[t]!==n[t])return!0});yA("sort",function(t){return t!==void 0&&pA(t),Xc?ae(this,t):hA(vA(this),function(e){return function(r,n){return e!==void 0?+e(r,n)||0:n!=n?-1:r!=r?1:r===0&&n===0?1/r>0&&1/n<0?1:-1:r>n}}(t))},!Xc||gA);var mA=Wt,$c=Ot,bA=Nr,wA=_.aTypedArray;(0,_.exportTypedArrayMethod)("subarray",function(t,e){var r=wA(this),n=r.length,o=$c(t,n);return new(bA(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,mA((e===void 0?n:$c(e,n))-o))});var AA=vr,Jc=_,si=O,Qc=fr,Wr=S.Int8Array,Zc=Jc.aTypedArray,_A=Jc.exportTypedArrayMethod,tf=[].toLocaleString,TA=!!Wr&&si(function(){tf.call(new Wr(1))});_A("toLocaleString",function(){return AA(tf,TA?Qc(Zc(this)):Zc(this),Qc(arguments))},si(function(){return[1,2].toLocaleString()!=new Wr([1,2]).toLocaleString()})||!si(function(){Wr.prototype.toLocaleString.call([1,2])}));var xA=_.exportTypedArrayMethod,OA=O,kA=k,ef=S.Uint8Array,SA=ef&&ef.prototype||{},Br=[].toString,EA=kA([].join);OA(function(){Br.call({})})&&(Br=function(){return EA(this)});var IA=SA.toString!=Br;xA("toString",Br,IA),D({global:!0,constructor:!0,forced:!Io},{DataView:Se.DataView});var CA=cr,jA="ArrayBuffer",rf=Se.ArrayBuffer;function PA(t,e){e=e||{};var r=t.numberOfChannels,n=t.sampleRate,o=e.float32?3:1,i=o===3?32:16;return function(s,a,u,c,f){var h=f/8,g=c*h,v=new ArrayBuffer(44+s.length*h),p=new DataView(v);return Gr(p,0,"RIFF"),p.setUint32(4,36+s.length*h,!0),Gr(p,8,"WAVE"),Gr(p,12,"fmt "),p.setUint32(16,16,!0),p.setUint16(20,a,!0),p.setUint16(22,c,!0),p.setUint32(24,u,!0),p.setUint32(28,u*g,!0),p.setUint16(32,g,!0),p.setUint16(34,f,!0),Gr(p,36,"data"),p.setUint32(40,s.length*h,!0),a===1?function(w,m,l){for(var b=0;b<l.length;b++,m+=2){var E=Math.max(-1,Math.min(1,l[b]));w.setInt16(m,E<0?32768*E:32767*E,!0)}}(p,44,s):function(w,m,l){for(var b=0;b<l.length;b++,m+=4)w.setFloat32(m,l[b],!0)}(p,44,s),v}(r===2?function(s,a){for(var u=s.length+a.length,c=new Float32Array(u),f=0,h=0;f<u;)c[f++]=s[h],c[f++]=a[h],h++;return c}(t.getChannelData(0),t.getChannelData(1)):t.getChannelData(0),o,n,r,i)}function Gr(t,e,r){for(var n=0;n<r.length;n++)t.setUint8(e+n,r.charCodeAt(n))}D({global:!0,constructor:!0,forced:S.ArrayBuffer!==rf},{ArrayBuffer:rf}),CA(jA);var nf=function(){function t(e){zr(this,t),this.audioContext_=e,this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}return Hr(t,[{key:"onDump",value:function(e,r){if(r===ke){var n=this.inputPCM_.length,o=new Float32Array(n+e[0].length);o.set(this.inputPCM_),o.set(e[0],n),this.inputPCM_=o}if(r===Tr){var i=this.outputPCM_.length,s=new Float32Array(i+e[0].length);s.set(this.outputPCM_),s.set(e[0],i),this.outputPCM_=s}}},{key:"getBlob",value:function(e){var r=e===ke?this.inputPCM_:this.outputPCM_,n=this.audioContext_.createBuffer(2,r.length,48e3);n.copyToChannel(r,0,0),n.copyToChannel(r,1,0);var o=PA(n);return n=null,new window.Blob([new DataView(o)],{type:"audio/wav"})}},{key:"reset",value:function(){this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}},{key:"destroy",value:function(){this.inputPCM_=null,this.outputPCM_=null}}]),t}(),MA=function(){function t(i){var s=this,a=i.sdkAppId,u=i.userId,c=i.audioContext,f=i.sign,h=i.status,g=i.worklet,v=i.timestamp,p=i.logger;zr(this,t),this.audioContext_=c,this.destination_=this.audioContext_.createMediaStreamDestination(),this.gainNode_=this.audioContext_.createGain(),this.gainNode_.gain.value=1.1,this.log_=p,this.workletNode_=g,this.workletNode_.connect(this.gainNode_).connect(this.destination_),this.workletNode_.port.postMessage({type:"init",data:{sdkAppId:String(a),userId:u,timestamp:v,sign:f,status:h}}),this.workletNode_.port.onmessage=function(w){var m=w.data,l=m.type,b=m.data;if(l==="ondump"&&s.isDumping_){var E=b.inputPCM,V=b.outputPCM;s.dump_.onDump(E,ke),s.dump_.onDump(V,Tr)}l==="dumped"&&s.dumped()},this.trackConstraint_={},this.localStream_=null,this.audioTrack_=null,this.source_=null,this.denoiserTrack_=null,this.enableDenoise_=!0,this.emitter_=new Gm,this.dump_=new nf(this.audioContext_)}var e,r,n,o;return Hr(t,[{key:"dumped",value:function(){this.isDumping_=!1;var i=this.dump_.getBlob(ke),s=this.dump_.getBlob(Tr);this.emitter_.emit("ondumpend",{blob:i,name:ke}),this.emitter_.emit("ondumpend",{blob:s,name:Tr}),this.dump_.reset()}},{key:"process",value:(o=ft(M().mark(function i(s){var a,u,c;return M().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.localStream_=s,this.log_.info("RTCAIDenoiser: denoiser process stream ID: ".concat(s.getId(),".")),this.audioTrack_=s==null?void 0:s.getAudioTrack(),this.audioTrack_){f.next=5;break}throw new Error("RTCAIDenoiser: cannot process localStream without audioTrack.");case 5:return f.next=7,this.audioTrack_.getSettings();case 7:return a=f.sent,this.destination_.channelCount=(a==null?void 0:a.channelCount)||1,(u=new MediaStream).addTrack(this.audioTrack_),this.source_=this.audioContext_.createMediaStreamSource(u),f.next=14,this.source_.connect(this.workletNode_);case 14:return this.trackConstraint_=this.audioTrack_.getConstraints(),this.trackConstraint_.noiseSuppression=!1,f.next=18,this.audioTrack_.applyConstraints(this.trackConstraint_);case 18:return c=this.destination_.stream,this.denoiserTrack_=c.getAudioTracks()[0],f.next=22,this.localStream_.replaceTrack(this.denoiserTrack_);case 22:this.localStream_&&this.localStream_.setIsAIDenoiser&&this.localStream_.setIsAIDenoiser(!0);case 23:case"end":return f.stop()}},i,this)})),function(i){return o.apply(this,arguments)})},{key:"updateTrack",value:(n=ft(M().mark(function i(s){var a,u;return M().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=new MediaStream,c.next=3,a.addTrack(s);case 3:u=this.audioContext_.createMediaStreamSource(a),this.source_.disconnect(),u.connect(this.workletNode_),this.audioTrack_.stop(),this.audioTrack_=s,this.source_=u,this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," updateTrack success."));case 10:case"end":return c.stop()}},i,this)})),function(i){return n.apply(this,arguments)})},{key:"disable",value:(r=ft(M().mark(function i(){var s;return M().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return this.enableDenoise_=!1,(s=this.workletNode_)===null||s===void 0||s.port.postMessage({type:"disable"}),this.trackConstraint_.noiseSuppression=!0,a.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: disable ai denoiser."),a.abrupt("return",this.enableDenoise_);case 7:case"end":return a.stop()}},i,this)})),function(){return r.apply(this,arguments)})},{key:"enable",value:(e=ft(M().mark(function i(){var s;return M().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return this.enableDenoise_=!0,(s=this.workletNode_)===null||s===void 0||s.port.postMessage({type:"enable"}),this.trackConstraint_.noiseSuppression=!1,a.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: enable ai denoiser."),a.abrupt("return",this.enableDenoise_);case 7:case"end":return a.stop()}},i,this)})),function(){return e.apply(this,arguments)})},{key:"startDump",value:function(){return this.isDumping_?(this.log_.info("RTCAIDenoiser: data is currently being dumped."),!1):(this.workletNode_.port.postMessage({type:"startDump"}),this.dump_?this.dump_.reset():this.dump_=new nf(this.audioContext_),this.isDumping_=!0,this.log_.info("RTCAIDenoiser: start dump data."),!0)}},{key:"stopDump",value:function(){this.isDumping_&&(this.workletNode_.port.postMessage({type:"stopDump"}),this.isDumping_=!1,this.log_.info("RTCAIDenoiser: stop dump data."))}},{key:"getAudioTrack",value:function(){return this.audioTrack_}},{key:"getDenoiserTrack",value:function(){return this.denoiserTrack_}},{key:"enabled",get:function(){return this.enableDenoise_}},{key:"destroy",value:function(){var i,s,a,u,c,f,h;this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," destroy processor.")),(i=this.localStream_)===null||i===void 0||i.stop(),(s=this.audioTrack_)===null||s===void 0||s.stop(),(a=this.workletNode_)===null||a===void 0||a.port.postMessage({type:"destroy"}),this.workletNode_.port.onmessage=null,(u=this.source_)===null||u===void 0||u.disconnect(),(c=this.destination_)===null||c===void 0||c.disconnect(),(f=this.workletNode_)===null||f===void 0||f.disconnect(),(h=this.dump_)===null||h===void 0||h.destroy(),this.emitter_.removeAllListeners()}},{key:"on",value:function(i,s,a){this.emitter_.on(i,s,a)}},{key:"off",value:function(i,s,a){i==="*"?this.emitter_.removeAllListeners():this.emitter_.off(i,s,a)}},{key:"resetDenoiser",value:function(i){if(X.default){var s=X.default.DenoiserMap;s!=null&&s.has(i.getUserId())&&s.delete(i.getUserId())}}}]),t}();X.default&&(X.default.addDenoiserProcessor=function(t){var e=t.processor,r=t.userId;if(X.default.DenoiserMap)X.default.DenoiserMap.set(r,e);else{var n=new Map;n.set(r,e),X.default.DenoiserMap=n}});var LA=function(){function t(o){var i=o.assetsPath;zr(this,t),this.audioContext_=Dm(),this.assetsPath_=i,this.isLoaded_=!1}var e,r,n;return Hr(t,[{key:"createProcessor",value:(n=ft(M().mark(function o(i){var s,a,u,c,f,h,g,v,p;return M().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=X.default?X.default.Logger.loggerManager.createLogger({id:i.userId,userId:i.userId,sdkAppId:i.sdkAppId}):{info:console.log},a=String(Date.now()).slice(0,-3),w.next=4,Bm(Re(Re({},i),{},{timestamp:a}));case 4:if(u=w.sent,c=u.auth,f=u.sign,h=u.status,g=u.message,c){w.next=12;break}throw s.info("RTCAIDenoiser: ".concat(i.userId," auth result: ").concat(c,". Message: ").concat(g)),new Error(g);case 12:return w.next=14,this.load();case 14:return w.next=16,this.initWorklet();case 16:return v=w.sent,p=new MA(Re(Re({},i),{},{audioContext:this.audioContext_,timestamp:a,sign:f,status:h,worklet:v,logger:s})),s.info("RTCAIDenoiser: ".concat(i.userId," create denoiser processor success.")),X.default&&X.default.addDenoiserProcessor({processor:p,userId:i.userId}),w.abrupt("return",p);case 21:case"end":return w.stop()}},o,this)})),function(o){return n.apply(this,arguments)})},{key:"load",value:(r=ft(M().mark(function o(){return M().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.isLoaded_){i.next=10;break}return i.prev=1,i.next=4,this.audioContext_.audioWorklet.addModule("".concat(this.assetsPath_,"/denoiser-wasm.js"));case 4:this.isLoaded_=!0,i.next=10;break;case 7:i.prev=7,i.t0=i.catch(1),console.error("Init assets from ".concat(this.assetsPath_," failed! Reason: ").concat(i.t0));case 10:case"end":return i.stop()}},o,this,[[1,7]])})),function(){return r.apply(this,arguments)})},{key:"initWorklet",value:(e=ft(M().mark(function o(){return M().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 4:return i.prev=4,i.t0=i.catch(0),i.next=8,this.load();case 8:return i.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 9:case"end":return i.stop()}},o,this,[[0,4]])})),function(){return e.apply(this,arguments)})},{key:"destroy",value:function(){var o;(o=this.audioContext_)===null||o===void 0||o.close()}},{key:"isSupported",value:function(){return"AudioWorklet"in window&&"WebAssembly"in window}}]),t}();return LA})}(Vr)),Vr.exports}export{WA as r};
|