trtc-sdk-v5 5.10.0-wasm.0 → 5.10.0-wasm.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-zh_CN.md +2 -1
- package/README.md +2 -1
- package/assets/debug-dialog.js +1 -0
- package/assets/selfie_segmentation/package.json +27 -0
- package/assets/selfie_segmentation/selfie_segmentation.binarypb +0 -0
- package/assets/selfie_segmentation/selfie_segmentation.tflite +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_landscape.tflite +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.data +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_simd_wasm_bin.wasm +0 -0
- package/assets/selfie_segmentation/selfie_segmentation_solution_wasm_bin.wasm +0 -0
- package/assets/videodec.wasm +0 -0
- package/assets/worker.js +1 -1
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/plugins/voice-changer/voice-changer.esm.js +1 -1
- package/plugins/voice-changer/voice-changer.umd.js +1 -1
- package/trtc.esm.js +36 -36
- package/plugins/video-decoder/videodec.wasm +0 -0
- package/plugins/video-decoder/videodec_simd.wasm +0 -0
- /package/{plugins/ai-denoiser → assets}/denoiser-wasm.js +0 -0
package/README-zh_CN.md
CHANGED
|
@@ -84,7 +84,8 @@ import TRTC from 'trtc-sdk-v5';
|
|
|
84
84
|
├── trtc.js // npm 包入口文件(umd 格式)
|
|
85
85
|
├── trtc.esm.js // 基于 es 模块的 sdk 包(esm 格式)
|
|
86
86
|
├── index.d.ts // 类型声明文件
|
|
87
|
-
|
|
87
|
+
├── plugins // 插件目录
|
|
88
|
+
└── assets // 静态资源目录(如使用虚拟背景、AI 降噪等功能需要部署到服务器供 SDK 动态加载资源)
|
|
88
89
|
```
|
|
89
90
|
|
|
90
91
|
## Changelog
|
package/README.md
CHANGED
|
@@ -80,5 +80,6 @@ Explore SDK API documents:[TRTC Web SDK](https://web.sdk.qcloud.com/trtc/webrt
|
|
|
80
80
|
├── trtc.js // sdk file(umd format)
|
|
81
81
|
├── trtc.esm.js // sdk file base on ES modules(esm format)
|
|
82
82
|
├── index.d.ts // ts declaration file
|
|
83
|
-
|
|
83
|
+
├── plugins // sdk plugins
|
|
84
|
+
└── assets // static resource directory (e.g., required for features like virtual background, AI noise reduction, etc., which need to be deployed on the server for the SDK to dynamically load resources)
|
|
84
85
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TRTCDebugDialog=t()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){return e&&e.Math===Math&&e},o=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),n={},r=function(e){try{return!!e()}catch(t){return!0}},i=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=a,s=Function.prototype.call,l=c?s.bind(s):function(){return s.apply(s,arguments)},u={},d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!d.call({1:2},1);u.f=p?function(e){var t=h(this,e);return!!t&&t.enumerable}:d;var f,m,v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=a,b=Function.prototype,y=b.call,w=g&&b.bind.bind(y,y),k=g?w:function(e){return function(){return y.apply(e,arguments)}},_=k,S=_({}.toString),E=_("".slice),T=function(e){return E(S(e),8,-1)},x=r,R=T,L=Object,D=k("".split),C=x((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"===R(e)?D(e,""):L(e)}:L,O=function(e){return null==e},I=O,P=TypeError,A=function(e){if(I(e))throw new P("Can't call method on "+e);return e},N=C,B=A,U=function(e){return N(B(e))},M="object"==typeof document&&document.all,j=void 0===M&&void 0!==M?function(e){return"function"==typeof e||e===M}:function(e){return"function"==typeof e},q=j,V=function(e){return"object"==typeof e?null!==e:q(e)},H=o,F=j,G=function(e,t){return arguments.length<2?(o=H[e],F(o)?o:void 0):H[e]&&H[e][t];var o},z=k({}.isPrototypeOf),W=o.navigator,Y=W&&W.userAgent,$=Y?String(Y):"",K=o,X=$,J=K.process,Q=K.Deno,Z=J&&J.versions||Q&&Q.version,ee=Z&&Z.v8;ee&&(m=(f=ee.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!m&&X&&(!(f=X.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=X.match(/Chrome\/(\d+)/))&&(m=+f[1]);var te=m,oe=te,ne=r,re=o.String,ie=!!Object.getOwnPropertySymbols&&!ne((function(){var e=Symbol("symbol detection");return!re(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})),ae=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ce=G,se=j,le=z,ue=Object,de=ae?function(e){return"symbol"==typeof e}:function(e){var t=ce("Symbol");return se(t)&&le(t.prototype,ue(e))},he=String,pe=function(e){try{return he(e)}catch(t){return"Object"}},fe=j,me=pe,ve=TypeError,ge=function(e){if(fe(e))return e;throw new ve(me(e)+" is not a function")},be=ge,ye=O,we=function(e,t){var o=e[t];return ye(o)?void 0:be(o)},ke=l,_e=j,Se=V,Ee=TypeError,Te={},xe={get exports(){return Te},set exports(e){Te=e}},Re=o,Le=Object.defineProperty,De=function(e,t){try{Le(Re,e,{value:t,configurable:!0,writable:!0})}catch(o){Re[e]=t}return t},Ce=o,Oe=De,Ie="__core-js_shared__",Pe=xe.exports=Ce[Ie]||Oe(Ie,{});(Pe.versions||(Pe.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ae=Te,Ne=function(e,t){return Ae[e]||(Ae[e]=t||{})},Be=A,Ue=Object,Me=function(e){return Ue(Be(e))},je=Me,qe=k({}.hasOwnProperty),Ve=Object.hasOwn||function(e,t){return qe(je(e),t)},He=k,Fe=0,Ge=Math.random(),ze=He(1..toString),We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ze(++Fe+Ge,36)},Ye=Ne,$e=Ve,Ke=We,Xe=ie,Je=ae,Qe=o.Symbol,Ze=Ye("wks"),et=Je?Qe.for||Qe:Qe&&Qe.withoutSetter||Ke,tt=function(e){return $e(Ze,e)||(Ze[e]=Xe&&$e(Qe,e)?Qe[e]:et("Symbol."+e)),Ze[e]},ot=l,nt=V,rt=de,it=we,at=function(e,t){var o,n;if("string"===t&&_e(o=e.toString)&&!Se(n=ke(o,e)))return n;if(_e(o=e.valueOf)&&!Se(n=ke(o,e)))return n;if("string"!==t&&_e(o=e.toString)&&!Se(n=ke(o,e)))return n;throw new Ee("Can't convert object to primitive value")},ct=TypeError,st=tt("toPrimitive"),lt=function(e,t){if(!nt(e)||rt(e))return e;var o,n=it(e,st);if(n){if(void 0===t&&(t="default"),o=ot(n,e,t),!nt(o)||rt(o))return o;throw new ct("Can't convert object to primitive value")}return void 0===t&&(t="number"),at(e,t)},ut=de,dt=function(e){var t=lt(e,"string");return ut(t)?t:t+""},ht=V,pt=o.document,ft=ht(pt)&&ht(pt.createElement),mt=function(e){return ft?pt.createElement(e):{}},vt=mt,gt=!i&&!r((function(){return 7!==Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a})),bt=i,yt=l,wt=u,kt=v,_t=U,St=dt,Et=Ve,Tt=gt,xt=Object.getOwnPropertyDescriptor;n.f=bt?xt:function(e,t){if(e=_t(e),t=St(t),Tt)try{return xt(e,t)}catch(o){}if(Et(e,t))return kt(!yt(wt.f,e,t),e[t])};var Rt={},Lt=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Dt=V,Ct=String,Ot=TypeError,It=function(e){if(Dt(e))return e;throw new Ot(Ct(e)+" is not an object")},Pt=i,At=gt,Nt=Lt,Bt=It,Ut=dt,Mt=TypeError,jt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Vt="enumerable",Ht="configurable",Ft="writable";Rt.f=Pt?Nt?function(e,t,o){if(Bt(e),t=Ut(t),Bt(o),"function"==typeof e&&"prototype"===t&&"value"in o&&Ft in o&&!o[Ft]){var n=qt(e,t);n&&n[Ft]&&(e[t]=o.value,o={configurable:Ht in o?o[Ht]:n[Ht],enumerable:Vt in o?o[Vt]:n[Vt],writable:!1})}return jt(e,t,o)}:jt:function(e,t,o){if(Bt(e),t=Ut(t),Bt(o),At)try{return jt(e,t,o)}catch(n){}if("get"in o||"set"in o)throw new Mt("Accessors not supported");return"value"in o&&(e[t]=o.value),e};var Gt=Rt,zt=v,Wt=i?function(e,t,o){return Gt.f(e,t,zt(1,o))}:function(e,t,o){return e[t]=o,e},Yt={},$t={get exports(){return Yt},set exports(e){Yt=e}},Kt=i,Xt=Ve,Jt=Function.prototype,Qt=Kt&&Object.getOwnPropertyDescriptor,Zt=Xt(Jt,"name"),eo={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!Kt||Kt&&Qt(Jt,"name").configurable)},to=j,oo=Te,no=k(Function.toString);to(oo.inspectSource)||(oo.inspectSource=function(e){return no(e)});var ro,io,ao,co=oo.inspectSource,so=j,lo=o.WeakMap,uo=so(lo)&&/native code/.test(String(lo)),ho=We,po=Ne("keys"),fo=function(e){return po[e]||(po[e]=ho(e))},mo={},vo=uo,go=o,bo=V,yo=Wt,wo=Ve,ko=Te,_o=fo,So=mo,Eo="Object already initialized",To=go.TypeError,xo=go.WeakMap;if(vo||ko.state){var Ro=ko.state||(ko.state=new xo);Ro.get=Ro.get,Ro.has=Ro.has,Ro.set=Ro.set,ro=function(e,t){if(Ro.has(e))throw new To(Eo);return t.facade=e,Ro.set(e,t),t},io=function(e){return Ro.get(e)||{}},ao=function(e){return Ro.has(e)}}else{var Lo=_o("state");So[Lo]=!0,ro=function(e,t){if(wo(e,Lo))throw new To(Eo);return t.facade=e,yo(e,Lo,t),t},io=function(e){return wo(e,Lo)?e[Lo]:{}},ao=function(e){return wo(e,Lo)}}var Do={set:ro,get:io,has:ao,enforce:function(e){return ao(e)?io(e):ro(e,{})},getterFor:function(e){return function(t){var o;if(!bo(t)||(o=io(t)).type!==e)throw new To("Incompatible receiver, "+e+" required");return o}}},Co=k,Oo=r,Io=j,Po=Ve,Ao=i,No=eo.CONFIGURABLE,Bo=co,Uo=Do.enforce,Mo=Do.get,jo=String,qo=Object.defineProperty,Vo=Co("".slice),Ho=Co("".replace),Fo=Co([].join),Go=Ao&&!Oo((function(){return 8!==qo((function(){}),"length",{value:8}).length})),zo=String(String).split("String"),Wo=$t.exports=function(e,t,o){"Symbol("===Vo(jo(t),0,7)&&(t="["+Ho(jo(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!Po(e,"name")||No&&e.name!==t)&&(Ao?qo(e,"name",{value:t,configurable:!0}):e.name=t),Go&&o&&Po(o,"arity")&&e.length!==o.arity&&qo(e,"length",{value:o.arity});try{o&&Po(o,"constructor")&&o.constructor?Ao&&qo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var n=Uo(e);return Po(n,"source")||(n.source=Fo(zo,"string"==typeof t?t:"")),e};Function.prototype.toString=Wo((function(){return Io(this)&&Mo(this).source||Bo(this)}),"toString");var Yo=j,$o=Rt,Ko=Yt,Xo=De,Jo=function(e,t,o,n){n||(n={});var r=n.enumerable,i=void 0!==n.name?n.name:t;if(Yo(o)&&Ko(o,i,n),n.global)r?e[t]=o:Xo(t,o);else{try{n.unsafe?e[t]&&(r=!0):delete e[t]}catch(a){}r?e[t]=o:$o.f(e,t,{value:o,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Qo={},Zo=Math.ceil,en=Math.floor,tn=Math.trunc||function(e){var t=+e;return(t>0?en:Zo)(t)},on=tn,nn=function(e){var t=+e;return t!=t||0===t?0:on(t)},rn=nn,an=Math.max,cn=Math.min,sn=function(e,t){var o=rn(e);return o<0?an(o+t,0):cn(o,t)},ln=nn,un=Math.min,dn=function(e){var t=ln(e);return t>0?un(t,9007199254740991):0},hn=dn,pn=function(e){return hn(e.length)},fn=U,mn=sn,vn=pn,gn=function(e){return function(t,o,n){var r=fn(t),i=vn(r);if(0===i)return!e&&-1;var a,c=mn(n,i);if(e&&o!=o){for(;i>c;)if((a=r[c++])!=a)return!0}else for(;i>c;c++)if((e||c in r)&&r[c]===o)return e||c||0;return!e&&-1}},bn={includes:gn(!0),indexOf:gn(!1)},yn=Ve,wn=U,kn=bn.indexOf,_n=mo,Sn=k([].push),En=function(e,t){var o,n=wn(e),r=0,i=[];for(o in n)!yn(_n,o)&&yn(n,o)&&Sn(i,o);for(;t.length>r;)yn(n,o=t[r++])&&(~kn(i,o)||Sn(i,o));return i},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xn=En,Rn=Tn.concat("length","prototype");Qo.f=Object.getOwnPropertyNames||function(e){return xn(e,Rn)};var Ln={};Ln.f=Object.getOwnPropertySymbols;var Dn=G,Cn=Qo,On=Ln,In=It,Pn=k([].concat),An=Dn("Reflect","ownKeys")||function(e){var t=Cn.f(In(e)),o=On.f;return o?Pn(t,o(e)):t},Nn=Ve,Bn=An,Un=n,Mn=Rt,jn=r,qn=j,Vn=/#|\.prototype\./,Hn=function(e,t){var o=Gn[Fn(e)];return o===Wn||o!==zn&&(qn(t)?jn(t):!!t)},Fn=Hn.normalize=function(e){return String(e).replace(Vn,".").toLowerCase()},Gn=Hn.data={},zn=Hn.NATIVE="N",Wn=Hn.POLYFILL="P",Yn=Hn,$n=o,Kn=n.f,Xn=Wt,Jn=Jo,Qn=De,Zn=function(e,t,o){for(var n=Bn(t),r=Mn.f,i=Un.f,a=0;a<n.length;a++){var c=n[a];Nn(e,c)||o&&Nn(o,c)||r(e,c,i(t,c))}},er=Yn,tr=function(e,t){var o,n,r,i,a,c=e.target,s=e.global,l=e.stat;if(o=s?$n:l?$n[c]||Qn(c,{}):$n[c]&&$n[c].prototype)for(n in t){if(i=t[n],r=e.dontCallGetSet?(a=Kn(o,n))&&a.value:o[n],!er(s?n:c+(l?".":"#")+n,e.forced)&&void 0!==r){if(typeof i==typeof r)continue;Zn(i,r)}(e.sham||r&&r.sham)&&Xn(i,"sham",!0),Jn(o,n,i,e)}},or={},nr=En,rr=Tn,ir=Object.keys||function(e){return nr(e,rr)},ar=i,cr=Lt,sr=Rt,lr=It,ur=U,dr=ir;or.f=ar&&!cr?Object.defineProperties:function(e,t){lr(e);for(var o,n=ur(t),r=dr(t),i=r.length,a=0;i>a;)sr.f(e,o=r[a++],n[o]);return e};var hr,pr=G("document","documentElement"),fr=It,mr=or,vr=Tn,gr=mo,br=pr,yr=mt,wr="prototype",kr="script",_r=fo("IE_PROTO"),Sr=function(){},Er=function(e){return"<"+kr+">"+e+"</"+kr+">"},Tr=function(e){e.write(Er("")),e.close();var t=e.parentWindow.Object;return e=null,t},xr=function(){try{hr=new ActiveXObject("htmlfile")}catch(r){}var e,t,o;xr="undefined"!=typeof document?document.domain&&hr?Tr(hr):(t=yr("iframe"),o="java"+kr+":",t.style.display="none",br.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(Er("document.F=Object")),e.close(),e.F):Tr(hr);for(var n=vr.length;n--;)delete xr[wr][vr[n]];return xr()};gr[_r]=!0;var Rr=Object.create||function(e,t){var o;return null!==e?(Sr[wr]=fr(e),o=new Sr,Sr[wr]=null,o[_r]=e):o=xr(),void 0===t?o:mr.f(o,t)},Lr=tt,Dr=Rr,Cr=Rt.f,Or=Lr("unscopables"),Ir=Array.prototype;void 0===Ir[Or]&&Cr(Ir,Or,{configurable:!0,value:Dr(null)});var Pr=function(e){Ir[Or][e]=!0},Ar=bn.includes,Nr=Pr;tr({target:"Array",proto:!0,forced:r((function(){return!Array(1).includes()}))},{includes:function(e){return Ar(this,e,arguments.length>1?arguments[1]:void 0)}}),Nr("includes");var Br,Ur,Mr,jr={},qr=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vr=Ve,Hr=j,Fr=Me,Gr=qr,zr=fo("IE_PROTO"),Wr=Object,Yr=Wr.prototype,$r=Gr?Wr.getPrototypeOf:function(e){var t=Fr(e);if(Vr(t,zr))return t[zr];var o=t.constructor;return Hr(o)&&t instanceof o?o.prototype:t instanceof Wr?Yr:null},Kr=r,Xr=j,Jr=V,Qr=$r,Zr=Jo,ei=tt("iterator"),ti=!1;[].keys&&("next"in(Mr=[].keys())?(Ur=Qr(Qr(Mr)))!==Object.prototype&&(Br=Ur):ti=!0);var oi=!Jr(Br)||Kr((function(){var e={};return Br[ei].call(e)!==e}));oi&&(Br={}),Xr(Br[ei])||Zr(Br,ei,(function(){return this}));var ni={IteratorPrototype:Br,BUGGY_SAFARI_ITERATORS:ti},ri=Rt.f,ii=Ve,ai=tt("toStringTag"),ci=function(e,t,o){e&&!o&&(e=e.prototype),e&&!ii(e,ai)&&ri(e,ai,{configurable:!0,value:t})},si=ni.IteratorPrototype,li=Rr,ui=v,di=ci,hi=jr,pi=function(){return this},fi=function(e,t,o,n){var r=t+" Iterator";return e.prototype=li(si,{next:ui(+!n,o)}),di(e,r,!1),hi[r]=pi,e},mi=k,vi=ge,gi=V,bi=function(e){return gi(e)||null===e},yi=String,wi=TypeError,ki=function(e,t,o){try{return mi(vi(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(n){}},_i=V,Si=A,Ei=function(e){if(bi(e))return e;throw new wi("Can't set "+yi(e)+" as a prototype")},Ti=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=ki(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(n){}return function(o,n){return Si(o),Ei(n),_i(o)?(t?e(o,n):o.__proto__=n,o):o}}():void 0),xi=tr,Ri=l,Li=j,Di=fi,Ci=$r,Oi=Ti,Ii=ci,Pi=Wt,Ai=Jo,Ni=jr,Bi=eo.PROPER,Ui=eo.CONFIGURABLE,Mi=ni.IteratorPrototype,ji=ni.BUGGY_SAFARI_ITERATORS,qi=tt("iterator"),Vi="keys",Hi="values",Fi="entries",Gi=function(){return this},zi=function(e,t,o,n,r,i,a){Di(o,t,n);var c,s,l,u=function(e){if(e===r&&m)return m;if(!ji&&e&&e in p)return p[e];switch(e){case Vi:case Hi:case Fi:return function(){return new o(this,e)}}return function(){return new o(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[qi]||p["@@iterator"]||r&&p[r],m=!ji&&f||u(r),v="Array"===t&&p.entries||f;if(v&&(c=Ci(v.call(new e)))!==Object.prototype&&c.next&&(Ci(c)!==Mi&&(Oi?Oi(c,Mi):Li(c[qi])||Ai(c,qi,Gi)),Ii(c,d,!0)),Bi&&r===Hi&&f&&f.name!==Hi&&(Ui?Pi(p,"name",Hi):(h=!0,m=function(){return Ri(f,this)})),r)if(s={values:u(Hi),keys:i?m:u(Vi),entries:u(Fi)},a)for(l in s)(ji||h||!(l in p))&&Ai(p,l,s[l]);else xi({target:t,proto:!0,forced:ji||h},s);return p[qi]!==m&&Ai(p,qi,m,{name:r}),Ni[t]=m,s},Wi=function(e,t){return{value:e,done:t}},Yi=U,$i=Pr,Ki=jr,Xi=Do,Ji=Rt.f,Qi=zi,Zi=Wi,ea=i,ta="Array Iterator",oa=Xi.set,na=Xi.getterFor(ta),ra=Qi(Array,"Array",(function(e,t){oa(this,{type:ta,target:Yi(e),index:0,kind:t})}),(function(){var e=na(this),t=e.target,o=e.index++;if(!t||o>=t.length)return e.target=null,Zi(void 0,!0);switch(e.kind){case"keys":return Zi(o,!1);case"values":return Zi(t[o],!1)}return Zi([o,t[o]],!1)}),"values"),ia=Ki.Arguments=Ki.Array;if($i("keys"),$i("values"),$i("entries"),ea&&"values"!==ia.name)try{Ji(ia,"name",{value:"values"})}catch(Dw){}var aa=ge,ca=Me,sa=C,la=pn,ua=TypeError,da="Reduce of empty array with no initial value",ha=function(e){return function(t,o,n,r){var i=ca(t),a=sa(i),c=la(i);if(aa(o),0===c&&n<2)throw new ua(da);var s=e?c-1:0,l=e?-1:1;if(n<2)for(;;){if(s in a){r=a[s],s+=l;break}if(s+=l,e?s<0:c<=s)throw new ua(da)}for(;e?s>=0:c>s;s+=l)s in a&&(r=o(r,a[s],s,i));return r}},pa={left:ha(!1),right:ha(!0)},fa=r,ma=function(e,t){var o=[][e];return!!o&&fa((function(){o.call(null,t||function(){return 1},1)}))},va=o,ga=$,ba=T,ya=function(e){return ga.slice(0,e.length)===e},wa=ya("Bun/")?"BUN":ya("Cloudflare-Workers")?"CLOUDFLARE":ya("Deno/")?"DENO":ya("Node.js/")?"NODE":va.Bun&&"string"==typeof Bun.version?"BUN":va.Deno&&"object"==typeof Deno.version?"DENO":"process"===ba(va.process)?"NODE":va.window&&va.document?"BROWSER":"REST",ka="NODE"===wa,_a=pa.left;tr({target:"Array",proto:!0,forced:!ka&&te>79&&te<83||!ma("reduce")},{reduce:function(e){var t=arguments.length;return _a(this,e,t,t>1?arguments[1]:void 0)}});var Sa=Yt,Ea=Rt,Ta=function(e,t,o){return o.get&&Sa(o.get,t,{getter:!0}),o.set&&Sa(o.set,t,{setter:!0}),Ea.f(e,t,o)},xa=G,Ra=Ta,La=i,Da=tt("species"),Ca=function(e){var t=xa(e);La&&t&&!t[Da]&&Ra(t,Da,{configurable:!0,get:function(){return this}})},Oa=z,Ia=TypeError,Pa=function(e,t){if(Oa(t,e))return e;throw new Ia("Incorrect invocation")},Aa={};Aa[tt("toStringTag")]="z";var Na="[object z]"===String(Aa),Ba=j,Ua=T,Ma=tt("toStringTag"),ja=Object,qa="Arguments"===Ua(function(){return arguments}()),Va=Na?Ua:function(e){var t,o,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(Dw){}}(t=ja(e),Ma))?o:qa?Ua(t):"Object"===(n=Ua(t))&&Ba(t.callee)?"Arguments":n},Ha=k,Fa=r,Ga=j,za=Va,Wa=co,Ya=function(){},$a=G("Reflect","construct"),Ka=/^\s*(?:class|function)\b/,Xa=Ha(Ka.exec),Ja=!Ka.test(Ya),Qa=function(e){if(!Ga(e))return!1;try{return $a(Ya,[],e),!0}catch(Dw){return!1}},Za=function(e){if(!Ga(e))return!1;switch(za(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ja||!!Xa(Ka,Wa(e))}catch(Dw){return!0}};Za.sham=!0;var ec,tc,oc,nc,rc=!$a||Fa((function(){var e;return Qa(Qa.call)||!Qa(Object)||!Qa((function(){e=!0}))||e}))?Za:Qa,ic=rc,ac=pe,cc=TypeError,sc=It,lc=function(e){if(ic(e))return e;throw new cc(ac(e)+" is not a constructor")},uc=O,dc=tt("species"),hc=function(e,t){var o,n=sc(e).constructor;return void 0===n||uc(o=sc(n)[dc])?t:lc(o)},pc=a,fc=Function.prototype,mc=fc.apply,vc=fc.call,gc="object"==typeof Reflect&&Reflect.apply||(pc?vc.bind(mc):function(){return vc.apply(mc,arguments)}),bc=T,yc=k,wc=function(e){if("Function"===bc(e))return yc(e)},kc=ge,_c=a,Sc=wc(wc.bind),Ec=function(e,t){return kc(e),void 0===t?e:_c?Sc(e,t):function(){return e.apply(t,arguments)}},Tc=k([].slice),xc=TypeError,Rc=function(e,t){if(e<t)throw new xc("Not enough arguments");return e},Lc=/(?:ipad|iphone|ipod).*applewebkit/i.test($),Dc=o,Cc=gc,Oc=Ec,Ic=j,Pc=Ve,Ac=r,Nc=pr,Bc=Tc,Uc=mt,Mc=Rc,jc=Lc,qc=ka,Vc=Dc.setImmediate,Hc=Dc.clearImmediate,Fc=Dc.process,Gc=Dc.Dispatch,zc=Dc.Function,Wc=Dc.MessageChannel,Yc=Dc.String,$c=0,Kc={},Xc="onreadystatechange";Ac((function(){ec=Dc.location}));var Jc=function(e){if(Pc(Kc,e)){var t=Kc[e];delete Kc[e],t()}},Qc=function(e){return function(){Jc(e)}},Zc=function(e){Jc(e.data)},es=function(e){Dc.postMessage(Yc(e),ec.protocol+"//"+ec.host)};Vc&&Hc||(Vc=function(e){Mc(arguments.length,1);var t=Ic(e)?e:zc(e),o=Bc(arguments,1);return Kc[++$c]=function(){Cc(t,void 0,o)},tc($c),$c},Hc=function(e){delete Kc[e]},qc?tc=function(e){Fc.nextTick(Qc(e))}:Gc&&Gc.now?tc=function(e){Gc.now(Qc(e))}:Wc&&!jc?(nc=(oc=new Wc).port2,oc.port1.onmessage=Zc,tc=Oc(nc.postMessage,nc)):Dc.addEventListener&&Ic(Dc.postMessage)&&!Dc.importScripts&&ec&&"file:"!==ec.protocol&&!Ac(es)?(tc=es,Dc.addEventListener("message",Zc,!1)):tc=Xc in Uc("script")?function(e){Nc.appendChild(Uc("script"))[Xc]=function(){Nc.removeChild(this),Jc(e)}}:function(e){setTimeout(Qc(e),0)});var ts={set:Vc,clear:Hc},os=o,ns=i,rs=Object.getOwnPropertyDescriptor,is=function(e){if(!ns)return os[e];var t=rs(os,e);return t&&t.value},as=function(){this.head=null,this.tail=null};as.prototype={add:function(e){var t={item:e,next:null},o=this.tail;o?o.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var cs,ss,ls,us,ds,hs=as,ps=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,fs=/web0s(?!.*chrome)/i.test($),ms=o,vs=is,gs=Ec,bs=ts.set,ys=hs,ws=Lc,ks=ps,_s=fs,Ss=ka,Es=ms.MutationObserver||ms.WebKitMutationObserver,Ts=ms.document,xs=ms.process,Rs=ms.Promise,Ls=vs("queueMicrotask");if(!Ls){var Ds=new ys,Cs=function(){var e,t;for(Ss&&(e=xs.domain)&&e.exit();t=Ds.get();)try{t()}catch(Dw){throw Ds.head&&cs(),Dw}e&&e.enter()};ws||Ss||_s||!Es||!Ts?!ks&&Rs&&Rs.resolve?((us=Rs.resolve(void 0)).constructor=Rs,ds=gs(us.then,us),cs=function(){ds(Cs)}):Ss?cs=function(){xs.nextTick(Cs)}:(bs=gs(bs,ms),cs=function(){bs(Cs)}):(ss=!0,ls=Ts.createTextNode(""),new Es(Cs).observe(ls,{characterData:!0}),cs=function(){ls.data=ss=!ss}),Ls=function(e){Ds.head||cs(),Ds.add(e)}}var Os=Ls,Is=function(e){try{return{error:!1,value:e()}}catch(Dw){return{error:!0,value:Dw}}},Ps=o.Promise,As=o,Ns=Ps,Bs=j,Us=Yn,Ms=co,js=tt,qs=wa,Vs=te;Ns&&Ns.prototype;var Hs=js("species"),Fs=!1,Gs=Bs(As.PromiseRejectionEvent),zs=Us("Promise",(function(){var e=Ms(Ns),t=e!==String(Ns);if(!t&&66===Vs)return!0;if(!Vs||Vs<51||!/native code/.test(e)){var o=new Ns((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((o.constructor={})[Hs]=n,!(Fs=o.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==qs&&"DENO"!==qs||Gs)})),Ws={CONSTRUCTOR:zs,REJECTION_EVENT:Gs,SUBCLASSING:Fs},Ys={},$s=ge,Ks=TypeError,Xs=function(e){var t,o;this.promise=new e((function(e,n){if(void 0!==t||void 0!==o)throw new Ks("Bad Promise constructor");t=e,o=n})),this.resolve=$s(t),this.reject=$s(o)};Ys.f=function(e){return new Xs(e)};var Js,Qs,Zs,el=tr,tl=ka,ol=o,nl=l,rl=Jo,il=Ti,al=ci,cl=Ca,sl=ge,ll=j,ul=V,dl=Pa,hl=hc,pl=ts.set,fl=Os,ml=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(Dw){}},vl=Is,gl=hs,bl=Do,yl=Ps,wl=Ys,kl="Promise",_l=Ws.CONSTRUCTOR,Sl=Ws.REJECTION_EVENT,El=Ws.SUBCLASSING,Tl=bl.getterFor(kl),xl=bl.set,Rl=yl&&yl.prototype,Ll=yl,Dl=Rl,Cl=ol.TypeError,Ol=ol.document,Il=ol.process,Pl=wl.f,Al=Pl,Nl=!!(Ol&&Ol.createEvent&&ol.dispatchEvent),Bl="unhandledrejection",Ul=function(e){var t;return!(!ul(e)||!ll(t=e.then))&&t},Ml=function(e,t){var o,n,r,i=t.value,a=1===t.state,c=a?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{c?(a||(2===t.rejection&&Fl(t),t.rejection=1),!0===c?o=i:(u&&u.enter(),o=c(i),u&&(u.exit(),r=!0)),o===e.promise?l(new Cl("Promise-chain cycle")):(n=Ul(o))?nl(n,o,s,l):s(o)):l(i)}catch(Dw){u&&!r&&u.exit(),l(Dw)}},jl=function(e,t){e.notified||(e.notified=!0,fl((function(){for(var o,n=e.reactions;o=n.get();)Ml(o,e);e.notified=!1,t&&!e.rejection&&Vl(e)})))},ql=function(e,t,o){var n,r;Nl?((n=Ol.createEvent("Event")).promise=t,n.reason=o,n.initEvent(e,!1,!0),ol.dispatchEvent(n)):n={promise:t,reason:o},!Sl&&(r=ol["on"+e])?r(n):e===Bl&&ml("Unhandled promise rejection",o)},Vl=function(e){nl(pl,ol,(function(){var t,o=e.facade,n=e.value;if(Hl(e)&&(t=vl((function(){tl?Il.emit("unhandledRejection",n,o):ql(Bl,o,n)})),e.rejection=tl||Hl(e)?2:1,t.error))throw t.value}))},Hl=function(e){return 1!==e.rejection&&!e.parent},Fl=function(e){nl(pl,ol,(function(){var t=e.facade;tl?Il.emit("rejectionHandled",t):ql("rejectionhandled",t,e.value)}))},Gl=function(e,t,o){return function(n){e(t,n,o)}},zl=function(e,t,o){e.done||(e.done=!0,o&&(e=o),e.value=t,e.state=2,jl(e,!0))},Wl=function(e,t,o){if(!e.done){e.done=!0,o&&(e=o);try{if(e.facade===t)throw new Cl("Promise can't be resolved itself");var n=Ul(t);n?fl((function(){var o={done:!1};try{nl(n,t,Gl(Wl,o,e),Gl(zl,o,e))}catch(Dw){zl(o,Dw,e)}})):(e.value=t,e.state=1,jl(e,!1))}catch(Dw){zl({done:!1},Dw,e)}}};if(_l&&(Dl=(Ll=function(e){dl(this,Dl),sl(e),nl(Js,this);var t=Tl(this);try{e(Gl(Wl,t),Gl(zl,t))}catch(Dw){zl(t,Dw)}}).prototype,(Js=function(e){xl(this,{type:kl,done:!1,notified:!1,parent:!1,reactions:new gl,rejection:!1,state:0,value:null})}).prototype=rl(Dl,"then",(function(e,t){var o=Tl(this),n=Pl(hl(this,Ll));return o.parent=!0,n.ok=!ll(e)||e,n.fail=ll(t)&&t,n.domain=tl?Il.domain:void 0,0===o.state?o.reactions.add(n):fl((function(){Ml(n,o)})),n.promise})),Qs=function(){var e=new Js,t=Tl(e);this.promise=e,this.resolve=Gl(Wl,t),this.reject=Gl(zl,t)},wl.f=Pl=function(e){return e===Ll||undefined===e?new Qs(e):Al(e)},ll(yl)&&Rl!==Object.prototype)){Zs=Rl.then,El||rl(Rl,"then",(function(e,t){var o=this;return new Ll((function(e,t){nl(Zs,o,e,t)})).then(e,t)}),{unsafe:!0});try{delete Rl.constructor}catch(Dw){}il&&il(Rl,Dl)}el({global:!0,constructor:!0,wrap:!0,forced:_l},{Promise:Ll}),al(Ll,kl,!1),cl(kl);var Yl=jr,$l=tt("iterator"),Kl=Array.prototype,Xl=function(e){return void 0!==e&&(Yl.Array===e||Kl[$l]===e)},Jl=Va,Ql=we,Zl=O,eu=jr,tu=tt("iterator"),ou=function(e){if(!Zl(e))return Ql(e,tu)||Ql(e,"@@iterator")||eu[Jl(e)]},nu=l,ru=ge,iu=It,au=pe,cu=ou,su=TypeError,lu=function(e,t){var o=arguments.length<2?cu(e):t;if(ru(o))return iu(nu(o,e));throw new su(au(e)+" is not iterable")},uu=l,du=It,hu=we,pu=function(e,t,o){var n,r;du(e);try{if(!(n=hu(e,"return"))){if("throw"===t)throw o;return o}n=uu(n,e)}catch(Dw){r=!0,n=Dw}if("throw"===t)throw o;if(r)throw n;return du(n),o},fu=Ec,mu=l,vu=It,gu=pe,bu=Xl,yu=pn,wu=z,ku=lu,_u=ou,Su=pu,Eu=TypeError,Tu=function(e,t){this.stopped=e,this.result=t},xu=Tu.prototype,Ru=function(e,t,o){var n,r,i,a,c,s,l,u=o&&o.that,d=!(!o||!o.AS_ENTRIES),h=!(!o||!o.IS_RECORD),p=!(!o||!o.IS_ITERATOR),f=!(!o||!o.INTERRUPTED),m=fu(t,u),v=function(e){return n&&Su(n,"normal",e),new Tu(!0,e)},g=function(e){return d?(vu(e),f?m(e[0],e[1],v):m(e[0],e[1])):f?m(e,v):m(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(r=_u(e)))throw new Eu(gu(e)+" is not iterable");if(bu(r)){for(i=0,a=yu(e);a>i;i++)if((c=g(e[i]))&&wu(xu,c))return c;return new Tu(!1)}n=ku(e,r)}for(s=h?e.next:n.next;!(l=mu(s,n)).done;){try{c=g(l.value)}catch(Dw){Su(n,"throw",Dw)}if("object"==typeof c&&c&&wu(xu,c))return c}return new Tu(!1)},Lu=tt("iterator"),Du=!1;try{var Cu=0,Ou={next:function(){return{done:!!Cu++}},return:function(){Du=!0}};Ou[Lu]=function(){return this},Array.from(Ou,(function(){throw 2}))}catch(Dw){}var Iu=Ps,Pu=function(e,t){try{if(!t&&!Du)return!1}catch(Dw){return!1}var o=!1;try{var n={};n[Lu]=function(){return{next:function(){return{done:o=!0}}}},e(n)}catch(Dw){}return o},Au=Ws.CONSTRUCTOR||!Pu((function(e){Iu.all(e).then(void 0,(function(){}))})),Nu=l,Bu=ge,Uu=Ys,Mu=Is,ju=Ru;tr({target:"Promise",stat:!0,forced:Au},{all:function(e){var t=this,o=Uu.f(t),n=o.resolve,r=o.reject,i=Mu((function(){var o=Bu(t.resolve),i=[],a=0,c=1;ju(e,(function(e){var s=a++,l=!1;c++,Nu(o,t,e).then((function(e){l||(l=!0,i[s]=e,--c||n(i))}),r)})),--c||n(i)}));return i.error&&r(i.value),o.promise}});var qu=tr,Vu=Ws.CONSTRUCTOR,Hu=Ps,Fu=G,Gu=j,zu=Jo,Wu=Hu&&Hu.prototype;if(qu({target:"Promise",proto:!0,forced:Vu,real:!0},{catch:function(e){return this.then(void 0,e)}}),Gu(Hu)){var Yu=Fu("Promise").prototype.catch;Wu.catch!==Yu&&zu(Wu,"catch",Yu,{unsafe:!0})}var $u=l,Ku=ge,Xu=Ys,Ju=Is,Qu=Ru;tr({target:"Promise",stat:!0,forced:Au},{race:function(e){var t=this,o=Xu.f(t),n=o.reject,r=Ju((function(){var r=Ku(t.resolve);Qu(e,(function(e){$u(r,t,e).then(o.resolve,n)}))}));return r.error&&n(r.value),o.promise}});var Zu=Ys;tr({target:"Promise",stat:!0,forced:Ws.CONSTRUCTOR},{reject:function(e){var t=Zu.f(this);return(0,t.reject)(e),t.promise}});var ed=It,td=V,od=Ys,nd=function(e,t){if(ed(e),td(t)&&t.constructor===e)return t;var o=od.f(e);return(0,o.resolve)(t),o.promise},rd=tr,id=Ws.CONSTRUCTOR,ad=nd;G("Promise"),rd({target:"Promise",stat:!0,forced:id},{resolve:function(e){return ad(this,e)}});var cd=tr,sd=Ps,ld=r,ud=G,dd=j,hd=hc,pd=nd,fd=Jo,md=sd&&sd.prototype;if(cd({target:"Promise",proto:!0,real:!0,forced:!!sd&&ld((function(){md.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=hd(this,ud("Promise")),o=dd(e);return this.then(o?function(o){return pd(t,e()).then((function(){return o}))}:e,o?function(o){return pd(t,e()).then((function(){throw o}))}:e)}}),dd(sd)){var vd=ud("Promise").prototype.finally;md.finally!==vd&&fd(md,"finally",vd,{unsafe:!0})}var gd=j,bd=V,yd=Ti,wd=V,kd=T,_d=tt("match"),Sd=Va,Ed=String,Td=function(e){if("Symbol"===Sd(e))throw new TypeError("Cannot convert a Symbol value to a string");return Ed(e)},xd=It,Rd=function(){var e=xd(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ld=l,Dd=Ve,Cd=z,Od=Rd,Id=RegExp.prototype,Pd=r,Ad=o.RegExp,Nd=Pd((function(){var e=Ad("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Bd=Nd||Pd((function(){return!Ad("a","y").sticky})),Ud=Nd||Pd((function(){var e=Ad("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),Md={BROKEN_CARET:Ud,MISSED_STICKY:Bd,UNSUPPORTED_Y:Nd},jd=Rt.f,qd=r,Vd=o.RegExp,Hd=qd((function(){var e=Vd(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Fd=r,Gd=o.RegExp,zd=Fd((function(){var e=Gd("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Wd=i,Yd=o,$d=k,Kd=Yn,Xd=function(e,t,o){var n,r;return yd&&gd(n=t.constructor)&&n!==o&&bd(r=n.prototype)&&r!==o.prototype&&yd(e,r),e},Jd=Wt,Qd=Rr,Zd=Qo.f,eh=z,th=function(e){var t;return wd(e)&&(void 0!==(t=e[_d])?!!t:"RegExp"===kd(e))},oh=Td,nh=function(e){var t=e.flags;return void 0!==t||"flags"in Id||Dd(e,"flags")||!Cd(Id,e)?t:Ld(Od,e)},rh=Md,ih=function(e,t,o){o in e||jd(e,o,{configurable:!0,get:function(){return t[o]},set:function(e){t[o]=e}})},ah=Jo,ch=r,sh=Ve,lh=Do.enforce,uh=Ca,dh=Hd,hh=zd,ph=tt("match"),fh=Yd.RegExp,mh=fh.prototype,vh=Yd.SyntaxError,gh=$d(mh.exec),bh=$d("".charAt),yh=$d("".replace),wh=$d("".indexOf),kh=$d("".slice),_h=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Sh=/a/g,Eh=/a/g,Th=new fh(Sh)!==Sh,xh=rh.MISSED_STICKY,Rh=rh.UNSUPPORTED_Y,Lh=Wd&&(!Th||xh||dh||hh||ch((function(){return Eh[ph]=!1,fh(Sh)!==Sh||fh(Eh)===Eh||"/a/i"!==String(fh(Sh,"i"))})));if(Kd("RegExp",Lh)){for(var Dh=function(e,t){var o,n,r,i,a,c,s=eh(mh,this),l=th(e),u=void 0===t,d=[],h=e;if(!s&&l&&u&&e.constructor===Dh)return e;if((l||eh(mh,e))&&(e=e.source,u&&(t=nh(h))),e=void 0===e?"":oh(e),t=void 0===t?"":oh(t),h=e,dh&&"dotAll"in Sh&&(n=!!t&&wh(t,"s")>-1)&&(t=yh(t,/s/g,"")),o=t,xh&&"sticky"in Sh&&(r=!!t&&wh(t,"y")>-1)&&Rh&&(t=yh(t,/y/g,"")),hh&&(i=function(e){for(var t,o=e.length,n=0,r="",i=[],a=Qd(null),c=!1,s=!1,l=0,u="";n<=o;n++){if("\\"===(t=bh(e,n)))t+=bh(e,++n);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:if(r+=t,"?:"===kh(e,n+1,n+3))continue;gh(_h,kh(e,n+1))&&(n+=2,s=!0),l++;continue;case">"===t&&s:if(""===u||sh(a,u))throw new vh("Invalid capture group name");a[u]=!0,i[i.length]=[u,l],s=!1,u="";continue}s?u+=t:r+=t}return[r,i]}(e),e=i[0],d=i[1]),a=Xd(fh(e,t),s?this:mh,Dh),(n||r||d.length)&&(c=lh(a),n&&(c.dotAll=!0,c.raw=Dh(function(e){for(var t,o=e.length,n=0,r="",i=!1;n<=o;n++)"\\"!==(t=bh(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+bh(e,++n);return r}(e),o)),r&&(c.sticky=!0),d.length&&(c.groups=d)),e!==h)try{Jd(a,"source",""===h?"(?:)":h)}catch(Dw){}return a},Ch=Zd(fh),Oh=0;Ch.length>Oh;)ih(Dh,fh,Ch[Oh++]);mh.constructor=Dh,Dh.prototype=mh,ah(Yd,"RegExp",Dh,{constructor:!0})}uh("RegExp");var Ih=l,Ph=k,Ah=Td,Nh=Rd,Bh=Md,Uh=Rr,Mh=Do.get,jh=Hd,qh=zd,Vh=Ne("native-string-replace",String.prototype.replace),Hh=RegExp.prototype.exec,Fh=Hh,Gh=Ph("".charAt),zh=Ph("".indexOf),Wh=Ph("".replace),Yh=Ph("".slice),$h=function(){var e=/a/,t=/b*/g;return Ih(Hh,e,"a"),Ih(Hh,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Kh=Bh.BROKEN_CARET,Xh=void 0!==/()??/.exec("")[1];($h||Xh||Kh||jh||qh)&&(Fh=function(e){var t,o,n,r,i,a,c,s=this,l=Mh(s),u=Ah(e),d=l.raw;if(d)return d.lastIndex=s.lastIndex,t=Ih(Fh,d,u),s.lastIndex=d.lastIndex,t;var h=l.groups,p=Kh&&s.sticky,f=Ih(Nh,s),m=s.source,v=0,g=u;if(p&&(f=Wh(f,"y",""),-1===zh(f,"g")&&(f+="g"),g=Yh(u,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Gh(u,s.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),o=new RegExp("^(?:"+m+")",f)),Xh&&(o=new RegExp("^"+m+"$(?!\\s)",f)),$h&&(n=s.lastIndex),r=Ih(Hh,p?o:s,g),p?r?(r.input=Yh(r.input,v),r[0]=Yh(r[0],v),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:$h&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),Xh&&r&&r.length>1&&Ih(Vh,r[0],o,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r&&h)for(r.groups=a=Uh(null),i=0;i<h.length;i++)a[(c=h[i])[0]]=r[c[1]];return r});var Jh=Fh;tr({target:"RegExp",proto:!0,forced:/./.exec!==Jh},{exec:Jh});var Qh=l,Zh=Jo,ep=Jh,tp=r,op=tt,np=Wt,rp=op("species"),ip=RegExp.prototype,ap=k,cp=nn,sp=Td,lp=A,up=ap("".charAt),dp=ap("".charCodeAt),hp=ap("".slice),pp=function(e){return function(t,o){var n,r,i=sp(lp(t)),a=cp(o),c=i.length;return a<0||a>=c?e?"":void 0:(n=dp(i,a))<55296||n>56319||a+1===c||(r=dp(i,a+1))<56320||r>57343?e?up(i,a):n:e?hp(i,a,a+2):r-56320+(n-55296<<10)+65536}},fp={codeAt:pp(!1),charAt:pp(!0)},mp=fp.charAt,vp=k,gp=Me,bp=Math.floor,yp=vp("".charAt),wp=vp("".replace),kp=vp("".slice),_p=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Sp=/\$([$&'`]|\d{1,2})/g,Ep=l,Tp=It,xp=j,Rp=T,Lp=Jh,Dp=TypeError,Cp=gc,Op=l,Ip=k,Pp=function(e,t,o,n){var r=op(e),i=!tp((function(){var t={};return t[r]=function(){return 7},7!==""[e](t)})),a=i&&!tp((function(){var t=!1,o=/a/;return"split"===e&&((o={}).constructor={},o.constructor[rp]=function(){return o},o.flags="",o[r]=/./[r]),o.exec=function(){return t=!0,null},o[r](""),!t}));if(!i||!a||o){var c=/./[r],s=t(r,""[e],(function(e,t,o,n,r){var a=t.exec;return a===ep||a===ip.exec?i&&!r?{done:!0,value:Qh(c,t,o,n)}:{done:!0,value:Qh(e,o,t,n)}:{done:!1}}));Zh(String.prototype,e,s[0]),Zh(ip,r,s[1])}n&&np(ip[r],"sham",!0)},Ap=r,Np=It,Bp=j,Up=O,Mp=nn,jp=dn,qp=Td,Vp=A,Hp=function(e,t,o){return t+(o?mp(e,t).length:1)},Fp=we,Gp=function(e,t,o,n,r,i){var a=o+e.length,c=n.length,s=Sp;return void 0!==r&&(r=gp(r),s=_p),wp(i,s,(function(i,s){var l;switch(yp(s,0)){case"$":return"$";case"&":return e;case"`":return kp(t,0,o);case"'":return kp(t,a);case"<":l=r[kp(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>c){var d=bp(u/10);return 0===d?i:d<=c?void 0===n[d-1]?yp(s,1):n[d-1]+yp(s,1):i}l=n[u-1]}return void 0===l?"":l}))},zp=function(e,t){var o=e.exec;if(xp(o)){var n=Ep(o,e,t);return null!==n&&Tp(n),n}if("RegExp"===Rp(e))return Ep(Lp,e,t);throw new Dp("RegExp#exec called on incompatible receiver")},Wp=tt("replace"),Yp=Math.max,$p=Math.min,Kp=Ip([].concat),Xp=Ip([].push),Jp=Ip("".indexOf),Qp=Ip("".slice),Zp="$0"==="a".replace(/./,"$0"),ef=!!/./[Wp]&&""===/./[Wp]("a","$0"),tf=!Ap((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Pp("replace",(function(e,t,o){var n=ef?"$":"$0";return[function(e,o){var n=Vp(this),r=Up(e)?void 0:Fp(e,Wp);return r?Op(r,e,n,o):Op(t,qp(n),e,o)},function(e,r){var i=Np(this),a=qp(e);if("string"==typeof r&&-1===Jp(r,n)&&-1===Jp(r,"$<")){var c=o(t,i,a,r);if(c.done)return c.value}var s=Bp(r);s||(r=qp(r));var l,u=i.global;u&&(l=i.unicode,i.lastIndex=0);for(var d,h=[];null!==(d=zp(i,a))&&(Xp(h,d),u);){""===qp(d[0])&&(i.lastIndex=Hp(a,jp(i.lastIndex),l))}for(var p,f="",m=0,v=0;v<h.length;v++){for(var g,b=qp((d=h[v])[0]),y=Yp($p(Mp(d.index),a.length),0),w=[],k=1;k<d.length;k++)Xp(w,void 0===(p=d[k])?p:String(p));var _=d.groups;if(s){var S=Kp([b],w,y,a);void 0!==_&&Xp(S,_),g=qp(Cp(r,void 0,S))}else g=Gp(b,a,y,w,_,r);y>=m&&(f+=Qp(a,m,y)+g,m=y+b.length)}return f+Qp(a,m)}]}),!tf||!Zp||ef);var of={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},nf=mt("span").classList,rf=nf&&nf.constructor&&nf.constructor.prototype,af=rf===Object.prototype?void 0:rf,cf=T,sf=Array.isArray||function(e){return"Array"===cf(e)},lf=rc,uf=V,df=tt("species"),hf=Array,pf=function(e){var t;return sf(e)&&(t=e.constructor,(lf(t)&&(t===hf||sf(t.prototype))||uf(t)&&null===(t=t[df]))&&(t=void 0)),void 0===t?hf:t},ff=Ec,mf=C,vf=Me,gf=pn,bf=function(e,t){return new(pf(e))(0===t?0:t)},yf=k([].push),wf=function(e){var t=1===e,o=2===e,n=3===e,r=4===e,i=6===e,a=7===e,c=5===e||i;return function(s,l,u,d){for(var h,p,f=vf(s),m=mf(f),v=gf(m),g=ff(l,u),b=0,y=d||bf,w=t?y(s,v):o||a?y(s,0):void 0;v>b;b++)if((c||b in m)&&(p=g(h=m[b],b,f),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:yf(w,h)}else switch(e){case 4:return!1;case 7:yf(w,h)}return i?-1:n||r?r:w}},kf={forEach:wf(0),map:wf(1),filter:wf(2),some:wf(3),every:wf(4),find:wf(5),findIndex:wf(6),filterReject:wf(7)}.forEach,_f=ma("forEach")?[].forEach:function(e){return kf(this,e,arguments.length>1?arguments[1]:void 0)},Sf=o,Ef=of,Tf=af,xf=_f,Rf=Wt,Lf=function(e){if(e&&e.forEach!==xf)try{Rf(e,"forEach",xf)}catch(Dw){e.forEach=xf}};for(var Df in Ef)Ef[Df]&&Lf(Sf[Df]&&Sf[Df].prototype);Lf(Tf);var Cf=o,Of=of,If=af,Pf=ra,Af=Wt,Nf=ci,Bf=tt("iterator"),Uf=Pf.values,Mf=function(e,t){if(e){if(e[Bf]!==Uf)try{Af(e,Bf,Uf)}catch(Dw){e[Bf]=Uf}if(Nf(e,t,!0),Of[t])for(var o in Pf)if(e[o]!==Pf[o])try{Af(e,o,Pf[o])}catch(Dw){e[o]=Pf[o]}}};for(var jf in Of)Mf(Cf[jf]&&Cf[jf].prototype,jf);Mf(If,"DOMTokenList");var qf=fp.charAt,Vf=Td,Hf=Do,Ff=zi,Gf=Wi,zf="String Iterator",Wf=Hf.set,Yf=Hf.getterFor(zf);Ff(String,"String",(function(e){Wf(this,{type:zf,string:Vf(e),index:0})}),(function(){var e,t=Yf(this),o=t.string,n=t.index;return n>=o.length?Gf(void 0,!0):(e=qf(o,n),t.index+=e.length,Gf(e,!1))}));var $f=r,Kf=i,Xf=tt("iterator"),Jf=!$f((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,o){t.delete("b"),n+=o+e})),o.delete("a",2),o.delete("b",void 0),!t.size&&!Kf||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Xf]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),Qf=i,Zf=k,em=l,tm=r,om=ir,nm=Ln,rm=u,im=Me,am=C,cm=Object.assign,sm=Object.defineProperty,lm=Zf([].concat),um=!cm||tm((function(){if(Qf&&1!==cm({b:1},cm(sm({},"a",{enumerable:!0,get:function(){sm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},o=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!==cm({},e)[o]||om(cm({},t)).join("")!==n}))?function(e,t){for(var o=im(e),n=arguments.length,r=1,i=nm.f,a=rm.f;n>r;)for(var c,s=am(arguments[r++]),l=i?lm(om(s),i(s)):om(s),u=l.length,d=0;u>d;)c=l[d++],Qf&&!em(a,s,c)||(o[c]=s[c]);return o}:cm,dm=It,hm=pu,pm=i,fm=Rt,mm=v,vm=Ec,gm=l,bm=Me,ym=function(e,t,o,n){try{return n?t(dm(o)[0],o[1]):t(o)}catch(Dw){hm(e,"throw",Dw)}},wm=Xl,km=rc,_m=pn,Sm=function(e,t,o){pm?fm.f(e,t,mm(0,o)):e[t]=o},Em=lu,Tm=ou,xm=Array,Rm=k,Lm=2147483647,Dm=/[^\0-\u007E]/,Cm=/[.\u3002\uFF0E\uFF61]/g,Om="Overflow: input needs wider integers to process",Im=RangeError,Pm=Rm(Cm.exec),Am=Math.floor,Nm=String.fromCharCode,Bm=Rm("".charCodeAt),Um=Rm([].join),Mm=Rm([].push),jm=Rm("".replace),qm=Rm("".split),Vm=Rm("".toLowerCase),Hm=function(e){return e+22+75*(e<26)},Fm=function(e,t,o){var n=0;for(e=o?Am(e/700):e>>1,e+=Am(e/t);e>455;)e=Am(e/35),n+=36;return Am(n+36*e/(e+38))},Gm=function(e){var t=[];e=function(e){for(var t=[],o=0,n=e.length;o<n;){var r=Bm(e,o++);if(r>=55296&&r<=56319&&o<n){var i=Bm(e,o++);56320==(64512&i)?Mm(t,((1023&r)<<10)+(1023&i)+65536):(Mm(t,r),o--)}else Mm(t,r)}return t}(e);var o,n,r=e.length,i=128,a=0,c=72;for(o=0;o<e.length;o++)(n=e[o])<128&&Mm(t,Nm(n));var s=t.length,l=s;for(s&&Mm(t,"-");l<r;){var u=Lm;for(o=0;o<e.length;o++)(n=e[o])>=i&&n<u&&(u=n);var d=l+1;if(u-i>Am((Lm-a)/d))throw new Im(Om);for(a+=(u-i)*d,i=u,o=0;o<e.length;o++){if((n=e[o])<i&&++a>Lm)throw new Im(Om);if(n===i){for(var h=a,p=36;;){var f=p<=c?1:p>=c+26?26:p-c;if(h<f)break;var m=h-f,v=36-f;Mm(t,Nm(Hm(f+m%v))),h=Am(m/v),p+=36}Mm(t,Nm(Hm(h))),c=Fm(a,d,l===s),a=0,l++}}a++,i++}return Um(t,"")},zm=tr,Wm=k,Ym=sn,$m=RangeError,Km=String.fromCharCode,Xm=String.fromCodePoint,Jm=Wm([].join);zm({target:"String",stat:!0,arity:1,forced:!!Xm&&1!==Xm.length},{fromCodePoint:function(e){for(var t,o=[],n=arguments.length,r=0;n>r;){if(t=+arguments[r++],Ym(t,1114111)!==t)throw new $m(t+" is not a valid code point");o[r]=t<65536?Km(t):Km(55296+((t-=65536)>>10),t%1024+56320)}return Jm(o,"")}});var Qm=Jo,Zm=Tc,ev=Math.floor,tv=function(e,t){var o=e.length;if(o<8)for(var n,r,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}else for(var a=ev(o/2),c=tv(Zm(e,0,a),t),s=tv(Zm(e,a),t),l=c.length,u=s.length,d=0,h=0;d<l||h<u;)e[d+h]=d<l&&h<u?t(c[d],s[h])<=0?c[d++]:s[h++]:d<l?c[d++]:s[h++];return e},ov=tr,nv=o,rv=is,iv=G,av=l,cv=k,sv=i,lv=Jf,uv=Jo,dv=Ta,hv=function(e,t,o){for(var n in t)Qm(e,n,t[n],o);return e},pv=ci,fv=fi,mv=Do,vv=Pa,gv=j,bv=Ve,yv=Ec,wv=Va,kv=It,_v=V,Sv=Td,Ev=Rr,Tv=v,xv=lu,Rv=ou,Lv=Wi,Dv=Rc,Cv=tv,Ov=tt("iterator"),Iv="URLSearchParams",Pv=Iv+"Iterator",Av=mv.set,Nv=mv.getterFor(Iv),Bv=mv.getterFor(Pv),Uv=rv("fetch"),Mv=rv("Request"),jv=rv("Headers"),qv=Mv&&Mv.prototype,Vv=jv&&jv.prototype,Hv=nv.TypeError,Fv=nv.encodeURIComponent,Gv=String.fromCharCode,zv=iv("String","fromCodePoint"),Wv=parseInt,Yv=cv("".charAt),$v=cv([].join),Kv=cv([].push),Xv=cv("".replace),Jv=cv([].shift),Qv=cv([].splice),Zv=cv("".split),eg=cv("".slice),tg=cv(/./.exec),og=/\+/g,ng=/^[0-9a-f]+$/i,rg=function(e,t){var o=eg(e,t,t+2);return tg(ng,o)?Wv(o,16):NaN},ig=function(e){for(var t=0,o=128;o>0&&e&o;o>>=1)t++;return t},ag=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},cg=function(e){for(var t=(e=Xv(e,og," ")).length,o="",n=0;n<t;){var r=Yv(e,n);if("%"===r){if("%"===Yv(e,n+1)||n+3>t){o+="%",n++;continue}var i=rg(e,n+1);if(i!=i){o+=r,n++;continue}n+=2;var a=ig(i);if(0===a)r=Gv(i);else{if(1===a||a>4){o+="�",n++;continue}for(var c=[i],s=1;s<a&&!(++n+3>t||"%"!==Yv(e,n));){var l=rg(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;Kv(c,l),n+=2,s++}if(c.length!==a){o+="�";continue}var u=ag(c);null===u?o+="�":r=zv(u)}}o+=r,n++}return o},sg=/[!'()~]|%20/g,lg={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ug=function(e){return lg[e]},dg=function(e){return Xv(Fv(e),sg,ug)},hg=fv((function(e,t){Av(this,{type:Pv,target:Nv(e).entries,index:0,kind:t})}),Iv,(function(){var e=Bv(this),t=e.target,o=e.index++;if(!t||o>=t.length)return e.target=null,Lv(void 0,!0);var n=t[o];switch(e.kind){case"keys":return Lv(n.key,!1);case"values":return Lv(n.value,!1)}return Lv([n.key,n.value],!1)}),!0),pg=function(e){this.entries=[],this.url=null,void 0!==e&&(_v(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Yv(e,0)?eg(e,1):e:Sv(e)))};pg.prototype={type:Iv,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,o,n,r,i,a,c,s=this.entries,l=Rv(e);if(l)for(o=(t=xv(e,l)).next;!(n=av(o,t)).done;){if(i=(r=xv(kv(n.value))).next,(a=av(i,r)).done||(c=av(i,r)).done||!av(i,r).done)throw new Hv("Expected sequence with length 2");Kv(s,{key:Sv(a.value),value:Sv(c.value)})}else for(var u in e)bv(e,u)&&Kv(s,{key:u,value:Sv(e[u])})},parseQuery:function(e){if(e)for(var t,o,n=this.entries,r=Zv(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(o=Zv(t,"="),Kv(n,{key:cg(Jv(o)),value:cg($v(o,"="))}))},serialize:function(){for(var e,t=this.entries,o=[],n=0;n<t.length;)e=t[n++],Kv(o,dg(e.key)+"="+dg(e.value));return $v(o,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fg=function(){vv(this,mg);var e=Av(this,new pg(arguments.length>0?arguments[0]:void 0));sv||(this.size=e.entries.length)},mg=fg.prototype;if(hv(mg,{append:function(e,t){var o=Nv(this);Dv(arguments.length,2),Kv(o.entries,{key:Sv(e),value:Sv(t)}),sv||this.length++,o.updateURL()},delete:function(e){for(var t=Nv(this),o=Dv(arguments.length,1),n=t.entries,r=Sv(e),i=o<2?void 0:arguments[1],a=void 0===i?i:Sv(i),c=0;c<n.length;){var s=n[c];if(s.key!==r||void 0!==a&&s.value!==a)c++;else if(Qv(n,c,1),void 0!==a)break}sv||(this.size=n.length),t.updateURL()},get:function(e){var t=Nv(this).entries;Dv(arguments.length,1);for(var o=Sv(e),n=0;n<t.length;n++)if(t[n].key===o)return t[n].value;return null},getAll:function(e){var t=Nv(this).entries;Dv(arguments.length,1);for(var o=Sv(e),n=[],r=0;r<t.length;r++)t[r].key===o&&Kv(n,t[r].value);return n},has:function(e){for(var t=Nv(this).entries,o=Dv(arguments.length,1),n=Sv(e),r=o<2?void 0:arguments[1],i=void 0===r?r:Sv(r),a=0;a<t.length;){var c=t[a++];if(c.key===n&&(void 0===i||c.value===i))return!0}return!1},set:function(e,t){var o=Nv(this);Dv(arguments.length,1);for(var n,r=o.entries,i=!1,a=Sv(e),c=Sv(t),s=0;s<r.length;s++)(n=r[s]).key===a&&(i?Qv(r,s--,1):(i=!0,n.value=c));i||Kv(r,{key:a,value:c}),sv||(this.size=r.length),o.updateURL()},sort:function(){var e=Nv(this);Cv(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,o=Nv(this).entries,n=yv(e,arguments.length>1?arguments[1]:void 0),r=0;r<o.length;)n((t=o[r++]).value,t.key,this)},keys:function(){return new hg(this,"keys")},values:function(){return new hg(this,"values")},entries:function(){return new hg(this,"entries")}},{enumerable:!0}),uv(mg,Ov,mg.entries,{name:"entries"}),uv(mg,"toString",(function(){return Nv(this).serialize()}),{enumerable:!0}),sv&&dv(mg,"size",{get:function(){return Nv(this).entries.length},configurable:!0,enumerable:!0}),pv(fg,Iv),ov({global:!0,constructor:!0,forced:!lv},{URLSearchParams:fg}),!lv&&gv(jv)){var vg=cv(Vv.has),gg=cv(Vv.set),bg=function(e){if(_v(e)){var t,o=e.body;if(wv(o)===Iv)return t=e.headers?new jv(e.headers):new jv,vg(t,"content-type")||gg(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ev(e,{body:Tv(0,Sv(o)),headers:Tv(0,t)})}return e};if(gv(Uv)&&ov({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Uv(e,arguments.length>1?bg(arguments[1]):{})}}),gv(Mv)){var yg=function(e){return vv(this,qv),new Mv(e,arguments.length>1?bg(arguments[1]):{})};qv.constructor=yg,yg.prototype=qv,ov({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yg})}}var wg,kg=tr,_g=i,Sg=Jf,Eg=o,Tg=Ec,xg=k,Rg=Jo,Lg=Ta,Dg=Pa,Cg=Ve,Og=um,Ig=function(e){var t=bm(e),o=km(this),n=arguments.length,r=n>1?arguments[1]:void 0,i=void 0!==r;i&&(r=vm(r,n>2?arguments[2]:void 0));var a,c,s,l,u,d,h=Tm(t),p=0;if(!h||this===xm&&wm(h))for(a=_m(t),c=o?new this(a):xm(a);a>p;p++)d=i?r(t[p],p):t[p],Sm(c,p,d);else for(c=o?new this:[],u=(l=Em(t,h)).next;!(s=gm(u,l)).done;p++)d=i?ym(l,r,[s.value,p],!0):s.value,Sm(c,p,d);return c.length=p,c},Pg=Tc,Ag=fp.codeAt,Ng=function(e){var t,o,n=[],r=qm(jm(Vm(e),Cm,"."),".");for(t=0;t<r.length;t++)o=r[t],Mm(n,Pm(Dm,o)?"xn--"+Gm(o):o);return Um(n,".")},Bg=Td,Ug=ci,Mg=Rc,jg={URLSearchParams:fg,getState:Nv},qg=Do,Vg=qg.set,Hg=qg.getterFor("URL"),Fg=jg.URLSearchParams,Gg=jg.getState,zg=Eg.URL,Wg=Eg.TypeError,Yg=Eg.parseInt,$g=Math.floor,Kg=Math.pow,Xg=xg("".charAt),Jg=xg(/./.exec),Qg=xg([].join),Zg=xg(1..toString),eb=xg([].pop),tb=xg([].push),ob=xg("".replace),nb=xg([].shift),rb=xg("".split),ib=xg("".slice),ab=xg("".toLowerCase),cb=xg([].unshift),sb="Invalid scheme",lb="Invalid host",ub="Invalid port",db=/[a-z]/i,hb=/[\d+-.a-z]/i,pb=/\d/,fb=/^0x/i,mb=/^[0-7]+$/,vb=/^\d+$/,gb=/^[\da-f]+$/i,bb=/[\0\t\n\r #%/:<>?@[\\\]^|]/,yb=/[\0\t\n\r #/:<>?@[\\\]^|]/,wb=/^[\u0000-\u0020]+/,kb=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,_b=/[\t\n\r]/g,Sb=function(e){var t,o,n,r;if("number"==typeof e){for(t=[],o=0;o<4;o++)cb(t,e%256),e=$g(e/256);return Qg(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,o=1,n=null,r=0,i=0;i<8;i++)0!==e[i]?(r>o&&(t=n,o=r),n=null,r=0):(null===n&&(n=i),++r);return r>o?n:t}(e),o=0;o<8;o++)r&&0===e[o]||(r&&(r=!1),n===o?(t+=o?":":"::",r=!0):(t+=Zg(e[o],16),o<7&&(t+=":")));return"["+t+"]"}return e},Eb={},Tb=Og({},Eb,{" ":1,'"':1,"<":1,">":1,"`":1}),xb=Og({},Tb,{"#":1,"?":1,"{":1,"}":1}),Rb=Og({},xb,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Lb=function(e,t){var o=Ag(e,0);return o>32&&o<127&&!Cg(t,e)?e:encodeURIComponent(e)},Db={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Cb=function(e,t){var o;return 2===e.length&&Jg(db,Xg(e,0))&&(":"===(o=Xg(e,1))||!t&&"|"===o)},Ob=function(e){var t;return e.length>1&&Cb(ib(e,0,2))&&(2===e.length||"/"===(t=Xg(e,2))||"\\"===t||"?"===t||"#"===t)},Ib=function(e){return"."===e||"%2e"===ab(e)},Pb={},Ab={},Nb={},Bb={},Ub={},Mb={},jb={},qb={},Vb={},Hb={},Fb={},Gb={},zb={},Wb={},Yb={},$b={},Kb={},Xb={},Jb={},Qb={},Zb={},ey=function(e,t,o){var n,r,i,a=Bg(e);if(t){if(r=this.parse(a))throw new Wg(r);this.searchParams=null}else{if(void 0!==o&&(n=new ey(o,!0)),r=this.parse(a,null,n))throw new Wg(r);(i=Gg(new Fg)).bindURL(this),this.searchParams=i}};ey.prototype={type:"URL",parse:function(e,t,o){var n,r,i,a,c,s=this,l=t||Pb,u=0,d="",h=!1,p=!1,f=!1;for(e=Bg(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=ob(e,wb,""),e=ob(e,kb,"$1")),e=ob(e,_b,""),n=Ig(e);u<=n.length;){switch(r=n[u],l){case Pb:if(!r||!Jg(db,r)){if(t)return sb;l=Nb;continue}d+=ab(r),l=Ab;break;case Ab:if(r&&(Jg(hb,r)||"+"===r||"-"===r||"."===r))d+=ab(r);else{if(":"!==r){if(t)return sb;d="",l=Nb,u=0;continue}if(t&&(s.isSpecial()!==Cg(Db,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&Db[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?l=Wb:s.isSpecial()&&o&&o.scheme===s.scheme?l=Bb:s.isSpecial()?l=qb:"/"===n[u+1]?(l=Ub,u++):(s.cannotBeABaseURL=!0,tb(s.path,""),l=Jb)}break;case Nb:if(!o||o.cannotBeABaseURL&&"#"!==r)return sb;if(o.cannotBeABaseURL&&"#"===r){s.scheme=o.scheme,s.path=Pg(o.path),s.query=o.query,s.fragment="",s.cannotBeABaseURL=!0,l=Zb;break}l="file"===o.scheme?Wb:Mb;continue;case Bb:if("/"!==r||"/"!==n[u+1]){l=Mb;continue}l=Vb,u++;break;case Ub:if("/"===r){l=Hb;break}l=Xb;continue;case Mb:if(s.scheme=o.scheme,r===wg)s.username=o.username,s.password=o.password,s.host=o.host,s.port=o.port,s.path=Pg(o.path),s.query=o.query;else if("/"===r||"\\"===r&&s.isSpecial())l=jb;else if("?"===r)s.username=o.username,s.password=o.password,s.host=o.host,s.port=o.port,s.path=Pg(o.path),s.query="",l=Qb;else{if("#"!==r){s.username=o.username,s.password=o.password,s.host=o.host,s.port=o.port,s.path=Pg(o.path),s.path.length--,l=Xb;continue}s.username=o.username,s.password=o.password,s.host=o.host,s.port=o.port,s.path=Pg(o.path),s.query=o.query,s.fragment="",l=Zb}break;case jb:if(!s.isSpecial()||"/"!==r&&"\\"!==r){if("/"!==r){s.username=o.username,s.password=o.password,s.host=o.host,s.port=o.port,l=Xb;continue}l=Hb}else l=Vb;break;case qb:if(l=Vb,"/"!==r||"/"!==Xg(d,u+1))continue;u++;break;case Vb:if("/"!==r&&"\\"!==r){l=Hb;continue}break;case Hb:if("@"===r){h&&(d="%40"+d),h=!0,i=Ig(d);for(var m=0;m<i.length;m++){var v=i[m];if(":"!==v||f){var g=Lb(v,Rb);f?s.password+=g:s.username+=g}else f=!0}d=""}else if(r===wg||"/"===r||"?"===r||"#"===r||"\\"===r&&s.isSpecial()){if(h&&""===d)return"Invalid authority";u-=Ig(d).length+1,d="",l=Fb}else d+=r;break;case Fb:case Gb:if(t&&"file"===s.scheme){l=$b;continue}if(":"!==r||p){if(r===wg||"/"===r||"?"===r||"#"===r||"\\"===r&&s.isSpecial()){if(s.isSpecial()&&""===d)return lb;if(t&&""===d&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(d))return a;if(d="",l=Kb,t)return;continue}"["===r?p=!0:"]"===r&&(p=!1),d+=r}else{if(""===d)return lb;if(a=s.parseHost(d))return a;if(d="",l=zb,t===Gb)return}break;case zb:if(!Jg(pb,r)){if(r===wg||"/"===r||"?"===r||"#"===r||"\\"===r&&s.isSpecial()||t){if(""!==d){var b=Yg(d,10);if(b>65535)return ub;s.port=s.isSpecial()&&b===Db[s.scheme]?null:b,d=""}if(t)return;l=Kb;continue}return ub}d+=r;break;case Wb:if(s.scheme="file","/"===r||"\\"===r)l=Yb;else{if(!o||"file"!==o.scheme){l=Xb;continue}switch(r){case wg:s.host=o.host,s.path=Pg(o.path),s.query=o.query;break;case"?":s.host=o.host,s.path=Pg(o.path),s.query="",l=Qb;break;case"#":s.host=o.host,s.path=Pg(o.path),s.query=o.query,s.fragment="",l=Zb;break;default:Ob(Qg(Pg(n,u),""))||(s.host=o.host,s.path=Pg(o.path),s.shortenPath()),l=Xb;continue}}break;case Yb:if("/"===r||"\\"===r){l=$b;break}o&&"file"===o.scheme&&!Ob(Qg(Pg(n,u),""))&&(Cb(o.path[0],!0)?tb(s.path,o.path[0]):s.host=o.host),l=Xb;continue;case $b:if(r===wg||"/"===r||"\\"===r||"?"===r||"#"===r){if(!t&&Cb(d))l=Xb;else if(""===d){if(s.host="",t)return;l=Kb}else{if(a=s.parseHost(d))return a;if("localhost"===s.host&&(s.host=""),t)return;d="",l=Kb}continue}d+=r;break;case Kb:if(s.isSpecial()){if(l=Xb,"/"!==r&&"\\"!==r)continue}else if(t||"?"!==r)if(t||"#"!==r){if(r!==wg&&(l=Xb,"/"!==r))continue}else s.fragment="",l=Zb;else s.query="",l=Qb;break;case Xb:if(r===wg||"/"===r||"\\"===r&&s.isSpecial()||!t&&("?"===r||"#"===r)){if(".."===(c=ab(c=d))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===r||"\\"===r&&s.isSpecial()||tb(s.path,"")):Ib(d)?"/"===r||"\\"===r&&s.isSpecial()||tb(s.path,""):("file"===s.scheme&&!s.path.length&&Cb(d)&&(s.host&&(s.host=""),d=Xg(d,0)+":"),tb(s.path,d)),d="","file"===s.scheme&&(r===wg||"?"===r||"#"===r))for(;s.path.length>1&&""===s.path[0];)nb(s.path);"?"===r?(s.query="",l=Qb):"#"===r&&(s.fragment="",l=Zb)}else d+=Lb(r,xb);break;case Jb:"?"===r?(s.query="",l=Qb):"#"===r?(s.fragment="",l=Zb):r!==wg&&(s.path[0]+=Lb(r,Eb));break;case Qb:t||"#"!==r?r!==wg&&("'"===r&&s.isSpecial()?s.query+="%27":s.query+="#"===r?"%23":Lb(r,Eb)):(s.fragment="",l=Zb);break;case Zb:r!==wg&&(s.fragment+=Lb(r,Tb))}u++}},parseHost:function(e){var t,o,n;if("["===Xg(e,0)){if("]"!==Xg(e,e.length-1))return lb;if(t=function(e){var t,o,n,r,i,a,c,s=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,h=function(){return Xg(e,d)};if(":"===h()){if(":"!==Xg(e,1))return;d+=2,u=++l}for(;h();){if(8===l)return;if(":"!==h()){for(t=o=0;o<4&&Jg(gb,h());)t=16*t+Yg(h(),16),d++,o++;if("."===h()){if(0===o)return;if(d-=o,l>6)return;for(n=0;h();){if(r=null,n>0){if(!("."===h()&&n<4))return;d++}if(!Jg(pb,h()))return;for(;Jg(pb,h());){if(i=Yg(h(),10),null===r)r=i;else{if(0===r)return;r=10*r+i}if(r>255)return;d++}s[l]=256*s[l]+r,2!=++n&&4!==n||l++}if(4!==n)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;s[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)c=s[l],s[l--]=s[u+a-1],s[u+--a]=c;else if(8!==l)return;return s}(ib(e,1,-1)),!t)return lb;this.host=t}else if(this.isSpecial()){if(e=Ng(e),Jg(bb,e))return lb;if(t=function(e){var t,o,n,r,i,a,c,s=rb(e,".");if(s.length&&""===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(o=[],n=0;n<t;n++){if(""===(r=s[n]))return e;if(i=10,r.length>1&&"0"===Xg(r,0)&&(i=Jg(fb,r)?16:8,r=ib(r,8===i?1:2)),""===r)a=0;else{if(!Jg(10===i?vb:8===i?mb:gb,r))return e;a=Yg(r,i)}tb(o,a)}for(n=0;n<t;n++)if(a=o[n],n===t-1){if(a>=Kg(256,5-t))return null}else if(a>255)return null;for(c=eb(o),n=0;n<o.length;n++)c+=o[n]*Kg(256,3-n);return c}(e),null===t)return lb;this.host=t}else{if(Jg(yb,e))return lb;for(t="",o=Ig(e),n=0;n<o.length;n++)t+=Lb(o[n],Eb);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Cg(Db,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Cb(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,o=e.username,n=e.password,r=e.host,i=e.port,a=e.path,c=e.query,s=e.fragment,l=t+":";return null!==r?(l+="//",e.includesCredentials()&&(l+=o+(n?":"+n:"")+"@"),l+=Sb(r),null!==i&&(l+=":"+i)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+Qg(a,"/"):"",null!==c&&(l+="?"+c),null!==s&&(l+="#"+s),l},setHref:function(e){var t=this.parse(e);if(t)throw new Wg(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ty(e.path[0]).origin}catch(Dw){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Sb(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Bg(e)+":",Pb)},getUsername:function(){return this.username},setUsername:function(e){var t=Ig(Bg(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var o=0;o<t.length;o++)this.username+=Lb(t[o],Rb)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ig(Bg(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var o=0;o<t.length;o++)this.password+=Lb(t[o],Rb)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Sb(e):Sb(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Fb)},getHostname:function(){var e=this.host;return null===e?"":Sb(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Gb)},getPort:function(){var e=this.port;return null===e?"":Bg(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=Bg(e))?this.port=null:this.parse(e,zb))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Qg(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Kb))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=Bg(e))?this.query=null:("?"===Xg(e,0)&&(e=ib(e,1)),this.query="",this.parse(e,Qb)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=Bg(e))?("#"===Xg(e,0)&&(e=ib(e,1)),this.fragment="",this.parse(e,Zb)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ty=function(e){var t=Dg(this,oy),o=Mg(arguments.length,1)>1?arguments[1]:void 0,n=Vg(t,new ey(e,!1,o));_g||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},oy=ty.prototype,ny=function(e,t){return{get:function(){return Hg(this)[e]()},set:t&&function(e){return Hg(this)[t](e)},configurable:!0,enumerable:!0}};if(_g&&(Lg(oy,"href",ny("serialize","setHref")),Lg(oy,"origin",ny("getOrigin")),Lg(oy,"protocol",ny("getProtocol","setProtocol")),Lg(oy,"username",ny("getUsername","setUsername")),Lg(oy,"password",ny("getPassword","setPassword")),Lg(oy,"host",ny("getHost","setHost")),Lg(oy,"hostname",ny("getHostname","setHostname")),Lg(oy,"port",ny("getPort","setPort")),Lg(oy,"pathname",ny("getPathname","setPathname")),Lg(oy,"search",ny("getSearch","setSearch")),Lg(oy,"searchParams",ny("getSearchParams")),Lg(oy,"hash",ny("getHash","setHash"))),Rg(oy,"toJSON",(function(){return Hg(this).serialize()}),{enumerable:!0}),Rg(oy,"toString",(function(){return Hg(this).serialize()}),{enumerable:!0}),zg){var ry=zg.createObjectURL,iy=zg.revokeObjectURL;ry&&Rg(ty,"createObjectURL",Tg(ry,zg)),iy&&Rg(ty,"revokeObjectURL",Tg(iy,zg))}Ug(ty,"URL"),kg({global:!0,constructor:!0,forced:!Sg,sham:!_g},{URL:ty});var ay=l;tr({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return ay(URL.prototype.toString,this)}});var cy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ly=(e,t,o,n)=>{for(var r,i=n>1?void 0:n?sy(t,o):t,a=e.length-1;a>=0;a--)(r=e[a])&&(i=(n?r(t,o,i):r(i))||i);return n&&i&&cy(t,o,i),i},uy=(e,t,o)=>((e,t,o)=>t in e?cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o);var dy=new WeakMap;function hy(e,t){return function(e){return function(t,o,n){return n.value=e(n.value,o),n}}(((o,n)=>function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=dy.get(this);a||(a=new Map,dy.set(this,a));let c=t(...r),s=a.get(c);if(!s||s<=0){o.apply(this,r);let t=setTimeout((()=>{var e;null==(e=dy.get(this))||e.delete(c)}),e);a.set(c,t)}else{clearTimeout(s);let t=window.setTimeout((()=>{var e;o.apply(this,r),null==(e=dy.get(this))||e.delete(c)}),e);a.set(c,t)}}))}var py,fy="audio-frame",my=((py=my||{})[py.TRACE=0]="TRACE",py[py.DEBUG=1]="DEBUG",py[py.INFO=2]="INFO",py[py.WARN=3]="WARN",py[py.ERROR=4]="ERROR",py[py.NONE=5]="NONE",py),vy="Log",gy="Network",by="Dump",yy="Dumping",wy="End",ky="Upload Log",_y="Export Log",Sy="Hide",Ey="goBottom",Ty="backTop",xy="Clear Log",Ry="Uplink",Ly="Downlink",Dy="No Data",Cy="Basic",Oy="Duration",Iy="Video",Py="Audio",Ay="Screen",Ny={"play() error: NotAllowedError:":{tips:e=>e.includes("main <video>")||e.includes("main <audio>")?"Remote stream auto play is restricted and playback fails":"Local stream playback failure, generally only occurs in Android WeChat devices, no need to handle",color:"red",class:"red"},"updateStream() try to recover local stream":{tips:"Device acquisition exception, automatic recovery is in progress"},"updateStream() recover local stream successfully":{tips:"Device acquisition exception, automatic recovery is successful"},"updateStream() failed to recover local stream":{tips:"Device acquisition exception, automatic recovery failed"},"main stream - video track is muted":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is muted":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is muted":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unable to provide media output":{tips:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is unable to provide media output":{tips:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is unable to provide media output":{tips:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unmuted":{tips:"Received enough playback video data"},"main stream - audio track is unmuted":{tips:"Received enough playback audio data"},"auxiliary stream - video track is unmuted":{tips:"Received enough playback screen sharing data"},"main stream - audio player track is ended":{tips:"Remote audio track stopped"},"main stream - video player track is ended":{tips:"Remote video track stopped"},"auxiliary stream - video player track is ended":{tips:"Received enough playback screen sharing data"},"stream - video track is muted":{tips:"Camera capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"stream - video track is unable to provide media output":{tips:"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked, and the customer needs to re-acquire. SDK v4.11.4+ will automatically resume acquisition without customer intervention",color:"orange"},"video track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"video player track is ended":{tips:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"stream - audio track is muted":{tips:"Microphone capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"audio track is unable to provide media output":{tips:e=>e.includes("↓")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"Microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio track is unable to provide media output":{tips:"The microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"audio player track is ended":{tips:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"is adding audio track to current published local stream":{tips:"add audio track",color:"orange"},"is removing audio track from current published local stream":{tips:"remove audio track",color:"orange"},"is removing video track from current published local stream":{tips:"remove video track",color:"orange"},"is adding video track to current published local stream":{tips:"add video track",color:"orange"},"is replacing audio track to current published local main stream":{tips:"replace audio track",color:"orange"},"is replacing video track to current published local main stream":{tips:"replace video track",color:"orange"},"downlink network quality change":{tips:"Downstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"uplink network quality change":{tips:"Upstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"localStream mute video":{tips:"mute upstream video stream",color:"orange"},"localStream unmute video":{tips:"unmute upstream video stream",color:"orange"},"localStream mute audio":{tips:"mute upstream audio stream",color:"orange"},"localStream unmute audio":{tips:"unmute upstream audio stream",color:"orange"},"black detected":{tips:"Detect black screen, which means fps = 0. It is usually caused by network, and the network will be recovered after a while. If the network is normal but has not been restored, it is an abnormal situation."},'main stream start to play with options: {"muted":true}':{tips:"Play the remote stream in silent mode. Generally, the remote stream does not need to be played in silent mode. You need to confirm whether the parameters passed in the client stream.play API call are correct.",color:"orange"},"main stream - audio player is starting playing":{tips:"Remote stream audio playback success",color:"#0dd90d",class:"success"},"main stream - video player is starting playing":{tips:"Remote stream video playback success",color:"#0dd90d",class:"success"},"video player is playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"audio player is playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"stream - video player is starting playing":{tips:"Local video playback success",color:"#0dd90d",class:"success"},"stream - audio player is starting playing":{tips:"Local audio playback success",color:"#0dd90d",class:"success"},"switch camera success":{tips:"Switch camera success",color:"#0dd90d",class:"success"},"switch microphone success":{tips:"Switch microphone success",color:"#0dd90d",class:"success"},gotStream:{tips:"Local stream capture success"},"local stream is published successfully":{tips:"Publish success",color:"#0dd90d",class:"success"},"encoderImplementation change to OpenH264":{tips:"Use software encoding"},"encoderImplementation change to ExternalEncoder":{tips:"Use hardware encoding"},"getUserMedia with constraints":{tips:"Start media (camera/microphone) capture"},"getDisplayMedia with constraints":{tips:"Start screen sharing capture"},"client-banned":{tips:"Kicked out of the room",color:"red",class:"red",textColor:"#fff"},user_timeout:{tips:"The backend is too long without receiving SDK heartbeat, which is usually caused by the JS thread being blocked for a long time. If the reproduction probability is high, the application browser Performance tool analyzes where the JS thread is blocked.",color:"red",class:"red",textColor:"#fff"},"schedule failed":{tips:"Signaling request failed, does not affect the normal room entry process, SDK will connect to the default signaling domain."},"updateStream() video flag is true, but no camera detected, set video to false":{tips:"When trying to resume camera acquisition, the camera acquisition is not resumed because it is detected that there is no camera.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to bandwidth":{tips:"bandwidth estimation is not enough to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to cpu":{tips:"cpu load is too high to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: hidden":{tips:"User page switched to backend, in mobile devices, this will cause the device to pause the capture, and it will be restored when the user switches backend to the frontend.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: visible":{tips:"User page switched to frontend",color:"orange",class:"orange",textColor:"#fff"},"main stream - audio player is paused":{tips:"The remote stream audio playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},"main stream - video player is paused":{tips:"The remote stream video playback is paused, which usually has two possibilities:\n 1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.\n 2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.",color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach((e=>{Ny["".concat(e,"()")]={tips:"Call trtc.".concat(e),color:"blue",class:"blue",textColor:"#fff"}}));var By=Object.keys(Ny),Uy="trtc_debug_dialog",My="".concat(Uy,"_activated"),jy="".concat(Uy,"_switch"),qy="".concat(Uy,"_mask"),Vy="".concat(Uy,"_panel"),Hy="".concat(Uy,"_tabber"),Fy="".concat(Uy,"_tab"),Gy="".concat(Uy,"_topbar"),zy="".concat(Uy,"_toptab"),Wy="".concat(Uy,"_content"),Yy="".concat(Uy,"_has_topbar"),$y="".concat(Wy,"_log"),Ky="".concat(Wy,"_network"),Xy="".concat(Uy,"_dump"),Jy="".concat(Ky,"_title"),Qy="".concat(Ky,"_basic"),Zy="".concat(Ky,"_local"),ew="".concat(Ky,"_remote"),tw="".concat(Xy,"_title"),ow="".concat(Xy,"_local"),nw="".concat(Xy,"_remote"),rw="".concat(nw,"_hook"),iw="".concat(Uy,"_banner"),aw="".concat(iw,"_item"),cw="".concat(Uy,"_toolbar"),sw="".concat(Uy,"_tool"),lw="".concat(Uy,"_item"),uw="".concat(lw,"_debug"),dw="".concat(lw,"_info"),hw="".concat(lw,"_warn"),pw="".concat(lw,"_error"),fw="".concat(Uy,"_back_top"),mw="".concat(Uy,"_go_bottom"),vw="".concat(Xy,"_local_audio"),gw="".concat(Xy,"_local_video_main"),bw="".concat(Xy,"_local_video_aux"),yw="".concat(Uy,"_tooltip"),ww="".concat(Qy,"_network_info"),kw="".concat(Qy,"_room_info"),_w="".concat($y,"_controller"),Sw="success",Ew="warning",Tw="failed",xw=0,Rw=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.addStyle(),this.addDialog()}addDialog(){var e;let t=document.createElement("template");t.innerHTML='<div id="'.concat(Uy,'" class="').concat(Uy,'"><div class="').concat(jy,'">Debug#').concat(++xw,'</div><div class="').concat(qy,'"></div><div class="').concat(Vy,'"><div class="').concat(Hy,'"><a class="').concat(Fy," ").concat(My,'" data-tab="log">').concat(vy,'</a><a class="').concat(Fy,'" data-tab="network">').concat(gy,'</a><a class="').concat(Fy,'" data-tab="dump">').concat(by,'</a></div><div class="').concat(_w,'"><div data-type="back_top">').concat(Ty,'</div><div data-type="go_bottom">').concat(Ey,'</div><div data-type="clear_log">').concat(xy,'</div></div><div class="').concat(Gy,'"><a class="').concat(zy," ").concat(My,'" data-type="all">All</a><a class="').concat(zy,'" data-type="debug">Debug</a><a class="').concat(zy,'" data-type="info">Info</a><a class="').concat(zy,'" data-type="warn">Warn</a><a class="').concat(zy,'" data-type="error">Error</a></div><div class="').concat(Wy," ").concat(Yy,'"><div class="').concat($y,'"></div><div class="').concat(Ky,'"><div class="').concat(Jy,'">').concat(Cy,'</div><div class="').concat(Qy,'"><div class="').concat(kw,'"></div><div class="').concat(ww,'">').concat(Dy,'</div></div><div class="').concat(Jy,'">').concat(Ry,'</div><div class="').concat(Zy,'">').concat(Dy,'</div><div class="').concat(Jy,'">').concat(Ly,'</div><div class="').concat(ew,'">').concat(Dy,'</div></div><div class="').concat(Xy,'"><div class="').concat(tw,'">').concat(Ry,'</div><div class="').concat(ow,'"><div id="').concat(vw,'"><span>').concat(Py," - ").concat(Oy,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat(by,'</button><button class="end-dump" disabled>').concat(wy,'</button></div><div id="').concat(gw,'"><span>').concat(Iy," - ").concat(Oy,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat(by,'</button><button class="end-dump" disabled>').concat(wy,'</button></div><div id="').concat(bw,'"><span>').concat(Ay," - ").concat(Oy,'(s):</span><input type="number" min=0 value=10></input><button class="dump">').concat(by,'</button><button class="end-dump" disabled>').concat(wy,'</button></div></div><div class="').concat(tw,'">').concat(Ly,'</div><div class="').concat(nw,'"><div class="').concat(rw,"\">userId:<input id=\"dump-remote-video-hook-userid\" value='*' />duration:<input id=\"dump-remote-video-hook-duration\" min='1' value='10' type='number' />mediaType:<select id=\"dump-remote-video-hook-mediaType\" value='main' ><option value='main' checked>Video</option><option value='sub'>Screen</option></select><button id=\"dump-remote-video-hook-button\">dump if video is available</button></div></div></div></div><div class=\"").concat(iw,'"></div><div class="').concat(cw,'"><a id="trtc_upload" class="').concat(sw,'">').concat(ky,'</a><a id="trtc_export" class="').concat(sw,'">').concat(_y,'</a><a id="trtc_hide" class="').concat(sw,'">').concat(Sy,"</a></div></div></div>"),null==(e=this.shadowRoot)||e.appendChild(t.content.firstChild)}addStyle(){var e;let t=document.createElement("style");t.textContent="#".concat(Uy,"{--DD-BG-0:#ededed;--DD-BG-1:#f7f7f7;--DD-BG-2:#fff;--DD-BORDER:rgba(0,0,0,0.1);--DD-ERROR:red;--DD-WARN:#fa9d3b;--DD-INFO:#000;--DD-DEBUG:#10aeff;--DD-WARN-BG:#fff3cc;--DD-ERROR-BG:#ffe6e6;}#").concat(Uy," a,.").concat(jy,"{cursor:pointer;}.").concat(Uy,"{color:black;}.").concat(jy,"{display:block;position:fixed;right:50px;bottom:150px;border-radius:5px;background-color:#07c160;color:#fff;padding:5px 10px;z-index:10000;}.").concat(qy,"{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:10001;background-color:rgb(0,0,0,0.6);}.").concat(Vy,"{background-color:#ededed;display:none;position:fixed;min-height:85%;left:60%;right:0;bottom:0;z-index:10002;border:1px solid var(--DD-BG-0);}@media (max-width:768px) {.").concat(Vy,"{left:0;}}.").concat(Hy,"{display:flex;height:2rem;border-bottom:1px solid var(--DD-BORDER);}.").concat(Fy,"{padding:0 20px;border-right:1px solid rgba(0,0,0,0.1);line-height:2rem;color:black;}.").concat(Fy,".").concat(My,"{background-color:var(--DD-BG-2);}.").concat(Fy,".disabled{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(Gy,"{height:2rem;display:flex;flex-direction:row;}.").concat(zy,"{width:20%;text-align:center;line-height:2rem;border-right:1px solid var(--DD-BORDER);border-bottom:1px solid var(--DD-BORDER);color:black;}.").concat(zy,".").concat(My,"{border-bottom:1px solid #1485ee;background-color:var(--DD-BG-2);}.").concat(Wy,"{background-color:#fff;position:absolute;left:0;right:0;top:2rem;bottom:8rem;overflow-y:scroll;overflow-x:hidden;}.").concat(Wy,".").concat(Yy,"{top:4rem;bottom:10rem}.").concat(Ky,"{display:none;}.").concat(Xy,"{display:none;}.").concat(Jy,",.").concat(tw,"{line-height:2rem;text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(Qy,",.").concat(Zy,",.").concat(ew,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(ow,",.").concat(nw,"{display:flex;flex-direction:column;padding:0.5rem 0;justify-content:center;align-items:center;}.").concat(ow," div input{margin:0 10px;height:1.5rem;width:4rem;}.").concat(ow," div {padding:10px 0;border-radius:5px;}.").concat(ow," div button,.").concat(nw," div button {cursor:pointer;height:1.8rem;border-radius:5px;margin-right:5px;}.").concat(ow," div button[disabled],.").concat(nw," div button[disabled]{cursor:not-allowed;}.").concat(nw," select {height:1.8rem;margin:0 10px;}.").concat(nw," div input{margin:0 10px;height:1.5rem;width:4rem;}.").concat(rw," {line-height:3rem;padding:0.5rem;}.").concat(Jy,"{text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}.").concat(Qy,",.").concat(Zy,",.").concat(ew,"{text-align:center;border-bottom:1px solid var(--DD-BORDER);}.").concat(lw,"{border-bottom:1px solid var(--DD-BG-0);padding:5px 10px;overflow-wrap: break-word;}.").concat(pw,"{color:var(--DD-ERROR);background-color:var(--DD-ERROR-BG);}.").concat(hw,"{color:var(--DD-WARN);background-color:var(--DD-WARN-BG);}div .").concat(dw,"{color:var(--DD-INFO);}.").concat(uw,"{color:var(--DD-DEBUG);}.").concat(iw,"{position:absolute;left:0;right:0;bottom:2rem;height:6rem;border-bottom:1px solid var(--DD-BORDER);display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--DD-BG-1);}.").concat(aw,"{border-bottom:1px solid var(--DD-BORDER);padding:5px 10px;overflow-wrap: break-word;}.").concat(cw,"{position:absolute;line-height:2rem;display:flex;flex-direction:row;left:0;right:0;bottom:0;}.").concat(sw,"{flex:1;color:black;text-align:center;background-color:#ededed;border-right:1px solid var(--DD-BORDER);}#").concat(Uy," .").concat(fw,",#").concat(Uy," .").concat(mw,"{position:absolute;height:2rem;width:6rem;right:2rem;border-radius:5px;background-color:rgba(30,136,229,0.8);z-index:10003;cursor:pointer;padding:0 5px;line-height:2rem;color:white;text-align:center;}.").concat(mw,"{bottom:9rem;}.").concat(fw,"{bottom:11.5rem;}#").concat(Uy," .").concat(sw,".disable{cursor:not-allowed;background-color:#ededed;color:#999;}.").concat(yw," {position:relative;display:inline-block;}.").concat(yw," .tooltiptext{visibility:hidden;width:180px;background-color:black;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;}.").concat(yw," .tooltip-top {bottom:125%;left:50%;margin-left:-90px;}.").concat(yw,":hover .tooltiptext{visibility:visible;}.").concat(_w,"{position:absolute;left:0;right:0;bottom:8rem;height:2rem;display:flex;align-items:center;}.").concat(_w," div{flex:1;cursor:pointer;border-right:1px solid var(--DD-BORDER);text-align: center;}"),null==(e=this.shadowRoot)||e.appendChild(t)}};customElements.define("trtc-basic-debug-dialog",Rw);var Lw=class{constructor(e,t,o,n){uy(this,"_dialogNode",null),uy(this,"_switchNode",null),uy(this,"_maskNode",null),uy(this,"_panelNode",null),uy(this,"_logContentNode",null),uy(this,"_networkContentNode",null),uy(this,"_dumpContentNode",null),uy(this,"_tabNodes",[]),uy(this,"_toptabNodes",[]),uy(this,"_hasMove",!1),uy(this,"_showDialog",!1),uy(this,"_isMobile",!1),uy(this,"_showLogType","all"),uy(this,"prevBytesSent",0),uy(this,"prevBytesReceived",0),uy(this,"_core"),uy(this,"_log"),uy(this,"_logList",[]),uy(this,"isUploading",!1),uy(this,"publishMap",new Map),uy(this,"dumpLocalVideoMap"),uy(this,"dumpRemoteVideoMap"),uy(this,"eventMap",new Map),uy(this,"switchPos",{x:0,y:0,startX:0,startY:0,endX:0,endY:0,isTouchEnd:!1}),uy(this,"handleLeaveSuccess",(e=>{let{room:t}=e;var o;if(!this.hitTest(t))return;let n=null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(nw));for(let r of this.publishMap.values())null==n||n.removeChild(r);this.publishMap.clear()})),uy(this,"handleJoinSuccess",(e=>{let{room:t}=e;var o;if(!this.hitTest(t))return;(null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(kw))).innerHTML="sdkAppId: ".concat(t.sdkAppId,"<br/>roomId: ").concat(t.roomId,"<br/>userId: ").concat(t.userId,"<br/>")})),uy(this,"handleRemoteVideoAvailable",(e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"publish")})),uy(this,"handleRemoteVideoUnavailable",(e=>{let t="sub"===e.streamType?"auxiliary":"main";this.renderDumpTab(e.userId,"remote",t,"unpublish")})),uy(this,"handleRemoteAudioAvailable",(e=>{this.renderDumpTab(e.userId,"remote","audio","publish")})),uy(this,"handleRemoteAudioUnavailable",(e=>{this.renderDumpTab(e.userId,"remote","audio","unpublish")})),uy(this,"renderDumpTab",((e,t,o,n)=>{var r,i;let a={main:"video",auxiliary:"screen",audio:"audio"},c=(e,t)=>{var o,n;let r=document.createElement("div");r.innerText="".concat(e," - ").concat(a[t]," - ").concat(Oy,"(s):");let i=document.createElement("input");i.type="number",i.min="0",i.value="10",i.id="dump_remote_".concat(t,"_").concat(e);let c=document.createElement("button");c.innerText=wy,c.disabled=!0;let s=document.createElement("button");s.innerText=by,s.onclick=()=>{let o,n,r=Number(i.value);if("audio"===t)({download:o,onDumpEnd:n}=this.dumpAudio("remote",r,e));else{if(!this.isSupportDumpVideo())return;({download:o,onDumpEnd:n}=this.dumpVideo(t,"remote",r,e))}o&&(this.inactiveButton(s,yy),r>0?setTimeout((()=>{null==o||o(),this.activeButton(s,by)}),1e3*r):(this.activeButton(c),c.onclick=()=>{c.onclick=null,null==o||o(),null==n||n(),this.activeButton(s,by),this.inactiveButton(c)}))},r.appendChild(i),r.appendChild(s),r.appendChild(c),r.style.cssText="padding:10px;";let l=document.createElement("div");return l.style.cssText="width:100%;display:flex;justify-content:center;border-top: 1px solid var(--DD-BORDER);",l.appendChild(r),null==(n=null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(nw)))||n.appendChild(l),l};if("remote"===t)if("publish"===n){let n=c(e,o);this.publishMap.set("".concat(e,"-").concat(t,"-").concat(o),n)}else{let n=this.publishMap.get("".concat(e,"-").concat(t,"-").concat(o));if(!n)return;null==(i=null==(r=this._dialogNode)?void 0:r.querySelector(".".concat(nw)))||i.removeChild(n),this.publishMap.delete("".concat(e,"-").concat(t,"-").concat(o))}})),uy(this,"handleStatistics",(e=>{var t,o,n;let r=(e.bytesSent-this.prevBytesSent)/2,i=(e.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=e.bytesSent,this.prevBytesReceived=e.bytesReceived,(null==(t=this._dialogNode)?void 0:t.querySelector(".".concat(ww))).innerHTML="rtt: ".concat(e.rtt," ms upLoss: ").concat(e.upLoss,"% downLoss: ").concat(e.downLoss,"% <br>\n ↑ ").concat(r/1e3," KB/s (").concat(8*r/1e3," Kb/s) <br>\n ↓ ").concat(i/1e3," KB/s (").concat(8*i/1e3," Kb/s) <br>\n ");let a=null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(Zy)),c="";e.localStatistics.audio.bitrate&&(c="<li>local audio: ".concat(e.localStatistics.audio.bitrate," Kb/s audioLevel: ").concat(e.localStatistics.audio.audioLevel.toFixed(5),"</li>")),e.localStatistics.video.length>0&&(c+="".concat(e.localStatistics.video.map((e=>"<li>local ".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>"))).join(""))),a.innerHTML=""===c?"".concat(Dy):c;let s=null==(n=this._dialogNode)?void 0:n.querySelector(".".concat(ew)),l="";e.remoteStatistics.length>0&&e.remoteStatistics.forEach((e=>{let t="remote ".concat(e.userId,":");e.audio.bitrate>0&&(t+="<li>audio: ".concat(e.audio.bitrate," Kb/s audioLevel: ").concat(e.audio.audioLevel.toFixed(5),"</li>")),e.video.length>0&&e.video.forEach((e=>{t+="<li>".concat(e.videoType," video: ").concat(e.bitrate," Kb/s ").concat(e.width,"*").concat(e.height," ").concat(e.frameRate,"fps</li>")})),l+=t})),s.innerHTML=""===l?"".concat(Dy):l})),uy(this,"pad",(e=>e<10?"0".concat(e):"".concat(e))),this._core=e,this._log=t,this.dumpLocalVideoMap=o,this.dumpRemoteVideoMap=n,this.initCustomElements(),this.synchronizeLog(),this.installEvents()}initCustomElements(){this._isMobile=(()=>{let e=window.navigator&&window.navigator.userAgent||"",t=/iPad/i.test(e)||/iPhone/i.test(e),o=/Android/i.test(e);return t||o})();let e=document.createElement("trtc-basic-debug-dialog");document.body.appendChild(e);let t=e.shadowRoot;if(this._dialogNode=t,!t)return;this._switchNode=t.querySelector(".".concat(jy)),this._addEventListener(this._switchNode,"click",this.onSwitchClick.bind(this));let o=getComputedStyle(this._switchNode);this.switchPos.x=parseInt(o.right,10)||50,this.switchPos.y=parseInt(o.bottom,10)||150,this._isMobile?(this._switchNode.ontouchstart=this.onTouchStart.bind(this),this._switchNode.ontouchend=this.onTouchEnd.bind(this),this._switchNode.ontouchmove=this.onTouchMove.bind(this)):this._switchNode.onmousedown=this.onMouseDown.bind(this),this._maskNode=t.querySelector(".".concat(qy)),this._addEventListener(this._maskNode,"click",this.onMaskClick.bind(this)),this._panelNode=t.querySelector(".".concat(Vy)),t.querySelector(".".concat(_w)).childNodes.forEach((e=>{switch(e.getAttribute("data-type")){case"go_bottom":this._addEventListener(e,"click",this.onGoBottomClick.bind(this));break;case"back_top":this._addEventListener(e,"click",this.onBackTopClick.bind(this));break;case"clear_log":this._addEventListener(e,"click",this.onClearLogClick.bind(this))}})),this._logContentNode=t.querySelector(".".concat($y)),this._networkContentNode=t.querySelector(".".concat(Ky)),this._dumpContentNode=t.querySelector(".".concat(Xy)),this._tabNodes=Array.from(t.querySelector(".".concat(Hy)).children),this._tabNodes.forEach((e=>{this._addEventListener(e,"click",this.onTabClick.bind(this))})),this._toptabNodes=Array.from(t.querySelector(".".concat(Gy)).children),this._toptabNodes.forEach((e=>{this._addEventListener(e,"click",this.onToptabClick.bind(this))}));let n=t.querySelector("#trtc_upload");this._addEventListener(n,"click",this.onUploadClick.bind(this));let r=t.querySelector("#trtc_export");this._addEventListener(r,"click",this.onExportClick.bind(this));let i=t.querySelector("#trtc_hide");this._addEventListener(i,"click",this.onHideClick.bind(this));let a=t.querySelector("#".concat(gw," .dump")),c=t.querySelector("#".concat(gw," .end-dump")),s=Number(t.querySelector("#".concat(gw," input")).value);this._addEventListener(a,"click",this.getDumpButtonClickHandler.bind(this,a,c,s,"main","local"));let l=t.querySelector("#".concat(bw," .dump")),u=t.querySelector("#".concat(bw," .end-dump")),d=Number(t.querySelector("#".concat(bw," input")).value);this._addEventListener(l,"click",this.getDumpButtonClickHandler.bind(this,l,u,d,"auxiliary","local"));let h=t.querySelector("#".concat(vw," button"));this._addEventListener(h,"click",(()=>{let e=Number(t.querySelector("#".concat(vw," input")).value),{download:o,onDumpEnd:n}=this.dumpAudio("local",e);if(o)if(this.inactiveButton(h,yy),e>0)setTimeout((()=>{o(),this.activeButton(h,by)}),1e3*e);else{let e=t.querySelector("#".concat(vw," .end-dump"));this.activeButton(e),e.onclick=()=>{e.onclick=null,o(),null==n||n(),this.activeButton(h,by),this.inactiveButton(e)}}else this.addInfoToBanner(Tw,"Failed to dump, please check if the current user has started the audio")}));let p=t.querySelector("#dump-remote-video-hook-userid"),f=t.querySelector("#dump-remote-video-hook-duration"),m=t.querySelector("#dump-remote-video-hook-mediaType"),v=t.querySelector("#dump-remote-video-hook-button");v.onclick=()=>{let e=Number(f.value);if(e<1)return void this.addInfoToBanner(Tw,"duration at least 1s");let t=p.value;if(!t)return void this.addInfoToBanner(Tw,"please input user id");"*"===t&&this.inactiveButton(v);let o,n,r=m.value,i="remote_".concat(t,"_").concat("sub"===r?"auxiliary":r),a=i=>{if((i.userId===t||"*"===t)&&i.streamType===r){if(this.addInfoToBanner(Sw,"[".concat(i.userId,"_").concat(r,"] starting to dump video, duration: ").concat(e,"s")),({download:o,onDumpEnd:n}=this.dumpVideo("sub"===i.streamType?"auxiliary":i.streamType,"remote",e,i.userId)),!o)return;setTimeout((()=>{null==o||o(),null==n||n(),"*"!==t&&this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a)}),1e3*e)}};this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,a),this.addInfoToBanner(Sw,"[".concat(i,"] waiting to dump video from ").concat("*"===t?"all remote users":"user ".concat(t),", duration: ").concat(e,"s"))}}synchronizeLog(){this._core.loggerManager.getQueue().forEach((e=>{this.updateLog(e)}))}isSupportDumpVideo(){return!(!this._core.rtcDectection.IS_INSERTABLE_STREAM_SUPPORTED&&!this._core.rtcDectection.IS_SCRIPT_TRANSFORM_SUPPORTED)||(this.addInfoToBanner(Tw,"Current browser does not support dumping video"),!1)}_addEventListener(e,t,o,n){e&&(e.addEventListener(t,o,n),this.eventMap.set(e,{type:t,listener:o}))}_removeEventListener(){this.eventMap.forEach(((e,t)=>{let{type:o,listener:n}=e;t&&t.removeEventListener(o,n)})),this.eventMap.clear(),this._switchNode&&(this._switchNode.onmousedown=null,this._switchNode.ontouchmove=null,this._switchNode.ontouchstart=null,this._switchNode.ontouchend=null)}closeDialog(){this.uninstallEvents(),this._removeEventListener(),this._dialogNode&&(document.body.removeChild(this._dialogNode),this._dialogNode=null)}updateLog(e){var t;this._logList.push(e);let o=document.createElement("div");switch(o.classList.add(lw),e.level){case 4:o.classList.add(pw);break;case 2:o.classList.add(dw);break;case 3:o.classList.add(hw);break;case 1:o.classList.add(uw)}o.textContent=e.log,"all"!==this._showLogType&&!o.classList.contains("".concat(lw,"_").concat(this._showLogType))&&(o.style.display="none"),null==(t=this._logContentNode)||t.appendChild(o),this.addHelper(o)}getDumpButtonClickHandler(e,t,o,n,r){if(!this.isSupportDumpVideo())return;let{download:i,onDumpEnd:a}=this.dumpVideo(n,r,o);if(i)return this.addInfoToBanner(Sw,"[".concat(r,"_").concat(n,"] starting to dump...")),this.inactiveButton(e,yy),void(o>0?setTimeout((()=>{i(),this.activeButton(e,by)}),1e3*o):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),i(),this.activeButton(e,by),this.inactiveButton(t)}));this.addInfoToBanner(Sw,"[".concat(r,"_").concat(n,"] waiting to dump..."));let c=i=>{let{track:a}=i;if(a.room===this._core.room&&a.streamType===n){this.addInfoToBanner(Sw,"[".concat(r,"_").concat(n,"] starting to dump")),"local"===r&&this._core.innerEmitter.off("104",c);let{download:i,onDumpEnd:a}=this.dumpVideo(n,r,o);if(!i)return;o>0?setTimeout((()=>{i(),this.activeButton(e,by)}),1e3*o):(this.activeButton(t),t.onclick=()=>{t.onclick=null,null==a||a(),i(),this.activeButton(e,by),this.inactiveButton(t)})}};c.bind(this),"local"===r&&this._core.innerEmitter.on("104",c),this.inactiveButton(e,yy)}onSwitchClick(){this._hasMove?this._hasMove=!1:this._showDialog?this.hideDialog():(this._isMobile&&(this._maskNode.style.display="block"),this._panelNode.style.display="block",this._switchNode.style.display="none",this._showDialog=!0,this.logContentGoBottom())}onTabClick(e){var t,o,n,r,i;let a=e.target;null==(t=this._tabNodes)||t.forEach((e=>{e.classList.remove(My)})),a.classList.add(My);let c=a.getAttribute("data-tab");"log"===c?(null==(n=null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(Wy)))||n.classList.add(Yy),this._logContentNode.style.display="block",this._networkContentNode.style.display="none",this._dumpContentNode.style.display="none",this.logContentGoBottom()):(null==(i=null==(r=this._dialogNode)?void 0:r.querySelector(".".concat(Wy)))||i.classList.remove(Yy),"network"===c?(this._networkContentNode.style.display="block",this._logContentNode.style.display="none",this._dumpContentNode.style.display="none"):"dump"===c&&(this._dumpContentNode.style.display="block",this._networkContentNode.style.display="none",this._logContentNode.style.display="none"))}onToptabClick(e){var t,o;let n=e.target;null==(t=this._toptabNodes)||t.forEach((e=>{e.classList.remove(My)})),n.classList.add(My),this._showLogType=n.getAttribute("data-type");let r=null==(o=this._logContentNode)?void 0:o.querySelectorAll(".".concat(lw)),i="".concat(lw,"_").concat(this._showLogType);r.forEach((e=>{e.classList.contains(i)||"all"===this._showLogType?e.style.display="block":e.style.display="none"})),this.logContentGoBottom()}onExportClick(){let e=this._logList.reduce(((e,t)=>"".concat(e+t.log,"\n")),""),t=new Blob([e],{type:"text/plain"}),o=document.createElement("a"),n=URL.createObjectURL(t);o.href=n;let r="trtc_".concat(void 0===this._core.room.sdkAppId?"EmptySdkAppId":this._core.room.sdkAppId,"_").concat(void 0===this._core.room.userId?"EmptyUserId":this._core.room.userId,"_").concat(this.formatStartDumpTime(+new Date),".log");o.download=r,o.style.display="none",document.body.appendChild(o),o.click(),URL.revokeObjectURL(n),document.body.removeChild(o),this.addInfoToBanner(Sw,"Export success: The log file name is ".concat(r)),this._core.kvStatManager.addSuccessEvent({key:592703})}addInfoToBanner(e,t){var o;let n=null==(o=this._dialogNode)?void 0:o.querySelector(".".concat(iw)),r=document.createElement("div");r.classList.add(aw);let i=e===Sw?"🟩":e===Ew?"🟧":"🟥";r.innerText="".concat(i," [").concat(this.getCurrentTime(),"] ").concat(t),n.appendChild(r),n.scrollTop=n.scrollHeight}async onUploadClick(){var e;if(this.isUploading)return;this.isUploading=!0;let t=null==(e=this._dialogNode)?void 0:e.querySelector("#trtc_upload");t.innerText="Uploading...",null==t||t.classList.add(".disable");let o=this._logList.reduce(((e,t)=>"".concat(e+t.log,"\n")),""),n=new Blob([o],{type:"text/plain"}),r=new FormData;r.append("file",n,"trtc.log"),r.append("sdkAppId","".concat(this._core.room.sdkAppId||"EmptySdkAppId")),r.append("userId","".concat(this._core.room.userId||"EmptyUserId")),fetch("https://service.trtc.qcloud.com/api/uploadLogFile",{method:"POST",body:r}).then((e=>e.json())).then((e=>{this.addInfoToBanner(e.type,e.message_en||"Upload Failed: Please use local export"),this.isUploading=!1,this._log.info(e.message_en),this._core.kvStatManager.addSuccessEvent({key:592704})})).catch((()=>{this.addInfoToBanner(Tw,"Upload Failed: Please use local export"),this._log.info("Upload Failed: Please use local export"),this._core.kvStatManager.addFailedEvent({key:592704})})).finally((()=>{t.innerText=ky,null==t||t.classList.remove(".disable"),this.isUploading=!1}))}onHideClick(){this.hideDialog()}onMaskClick(){this.hideDialog()}hideDialog(){this._isMobile&&(this._maskNode.style.display="none"),this._panelNode.style.display="none",this._switchNode.style.display="block",this._showDialog=!1}onBackTopClick(){var e,t;null==(t=null==(e=this._dialogNode)?void 0:e.querySelector(".".concat(Wy)))||t.scrollTo(0,0)}onGoBottomClick(){this.logContentGoBottom()}onClearLogClick(){this._logList=[],this._logContentNode&&(this._logContentNode.innerHTML="")}logContentGoBottom(){var e;let t=null==(e=this._dialogNode)?void 0:e.querySelector(".".concat(Wy));null==t||t.scrollTo(0,null==t?void 0:t.scrollHeight)}onMouseDown(e){e.preventDefault(),this.switchPos.startX=e.pageX,this.switchPos.startY=e.pageY,document.onmousemove=this.onMouseMove.bind(this),document.onmouseup=this.onMouseUp.bind(this)}onMouseMove(e){e.cancelable&&e.preventDefault(),this._hasMove=!0;let t=this.switchPos.x-(e.pageX-this.switchPos.startX),o=this.switchPos.y-(e.pageY-this.switchPos.startY);[t,o]=this.getSafeAreaXY(t,o),this._switchNode.style.right="".concat(t,"px"),this._switchNode.style.bottom="".concat(o,"px"),this.switchPos.endX=t,this.switchPos.endY=o}onMouseUp(){this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY,document.onmousemove=null,document.onmouseup=null}onTouchStart(e){this.switchPos.startX=e.touches[0].pageX,this.switchPos.startY=e.touches[0].pageY,this.switchPos.isTouchEnd=!1}onTouchEnd(){this.switchPos.isTouchEnd&&(this.switchPos.startX=0,this.switchPos.startY=0,this.switchPos.isTouchEnd=!1,this.switchPos.x=this.switchPos.endX,this.switchPos.y=this.switchPos.endY)}onTouchMove(e){if(e.touches.length<=0)return;let t=e.touches[0].pageX-this.switchPos.startX,o=e.touches[0].pageY-this.switchPos.startY,n=Math.floor(this.switchPos.x-t),r=Math.floor(this.switchPos.y-o);[n,r]=this.getSafeAreaXY(n,r),this._switchNode.style.right="".concat(n,"px"),this._switchNode.style.bottom="".concat(r,"px"),this.switchPos.endX=n,this.switchPos.endY=r,this.switchPos.isTouchEnd=!0,e.cancelable&&e.preventDefault()}getSafeAreaXY(e,t){let o=Math.max(document.documentElement.offsetWidth,window.innerWidth),n=Math.max(document.documentElement.offsetHeight,window.innerHeight);return e+this._switchNode.offsetWidth>o&&(e=o-this._switchNode.offsetWidth),t+this._switchNode.offsetHeight>n&&(t=n-this._switchNode.offsetHeight),e<0&&(e=0),t<20&&(t=20),[e,t]}hitTest(e){return e===this._core.room}installEvents(){this._core.innerEmitter.on("264",this.handleLog,this),this._core.innerEmitter.on("53",this.handleLeaveSuccess,this),this._core.innerEmitter.on("27",this.handleJoinSuccess,this),this._core.trtc.on(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.on(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.on("dump",this.handleDumpFromScriptTransform,this)}handleDumpFromScriptTransform(e){if(!e.isAudio)if(e.userId){let t=this.dumpRemoteVideoMap["".concat(e.userId,"-").concat(e.streamType)];t&&(t.data.push(e.data),t.duration>0&&Date.now()-t.startTimestamp>1e3*t.duration&&t.onDumpEnd())}else{let t="main"===e.streamType?"main":"sub",o=this.dumpLocalVideoMap[t];o&&(o.data.push(e.data),o.duration>0&&Date.now()-o.startTimestamp>1e3*o.duration&&o.onDumpEnd())}}uninstallEvents(){this._core.innerEmitter.off("264",this.handleLog,this),this._core.innerEmitter.off("53",this.handleLeaveSuccess,this),this._core.innerEmitter.off("27",this.handleJoinSuccess,this),this._core.trtc.off(this._core.TRTC.EVENT.STATISTICS,this.handleStatistics,this),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_AVAILABLE,this.handleRemoteAudioAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_AUDIO_UNAVAILABLE,this.handleRemoteAudioUnavailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_AVAILABLE,this.handleRemoteVideoAvailable),this._core.trtc.off(this._core.TRTC.EVENT.REMOTE_VIDEO_UNAVAILABLE,this.handleRemoteVideoUnavailable),this._core.room.off("dump",this.handleDumpFromScriptTransform,this)}inactiveButton(e,t){e.disabled=!0,t&&(e.innerText=t)}activeButton(e,t){e.disabled=!1,t&&(e.innerText=t)}handleLog(e){this.updateLog(e.log)}addHelper(e){let t=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g,o=By,n=e.innerText;n=n.split("\n").map((e=>{if((e=e.replace(/</g,"<").replace(/>/g,">")).includes("failed"))return e.includes("on autoplay-failed")?e:"<span class='red' style=\"background:red; color:#fff;\">".concat(e,"</span>");if(e.includes("clientIp:")){let o=e.match(t);return null==o||o.forEach((t=>{e=e.replace(t,'<a href="javascript:void(0);" target=""><span class=\'ip\' style="background:#e1dfdf">'.concat(t,"</span></a>"))})),e}return e.includes("URL of current page")&&(e=e.replace(/URL of current page: (.+)/,'URL of current page: <a href="$1">$1</a>')),e})).join("\n"),o.forEach((t=>{if(e.innerText.includes(t)){let o="";o="function"==typeof Ny[t].tips?Ny[t].tips(e.innerText):Ny[t].tips,n=n.replace(new RegExp("".concat(t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(">",">").replace(">","<")),"gi"),'<span class="'.concat(yw,'" style="background:').concat(Ny[t].color||"#e1dfdf","; color: ").concat(Ny[t].textColor||"#000",'">').concat(t,'\n <span class="tooltiptext tooltip-top">').concat(o,"</span>\n </span>"))}})),e.innerHTML=n}getCurrentTime(){let e=new Date,t=this.pad(e.getHours()),o=this.pad(e.getMinutes()),n=this.pad(e.getSeconds());return"".concat(t,":").concat(o,":").concat(n)}dumpVideo(e,t,o,n){let r,i=Date.now(),a=this.formatStartDumpTime(i),c=[],s="".concat(t,"_").concat(n,"_").concat(e);if("local"===t){if(!this.hasLocalTrack(e,"video"))return{};r=()=>{delete this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]},this.dumpLocalVideoMap["auxiliary"===e?"sub":"main"]={startTimestamp:i,data:c,duration:o,onDumpEnd:r}}if("remote"===t&&n){if(r=()=>{delete this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]},this.dumpRemoteVideoMap["".concat(n,"-").concat(e)])return this.addInfoToBanner(Ew,"[".concat(s,"] dump already exists.")),{};this.dumpRemoteVideoMap["".concat(n,"-").concat(e)]={startTimestamp:i,data:c,duration:o,onDumpEnd:r}}return{download:()=>{if(0===c.length)return void this.addInfoToBanner(Tw,"[".concat(s,"] dump failed. Reason: data is empty"));let o;"main"===e?o="video":"auxiliary"===e&&(o="screen");let r=URL.createObjectURL(new Blob(c)),i=document.createElement("a"),l="local"===t?"local_".concat(o,"_").concat(a,".h264"):"remote-".concat(n,"_").concat(o,"_").concat(a,".h264");i.href=r,i.download=l,i.style.display="none",document.body.appendChild(i),i.click(),URL.revokeObjectURL(r),i.remove(),this.addInfoToBanner(Sw,"[".concat(s,"] dump success. File name is: ").concat(l))},onDumpEnd:r}}hasLocalTrack(e,t){for(let o of this._core.room.localTracks)if(o.streamType===e&&o.kind===t)return!0;return!1}dumpAudio(e,t,o){var n,r,i;let a=null,c=[],s=[],l=[],u=new AbortController,d=Date.now(),h=this.formatStartDumpTime(d);function p(e){let{data:t}=e;l[0]=l[0]?l[0].concat(t):[t]}if("local"===e){if(!this._core.room.audioManager.hasAudioTrack)return{};null!=(n=this._core.room.audioManager._localAudioPipline)&&n.source.node&&(this._core.trtc.on(fy,p),s.push("local_mic_".concat(h))),null!=(r=this._core.room.audioManager._localAudioPipline)&&r.denoiser.node&&(c.push(this._core.room.audioManager._localAudioPipline.denoiser.node),s.push("local_mic_processed_".concat(h))),this._core.room.audioManager.mixWeight>1&&(c.push(this._core.room.audioManager.audioContext.createMediaStreamSource(this._core.room.audioManager._localAudioPipline.stream)),s.push("local_mix_".concat(h)))}else if("remote"===e&&void 0!==o){let e=null==(i=this._core.room.remotePublishedUserMap.get(o))?void 0:i.remoteAudioTrack;if(null==e||!e.mediaTrack)return{};let t=this._core.createAudioNode(e.mediaTrack);c.push(t),s.push("remote_".concat(o,"_").concat(h))}let f=()=>{for(let e=0;e<s.length;e++){let t=URL.createObjectURL(new Blob(l[e])),o=document.createElement("a");o.href=t,o.download="".concat(s[e],".pcm"),o.style.display="none",document.body.appendChild(o),o.click(),URL.revokeObjectURL(t),o.remove(),this.addInfoToBanner(Sw,"Dump success, file name is: ".concat(s[e]))}this._core.trtc.off(fy,p),a&&clearTimeout(a),u.abort("download")};return t>0&&(a=Number(setTimeout((()=>{u.abort("timeout")}),1e3*t))),c.length>0&&this._core.startGetPCM(c).then((t=>t.pipeTo(new WritableStream({write(t){t.forEach(((t,o)=>{l[o="local"===e?o+1:o]=l[o]?l[o].concat(t[0]):[t[0]]}))}}),u).catch((()=>f)))),{download:f,onDumpEnd:()=>{u.abort("timeout")}}}formatStartDumpTime(e){let t=new Date(e),o=t.getFullYear(),n=this.pad(t.getMonth()+1),r=this.pad(t.getDate()),i=this.pad(t.getHours()),a=this.pad(t.getMinutes()),c=this.pad(t.getSeconds()),s=-t.getTimezoneOffset(),l=Math.floor(Math.abs(s)/60),u=Math.abs(s)%60,d=s>=0?"+":"-";return"".concat(o,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(a,":").concat(c).concat(d).concat(this.pad(l),":").concat(this.pad(u))}};return ly([hy(300,(()=>"export"))],Lw.prototype,"onExportClick",1),ly([hy(300,(()=>"upload"))],Lw.prototype,"onUploadClick",1),Lw}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mediapipe/selfie_segmentation",
|
|
3
|
+
"version": "0.1.1632777926",
|
|
4
|
+
"description": "Mediapipe Selfie Segmentation Solution",
|
|
5
|
+
"main": "selfie_segmentation.js",
|
|
6
|
+
"module": "selfie_segmentation.js",
|
|
7
|
+
"jsdelivr": "selfie_segmentation.js",
|
|
8
|
+
"unpkg": "selfie_segmentation.js",
|
|
9
|
+
"types": "index.d.ts",
|
|
10
|
+
"author": "mhays@google.com",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"homepage": "https://google.github.io/mediapipe/solutions/selfie_segmentation",
|
|
13
|
+
"keywords": [ "AR", "ML", "Augmented" ],
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
},
|
|
21
|
+
"browser": {
|
|
22
|
+
"node-fetch": false,
|
|
23
|
+
"util": false,
|
|
24
|
+
"crypto": false
|
|
25
|
+
},
|
|
26
|
+
"sideEffects" : []
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
package/assets/videodec.wasm
CHANGED
|
Binary file
|