jiuyiUniapp/jiuyi/node_modules/@agora-js/shared/AgoraRTC_N-shared.js

6 lines
162 KiB
JavaScript

/**
* AgoraWebSDK_N-v4.22.1-0-g1c8e27e9 Copyright AgoraInc.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AgoraRTCShared={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},s=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=s,c=Function.prototype,u=c.apply,E=c.call,l="object"==typeof Reflect&&Reflect.apply||(a?E.bind(u):function(){return E.apply(u,arguments)}),_=s,f=Function.prototype,d=f.call,p=_&&f.bind.bind(d,d),h=_?p:function(e){return function(){return d.apply(e,arguments)}},T=h,A=T({}.toString),R=T("".slice),O=function(e){return R(A(e),8,-1)},S=O,I=h,m=function(e){if("Function"===S(e))return I(e)},N="object"==typeof document&&document.all,b={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},C=b.all,g=b.IS_HTMLDDA?function(e){return"function"==typeof e||e===C}:function(e){return"function"==typeof e},y={},w=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=s,L=Function.prototype.call,D=v?L.bind(L):function(){return L.apply(L,arguments)},P={},M={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,B=U&&!M.call({1:2},1);P.f=B?function(e){var t=U(this,e);return!!t&&t.enumerable}:M;var k,V,F=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=i,j=O,G=Object,H=h("".split),W=x((function(){return!G("z").propertyIsEnumerable(0)}))?function(e){return"String"==j(e)?H(e,""):G(e)}:G,K=function(e){return null==e},Y=K,X=TypeError,J=function(e){if(Y(e))throw X("Can't call method on "+e);return e},q=W,z=J,Q=function(e){return q(z(e))},$=g,Z=b.all,ee=b.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:$(e)||e===Z}:function(e){return"object"==typeof e?null!==e:$(e)},te={},re=te,ne=o,oe=g,ie=function(e){return oe(e)?e:void 0},se=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},ae=h({}.isPrototypeOf),ce="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=o,Ee=ce,le=ue.process,_e=ue.Deno,fe=le&&le.versions||_e&&_e.version,de=fe&&fe.v8;de&&(V=(k=de.split("."))[0]>0&&k[0]<4?1:+(k[0]+k[1])),!V&&Ee&&(!(k=Ee.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=Ee.match(/Chrome\/(\d+)/))&&(V=+k[1]);var pe=V,he=pe,Te=i,Ae=o.String,Re=!!Object.getOwnPropertySymbols&&!Te((function(){var e=Symbol();return!Ae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&he&&he<41})),Oe=Re&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Se=se,Ie=g,me=ae,Ne=Object,be=Oe?function(e){return"symbol"==typeof e}:function(e){var t=Se("Symbol");return Ie(t)&&me(t.prototype,Ne(e))},Ce=String,ge=function(e){try{return Ce(e)}catch(e){return"Object"}},ye=g,we=ge,ve=TypeError,Le=function(e){if(ye(e))return e;throw ve(we(e)+" is not a function")},De=Le,Pe=K,Me=function(e,t){var r=e[t];return Pe(r)?void 0:De(r)},Ue=D,Be=g,ke=ee,Ve=TypeError,Fe={exports:{}},xe=o,je=Object.defineProperty,Ge=function(e,t){try{je(xe,e,{value:t,configurable:!0,writable:!0})}catch(r){xe[e]=t}return t},He="__core-js_shared__",We=o[He]||Ge(He,{}),Ke=We;(Fe.exports=function(e,t){return Ke[e]||(Ke[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ye=Fe.exports,Xe=J,Je=Object,qe=function(e){return Je(Xe(e))},ze=qe,Qe=h({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Qe(ze(e),t)},Ze=h,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=Ye,it=$e,st=nt,at=Re,ct=Oe,ut=o.Symbol,Et=ot("wks"),lt=ct?ut.for||ut:ut&&ut.withoutSetter||st,_t=function(e){return it(Et,e)||(Et[e]=at&&it(ut,e)?ut[e]:lt("Symbol."+e)),Et[e]},ft=D,dt=ee,pt=be,ht=Me,Tt=function(e,t){var r,n;if("string"===t&&Be(r=e.toString)&&!ke(n=Ue(r,e)))return n;if(Be(r=e.valueOf)&&!ke(n=Ue(r,e)))return n;if("string"!==t&&Be(r=e.toString)&&!ke(n=Ue(r,e)))return n;throw Ve("Can't convert object to primitive value")},At=TypeError,Rt=_t("toPrimitive"),Ot=function(e,t){if(!dt(e)||pt(e))return e;var r,n=ht(e,Rt);if(n){if(void 0===t&&(t="default"),r=ft(n,e,t),!dt(r)||pt(r))return r;throw At("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tt(e,t)},St=be,It=function(e){var t=Ot(e,"string");return St(t)?t:t+""},mt=ee,Nt=o.document,bt=mt(Nt)&&mt(Nt.createElement),Ct=function(e){return bt?Nt.createElement(e):{}},gt=Ct,yt=!w&&!i((function(){return 7!=Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a})),wt=w,vt=D,Lt=P,Dt=F,Pt=Q,Mt=It,Ut=$e,Bt=yt,kt=Object.getOwnPropertyDescriptor;y.f=wt?kt:function(e,t){if(e=Pt(e),t=Mt(t),Bt)try{return kt(e,t)}catch(e){}if(Ut(e,t))return Dt(!vt(Lt.f,e,t),e[t])};var Vt=i,Ft=g,xt=/#|\.prototype\./,jt=function(e,t){var r=Ht[Gt(e)];return r==Kt||r!=Wt&&(Ft(t)?Vt(t):!!t)},Gt=jt.normalize=function(e){return String(e).replace(xt,".").toLowerCase()},Ht=jt.data={},Wt=jt.NATIVE="N",Kt=jt.POLYFILL="P",Yt=jt,Xt=Le,Jt=s,qt=m(m.bind),zt=function(e,t){return Xt(e),void 0===t?e:Jt?qt(e,t):function(){return e.apply(t,arguments)}},Qt={},$t=w&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=w,or=yt,ir=$t,sr=rr,ar=It,cr=TypeError,ur=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,lr="enumerable",_r="configurable",fr="writable";Qt.f=nr?ir?function(e,t,r){if(sr(e),t=ar(t),sr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&fr in r&&!r[fr]){var n=Er(e,t);n&&n[fr]&&(e[t]=r.value,r={configurable:_r in r?r[_r]:n[_r],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return ur(e,t,r)}:ur:function(e,t,r){if(sr(e),t=ar(t),sr(r),or)try{return ur(e,t,r)}catch(e){}if("get"in r||"set"in r)throw cr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Qt,pr=F,hr=w?function(e,t,r){return dr.f(e,t,pr(1,r))}:function(e,t,r){return e[t]=r,e},Tr=o,Ar=l,Rr=m,Or=g,Sr=y.f,Ir=Yt,mr=te,Nr=zt,br=hr,Cr=$e,gr=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return Ar(e,this,arguments)};return t.prototype=e.prototype,t},yr=function(e,t){var r,n,o,i,s,a,c,u,E,l=e.target,_=e.global,f=e.stat,d=e.proto,p=_?Tr:f?Tr[l]:(Tr[l]||{}).prototype,h=_?mr:mr[l]||br(mr,l,{})[l],T=h.prototype;for(i in t)n=!(r=Ir(_?i:l+(f?".":"#")+i,e.forced))&&p&&Cr(p,i),a=h[i],n&&(c=e.dontCallGetSet?(E=Sr(p,i))&&E.value:p[i]),s=n&&c?c:t[i],n&&typeof a==typeof s||(u=e.bind&&n?Nr(s,Tr):e.wrap&&n?gr(s):d&&Or(s)?Rr(s):s,(e.sham||s&&s.sham||a&&a.sham)&&br(u,"sham",!0),br(h,i,u),d&&(Cr(mr,o=l+"Prototype")||br(mr,o,{}),br(mr[o],i,s),e.real&&T&&(r||!T[i])&&br(T,i,s)))},wr=nt,vr=Ye("keys"),Lr=function(e){return vr[e]||(vr[e]=wr(e))},Dr=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pr=$e,Mr=g,Ur=qe,Br=Dr,kr=Lr("IE_PROTO"),Vr=Object,Fr=Vr.prototype,xr=Br?Vr.getPrototypeOf:function(e){var t=Ur(e);if(Pr(t,kr))return t[kr];var r=t.constructor;return Mr(r)&&t instanceof r?r.prototype:t instanceof Vr?Fr:null},jr=h,Gr=Le,Hr=g,Wr=String,Kr=TypeError,Yr=function(e,t,r){try{return jr(Gr(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Xr=rr,Jr=function(e){if("object"==typeof e||Hr(e))return e;throw Kr("Can't set "+Wr(e)+" as a prototype")},qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Yr(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Xr(r),Jr(n),t?e(r,n):r.__proto__=n,r}}():void 0),zr={},Qr=Math.ceil,$r=Math.floor,Zr=Math.trunc||function(e){var t=+e;return(t>0?$r:Qr)(t)},en=function(e){var t=+e;return t!=t||0===t?0:Zr(t)},tn=en,rn=Math.max,nn=Math.min,on=function(e,t){var r=tn(e);return r<0?rn(r+t,0):nn(r,t)},sn=en,an=Math.min,cn=function(e){return e>0?an(sn(e),9007199254740991):0},un=function(e){return cn(e.length)},En=Q,ln=on,_n=un,fn=function(e){return function(t,r,n){var o,i=En(t),s=_n(i),a=ln(n,s);if(e&&r!=r){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}},dn={includes:fn(!0),indexOf:fn(!1)},pn={},hn=$e,Tn=Q,An=dn.indexOf,Rn=pn,On=h([].push),Sn=function(e,t){var r,n=Tn(e),o=0,i=[];for(r in n)!hn(Rn,r)&&hn(n,r)&&On(i,r);for(;t.length>o;)hn(n,r=t[o++])&&(~An(i,r)||On(i,r));return i},In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mn=Sn,Nn=In.concat("length","prototype");zr.f=Object.getOwnPropertyNames||function(e){return mn(e,Nn)};var bn={};bn.f=Object.getOwnPropertySymbols;var Cn=se,gn=zr,yn=bn,wn=rr,vn=h([].concat),Ln=Cn("Reflect","ownKeys")||function(e){var t=gn.f(wn(e)),r=yn.f;return r?vn(t,r(e)):t},Dn=$e,Pn=Ln,Mn=y,Un=Qt,Bn={},kn=Sn,Vn=In,Fn=Object.keys||function(e){return kn(e,Vn)},xn=w,jn=$t,Gn=Qt,Hn=rr,Wn=Q,Kn=Fn;Bn.f=xn&&!jn?Object.defineProperties:function(e,t){Hn(e);for(var r,n=Wn(t),o=Kn(t),i=o.length,s=0;i>s;)Gn.f(e,r=o[s++],n[r]);return e};var Yn,Xn=se("document","documentElement"),Jn=rr,qn=Bn,zn=In,Qn=pn,$n=Xn,Zn=Ct,eo="prototype",to="script",ro=Lr("IE_PROTO"),no=function(){},oo=function(e){return"<"+to+">"+e+"</"+to+">"},io=function(e){e.write(oo("")),e.close();var t=e.parentWindow.Object;return e=null,t},so=function(){try{Yn=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;so="undefined"!=typeof document?document.domain&&Yn?io(Yn):(t=Zn("iframe"),r="java"+to+":",t.style.display="none",$n.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(oo("document.F=Object")),e.close(),e.F):io(Yn);for(var n=zn.length;n--;)delete so[eo][zn[n]];return so()};Qn[ro]=!0;var ao=Object.create||function(e,t){var r;return null!==e?(no[eo]=Jn(e),r=new no,no[eo]=null,r[ro]=e):r=so(),void 0===t?r:qn.f(r,t)},co=ee,uo=hr,Eo=Error,lo=h("".replace),_o=String(Eo("zxcasd").stack),fo=/\n\s*at [^:]*:[^\n]*/,po=fo.test(_o),ho=F,To=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ho(1,7)),7!==e.stack)})),Ao=hr,Ro=function(e,t){if(po&&"string"==typeof e&&!Eo.prepareStackTrace)for(;t--;)e=lo(e,fo,"");return e},Oo=To,So=Error.captureStackTrace,Io={},mo=Io,No=_t("iterator"),bo=Array.prototype,Co={};Co[_t("toStringTag")]="z";var go="[object z]"===String(Co),yo=go,wo=g,vo=O,Lo=_t("toStringTag"),Do=Object,Po="Arguments"==vo(function(){return arguments}()),Mo=yo?vo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Do(e),Lo))?r:Po?vo(t):"Object"==(n=vo(t))&&wo(t.callee)?"Arguments":n},Uo=Mo,Bo=Me,ko=K,Vo=Io,Fo=_t("iterator"),xo=function(e){if(!ko(e))return Bo(e,Fo)||Bo(e,"@@iterator")||Vo[Uo(e)]},jo=D,Go=Le,Ho=rr,Wo=ge,Ko=xo,Yo=TypeError,Xo=D,Jo=rr,qo=Me,zo=zt,Qo=D,$o=rr,Zo=ge,ei=function(e){return void 0!==e&&(mo.Array===e||bo[No]===e)},ti=un,ri=ae,ni=function(e,t){var r=arguments.length<2?Ko(e):t;if(Go(r))return Ho(jo(r,e));throw Yo(Wo(e)+" is not iterable")},oi=xo,ii=function(e,t,r){var n,o;Jo(e);try{if(!(n=qo(e,"return"))){if("throw"===t)throw r;return r}n=Xo(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Jo(n),r},si=TypeError,ai=function(e,t){this.stopped=e,this.result=t},ci=ai.prototype,ui=function(e,t,r){var n,o,i,s,a,c,u,E=r&&r.that,l=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),p=zo(t,E),h=function(e){return n&&ii(n,"normal",e),new ai(!0,e)},T=function(e){return l?($o(e),d?p(e[0],e[1],h):p(e[0],e[1])):d?p(e,h):p(e)};if(_)n=e.iterator;else if(f)n=e;else{if(!(o=oi(e)))throw si(Zo(e)+" is not iterable");if(ei(o)){for(i=0,s=ti(e);s>i;i++)if((a=T(e[i]))&&ri(ci,a))return a;return new ai(!1)}n=ni(e,o)}for(c=_?e.next:n.next;!(u=Qo(c,n)).done;){try{a=T(u.value)}catch(e){ii(n,"throw",e)}if("object"==typeof a&&a&&ri(ci,a))return a}return new ai(!1)},Ei=Mo,li=String,_i=function(e){if("Symbol"===Ei(e))throw TypeError("Cannot convert a Symbol value to a string");return li(e)},fi=_i,di=yr,pi=ae,hi=xr,Ti=qr,Ai=function(e,t,r){for(var n=Pn(t),o=Un.f,i=Mn.f,s=0;s<n.length;s++){var a=n[s];Dn(e,a)||r&&Dn(r,a)||o(e,a,i(t,a))}},Ri=ao,Oi=hr,Si=F,Ii=function(e,t){co(t)&&"cause"in t&&uo(e,"cause",t.cause)},mi=function(e,t,r,n){Oo&&(So?So(e,t):Ao(e,"stack",Ro(r,n)))},Ni=ui,bi=function(e,t){return void 0===e?arguments.length<2?"":t:fi(e)},Ci=_t("toStringTag"),gi=Error,yi=[].push,wi=function(e,t){var r,n=pi(vi,this);Ti?r=Ti(gi(),n?hi(this):vi):(r=n?this:Ri(vi),Oi(r,Ci,"Error")),void 0!==t&&Oi(r,"message",bi(t)),mi(r,wi,r.stack,1),arguments.length>2&&Ii(r,arguments[2]);var o=[];return Ni(e,yi,{that:o}),Oi(r,"errors",o),r};Ti?Ti(wi,gi):Ai(wi,gi,{name:!0});var vi=wi.prototype=Ri(gi.prototype,{constructor:Si(1,wi),message:Si(1,""),name:Si(1,"AggregateError")});di({global:!0,constructor:!0,arity:2},{AggregateError:wi});var Li,Di,Pi,Mi=g,Ui=o.WeakMap,Bi=Mi(Ui)&&/native code/.test(String(Ui)),ki=o,Vi=ee,Fi=hr,xi=$e,ji=We,Gi=Lr,Hi=pn,Wi="Object already initialized",Ki=ki.TypeError,Yi=ki.WeakMap;if(Bi||ji.state){var Xi=ji.state||(ji.state=new Yi);Xi.get=Xi.get,Xi.has=Xi.has,Xi.set=Xi.set,Li=function(e,t){if(Xi.has(e))throw Ki(Wi);return t.facade=e,Xi.set(e,t),t},Di=function(e){return Xi.get(e)||{}},Pi=function(e){return Xi.has(e)}}else{var Ji=Gi("state");Hi[Ji]=!0,Li=function(e,t){if(xi(e,Ji))throw Ki(Wi);return t.facade=e,Fi(e,Ji,t),t},Di=function(e){return xi(e,Ji)?e[Ji]:{}},Pi=function(e){return xi(e,Ji)}}var qi,zi,Qi,$i={set:Li,get:Di,has:Pi,enforce:function(e){return Pi(e)?Di(e):Li(e,{})},getterFor:function(e){return function(t){var r;if(!Vi(t)||(r=Di(t)).type!==e)throw Ki("Incompatible receiver, "+e+" required");return r}}},Zi=w,es=$e,ts=Function.prototype,rs=Zi&&Object.getOwnPropertyDescriptor,ns=es(ts,"name"),os={EXISTS:ns,PROPER:ns&&"something"===function(){}.name,CONFIGURABLE:ns&&(!Zi||Zi&&rs(ts,"name").configurable)},is=hr,ss=function(e,t,r,n){return n&&n.enumerable?e[t]=r:is(e,t,r),e},as=i,cs=g,us=ee,Es=ao,ls=xr,_s=ss,fs=_t("iterator"),ds=!1;[].keys&&("next"in(Qi=[].keys())?(zi=ls(ls(Qi)))!==Object.prototype&&(qi=zi):ds=!0);var ps=!us(qi)||as((function(){var e={};return qi[fs].call(e)!==e}));cs((qi=ps?{}:Es(qi))[fs])||_s(qi,fs,(function(){return this}));var hs={IteratorPrototype:qi,BUGGY_SAFARI_ITERATORS:ds},Ts=Mo,As=go?{}.toString:function(){return"[object "+Ts(this)+"]"},Rs=go,Os=Qt.f,Ss=hr,Is=$e,ms=As,Ns=_t("toStringTag"),bs=function(e,t,r,n){if(e){var o=r?e:e.prototype;Is(o,Ns)||Os(o,Ns,{configurable:!0,value:t}),n&&!Rs&&Ss(o,"toString",ms)}},Cs=hs.IteratorPrototype,gs=ao,ys=F,ws=bs,vs=Io,Ls=function(){return this},Ds=yr,Ps=D,Ms=os,Us=function(e,t,r,n){var o=t+" Iterator";return e.prototype=gs(Cs,{next:ys(+!n,r)}),ws(e,o,!1,!0),vs[o]=Ls,e},Bs=xr,ks=bs,Vs=ss,Fs=Io,xs=hs,js=Ms.PROPER,Gs=xs.BUGGY_SAFARI_ITERATORS,Hs=_t("iterator"),Ws="keys",Ks="values",Ys="entries",Xs=function(){return this},Js=function(e,t,r,n,o,i,s){Us(r,t,n);var a,c,u,E=function(e){if(e===o&&p)return p;if(!Gs&&e in f)return f[e];switch(e){case Ws:case Ks:case Ys:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",_=!1,f=e.prototype,d=f[Hs]||f["@@iterator"]||o&&f[o],p=!Gs&&d||E(o),h="Array"==t&&f.entries||d;if(h&&(a=Bs(h.call(new e)))!==Object.prototype&&a.next&&(ks(a,l,!0,!0),Fs[l]=Xs),js&&o==Ks&&d&&d.name!==Ks&&(_=!0,p=function(){return Ps(d,this)}),o)if(c={values:E(Ks),keys:i?p:E(Ws),entries:E(Ys)},s)for(u in c)(Gs||_||!(u in f))&&Vs(f,u,c[u]);else Ds({target:t,proto:!0,forced:Gs||_},c);return s&&f[Hs]!==p&&Vs(f,Hs,p,{name:o}),Fs[t]=p,c},qs=function(e,t){return{value:e,done:t}},zs=Q,Qs=Io,$s=$i;Qt.f;var Zs=Js,ea=qs,ta="Array Iterator",ra=$s.set,na=$s.getterFor(ta);Zs(Array,"Array",(function(e,t){ra(this,{type:ta,target:zs(e),index:0,kind:t})}),(function(){var e=na(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,ea(void 0,!0)):ea("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Qs.Arguments=Qs.Array;var oa="undefined"!=typeof process&&"process"==O(process),ia=Qt,sa=function(e,t,r){return ia.f(e,t,r)},aa=se,ca=sa,ua=w,Ea=_t("species"),la=ae,_a=TypeError,fa=g,da=We,pa=h(Function.toString);fa(da.inspectSource)||(da.inspectSource=function(e){return pa(e)});var ha=da.inspectSource,Ta=h,Aa=i,Ra=g,Oa=Mo,Sa=ha,Ia=function(){},ma=[],Na=se("Reflect","construct"),ba=/^\s*(?:class|function)\b/,Ca=Ta(ba.exec),ga=!ba.exec(Ia),ya=function(e){if(!Ra(e))return!1;try{return Na(Ia,ma,e),!0}catch(e){return!1}},wa=function(e){if(!Ra(e))return!1;switch(Oa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ga||!!Ca(ba,Sa(e))}catch(e){return!0}};wa.sham=!0;var va,La,Da,Pa,Ma=!Na||Aa((function(){var e;return ya(ya.call)||!ya(Object)||!ya((function(){e=!0}))||e}))?wa:ya,Ua=Ma,Ba=ge,ka=TypeError,Va=rr,Fa=function(e){if(Ua(e))return e;throw ka(Ba(e)+" is not a constructor")},xa=K,ja=_t("species"),Ga=function(e,t){var r,n=Va(e).constructor;return void 0===n||xa(r=Va(n)[ja])?t:Fa(r)},Ha=h([].slice),Wa=TypeError,Ka=/(?:ipad|iphone|ipod).*applewebkit/i.test(ce),Ya=o,Xa=l,Ja=zt,qa=g,za=$e,Qa=i,$a=Xn,Za=Ha,ec=Ct,tc=function(e,t){if(e<t)throw Wa("Not enough arguments");return e},rc=Ka,nc=oa,oc=Ya.setImmediate,ic=Ya.clearImmediate,sc=Ya.process,ac=Ya.Dispatch,cc=Ya.Function,uc=Ya.MessageChannel,Ec=Ya.String,lc=0,_c={},fc="onreadystatechange";Qa((function(){va=Ya.location}));var dc=function(e){if(za(_c,e)){var t=_c[e];delete _c[e],t()}},pc=function(e){return function(){dc(e)}},hc=function(e){dc(e.data)},Tc=function(e){Ya.postMessage(Ec(e),va.protocol+"//"+va.host)};oc&&ic||(oc=function(e){tc(arguments.length,1);var t=qa(e)?e:cc(e),r=Za(arguments,1);return _c[++lc]=function(){Xa(t,void 0,r)},La(lc),lc},ic=function(e){delete _c[e]},nc?La=function(e){sc.nextTick(pc(e))}:ac&&ac.now?La=function(e){ac.now(pc(e))}:uc&&!rc?(Pa=(Da=new uc).port2,Da.port1.onmessage=hc,La=Ja(Pa.postMessage,Pa)):Ya.addEventListener&&qa(Ya.postMessage)&&!Ya.importScripts&&va&&"file:"!==va.protocol&&!Qa(Tc)?(La=Tc,Ya.addEventListener("message",hc,!1)):La=fc in ec("script")?function(e){$a.appendChild(ec("script"))[fc]=function(){$a.removeChild(this),dc(e)}}:function(e){setTimeout(pc(e),0)});var Ac={set:oc,clear:ic},Rc=function(){this.head=null,this.tail=null};Rc.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Oc,Sc,Ic,mc,Nc,bc=Rc,Cc=/ipad|iphone|ipod/i.test(ce)&&"undefined"!=typeof Pebble,gc=/web0s(?!.*chrome)/i.test(ce),yc=o,wc=zt,vc=y.f,Lc=Ac.set,Dc=bc,Pc=Ka,Mc=Cc,Uc=gc,Bc=oa,kc=yc.MutationObserver||yc.WebKitMutationObserver,Vc=yc.document,Fc=yc.process,xc=yc.Promise,jc=vc(yc,"queueMicrotask"),Gc=jc&&jc.value;if(!Gc){var Hc=new Dc,Wc=function(){var e,t;for(Bc&&(e=Fc.domain)&&e.exit();t=Hc.get();)try{t()}catch(e){throw Hc.head&&Oc(),e}e&&e.enter()};Pc||Bc||Uc||!kc||!Vc?!Mc&&xc&&xc.resolve?((mc=xc.resolve(void 0)).constructor=xc,Nc=wc(mc.then,mc),Oc=function(){Nc(Wc)}):Bc?Oc=function(){Fc.nextTick(Wc)}:(Lc=wc(Lc,yc),Oc=function(){Lc(Wc)}):(Sc=!0,Ic=Vc.createTextNode(""),new kc(Wc).observe(Ic,{characterData:!0}),Oc=function(){Ic.data=Sc=!Sc}),Gc=function(e){Hc.head||Oc(),Hc.add(e)}}var Kc=Gc,Yc=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Xc=o.Promise,Jc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,qc=!Jc&&!oa&&"object"==typeof window&&"object"==typeof document,zc=o,Qc=Xc,$c=g,Zc=Yt,eu=ha,tu=_t,ru=qc,nu=Jc,ou=pe,iu=Qc&&Qc.prototype,su=tu("species"),au=!1,cu=$c(zc.PromiseRejectionEvent),uu=Zc("Promise",(function(){var e=eu(Qc),t=e!==String(Qc);if(!t&&66===ou)return!0;if(!iu.catch||!iu.finally)return!0;if(!ou||ou<51||!/native code/.test(e)){var r=new Qc((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[su]=n,!(au=r.then((function(){}))instanceof n))return!0}return!t&&(ru||nu)&&!cu})),Eu={CONSTRUCTOR:uu,REJECTION_EVENT:cu,SUBCLASSING:au},lu={},_u=Le,fu=TypeError,du=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw fu("Bad Promise constructor");t=e,r=n})),this.resolve=_u(t),this.reject=_u(r)};lu.f=function(e){return new du(e)};var pu,hu,Tu=yr,Au=oa,Ru=o,Ou=D,Su=ss,Iu=bs,mu=function(e){var t=aa(e);ua&&t&&!t[Ea]&&ca(t,Ea,{configurable:!0,get:function(){return this}})},Nu=Le,bu=g,Cu=ee,gu=function(e,t){if(la(t,e))return e;throw _a("Incorrect invocation")},yu=Ga,wu=Ac.set,vu=Kc,Lu=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},Du=Yc,Pu=bc,Mu=$i,Uu=Xc,Bu=Eu,ku=lu,Vu="Promise",Fu=Bu.CONSTRUCTOR,xu=Bu.REJECTION_EVENT,ju=Mu.getterFor(Vu),Gu=Mu.set,Hu=Uu&&Uu.prototype,Wu=Uu,Ku=Hu,Yu=Ru.TypeError,Xu=Ru.document,Ju=Ru.process,qu=ku.f,zu=qu,Qu=!!(Xu&&Xu.createEvent&&Ru.dispatchEvent),$u="unhandledrejection",Zu=function(e){var t;return!(!Cu(e)||!bu(t=e.then))&&t},eE=function(e,t){var r,n,o,i=t.value,s=1==t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,E=e.domain;try{a?(s||(2===t.rejection&&iE(t),t.rejection=1),!0===a?r=i:(E&&E.enter(),r=a(i),E&&(E.exit(),o=!0)),r===e.promise?u(Yu("Promise-chain cycle")):(n=Zu(r))?Ou(n,r,c,u):c(r)):u(i)}catch(e){E&&!o&&E.exit(),u(e)}},tE=function(e,t){e.notified||(e.notified=!0,vu((function(){for(var r,n=e.reactions;r=n.get();)eE(r,e);e.notified=!1,t&&!e.rejection&&nE(e)})))},rE=function(e,t,r){var n,o;Qu?((n=Xu.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Ru.dispatchEvent(n)):n={promise:t,reason:r},!xu&&(o=Ru["on"+e])?o(n):e===$u&&Lu("Unhandled promise rejection",r)},nE=function(e){Ou(wu,Ru,(function(){var t,r=e.facade,n=e.value;if(oE(e)&&(t=Du((function(){Au?Ju.emit("unhandledRejection",n,r):rE($u,r,n)})),e.rejection=Au||oE(e)?2:1,t.error))throw t.value}))},oE=function(e){return 1!==e.rejection&&!e.parent},iE=function(e){Ou(wu,Ru,(function(){var t=e.facade;Au?Ju.emit("rejectionHandled",t):rE("rejectionhandled",t,e.value)}))},sE=function(e,t,r){return function(n){e(t,n,r)}},aE=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,tE(e,!0))},cE=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Yu("Promise can't be resolved itself");var n=Zu(t);n?vu((function(){var r={done:!1};try{Ou(n,t,sE(cE,r,e),sE(aE,r,e))}catch(t){aE(r,t,e)}})):(e.value=t,e.state=1,tE(e,!1))}catch(t){aE({done:!1},t,e)}}};Fu&&(Ku=(Wu=function(e){gu(this,Ku),Nu(e),Ou(pu,this);var t=ju(this);try{e(sE(cE,t),sE(aE,t))}catch(e){aE(t,e)}}).prototype,(pu=function(e){Gu(this,{type:Vu,done:!1,notified:!1,parent:!1,reactions:new Pu,rejection:!1,state:0,value:void 0})}).prototype=Su(Ku,"then",(function(e,t){var r=ju(this),n=qu(yu(this,Wu));return r.parent=!0,n.ok=!bu(e)||e,n.fail=bu(t)&&t,n.domain=Au?Ju.domain:void 0,0==r.state?r.reactions.add(n):vu((function(){eE(n,r)})),n.promise})),hu=function(){var e=new pu,t=ju(e);this.promise=e,this.resolve=sE(cE,t),this.reject=sE(aE,t)},ku.f=qu=function(e){return e===Wu||undefined===e?new hu(e):zu(e)}),Tu({global:!0,constructor:!0,wrap:!0,forced:Fu},{Promise:Wu}),Iu(Wu,Vu,!1,!0),mu(Vu);var uE=_t("iterator"),EE=!1;try{var lE=0,_E={next:function(){return{done:!!lE++}},return:function(){EE=!0}};_E[uE]=function(){return this},Array.from(_E,(function(){throw 2}))}catch(e){}var fE=Xc,dE=function(e,t){if(!t&&!EE)return!1;var r=!1;try{var n={};n[uE]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},pE=Eu.CONSTRUCTOR||!dE((function(e){fE.all(e).then(void 0,(function(){}))})),hE=D,TE=Le,AE=lu,RE=Yc,OE=ui;yr({target:"Promise",stat:!0,forced:pE},{all:function(e){var t=this,r=AE.f(t),n=r.resolve,o=r.reject,i=RE((function(){var r=TE(t.resolve),i=[],s=0,a=1;OE(e,(function(e){var c=s++,u=!1;a++,hE(r,t,e).then((function(e){u||(u=!0,i[c]=e,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise}});var SE=yr,IE=Eu.CONSTRUCTOR;Xc&&Xc.prototype,SE({target:"Promise",proto:!0,forced:IE,real:!0},{catch:function(e){return this.then(void 0,e)}});var mE=D,NE=Le,bE=lu,CE=Yc,gE=ui;yr({target:"Promise",stat:!0,forced:pE},{race:function(e){var t=this,r=bE.f(t),n=r.reject,o=CE((function(){var o=NE(t.resolve);gE(e,(function(e){mE(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var yE=D,wE=lu;yr({target:"Promise",stat:!0,forced:Eu.CONSTRUCTOR},{reject:function(e){var t=wE.f(this);return yE(t.reject,void 0,e),t.promise}});var vE=rr,LE=ee,DE=lu,PE=function(e,t){if(vE(e),LE(t)&&t.constructor===e)return t;var r=DE.f(e);return(0,r.resolve)(t),r.promise},ME=yr,UE=Xc,BE=Eu.CONSTRUCTOR,kE=PE,VE=se("Promise"),FE=!BE;ME({target:"Promise",stat:!0,forced:true},{resolve:function(e){return kE(FE&&this===VE?UE:this,e)}});var xE=D,jE=Le,GE=lu,HE=Yc,WE=ui;yr({target:"Promise",stat:!0,forced:pE},{allSettled:function(e){var t=this,r=GE.f(t),n=r.resolve,o=r.reject,i=HE((function(){var r=jE(t.resolve),o=[],i=0,s=1;WE(e,(function(e){var a=i++,c=!1;s++,xE(r,t,e).then((function(e){c||(c=!0,o[a]={status:"fulfilled",value:e},--s||n(o))}),(function(e){c||(c=!0,o[a]={status:"rejected",reason:e},--s||n(o))}))})),--s||n(o)}));return i.error&&o(i.value),r.promise}});var KE=D,YE=Le,XE=se,JE=lu,qE=Yc,zE=ui,QE="No one promise resolved";yr({target:"Promise",stat:!0,forced:pE},{any:function(e){var t=this,r=XE("AggregateError"),n=JE.f(t),o=n.resolve,i=n.reject,s=qE((function(){var n=YE(t.resolve),s=[],a=0,c=1,u=!1;zE(e,(function(e){var E=a++,l=!1;c++,KE(n,t,e).then((function(e){l||u||(u=!0,o(e))}),(function(e){l||u||(l=!0,s[E]=e,--c||i(new r(s,QE)))}))})),--c||i(new r(s,QE))}));return s.error&&i(s.value),n.promise}});var $E=yr,ZE=Xc,el=i,tl=se,rl=g,nl=Ga,ol=PE,il=ZE&&ZE.prototype;$E({target:"Promise",proto:!0,real:!0,forced:!!ZE&&el((function(){il.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=nl(this,tl("Promise")),r=rl(e);return this.then(r?function(r){return ol(t,e()).then((function(){return r}))}:e,r?function(r){return ol(t,e()).then((function(){throw r}))}:e)}});var sl=h,al=en,cl=_i,ul=J,El=sl("".charAt),ll=sl("".charCodeAt),_l=sl("".slice),fl=function(e){return function(t,r){var n,o,i=cl(ul(t)),s=al(r),a=i.length;return s<0||s>=a?e?"":void 0:(n=ll(i,s))<55296||n>56319||s+1===a||(o=ll(i,s+1))<56320||o>57343?e?El(i,s):n:e?_l(i,s,s+2):o-56320+(n-55296<<10)+65536}},dl={codeAt:fl(!1),charAt:fl(!0)}.charAt,pl=_i,hl=$i,Tl=Js,Al=qs,Rl="String Iterator",Ol=hl.set,Sl=hl.getterFor(Rl);Tl(String,"String",(function(e){Ol(this,{type:Rl,string:pl(e),index:0})}),(function(){var e,t=Sl(this),r=t.string,n=t.index;return n>=r.length?Al(void 0,!0):(e=dl(r,n),t.index+=e.length,Al(e,!1))}));var Il=te.Promise,ml={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},Nl=o,bl=Mo,Cl=hr,gl=Io,yl=_t("toStringTag");for(var wl in ml){var vl=Nl[wl],Ll=vl&&vl.prototype;Ll&&bl(Ll)!==yl&&Cl(Ll,yl,wl),gl[wl]=gl.Array}var Dl=r(Il);const Pl=()=>{};function Ml(){const e={promise:void 0,isResolved:!1,isRejected:!1,isFinished:!1,resolve:void 0,reject:void 0,cancel:Pl};return e.promise=new Dl(((t,r)=>{e.resolve=r=>{e.isFinished||(e.isResolved=!0,e.isFinished=!0,t(r),e.value=r)},e.reject=t=>{e.isFinished||(e.isRejected=!0,e.isFinished=!0,r(t))}})),e}const Ul=new Map,Bl=new Map,kl=new Map;var Vl=dn.includes;yr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return Vl(this,e,arguments.length>1?arguments[1]:void 0)}});var Fl=te,xl=function(e){return Fl[e+"Prototype"]},jl=xl("Array").includes,Gl=ee,Hl=O,Wl=_t("match"),Kl=function(e){var t;return Gl(e)&&(void 0!==(t=e[Wl])?!!t:"RegExp"==Hl(e))},Yl=TypeError,Xl=_t("match"),Jl=yr,ql=function(e){if(Kl(e))throw Yl("The method doesn't accept regular expressions");return e},zl=J,Ql=_i,$l=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Xl]=!1,"/./"[e](t)}catch(e){}}return!1},Zl=h("".indexOf);Jl({target:"String",proto:!0,forced:!$l("includes")},{includes:function(e){return!!~Zl(Ql(zl(this)),Ql(ql(e)),arguments.length>1?arguments[1]:void 0)}});var e_=xl("String").includes,t_=ae,r_=jl,n_=e_,o_=Array.prototype,i_=String.prototype,s_=r((function(e){var t=e.includes;return e===o_||t_(o_,e)&&t===o_.includes?r_:"string"==typeof e||e===i_||t_(i_,e)&&t===i_.includes?n_:t}));let a_=function(e){return e.WIN_10="Windows 10",e.WIN_81="Windows 8.1",e.WIN_8="Windows 8",e.WIN_7="Windows 7",e.WIN_VISTA="Windows Vista",e.WIN_SERVER_2003="Windows Server 2003",e.WIN_XP="Windows XP",e.WIN_2000="Windows 2000",e.ANDROID="Android",e.HARMONY_OS="HarmonyOS",e.OPEN_BSD="Open BSD",e.SUN_OS="Sun OS",e.LINUX="Linux",e.IOS="iOS",e.MAC_OS="Mac OS",e.CHROMIUM_OS="Chromium OS",e.QNX="QNX",e.UNIX="UNIX",e.BEOS="BeOS",e.OS_2="OS/2",e.SEARCH_BOT="Search Bot",e}({}),c_=function(e){return e.CHROME="Chrome",e.SAFARI="Safari",e.EDGE="Edge",e.FIREFOX="Firefox",e.OPERA="OPR",e.QQ="QQBrowser",e.WECHAT="MicroMessenger",e}({});var u_={exports:{}};!function(e,r){!function(t,n){var o="function",i="undefined",s="object",a="string",c="major",u="model",E="name",l="type",_="vendor",f="version",d="architecture",p="console",h="mobile",T="tablet",A="smarttv",R="wearable",O="embedded",S="Amazon",I="Apple",m="ASUS",N="BlackBerry",b="Browser",C="Chrome",g="Firefox",y="Google",w="Huawei",v="LG",L="Microsoft",D="Motorola",P="Opera",M="Samsung",U="Sharp",B="Sony",k="Xiaomi",V="Zebra",F="Facebook",x="Chromium OS",j="Mac OS",G=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},H=function(e,t){return typeof e===a&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},Y=function(e,t){for(var r,i,a,c,u,E,l=0;l<t.length&&!u;){var _=t[l],f=t[l+1];for(r=i=0;r<_.length&&!u&&_[r];)if(u=_[r++].exec(e))for(a=0;a<f.length;a++)E=u[++i],typeof(c=f[a])===s&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,E):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=E?E.replace(c[1],c[2]):n:this[c[0]]=E?c[1].call(this,E,c[2]):n:4===c.length&&(this[c[0]]=E?c[3].call(this,E.replace(c[1],c[2])):n):this[c]=E||n;l+=2}},X=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var o=0;o<t[r].length;o++)if(H(t[r][o],e))return"?"===r?n:r}else if(H(t[r],e))return"?"===r?n:r;return e},J={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,f],[/opios[\/ ]+([\w\.]+)/i],[f,[E,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[E,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[E,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[E,"UC"+b]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[E,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[E,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[E,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+b],f],[/\bfocus\/([\w\.]+)/i],[f,[E,g+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[E,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[E,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[E,"MIUI "+b]],[/fxios\/([-\w\.]+)/i],[f,[E,g]],[/\bqihu|(qi?ho?o?|360)browser/i],[[E,"360 "+b]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1 "+b],f],[/(comodo_dragon)\/([\w\.]+)/i],[[E,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[E,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,F],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[E,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[E,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[E,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,C+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[E,"Android "+b]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[f,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[E,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[E,g+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[E,f],[/(cobalt)\/([\w\.]+)/i],[E,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,W]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[_,M],[l,T]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[_,M],[l,h]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[_,I],[l,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[_,I],[l,T]],[/(macintosh);/i],[u,[_,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[_,U],[l,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[_,w],[l,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[_,w],[l,h]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[_,k],[l,h]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[_,k],[l,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[_,"OPPO"],[l,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[_,"Vivo"],[l,h]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[_,"Realme"],[l,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[_,D],[l,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[_,D],[l,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[_,v],[l,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[_,v],[l,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[_,"Lenovo"],[l,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[_,"Nokia"],[l,h]],[/(pixel c)\b/i],[u,[_,y],[l,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[_,y],[l,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[_,B],[l,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[_,B],[l,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[_,"OnePlus"],[l,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[_,S],[l,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[_,S],[l,h]],[/(playbook);[-\w\),; ]+(rim)/i],[u,_,[l,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[_,N],[l,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[_,m],[l,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[_,m],[l,h]],[/(nexus 9)/i],[u,[_,"HTC"],[l,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[_,[u,/_/g," "],[l,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[_,"Acer"],[l,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[_,"Meizu"],[l,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[_,u,[l,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[_,u,[l,T]],[/(surface duo)/i],[u,[_,L],[l,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[_,"Fairphone"],[l,h]],[/(u304aa)/i],[u,[_,"AT&T"],[l,h]],[/\bsie-(\w*)/i],[u,[_,"Siemens"],[l,h]],[/\b(rct\w+) b/i],[u,[_,"RCA"],[l,T]],[/\b(venue[\d ]{2,7}) b/i],[u,[_,"Dell"],[l,T]],[/\b(q(?:mv|ta)\w+) b/i],[u,[_,"Verizon"],[l,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[_,"Barnes & Noble"],[l,T]],[/\b(tm\d{3}\w+) b/i],[u,[_,"NuVision"],[l,T]],[/\b(k88) b/i],[u,[_,"ZTE"],[l,T]],[/\b(nx\d{3}j) b/i],[u,[_,"ZTE"],[l,h]],[/\b(gen\d{3}) b.+49h/i],[u,[_,"Swiss"],[l,h]],[/\b(zur\d{3}) b/i],[u,[_,"Swiss"],[l,T]],[/\b((zeki)?tb.*\b) b/i],[u,[_,"Zeki"],[l,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[_,"Dragon Touch"],u,[l,T]],[/\b(ns-?\w{0,9}) b/i],[u,[_,"Insignia"],[l,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[_,"NextBook"],[l,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[_,"Voice"],u,[l,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[_,"LvTel"],u,[l,h]],[/\b(ph-1) /i],[u,[_,"Essential"],[l,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[_,"Envizen"],[l,T]],[/\b(trio[-\w\. ]+) b/i],[u,[_,"MachSpeed"],[l,T]],[/\btu_(1491) b/i],[u,[_,"Rotor"],[l,T]],[/(shield[\w ]+) b/i],[u,[_,"Nvidia"],[l,T]],[/(sprint) (\w+)/i],[_,u,[l,h]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[_,L],[l,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[_,V],[l,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[_,V],[l,h]],[/smart-tv.+(samsung)/i],[_,[l,A]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[_,M],[l,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[_,v],[l,A]],[/(apple) ?tv/i],[_,[u,I+" TV"],[l,A]],[/crkey/i],[[u,C+"cast"],[_,y],[l,A]],[/droid.+aft(\w)( bui|\))/i],[u,[_,S],[l,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[_,U],[l,A]],[/(bravia[\w ]+)( bui|\))/i],[u,[_,B],[l,A]],[/(mitv-\w{5}) bui/i],[u,[_,k],[l,A]],[/Hbbtv.*(technisat) (.*);/i],[_,u,[l,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[_,K],[u,K],[l,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[_,u,[l,p]],[/droid.+; (shield) bui/i],[u,[_,"Nvidia"],[l,p]],[/(playstation [345portablevi]+)/i],[u,[_,B],[l,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[_,L],[l,p]],[/((pebble))app/i],[_,u,[l,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[_,I],[l,R]],[/droid.+; (glass) \d/i],[u,[_,y],[l,R]],[/droid.+; (wt63?0{2,3})\)/i],[u,[_,V],[l,R]],[/(quest( 2| pro)?)/i],[u,[_,F],[l,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[_,[l,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[l,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,h]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[_,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[E,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[E,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[E,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[E,[f,X,J]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,"Windows"],[f,X,J]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,j],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,f],[/\(bb(10);/i],[f,[E,N]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[E,g+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[E,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[E,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[E,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[E,x],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[E,f],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[E,f]]},z=function(e,r){if(typeof e===s&&(r=e,e=n),!(this instanceof z))return new z(e,r).getResult();var p=typeof t!==i&&t.navigator?t.navigator:n,A=e||(p&&p.userAgent?p.userAgent:""),R=p&&p.userAgentData?p.userAgentData:n,O=r?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(q,r):q;return this.getBrowser=function(){var e={};return e[E]=n,e[f]=n,Y.call(e,A,O.browser),e[c]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:n}(e[f]),p&&p.brave&&typeof p.brave.isBrave==o&&(e[E]="Brave"),e},this.getCPU=function(){var e={};return e[d]=n,Y.call(e,A,O.cpu),e},this.getDevice=function(){var e={};return e[_]=n,e[u]=n,e[l]=n,Y.call(e,A,O.device),!e[l]&&R&&R.mobile&&(e[l]=h),"Macintosh"==e[u]&&p&&typeof p.standalone!==i&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[u]="iPad",e[l]=T),e},this.getEngine=function(){var e={};return e[E]=n,e[f]=n,Y.call(e,A,O.engine),e},this.getOS=function(){var e={};return e[E]=n,e[f]=n,Y.call(e,A,O.os),!e[E]&&R&&"Unknown"!=R.platform&&(e[E]=R.platform.replace(/chrome os/i,x).replace(/macos/i,j)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(e){return A=typeof e===a&&e.length>350?K(e,350):e,this},this.setUA(A),this};z.VERSION="0.7.34",z.BROWSER=G([E,f,c]),z.CPU=G([d]),z.DEVICE=G([u,_,l,p,h,A,T,R,O]),z.ENGINE=z.OS=G([E,f]),e.exports&&(r=e.exports=z),r.UAParser=z;var Q=typeof t!==i&&(t.jQuery||t.Zepto);if(Q&&!Q.ua){var $=new z;Q.ua=$.getResult(),Q.ua.get=function(){return $.getUA()},Q.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:t)}(u_,u_.exports);const E_=new(r(u_.exports));let l_=E_.getResult(),__=null;function f_(e){if(!__){e&&E_.setUA(e),l_=E_.getResult();const t=d_(l_),r=p_(l_),n=h_(l_),o=l_.os.version,i=p_(l_,!1),s=l_.device.type;if(!(t&&r&&n&&o))return{name:t,version:r,os:n,osVersion:o,browserVersion:i,deviceType:s};__={name:t,version:r,os:n,osVersion:o,browserVersion:i,deviceType:s}}return __}function d_(e){if("Blink"===e.engine.name&&"WeChat"!==e.browser.name)return c_.CHROME;switch(e.browser.name){case"Chrome Headless":case"Chrome":case"Chromium":return c_.CHROME;case"Safari":case"Mobile Safari":return c_.SAFARI;case"Edge":return c_.EDGE;case"Firefox":return c_.FIREFOX;case"QQ":case"QQBrowser":return c_.QQ;case"Opera":return c_.OPERA;case"WeChat":return c_.WECHAT;default:return e.browser.name||""}}function p_(e){let t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t="Blink"===e.engine.name?e.engine.version||"":e.browser.version||"",r?t.split(".")[0]:t}function h_(e){return"Windows"===e.os.name?e.os.version?e.os.name+" "+e.os.version:e.os.name:e.os.name||""}function T_(){return f_().os}function A_(){const e=f_();return!!("WebKit"===l_.engine.name&&e.os===a_.MAC_OS&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0&&e.name!==c_.SAFARI||O_()&&e.name!==c_.SAFARI)}function R_(){return f_().name===c_.SAFARI}function O_(){return f_().os===a_.IOS}function S_(){const{deviceType:e}=f_();return"mobile"===e||"tablet"===e}function I_(){return T_()===a_.ANDROID}var m_=ge,N_=TypeError,b_=It,C_=Qt,g_=F,y_=function(e,t,r){var n=b_(t);n in e?C_.f(e,n,g_(0,r)):e[n]=r},w_=on,v_=un,L_=y_,D_=Array,P_=Math.max,M_=function(e,t,r){for(var n=v_(e),o=w_(t,n),i=w_(void 0===r?n:r,n),s=D_(P_(i-o,0)),a=0;o<i;o++,a++)L_(s,a,e[o]);return s.length=a,s},U_=M_,B_=Math.floor,k_=function(e,t){var r=e.length,n=B_(r/2);return r<8?V_(e,t):F_(e,k_(U_(e,0,n),t),k_(U_(e,n),t),t)},V_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},F_=function(e,t,r,n){for(var o=t.length,i=r.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?n(t[s],r[a])<=0?t[s++]:r[a++]:s<o?t[s++]:r[a++];return e},x_=k_,j_=i,G_=function(e,t){var r=[][e];return!!r&&j_((function(){r.call(null,t||function(){return 1},1)}))},H_=ce.match(/firefox\/(\d+)/i),W_=!!H_&&+H_[1],K_=/MSIE|Trident/.test(ce),Y_=ce.match(/AppleWebKit\/(\d+)\./),X_=!!Y_&&+Y_[1],J_=yr,q_=h,z_=Le,Q_=qe,$_=un,Z_=function(e,t){if(!delete e[t])throw N_("Cannot delete property "+m_(t)+" of "+m_(e))},ef=_i,tf=i,rf=x_,nf=G_,of=W_,sf=K_,af=pe,cf=X_,uf=[],Ef=q_(uf.sort),lf=q_(uf.push),_f=tf((function(){uf.sort(void 0)})),ff=tf((function(){uf.sort(null)})),df=nf("sort"),pf=!tf((function(){if(af)return af<70;if(!(of&&of>3)){if(sf)return!0;if(cf)return cf<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)uf.push({k:t+n,v:r})}for(uf.sort((function(e,t){return t.v-e.v})),n=0;n<uf.length;n++)t=uf[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));J_({target:"Array",proto:!0,forced:_f||!ff||!df||!pf},{sort:function(e){void 0!==e&&z_(e);var t=Q_(this);if(pf)return void 0===e?Ef(t):Ef(t,e);var r,n,o=[],i=$_(t);for(n=0;n<i;n++)n in t&&lf(o,t[n]);for(rf(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:ef(t)>ef(r)?1:-1}}(e)),r=$_(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)Z_(t,n++);return t}});var hf=xl("Array").sort,Tf=ae,Af=hf,Rf=Array.prototype,Of=r((function(e){var t=e.sort;return e===Rf||Tf(Rf,e)&&t===Rf.sort?Af:t})),Sf={exports:{}},If=yr,mf=w,Nf=Qt.f;If({target:"Object",stat:!0,forced:Object.defineProperty!==Nf,sham:!mf},{defineProperty:Nf});var bf=te.Object,Cf=Sf.exports=function(e,t,r){return bf.defineProperty(e,t,r)};bf.defineProperty.sham&&(Cf.sham=!0);var gf=r(Sf.exports),yf=O,wf=Array.isArray||function(e){return"Array"==yf(e)},vf=TypeError,Lf=wf,Df=Ma,Pf=ee,Mf=_t("species"),Uf=Array,Bf=function(e){var t;return Lf(e)&&(t=e.constructor,(Df(t)&&(t===Uf||Lf(t.prototype))||Pf(t)&&null===(t=t[Mf]))&&(t=void 0)),void 0===t?Uf:t},kf=function(e,t){return new(Bf(e))(0===t?0:t)},Vf=i,Ff=pe,xf=_t("species"),jf=yr,Gf=i,Hf=wf,Wf=ee,Kf=qe,Yf=un,Xf=function(e){if(e>9007199254740991)throw vf("Maximum allowed index exceeded");return e},Jf=y_,qf=kf,zf=function(e){return Ff>=51||!Vf((function(){var t=[];return(t.constructor={})[xf]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Qf=pe,$f=_t("isConcatSpreadable"),Zf=Qf>=51||!Gf((function(){var e=[];return e[$f]=!1,e.concat()[0]!==e})),ed=function(e){if(!Wf(e))return!1;var t=e[$f];return void 0!==t?!!t:Hf(e)};jf({target:"Array",proto:!0,arity:1,forced:!Zf||!zf("concat")},{concat:function(e){var t,r,n,o,i,s=Kf(this),a=qf(s,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(ed(i=-1===t?s:arguments[t]))for(o=Yf(i),Xf(c+o),r=0;r<o;r++,c++)r in i&&Jf(a,c,i[r]);else Xf(c+1),Jf(a,c++,i);return a.length=c,a}});var td={},rd=O,nd=Q,od=zr.f,id=M_,sd="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];td.f=function(e){return sd&&"Window"==rd(e)?function(e){try{return od(e)}catch(e){return id(sd)}}(e):od(nd(e))};var ad={},cd=_t;ad.f=cd;var ud=te,Ed=$e,ld=ad,_d=Qt.f,fd=function(e){var t=ud.Symbol||(ud.Symbol={});Ed(t,e)||_d(t,e,{value:ld.f(e)})},dd=D,pd=se,hd=_t,Td=ss,Ad=function(){var e=pd("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=hd("toPrimitive");t&&!t[n]&&Td(t,n,(function(e){return dd(r,this)}),{arity:1})},Rd=zt,Od=W,Sd=qe,Id=un,md=kf,Nd=h([].push),bd=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,s=7==e,a=5==e||i;return function(c,u,E,l){for(var _,f,d=Sd(c),p=Od(d),h=Rd(u,E),T=Id(p),A=0,R=l||md,O=t?R(c,T):r||s?R(c,0):void 0;T>A;A++)if((a||A in p)&&(f=h(_=p[A],A,d),e))if(t)O[A]=f;else if(f)switch(e){case 3:return!0;case 5:return _;case 6:return A;case 2:Nd(O,_)}else switch(e){case 4:return!1;case 7:Nd(O,_)}return i?-1:n||o?o:O}},Cd={forEach:bd(0),map:bd(1),filter:bd(2),some:bd(3),every:bd(4),find:bd(5),findIndex:bd(6),filterReject:bd(7)},gd=yr,yd=o,wd=D,vd=h,Ld=w,Dd=Re,Pd=i,Md=$e,Ud=ae,Bd=rr,kd=Q,Vd=It,Fd=_i,xd=F,jd=ao,Gd=Fn,Hd=zr,Wd=td,Kd=bn,Yd=y,Xd=Qt,Jd=Bn,qd=P,zd=ss,Qd=sa,$d=Ye,Zd=pn,ep=nt,tp=_t,rp=ad,np=fd,op=Ad,ip=bs,sp=$i,ap=Cd.forEach,cp=Lr("hidden"),up="Symbol",Ep="prototype",lp=sp.set,_p=sp.getterFor(up),fp=Object[Ep],dp=yd.Symbol,pp=dp&&dp[Ep],hp=yd.TypeError,Tp=yd.QObject,Ap=Yd.f,Rp=Xd.f,Op=Wd.f,Sp=qd.f,Ip=vd([].push),mp=$d("symbols"),Np=$d("op-symbols"),bp=$d("wks"),Cp=!Tp||!Tp[Ep]||!Tp[Ep].findChild,gp=Ld&&Pd((function(){return 7!=jd(Rp({},"a",{get:function(){return Rp(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ap(fp,t);n&&delete fp[t],Rp(e,t,r),n&&e!==fp&&Rp(fp,t,n)}:Rp,yp=function(e,t){var r=mp[e]=jd(pp);return lp(r,{type:up,tag:e,description:t}),Ld||(r.description=t),r},wp=function(e,t,r){e===fp&&wp(Np,t,r),Bd(e);var n=Vd(t);return Bd(r),Md(mp,n)?(r.enumerable?(Md(e,cp)&&e[cp][n]&&(e[cp][n]=!1),r=jd(r,{enumerable:xd(0,!1)})):(Md(e,cp)||Rp(e,cp,xd(1,{})),e[cp][n]=!0),gp(e,n,r)):Rp(e,n,r)},vp=function(e,t){Bd(e);var r=kd(t),n=Gd(r).concat(Mp(r));return ap(n,(function(t){Ld&&!wd(Lp,r,t)||wp(e,t,r[t])})),e},Lp=function(e){var t=Vd(e),r=wd(Sp,this,t);return!(this===fp&&Md(mp,t)&&!Md(Np,t))&&(!(r||!Md(this,t)||!Md(mp,t)||Md(this,cp)&&this[cp][t])||r)},Dp=function(e,t){var r=kd(e),n=Vd(t);if(r!==fp||!Md(mp,n)||Md(Np,n)){var o=Ap(r,n);return!o||!Md(mp,n)||Md(r,cp)&&r[cp][n]||(o.enumerable=!0),o}},Pp=function(e){var t=Op(kd(e)),r=[];return ap(t,(function(e){Md(mp,e)||Md(Zd,e)||Ip(r,e)})),r},Mp=function(e){var t=e===fp,r=Op(t?Np:kd(e)),n=[];return ap(r,(function(e){!Md(mp,e)||t&&!Md(fp,e)||Ip(n,mp[e])})),n};Dd||(dp=function(){if(Ud(pp,this))throw hp("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Fd(arguments[0]):void 0,t=ep(e),r=function(e){this===fp&&wd(r,Np,e),Md(this,cp)&&Md(this[cp],t)&&(this[cp][t]=!1),gp(this,t,xd(1,e))};return Ld&&Cp&&gp(fp,t,{configurable:!0,set:r}),yp(t,e)},zd(pp=dp[Ep],"toString",(function(){return _p(this).tag})),zd(dp,"withoutSetter",(function(e){return yp(ep(e),e)})),qd.f=Lp,Xd.f=wp,Jd.f=vp,Yd.f=Dp,Hd.f=Wd.f=Pp,Kd.f=Mp,rp.f=function(e){return yp(tp(e),e)},Ld&&Qd(pp,"description",{configurable:!0,get:function(){return _p(this).description}})),gd({global:!0,constructor:!0,wrap:!0,forced:!Dd,sham:!Dd},{Symbol:dp}),ap(Gd(bp),(function(e){np(e)})),gd({target:up,stat:!0,forced:!Dd},{useSetter:function(){Cp=!0},useSimple:function(){Cp=!1}}),gd({target:"Object",stat:!0,forced:!Dd,sham:!Ld},{create:function(e,t){return void 0===t?jd(e):vp(jd(e),t)},defineProperty:wp,defineProperties:vp,getOwnPropertyDescriptor:Dp}),gd({target:"Object",stat:!0,forced:!Dd},{getOwnPropertyNames:Pp}),op(),ip(dp,up),Zd[cp]=!0;var Up=Re&&!!Symbol.for&&!!Symbol.keyFor,Bp=yr,kp=se,Vp=$e,Fp=_i,xp=Ye,jp=Up,Gp=xp("string-to-symbol-registry"),Hp=xp("symbol-to-string-registry");Bp({target:"Symbol",stat:!0,forced:!jp},{for:function(e){var t=Fp(e);if(Vp(Gp,t))return Gp[t];var r=kp("Symbol")(t);return Gp[t]=r,Hp[r]=t,r}});var Wp=yr,Kp=$e,Yp=be,Xp=ge,Jp=Up,qp=Ye("symbol-to-string-registry");Wp({target:"Symbol",stat:!0,forced:!Jp},{keyFor:function(e){if(!Yp(e))throw TypeError(Xp(e)+" is not a symbol");if(Kp(qp,e))return qp[e]}});var zp=wf,Qp=g,$p=O,Zp=_i,eh=h([].push),th=yr,rh=se,nh=l,oh=D,ih=h,sh=i,ah=g,ch=be,uh=Ha,Eh=function(e){if(Qp(e))return e;if(zp(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?eh(r,o):"number"!=typeof o&&"Number"!=$p(o)&&"String"!=$p(o)||eh(r,Zp(o))}var i=r.length,s=!0;return function(e,t){if(s)return s=!1,t;if(zp(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},lh=Re,_h=String,fh=rh("JSON","stringify"),dh=ih(/./.exec),ph=ih("".charAt),hh=ih("".charCodeAt),Th=ih("".replace),Ah=ih(1..toString),Rh=/[\uD800-\uDFFF]/g,Oh=/^[\uD800-\uDBFF]$/,Sh=/^[\uDC00-\uDFFF]$/,Ih=!lh||sh((function(){var e=rh("Symbol")();return"[null]"!=fh([e])||"{}"!=fh({a:e})||"{}"!=fh(Object(e))})),mh=sh((function(){return'"\\udf06\\ud834"'!==fh("\udf06\ud834")||'"\\udead"'!==fh("\udead")})),Nh=function(e,t){var r=uh(arguments),n=Eh(t);if(ah(n)||void 0!==e&&!ch(e))return r[1]=function(e,t){if(ah(n)&&(t=oh(n,this,_h(e),t)),!ch(t))return t},nh(fh,null,r)},bh=function(e,t,r){var n=ph(r,t-1),o=ph(r,t+1);return dh(Oh,e)&&!dh(Sh,o)||dh(Sh,e)&&!dh(Oh,n)?"\\u"+Ah(hh(e,0),16):e};fh&&th({target:"JSON",stat:!0,arity:3,forced:Ih||mh},{stringify:function(e,t,r){var n=uh(arguments),o=nh(Ih?Nh:fh,null,n);return mh&&"string"==typeof o?Th(o,Rh,bh):o}});var Ch=bn,gh=qe;yr({target:"Object",stat:!0,forced:!Re||i((function(){Ch.f(1)}))},{getOwnPropertySymbols:function(e){var t=Ch.f;return t?t(gh(e)):[]}}),fd("asyncIterator"),fd("hasInstance"),fd("isConcatSpreadable"),fd("iterator"),fd("match"),fd("matchAll"),fd("replace"),fd("search"),fd("species"),fd("split");var yh=Ad;fd("toPrimitive"),yh();var wh=se,vh=bs;fd("toStringTag"),vh(wh("Symbol"),"Symbol"),fd("unscopables"),bs(o.JSON,"JSON",!0);var Lh=te.Symbol,Dh=_t,Ph=Qt.f,Mh=Dh("metadata"),Uh=Function.prototype;void 0===Uh[Mh]&&Ph(Uh,Mh,{value:null}),fd("dispose"),fd("metadata");var Bh=Lh;fd("asyncDispose");var kh=h,Vh=se("Symbol"),Fh=Vh.keyFor,xh=kh(Vh.prototype.valueOf),jh=Vh.isRegisteredSymbol||function(e){try{return void 0!==Fh(xh(e))}catch(e){return!1}};yr({target:"Symbol",stat:!0},{isRegisteredSymbol:jh});for(var Gh=Ye,Hh=se,Wh=h,Kh=be,Yh=_t,Xh=Hh("Symbol"),Jh=Xh.isWellKnownSymbol,qh=Hh("Object","getOwnPropertyNames"),zh=Wh(Xh.prototype.valueOf),Qh=Gh("wks"),$h=0,Zh=qh(Xh),eT=Zh.length;$h<eT;$h++)try{var tT=Zh[$h];Kh(Xh[tT])&&Yh(tT)}catch(e){}var rT=function(e){if(Jh&&Jh(e))return!0;try{for(var t=zh(e),r=0,n=qh(Qh),o=n.length;r<o;r++)if(Qh[n[r]]==t)return!0}catch(e){}return!1};yr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:rT}),fd("matcher"),fd("observable"),yr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:jh}),yr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:rT}),fd("metadataKey"),fd("patternMatch"),fd("replaceAll");var nT=r(Bh),oT=r(ad.f("iterator"));function iT(e){return iT="function"==typeof nT&&"symbol"==typeof oT?function(e){return typeof e}:function(e){return e&&"function"==typeof nT&&e.constructor===nT&&e!==nT.prototype?"symbol":typeof e},iT(e)}var sT=r(ad.f("toPrimitive"));function aT(e){var t=function(e,t){if("object"!==iT(e)||null===e)return e;var r=e[sT];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==iT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iT(t)?t:String(t)}function cT(e,t,r){return(t=aT(t))in e?gf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let uT=function(e){return e.UNEXPECTED_ERROR="UNEXPECTED_ERROR",e.UNEXPECTED_RESPONSE="UNEXPECTED_RESPONSE",e.TIMEOUT="TIMEOUT",e.INVALID_PARAMS="INVALID_PARAMS",e.NOT_READABLE="NOT_READABLE",e.NOT_SUPPORTED="NOT_SUPPORTED",e.INVALID_OPERATION="INVALID_OPERATION",e.OPERATION_ABORTED="OPERATION_ABORTED",e.WEB_SECURITY_RESTRICT="WEB_SECURITY_RESTRICT",e.EXCHANGE_SDP_FAILED="EXCHANGE_SDP_FAILED",e.ADD_CANDIDATE_FAILED="ADD_CANDIDATE_FAILED",e.DATACHANNEL_FAILED="DATACHANNEL_FAILED",e.NETWORK_ERROR="NETWORK_ERROR",e.NETWORK_TIMEOUT="NETWORK_TIMEOUT",e.NETWORK_RESPONSE_ERROR="NETWORK_RESPONSE_ERROR",e.API_INVOKE_TIMEOUT="API_INVOKE_TIMEOUT",e.ENUMERATE_DEVICES_FAILED="ENUMERATE_DEVICES_FAILED",e.DEVICE_NOT_FOUND="DEVICE_NOT_FOUND",e.ELECTRON_IS_NULL="ELECTRON_IS_NULL",e.ELECTRON_DESKTOP_CAPTURER_GET_SOURCES_ERROR="ELECTRON_DESKTOP_CAPTURER_GET_SOURCES_ERROR",e.CHROME_PLUGIN_NO_RESPONSE="CHROME_PLUGIN_NO_RESPONSE",e.CHROME_PLUGIN_NOT_INSTALL="CHROME_PLUGIN_NOT_INSTALL",e.MEDIA_OPTION_INVALID="MEDIA_OPTION_INVALID",e.PERMISSION_DENIED="PERMISSION_DENIED",e.CONSTRAINT_NOT_SATISFIED="CONSTRAINT_NOT_SATISFIED",e.TRACK_IS_DISABLED="TRACK_IS_DISABLED",e.GET_VIDEO_ELEMENT_VISIBLE_ERROR="GET_VIDEO_ELEMENT_VISIBLE_ERROR",e.SHARE_AUDIO_NOT_ALLOWED="SHARE_AUDIO_NOT_ALLOWED",e.LOW_STREAM_ENCODING_ERROR="LOW_STREAM_ENCODING_ERROR",e.SET_ENCODING_PARAMETER_ERROR="SET_ENCODING_PARAMETER_ERROR",e.TRACK_STATE_UNREACHABLE="TRACK_STATE_UNREACHABLE",e.INVALID_UINT_UID_FROM_STRING_UID="INVALID_UINT_UID_FROM_STRING_UID",e.CAN_NOT_GET_PROXY_SERVER="CAN_NOT_GET_PROXY_SERVER",e.CAN_NOT_GET_GATEWAY_SERVER="CAN_NOT_GET_GATEWAY_SERVER",e.VOID_GATEWAY_ADDRESS="VOID_GATEWAY_ADDRESS",e.UID_CONFLICT="UID_CONFLICT",e.MULTI_UNILBS_RESPONSE_ERROR="MULTI_UNILBS_RESPONSE_ERROR",e.UPDATE_TICKET_FAILED="UPDATE_TICKET_FAILED",e.INVALID_LOCAL_TRACK="INVALID_LOCAL_TRACK",e.INVALID_TRACK="INVALID_TRACK",e.SENDER_NOT_FOUND="SENDER_NOT_FOUND",e.CREATE_OFFER_FAILED="CREATE_OFFER_FAILED",e.SET_ANSWER_FAILED="SET_ANSWER_FAILED",e.ICE_FAILED="ICE_FAILED",e.PC_CLOSED="PC_CLOSED",e.SENDER_REPLACE_FAILED="SENDER_REPLACE_FAILED",e.GET_LOCAL_CAPABILITIES_FAILED="GET_LOCAL_CAPABILITIES_FAILED",e.GET_LOCAL_CONNECTION_PARAMS_FAILED="GET_LOCAL_CONNECTION_PARAMS_FAILED",e.SUBSCRIBE_FAILED="SUBSCRIBE_FAILED",e.UNSUBSCRIBE_FAILED="UNSUBSCRIBE_FAILED",e.GATEWAY_P2P_LOST="GATEWAY_P2P_LOST",e.NO_ICE_CANDIDATE="NO_ICE_CANDIDATE",e.CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS="CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS",e.EXIST_DISABLED_VIDEO_TRACK="EXIST_DISABLED_VIDEO_TRACK",e.INVALID_REMOTE_USER="INVALID_REMOTE_USER",e.REMOTE_USER_IS_NOT_PUBLISHED="REMOTE_USER_IS_NOT_PUBLISHED",e.CUSTOM_REPORT_SEND_FAILED="CUSTOM_REPORT_SEND_FAILED",e.CUSTOM_REPORT_FREQUENCY_TOO_HIGH="CUSTOM_REPORT_FREQUENCY_TOO_HIGH",e.FETCH_AUDIO_FILE_FAILED="FETCH_AUDIO_FILE_FAILED",e.READ_LOCAL_AUDIO_FILE_ERROR="READ_LOCAL_AUDIO_FILE_ERROR",e.DECODE_AUDIO_FILE_FAILED="DECODE_AUDIO_FILE_FAILED",e.WS_ABORT="WS_ABORT",e.WS_DISCONNECT="WS_DISCONNECT",e.WS_ERR="WS_ERR",e.EXTERNAL_SIGNAL_ABORT="EXTERNAL_SIGNAL_ABORT",e.LIVE_STREAMING_TASK_CONFLICT="LIVE_STREAMING_TASK_CONFLICT",e.LIVE_STREAMING_INVALID_ARGUMENT="LIVE_STREAMING_INVALID_ARGUMENT",e.LIVE_STREAMING_INTERNAL_SERVER_ERROR="LIVE_STREAMING_INTERNAL_SERVER_ERROR",e.LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED="LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED",e.LIVE_STREAMING_TRANSCODING_NOT_SUPPORTED="LIVE_STREAMING_TRANSCODING_NOT_SUPPORTED",e.LIVE_STREAMING_CDN_ERROR="LIVE_STREAMING_CDN_ERROR",e.LIVE_STREAMING_INVALID_RAW_STREAM="LIVE_STREAMING_INVALID_RAW_STREAM",e.LIVE_STREAMING_WARN_STREAM_NUM_REACH_LIMIT="LIVE_STREAMING_WARN_STREAM_NUM_REACH_LIMIT",e.LIVE_STREAMING_WARN_FAILED_LOAD_IMAGE="LIVE_STREAMING_WARN_FAILED_LOAD_IMAGE",e.LIVE_STREAMING_WARN_FREQUENT_REQUEST="LIVE_STREAMING_WARN_FREQUENT_REQUEST",e.WEBGL_INTERNAL_ERROR="WEBGL_INTERNAL_ERROR",e.BEAUTY_PROCESSOR_INTERNAL_ERROR="BEAUTY_PROCESSOR_INTERNAL_ERROR",e.CROSS_CHANNEL_WAIT_STATUS_ERROR="CROSS_CHANNEL_WAIT_STATUS_ERROR",e.CROSS_CHANNEL_FAILED_JOIN_SRC="CROSS_CHANNEL_FAILED_JOIN_SEC",e.CROSS_CHANNEL_FAILED_JOIN_DEST="CROSS_CHANNEL_FAILED_JOIN_DEST",e.CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST="CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST",e.CROSS_CHANNEL_SERVER_ERROR_RESPONSE="CROSS_CHANNEL_SERVER_ERROR_RESPONSE",e.METADATA_OUT_OF_RANGE="METADATA_OUT_OF_RANGE",e.LOCAL_AEC_ERROR="LOCAL_AEC_ERROR",e.INVALID_PLUGIN="INVALID_PLUGIN",e.DISCONNECT_P2P="DISCONNECT_P2P",e.CONVERTING_IMAGEDATA_TO_BLOB_FAILED="CONVERTING_IMAGEDATA_TO_BLOB_FAILED",e.CONVERTING_VIDEO_FRAME_TO_BLOB_FAILED="CONVERTING_VIDEO_FRAME_TO_BLOB_FAILED",e.INIT_DATACHANNEL_TIMEOUT="INIT_DATACHANNEL_TIMEOUT",e.CREATE_DATACHANNEL_ERROR="CREATE_DATACHANNEL_ERROR",e.DATACHANNEL_CONNECTION_TIMEOUT="DATACHANNEL_CONNECTION_TIMEOUT",e.PROHIBITED_OPERATION="PROHIBITED_OPERATION",e.IMAGE_MODERATION_UPLOAD_FAILED="IMAGE_MODERATION_UPLOAD_FAILED",e.P2P_MESSAGE_FAILED="P2P_MESSAGE_FAILED",e}({});class ET extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;super(t),cT(this,"code",void 0),cT(this,"message",void 0),cT(this,"data",void 0),cT(this,"name","AgoraRTCException"),this.code=e,this.message="AgoraRTCError ".concat(this.code,": ").concat(t),this.data=r}toString(){return this.data?"data: ".concat(JSON.stringify(this.data),"\n").concat(this.stack):"".concat(this.stack)}print(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"error",t=arguments.length>1?arguments[1]:void 0;return"error"===e&&(t||console).error(this.toString()),"warning"===e&&(t||console).warn(this.toString()),this}throw(e){throw this.print("error",e),this}}function lT(e,t){if("boolean"!=typeof e)throw new ET(uT.INVALID_PARAMS,"Invalid ".concat(t,": The value is of the boolean type."))}function _T(e,t,r){if(s_(r).call(r,e))return;throw new ET(uT.INVALID_PARAMS,"".concat(t," can only be set as ").concat(JSON.stringify(r)))}function fT(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e4;if(e<r||e>n||(!(arguments.length>4&&void 0!==arguments[4])||arguments[4])&&!function(e){return"number"==typeof e&&e%1==0}(e)){throw new ET(uT.INVALID_PARAMS,"invalid ".concat(t,": the value range is [").concat(r,", ").concat(n,"]. integer only"))}}function dT(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:255,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(null==e)throw new ET(uT.INVALID_PARAMS,"".concat(t||"param"," cannot be empty"));if(!pT(e,r,n,o))throw new ET(uT.INVALID_PARAMS,"Invalid ".concat(t||"string param",": Length of the string: [").concat(r,",").concat(n,"].").concat(o?" ASCII characters only.":""))}function pT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return"string"==typeof e&&e.length<=r&&e.length>=t&&(!n||function(e){if("string"!=typeof e)return!1;for(let t=0;t<e.length;t+=1){const r=e.charCodeAt(t);if(r<0||r>255)return!1}return!0}(e))}var hT=function(e){return e.COVERED="COVERED",e.POSITION="POSITION",e.SIZE="SIZE",e.STYLE="STYLE",e}(hT||{}),TT=function(e){return e.UNMOUNTED="UNMOUNTED",e.INVALID_HTML_ELEMENT="INVALID_HTML_ELEMENT",e}(TT||{});const AT=new class{constructor(){cT(this,"_clientSize",null),cT(this,"getClientWidth",(()=>document.documentElement?document.documentElement.clientWidth:document.body.clientWidth)),cT(this,"getClientHeight",(()=>document.documentElement?document.documentElement.clientHeight:document.body.clientHeight)),cT(this,"getStyle",(e=>window.getComputedStyle(e,null))),cT(this,"checkCssVisibleProperty",(e=>{var t;let r=!0;const n=this.getStyle(e),{display:o,visibility:i,opacity:s,filter:a}=n;if(("none"===o||s_(t=["hidden","collapse"]).call(t,i)||Number(s)<.1)&&(r=!1),!r)return!1;if(a){a.split(" ").filter((e=>{var t;const r=e.split("(")[0];return s_(t=["brightness","blur","opacity"]).call(t,r)})).map((e=>{const[t,r]=e.split(/\(|\)/);return[t,Number(r.match(/^[0-9\.]+/))]})).forEach((e=>{const[t,n]=e;switch(t){case"brightness":(n<.1||n>3)&&(r=!1);break;case"blur":n>3&&(r=!1);break;case"opacity":n<.1&&(r=!1)}}))}return r})),cT(this,"checkPropertyUpToAllParentNodes",((e,t)=>{let r=!0,n=!0;const o=e=>t(e);let i=e;for(;i&&n;){o(i)||(r=!1,n=!1),i=i.parentElement,i||(n=!1)}return r})),cT(this,"checkActualCssVisibleIncludeInherit",(e=>this.checkPropertyUpToAllParentNodes(e,this.checkCssVisibleProperty))),cT(this,"getSizeAboutClient",(e=>{const{width:t,height:r,left:n,right:o,top:i,bottom:s}=e.getBoundingClientRect(),a=this.getClientWidth(),c=this.getClientHeight();return{width:t,height:r,left:n,right:o,top:i,bottom:s,clientWidth:a,clientHeight:c,clientMin:Math.min(a,c)}})),cT(this,"checkActualSize",(()=>{const{width:e,height:t,clientMin:r}=this._clientSize;return this.checkSizeIsVisible(e,t,r)})),cT(this,"elementFromPoint",((e,t)=>document.elementFromPoint?document.elementFromPoint(e,t):null)),cT(this,"checkCoverForAPoint",((e,t,r)=>{const n=this.elementFromPoint(e,t);return null!==n&&n!==r})),cT(this,"getPointPositionList",(()=>{const{width:e,height:t,left:r,top:n}=this._clientSize,o=e/6,i=t/6,s=[],a=10**6;for(let e=0;e<5;e++)for(let t=0;t<5;t++){const c=(r*a+(0===e?.1:4===e?(o*e*a-1e5)/a:o*e)*a)/a,u=(n*a+(0===t?.1:4===t?(i*t*a-1e5)/a:i*t)*a)/a;s.push({x:c,y:u})}return[...s]})),cT(this,"checkElementCover",(e=>this.getPointPositionList().map((t=>this.checkCoverForAPoint(t.x,t.y,e))).filter((e=>!!e)).length>6)),cT(this,"checkSizeIsVisible",((e,t,r)=>(e>50||r/e<=10)&&(t>50||r/t<=10))),cT(this,"checkSizeOfPartInClient",(()=>{const{left:e,right:t,top:r,bottom:n,clientHeight:o,clientWidth:i,clientMin:s}=this._clientSize;let a,c,u,E;if(e<0)a=0;else{if(!(e<i))return!1;a=e}if(t<0)return!1;if(c=t<i?t:i,r<0)u=0;else{if(!(r<o))return!1;u=r}if(n<0)return!1;E=n<o?n:o;const l=c-a,_=E-u;return this.checkSizeIsVisible(l,_,s)})),cT(this,"returnHiddenResult",(e=>(this._clientSize=null,{visible:!1,reason:e}))),cT(this,"checkOneElementVisible",(e=>{if(e instanceof HTMLElement){if(this.checkElementIsMountedOnDom(e)){if(this.checkActualCssVisibleIncludeInherit(e)){if(this._clientSize=this.getSizeAboutClient(e),this.checkElementCover(e))return this.returnHiddenResult(hT.COVERED);{const e=this.checkActualSize(),t=this.checkSizeOfPartInClient();return e&&!t?this.returnHiddenResult(hT.POSITION):e?(this._clientSize=null,{visible:!0}):this.returnHiddenResult(hT.SIZE)}}return this.returnHiddenResult(hT.STYLE)}return this.returnHiddenResult(TT.UNMOUNTED)}return this.returnHiddenResult(TT.INVALID_HTML_ELEMENT)})),cT(this,"checkElementIsMountedOnDom",(e=>this.checkPropertyUpToAllParentNodes(e,(e=>"HTML"!==e.nodeName.toUpperCase()?null!==e.parentElement:!!document.documentElement))))}};function RT(e){return(new TextEncoder).encode(e)}function OT(e,t){let r="";return new Uint8Array(e).forEach((e=>{r+=e.toString(t).padStart(2,"0")})),r}class ST{constructor(){cT(this,"_events",{}),cT(this,"addListener",this.on)}getListeners(e){return this._events[e]?this._events[e].map((e=>e.listener)):[]}on(e,t){this._events[e]||(this._events[e]=[]);const r=this._events[e];-1===this._indexOfListener(r,t)&&r.push({listener:t,once:!1})}once(e,t){this._events[e]||(this._events[e]=[]);const r=this._events[e];-1===this._indexOfListener(r,t)&&r.push({listener:t,once:!0})}off(e,t){if(!this._events[e])return;const r=this._events[e],n=this._indexOfListener(r,t);-1!==n&&r.splice(n,1),0===this._events[e].length&&delete this._events[e]}removeAllListeners(e){e?delete this._events[e]:this._events={}}emit(e){this._events[e]||(this._events[e]=[]);const t=this._events[e].map((e=>e));for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r=0;r<t.length;r+=1){const o=t[r];o.once&&this.off(e,o.listener),o.listener.apply(this,n||[])}}safeEmit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];[...this._events[e]||[]].forEach((t=>{t.once&&this.off(e,t.listener);try{t.listener.apply(this,r)}catch(t){console.error("safeEmit event:".concat(e," error ").concat(null==t?void 0:t.toString()))}}))}_indexOfListener(e,t){let r=e.length;for(;r--;)if(e[r].listener===t)return r;return-1}}let IT=null;function mT(){if(IT)return IT;if(window.electron)return IT=window.electron;if(!window.require)return null;try{return IT=window.require("electron"),IT}catch(e){return null}}let NT=function(e){return e.CREATE_CLIENT="createClient",e.CHECK_SYSTEM_REQUIREMENTS="checkSystemRequirements",e.SET_AREA="setArea",e.PRELOAD="PRELOAD",e.CHECK_VIDEO_TRACK_IS_ACTIVE="checkVideoTrackIsActive",e.CHECK_AUDIO_TRACK_IS_ACTIVE="checkAudioTrackIsActive",e.CREATE_MIC_AUDIO_TRACK="createMicrophoneAudioTrack",e.CREATE_CUSTOM_AUDIO_TRACK="createCustomAudioTrack",e.CREATE_BUFFER_AUDIO_TRACK="createBufferSourceAudioTrack",e.CREATE_CAM_VIDEO_TRACK="createCameraVideoTrack",e.CREATE_CUSTOM_VIDEO_TRACK="createCustomVideoTrack",e.CREATE_MIC_AND_CAM_TRACKS="createMicrophoneAndCameraTracks",e.CREATE_SCREEN_VIDEO_TRACK="createScreenVideoTrack",e.SET_ENCRYPTION_CONFIG="Client.setEncryptionConfig",e.START_PROXY_SERVER="Client.startProxyServer",e.STOP_PROXY_SERVER="Client.stopProxyServer",e.SET_PROXY_SERVER="Client.setProxyServer",e.SET_TURN_SERVER="Client.setTurnServer",e.SET_CLIENT_ROLE="Client.setClientRole",e.SET_LOW_STREAM_PARAMETER="Client.setLowStreamParameter",e.ENABLE_DUAL_STREAM="Client.enableDualStream",e.DISABLE_DUAL_STREAM="Client.disableDualStream",e.JOIN="Client.join",e.LEAVE="Client.leave",e.PUBLISH="Client.publish",e.UNPUBLISH="Client.unpublish",e.SUBSCRIBE="Client.subscribe",e.MASS_SUBSCRIBE="Client.massSubscribe",e.MASS_UNSUBSCRIBE="Client.massUnsubscribe",e.UNSUBSCRIBE="Client.unsubscribe",e.RENEW_TOKEN="Client.renewToken",e.SET_REMOTE_VIDEO_STREAM_TYPE="Client.setRemoteVideoStreamType",e.SET_STREAM_FALLBACK_OPTION="Client.setStreamFallbackOption",e.ENABLE_AUDIO_VOLUME_INDICATOR="Client.enableAudioVolumeIndicator",e.SEND_CUSTOM_REPORT_MESSAGE="Client.sendCustomReportMessage",e.INSPECT_VIDEO_CONTENT="Client.inspectVideoContent",e.STOP_INSPECT_VIDEO_CONTENT="Client.stopInspectVideoContent",e.JOIN_FALLBACK_TO_PROXY="Client._joinFallbackToProxy",e.ON_LIVE_STREAM_WARNING="Client.onLiveStreamWarning",e.ON_LIVE_STREAM_ERROR="Client.onLiveStreamingError",e.START_LIVE_STREAMING="Client.startLiveStreaming",e.SET_LIVE_TRANSCODING="Client.setLiveTranscoding",e.STOP_LIVE_STREAMING="Client.stopLiveStreaming",e.START_CHANNEL_MEDIA_RELAY="Client.startChannelMediaRelay",e.UPDATE_CHANNEL_MEDIA_RELAY="Client.updateChannelMediaRelay",e.STOP_CHANNEL_MEDIA_RELAY="Client.stopChannelMediaRelay",e.REQUEST_CONFIG_DISTRIBUTE="_config-distribute-request",e.SET_CONFIG_DISTRIBUTE="_configDistribute",e.LOCAL_TRACK_SET_MUTED="LocalTrack.setMute",e.LOCAL_AUDIO_TRACK_PLAY="LocalAudioTrack.play",e.LOCAL_AUDIO_TRACK_PLAY_IN_ELEMENT="LocalAudioTrack.playInElement",e.LOCAL_AUDIO_TRACK_STOP="LocalAudioTrack.stop",e.LOCAL_AUDIO_TRACK_SET_VOLUME="LocalAudioTrack.setVolume",e.MIC_AUDIO_TRACK_SET_DEVICE="MicrophoneAudioTrack.setDevice",e.BUFFER_AUDIO_TRACK_START="BufferSourceAudioTrack.startProcessAudioBuffer",e.BUFFER_AUDIO_TRACK_STOP="BufferSourceAudioTrack.stopProcessAudioBuffer",e.BUFFER_AUDIO_TRACK_PAUSE="BufferSourceAudioTrack.pauseProcessAudioBuffer",e.BUFFER_AUDIO_TRACK_RESUME="BufferSourceAudioTrack.resumeProcessAudioBuffer",e.BUFFER_AUDIO_TRACK_SEEK="BufferSourceAudioTrack.seekAudioBuffer",e.LOCAL_VIDEO_TRACK_PLAY="LocalVideoTrack.play",e.LOCAL_VIDEO_TRACK_STOP="LocalVideoTrack.stop",e.LOCAL_VIDEO_TRACK_GET_VIDEO_VISIBLE="LocalVideoTrack.getVideoElementVisibleStatus",e.LOCAL_VIDEO_TRACK_BEAUTY="LocalVideoTrack.setBeautyEffect",e.LOCAL_VIDEO_SEND_SEI_DATA="LocalVideoTrack.sendSeiData",e.CAM_VIDEO_TRACK_SET_DEVICE="CameraVideoTrack.setDevice",e.CAM_VIDEO_TRACK_SET_ENCODER_CONFIG="CameraVideoTrack.setEncoderConfiguration",e.REMOTE_VIDEO_TRACK_PLAY="RemoteVideoTrack.play",e.REMOTE_VIDEO_TRACK_STOP="RemoteVideoTrack.stop",e.REMOTE_VIDEO_TRACK_GET_VIDEO_VISIBLE="RemoteVideoTrack.getVideoElementVisibleStatus",e.REMOTE_AUDIO_TRACK_PLAY="RemoteAudioTrack.play",e.REMOTE_AUDIO_TRACK_STOP="RemoteAudioTrack.stop",e.REMOTE_AUDIO_SET_VOLUME="RemoteAudioTrack.setVolume",e.REMOTE_AUDIO_SET_OUTPUT_DEVICE="RemoteAudioTrack.setOutputDevice",e.GET_MEDIA_STREAM_TRACK="Track.getMediaStreamTrack",e.STREAM_TYPE_CHANGE="streamTypeChange",e.CONNECTION_STATE_CHANGE="connectionStateChange",e.LOAD_CONFIG_FROM_LOCALSTORAGE="loadConfigFromLocalStorage",e.IMAGE_MODERATION_UPLOAD="imageModerationUpload",e}({}),bT=function(e){return e.TRACER="tracer",e}({});function CT(e){return fT(e.timeout,"config.timeout",0,1e5),fT(e.timeoutFactor,"config.timeoutFactor",0,100,!1),fT(e.maxRetryCount,"config.maxRetryConfig",0,1/0),fT(e.maxRetryTimeout,"config.maxRetryTimeout",0,1/0),!0}let gT=function(e){return e[e.AUDIENCE_LEVEL_LOW_LATENCY=1]="AUDIENCE_LEVEL_LOW_LATENCY",e[e.AUDIENCE_LEVEL_ULTRA_LOW_LATENCY=2]="AUDIENCE_LEVEL_ULTRA_LOW_LATENCY",e[e.AUDIENCE_LEVEL_SYNC_LATENCY=3]="AUDIENCE_LEVEL_SYNC_LATENCY",e}({}),yT=function(e){return e.LEAVE="LEAVE",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.UID_BANNED="UID_BANNED",e.FALLBACK="FALLBACK",e.IP_BANNED="IP_BANNED",e.CHANNEL_BANNED="CHANNEL_BANNED",e.LICENSE_MISSING="LICENSE_MISSING",e.LICENSE_EXPIRED="LICENSE_EXPIRED",e.LICENSE_MINUTES_EXCEEDED="LICENSE_MINUTES_EXCEEDED",e.LICENSE_PERIOD_INVALID="LICENSE_PERIOD_INVALID",e.LICENSE_MULTIPLE_SDK_SERVICE="LICENSE_MULTIPLE_SDK_SERVICE",e.LICENSE_ILLEGAL="LICENSE_ILLEGAL",e.TOKEN_EXPIRE="TOKEN_EXPIRE",e}({});function wT(e){return dT(e.turnServerURL,"turnServerURL"),dT(e.username,"username"),dT(e.password,"password"),e.udpport&&fT(e.udpport,"udpport",1,99999,!0),e.forceturn&&lT(e.forceturn,"forceturn"),e.security&&lT(e.security,"security"),e.tcpport&&fT(e.tcpport,"tcpport",1,99999,!0),!0}let vT=function(e){return e.CONNECTION_STATE_CHANGE="connection-state-change",e.MEDIA_RECONNECT_START="media-reconnect-start",e.MEDIA_RECONNECT_END="media-reconnect-end",e.IS_USING_CLOUD_PROXY="is-using-cloud-proxy",e.USER_JOINED="user-joined",e.USER_LEAVED="user-left",e.USER_PUBLISHED="user-published",e.USER_UNPUBLISHED="user-unpublished",e.USER_INFO_UPDATED="user-info-updated",e.CLIENT_BANNED="client-banned",e.CHANNEL_MEDIA_RELAY_STATE="channel-media-relay-state",e.CHANNEL_MEDIA_RELAY_EVENT="channel-media-relay-event",e.VOLUME_INDICATOR="volume-indicator",e.CRYPT_ERROR="crypt-error",e.ON_TOKEN_PRIVILEGE_WILL_EXPIRE="token-privilege-will-expire",e.ON_TOKEN_PRIVILEGE_DID_EXPIRE="token-privilege-did-expire",e.NETWORK_QUALITY="network-quality",e.STREAM_TYPE_CHANGED="stream-type-changed",e.STREAM_FALLBACK="stream-fallback",e.RECEIVE_METADATA="receive-metadata",e.STREAM_MESSAGE="stream-message",e.LIVE_STREAMING_ERROR="live-streaming-error",e.LIVE_STREAMING_WARNING="live-streaming-warning",e.EXCEPTION="exception",e.ERROR="error",e.P2P_LOST="p2p_lost",e.JOIN_FALLBACK_TO_PROXY="join-fallback-to-proxy",e.CHANNEL_FALLBACK_TO_WEBSOCKET="channel-fallback-to-websocket",e.MEDIA_CONNECTION_TYPE_CHANGE="media-connection-type-change",e.PUBLISHED_USER_LIST="published-user-list",e.CONTENT_INSPECT_CONNECTION_STATE_CHANGE="content-inspect-connection-state-change",e.CONTENT_INSPECT_ERROR="content-inspect-error",e.CONTENT_INSPECT_RESULT="content-inspect-result",e.IMAGE_MODERATION_CONNECTION_STATE_CHANGE="image-moderation-connection-state-change",e}({}),LT=function(e){return e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.MULTI_IP="MULTI_IP",e.TIMEOUT="TIMEOUT",e.OFFLINE="OFFLINE",e.LEAVE="LEAVE",e.P2P_FAILED="P2P_FAILED",e.FALLBACK="FALLBACK",e}({}),DT=function(e){return e.ONLINE="ONLINE",e.OFFLINE="OFFLINE",e}({}),PT=function(e){return e.NETWORK_STATE_CHANGE="NETWORK_STATE_CHANGE",e.ONLINE="ONLINE",e.OFFLINE="OFFLINE",e}({});function MT(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return 0===e.getListeners(t).length?Dl.reject(new ET(uT.UNEXPECTED_ERROR,"can not emit promise")):new Dl(((r,o)=>{e.emit(t,...n,r,o)}))}function UT(e,t){let r=null,n=null;for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];if(e.emit(t,...i,(e=>{r=e}),(e=>{n=e})),null!==n)throw n;if(null===r)throw new ET(uT.UNEXPECTED_ERROR,"handler is not sync");return r}const BT=new class extends ST{set networkState(e){this.emit(PT.NETWORK_STATE_CHANGE,e,this._networkState),e===DT.ONLINE?this.emit(PT.ONLINE):e===DT.OFFLINE&&(this.onlineWaiter=new Dl((e=>{this.once(PT.ONLINE,(()=>{this.onlineWaiter=void 0,e(DT.ONLINE)}))})),this.emit(PT.OFFLINE)),this._networkState=e}get networkState(){return this._networkState}get isOnline(){return this._networkState===DT.ONLINE}constructor(){super(),cT(this,"_moduleName","network-indicator"),cT(this,"_networkState",DT.ONLINE),cT(this,"onlineWaiter",void 0),window.addEventListener("online",(()=>{this.networkState=DT.ONLINE})),window.addEventListener("offline",(()=>{this.networkState=DT.OFFLINE}))}};var kT=Le,VT=qe,FT=W,xT=un,jT=TypeError,GT=function(e){return function(t,r,n,o){kT(r);var i=VT(t),s=FT(i),a=xT(i),c=e?a-1:0,u=e?-1:1;if(n<2)for(;;){if(c in s){o=s[c],c+=u;break}if(c+=u,e?c<0:a<=c)throw jT("Reduce of empty array with no initial value")}for(;e?c>=0:a>c;c+=u)c in s&&(o=r(o,s[c],c,i));return o}},HT={left:GT(!1),right:GT(!0)}.left;yr({target:"Array",proto:!0,forced:!oa&&pe>79&&pe<83||!G_("reduce")},{reduce:function(e){var t=arguments.length;return HT(this,e,t,t>1?arguments[1]:void 0)}});var WT=xl("Array").reduce,KT=ae,YT=WT,XT=Array.prototype,JT=r((function(e){var t=e.reduce;return e===XT||KT(XT,e)&&t===XT.reduce?YT:t}));function qT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qT(Object(r),!0).forEach((function(t){cT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function QT(e){return JSON.parse(JSON.stringify(e))}const $T={};function ZT(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=JT(t).call(t,((e,t)=>e+t.length),0),o=new Uint8Array(new ArrayBuffer(n));let i=0;return t.forEach((e=>{o.set(e,i),i+=e.length})),o}function eA(e){return window.TextEncoder?(new TextEncoder).encode(e).length:e.length}function tA(e){let t=0;return(/DingTalk/i.test(navigator.userAgent)||/AliApp/i.test(navigator.userAgent))&&e.realFormData&&(e=e.realFormData),e.forEach((e=>{t+="string"==typeof e?eA(e):e.size})),t+138}function rA(e){const t=new ET(uT.TIMEOUT,"timeout");return new Dl(((r,n)=>{window.setTimeout((()=>n(t)),e)}))}function nA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7,t=arguments.length>1?arguments[1]:void 0;const r=Math.random().toString(16).substr(2,e).toLowerCase();return r.length===e?"".concat(t).concat(r):"".concat(t).concat(r)+nA(e-r.length,"")}const oA=new class{constructor(){cT(this,"fnMap",new Map)}throttleByKey(e,t,r,n){for(var o=arguments.length,i=new Array(o>4?o-4:0),s=4;s<o;s++)i[s-4]=arguments[s];if(this.fnMap.has(t)){const o=this.fnMap.get(t);if(o.threshold!==r){o.fn(...o.args),clearTimeout(o.timer);const s=window.setTimeout((()=>{const e=this.fnMap.get(t);e&&e.fn(...e.args),this.fnMap.delete(t)}),r);this.fnMap.set(t,{fn:e,threshold:r,timer:s,args:i,skipFn:n})}else o.skipFn&&o.skipFn(...o.args),this.fnMap.set(t,zT(zT({},o),{},{fn:e,args:i,skipFn:n}))}else{const o=window.setTimeout((()=>{const e=this.fnMap.get(t);e&&e.fn(...e.args),this.fnMap.delete(t)}),r);this.fnMap.set(t,{fn:e,threshold:r,timer:o,args:i,skipFn:n})}}},iA=oA.throttleByKey.bind(oA);function sA(e){return"object"==typeof e&&null!==e&&!(e instanceof RegExp)}function aA(e,t){let r=[0];if(t&&(r=new Array(t).fill(0)),0===e)return r;let n=0;for(;e>0&&(r[n]=255&e,e>>=8,n++,!t||n!==t););return r}let cA=1,uA=console;const EA={timeout:500,timeoutFactor:1.5,maxRetryCount:1/0,maxRetryTimeout:1e4};function lA(e,t){return function(){return e.apply(t,arguments)}}const{toString:_A}=Object.prototype,{getPrototypeOf:fA}=Object,dA=(pA=Object.create(null),e=>{const t=_A.call(e);return pA[t]||(pA[t]=t.slice(8,-1).toLowerCase())});var pA;const hA=e=>(e=e.toLowerCase(),t=>dA(t)===e),TA=e=>t=>typeof t===e,{isArray:AA}=Array,RA=TA("undefined");const OA=hA("ArrayBuffer");const SA=TA("string"),IA=TA("function"),mA=TA("number"),NA=e=>null!==e&&"object"==typeof e,bA=e=>{if("object"!==dA(e))return!1;const t=fA(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},CA=hA("Date"),gA=hA("File"),yA=hA("Blob"),wA=hA("FileList"),vA=hA("URLSearchParams"),[LA,DA,PA,MA]=["ReadableStream","Request","Response","Headers"].map(hA);function UA(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),AA(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function BA(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const kA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,VA=e=>!RA(e)&&e!==kA;const FA=(xA="undefined"!=typeof Uint8Array&&fA(Uint8Array),e=>xA&&e instanceof xA);var xA;const jA=hA("HTMLFormElement"),GA=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),HA=hA("RegExp"),WA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};UA(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},KA="abcdefghijklmnopqrstuvwxyz",YA="0123456789",XA={DIGIT:YA,ALPHA:KA,ALPHA_DIGIT:KA+KA.toUpperCase()+YA};const JA=hA("AsyncFunction"),qA=(zA="function"==typeof setImmediate,QA=IA(kA.postMessage),zA?setImmediate:QA?($A=`axios@${Math.random()}`,ZA=[],kA.addEventListener("message",(({source:e,data:t})=>{e===kA&&t===$A&&ZA.length&&ZA.shift()()}),!1),e=>{ZA.push(e),kA.postMessage($A,"*")}):e=>setTimeout(e));var zA,QA,$A,ZA;const eR="undefined"!=typeof queueMicrotask?queueMicrotask.bind(kA):"undefined"!=typeof process&&process.nextTick||qA;var tR={isArray:AA,isArrayBuffer:OA,isBuffer:function(e){return null!==e&&!RA(e)&&null!==e.constructor&&!RA(e.constructor)&&IA(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||IA(e.append)&&("formdata"===(t=dA(e))||"object"===t&&IA(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OA(e.buffer),t},isString:SA,isNumber:mA,isBoolean:e=>!0===e||!1===e,isObject:NA,isPlainObject:bA,isReadableStream:LA,isRequest:DA,isResponse:PA,isHeaders:MA,isUndefined:RA,isDate:CA,isFile:gA,isBlob:yA,isRegExp:HA,isFunction:IA,isStream:e=>NA(e)&&IA(e.pipe),isURLSearchParams:vA,isTypedArray:FA,isFileList:wA,forEach:UA,merge:function e(){const{caseless:t}=VA(this)&&this||{},r={},n=(n,o)=>{const i=t&&BA(r,o)||o;bA(r[i])&&bA(n)?r[i]=e(r[i],n):bA(n)?r[i]=e({},n):AA(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&UA(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(UA(t,((t,n)=>{r&&IA(t)?e[n]=lA(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&fA(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:dA,kindOfTest:hA,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(AA(e))return e;let t=e.length;if(!mA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:jA,hasOwnProperty:GA,hasOwnProp:GA,reduceDescriptors:WA,freezeMethods:e=>{WA(e,((t,r)=>{if(IA(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];IA(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return AA(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:BA,global:kA,isContextDefined:VA,ALPHABET:XA,generateString:(e=16,t=XA.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&IA(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(NA(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=AA(e)?[]:{};return UA(e,((e,t)=>{const i=r(e,n+1);!RA(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:JA,isThenable:e=>e&&(NA(e)||IA(e))&&IA(e.then)&&IA(e.catch),setImmediate:qA,asap:eR};function rR(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}tR.inherits(rR,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:tR.toJSONObject(this.config),code:this.code,status:this.status}}});const nR=rR.prototype,oR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{oR[e]={value:e}})),Object.defineProperties(rR,oR),Object.defineProperty(nR,"isAxiosError",{value:!0}),rR.from=(e,t,r,n,o,i)=>{const s=Object.create(nR);return tR.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),rR.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function iR(e){return tR.isPlainObject(e)||tR.isArray(e)}function sR(e){return tR.endsWith(e,"[]")?e.slice(0,-2):e}function aR(e,t,r){return e?e.concat(t).map((function(e,t){return e=sR(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const cR=tR.toFlatObject(tR,{},null,(function(e){return/^is[A-Z]/.test(e)}));function uR(e,t,r){if(!tR.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=tR.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!tR.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&tR.isSpecCompliantForm(t);if(!tR.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(tR.isDate(e))return e.toISOString();if(!a&&tR.isBlob(e))throw new rR("Blob is not supported. Use a Buffer instead.");return tR.isArrayBuffer(e)||tR.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(tR.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(tR.isArray(e)&&function(e){return tR.isArray(e)&&!e.some(iR)}(e)||(tR.isFileList(e)||tR.endsWith(r,"[]"))&&(a=tR.toArray(e)))return r=sR(r),a.forEach((function(e,n){!tR.isUndefined(e)&&null!==e&&t.append(!0===s?aR([r],n,i):null===s?r:r+"[]",c(e))})),!1;return!!iR(e)||(t.append(aR(o,r,i),c(e)),!1)}const E=[],l=Object.assign(cR,{defaultVisitor:u,convertValue:c,isVisitable:iR});if(!tR.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!tR.isUndefined(r)){if(-1!==E.indexOf(r))throw Error("Circular reference detected in "+n.join("."));E.push(r),tR.forEach(r,(function(r,i){!0===(!(tR.isUndefined(r)||null===r)&&o.call(t,r,tR.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),E.pop()}}(e),t}function ER(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function lR(e,t){this._pairs=[],e&&uR(e,this,t)}const _R=lR.prototype;function fR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dR(e,t,r){if(!t)return e;const n=r&&r.encode||fR,o=r&&r.serialize;let i;if(i=o?o(t,r):tR.isURLSearchParams(t)?t.toString():new lR(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}_R.append=function(e,t){this._pairs.push([e,t])},_R.toString=function(e){const t=e?function(t){return e.call(this,t,ER)}:ER;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var pR=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){tR.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},hR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TR={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:lR,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const AR="undefined"!=typeof window&&"undefined"!=typeof document,RR="object"==typeof navigator&&navigator||void 0,OR=AR&&(!RR||["ReactNative","NativeScript","NS"].indexOf(RR.product)<0),SR="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,IR=AR&&window.location.href||"http://localhost";var mR={...Object.freeze({__proto__:null,hasBrowserEnv:AR,hasStandardBrowserEnv:OR,hasStandardBrowserWebWorkerEnv:SR,navigator:RR,origin:IR}),...TR};function NR(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&tR.isArray(n)?n.length:i,a)return tR.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&tR.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&tR.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(tR.isFormData(e)&&tR.isFunction(e.entries)){const r={};return tR.forEachEntry(e,((e,n)=>{t(function(e){return tR.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const bR={transitional:hR,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=tR.isObject(e);o&&tR.isHTMLForm(e)&&(e=new FormData(e));if(tR.isFormData(e))return n?JSON.stringify(NR(e)):e;if(tR.isArrayBuffer(e)||tR.isBuffer(e)||tR.isStream(e)||tR.isFile(e)||tR.isBlob(e)||tR.isReadableStream(e))return e;if(tR.isArrayBufferView(e))return e.buffer;if(tR.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return uR(e,new mR.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return mR.isNode&&tR.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=tR.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return uR(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(tR.isString(e))try{return(t||JSON.parse)(e),tR.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bR.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(tR.isResponse(e)||tR.isReadableStream(e))return e;if(e&&tR.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw rR.from(e,rR.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mR.classes.FormData,Blob:mR.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tR.forEach(["delete","get","head","post","put","patch"],(e=>{bR.headers[e]={}}));var CR=bR;const gR=tR.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const yR=Symbol("internals");function wR(e){return e&&String(e).trim().toLowerCase()}function vR(e){return!1===e||null==e?e:tR.isArray(e)?e.map(vR):String(e)}function LR(e,t,r,n,o){return tR.isFunction(n)?n.call(this,t,r):(o&&(t=r),tR.isString(t)?tR.isString(n)?-1!==t.indexOf(n):tR.isRegExp(n)?n.test(t):void 0:void 0)}class DR{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=wR(t);if(!o)throw new Error("header name must be a non-empty string");const i=tR.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=vR(e))}const i=(e,t)=>tR.forEach(e,((e,r)=>o(e,r,t)));if(tR.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(tR.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&gR[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(tR.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=wR(e)){const r=tR.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(tR.isFunction(t))return t.call(this,e,r);if(tR.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=wR(e)){const r=tR.findKey(this,e);return!(!r||void 0===this[r]||t&&!LR(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=wR(e)){const o=tR.findKey(r,e);!o||t&&!LR(0,r[o],o,t)||(delete r[o],n=!0)}}return tR.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!LR(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return tR.forEach(this,((n,o)=>{const i=tR.findKey(r,o);if(i)return t[i]=vR(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete t[o],t[s]=vR(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return tR.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&tR.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[yR]=this[yR]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=wR(e);t[n]||(!function(e,t){const r=tR.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return tR.isArray(e)?e.forEach(n):n(e),this}}DR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tR.reduceDescriptors(DR.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),tR.freezeMethods(DR);var PR=DR;function MR(e,t){const r=this||CR,n=t||r,o=PR.from(n.headers);let i=n.data;return tR.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function UR(e){return!(!e||!e.__CANCEL__)}function BR(e,t,r){rR.call(this,null==e?"canceled":e,rR.ERR_CANCELED,t,r),this.name="CanceledError"}function kR(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new rR("Request failed with status code "+r.status,[rR.ERR_BAD_REQUEST,rR.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}tR.inherits(BR,rR,{__CANCEL__:!0});const VR=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let E=s,l=0;for(;E!==i;)l+=r[E++],E%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const _=u&&c-u;return _?Math.round(1e3*l/_):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),i-a)))},()=>r&&s(r)]}((r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},FR=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},xR=e=>(...t)=>tR.asap((()=>e(...t)));var jR=mR.hasStandardBrowserEnv?function(){const e=mR.navigator&&/(msie|trident)/i.test(mR.navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=tR.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},GR=mR.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];tR.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),tR.isString(n)&&s.push("path="+n),tR.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function HR(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const WR=e=>e instanceof PR?{...e}:e;function KR(e,t){t=t||{};const r={};function n(e,t,r){return tR.isPlainObject(e)&&tR.isPlainObject(t)?tR.merge.call({caseless:r},e,t):tR.isPlainObject(t)?tR.merge({},t):tR.isArray(t)?t.slice():t}function o(e,t,r){return tR.isUndefined(t)?tR.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!tR.isUndefined(t))return n(void 0,t)}function s(e,t){return tR.isUndefined(t)?tR.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(WR(e),WR(t),!0)};return tR.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,s=i(e[n],t[n],n);tR.isUndefined(s)&&i!==a||(r[n]=s)})),r}var YR=e=>{const t=KR({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=PR.from(a),t.url=dR(HR(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),tR.isFormData(n))if(mR.hasStandardBrowserEnv||mR.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(mR.hasStandardBrowserEnv&&(o&&tR.isFunction(o)&&(o=o(t)),o||!1!==o&&jR(t.url))){const e=i&&s&&GR.read(s);e&&a.set(i,e)}return t};var XR="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=YR(e);let o=n.data;const i=PR.from(n.headers).normalize();let s,a,c,u,E,{responseType:l,onUploadProgress:_,onDownloadProgress:f}=n;function d(){u&&u(),E&&E(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let p=new XMLHttpRequest;function h(){if(!p)return;const n=PR.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());kR((function(e){t(e),d()}),(function(e){r(e),d()}),{data:l&&"text"!==l&&"json"!==l?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}p.open(n.method.toUpperCase(),n.url,!0),p.timeout=n.timeout,"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(h)},p.onabort=function(){p&&(r(new rR("Request aborted",rR.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new rR("Network Error",rR.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||hR;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new rR(t,o.clarifyTimeoutError?rR.ETIMEDOUT:rR.ECONNABORTED,e,p)),p=null},void 0===o&&i.setContentType(null),"setRequestHeader"in p&&tR.forEach(i.toJSON(),(function(e,t){p.setRequestHeader(t,e)})),tR.isUndefined(n.withCredentials)||(p.withCredentials=!!n.withCredentials),l&&"json"!==l&&(p.responseType=n.responseType),f&&([c,E]=VR(f,!0),p.addEventListener("progress",c)),_&&p.upload&&([a,u]=VR(_),p.upload.addEventListener("progress",a),p.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{p&&(r(!t||t.type?new BR(null,e,p):t),p.abort(),p=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const T=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);T&&-1===mR.protocols.indexOf(T)?r(new rR("Unsupported protocol "+T+":",rR.ERR_BAD_REQUEST,e)):p.send(o||null)}))};var JR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof rR?t:new BR(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new rR(`timeout ${t} of ms exceeded`,rR.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>tR.asap(s),a}};const qR=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},zR=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},QR=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of zR(e))yield*qR(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},$R="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ZR=$R&&"function"==typeof ReadableStream,eO=$R&&("function"==typeof TextEncoder?(tO=new TextEncoder,e=>tO.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var tO;const rO=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},nO=ZR&&rO((()=>{let e=!1;const t=new Request(mR.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),oO=ZR&&rO((()=>tR.isReadableStream(new Response("").body))),iO={stream:oO&&(e=>e.body)};var sO;$R&&(sO=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!iO[e]&&(iO[e]=tR.isFunction(sO[e])?t=>t[e]():(t,r)=>{throw new rR(`Response type '${e}' is not supported`,rR.ERR_NOT_SUPPORT,r)})})));const aO=async(e,t)=>{const r=tR.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(tR.isBlob(e))return e.size;if(tR.isSpecCompliantForm(e)){const t=new Request(mR.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return tR.isArrayBufferView(e)||tR.isArrayBuffer(e)?e.byteLength:(tR.isURLSearchParams(e)&&(e+=""),tR.isString(e)?(await eO(e)).byteLength:void 0)})(t):r};var cO=$R&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:E,withCredentials:l="same-origin",fetchOptions:_}=YR(e);u=u?(u+"").toLowerCase():"text";let f,d=JR([o,i&&i.toAbortSignal()],s);const p=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let h;try{if(c&&nO&&"get"!==r&&"head"!==r&&0!==(h=await aO(E,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(tR.isFormData(n)&&(e=r.headers.get("content-type"))&&E.setContentType(e),r.body){const[e,t]=FR(h,VR(xR(c)));n=QR(r.body,65536,e,t)}}tR.isString(l)||(l=l?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{..._,signal:d,method:r.toUpperCase(),headers:E.normalize().toJSON(),body:n,duplex:"half",credentials:o?l:void 0});let i=await fetch(f);const s=oO&&("stream"===u||"response"===u);if(oO&&(a||s&&p)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=tR.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&FR(t,VR(xR(a),!0))||[];i=new Response(QR(i.body,65536,r,(()=>{n&&n(),p&&p()})),e)}u=u||"text";let T=await iO[tR.findKey(iO,u)||"text"](i,e);return!s&&p&&p(),await new Promise(((t,r)=>{kR(t,r,{data:T,headers:PR.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(p&&p(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new rR("Network Error",rR.ERR_NETWORK,e,f),{cause:t.cause||t});throw rR.from(t,t&&t.code,e,f)}});const uO={http:null,xhr:XR,fetch:cO};tR.forEach(uO,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const EO=e=>`- ${e}`,lO=e=>tR.isFunction(e)||null===e||!1===e;var _O={getAdapter:e=>{e=tR.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!lO(r)&&(n=uO[(t=String(r)).toLowerCase()],void 0===n))throw new rR(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new rR("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(EO).join("\n"):" "+EO(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:uO};function fO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new BR(null,e)}function dO(e){fO(e),e.headers=PR.from(e.headers),e.data=MR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _O.getAdapter(e.adapter||CR.adapter)(e).then((function(t){return fO(e),t.data=MR.call(e,e.transformResponse,t),t.headers=PR.from(t.headers),t}),(function(t){return UR(t)||(fO(e),t&&t.response&&(t.response.data=MR.call(e,e.transformResponse,t.response),t.response.headers=PR.from(t.response.headers))),Promise.reject(t)}))}const pO="1.7.7",hO={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{hO[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const TO={};hO.transitional=function(e,t,r){function n(e,t){return"[Axios v"+pO+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new rR(n(o," has been removed"+(t?" in "+t:"")),rR.ERR_DEPRECATED);return t&&!TO[o]&&(TO[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var AO={assertOptions:function(e,t,r){if("object"!=typeof e)throw new rR("options must be an object",rR.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new rR("option "+i+" must be "+r,rR.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new rR("Unknown option "+i,rR.ERR_BAD_OPTION)}},validators:hO};const RO=AO.validators;let OO=class{constructor(e){this.defaults=e,this.interceptors={request:new pR,response:new pR}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=KR(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&AO.assertOptions(r,{silentJSONParsing:RO.transitional(RO.boolean),forcedJSONParsing:RO.transitional(RO.boolean),clarifyTimeoutError:RO.transitional(RO.boolean)},!1),null!=n&&(tR.isFunction(n)?t.paramsSerializer={serialize:n}:AO.assertOptions(n,{encode:RO.function,serialize:RO.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&tR.merge(o.common,o[t.method]);o&&tR.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=PR.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let E,l=0;if(!a){const e=[dO.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),E=e.length,u=Promise.resolve(t);l<E;)u=u.then(e[l++],e[l++]);return u}E=s.length;let _=t;for(l=0;l<E;){const e=s[l++],t=s[l++];try{_=e(_)}catch(e){t.call(this,e);break}}try{u=dO.call(this,_)}catch(e){return Promise.reject(e)}for(l=0,E=c.length;l<E;)u=u.then(c[l++],c[l++]);return u}getUri(e){return dR(HR((e=KR(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};tR.forEach(["delete","get","head","options"],(function(e){OO.prototype[e]=function(t,r){return this.request(KR(r||{},{method:e,url:t,data:(r||{}).data}))}})),tR.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(KR(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}OO.prototype[e]=t(),OO.prototype[e+"Form"]=t(!0)}));var SO=OO;class IO{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new BR(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new IO((function(t){e=t})),cancel:e}}}var mO=IO;const NO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(NO).forEach((([e,t])=>{NO[t]=e}));var bO=NO;const CO=function e(t){const r=new SO(t),n=lA(SO.prototype.request,r);return tR.extend(n,SO.prototype,r,{allOwnKeys:!0}),tR.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(KR(t,r))},n}(CR);CO.Axios=SO,CO.CanceledError=BR,CO.CancelToken=mO,CO.isCancel=UR,CO.VERSION=pO,CO.toFormData=uR,CO.AxiosError=rR,CO.Cancel=CO.CanceledError,CO.all=function(e){return Promise.all(e)},CO.spread=function(e){return function(t){return e.apply(null,t)}},CO.isAxiosError=function(e){return tR.isObject(e)&&!0===e.isAxiosError},CO.mergeConfig=KR,CO.AxiosHeaders=PR,CO.formToJSON=e=>NR(tR.isHTMLForm(e)?new FormData(e):e),CO.getAdapter=_O.getAdapter,CO.HttpStatusCode=bO,CO.default=CO;var gO=CO;function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yO(Object(r),!0).forEach((function(t){cT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}let vO,LO=0,DO=0;function PO(e,t,r,n){return new Dl(((o,i)=>{t.responseType=t.responseType||"json",t.data&&!r?(t.data=JSON.stringify(t.data),LO+=eA(t.data)):r&&(t.data.size?LO+=t.data.size:t.data instanceof FormData?LO+=tA(t.data):LO+=eA(JSON.stringify(t.data))),t.headers=t.headers||{},t.headers["Content-Type"]=t.headers["Content-Type"]||"application/json",t.method="POST",t.url=e,gO.request(t).then((e=>{"string"==typeof e.data?DO+=eA(e.data):e.data instanceof ArrayBuffer||e.data instanceof Uint8Array?DO+=e.data.byteLength:DO+=eA(JSON.stringify(e.data)),n&&o({data:e.data,headers:e.headers}),o(e.data)})).catch((e=>{gO.isCancel(e)?i(new ET(uT.OPERATION_ABORTED,"cancel token canceled")):"ECONNABORTED"===e.code?i(new ET(uT.NETWORK_TIMEOUT,e.message)):e.response?i(new ET(uT.NETWORK_RESPONSE_ERROR,e.response.status)):i(new ET(uT.NETWORK_ERROR,e.message))}))}))}function MO(e){if(e.match(/[0-9]+\.[0-9]+\.[0-9]+$/))return e;const t=e.match(/([0-9]+\.[0-9]+\.[0-9]+)\-([0-9]+)/);if(t&&t[1]&&t[2]){const e=t[1],r=t[2];return"".concat(e,".").concat(r)}return"4.0.0.999"}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?UO(Object(r),!0).forEach((function(t){cT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const kO=MO("4.22.1"),VO=function(){try{return!0===JSON.parse("true")}catch(e){return!0}}(),FO=["CHINA","GLOBAL"];let xO=function(e){return e.Default="default",e.Auto="auto",e.Relay="relay",e.SdRtn="sd-rtn",e}({});const jO=function(){const e="us".concat("erna","me"),t="pa".concat("sswo","rd"),r=["t","s","t"];r.splice(1,0,"e");const n=r.join(""),o=[];for(let e=0;e<6;e++)o.push("1");const i=o.join(""),s={};return s[e]=n,s[t]=i,Object.assign(s,{turnServerURL:"",tcpport:3433,udpport:3478,forceturn:!1})}();window.DEFAULT_TURN_CONFIG=jO;const GO={ENABLE_PUBLISHED_USER_LIST:!0,MAX_SUBSCRIPTION:50,SUBSCRIBE_AUDIO_FILTER_TOPN:void 0,ENABLE_PUBLISH_AUDIO_FILTER:void 0,ENABLE_USER_LICENSE_CHECK:!0,USE_PUB_RTX:!0,USE_SUB_RTX:!0,DISABLE_FEC:void 0,ENABLE_NTP_REPORT:!1,ENABLE_INSTANT_VIDEO:!1,ENABLE_DATASTREAM_2:!1,ENABLE_USER_AUTO_REBALANCE_CHECK:!0,USE_XR:!0,ENABLE_LOSSBASED_BWE:!0,ENABLE_AUT_CC:!1,ENABLE_CC_FALLBACK:void 0,ENABLE_PREALLOC_PC:!1,SUBSCRIBE_TWCC:!0,PUBLISH_TWCC:!1,ENABLE_SVC:!1,ENABLE_SVC_DEFAULT_CODECS:["H264","VP8","VP9","AV1"],SVC:[],ENABLE_FULL_LINK_AV_SYNC:!1,SVC_MODE:null,PRE_SUB_NUM:2,ENABLE_PRE_SUB:!1,ENABLE_AUT_FEEDBACK:!1},HO={MIN_FRAME_RATE:1,MAX_FRAME_RATE:30,MAX_THRESHOLD_FRAMERATE:30,BITRATE_MIN_THRESHOLD:100,BITRATE_MAX_THRESHOLD:100,MAX_SCALE:5,BWE_SCALE_UP_THRESHOLD:.6,BWE_SCALE_DOWN_THRESHOLD:.6,PERF_SCALE_UP_THRESHOLD:.7,PERF_SCALE_DOWN_THRESHOLD:.6,MOTION_RESOLUTION_FACTOR:.8,MOTION_BITRATE_FACTOR:.6,DETAIL_FRAMERATE_FACTOR:.8,DETAIL_BITRATE_FACTOR:.6,BALANCE_RESOLUTION_FACTOR:.9,BALANCE_FRAMERATE_FACTOR:.9,BALANCE_BITRATE_FACTOR:.6,OVERUSE_TIMES_THRESHOLD:10,UNDERUSE_TIMES_THRESHOLD:40},WO=BO(BO({PROCESS_ID:"",ENCRYPT_AES:!0,AREAS:FO,WEBCS_DOMAIN:["webrtc2-ap-web-1.agora.io","webrtc2-2.ap.sd-rtn.com"],WEBCS_DOMAIN_BACKUP_LIST:["webrtc2-ap-web-3.agora.io","webrtc2-4.ap.sd-rtn.com"],PROXY_CS:["ap-proxy-1.agora.io","ap-proxy-2.agora.io"],CDS_AP:["cds-ap-web-1.agora.io","cds-web-2.ap.sd-rtn.com","cds-ap-web-3.agora.io","cds-web-4.ap.sd-rtn.com"],ACCOUNT_REGISTER:["sua-ap-web-1.agora.io","sua-web-2.ap.sd-rtn.com","sua-ap-web-3.agora.io","sua-web-4.ap.sd-rtn.com"],UAP_AP:["uap-ap-web-1.agora.io","uap-web-2.ap.sd-rtn.com","uap-ap-web-3.agora.io","uap-web-4.ap.sd-rtn.com"],LOG_UPLOAD_SERVER:"logservice.agora.io",EVENT_REPORT_DOMAIN:"statscollector-1.agora.io",EVENT_REPORT_BACKUP_DOMAIN:"web-2.statscollector.sd-rtn.com",ENABLE_EVENT_REPORT:!0,GATEWAY_ADDRESS:[],GATEWAY_WSS_ADDRESS:"",LIVE_STREAMING_ADDRESS:"",HTTP_CONNECT_TIMEOUT:5e3,SIGNAL_REQUEST_TIMEOUT:1e4,REPORT_STATS:!0,UPLOAD_LOG:!1,NOT_REPORT_EVENT:[],PING_PONG_TIME_OUT:10,WEBSOCKET_TIMEOUT_MIN:1e4,EVENT_REPORT_SEND_INTERVAL:3e3,CONFIG_DISTRIBUTE_INTERVAL:3e5,ENABLE_CONFIG_DISTRIBUTE:!0,CANDIDATE_TIMEOUT:5e3,SHOW_REPORT_INVOKER_LOG:!1,JOIN_EXTEND:"",PUB_EXTEND:"",SUB_EXTEND:"",FORCE_TURN:!1,TURN_ENABLE_TCP:!0,TURN_ENABLE_UDP:!0,MAX_UPLOAD_CACHE:50,UPLOAD_CACHE_INTERVAL:2e3,AJAX_REQUEST_CONCURRENT:3,REPORT_APP_SCENARIO:void 0,GATEWAY_DOMAINS:["edge.agora.io","edge.sd-rtn.com"],CONNECT_GATEWAY_WITHOUT_DOMAIN:!1,WORKER_DOMAIN:"edge.agora.io",TURN_DOMAIN:"edge.agora.io",EVENT_REPORT_RETRY:!0,CHROME_FORCE_PLAN_B:!1,AUDIO_SOURCE_VOLUME_UPDATE_INTERVAL:400,AUDIO_SOURCE_AVG_VOLUME_DURATION:3e3,AUDIO_VOLUME_INDICATION_INTERVAL:2e3,VOLUME_VOICE_WEIGHT:10,GET_VOLUME_OF_MUTED_AUDIO_TRACK:!1,STATS_UPDATE_INTERVAL:250,NORMAL_EVENT_QUEUE_CAPACITY:100,CUSTOM_REPORT:!0,CUSTOM_REPORT_LIMIT:20,PROXY_SERVER_TYPE2:"webnginx-proxy.agora.io",PROXY_SERVER_TYPE3:["webrtc-cloud-proxy.sd-rtn.com","webrtc-cloud-proxy.agora.io"],CUSTOM_PUB_ANSWER_MODIFIER:null,CUSTOM_SUB_ANSWER_MODIFIER:null,CUSTOM_PUB_OFFER_MODIFIER:null,CUSTOM_SUB_OFFER_MODIFIER:null,DSCP_TYPE:"high",REMOVE_NEW_CODECS:!0,FRAGEMENT_LENGTH:3,WEBSOCKET_COMPRESS:!1,SIMULCAST:!1,PRELOAD_MEDIA_COUNT:0,CHECK_VIDEO_VISIBLE_INTERVAL:3e4,CHECK_LOCAL_STATS_INTERVAL:250,PROFILE_SWITCH_INTERVAL:2e3,UNSUPPORTED_VIDEO_CODEC:[],ENUMERATE_DEVICES_INTERVAL:!1,ENUMERATE_DEVICES_INTERVAL_TIME:1e4,USE_NEW_TOKEN:!1,CLOSE_AFB_FOR_LOCAL_AP:!0,JOIN_MAX_CONCURRENCY:6,JOIN_WITH_FALLBACK_SIGNAL_PROXY:!0,JOIN_WITH_FALLBACK_MEDIA_PROXY:!0,JOIN_WITH_FALLBACK_MEDIA_PROXY_FORCE:!1,JOIN_GATEWAY_TRY_443PORT_DURATION:2e3,JOIN_GATEWAY_USE_443PORT_ONLY:!1,JOIN_GATEWAY_USE_DUAL_DOMAIN:!0,JOIN_GATEWAY_FALLBACK_PORT:443,USE_TURN_SERVER_OF_GATEWAY:!1,H264_PROFILE_LEVEL_ID:"",USE_NEW_LOG:!1,LOG_VERSION:3,MEDIA_DEVICE_CONSTRAINTS:null,ENCRYPT_PROXY_USERNAME_AND_PSW:!0,SDP_LOGGING:!1,CSP_DETECTED_HOSTNAME_LIST:["agora.io","sd-rtn.com"],REMOTE_AUDIO_TRACK_USES_WEB_AUDIO:!1,LOCAL_AUDIO_TRACK_USES_WEB_AUDIO:!1,BITRATE_ADAPTER_TYPE:"STANDARD_BITRATE",AI_DENOISER_PARAMETERS:{excludedLinks:[]},ADJUST_3A_FROM_PLUGINS:!0,RAISE_H264_BASELINE_PRIORITY:!0,FILTER_SEND_H264_BASELINE:!1,X_GOOGLE_START_BITRATE:void 0,NEW_REPORT_SERVER:!1,NEW_REPORT_SERVER_DOMAINS:["data-reporting.agora.io","data-reporting.agora.io"],VIDEO_INSPECT_WORKER_MESSAGE_LENGTH_LIMIT:3e5,VIDEO_INSPECT_INTERVAL_MINIMUM:1e3,VIDEO_INSPECT_QUALITY_RATIO:.9,VIDEO_INSPECT_WORKER_MANAGER_HOST:"edge.agora.io",VIDEO_INSPECT_WORKER_MANAGER_PORT:"",VIDEO_INSPECT_WORKER_PORT:"",SHOW_VIDEO_INSPECT_WORKER_MESSAGE:!1,STATS_COLLECTOR_PORT:443,FORCE_TURN_TCP:!1,WEBAUDIO_INIT_OPTIONS:void 0,FILTER_VIDEO_FEC:!0,FILTER_AUDIO_FEC:!1,CHROME_DUAL_STREAM_USE_ENCODING:!0,DISABLE_DUAL_STREAM_USE_ENCODING:!1,EXTENSION_USAGE_UPLOAD_INTERVAL:1e4,ICE_RESTART:!0,ICE_RESTART_INTERVAL:1e4,NEW_ICE_RESTART:!1,TRANSMITTER_INITIAL_RTT:30,TRANSMITTER_INITIAL_RTO:30,TRANSMITTER_MAX_BATCH_ACK_COUNT:2,TRANSMITTER_MAX_RTO:500,DATACHANNEL_COMPRESS:!1,FINGERPRINT:null,DC_JOIN_WITH_FAILBACK:5e3,ENABLE_VIDEO_FRAME_CALLBACK:!0,VIDEO_FREEZE_DURATION:500,SPATIALIZER_PARAMETERS:{},UPLOAD_LOG_INTERVAL:3e3,UPLOAD_LOG_REQUEST_RETRY_INTERVAL:2e3,UPLOAD_LOG_REQUEST_MAX_RETRY_INTERVAL:2e4,UPLOAD_LOG_TRY_INTERVAL_WHILE_OFF:5e3,UPLOAD_LOG_RETRY_INTERVAL_V1:1e4,UPLOAD_LOG_TWICE_RETRY_INTERVAL_V1:200,UPLOAD_LOG_LENGTH_EACH_TIME:10,APP_TYPE:0,DISABLE_WEBAUDIO:!1,CHANNEL_MEDIA_RELAY_SERVERS:void 0,KEEP_LAST_FRAME:!0,FORWARD_P2P_CREATION:!0,SYNC_GROUP:!0,BLOCK_LOCAL_CLIENT:!1,AP_AREA:!0,ENABLE_ENCODED_TRANSFORM:!1,ENABLE_VIDEO_SEI:!1,IMAGE_MODERATION_WORKER_HOST:"edge.agora.io",IMAGE_MODERATION_WORKER_MESSAGE_LENGTH_LIMIT:3e5,IMAGE_MODERATION_INTERVAL_MINIMUM:1e3,SHOW_IMAGE_MODERATION_WORKER_MESSAGE:!1,IMAGE_MODERATION_QUALITY_RATIO:.9,IMAGE_MODERATION_UPLOAD_REPORT_INTERVAL:5e3,SHOW_GLOBAL_CLIENT_LIST:!1,DATASTREAM_MAX_RETRANSMITS:10,TCP_CANDIDATE_ONLY:!1,EXTERNAL_SIGNAL_REQUEST_TIMEOUT:3e3,SHOW_P2P_LOG:!1,MAX_P2P_TIMEOUT:3e4,P2P_TOKEN_INTERVAL:1e3,SHOW_DATASTREAM2_LOG:!1,RESTRICTION_SET_PLAYBACK_DEVICE:!0,USE_PURE_ENCRYPTION_MASTER_KEY:!1,ACCOUNT_REGISTER_RETRY_TIMEOUT:1,ACCOUNT_REGISTER_RETRY_RATIO:2,ACCOUNT_REGISTER_RETRY_TIMEOUT_MAX:6e4,ACCOUNT_REGISTER_RETRY_COUNT_MAX:1e5,AUDIO_CONTEXT:null,WEBCS_BACKUP_CONNECT_TIMEOUT:6e3,PLAYER_STATE_DEFER:2e3,SIGNAL_REQUEST_WATCH_INTERVAL:1e3,FILEPATH_LENMAX:255,DUALSTREAM_OPERATION_CHECK:!0,MEDIA_ELEMENT_EXISTS_DEPTH:3,SHIM_CANDIDATE:!1,LEAVE_MSG_TIMEOUT:2e3,STATS_FILTER:{transportId:!0,googTrackId:!0},FILTER_VIDEO_CODEC:[],USE_NEW_NETWORK_CONFIG:!1,AUTO_RESET_AUDIO_ROUTE:!1,PLUGIN_INFO:[],OVERUSE_DETECTOR_PARAMS:HO,ENABLE_AG_ADAPTATION:!0,FORCE_AG_HIGH_FRAMERATE:!1,FORCE_SUPPORT_AG_ADAPTATION:!1,CUSTOM_ADAPTATION_DEFAULT_MODE:"",ENCODER_CONFIG_LIMIT:{},CAMERA_CAPTURE_CONFIG:void 0,HIDE_NO_POSTER:!1,AP_CACHE_NUM:10,AP_UPDATE_INTERVAL:12e4,AP_CACHE_LIFETIME:12e4,MAX_PRELOAD_ASYNC_LENGTH:3,ENABLE_PRELOAD:!0,DISABLE_SCREEN_SHARE_REMB:!1},GO),{},{USE_CANDIDATE_FROM_AP_DETAIL:!1,AP_REQUEST_DETAIL:void 0});VO||(WO.WEBCS_DOMAIN=["ap-web-1-oversea.agora.io","ap-web-1-north-america.agora.io"],WO.WEBCS_DOMAIN_BACKUP_LIST=["ap-web-2-oversea.agora.io","ap-web-2-north-america.agora.io"],WO.PROXY_CS=["proxy-ap-web-oversea.agora.io","proxy-ap-web-america.agora.io"],WO.CDS_AP=["cds-ap-web-oversea.agora.io","cds-ap-web-america.agora.io","cds-ap-web-america2.agora.io"],WO.ACCOUNT_REGISTER=["sua-ap-web-oversea.agora.io","sua-ap-web-america.agora.io","sua-ap-web-america2.agora.io"],WO.UAP_AP=["uap-ap-web-oversea.agora.io","uap-ap-web-america.agora.io","uap-ap-web-america2.agora.io"],WO.LOG_UPLOAD_SERVER="logservice-oversea.agora.io",WO.EVENT_REPORT_DOMAIN="statscollector-1-oversea.agora.io",WO.EVENT_REPORT_BACKUP_DOMAIN="statscollector-2-oversea.agora.io",WO.PROXY_SERVER_TYPE3="webrtc-cloud-proxy.agora.io",WO.AREAS=["NORTH_AMERICA","OVERSEA"]);const KO={};function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function XO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YO(Object(r),!0).forEach((function(t){cT(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var JO=function(e){return e.SET_SESSION_ID="SET_SESSION_ID",e.SET_P2P_ID="SET_P2P_id",e.SET_DC_ID="SET_DC_id",e.SET_UID="SET_UID",e.SET_INT_UID="SET_INT_UID",e.SET_PUB_ID="SET_PUB_ID",e.SET_CLOUD_PROXY_SERVER_MODE="SET_CLOUD_PROXY_SERVER_MODE",e.KEY_METRIC_CLIENT_CREATED="KEY_METRIC_CLIENT_CREATED",e.KEY_METRIC_JOIN_START="KEY_METRIC_JOIN_START",e.AVOID_JOIN_START="AVOID_JOIN_START",e.KEY_METRIC_JOIN_END="KEY_METRIC_JOIN_END",e.KEY_METRIC_REQUEST_AP_START="KEY_METRIC_REQUEST_AP_START",e.KEY_METRIC_REQUEST_AP_END="KEY_METRIC_REQUEST_AP_END",e.KEY_METRIC_JOIN_GATEWAY_START="KEY_METRIC_JOIN_GATEWAY_START",e.KEY_METRIC_JOIN_GATEWAY_END="KEY_METRIC_JOIN_GATEWAY_END",e.KEY_METRIC_PEER_CONNECTION_START="KEY_METRIC_PEER_CONNECTION_START",e.KEY_METRIC_PEER_CONNECTION_END="KEY_METRIC_PEER_CONNECTION_END",e.KEY_METRIC_DESCRIPTION_START="KEY_METRIC_DESCRIPTION_START",e.KEY_METRIC_ICE_CONNECTION_END="KEY_METRIC_ICE_CONNECTION_END",e.KEY_METRIC_SIGNAL_CHANNEL_OPEN="KEY_METRIC_SIGNAL_CHANNEL_OPEN",e.KEY_METRIC_PUBLISH="KEY_METRIC_PUBLISH",e.KEY_METRIC_SUBSCRIBE="KEY_METRIC_SUBSCRIBE",e.RECORD_JOIN_CHANNEL_SERVICE="RECORD_JOIN_CHANNEL_SERVICE",e.RESET_JOIN_CHANNEL_SERVICE_RECORDS="RESET_JOIN_CHANNEL_SERVICE_RECORDS",e.RESET_KEY_METRICS="RESET_KEY_METRICS",e.SET_USE_P2P="SET_USE_P2P",e.SET_TRANSPORT_TYPE="SET_TRANSPORT_TYPE",e}(JO||{});let qO=function(e){return e.h264="h264",e.h265="h265",e.vp8="vp8",e.vp9="vp9",e.av1="av1",e}({}),zO=function(e){return e.opus="opus",e.pcma="pcma",e.pcmu="pcmu",e.g722="g722",e}({});const QO=128,$O=96,ZO=1e3,eS=10;let tS=0;e.AgoraAPIName=NT,e.AgoraAPITag=bT,e.AgoraRTCError=ET,e.AgoraRTCErrorCode=uT,e.AudienceLatencyLevelType=gT,e.AudioCodec=zO,e.BUILD="v4.22.1-0-g1c8e27e9(9/19/2024, 2:23:29 PM)",e.BrowserName=c_,e.BrowserOS=a_,e.CRYPTO_HEADER_LENGTH=eS,e.CRYPTO_ITERATIONS=ZO,e.CRYPTO_IV_LENGTH=$O,e.CRYPTO_TAG_LENGTH=QO,e.ClientEvents=vT,e.ConnectionDisconnectedReason=yT,e.DEFAULT_AREAS=FO,e.DEFAULT_RETRY_CONFIG=EA,e.DEFAULT_TURN_CONFIG=jO,e.EventEmitter=ST,e.IS_GLOBAL_VERSION=VO,e.MUTABLE_GATEWAY_PARAMS=GO,e.MUTABLE_PARAMS=WO,e.MUTABLE_PARAMS_LOCAL_CACHE=KO,e.NETWORK_INDICATOR_EVENTS=PT,e.NETWORK_STATE=DT,e.OVERUSE_DETECTOR_PARAMS=HO,e.P2PTransportType=xO,e.PromiseMutex=class{static setLogger(e){uA=e}constructor(e){cT(this,"lockingPromise",Dl.resolve()),cT(this,"locks",0),cT(this,"name",""),cT(this,"lockId",void 0),this.lockId=cA++,e&&(this.name=e),uA.debug("[lock-".concat(this.name,"-").concat(this.lockId,"] is created."))}get isLocked(){return this.locks>0}lock(e){let t;this.locks+=1,uA.debug("[lock-".concat(this.name,"-").concat(this.lockId,"] is locked, current queue ").concat(this.locks,". ").concat("string"==typeof e?e:""));const r=new Dl((r=>{t=()=>{this.locks-=1,uA.debug("[lock-".concat(this.name,"-").concat(this.lockId,"] is not locked, current queue ").concat(this.locks,". ").concat("string"==typeof e?e:"")),r()}})),n=this.lockingPromise.then((()=>t));return this.lockingPromise=this.lockingPromise.then((()=>r)),n}},e.Rolling=class{constructor(e){cT(this,"input",[]),cT(this,"size",void 0),this.size=e}add(e){this.input.push(e),this.input.length>this.size&&this.input.splice(0,1)}mean(){var e;return 0===this.input.length?0:JT(e=this.input).call(e,((e,t)=>e+t))/this.input.length}},e.SDKStore=class{constructor(e,t,r,n){cT(this,"state",void 0),this.state={codec:e,audioCodec:t,mode:r,clientId:n,sessionId:null,p2pId:0,dcId:0,pubId:0,subId:0,avoidJoinStart:0,keyMetrics:{publish:[],subscribe:[]},joinChannelServiceRecords:[],cloudProxyServerMode:"disabled",useP2P:!1,p2pTransport:xO.Default}}dispatch(e){this.state=function(e,t){switch(t.type){case JO.SET_SESSION_ID:return XO(XO({},e),{},{sessionId:t.sessionId});case JO.SET_P2P_ID:return XO(XO({},e),{},{p2pId:t.p2pId});case JO.SET_UID:return XO(XO({},e),{},{uid:t.uid});case JO.SET_INT_UID:return XO(XO({},e),{},{intUid:t.intUid});case JO.SET_PUB_ID:return XO(XO({},e),{},{pubId:t.pubId});case JO.KEY_METRIC_CLIENT_CREATED:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{clientCreated:t.metric})});case JO.KEY_METRIC_JOIN_START:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{joinStart:t.metric})});case JO.AVOID_JOIN_START:return XO(XO({},e),{},{avoidJoinStart:t.avoidJoinStart});case JO.KEY_METRIC_JOIN_END:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{joinEnd:t.metric})});case JO.KEY_METRIC_REQUEST_AP_START:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{requestAPStart:t.metric})});case JO.KEY_METRIC_REQUEST_AP_END:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{requestAPEnd:t.metric})});case JO.KEY_METRIC_JOIN_GATEWAY_START:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{joinGatewayStart:t.metric})});case JO.KEY_METRIC_JOIN_GATEWAY_END:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{joinGatewayEnd:t.metric})});case JO.KEY_METRIC_PEER_CONNECTION_START:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{peerConnectionStart:t.metric})});case JO.KEY_METRIC_PEER_CONNECTION_END:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{peerConnectionEnd:t.metric})});case JO.KEY_METRIC_DESCRIPTION_START:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{descriptionStart:t.metric})});case JO.KEY_METRIC_SIGNAL_CHANNEL_OPEN:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{signalChannelOpen:t.metric})});case JO.KEY_METRIC_ICE_CONNECTION_END:return XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{iceConnectionEnd:t.metric})});case JO.KEY_METRIC_PUBLISH:{const r=e.keyMetrics.publish,n=r.findIndex((e=>e.trackId===t.metric.trackId));return-1!==n?(r[n]=XO(XO({},r[n]),t.metric),XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{publish:[...r]})})):XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{publish:[...e.keyMetrics.publish,t.metric]})})}case JO.KEY_METRIC_SUBSCRIBE:{const r=e.keyMetrics.subscribe,n=r.findIndex((e=>e.userId===t.metric.userId&&e.type===t.metric.type));return-1!==n?(r[n]=XO(XO({},r[n]),t.metric),XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{subscribe:[...r]})})):XO(XO({},e),{},{keyMetrics:XO(XO({},e.keyMetrics),{},{subscribe:[...e.keyMetrics.subscribe,t.metric]})})}case JO.SET_CLOUD_PROXY_SERVER_MODE:return e.cloudProxyServerMode=t.mode,e;case JO.RECORD_JOIN_CHANNEL_SERVICE:return"number"!=typeof t.index?e.joinChannelServiceRecords=[...e.joinChannelServiceRecords,t.record]:(e.joinChannelServiceRecords[t.index]=XO(XO({},e.joinChannelServiceRecords[t.index]),t.record),e.joinChannelServiceRecords=[...e.joinChannelServiceRecords]),e;case JO.RESET_JOIN_CHANNEL_SERVICE_RECORDS:return e.joinChannelServiceRecords=[],e;case JO.RESET_KEY_METRICS:return e.keyMetrics={publish:[],subscribe:[]},e;case JO.SET_USE_P2P:return XO(XO({},e),{},{useP2P:t.val});case JO.SET_TRANSPORT_TYPE:return XO(XO({},e),{},{p2pTransport:t.val});default:return e}}(this.state,e)}set sessionId(e){this.dispatch({type:JO.SET_SESSION_ID,sessionId:e})}get sessionId(){return this.state.sessionId}set codec(e){this.state.codec=e}get codec(){return this.state.codec}get mode(){return this.state.mode}get audioCodec(){return this.state.audioCodec}get clientId(){return this.state.clientId}set p2pId(e){this.dispatch({type:JO.SET_P2P_ID,p2pId:e})}get p2pId(){return this.state.p2pId}set dcId(e){this.dispatch({type:JO.SET_DC_ID,dcId:e})}get dcId(){return this.state.dcId}set uid(e){this.dispatch({type:JO.SET_UID,uid:e})}get uid(){return this.state.uid}set intUid(e){this.dispatch({type:JO.SET_INT_UID,intUid:e})}get intUid(){return this.state.intUid}set pubId(e){this.dispatch({type:JO.SET_PUB_ID,pubId:e})}get pubId(){return this.state.pubId}set cloudProxyServerMode(e){this.dispatch({type:JO.SET_CLOUD_PROXY_SERVER_MODE,mode:e})}get cloudProxyServerMode(){return this.state.cloudProxyServerMode}set useP2P(e){this.dispatch({type:JO.SET_USE_P2P,val:e})}get useP2P(){return this.state.useP2P}set p2pTransport(e){this.dispatch({type:JO.SET_TRANSPORT_TYPE,val:e})}get p2pTransport(){return this.state.p2pTransport}clientCreated(){this.dispatch({type:JO.KEY_METRIC_CLIENT_CREATED,metric:Date.now()})}joinStart(){this.dispatch({type:JO.KEY_METRIC_JOIN_START,metric:Date.now()})}joinEnd(){this.dispatch({type:JO.KEY_METRIC_JOIN_END,metric:Date.now()})}requestAPStart(){this.dispatch({type:JO.KEY_METRIC_REQUEST_AP_START,metric:Date.now()})}requestAPEnd(){this.dispatch({type:JO.KEY_METRIC_REQUEST_AP_END,metric:Date.now()})}joinGatewayStart(){this.dispatch({type:JO.KEY_METRIC_JOIN_GATEWAY_START,metric:Date.now()})}joinGatewayEnd(){this.dispatch({type:JO.KEY_METRIC_JOIN_GATEWAY_END,metric:Date.now()})}peerConnectionStart(){this.dispatch({type:JO.KEY_METRIC_PEER_CONNECTION_START,metric:Date.now()})}peerConnectionEnd(){this.dispatch({type:JO.KEY_METRIC_PEER_CONNECTION_END,metric:Date.now()})}descriptionStart(){this.dispatch({type:JO.KEY_METRIC_DESCRIPTION_START,metric:Date.now()})}signalChannelOpen(){this.dispatch({type:JO.KEY_METRIC_SIGNAL_CHANNEL_OPEN,metric:Date.now()})}iceConnectionEnd(){this.dispatch({type:JO.KEY_METRIC_ICE_CONNECTION_END,metric:Date.now()})}publish(e,t,r,n){this.dispatch({type:JO.KEY_METRIC_PUBLISH,metric:XO(XO({trackId:e,type:t},r&&{publishStart:r}),n&&{publishEnd:n})})}subscribe(e,t,r,n,o,i,s){this.dispatch({type:JO.KEY_METRIC_SUBSCRIBE,metric:XO(XO(XO(XO(XO({userId:e,type:t},r&&{subscribeStart:r}),n&&{subscribeEnd:n}),o&&{firstFrame:o}),i&&{streamAdded:i}),s&&{firstDecoded:s})})}massSubscribe(e,t,r,n){e.forEach((e=>{this.dispatch({type:JO.KEY_METRIC_SUBSCRIBE,metric:XO(XO(XO({userId:e.userId,type:e.type},t&&{subscribeStart:t}),r&&{subscribeEnd:r}),n&&{firstFrame:n})})}))}get keyMetrics(){return this.state.keyMetrics}recordJoinChannelService(e,t){"gateway"===e.service&&Array.isArray(e.urls)&&(e.urls=e.urls.map((e=>e.replace(/(\d+)-\d+-\d+-(\d+)/,"$1-*-*-$2"))));try{return"number"!=typeof t?(this.dispatch({type:JO.RECORD_JOIN_CHANNEL_SERVICE,record:XO(XO({},e),{},{sessionId:this.sessionId,cloudProxyMode:this.cloudProxyServerMode,uid:this.uid})}),this.state.joinChannelServiceRecords.length-1):(t<0||t>=this.state.joinChannelServiceRecords.length||this.dispatch({type:JO.RECORD_JOIN_CHANNEL_SERVICE,record:e,index:t}),t)}catch(e){return 0}}resetJoinChannelServiceRecords(){this.dispatch({type:JO.RESET_JOIN_CHANNEL_SERVICE_RECORDS})}resetKeyMetrics(){this.dispatch({type:JO.RESET_KEY_METRICS})}get joinChannelServiceRecords(){try{return this.state.joinChannelServiceRecords}catch(e){return[]}}get avoidJoinStart(){return this.state.avoidJoinStart}set avoidJoinStart(e){this.dispatch({type:JO.AVOID_JOIN_START,avoidJoinStart:e})}},e.SHA256=async e=>OT(await crypto.subtle.digest("SHA-256",RT(e)),16),e.TransformStreamAdapter=class{constructor(e){cT(this,"_transformStream",void 0),cT(this,"_readable",void 0),cT(this,"_writable",void 0),cT(this,"_reader",void 0),cT(this,"_writer",void 0),this._transformStream=new TransformStream({transform:e}),this._readable=this._transformStream.readable,this._writable=this._transformStream.writable,this._reader=this._readable.getReader(),this._writer=this._writable.getWriter()}get reader(){return this._reader}get writer(){return this._writer}close(){this.writer.releaseLock(),this._writable.close(),this.reader.cancel(),this.reader.releaseLock(),this._readable.cancel()}},e.VERSION=kO,e.VideoCodec=qO,e.WebSocketQuitReason=LT,e.appendBuffer=function(e,t){const r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e),0),r.set(new Uint8Array(t),e.byteLength),r},e.atom=function(e,t){return function(r,n,o){const i=o.value;if("function"!=typeof i)throw new Error("Cannot use mutex on object property.");return o.value=async function(){const r=this[t];if(!r)throw new Error("mutex property key ".concat(t," doesn't exist on ").concat(e));const o=await r.lock("From ".concat(e,".").concat(n));try{for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];return await i.apply(this,a)}finally{o()}},o}},e.base64ToUint8Array=function(e){const t=window.atob(e),r=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)r[e]=t.charCodeAt(e);return r},e.bufferToStr=OT,e.checkIsEqual=function(e,t){var r,n;const o=Of(r=Object.keys(e)).call(r),i=Of(n=Object.keys(t)).call(n);for(let r=0;r<o.length;r+=1){if(o[r]!==i[r])return!1;if(e[o[r]]!==t[o[r]])return!1}return!0},e.checkValidArray=function(e,t){if(!Array.isArray(e))throw new ET(uT.INVALID_PARAMS,"".concat(t," should be an array"))},e.checkValidBoolean=lT,e.checkValidConstrainLong=function(e,t){if("number"!=typeof e){if(!(e.min||e.max||e.ideal||e.exact)){throw new ET(uT.INVALID_PARAMS,"".concat(t," is not a valid ConstrainLong"))}void 0!==e.min&&fT(e.min,"".concat(t,".min"),0,1/0),void 0!==e.max&&fT(e.max,"".concat(t,".max"),1,1/0),void 0!==e.exact&&fT(e.exact,"".concat(t,".exact"),1,1/0),void 0!==e.ideal&&fT(e.ideal,"".concat(t,".ideal"),1,1/0)}else fT(e,t,1,1/0)},e.checkValidEnum=_T,e.checkValidNumber=fT,e.checkValidString=dT,e.compareArray=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){const n=e[r];if(e.filter((e=>e===n)).length!==t.filter((e=>e===n)).length)return!1}return!0},e.concurrent=async function(e,t,r){Ul.get(e)||Ul.set(e,[]),Bl.get(e)||Bl.set(e,t),kl.get(e)||kl.set(e,0);const n=Ul.get(e),o=Bl.get(e);if(!n||!o)throw new Error("concurrent: deferQueue or maxConcurrency is null");if(kl.get(e)===o){const e=Ml();n.push(e),await e.promise}kl.set(e,kl.get(e)+1);for(var i=arguments.length,s=new Array(i>3?i-3:0),a=3;a<i;a++)s[a-3]=arguments[a];const c=await r(...s);return kl.set(e,kl.get(e)-1),kl.get(e)===o-1&&n.length>0&&(n[0].resolve(),n.shift()),0===kl.get(e)&&(Ul.set(e,[]),Bl.set(e,0),kl.set(e,0)),c},e.constrainLongToNumber=function(e){return"number"==typeof e?e:e.exact||e.ideal||e.max||e.min||0},e.convertStringToFixedLengthUint8Array=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=(new TextEncoder).encode(e);if(r.length>t)r=r.slice(0,t);else if(r.length<t){const e=new Uint8Array(t);e.set(r),r=e}return r},e.createDefer=Ml,e.createInternalUnexpectedError=function(e,t){return new ET(uT.UNEXPECTED_ERROR,e,t)},e.createResolvedDefer=function(e){const t=Ml();return t.resolve(e),t},e.createTimeoutDefer=function(e){const t=Ml(),r=setTimeout(t.resolve,e);return t.cancel=()=>clearTimeout(r),t},e.decryptAesGcm=async function(e,t,r){const n=r.subarray(0,eS),o=n.slice(8,eS),i=(o[0]<<8)+o[1],s=(n[6]<<8)+n[7],a=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:e,tagLength:QO,additionalData:new Uint8Array(aA(i,2))},t,r.subarray(eS));return r=new Uint8Array(a).subarray(0,s)},e.deprecatedGetBrowserInfo=function(e){const t=e||navigator.userAgent;let r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if("Chrome"===r[1]){const e=t.match(/(OPR(?=\/))\/?(\d+)/i);null!==e&&(r=e)}if("Safari"===r[1]){const e=t.match(/version\/(\d+)/i);null!==e&&(r[2]=e[1])}if(-1!==t.toLowerCase().indexOf("qqbrowser")){const e=t.match(/(qqbrowser(?=\/))\/?(\d+)/i);null!==e&&(r=e)}if(-1!==t.toLowerCase().indexOf("micromessenger")){const e=t.match(/(micromessenger(?=\/))\/?(\d+)/i);null!==e&&(r=e)}if(-1!==t.toLowerCase().indexOf("edge")){const e=t.match(/(edge(?=\/))\/?(\d+)/i);null!==e&&(r=e)}if(-1!==t.toLowerCase().indexOf("trident")){const e=/\brv[ :]+(\d+)/g.exec(t)||[];null!==e&&(r=["","IE",e[1]])}let n=null;const o=[{s:a_.WIN_10,r:/(Windows 10.0|Windows NT 10.0)/},{s:a_.WIN_81,r:/(Windows 8.1|Windows NT 6.3)/},{s:a_.WIN_8,r:/(Windows 8|Windows NT 6.2)/},{s:a_.WIN_7,r:/(Windows 7|Windows NT 6.1)/},{s:a_.WIN_VISTA,r:/Windows NT 6.0/},{s:a_.WIN_SERVER_2003,r:/Windows NT 5.2/},{s:a_.WIN_XP,r:/(Windows NT 5.1|Windows XP)/},{s:a_.WIN_2000,r:/(Windows NT 5.0|Windows 2000)/},{s:a_.ANDROID,r:/Android/},{s:a_.OPEN_BSD,r:/OpenBSD/},{s:a_.SUN_OS,r:/SunOS/},{s:a_.LINUX,r:/(Linux|X11)/},{s:a_.IOS,r:/(iPhone|iPad|iPod)/},{s:a_.MAC_OS,r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:a_.QNX,r:/QNX/},{s:a_.UNIX,r:/UNIX/},{s:a_.BEOS,r:/BeOS/},{s:a_.OS_2,r:/OS\/2/},{s:a_.SEARCH_BOT,r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(const e of o)if(e.r.test(t)){n=e.s;break}return{name:r[1],version:r[2],os:n}},e.detectSecureContext=function(){return"boolean"==typeof isSecureContext?isSecureContext:"https:"===location.protocol||"file:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname||"::1"===location.hostname},e.dividePackage=function(e,t,r){const n=e[t];if(!n||"string"!=typeof n)return[e];e[t]="";const o=eA(JSON.stringify(e));let i=0;const s=[];let a=0;for(let c=0;c<n.length;c++)a+=n.charCodeAt(c)<=127?1:3,a<=r-o||(s[s.length]=zT(zT({},e),{},{[t]:n.substring(i,c)}),i=c,a=n.charCodeAt(c)<=127?1:3);return i!==n.length-1&&(s[s.length]=zT(zT({},e),{},{[t]:n.substring(i)})),s},e.domLoadedPromise=function(){return new Dl((e=>{document.body?e():window.addEventListener("load",(()=>e()))}))},e.elementVisibleChecker=AT,e.emitAsInvoker=UT,e.emitAsInvokerNoResponse=function(e,t){if(0===e.getListeners(t).length)return null;for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return UT(e,t,...n)},e.emitAsPromise=MT,e.emitAsPromiseNoResponse=function(e,t){if(0===e.getListeners(t).length)return Dl.resolve();for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return MT(e,t,...n)},e.encryptAesGcm=async function(e,t,r){var n;const o=JT(n=Array.from(r)).call(n,((e,t)=>e+t),0),i={serverTs:0,seq:tS++,length:r.length,checkSum:o},s=new Uint8Array(aA(o,2)),a=new ArrayBuffer(eS),c=new DataView(a);c.setUint32(0,i.serverTs),c.setUint16(4,i.seq),c.setUint16(6,i.length),c.setUint16(8,i.checkSum);const u=16-r.length%16;r=ZT(r,new Uint8Array(u));const E=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:e,tagLength:QO,additionalData:s},t,r);return ZT(new Uint8Array(a),new Uint8Array(E))},e.encryptRSA=async e=>{const t=function(e){const t=window.atob(e),r=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)r[e]=t.charCodeAt(e);return r}("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCMnXAHkKIGAM+x4N22gCI+Wyu\nSTM9ztkT3uYslTT2PuKmZfPzhH6kVdO7PTjGCOZnAsyb3oTtWat0KcxQ4jxvqQV+\nHvYl3iI1Yd4vl2c3qRMJPLtRDfNxa2Mcxgq7e9aEUibzdd0st+OJAy3tOj/Y0aVy\nxQiYDz3vqa6bP29adwIDAQAB"),r=await window.crypto.subtle.importKey("spki",t,{name:"RSA-OAEP",hash:"SHA-256"},!0,["encrypt"]),n=RT(e),o=await window.crypto.subtle.encrypt({name:"RSA-OAEP"},r,n);return function(e){let t="";for(let r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return window.btoa(t)}(new Uint8Array(o))},e.generateIv=async function(e,t,r){const n=await window.crypto.subtle.importKey("raw",t,"PBKDF2",!1,["deriveBits","deriveKey"]),o="aes-128-gcm2"===e?128:256,i=await window.crypto.subtle.deriveBits({name:"PBKDF2",iterations:ZO,hash:"SHA-256",salt:r},n,o+$O);return new Uint8Array(i).subarray(o/8)},e.generateKey=async function(e,t,r){const n=await window.crypto.subtle.importKey("raw",t,"PBKDF2",!1,["deriveBits","deriveKey"]),o="aes-128-gcm2"===e?128:256;return await window.crypto.subtle.deriveKey({name:"PBKDF2",iterations:ZO,hash:"SHA-256",salt:r},n,{name:"AES-GCM",length:o},!0,["encrypt","decrypt"])},e.generateProcessID=function(){return"process-".concat(nA(8,""),"-").concat(nA(4,""),"-").concat(nA(4,""),"-").concat(nA(4,""),"-").concat(nA(12,""))},e.generateSessionID=function(){return nA(32,"").toUpperCase()},e.getBigInt64=function(e,t,r){if("getBigInt64"in DataView.prototype)return e.getBigInt64(t,r);const n=Number(!!r),o=Number(!r);return BigInt(e.getInt32(t,r)*o+e.getInt32(t+4,r)*n)<<BigInt(32)|BigInt(e.getUint32(t,r)*n+e.getUint32(t+4,r)*o)},e.getBigUint64=function(e,t,r){if("getBigUint64"in DataView.prototype)return e.getBigUint64(t,r);const n=e.getUint32(t,r),o=e.getUint32(t+4,r),i=Number(!!r),s=Number(!r);return BigInt(n*s+o*i)<<BigInt(32)|BigInt(n*i+o*s)},e.getBrowserInfo=f_,e.getBrowserOS=T_,e.getBrowserVersion=function(){return f_().version},e.getChangedKeysFromObject=function(e,t){const r=Object.keys(e),n=[];for(const o of r)e[o]!==t[o]&&n.push(o);return n},e.getChromeKernelVersion=function(){const e=navigator.userAgent.toLocaleLowerCase().match(/chrome\/[\d]*/i);return e&&e[0]?e[0].split("/")[1]:null},e.getElectronInstance=mT,e.getHTTPRecvBytes=function(){return DO},e.getHTTPSendBytes=function(){return LO},e.getMessageEncoding=RT,e.getMultiUnilbsFormDataByteLength=tA,e.getOSWithVersion=function(){const e=f_();return"".concat(e.os," ").concat(e.osVersion)},e.getParameter=function(e){return WO[e]},e.getRandomString=nA,e.getRetryWaitTime=function(e,t){const r=Math.floor(t.timeout*Math.pow(t.timeoutFactor,e));return Math.min(t.maxRetryTimeout,r)},e.getUTF8StringByteLength=eA,e.getUniqueList=function(e){const t=[];return e.forEach((e=>{-1===t.indexOf(e)&&t.push(e)})),t},e.hexToBytes=function(e){const t=[];for(let r=0;r<e.length;r+=2)t.push(parseInt(e.slice(r,r+2),16));return Uint8Array.from(t)},e.isAboveChrome=function(e){const t=f_();return!(t.name!==c_.CHROME||!t.osVersion)&&Number(t.version)>=e},e.isAboveEdge=function(e){const t=f_();return!(t.name!==c_.EDGE||!t.osVersion)&&Number(t.version)>=e},e.isAboveFirefox=function(e){const t=f_();return!(t.name!==c_.FIREFOX||!t.osVersion)&&Number(t.version)>=e},e.isAboveIOS=function(e){const t=f_();if(t.os!==a_.IOS||!t.osVersion)return!1;const r=t.osVersion.split(".");return Number(r[0])>=e},e.isAboveIOS13=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return Number(t[0])>=13},e.isAboveIOS15_1=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 15===Number(t[0])&&Number(t[1])>=1},e.isAboveIOS15_2=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 15===Number(t[0])&&Number(t[1])>=2},e.isAboveIOS16_0=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 16===Number(t[0])&&Number(t[1])>=0},e.isAboveOpera=function(e){const t=f_();return!(t.name!==c_.OPERA||!t.osVersion)&&Number(t.version)>=e},e.isAboveSafari=function(e){const t=f_();return!(t.name!==c_.SAFARI||!t.osVersion)&&Number(t.version)>=e},e.isAndroid=I_,e.isAndroidChromium=function(){const e=f_();return I_()&&(e.name===c_.CHROME||e.name===c_.WECHAT||/chrome|chromium/i.test(navigator.userAgent))},e.isBelowChrome=function(e){const t=f_();return!(t.name!==c_.CHROME||!t.osVersion)&&Number(t.version)<e},e.isBelowIOS=function(e,t,r){const n=f_();if(n.os!==a_.IOS||!n.osVersion)return!1;const o=n.osVersion.split(".");return r?t&&Number(o[0])===e&&Number(o[1])<t||Number(o[0])<e:t?Number(o[0])===e&&Number(o[1])<=t||Number(o[0])<e:Number(o[0])<=e},e.isBelowIOS14_6=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return Number(t[0])<14||14===Number(t[0])&&Number(t[1])<=6},e.isBelowSafari=function(e,t,r){const n=f_();if(n.name!==c_.SAFARI||!n.osVersion||!n.browserVersion)return!1;const o=n.browserVersion.split(".");return r?t&&Number(o[0])===e&&Number(o[1])<t||Number(o[0])<e:t?Number(o[0])===e&&Number(o[1])<=t||Number(o[0])<e:Number(o[0])<=e},e.isBetweenBrowser=function(e,t,r){const n=f_();return!(n.name!==e||!n.osVersion)&&(r?Number(n.version)>=t&&Number(n.version)<=r:Number(n.version)===t)},e.isChrome=function(){return f_().name===c_.CHROME},e.isChromeBelow90=function(){const e=f_();return!(e.name!==c_.CHROME||!e.osVersion)&&Number(e.version)<=90},e.isChromeKernel=function(){const e=f_();return e.name!==c_.EDGE&&e.name!==c_.SAFARI&&!!navigator.userAgent.toLocaleLowerCase().match(/chrome\/[\d]./i)},e.isClientConfig=function(e){return _T(e.codec,"config.codec",["vp8","vp9","av1","h264","h265"]),_T(e.mode,"config.mode",["rtc","live","p2p"]),void 0!==e.audioCodec&&_T(e.audioCodec,"config.audioCodec",["opus","pcmu","pcma","g722"]),void 0!==e.proxyServer&&dT(e.proxyServer,"config.proxyServer",1,1e4),void 0!==e.turnServer&&wT(e.turnServer),void 0!==e.httpRetryConfig&&CT(e.httpRetryConfig),void 0!==e.websocketRetryConfig&&CT(e.websocketRetryConfig),!0},e.isClientRole=function(e){return _T(e,"role",["audience","host"]),!0},e.isClientRoleOptions=function(e){return void 0!==e.level&&_T(e.level,"level",[1,2,3]),void 0!==e.delay&&fT(e.delay,"delay",0,3e3,!0),!0},e.isEdge=function(){return f_().name===c_.EDGE},e.isElectron=function(){return!!mT()},e.isEmpty=function(e){return null==e},e.isEncryptionMode=function(e){return _T(e,"encryptionMode",["aes-128-xts","aes-256-xts","aes-128-ecb","sm4-128-ecb","aes-128-gcm","aes-256-gcm","aes-128-gcm2","aes-256-gcm2","none"]),!0},e.isFirefox=function(){return f_().name===c_.FIREFOX},e.isHarmonyOS=function(){return T_()===a_.HARMONY_OS},e.isHttpsEnv=()=>"HTTPS"===(vO||vO||(vO=(window.location.protocol.split(":")[0]||"").toUpperCase(),vO)),e.isIOS=O_,e.isIOS13=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 13===Number(t[0])},e.isIOS15=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 15===Number(t[0])},e.isIOS15_0=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 15===Number(t[0])&&0===Number(t[1])},e.isIOS16=function(){const e=f_();if(e.os!==a_.IOS||!e.osVersion)return!1;const t=e.osVersion.split(".");return 16===Number(t[0])},e.isInPage=function(e){return e!==document.body&&document.body.contains(e)},e.isIpadOS=function(){return R_()&&navigator.maxTouchPoints>0},e.isJsonEqual=function(e,t){try{return"object"==typeof e&&"object"==typeof t&&JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},e.isLegacyChrome=function(){return window.navigator.appVersion&&null!==window.navigator.appVersion.match(/Chrome\/([\w\W]*?)\./)&&window.navigator.appVersion.match(/Chrome\/([\w\W]*?)\./)[1]<=35},e.isMacOS=function(){return f_().os===a_.MAC_OS},e.isMobile=function(){const e=T_();return S_()||e===a_.ANDROID||e===a_.IOS||e===a_.HARMONY_OS},e.isMobileAndTabletType=S_,e.isOpera=function(){return f_().name===c_.OPERA},e.isP2PTransport=function(e){return _T(e,"transport",["default","auto","relay","sd-rtn"]),!0},e.isPageRecording=function(){const e=window.navigator.userAgent;return!!s_(e).call(e,"AgoraWebView")},e.isPromise=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then},e.isQQBrowser=function(){return f_().name===c_.QQ},e.isRTCIceServerList=function(e){if(!Array.isArray(e)||e.length<1)return!1;try{e.forEach((e=>{if(!e.urls)throw Error()}))}catch(e){return!1}return!0},e.isRetryConfiguration=CT,e.isSafari=R_,e.isSupportedPC=function(){const e=T_();return e===a_.LINUX||e===a_.MAC_OS||-1!==e.indexOf("Windows")},e.isSupportedWkWebview=function(){const e=f_();if(A_()){if(e.os===a_.MAC_OS)return!0;if(e.os===a_.IOS){const e=l_.os.version&&l_.os.version.split(".");if(e&&14===Number(e[0])&&e[1]&&Number(e[1])>=3)return!0;if(e&&Number(e[0])>14)return!0}}return!1},e.isTurnServerConfig=wT,e.isValidString=pT,e.isWebKit=function(){return"WebKit"===l_.engine.name},e.isWechatBrowser=function(){return f_().name===c_.WECHAT},e.isWindows=function(){return-1!==T_().indexOf("Windows")},e.isWkWebview=A_,e.jsonClone=QT,e.md5=function(e){const t="0123456789abcdef";function r(e){let r,n="";for(r=0;r<=3;r++)n+=t.charAt(e>>8*r+4&15)+t.charAt(e>>8*r&15);return n}function n(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,s){return n(function(e,t){return e<<t|e>>>32-t}(n(n(t,e),n(o,s)),i),r)}function i(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function s(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function c(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}const u=function(e){let t;const r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<t%4*8;return n[t>>2]|=128<<t%4*8,n[16*r-2]=8*e.length,n}(e);let E,l,_,f,d,p=1732584193,h=-271733879,T=-1732584194,A=271733878;for(E=0;E<u.length;E+=16)l=p,_=h,f=T,d=A,p=i(p,h,T,A,u[E+0],7,-680876936),A=i(A,p,h,T,u[E+1],12,-389564586),T=i(T,A,p,h,u[E+2],17,606105819),h=i(h,T,A,p,u[E+3],22,-1044525330),p=i(p,h,T,A,u[E+4],7,-176418897),A=i(A,p,h,T,u[E+5],12,1200080426),T=i(T,A,p,h,u[E+6],17,-1473231341),h=i(h,T,A,p,u[E+7],22,-45705983),p=i(p,h,T,A,u[E+8],7,1770035416),A=i(A,p,h,T,u[E+9],12,-1958414417),T=i(T,A,p,h,u[E+10],17,-42063),h=i(h,T,A,p,u[E+11],22,-1990404162),p=i(p,h,T,A,u[E+12],7,1804603682),A=i(A,p,h,T,u[E+13],12,-40341101),T=i(T,A,p,h,u[E+14],17,-1502002290),h=i(h,T,A,p,u[E+15],22,1236535329),p=s(p,h,T,A,u[E+1],5,-165796510),A=s(A,p,h,T,u[E+6],9,-1069501632),T=s(T,A,p,h,u[E+11],14,643717713),h=s(h,T,A,p,u[E+0],20,-373897302),p=s(p,h,T,A,u[E+5],5,-701558691),A=s(A,p,h,T,u[E+10],9,38016083),T=s(T,A,p,h,u[E+15],14,-660478335),h=s(h,T,A,p,u[E+4],20,-405537848),p=s(p,h,T,A,u[E+9],5,568446438),A=s(A,p,h,T,u[E+14],9,-1019803690),T=s(T,A,p,h,u[E+3],14,-187363961),h=s(h,T,A,p,u[E+8],20,1163531501),p=s(p,h,T,A,u[E+13],5,-1444681467),A=s(A,p,h,T,u[E+2],9,-51403784),T=s(T,A,p,h,u[E+7],14,1735328473),h=s(h,T,A,p,u[E+12],20,-1926607734),p=a(p,h,T,A,u[E+5],4,-378558),A=a(A,p,h,T,u[E+8],11,-2022574463),T=a(T,A,p,h,u[E+11],16,1839030562),h=a(h,T,A,p,u[E+14],23,-35309556),p=a(p,h,T,A,u[E+1],4,-1530992060),A=a(A,p,h,T,u[E+4],11,1272893353),T=a(T,A,p,h,u[E+7],16,-155497632),h=a(h,T,A,p,u[E+10],23,-1094730640),p=a(p,h,T,A,u[E+13],4,681279174),A=a(A,p,h,T,u[E+0],11,-358537222),T=a(T,A,p,h,u[E+3],16,-722521979),h=a(h,T,A,p,u[E+6],23,76029189),p=a(p,h,T,A,u[E+9],4,-640364487),A=a(A,p,h,T,u[E+12],11,-421815835),T=a(T,A,p,h,u[E+15],16,530742520),h=a(h,T,A,p,u[E+2],23,-995338651),p=c(p,h,T,A,u[E+0],6,-198630844),A=c(A,p,h,T,u[E+7],10,1126891415),T=c(T,A,p,h,u[E+14],15,-1416354905),h=c(h,T,A,p,u[E+5],21,-57434055),p=c(p,h,T,A,u[E+12],6,1700485571),A=c(A,p,h,T,u[E+3],10,-1894986606),T=c(T,A,p,h,u[E+10],15,-1051523),h=c(h,T,A,p,u[E+1],21,-2054922799),p=c(p,h,T,A,u[E+8],6,1873313359),A=c(A,p,h,T,u[E+15],10,-30611744),T=c(T,A,p,h,u[E+6],15,-1560198380),h=c(h,T,A,p,u[E+13],21,1309151649),p=c(p,h,T,A,u[E+4],6,-145523070),A=c(A,p,h,T,u[E+11],10,-1120210379),T=c(T,A,p,h,u[E+2],15,718787259),h=c(h,T,A,p,u[E+9],21,-343485551),p=n(p,l),h=n(h,_),T=n(T,f),A=n(A,d);return r(p)+r(h)+r(T)+r(A)},e.networkIndicator=BT,e.nextTick=function(e){void 0!==Dl?Dl.resolve().then(e):setTimeout(e,0)},e.noop=()=>{},e.post=PO,e.postProtobuf=async function(e,t){const r=new Blob([t.data],{type:"buffer"});return await PO(e,wO(wO({},t),{},{data:r,headers:{"Content-Type":"application/octet-stream"}}),!0)},e.recursiveMerge=function e(t,r){if(!sA(t)||!sA(r))return r;if(Array.isArray(t)&&!Array.isArray(r)||!Array.isArray(t)&&Array.isArray(r))return r;if(Array.isArray(r)&&Array.isArray(t)){const n=[...t];for(let o=0;o<r.length;o++)n[o]=e(t[o],r[o]);return n}{const n=zT({},t);for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(Object.prototype.hasOwnProperty.call(t,o)?n[o]=e(t[o],r[o]):n[o]=r[o]);return n}},e.releaseStream=function(e){e.getTracks().forEach((e=>{e.stop()}))},e.removeItemFromList=function(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)},e.resetHTTPBytesCount=function(){LO=0,DO=0},e.retryable=function(e,t,r,n){const o=Object.assign({},EA,n);let i=o.timeout;const s=async()=>{await function(e){return new Dl((t=>{window.setTimeout(t,e)}))}(i),i*=o.timeoutFactor,i=Math.min(o.maxRetryTimeout,i)};let a=!1;const c=new Dl((async(n,i)=>{t=t||(()=>!1),r=r||(()=>!0);for(let c=0;c<o.maxRetryCount;c+=1){if(a)return i(new ET(uT.OPERATION_ABORTED));try{const r=await e();if(!t(r,c))return n(r);if(c+1===o.maxRetryCount)return n(r);await s()}catch(e){if(!r(e,c))return i(e);if(c+1===o.maxRetryCount)return i(e);await s()}}}));return c.cancel=()=>a=!0,c},e.runOnce=function(e,t){$T[t]||($T[t]=!0,e())},e.safeCloneJson=function(e){try{return QT(e)}catch(t){return e}},e.setBigInt64=function(e,t,r,n){if("setBigInt64"in DataView.prototype)return e.setBigInt64(t,r,n);const o=Number(r>>BigInt(32)),i=Number(r&BigInt(4294967295));n?(e.setInt32(t+4,o,n),e.setUint32(t,i,n)):(e.setInt32(t,o,n),e.setUint32(t+4,i,n))},e.setBigUint64=function(e,t,r,n){if("setBigUint64"in DataView.prototype)return e.setBigUint64(t,r,n);const o=Number(r>>BigInt(32)),i=Number(r&BigInt(4294967295));n?(e.setUint32(t+4,o,n),e.setUint32(t,i,n)):(e.setUint32(t,o,n),e.setUint32(t+4,i,n))},e.setParameter=function(e,t,r){var n,o,i;s_(n=Object.keys(WO)).call(n,e)&&(!r&&s_(o=Object.keys(KO)).call(o,e)||(WO[e]=t,"ENABLE_VIDEO_SEI"===e&&!0===t&&(WO.ENABLE_ENCODED_TRANSFORM=!0),"USE_NEW_NETWORK_CONFIG"===e&&t&&(i=!!t,WO.USE_NEW_NETWORK_CONFIG=i,i&&(WO.WEBCS_DOMAIN=["webrtc2-2.ap.sd-rtn.com"],WO.WEBCS_DOMAIN_BACKUP_LIST=["webrtc2-4.ap.sd-rtn.com"],WO.CDS_AP=["cds-web-2.ap.sd-rtn.com","cds-web-4.ap.sd-rtn.com"],WO.ACCOUNT_REGISTER=["sua-web-2.ap.sd-rtn.com","sua-web-4.ap.sd-rtn.com"],WO.EVENT_REPORT_DOMAIN="web-2.statscollector.sd-rtn.com",WO.EVENT_REPORT_BACKUP_DOMAIN="statscollector-1.agora.io",WO.GATEWAY_DOMAINS=["edge.sd-rtn.com"])),"ENABLE_PRE_SUB"===e&&t&&(WO.ENABLE_INSTANT_VIDEO=!0,WO.ENABLE_PREALLOC_PC=!0),"ENABLE_SVC"===e&&t&&(WO.ENABLE_AUT_CC=!0)))},e.shiftAndPush=aA,e.showElectronSelectSourceWindow=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Dl(((r,n)=>{const o=document.createElement("div");o.innerText="share screen",o.setAttribute("style","text-align: center; height: 25px; line-height: 25px; border-radius: 4px 4px 0 0; background: #D4D2D4; border-bottom: solid 1px #B9B8B9;");const i=document.createElement("div");i.setAttribute("style","width: 100%; height: 500px; padding: 15px 25px ; box-sizing: border-box;");const s=document.createElement("div");s.innerText="Agora Web Screensharing wants to share the contents of your screen with webdemo.agorabeckon.com. Choose what you'd like to share.",s.setAttribute("style","height: 12%;");const a=document.createElement("div");a.setAttribute("style","width: 100%; height: 80%; background: #FFF; border: solid 1px #CBCBCB; display: flex; flex-wrap: wrap; justify-content: space-around; overflow-y: scroll; padding: 0 15px; box-sizing: border-box;");const c=document.createElement("div");c.setAttribute("style","display: flex; justify-content: space-between; padding: 16px 0;");const u=document.createElement("button");u.innerHTML="cancel",u.setAttribute("style","width: 85px;"),u.onclick=()=>{document.body.removeChild(_);const e=new Error("NotAllowedError");e.name="NotAllowedError",n(e)};let E=t;const l=document.createElement("div");if(t){const e=document.createElement("input");e.setAttribute("type","checkbox");const t=document.createElement("span");e.setAttribute("style","margin-right: 6px;"),t.innerText="Share audio",e.checked=E,e.onchange=()=>{E=e.checked},l.appendChild(e),l.appendChild(t)}c.appendChild(l),c.appendChild(u),i.appendChild(s),i.appendChild(a),i.appendChild(c);const _=document.createElement("div");_.setAttribute("style","position: fixed; z-index: 99999999; top: 50%; left: 50%; width: 620px; height: 525px; background: #ECECEC; border-radius: 4px; -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%);"),_.appendChild(o),_.appendChild(i),document.body.appendChild(_),e.map((e=>{if(e.id){const t=document.createElement("div");t.setAttribute("style","width: 30%; height: 160px; padding: 20px 0; text-align: center;box-sizing: content-box;");let n=e.thumbnail;try{const{width:e}=n.getSize();e>1920&&(n=n.resize({width:1920}))}catch(e){throw e&&e.message.startsWith("Illegal invocation")&&console.error("Operate thumbnail error, please try to set contextIsolation: false. (https://github.com/electron/electron/issues/34953)"),e}t.innerHTML='<div style="height: 120px; display: table-cell; vertical-align: middle;"><img style="width: 100%; background: #333333; box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);" src='+n.toDataURL()+' /></div><span style="\theight: 40px; line-height: 40px; display: inline-block; width: 70%; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">'+(e.name.replace(/[\u00A0-\u9999<>\&]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}))+"</span>"),t.onclick=()=>{document.body.removeChild(_),r({sourceId:e.id,audio:E})},a.appendChild(t)}}))}))},e.supportIsSecureContext=()=>void 0!==window.isSecureContext,e.throttleByKey=iA,e.timeout=rA,e.toCamelCase=function(e){const t=e.split("_");return t[0]+t.slice(1).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")},e.transferVersion=MO,e.transformBrowserName=d_,e.transformBrowserVersion=p_,e.transformOSName=h_,e.uint8ArrayConcat=ZT,e.uint8ArrayToBase64=function(e){let t="";for(let r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return window.btoa(t)},e.updateConcurrentNumber=function(e,t){Bl.set(e,t)},e.wait=function(e){return new Dl((t=>{window.setTimeout(t,e)}))},e.withTimeout=function(e,t){return t===1/0?e:Dl.race([e,rA(t)])}}));