/** * 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+""},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;s2&&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=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;r0?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;o2&&(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;o0;)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;s3)){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;nef(r)?1:-1}}(e)),r=$_(o),n=0;n9007199254740991)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;tA;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;n1&&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(en||(!(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;t255)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(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;o1?t-1:0),n=1;n{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{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{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;te+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{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;n0;)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(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{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{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{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`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{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{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;t0}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;ce===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;a0&&(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.lengthclearTimeout(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{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;o2?r-2:0),o=2;oe+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{-1===t.indexOf(e)&&t.push(e)})),t},e.hexToBytes=function(e){const t=[];for(let r=0;r=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)=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<>>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>2]|=e.charCodeAt(t)<>2]|=128<{},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{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;ca=!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='
'+(e.name.replace(/[\u00A0-\u9999<>\&]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}))+""),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{window.setTimeout(t,e)}))},e.withTimeout=function(e,t){return t===1/0?e:Dl.race([e,rA(t)])}}));