@byteplus/rtc 4.58.3 → 4.58.5

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Copyright (c) 2023 The BytePlusRTC project authors. All Rights Reserved.
2
+ * Copyright (c) 2024 The BytePlusRTC project authors. All Rights Reserved.
3
3
  * @brief BytePlusRTC Advance API
4
- * version: 4.58.0
4
+ * version: 4.58.5
5
5
  */
6
6
  !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math===Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},o=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=o,s=Function.prototype,u=s.apply,c=s.call,l="object"==typeof Reflect&&Reflect.apply||(a?c.bind(u):function(){return c.apply(u,arguments)}),f=o,h=Function.prototype,d=h.call,p=f&&h.bind.bind(d,d),v=f?p:function(t){return function(){return d.apply(t,arguments)}},_=v,g=_({}.toString),y=_("".slice),m=function(t){return y(g(t),8,-1)},b=m,w=v,k=function(t){if("Function"===b(t))return w(t)},S="object"==typeof document&&document.all,x={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},E=x.all,O=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},A={},T=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=o,R=Function.prototype.call,I=C?R.bind(R):function(){return R.apply(R,arguments)},B={},L={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,z=M&&!L.call({1:2},1);B.f=z?function(t){var e=M(this,t);return!!e&&e.enumerable}:L;var P,N,j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=i,F=m,U=Object,K=v("".split),G=D((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===F(t)?K(t,""):U(t)}:U,Z=function(t){return null==t},H=Z,W=TypeError,V=function(t){if(H(t))throw W("Can't call method on "+t);return t},Y=G,J=V,X=function(t){return Y(J(t))},q=O,Q=x.all,$=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:q(t)||t===Q}:function(t){return"object"==typeof t?null!==t:q(t)},tt={},et=tt,nt=r,rt=O,it=function(t){return rt(t)?t:void 0},ot=function(t,e){return arguments.length<2?it(et[t])||it(nt[t]):et[t]&&et[t][e]||nt[t]&&nt[t][e]},at=v({}.isPrototypeOf),st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=r,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&&lt.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(N=(P=dt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!N&&ct&&(!(P=ct.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ct.match(/Chrome\/(\d+)/))&&(N=+P[1]);var pt=N,vt=pt,_t=i,gt=r.String,yt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),mt=yt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,wt=O,kt=at,St=Object,xt=mt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return wt(e)&&kt(e.prototype,St(t))},Et=String,Ot=function(t){try{return Et(t)}catch(e){return"Object"}},At=O,Tt=Ot,Ct=TypeError,Rt=function(t){if(At(t))return t;throw Ct(Tt(t)+" is not a function")},It=Rt,Bt=Z,Lt=function(t,e){var n=t[e];return Bt(n)?void 0:It(n)},Mt=I,zt=O,Pt=$,Nt=TypeError,jt={exports:{}},Dt=r,Ft=Object.defineProperty,Ut=function(t,e){try{Ft(Dt,t,{value:e,configurable:!0,writable:!0})}catch(n){Dt[t]=e}return e},Kt="__core-js_shared__",Gt=r[Kt]||Ut(Kt,{}),Zt=Gt;(jt.exports=function(t,e){return Zt[t]||(Zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=jt.exports,Wt=V,Vt=Object,Yt=function(t){return Vt(Wt(t))},Jt=Yt,Xt=v({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Xt(Jt(t),e)},Qt=v,$t=0,te=Math.random(),ee=Qt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++$t+te,36)},re=Ht,ie=qt,oe=ne,ae=yt,se=mt,ue=r.Symbol,ce=re("wks"),le=se?ue.for||ue:ue&&ue.withoutSetter||oe,fe=function(t){return ie(ce,t)||(ce[t]=ae&&ie(ue,t)?ue[t]:le("Symbol."+t)),ce[t]},he=I,de=$,pe=xt,ve=Lt,_e=function(t,e){var n,r;if("string"===e&&zt(n=t.toString)&&!Pt(r=Mt(n,t)))return r;if(zt(n=t.valueOf)&&!Pt(r=Mt(n,t)))return r;if("string"!==e&&zt(n=t.toString)&&!Pt(r=Mt(n,t)))return r;throw Nt("Can't convert object to primitive value")},ge=TypeError,ye=fe("toPrimitive"),me=function(t,e){if(!de(t)||pe(t))return t;var n,r=ve(t,ye);if(r){if(void 0===e&&(e="default"),n=he(r,t,e),!de(n)||pe(n))return n;throw ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),_e(t,e)},be=xt,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=$,Se=r.document,xe=ke(Se)&&ke(Se.createElement),Ee=function(t){return xe?Se.createElement(t):{}},Oe=Ee,Ae=!T&&!i((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Te=T,Ce=I,Re=B,Ie=j,Be=X,Le=we,Me=qt,ze=Ae,Pe=Object.getOwnPropertyDescriptor;A.f=Te?Pe:function(t,e){if(t=Be(t),e=Le(e),ze)try{return Pe(t,e)}catch(n){}if(Me(t,e))return Ie(!Ce(Re.f,t,e),t[e])};var Ne=i,je=O,De=/#|\.prototype\./,Fe=function(t,e){var n=Ke[Ue(t)];return n===Ze||n!==Ge&&(je(e)?Ne(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},Ke=Fe.data={},Ge=Fe.NATIVE="N",Ze=Fe.POLYFILL="P",He=Fe,We=Rt,Ve=o,Ye=k(k.bind),Je=function(t,e){return We(t),void 0===e?t:Ve?Ye(t,e):function(){return t.apply(e,arguments)}},Xe={},qe=T&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=$,$e=String,tn=TypeError,en=function(t){if(Qe(t))return t;throw tn($e(t)+" is not an object")},nn=T,rn=Ae,on=qe,an=en,sn=we,un=TypeError,cn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,fn="enumerable",hn="configurable",dn="writable";Xe.f=nn?on?function(t,e,n){if(an(t),e=sn(e),an(n),"function"==typeof t&&"prototype"===e&&"value"in n&&dn in n&&!n[dn]){var r=ln(t,e);r&&r[dn]&&(t[e]=n.value,n={configurable:hn in n?n[hn]:r[hn],enumerable:fn in n?n[fn]:r[fn],writable:!1})}return cn(t,e,n)}:cn:function(t,e,n){if(an(t),e=sn(e),an(n),rn)try{return cn(t,e,n)}catch(r){}if("get"in n||"set"in n)throw un("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var pn=Xe,vn=j,_n=T?function(t,e,n){return pn.f(t,e,vn(1,n))}:function(t,e,n){return t[e]=n,t},gn=r,yn=l,mn=k,bn=O,wn=A.f,kn=He,Sn=tt,xn=Je,En=_n,On=qt,An=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return yn(t,this,arguments)};return e.prototype=t.prototype,e},Tn=function(t,e){var n,r,i,o,a,s,u,c,l,f=t.target,h=t.global,d=t.stat,p=t.proto,v=h?gn:d?gn[f]:(gn[f]||{}).prototype,_=h?Sn:Sn[f]||En(Sn,f,{})[f],g=_.prototype;for(o in e)r=!(n=kn(h?o:f+(d?".":"#")+o,t.forced))&&v&&On(v,o),s=_[o],r&&(u=t.dontCallGetSet?(l=wn(v,o))&&l.value:v[o]),a=r&&u?u:e[o],r&&typeof s==typeof a||(c=t.bind&&r?xn(a,gn):t.wrap&&r?An(a):p&&bn(a)?mn(a):a,(t.sham||a&&a.sham||s&&s.sham)&&En(c,"sham",!0),En(_,o,c),p&&(On(Sn,i=f+"Prototype")||En(Sn,i,{}),En(Sn[i],o,a),t.real&&g&&(n||!g[o])&&En(g,o,a)))},Cn=m,Rn=Array.isArray||function(t){return"Array"===Cn(t)},In=Math.ceil,Bn=Math.floor,Ln=Math.trunc||function(t){var e=+t;return(e>0?Bn:In)(e)},Mn=function(t){var e=+t;return e!=e||0===e?0:Ln(e)},zn=Mn,Pn=Math.min,Nn=function(t){return t>0?Pn(zn(t),9007199254740991):0},jn=Nn,Dn=function(t){return jn(t.length)},Fn=TypeError,Un=function(t){if(t>9007199254740991)throw Fn("Maximum allowed index exceeded");return t},Kn=we,Gn=Xe,Zn=j,Hn=function(t,e,n){var r=Kn(e);r in t?Gn.f(t,r,Zn(0,n)):t[r]=n},Wn={};Wn[fe("toStringTag")]="z";var Vn="[object z]"===String(Wn),Yn=Vn,Jn=O,Xn=m,qn=fe("toStringTag"),Qn=Object,$n="Arguments"===Xn(function(){return arguments}()),tr=Yn?Xn:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Qn(t),qn))?n:$n?Xn(e):"Object"===(r=Xn(e))&&Jn(e.callee)?"Arguments":r},er=O,nr=Gt,rr=v(Function.toString);er(nr.inspectSource)||(nr.inspectSource=function(t){return rr(t)});var ir=nr.inspectSource,or=v,ar=i,sr=O,ur=tr,cr=ir,lr=function(){},fr=[],hr=ot("Reflect","construct"),dr=/^\s*(?:class|function)\b/,pr=or(dr.exec),vr=!dr.exec(lr),_r=function(t){if(!sr(t))return!1;try{return hr(lr,fr,t),!0}catch(e){return!1}},gr=function(t){if(!sr(t))return!1;switch(ur(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vr||!!pr(dr,cr(t))}catch(e){return!0}};gr.sham=!0;var yr=!hr||ar((function(){var t;return _r(_r.call)||!_r(Object)||!_r((function(){t=!0}))||t}))?gr:_r,mr=Rn,br=yr,wr=$,kr=fe("species"),Sr=Array,xr=function(t){var e;return mr(t)&&(e=t.constructor,(br(e)&&(e===Sr||mr(e.prototype))||wr(e)&&null===(e=e[kr]))&&(e=void 0)),void 0===e?Sr:e},Er=function(t,e){return new(xr(t))(0===e?0:e)},Or=i,Ar=pt,Tr=fe("species"),Cr=function(t){return Ar>=51||!Or((function(){var e=[];return(e.constructor={})[Tr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rr=Tn,Ir=i,Br=Rn,Lr=$,Mr=Yt,zr=Dn,Pr=Un,Nr=Hn,jr=Er,Dr=Cr,Fr=pt,Ur=fe("isConcatSpreadable"),Kr=Fr>=51||!Ir((function(){var t=[];return t[Ur]=!1,t.concat()[0]!==t})),Gr=function(t){if(!Lr(t))return!1;var e=t[Ur];return void 0!==e?!!e:Br(t)};Rr({target:"Array",proto:!0,arity:1,forced:!Kr||!Dr("concat")},{concat:function(t){var e,n,r,i,o,a=Mr(this),s=jr(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Gr(o=-1===e?a:arguments[e]))for(i=zr(o),Pr(u+i),n=0;n<i;n++,u++)n in o&&Nr(s,u,o[n]);else Pr(u+1),Nr(s,u++,o);return s.length=u,s}});var Zr=tr,Hr=String,Wr=function(t){if("Symbol"===Zr(t))throw TypeError("Cannot convert a Symbol value to a string");return Hr(t)},Vr={},Yr=Mn,Jr=Math.max,Xr=Math.min,qr=function(t,e){var n=Yr(t);return n<0?Jr(n+e,0):Xr(n,e)},Qr=X,$r=qr,ti=Dn,ei=function(t){return function(e,n,r){var i,o=Qr(e),a=ti(o),s=$r(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},ni={includes:ei(!0),indexOf:ei(!1)},ri={},ii=qt,oi=X,ai=ni.indexOf,si=ri,ui=v([].push),ci=function(t,e){var n,r=oi(t),i=0,o=[];for(n in r)!ii(si,n)&&ii(r,n)&&ui(o,n);for(;e.length>i;)ii(r,n=e[i++])&&(~ai(o,n)||ui(o,n));return o},li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fi=ci,hi=li,di=Object.keys||function(t){return fi(t,hi)},pi=T,vi=qe,_i=Xe,gi=en,yi=X,mi=di;Vr.f=pi&&!vi?Object.defineProperties:function(t,e){gi(t);for(var n,r=yi(e),i=mi(e),o=i.length,a=0;o>a;)_i.f(t,n=i[a++],r[n]);return t};var bi,wi=ot("document","documentElement"),ki=ne,Si=Ht("keys"),xi=function(t){return Si[t]||(Si[t]=ki(t))},Ei=en,Oi=Vr,Ai=li,Ti=ri,Ci=wi,Ri=Ee,Ii="prototype",Bi="script",Li=xi("IE_PROTO"),Mi=function(){},zi=function(t){return"<"+Bi+">"+t+"</"+Bi+">"},Pi=function(t){t.write(zi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ni=function(){try{bi=new ActiveXObject("htmlfile")}catch(i){}var t,e,n;Ni="undefined"!=typeof document?document.domain&&bi?Pi(bi):(e=Ri("iframe"),n="java"+Bi+":",e.style.display="none",Ci.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(zi("document.F=Object")),t.close(),t.F):Pi(bi);for(var r=Ai.length;r--;)delete Ni[Ii][Ai[r]];return Ni()};Ti[Li]=!0;var ji=Object.create||function(t,e){var n;return null!==t?(Mi[Ii]=Ei(t),n=new Mi,Mi[Ii]=null,n[Li]=t):n=Ni(),void 0===e?n:Oi.f(n,e)},Di={},Fi=ci,Ui=li.concat("length","prototype");Di.f=Object.getOwnPropertyNames||function(t){return Fi(t,Ui)};var Ki={},Gi=qr,Zi=Dn,Hi=Hn,Wi=Array,Vi=Math.max,Yi=m,Ji=X,Xi=Di.f,qi=function(t,e,n){for(var r=Zi(t),i=Gi(e,r),o=Gi(void 0===n?r:n,r),a=Wi(Vi(o-i,0)),s=0;i<o;i++,s++)Hi(a,s,t[i]);return a.length=s,a},Qi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ki.f=function(t){return Qi&&"Window"===Yi(t)?function(t){try{return Xi(t)}catch(e){return qi(Qi)}}(t):Xi(Ji(t))};var $i={};$i.f=Object.getOwnPropertySymbols;var to=_n,eo=function(t,e,n,r){return r&&r.enumerable?t[e]=n:to(t,e,n),t},no=Xe,ro=function(t,e,n){return no.f(t,e,n)},io={},oo=fe;io.f=oo;var ao,so,uo,co=tt,lo=qt,fo=io,ho=Xe.f,po=function(t){var e=co.Symbol||(co.Symbol={});lo(e,t)||ho(e,t,{value:fo.f(t)})},vo=I,_o=ot,go=fe,yo=eo,mo=function(){var t=_o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=go("toPrimitive");e&&!e[r]&&yo(e,r,(function(t){return vo(n,this)}),{arity:1})},bo=tr,wo=Vn?{}.toString:function(){return"[object "+bo(this)+"]"},ko=Vn,So=Xe.f,xo=_n,Eo=qt,Oo=wo,Ao=fe("toStringTag"),To=function(t,e,n,r){if(t){var i=n?t:t.prototype;Eo(i,Ao)||So(i,Ao,{configurable:!0,value:e}),r&&!ko&&xo(i,"toString",Oo)}},Co=O,Ro=r.WeakMap,Io=Co(Ro)&&/native code/.test(String(Ro)),Bo=r,Lo=$,Mo=_n,zo=qt,Po=Gt,No=xi,jo=ri,Do="Object already initialized",Fo=Bo.TypeError,Uo=Bo.WeakMap;if(Io||Po.state){var Ko=Po.state||(Po.state=new Uo);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,ao=function(t,e){if(Ko.has(t))throw Fo(Do);return e.facade=t,Ko.set(t,e),e},so=function(t){return Ko.get(t)||{}},uo=function(t){return Ko.has(t)}}else{var Go=No("state");jo[Go]=!0,ao=function(t,e){if(zo(t,Go))throw Fo(Do);return e.facade=t,Mo(t,Go,e),e},so=function(t){return zo(t,Go)?t[Go]:{}},uo=function(t){return zo(t,Go)}}var Zo={set:ao,get:so,has:uo,enforce:function(t){return uo(t)?so(t):ao(t,{})},getterFor:function(t){return function(e){var n;if(!Lo(e)||(n=so(e)).type!==t)throw Fo("Incompatible receiver, "+t+" required");return n}}},Ho=Je,Wo=G,Vo=Yt,Yo=Dn,Jo=Er,Xo=v([].push),qo=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,o=6===t,a=7===t,s=5===t||o;return function(u,c,l,f){for(var h,d,p=Vo(u),v=Wo(p),_=Ho(c,l),g=Yo(v),y=0,m=f||Jo,b=e?m(u,g):n||a?m(u,0):void 0;g>y;y++)if((s||y in v)&&(d=_(h=v[y],y,p),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:Xo(b,h)}else switch(t){case 4:return!1;case 7:Xo(b,h)}return o?-1:r||i?i:b}},Qo={forEach:qo(0),map:qo(1),filter:qo(2),some:qo(3),every:qo(4),find:qo(5),findIndex:qo(6),filterReject:qo(7)},$o=Tn,ta=r,ea=I,na=v,ra=T,ia=yt,oa=i,aa=qt,sa=at,ua=en,ca=X,la=we,fa=Wr,ha=j,da=ji,pa=di,va=Di,_a=Ki,ga=$i,ya=A,ma=Xe,ba=Vr,wa=B,ka=eo,Sa=ro,xa=Ht,Ea=ri,Oa=ne,Aa=fe,Ta=io,Ca=po,Ra=mo,Ia=To,Ba=Zo,La=Qo.forEach,Ma=xi("hidden"),za="Symbol",Pa="prototype",Na=Ba.set,ja=Ba.getterFor(za),Da=Object[Pa],Fa=ta.Symbol,Ua=Fa&&Fa[Pa],Ka=ta.TypeError,Ga=ta.QObject,Za=ya.f,Ha=ma.f,Wa=_a.f,Va=wa.f,Ya=na([].push),Ja=xa("symbols"),Xa=xa("op-symbols"),qa=xa("wks"),Qa=!Ga||!Ga[Pa]||!Ga[Pa].findChild,$a=ra&&oa((function(){return 7!==da(Ha({},"a",{get:function(){return Ha(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Za(Da,e);r&&delete Da[e],Ha(t,e,n),r&&t!==Da&&Ha(Da,e,r)}:Ha,ts=function(t,e){var n=Ja[t]=da(Ua);return Na(n,{type:za,tag:t,description:e}),ra||(n.description=e),n},es=function(t,e,n){t===Da&&es(Xa,e,n),ua(t);var r=la(e);return ua(n),aa(Ja,r)?(n.enumerable?(aa(t,Ma)&&t[Ma][r]&&(t[Ma][r]=!1),n=da(n,{enumerable:ha(0,!1)})):(aa(t,Ma)||Ha(t,Ma,ha(1,{})),t[Ma][r]=!0),$a(t,r,n)):Ha(t,r,n)},ns=function(t,e){ua(t);var n=ca(e),r=pa(n).concat(as(n));return La(r,(function(e){ra&&!ea(rs,n,e)||es(t,e,n[e])})),t},rs=function(t){var e=la(t),n=ea(Va,this,e);return!(this===Da&&aa(Ja,e)&&!aa(Xa,e))&&(!(n||!aa(this,e)||!aa(Ja,e)||aa(this,Ma)&&this[Ma][e])||n)},is=function(t,e){var n=ca(t),r=la(e);if(n!==Da||!aa(Ja,r)||aa(Xa,r)){var i=Za(n,r);return!i||!aa(Ja,r)||aa(n,Ma)&&n[Ma][r]||(i.enumerable=!0),i}},os=function(t){var e=Wa(ca(t)),n=[];return La(e,(function(t){aa(Ja,t)||aa(Ea,t)||Ya(n,t)})),n},as=function(t){var e=t===Da,n=Wa(e?Xa:ca(t)),r=[];return La(n,(function(t){!aa(Ja,t)||e&&!aa(Da,t)||Ya(r,Ja[t])})),r};ia||(Fa=function(){if(sa(Ua,this))throw Ka("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?fa(arguments[0]):void 0,e=Oa(t),n=function(t){this===Da&&ea(n,Xa,t),aa(this,Ma)&&aa(this[Ma],e)&&(this[Ma][e]=!1),$a(this,e,ha(1,t))};return ra&&Qa&&$a(Da,e,{configurable:!0,set:n}),ts(e,t)},ka(Ua=Fa[Pa],"toString",(function(){return ja(this).tag})),ka(Fa,"withoutSetter",(function(t){return ts(Oa(t),t)})),wa.f=rs,ma.f=es,ba.f=ns,ya.f=is,va.f=_a.f=os,ga.f=as,Ta.f=function(t){return ts(Aa(t),t)},ra&&Sa(Ua,"description",{configurable:!0,get:function(){return ja(this).description}})),$o({global:!0,constructor:!0,wrap:!0,forced:!ia,sham:!ia},{Symbol:Fa}),La(pa(qa),(function(t){Ca(t)})),$o({target:za,stat:!0,forced:!ia},{useSetter:function(){Qa=!0},useSimple:function(){Qa=!1}}),$o({target:"Object",stat:!0,forced:!ia,sham:!ra},{create:function(t,e){return void 0===e?da(t):ns(da(t),e)},defineProperty:es,defineProperties:ns,getOwnPropertyDescriptor:is}),$o({target:"Object",stat:!0,forced:!ia},{getOwnPropertyNames:os}),Ra(),Ia(Fa,za),Ea[Ma]=!0;var ss=yt&&!!Symbol.for&&!!Symbol.keyFor,us=Tn,cs=ot,ls=qt,fs=Wr,hs=Ht,ds=ss,ps=hs("string-to-symbol-registry"),vs=hs("symbol-to-string-registry");us({target:"Symbol",stat:!0,forced:!ds},{for:function(t){var e=fs(t);if(ls(ps,e))return ps[e];var n=cs("Symbol")(e);return ps[e]=n,vs[n]=e,n}});var _s=Tn,gs=qt,ys=xt,ms=Ot,bs=ss,ws=Ht("symbol-to-string-registry");_s({target:"Symbol",stat:!0,forced:!bs},{keyFor:function(t){if(!ys(t))throw TypeError(ms(t)+" is not a symbol");if(gs(ws,t))return ws[t]}});var ks=v([].slice),Ss=Rn,xs=O,Es=m,Os=Wr,As=v([].push),Ts=Tn,Cs=ot,Rs=l,Is=I,Bs=v,Ls=i,Ms=O,zs=xt,Ps=ks,Ns=function(t){if(xs(t))return t;if(Ss(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?As(n,i):"number"!=typeof i&&"Number"!==Es(i)&&"String"!==Es(i)||As(n,Os(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Ss(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},js=yt,Ds=String,Fs=Cs("JSON","stringify"),Us=Bs(/./.exec),Ks=Bs("".charAt),Gs=Bs("".charCodeAt),Zs=Bs("".replace),Hs=Bs(1..toString),Ws=/[\uD800-\uDFFF]/g,Vs=/^[\uD800-\uDBFF]$/,Ys=/^[\uDC00-\uDFFF]$/,Js=!js||Ls((function(){var t=Cs("Symbol")("stringify detection");return"[null]"!==Fs([t])||"{}"!==Fs({a:t})||"{}"!==Fs(Object(t))})),Xs=Ls((function(){return'"\\udf06\\ud834"'!==Fs("\udf06\ud834")||'"\\udead"'!==Fs("\udead")})),qs=function(t,e){var n=Ps(arguments),r=Ns(e);if(Ms(r)||void 0!==t&&!zs(t))return n[1]=function(t,e){if(Ms(r)&&(e=Is(r,this,Ds(t),e)),!zs(e))return e},Rs(Fs,null,n)},Qs=function(t,e,n){var r=Ks(n,e-1),i=Ks(n,e+1);return Us(Vs,t)&&!Us(Ys,i)||Us(Ys,t)&&!Us(Vs,r)?"\\u"+Hs(Gs(t,0),16):t};Fs&&Ts({target:"JSON",stat:!0,arity:3,forced:Js||Xs},{stringify:function(t,e,n){var r=Ps(arguments),i=Rs(Js?qs:Fs,null,r);return Xs&&"string"==typeof i?Zs(i,Ws,Qs):i}});var $s=$i,tu=Yt;Tn({target:"Object",stat:!0,forced:!yt||i((function(){$s.f(1)}))},{getOwnPropertySymbols:function(t){var e=$s.f;return e?e(tu(t)):[]}}),po("asyncIterator"),po("hasInstance"),po("isConcatSpreadable"),po("iterator"),po("match"),po("matchAll"),po("replace"),po("search"),po("species"),po("split");var eu=mo;po("toPrimitive"),eu();var nu=ot,ru=To;po("toStringTag"),ru(nu("Symbol"),"Symbol"),po("unscopables"),To(r.JSON,"JSON",!0);var iu,ou,au,su=tt.Symbol,uu={},cu=T,lu=qt,fu=Function.prototype,hu=cu&&Object.getOwnPropertyDescriptor,du=lu(fu,"name"),pu={EXISTS:du,PROPER:du&&"something"===function(){}.name,CONFIGURABLE:du&&(!cu||cu&&hu(fu,"name").configurable)},vu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_u=qt,gu=O,yu=Yt,mu=vu,bu=xi("IE_PROTO"),wu=Object,ku=wu.prototype,Su=mu?wu.getPrototypeOf:function(t){var e=yu(t);if(_u(e,bu))return e[bu];var n=e.constructor;return gu(n)&&e instanceof n?n.prototype:e instanceof wu?ku:null},xu=i,Eu=O,Ou=$,Au=ji,Tu=Su,Cu=eo,Ru=fe("iterator"),Iu=!1;[].keys&&("next"in(au=[].keys())?(ou=Tu(Tu(au)))!==Object.prototype&&(iu=ou):Iu=!0);var Bu=!Ou(iu)||xu((function(){var t={};return iu[Ru].call(t)!==t}));Eu((iu=Bu?{}:Au(iu))[Ru])||Cu(iu,Ru,(function(){return this}));var Lu={IteratorPrototype:iu,BUGGY_SAFARI_ITERATORS:Iu},Mu=Lu.IteratorPrototype,zu=ji,Pu=j,Nu=To,ju=uu,Du=function(){return this},Fu=v,Uu=Rt,Ku=O,Gu=String,Zu=TypeError,Hu=function(t,e,n){try{return Fu(Uu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(r){}},Wu=en,Vu=function(t){if("object"==typeof t||Ku(t))return t;throw Zu("Can't set "+Gu(t)+" as a prototype")},Yu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Hu(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(r){}return function(n,r){return Wu(n),Vu(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ju=Tn,Xu=I,qu=pu,Qu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=zu(Mu,{next:Pu(+!r,n)}),Nu(t,i,!1,!0),ju[i]=Du,t},$u=Su,tc=To,ec=eo,nc=uu,rc=Lu,ic=qu.PROPER,oc=rc.BUGGY_SAFARI_ITERATORS,ac=fe("iterator"),sc="keys",uc="values",cc="entries",lc=function(){return this},fc=function(t,e,n,r,i,o,a){Qu(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!oc&&t in d)return d[t];switch(t){case sc:case uc:case cc:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[ac]||d["@@iterator"]||i&&d[i],v=!oc&&p||l(i),_="Array"===e&&d.entries||p;if(_&&(s=$u(_.call(new t)))!==Object.prototype&&s.next&&(tc(s,f,!0,!0),nc[f]=lc),ic&&i===uc&&p&&p.name!==uc&&(h=!0,v=function(){return Xu(p,this)}),i)if(u={values:l(uc),keys:o?v:l(sc),entries:l(cc)},a)for(c in u)(oc||h||!(c in d))&&ec(d,c,u[c]);else Ju({target:e,proto:!0,forced:oc||h},u);return a&&d[ac]!==v&&ec(d,ac,v,{name:i}),nc[e]=v,u},hc=function(t,e){return{value:t,done:e}},dc=X,pc=uu,vc=Zo;Xe.f;var _c=fc,gc=hc,yc="Array Iterator",mc=vc.set,bc=vc.getterFor(yc);_c(Array,"Array",(function(t,e){mc(this,{type:yc,target:dc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,gc(void 0,!0);switch(n){case"keys":return gc(r,!1);case"values":return gc(e[r],!1)}return gc([r,e[r]],!1)}),"values"),pc.Arguments=pc.Array;var wc={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},kc=r,Sc=tr,xc=_n,Ec=uu,Oc=fe("toStringTag");for(var Ac in wc){var Tc=kc[Ac],Cc=Tc&&Tc.prototype;Cc&&Sc(Cc)!==Oc&&xc(Cc,Oc,Ac),Ec[Ac]=Ec.Array}var Rc=su,Ic=fe,Bc=Xe.f,Lc=Ic("metadata"),Mc=Function.prototype;void 0===Mc[Lc]&&Bc(Mc,Lc,{value:null}),po("asyncDispose"),po("dispose"),po("metadata");var zc=Rc,Pc=v,Nc=ot("Symbol"),jc=Nc.keyFor,Dc=Pc(Nc.prototype.valueOf),Fc=Nc.isRegisteredSymbol||function(t){try{return void 0!==jc(Dc(t))}catch(e){return!1}};Tn({target:"Symbol",stat:!0},{isRegisteredSymbol:Fc});for(var Uc=Ht,Kc=ot,Gc=v,Zc=xt,Hc=fe,Wc=Kc("Symbol"),Vc=Wc.isWellKnownSymbol,Yc=Kc("Object","getOwnPropertyNames"),Jc=Gc(Wc.prototype.valueOf),Xc=Uc("wks"),qc=0,Qc=Yc(Wc),$c=Qc.length;qc<$c;qc++)try{var tl=Qc[qc];Zc(Wc[tl])&&Hc(tl)}catch(MC){}var el=function(t){if(Vc&&Vc(t))return!0;try{for(var e=Jc(t),n=0,r=Yc(Xc),i=r.length;n<i;n++)if(Xc[r[n]]==e)return!0}catch(MC){}return!1};Tn({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:el}),po("matcher"),po("observable"),Tn({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Fc}),Tn({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:el}),po("metadataKey"),po("patternMatch"),po("replaceAll");var nl=e(zc),rl=v,il=Mn,ol=Wr,al=V,sl=rl("".charAt),ul=rl("".charCodeAt),cl=rl("".slice),ll=function(t){return function(e,n){var r,i,o=ol(al(e)),a=il(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=ul(o,a))<55296||r>56319||a+1===s||(i=ul(o,a+1))<56320||i>57343?t?sl(o,a):r:t?cl(o,a,a+2):i-56320+(r-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)}.charAt,hl=Wr,dl=Zo,pl=fc,vl=hc,_l="String Iterator",gl=dl.set,yl=dl.getterFor(_l);pl(String,"String",(function(t){gl(this,{type:_l,string:hl(t),index:0})}),(function(){var t,e=yl(this),n=e.string,r=e.index;return r>=n.length?vl(void 0,!0):(t=fl(n,r),e.index+=t.length,vl(t,!1))}));var ml=e(io.f("iterator"));function bl(t){return(bl="function"==typeof nl&&"symbol"==typeof ml?function(t){return typeof t}:function(t){return t&&"function"==typeof nl&&t.constructor===nl&&t!==nl.prototype?"symbol":typeof t})(t)}var wl={exports:{}},kl=Tn,Sl=T,xl=Xe.f;kl({target:"Object",stat:!0,forced:Object.defineProperty!==xl,sham:!Sl},{defineProperty:xl});var El=tt.Object,Ol=wl.exports=function(t,e,n){return El.defineProperty(t,e,n)};El.defineProperty.sham&&(Ol.sham=!0);var Al=e(wl.exports);Tn({target:"Object",stat:!0,sham:!T},{create:ji});var Tl=tt.Object,Cl=function(t,e){return Tl.create(t,e)},Rl=e(Cl),Il=Yt,Bl=Su,Ll=vu;Tn({target:"Object",stat:!0,forced:i((function(){Bl(1)})),sham:!Ll},{getPrototypeOf:function(t){return Bl(Il(t))}});var Ml=e(tt.Object.getPrototypeOf),zl=i,Pl=function(t,e){var n=[][t];return!!n&&zl((function(){n.call(null,e||function(){return 1},1)}))},Nl=Qo.forEach,jl=Pl("forEach")?[].forEach:function(t){return Nl(this,t,arguments.length>1?arguments[1]:void 0)};Tn({target:"Array",proto:!0,forced:[].forEach!==jl},{forEach:jl});var Dl=tt,Fl=function(t){return Dl[t+"Prototype"]},Ul=Fl("Array").forEach,Kl=tr,Gl=qt,Zl=at,Hl=Ul,Wl=Array.prototype,Vl={DOMTokenList:!0,NodeList:!0},Yl=function(t){var e=t.forEach;return t===Wl||Zl(Wl,t)&&e===Wl.forEach||Gl(Vl,Kl(t))?Hl:e},Jl=e(Yl),Xl=T,ql=Rn,Ql=TypeError,$l=Object.getOwnPropertyDescriptor,tf=Xl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(MC){return MC instanceof TypeError}}()?function(t,e){if(ql(t)&&!$l(t,"length").writable)throw Ql("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ef=Yt,nf=Dn,rf=tf,of=Un;Tn({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(MC){return MC instanceof TypeError}}()},{push:function(t){var e=ef(this),n=nf(e),r=arguments.length;of(n+r);for(var i=0;i<r;i++)e[n]=arguments[i],n++;return rf(e,n),n}});var af=Fl("Array").push,sf=at,uf=af,cf=Array.prototype,lf=e((function(t){var e=t.push;return t===cf||sf(cf,t)&&e===cf.push?uf:e}));Tn({target:"Object",stat:!0},{setPrototypeOf:Yu});var ff=e(tt.Object.setPrototypeOf),hf=ot,df=Di,pf=$i,vf=en,_f=v([].concat),gf=hf("Reflect","ownKeys")||function(t){var e=df.f(vf(t)),n=pf.f;return n?_f(e,n(t)):e},yf=qt,mf=gf,bf=A,wf=Xe,kf=$,Sf=_n,xf=Error,Ef=v("".replace),Of=String(xf("zxcasd").stack),Af=/\n\s*at [^:]*:[^\n]*/,Tf=Af.test(Of),Cf=j,Rf=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Cf(1,7)),7!==t.stack)})),If=_n,Bf=function(t,e){if(Tf&&"string"==typeof t&&!xf.prepareStackTrace)for(;e--;)t=Ef(t,Af,"");return t},Lf=Rf,Mf=Error.captureStackTrace,zf=uu,Pf=fe("iterator"),Nf=Array.prototype,jf=function(t){return void 0!==t&&(zf.Array===t||Nf[Pf]===t)},Df=tr,Ff=Lt,Uf=Z,Kf=uu,Gf=fe("iterator"),Zf=function(t){if(!Uf(t))return Ff(t,Gf)||Ff(t,"@@iterator")||Kf[Df(t)]},Hf=I,Wf=Rt,Vf=en,Yf=Ot,Jf=Zf,Xf=TypeError,qf=function(t,e){var n=arguments.length<2?Jf(t):e;if(Wf(n))return Vf(Hf(n,t));throw Xf(Yf(t)+" is not iterable")},Qf=I,$f=en,th=Lt,eh=function(t,e,n){var r,i;$f(t);try{if(!(r=th(t,"return"))){if("throw"===e)throw n;return n}r=Qf(r,t)}catch(MC){i=!0,r=MC}if("throw"===e)throw n;if(i)throw r;return $f(r),n},nh=Je,rh=I,ih=en,oh=Ot,ah=jf,sh=Dn,uh=at,ch=qf,lh=Zf,fh=eh,hh=TypeError,dh=function(t,e){this.stopped=t,this.result=e},ph=dh.prototype,vh=function(t,e,n){var r,i,o,a,s,u,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=nh(e,l),_=function(t){return r&&fh(r,"normal",t),new dh(!0,t)},g=function(t){return f?(ih(t),p?v(t[0],t[1],_):v(t[0],t[1])):p?v(t,_):v(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(i=lh(t)))throw hh(oh(t)+" is not iterable");if(ah(i)){for(o=0,a=sh(t);a>o;o++)if((s=g(t[o]))&&uh(ph,s))return s;return new dh(!1)}r=ch(t,i)}for(u=h?t.next:r.next;!(c=rh(u,r)).done;){try{s=g(c.value)}catch(MC){fh(r,"throw",MC)}if("object"==typeof s&&s&&uh(ph,s))return s}return new dh(!1)},_h=Wr,gh=Tn,yh=at,mh=Su,bh=Yu,wh=function(t,e,n){for(var r=mf(e),i=wf.f,o=bf.f,a=0;a<r.length;a++){var s=r[a];yf(t,s)||n&&yf(n,s)||i(t,s,o(e,s))}},kh=ji,Sh=_n,xh=j,Eh=function(t,e){kf(e)&&"cause"in e&&Sf(t,"cause",e.cause)},Oh=function(t,e,n,r){Lf&&(Mf?Mf(t,e):If(t,"stack",Bf(n,r)))},Ah=vh,Th=function(t,e){return void 0===t?arguments.length<2?"":e:_h(t)},Ch=fe("toStringTag"),Rh=Error,Ih=[].push,Bh=function(t,e){var n,r=yh(Lh,this);bh?n=bh(Rh(),r?mh(this):Lh):(n=r?this:kh(Lh),Sh(n,Ch,"Error")),void 0!==e&&Sh(n,"message",Th(e)),Oh(n,Bh,n.stack,1),arguments.length>2&&Eh(n,arguments[2]);var i=[];return Ah(t,Ih,{that:i}),Sh(n,"errors",i),n};bh?bh(Bh,Rh):wh(Bh,Rh,{name:!0});var Lh=Bh.prototype=kh(Rh.prototype,{constructor:xh(1,Bh),message:xh(1,""),name:xh(1,"AggregateError")});gh({global:!0,constructor:!0,arity:2},{AggregateError:Bh});var Mh,zh,Ph,Nh,jh="process"===m(r.process),Dh=ot,Fh=ro,Uh=T,Kh=fe("species"),Gh=function(t){var e=Dh(t);Uh&&e&&!e[Kh]&&Fh(e,Kh,{configurable:!0,get:function(){return this}})},Zh=at,Hh=TypeError,Wh=function(t,e){if(Zh(e,t))return t;throw Hh("Incorrect invocation")},Vh=yr,Yh=Ot,Jh=TypeError,Xh=function(t){if(Vh(t))return t;throw Jh(Yh(t)+" is not a constructor")},qh=en,Qh=Xh,$h=Z,td=fe("species"),ed=function(t,e){var n,r=qh(t).constructor;return void 0===r||$h(n=qh(r)[td])?e:Qh(n)},nd=TypeError,rd=function(t,e){if(t<e)throw nd("Not enough arguments");return t},id=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),od=r,ad=l,sd=Je,ud=O,cd=qt,ld=i,fd=wi,hd=ks,dd=Ee,pd=rd,vd=id,_d=jh,gd=od.setImmediate,yd=od.clearImmediate,md=od.process,bd=od.Dispatch,wd=od.Function,kd=od.MessageChannel,Sd=od.String,xd=0,Ed={},Od="onreadystatechange";ld((function(){Mh=od.location}));var Ad=function(t){if(cd(Ed,t)){var e=Ed[t];delete Ed[t],e()}},Td=function(t){return function(){Ad(t)}},Cd=function(t){Ad(t.data)},Rd=function(t){od.postMessage(Sd(t),Mh.protocol+"//"+Mh.host)};gd&&yd||(gd=function(t){pd(arguments.length,1);var e=ud(t)?t:wd(t),n=hd(arguments,1);return Ed[++xd]=function(){ad(e,void 0,n)},zh(xd),xd},yd=function(t){delete Ed[t]},_d?zh=function(t){md.nextTick(Td(t))}:bd&&bd.now?zh=function(t){bd.now(Td(t))}:kd&&!vd?(Nh=(Ph=new kd).port2,Ph.port1.onmessage=Cd,zh=sd(Nh.postMessage,Nh)):od.addEventListener&&ud(od.postMessage)&&!od.importScripts&&Mh&&"file:"!==Mh.protocol&&!ld(Rd)?(zh=Rd,od.addEventListener("message",Cd,!1)):zh=Od in dd("script")?function(t){fd.appendChild(dd("script"))[Od]=function(){fd.removeChild(this),Ad(t)}}:function(t){setTimeout(Td(t),0)});var Id={set:gd,clear:yd},Bd=function(){this.head=null,this.tail=null};Bd.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ld,Md,zd,Pd,Nd,jd=Bd,Dd=/ipad|iphone|ipod/i.test(st)&&"undefined"!=typeof Pebble,Fd=/web0s(?!.*chrome)/i.test(st),Ud=r,Kd=Je,Gd=A.f,Zd=Id.set,Hd=jd,Wd=id,Vd=Dd,Yd=Fd,Jd=jh,Xd=Ud.MutationObserver||Ud.WebKitMutationObserver,qd=Ud.document,Qd=Ud.process,$d=Ud.Promise,tp=Gd(Ud,"queueMicrotask"),ep=tp&&tp.value;if(!ep){var np=new Hd,rp=function(){var t,e;for(Jd&&(t=Qd.domain)&&t.exit();e=np.get();)try{e()}catch(MC){throw np.head&&Ld(),MC}t&&t.enter()};Wd||Jd||Yd||!Xd||!qd?!Vd&&$d&&$d.resolve?((Pd=$d.resolve(void 0)).constructor=$d,Nd=Kd(Pd.then,Pd),Ld=function(){Nd(rp)}):Jd?Ld=function(){Qd.nextTick(rp)}:(Zd=Kd(Zd,Ud),Ld=function(){Zd(rp)}):(Md=!0,zd=qd.createTextNode(""),new Xd(rp).observe(zd,{characterData:!0}),Ld=function(){zd.data=Md=!Md}),ep=function(t){np.head||Ld(),np.add(t)}}var ip=ep,op=function(t){try{return{error:!1,value:t()}}catch(MC){return{error:!0,value:MC}}},ap=r.Promise,sp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,up=!sp&&!jh&&"object"==typeof window&&"object"==typeof document,cp=r,lp=ap,fp=O,hp=He,dp=ir,pp=fe,vp=up,_p=sp,gp=pt,yp=lp&&lp.prototype,mp=pp("species"),bp=!1,wp=fp(cp.PromiseRejectionEvent),kp={CONSTRUCTOR:hp("Promise",(function(){var t=dp(lp),e=t!==String(lp);if(!e&&66===gp)return!0;if(!yp.catch||!yp.finally)return!0;if(!gp||gp<51||!/native code/.test(t)){var n=new lp((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[mp]=r,!(bp=n.then((function(){}))instanceof r))return!0}return!e&&(vp||_p)&&!wp})),REJECTION_EVENT:wp,SUBCLASSING:bp},Sp={},xp=Rt,Ep=TypeError,Op=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ep("Bad Promise constructor");e=t,n=r})),this.resolve=xp(e),this.reject=xp(n)};Sp.f=function(t){return new Op(t)};var Ap,Tp,Cp=Tn,Rp=jh,Ip=r,Bp=I,Lp=eo,Mp=To,zp=Gh,Pp=Rt,Np=O,jp=$,Dp=Wh,Fp=ed,Up=Id.set,Kp=ip,Gp=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(MC){}},Zp=op,Hp=jd,Wp=Zo,Vp=ap,Yp=kp,Jp=Sp,Xp="Promise",qp=Yp.CONSTRUCTOR,Qp=Yp.REJECTION_EVENT,$p=Wp.getterFor(Xp),tv=Wp.set,ev=Vp&&Vp.prototype,nv=Vp,rv=ev,iv=Ip.TypeError,ov=Ip.document,av=Ip.process,sv=Jp.f,uv=sv,cv=!!(ov&&ov.createEvent&&Ip.dispatchEvent),lv="unhandledrejection",fv=function(t){var e;return!(!jp(t)||!Np(e=t.then))&&e},hv=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&gv(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(iv("Promise-chain cycle")):(r=fv(n))?Bp(r,n,u,c):u(n)):c(o)}catch(MC){l&&!i&&l.exit(),c(MC)}},dv=function(t,e){t.notified||(t.notified=!0,Kp((function(){for(var n,r=t.reactions;n=r.get();)hv(n,t);t.notified=!1,e&&!t.rejection&&vv(t)})))},pv=function(t,e,n){var r,i;cv?((r=ov.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Ip.dispatchEvent(r)):r={promise:e,reason:n},!Qp&&(i=Ip["on"+t])?i(r):t===lv&&Gp("Unhandled promise rejection",n)},vv=function(t){Bp(Up,Ip,(function(){var e,n=t.facade,r=t.value;if(_v(t)&&(e=Zp((function(){Rp?av.emit("unhandledRejection",r,n):pv(lv,n,r)})),t.rejection=Rp||_v(t)?2:1,e.error))throw e.value}))},_v=function(t){return 1!==t.rejection&&!t.parent},gv=function(t){Bp(Up,Ip,(function(){var e=t.facade;Rp?av.emit("rejectionHandled",e):pv("rejectionhandled",e,t.value)}))},yv=function(t,e,n){return function(r){t(e,r,n)}},mv=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,dv(t,!0))},bv=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw iv("Promise can't be resolved itself");var r=fv(e);r?Kp((function(){var n={done:!1};try{Bp(r,e,yv(bv,n,t),yv(mv,n,t))}catch(MC){mv(n,MC,t)}})):(t.value=e,t.state=1,dv(t,!1))}catch(MC){mv({done:!1},MC,t)}}};qp&&(rv=(nv=function(t){Dp(this,rv),Pp(t),Bp(Ap,this);var e=$p(this);try{t(yv(bv,e),yv(mv,e))}catch(MC){mv(e,MC)}}).prototype,(Ap=function(t){tv(this,{type:Xp,done:!1,notified:!1,parent:!1,reactions:new Hp,rejection:!1,state:0,value:void 0})}).prototype=Lp(rv,"then",(function(t,e){var n=$p(this),r=sv(Fp(this,nv));return n.parent=!0,r.ok=!Np(t)||t,r.fail=Np(e)&&e,r.domain=Rp?av.domain:void 0,0===n.state?n.reactions.add(r):Kp((function(){hv(r,n)})),r.promise})),Tp=function(){var t=new Ap,e=$p(t);this.promise=t,this.resolve=yv(bv,e),this.reject=yv(mv,e)},Jp.f=sv=function(t){return t===nv||undefined===t?new Tp(t):uv(t)}),Cp({global:!0,constructor:!0,wrap:!0,forced:qp},{Promise:nv}),Mp(nv,Xp,!1,!0),zp(Xp);var wv=fe("iterator"),kv=!1;try{var Sv=0,xv={next:function(){return{done:!!Sv++}},return:function(){kv=!0}};xv[wv]=function(){return this},Array.from(xv,(function(){throw 2}))}catch(MC){}var Ev=function(t,e){if(!e&&!kv)return!1;var n=!1;try{var r={};r[wv]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(MC){}return n},Ov=ap,Av=kp.CONSTRUCTOR||!Ev((function(t){Ov.all(t).then(void 0,(function(){}))})),Tv=I,Cv=Rt,Rv=Sp,Iv=op,Bv=vh;Tn({target:"Promise",stat:!0,forced:Av},{all:function(t){var e=this,n=Rv.f(e),r=n.resolve,i=n.reject,o=Iv((function(){var n=Cv(e.resolve),o=[],a=0,s=1;Bv(t,(function(t){var u=a++,c=!1;s++,Tv(n,e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Lv=Tn,Mv=kp.CONSTRUCTOR;ap&&ap.prototype,Lv({target:"Promise",proto:!0,forced:Mv,real:!0},{catch:function(t){return this.then(void 0,t)}});var zv=I,Pv=Rt,Nv=Sp,jv=op,Dv=vh;Tn({target:"Promise",stat:!0,forced:Av},{race:function(t){var e=this,n=Nv.f(e),r=n.reject,i=jv((function(){var i=Pv(e.resolve);Dv(t,(function(t){zv(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Fv=I,Uv=Sp;Tn({target:"Promise",stat:!0,forced:kp.CONSTRUCTOR},{reject:function(t){var e=Uv.f(this);return Fv(e.reject,void 0,t),e.promise}});var Kv=en,Gv=$,Zv=Sp,Hv=function(t,e){if(Kv(t),Gv(e)&&e.constructor===t)return e;var n=Zv.f(t);return(0,n.resolve)(e),n.promise},Wv=Tn,Vv=ap,Yv=kp.CONSTRUCTOR,Jv=Hv,Xv=ot("Promise"),qv=!Yv;Wv({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Jv(qv&&this===Xv?Vv:this,t)}});var Qv=I,$v=Rt,t_=Sp,e_=op,n_=vh;Tn({target:"Promise",stat:!0,forced:Av},{allSettled:function(t){var e=this,n=t_.f(e),r=n.resolve,i=n.reject,o=e_((function(){var n=$v(e.resolve),i=[],o=0,a=1;n_(t,(function(t){var s=o++,u=!1;a++,Qv(n,e,t).then((function(t){u||(u=!0,i[s]={status:"fulfilled",value:t},--a||r(i))}),(function(t){u||(u=!0,i[s]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var r_=I,i_=Rt,o_=ot,a_=Sp,s_=op,u_=vh,c_="No one promise resolved";Tn({target:"Promise",stat:!0,forced:Av},{any:function(t){var e=this,n=o_("AggregateError"),r=a_.f(e),i=r.resolve,o=r.reject,a=s_((function(){var r=i_(e.resolve),a=[],s=0,u=1,c=!1;u_(t,(function(t){var l=s++,f=!1;u++,r_(r,e,t).then((function(t){f||c||(c=!0,i(t))}),(function(t){f||c||(f=!0,a[l]=t,--u||o(new n(a,c_)))}))})),--u||o(new n(a,c_))}));return a.error&&o(a.value),r.promise}});var l_=Tn,f_=ap,h_=i,d_=ot,p_=O,v_=ed,__=Hv,g_=f_&&f_.prototype;l_({target:"Promise",proto:!0,real:!0,forced:!!f_&&h_((function(){g_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=v_(this,d_("Promise")),n=p_(t);return this.then(n?function(n){return __(e,t()).then((function(){return n}))}:t,n?function(n){return __(e,t()).then((function(){throw n}))}:t)}});var y_=tt.Promise,m_=Sp;Tn({target:"Promise",stat:!0},{withResolvers:function(){var t=m_.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var b_=y_,w_=Sp,k_=op;Tn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=w_.f(this),n=k_(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var S_=b_,x_=e(S_),E_=Tn,O_=Rn,A_=v([].reverse),T_=[1,2];E_({target:"Array",proto:!0,forced:String(T_)===String(T_.reverse())},{reverse:function(){return O_(this)&&(this.length=this.length),A_(this)}});var C_=Fl("Array").reverse,R_=at,I_=C_,B_=Array.prototype,L_=e((function(t){var e=t.reverse;return t===B_||R_(B_,t)&&e===B_.reverse?I_:e})),M_=Tn,z_=Rn,P_=yr,N_=$,j_=qr,D_=Dn,F_=X,U_=Hn,K_=fe,G_=ks,Z_=Cr("slice"),H_=K_("species"),W_=Array,V_=Math.max;M_({target:"Array",proto:!0,forced:!Z_},{slice:function(t,e){var n,r,i,o=F_(this),a=D_(o),s=j_(t,a),u=j_(void 0===e?a:e,a);if(z_(o)&&(n=o.constructor,(P_(n)&&(n===W_||z_(n.prototype))||N_(n)&&null===(n=n[H_]))&&(n=void 0),n===W_||void 0===n))return G_(o,s,u);for(r=new(void 0===n?W_:n)(V_(u-s,0)),i=0;s<u;s++,i++)s in o&&U_(r,i,o[s]);return r.length=i,r}});var Y_=Fl("Array").slice,J_=at,X_=Y_,q_=Array.prototype,Q_=function(t){var e=t.slice;return t===q_||J_(q_,t)&&e===q_.slice?X_:e},$_=e(Q_);function tg(){tg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Al||function(t,e,n){t[e]=n.value},o="function"==typeof nl?nl:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Al(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(I){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Rl(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",_={};function g(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var w=Ml&&Ml(Ml(R([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=m.prototype=g.prototype=Rl(b);function S(t){var e;Jl(e=["next","throw","return"]).call(e,(function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==bl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===_)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?v:d,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function A(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),lf(e=this.tryEntries).call(e,n)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],Jl(t).call(t,A,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(bl(e)+" is not iterable")}return y.prototype=m,i(k,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return ff?ff(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Rl(k),t},e.awrap=function(t){return{__await:t}},S(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,o){void 0===o&&(o=x_);var a=new x(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)lf(n).call(n,r);return L_(n).call(n),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,C.prototype={constructor:C,reset:function(e){var n;if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,Jl(n=this.tryEntries).call(n,T),!e)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+$_(i).call(i,1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},e}function eg(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(MC){return void n(MC)}s.done?e(u):x_.resolve(u).then(r,i)}function ng(t){return function(){var e=this,n=arguments;return new x_((function(r,i){var o=t.apply(e,n);function a(t){eg(o,r,i,a,s,"next",t)}function s(t){eg(o,r,i,a,s,"throw",t)}a(void 0)}))}}function rg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ig=e(io.f("toPrimitive"));function og(t){var e=function(t,e){if("object"!==bl(t)||null===t)return t;var n=t[ig];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bl(e)?e:String(e)}function ag(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Al(t,og(r.key),r)}}function sg(t,e,n){return e&&ag(t.prototype,e),n&&ag(t,n),Al(t,"prototype",{writable:!1}),t}function ug(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var cg=v,lg=Rt,fg=$,hg=qt,dg=ks,pg=o,vg=Function,_g=cg([].concat),gg=cg([].join),yg={},mg=pg?vg.bind:function(t){var e=lg(this),n=e.prototype,r=dg(arguments,1),i=function(){var n=_g(r,dg(arguments));return this instanceof i?function(t,e,n){if(!hg(yg,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";yg[e]=vg("C,a","return new C("+gg(r,",")+")")}return yg[e](t,n)}(e,n.length,n):e.apply(t,n)};return fg(n)&&(i.prototype=n),i},bg=mg;Tn({target:"Function",proto:!0,forced:Function.bind!==bg},{bind:bg});var wg=Fl("Function").bind,kg=at,Sg=wg,xg=Function.prototype,Eg=function(t){var e=t.bind;return t===xg||kg(xg,t)&&e===xg.bind?Sg:e},Og=e(Eg);function Ag(t,e){var n;return(Ag=ff?Og(n=ff).call(n):function(t,e){return t.__proto__=e,t})(t,e)}function Tg(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Rl(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Al(t,"prototype",{writable:!1}),e&&Ag(t,e)}var Cg=Tn,Rg=l,Ig=mg,Bg=Xh,Lg=en,Mg=$,zg=ji,Pg=i,Ng=ot("Reflect","construct"),jg=Object.prototype,Dg=[].push,Fg=Pg((function(){function t(){}return!(Ng((function(){}),[],t)instanceof t)})),Ug=!Pg((function(){Ng((function(){}))})),Kg=Fg||Ug;Cg({target:"Reflect",stat:!0,forced:Kg,sham:Kg},{construct:function(t,e){Bg(t),Lg(e);var n=arguments.length<3?t:Bg(arguments[2]);if(Ug&&!Fg)return Ng(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return Rg(Dg,r,e),new(Rg(Ig,t,r))}var i=n.prototype,o=zg(Mg(i)?i:jg),a=Rg(t,o,e);return Mg(a)?a:o}});var Gg=e(tt.Reflect.construct);function Zg(t){var e;return(Zg=ff?Og(e=Ml).call(e):function(t){return t.__proto__||Ml(t)})(t)}function Hg(t){var e=function(){if("undefined"==typeof Reflect||!Gg)return!1;if(Gg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Gg(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zg(t);if(e){var i=Zg(this).constructor;n=Gg(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===bl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ug(t)}(this,n)}}function Wg(t,e,n){return(e=og(e))in t?Al(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vg=e(Yl),Yg=Yt,Jg=di;Tn({target:"Object",stat:!0,forced:i((function(){Jg(1)}))},{keys:function(t){return Jg(Yg(t))}});var Xg=tt.Object.keys,qg=e(Xg),Qg=e(Xg),$g=e(Eg),ty=Qo.filter;Tn({target:"Array",proto:!0,forced:!Cr("filter")},{filter:function(t){return ty(this,t,arguments.length>1?arguments[1]:void 0)}});var ey,ny=Fl("Array").filter,ry=at,iy=ny,oy=Array.prototype,ay=function(t){var e=t.filter;return t===oy||ry(oy,t)&&e===oy.filter?iy:e},sy=e(ay),uy=e(ay),cy=e(S_),ly="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,fy=r,hy=l,dy=O,py=ly,vy=st,_y=ks,gy=rd,yy=fy.Function,my=/MSIE .\./.test(vy)||py&&((ey=fy.Bun.version.split(".")).length<3||"0"===ey[0]&&(ey[1]<3||"3"===ey[1]&&"0"===ey[2])),by=function(t,e){var n=e?2:1;return my?function(r,i){var o=gy(arguments.length,1)>n,a=dy(r)?r:yy(r),s=o?_y(arguments,n):[],u=o?function(){hy(a,this,s)}:a;return e?t(u,i):t(u)}:t},wy=Tn,ky=r,Sy=by(ky.setInterval,!0);wy({global:!0,bind:!0,forced:ky.setInterval!==Sy},{setInterval:Sy});var xy=Tn,Ey=r,Oy=by(Ey.setTimeout,!0);xy({global:!0,bind:!0,forced:Ey.setTimeout!==Oy},{setTimeout:Oy});var Ay=e(tt.setTimeout),Ty=Fl("Array").concat,Cy=at,Ry=Ty,Iy=Array.prototype,By=e((function(t){var e=t.concat;return t===Iy||Cy(Iy,t)&&e===Iy.concat?Ry:e})),Ly=e(Cl),My=e(Q_),zy=tt.Object.getOwnPropertySymbols,Py=e(zy),Ny=e(zy),jy={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Ly&&(r.prototype=Ly(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?My(r).call(r,1):r);return Ny?By(i).call(i,Ny(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,i,o,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s}(jy);var Dy=function(t){Tg(r,t);var e,n=Hg(r);function r(){var t,e;rg(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(e=n.call.apply(n,By(t=[this]).call(t,o))),"monitor",void 0),e}return sg(r,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=ng(tg().mark((function t(){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!0);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),r}(jy.exports.EventEmitter),Fy=e(Zf);Tn({target:"Array",stat:!0},{isArray:Rn});var Uy=e(tt.Array.isArray),Ky=en,Gy=eh,Zy=Je,Hy=I,Wy=Yt,Vy=function(t,e,n,r){try{return r?e(Ky(n)[0],n[1]):e(n)}catch(MC){Gy(t,"throw",MC)}},Yy=jf,Jy=yr,Xy=Dn,qy=Hn,Qy=qf,$y=Zf,tm=Array,em=function(t){var e=Wy(t),n=Jy(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Zy(i,r>2?arguments[2]:void 0));var a,s,u,c,l,f,h=$y(e),d=0;if(!h||this===tm&&Yy(h))for(a=Xy(e),s=n?new this(a):tm(a);a>d;d++)f=o?i(e[d],d):e[d],qy(s,d,f);else for(l=(c=Qy(e,h)).next,s=n?new this:[];!(u=Hy(l,c)).done;d++)f=o?Vy(c,i,[u.value,d],!0):u.value,qy(s,d,f);return s.length=d,s};Tn({target:"Array",stat:!0,forced:!Ev((function(t){Array.from(t)}))},{from:em});var nm=e(tt.Array.from);function rm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var im={exports:{}},om=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),am=i,sm=$,um=m,cm=om,lm=Object.isExtensible,fm=am((function(){lm(1)}))||cm?function(t){return!!sm(t)&&((!cm||"ArrayBuffer"!==um(t))&&(!lm||lm(t)))}:lm,hm=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),dm=Tn,pm=v,vm=ri,_m=$,gm=qt,ym=Xe.f,mm=Di,bm=Ki,wm=fm,km=hm,Sm=!1,xm=ne("meta"),Em=0,Om=function(t){ym(t,xm,{value:{objectID:"O"+Em++,weakData:{}}})},Am=im.exports={enable:function(){Am.enable=function(){},Sm=!0;var t=mm.f,e=pm([].splice),n={};n[xm]=1,t(n).length&&(mm.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===xm){e(r,i,1);break}return r},dm({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bm.f}))},fastKey:function(t,e){if(!_m(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!gm(t,xm)){if(!wm(t))return"F";if(!e)return"E";Om(t)}return t[xm].objectID},getWeakData:function(t,e){if(!gm(t,xm)){if(!wm(t))return!0;if(!e)return!1;Om(t)}return t[xm].weakData},onFreeze:function(t){return km&&Sm&&wm(t)&&!gm(t,xm)&&Om(t),t}};vm[xm]=!0;var Tm=im.exports,Cm=Tn,Rm=r,Im=Tm,Bm=i,Lm=_n,Mm=vh,zm=Wh,Pm=O,Nm=$,jm=Z,Dm=To,Fm=Xe.f,Um=Qo.forEach,Km=T,Gm=Zo.set,Zm=Zo.getterFor,Hm=eo,Wm=ji,Vm=ro,Ym=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Hm(t,r,e[r],n);return t},Jm=Je,Xm=Wh,qm=Z,Qm=vh,$m=fc,tb=hc,eb=Gh,nb=T,rb=Tm.fastKey,ib=Zo.set,ob=Zo.getterFor,ab={getConstructor:function(t,e,n,r){var i=t((function(t,i){Xm(t,o),ib(t,{type:e,index:Wm(null),first:void 0,last:void 0,size:0}),nb||(t.size=0),qm(i)||Qm(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=ob(e),s=function(t,e,n){var r,i,o=a(t),s=u(t,e);return s?s.value=n:(o.last=s={index:i=rb(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),nb?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=rb(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return Ym(o,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,nb?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=u(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),nb?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Jm(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Ym(o,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),nb&&Vm(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=ob(e),o=ob(r);$m(t,e,(function(t,e){ib(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?tb("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,tb(void 0,!0))}),n?"entries":"values",!n,!0),eb(e)}};(function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=Rm[t],u=s&&s.prototype,c={};if(Km&&Pm(s)&&(o||u.forEach&&!Bm((function(){(new s).entries().next()})))){var l=(r=e((function(e,n){Gm(zm(e,l),{type:t,collection:new s}),jm(n)||Mm(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=Zm(t);Um(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in u)||o&&"clear"===t||Lm(l,t,(function(n,r){var i=f(this).collection;if(!e&&o&&!Nm(n))return"get"===t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||Fm(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Im.enable();Dm(r,t,!1,!0),c[t]=r,Cm({global:!0,forced:!0},c),o||n.setStrong(r,t,i)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ab);var sb=tt.Map,ub=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}},cb=ot("Map"),lb={Map:cb,set:ub("set",2),get:ub("get",1),has:ub("has",1),remove:ub("delete",1),proto:cb.prototype},fb=Tn,hb=Rt,db=V,pb=vh,vb=lb.Map,_b=lb.has,gb=lb.get,yb=lb.set,mb=v([].push);fb({target:"Map",stat:!0,forced:true},{groupBy:function(t,e){db(t),hb(e);var n=new vb,r=0;return pb(t,(function(t){var i=e(t,r++);_b(n,i)?mb(gb(n,i),t):yb(n,i,[t])})),n}});var bb=sb,wb=Je,kb=I,Sb=Rt,xb=Xh,Eb=Z,Ob=vh,Ab=[].push,Tb=function(t){var e,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return xb(this),(e=void 0!==a)&&Sb(a),Eb(t)?new this:(n=[],e?(r=0,i=wb(a,o>2?arguments[2]:void 0),Ob(t,(function(t){kb(Ab,n,i(t,r++))}))):Ob(t,Ab,{that:n}),new this(n))};Tn({target:"Map",stat:!0,forced:!0},{from:Tb});var Cb=ks,Rb=function(){return new this(Cb(arguments))};Tn({target:"Map",stat:!0,forced:!0},{of:Rb});var Ib=Ot,Bb=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw TypeError(Ib(t)+" is not a map")},Lb=Bb,Mb=lb.remove;Tn({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=Lb(this),n=!0,r=0,i=arguments.length;r<i;r++)t=Mb(e,arguments[r]),n=n&&t;return!!n}});var zb=Bb,Pb=lb.get,Nb=lb.has,jb=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=zb(this);return Nb(i,t)?(n=Pb(i,t),"update"in e&&(n=e.update(n,t,i),jb(i,t,n)),n):(r=e.insert(t,i),jb(i,t,r),r)}});var Db=I,Fb=function(t,e,n){for(var r,i,o=n?t:t.iterator,a=t.next;!(r=Db(a,o)).done;)if(void 0!==(i=e(r.value)))return i},Ub=function(t,e,n){return n?Fb(t.entries(),(function(t){return e(t[1],t[0])}),!0):t.forEach(e)},Kb=Je,Gb=Bb,Zb=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Gb(this),n=Kb(t,arguments.length>1?arguments[1]:void 0);return!1!==Zb(e,(function(t,r){if(!n(t,r,e))return!1}),!0)}});var Hb=Je,Wb=Bb,Vb=Ub,Yb=lb.Map,Jb=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Wb(this),n=Hb(t,arguments.length>1?arguments[1]:void 0),r=new Yb;return Vb(e,(function(t,i){n(t,i,e)&&Jb(r,i,t)})),r}});var Xb=Je,qb=Bb,Qb=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=qb(this),n=Xb(t,arguments.length>1?arguments[1]:void 0),r=Qb(e,(function(t,r){if(n(t,r,e))return{value:t}}),!0);return r&&r.value}});var $b=Je,tw=Bb,ew=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=tw(this),n=$b(t,arguments.length>1?arguments[1]:void 0),r=ew(e,(function(t,r){if(n(t,r,e))return{key:r}}),!0);return r&&r.key}});var nw=function(t,e){return t===e||t!=t&&e!=e},rw=Bb,iw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===iw(rw(this),(function(e){if(nw(e,t))return!0}),!0)}});var ow=I,aw=vh,sw=O,uw=Rt,cw=lb.Map;Tn({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new(sw(this)?this:cw);uw(e);var r=uw(n.set);return aw(t,(function(t){ow(r,n,e(t),t)})),n}});var lw=Bb,fw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=fw(lw(this),(function(e,n){if(e===t)return{key:n}}),!0);return e&&e.key}});var hw=Je,dw=Bb,pw=Ub,vw=lb.Map,_w=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=dw(this),n=hw(t,arguments.length>1?arguments[1]:void 0),r=new vw;return pw(e,(function(t,i){_w(r,n(t,i,e),t)})),r}});var gw=Je,yw=Bb,mw=Ub,bw=lb.Map,ww=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=yw(this),n=gw(t,arguments.length>1?arguments[1]:void 0),r=new bw;return mw(e,(function(t,i){ww(r,i,n(t,i,e))})),r}});var kw=Bb,Sw=vh,xw=lb.set;Tn({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=kw(this),n=arguments.length,r=0;r<n;)Sw(arguments[r++],(function(t,n){xw(e,t,n)}),{AS_ENTRIES:!0});return e}});var Ew=Rt,Ow=Bb,Aw=Ub,Tw=TypeError;Tn({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Ow(this),n=arguments.length<2,r=n?void 0:arguments[1];if(Ew(t),Aw(e,(function(i,o){n?(n=!1,r=i):r=t(r,i,o,e)})),n)throw Tw("Reduce of empty map with no initial value");return r}});var Cw=Je,Rw=Bb,Iw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Rw(this),n=Cw(t,arguments.length>1?arguments[1]:void 0);return!0===Iw(e,(function(t,r){if(n(t,r,e))return!0}),!0)}});var Bw=Rt,Lw=Bb,Mw=TypeError,zw=lb.get,Pw=lb.has,Nw=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=Lw(this),r=arguments.length;Bw(e);var i=Pw(n,t);if(!i&&r<3)throw Mw("Updating absent value");var o=i?zw(n,t):Bw(r>2?arguments[2]:void 0)(t,n);return Nw(n,t,e(o,t,n)),n}});var jw=I,Dw=Rt,Fw=O,Uw=en,Kw=TypeError,Gw=function(t,e){var n,r=Uw(this),i=Dw(r.get),o=Dw(r.has),a=Dw(r.set),s=arguments.length>2?arguments[2]:void 0;if(!Fw(e)&&!Fw(s))throw Kw("At least one callback required");return jw(o,r,t)?(n=jw(i,r,t),Fw(e)&&(n=e(n),jw(a,r,t,n))):Fw(s)&&(n=s(),jw(a,r,t,n)),n};Tn({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Gw}),Tn({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Gw});var Zw=e(bb),Hw=function(t){return t[t.CAPTURE=0]="CAPTURE",t[t.PRE_PROCESSING=1]="PRE_PROCESSING",t[t.ENCODE=2]="ENCODE",t[t.TRANSFER=3]="TRANSFER",t[t.POST_PROCESSING=4]="POST_PROCESSING",t[t.DECODE=5]="DECODE",t[t.RENDERING=6]="RENDERING",t}(Hw||{}),Ww=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(Ww||{}),Vw=function(t){Tg(n,t);var e=Hg(n);function n(){var t,r;rg(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(r=e.call.apply(e,By(t=[this]).call(t,o))),"type",Hw.PRE_PROCESSING),r}return sg(n)}(Dy),Yw=Fl("Array").values,Jw=tr,Xw=qt,qw=at,Qw=Yw,$w=Array.prototype,tk={DOMTokenList:!0,NodeList:!0},ek=e((function(t){var e=t.values;return t===$w||qw($w,t)&&e===$w.values||Xw(tk,Jw(t))?Qw:e})),nk=Tn,rk=Date,ik=v(rk.prototype.getTime);nk({target:"Date",stat:!0},{now:function(){return ik(new rk)}});var ok=e(tt.Date.now),ak=Fl("Array").keys,sk=tr,uk=qt,ck=at,lk=ak,fk=Array.prototype,hk={DOMTokenList:!0,NodeList:!0},dk=e((function(t){var e=t.keys;return t===fk||ck(fk,t)&&e===fk.keys||uk(hk,sk(t))?lk:e})),pk=ni.includes;Tn({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return pk(this,t,arguments.length>1?arguments[1]:void 0)}});var vk=Fl("Array").includes,_k=$,gk=m,yk=fe("match"),mk=function(t){var e;return _k(t)&&(void 0!==(e=t[yk])?!!e:"RegExp"===gk(t))},bk=TypeError,wk=fe("match"),kk=Tn,Sk=function(t){if(mk(t))throw bk("The method doesn't accept regular expressions");return t},xk=V,Ek=Wr,Ok=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wk]=!1,"/./"[t](e)}catch(r){}}return!1},Ak=v("".indexOf);kk({target:"String",proto:!0,forced:!Ok("includes")},{includes:function(t){return!!~Ak(Ek(xk(this)),Ek(Sk(t)),arguments.length>1?arguments[1]:void 0)}});var Tk=Fl("String").includes,Ck=at,Rk=vk,Ik=Tk,Bk=Array.prototype,Lk=String.prototype,Mk=e((function(t){var e=t.includes;return t===Bk||Ck(Bk,t)&&e===Bk.includes?Rk:"string"==typeof t||t===Lk||Ck(Lk,t)&&e===Lk.includes?Ik:e})),zk=tt,Pk=l;zk.JSON||(zk.JSON={stringify:JSON.stringify});var Nk,jk=function(t,e,n){return Pk(zk.JSON.stringify,null,arguments)},Dk=e(jk),Fk=new Uint8Array(16);function Uk(){var t,e;if(!Nk&&!(Nk="undefined"!=typeof crypto&&crypto.getRandomValues&&$g(t=crypto.getRandomValues).call(t,crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&$g(e=msCrypto.getRandomValues).call(e,msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nk(Fk)}var Kk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Gk=[],Zk=0;Zk<256;++Zk)Gk.push((Zk+256).toString(16).substr(1));function Hk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Gk[t[e+0]]+Gk[t[e+1]]+Gk[t[e+2]]+Gk[t[e+3]]+"-"+Gk[t[e+4]]+Gk[t[e+5]]+"-"+Gk[t[e+6]]+Gk[t[e+7]]+"-"+Gk[t[e+8]]+Gk[t[e+9]]+"-"+Gk[t[e+10]]+Gk[t[e+11]]+Gk[t[e+12]]+Gk[t[e+13]]+Gk[t[e+14]]+Gk[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&Kk.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}function Wk(t,e,n){var r=(t=t||{}).random||(t.rng||Uk)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Hk(r)}var Vk=function(){return"undefined"==typeof window};function Yk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function Jk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({track:Yk(t.track)})}function Xk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({track:Yk(t.track)})}var qk="@byted/ve-rtc",Qk="@byted/ve-rtc-cache-size",$k=function(){function t(){rg(this,t),Wg(this,"storeKey",void 0),Wg(this,"logLevel",void 0),Wg(this,"LogfileSize",void 0),Wg(this,"db",void 0),Wg(this,"logId",void 0),Wg(this,"cacheLog",void 0),Wg(this,"cachedSize",void 0),Wg(this,"preCacheTime",void 0),Wg(this,"timer",void 0),Wg(this,"_getSize",(function(t){return new Blob(t).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return sg(t,[{key:"_createStore",value:function(){var t=this;if(!Vk()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(qk);try{localStorage.removeItem(Qk)}catch(MC){}},e.onerror=function(t){},e.onsuccess=function(){t.db=e.result,t._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var t=this;try{var e=localStorage.getItem(Qk);if(e)this.cachedSize=Number(e);else ek(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(MC){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(Qk,"".concat(this.cachedSize))}catch(MC){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(qk,t).objectStore(qk)}},{key:"set",value:function(t){var e=this;return new cy((function(n,r){if("none"===e.logLevel)return n();var i;if(t&&e.preCacheTime&&e.preCacheTime-ok()<1e3)return e.cacheLog+=By(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=Ay((function(){e.set("")}),1e3-(e.preCacheTime-ok()))),n();clearTimeout(e.timer),e.timer=null;var o=e._getStore("readwrite");if(!o)return r("get store fail");e.cachedSize&&e.cachedSize>e.LogfileSize&&e.keyEarliest().then((function(t){e.get(t).then((function(n){e.del(t).then((function(){e.cachedSize=e.cachedSize-e._getSize(["".concat(n)]),e._setCachedSize()}))}))}));var a=o.get(e.storeKey);a.onsuccess=function(){try{var i,s,u,c,l,f=By(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?By(s=By(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(By(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([By(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=ok(),n()}catch(p){var d;if(!t)return r(p);e.cacheLog+=By(d="\n\n".concat(e.logId,": ")).call(d,t),e.logId++,r(p)}},a.onerror=function(n){var i;if(!t)return r(n);e.cacheLog+=By(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,r(n)}}))}},{key:"get",value:function(t){var e=this;return new cy((function(n,r){var i=e._getStore("readonly");if(!i)return r();var o=i.get(t);o.onsuccess=function(){n(o.result)},o.onerror=function(t){r(t)}}))}},{key:"del",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new cy((function(n,r){var i=t._getStore("readwrite");if(!i)return r();var o=i.delete(e);o.onsuccess=function(){return n(o.result)},o.onerror=function(t){return r(t)}}))}},{key:"keyEarliest",value:function(){return dk(this).call(this).then((function(t){var e,n=ok();return Vg(t).call(t,(function(t){if(t&&t.length){var r=t.split("-")[0];Number(r)<n&&(n=Number(r),e=t)}})),e}))}},{key:"keys",value:function(){var t=this;return new cy((function(e,n){var r=t._getStore("readonly");if(!r)return n();if(r.getAllKeys){var i=r.getAllKeys();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){n()})}var o=[];r.openCursor().onsuccess=function(){this.result&&(o.push(this.result.key),this.result.continue())},r.transaction.oncomplete=function(){return e(o)}}))}},{key:"values",value:function(){var t=this;return new cy((function(e,n){var r=t._getStore("readonly");if(!r)return n();if(r.getAll){var i=r.getAll();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){n()})}var o=[];r.openCursor().onsuccess=function(){this.result&&(o.push(this.result.value),this.result.continue())},r.transaction.oncomplete=function(){return e(o)}}))}},{key:"download",value:function(t){t=t||this.storeKey,this.get(t).then((function(e){var n=document.createElement("a");n.download="".concat(t,".txt"),n.href="data:text/paint;utf-8,".concat(e||""),n.click()}))}}]),t}(),tS=new $k,eS=Qo.map;Tn({target:"Array",proto:!0,forced:!Cr("map")},{map:function(t){return eS(this,t,arguments.length>1?arguments[1]:void 0)}});var nS=Fl("Array").map,rS=at,iS=nS,oS=Array.prototype,aS=e((function(t){var e=t.map;return t===oS||rS(oS,t)&&e===oS.map?iS:e})),sS=Mn,uS=Wr,cS=V,lS=RangeError,fS=v,hS=Nn,dS=Wr,pS=V,vS=fS((function(t){var e=uS(cS(this)),n="",r=sS(t);if(r<0||r===1/0)throw lS("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),_S=fS("".slice),gS=Math.ceil,yS=function(t){return function(e,n,r){var i,o,a=dS(pS(e)),s=hS(n),u=a.length,c=void 0===r?" ":dS(r);return s<=u||""===c?a:((o=vS(c,gS((i=s-u)/c.length))).length>i&&(o=_S(o,0,i)),t?a+o:o+a)}},mS={start:yS(!1),end:yS(!0)},bS=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),wS=mS.start;Tn({target:"String",proto:!0,forced:bS},{padStart:function(t){return wS(this,t,arguments.length>1?arguments[1]:void 0)}});var kS=Fl("String").padStart,SS=at,xS=kS,ES=String.prototype,OS=e((function(t){var e=t.padStart;return"string"==typeof t||t===ES||SS(ES,t)&&e===ES.padStart?xS:e}));function AS(t){return function(t){if(Uy(t))return rm(t)}(t)||function(t){if(void 0!==nl&&null!=Fy(t)||null!=t["@@iterator"])return nm(t)}(t)||function(t,e){var n;if(t){if("string"==typeof t)return rm(t,e);var r=$_(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?nm(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rm(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var TS=Ot,CS=TypeError,RS=Tn,IS=Yt,BS=qr,LS=Mn,MS=Dn,zS=tf,PS=Un,NS=Er,jS=Hn,DS=function(t,e){if(!delete t[e])throw CS("Cannot delete property "+TS(e)+" of "+TS(t))},FS=Cr("splice"),US=Math.max,KS=Math.min;RS({target:"Array",proto:!0,forced:!FS},{splice:function(t,e){var n,r,i,o,a,s,u=IS(this),c=MS(u),l=BS(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=KS(US(LS(e),0),c-l)),PS(c+n-r),i=NS(u,r),o=0;o<r;o++)(a=l+o)in u&&jS(i,o,u[a]);if(i.length=r,n<r){for(o=l;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:DS(u,s);for(o=c;o>c-r+n;o--)DS(u,o-1)}else if(n>r)for(o=c-r;o>l;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:DS(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return zS(u,c-r+n),i}});var GS=Fl("Array").splice,ZS=at,HS=GS,WS=Array.prototype,VS=e((function(t){var e=t.splice;return t===WS||ZS(WS,t)&&e===WS.splice?HS:e}));Tn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var YS=e(tt.Number.isNaN),JS=Tn,XS=ni.indexOf,qS=Pl,QS=k([].indexOf),$S=!!QS&&1/QS([1],1,-0)<0;JS({target:"Array",proto:!0,forced:$S||!qS("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return $S?QS(this,t,e)||0:XS(this,t,e)}});var tx=Fl("Array").indexOf,ex=at,nx=tx,rx=Array.prototype,ix=function(t){var e=t.indexOf;return t===rx||ex(rx,t)&&e===rx.indexOf?nx:e},ox=e(ix),ax=e(ix),sx=function(){function t(){rg(this,t),Wg(this,"_all",{})}return sg(t,[{key:"on",value:function(t,e){var n=this._all[t];n?n.push(e):this._all[t]=[e]}},{key:"once",value:function(t,e){var n=this;this.on(t,(function r(){e.apply(void 0,arguments),n.off(t,r)}))}},{key:"off",value:function(t,e){var n=this._all[t];null==n||VS(n).call(n,ax(n).call(n,e)>>>0,1)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this._all[t];null==o||Vg(e=My(o).call(o)).call(e,(function(t){return t.apply(void 0,r)}))}},{key:"safeEmit",value:function(t){try{for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.emit.apply(this,By(e=[t]).call(e,r))}catch(MC){console.error(MC)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),ux=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var cx=function(t){Tg(n,t);var e=Hg(n);function n(){var t,r;rg(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(r=e.call.apply(e,By(t=[this]).call(t,o))),"config",{UPLOAD_CONSOLE_ON:!1,UPLOAD_CONSOLE_LENGTH_CUT:200,UPLOAD_REPORT_LIMIT:45e4,ENABLE_REPORT_IDB_BUFFER:!1}),r}return sg(n,[{key:"setParameter",value:function(t,e){if(function(t){return Mk(ux).call(ux,t)}(t))try{var n=Number(e);if(YS(n))return;this.config[t]=n}catch(i){var r;return void console.warn(By(r="Cannot convert core lib parameter ".concat(t,":")).call(r,e," into number"))}else this.config[t]=e;this.emit(t,this.config[t])}},{key:"getParameter",value:function(t){return this.config[t]}},{key:"getKeys",value:function(){return Qg(this.config)}}]),n}(sx),lx=new cx,fx={exports:{}},hx=Tn,dx=i,px=X,vx=A.f,_x=T;hx({target:"Object",stat:!0,forced:!_x||dx((function(){vx(1)})),sham:!_x},{getOwnPropertyDescriptor:function(t,e){return vx(px(t),e)}});var gx=tt.Object,yx=fx.exports=function(t,e){return gx.getOwnPropertyDescriptor(t,e)};gx.getOwnPropertyDescriptor.sham&&(yx.sham=!0);var mx=e(fx.exports),bx=gf,wx=X,kx=A,Sx=Hn;Tn({target:"Object",stat:!0,sham:!T},{getOwnPropertyDescriptors:function(t){for(var e,n,r=wx(t),i=kx.f,o=bx(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Sx(a,e,n);return a}});var xx=e(tt.Object.getOwnPropertyDescriptors),Ex={exports:{}},Ox=Tn,Ax=T,Tx=Vr.f;Ox({target:"Object",stat:!0,forced:Object.defineProperties!==Tx,sham:!Ax},{defineProperties:Tx});var Cx=tt.Object,Rx=Ex.exports=function(t,e){return Cx.defineProperties(t,e)};Cx.defineProperties.sham&&(Rx.sham=!0);var Ix=e(Ex.exports);function Bx(t,e){var n=qg(t);if(Py){var r=Py(t);e&&(r=sy(r).call(r,(function(e){return mx(t,e).enumerable}))),lf(n).apply(n,r)}return n}function Lx(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Jl(n=Bx(Object(i),!0)).call(n,(function(e){Wg(t,e,i[e])})):xx?Ix(t,xx(i)):Jl(r=Bx(Object(i))).call(r,(function(e){Al(t,e,mx(i,e))}))}return t}var Mx=T,zx=v,Px=I,Nx=i,jx=di,Dx=$i,Fx=B,Ux=Yt,Kx=G,Gx=Object.assign,Zx=Object.defineProperty,Hx=zx([].concat),Wx=!Gx||Nx((function(){if(Mx&&1!==Gx({b:1},Gx(Zx({},"a",{enumerable:!0,get:function(){Zx(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Gx({},t)[n]||jx(Gx({},e)).join("")!==r}))?function(t,e){for(var n=Ux(t),r=arguments.length,i=1,o=Dx.f,a=Fx.f;r>i;)for(var s,u=Kx(arguments[i++]),c=o?Hx(jx(u),o(u)):jx(u),l=c.length,f=0;l>f;)s=c[f++],Mx&&!Px(a,u,s)||(n[s]=u[s]);return n}:Gx,Vx=Wx;Tn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Vx},{assign:Vx});var Yx=e(tt.Object.assign),Jx=Rt,Xx=Yt,qx=G,Qx=Dn,$x=TypeError,tE=function(t){return function(e,n,r,i){Jx(n);var o=Xx(e),a=qx(o),s=Qx(o),u=t?s-1:0,c=t?-1:1;if(r<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw $x("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(i=n(i,a[u],u,o));return i}},eE={left:tE(!1),right:tE(!0)}.left;Tn({target:"Array",proto:!0,forced:!jh&&pt>79&&pt<83||!Pl("reduce")},{reduce:function(t){var e=arguments.length;return eE(this,t,e,e>1?arguments[1]:void 0)}});var nE=Fl("Array").reduce,rE=at,iE=nE,oE=Array.prototype,aE=e((function(t){var e=t.reduce;return t===oE||rE(oE,t)&&e===oE.reduce?iE:e})),sE=Rn,uE=Dn,cE=Un,lE=Je,fE=function(t,e,n,r,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&lE(a,s);f<r;)f in n&&(u=h?h(n[f],f,e):n[f],o>0&&sE(u)?(c=uE(u),l=fE(t,e,u,c,l,o-1)-1):(cE(l+1),t[l]=u),l++),f++;return l},hE=fE,dE=Yt,pE=Dn,vE=Mn,_E=Er;Tn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=dE(this),n=pE(e),r=_E(e,0);return r.length=hE(r,e,e,n,0,void 0===t?1:vE(t)),r}});var gE=Fl("Array").flat,yE=at,mE=gE,bE=Array.prototype,wE=e((function(t){var e=t.flat;return t===bE||yE(bE,t)&&e===bE.flat?mE:e})),kE={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=My(Array.prototype).call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==bl(r))throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},i={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return By([]).apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(kE);var SE={},xE={},EE={},OE=kE,AE=0,TE=1;function CE(t){for(var e=t.length;--e>=0;)t[e]=0}var RE=0,IE=29,BE=256,LE=BE+1+IE,ME=30,zE=19,PE=2*LE+1,NE=15,jE=16,DE=7,FE=256,UE=16,KE=17,GE=18,ZE=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],HE=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],WE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],VE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],YE=new Array(2*(LE+2));CE(YE);var JE=new Array(2*ME);CE(JE);var XE=new Array(512);CE(XE);var qE=new Array(256);CE(qE);var QE=new Array(IE);CE(QE);var $E,tO,eO,nO=new Array(ME);function rO(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function iO(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function oO(t){return t<256?XE[t]:XE[256+(t>>>7)]}function aO(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function sO(t,e,n){t.bi_valid>jE-n?(t.bi_buf|=e<<t.bi_valid&65535,aO(t,t.bi_buf),t.bi_buf=e>>jE-t.bi_valid,t.bi_valid+=n-jE):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function uO(t,e,n){sO(t,n[2*e],n[2*e+1])}function cO(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function lO(t,e,n){var r,i,o=new Array(NE+1),a=0;for(r=1;r<=NE;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=cO(o[s]++,s))}}function fO(t){var e;for(e=0;e<LE;e++)t.dyn_ltree[2*e]=0;for(e=0;e<ME;e++)t.dyn_dtree[2*e]=0;for(e=0;e<zE;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*FE]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function hO(t){t.bi_valid>8?aO(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function dO(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function pO(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&dO(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!dO(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function vO(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?uO(t,i,e):(uO(t,(o=qE[i])+BE+1,e),0!==(a=ZE[o])&&sO(t,i-=QE[o],a),uO(t,o=oO(--r),n),0!==(a=HE[o])&&sO(t,r-=nO[o],a))}while(s<t.last_lit);uO(t,FE,e)}function _O(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=PE,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)pO(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pO(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,pO(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=NE;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<PE;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,v++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),lO(o,c,t.bl_count)}function gO(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*UE]++):s<=10?t.bl_tree[2*KE]++:t.bl_tree[2*GE]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function yO(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{uO(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(uO(t,i,t.bl_tree),s--),uO(t,UE,t.bl_tree),sO(t,s-3,2)):s<=10?(uO(t,KE,t.bl_tree),sO(t,s-3,3)):(uO(t,GE,t.bl_tree),sO(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}CE(nO);var mO=!1;function bO(t,e,n,r){sO(t,(RE<<1)+(r?1:0),3),function(t,e,n,r){hO(t),r&&(aO(t,n),aO(t,~n)),OE.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}EE._tr_init=function(t){mO||(!function(){var t,e,n,r,i,o=new Array(NE+1);for(n=0,r=0;r<IE-1;r++)for(QE[r]=n,t=0;t<1<<ZE[r];t++)qE[n++]=r;for(qE[n-1]=r,i=0,r=0;r<16;r++)for(nO[r]=i,t=0;t<1<<HE[r];t++)XE[i++]=r;for(i>>=7;r<ME;r++)for(nO[r]=i<<7,t=0;t<1<<HE[r]-7;t++)XE[256+i++]=r;for(e=0;e<=NE;e++)o[e]=0;for(t=0;t<=143;)YE[2*t+1]=8,t++,o[8]++;for(;t<=255;)YE[2*t+1]=9,t++,o[9]++;for(;t<=279;)YE[2*t+1]=7,t++,o[7]++;for(;t<=287;)YE[2*t+1]=8,t++,o[8]++;for(lO(YE,LE+1,o),t=0;t<ME;t++)JE[2*t+1]=5,JE[2*t]=cO(t,5);$E=new rO(YE,ZE,BE+1,LE,NE),tO=new rO(JE,HE,0,ME,NE),eO=new rO(new Array(0),WE,0,zE,DE)}(),mO=!0),t.l_desc=new iO(t.dyn_ltree,$E),t.d_desc=new iO(t.dyn_dtree,tO),t.bl_desc=new iO(t.bl_tree,eO),t.bi_buf=0,t.bi_valid=0,fO(t)},EE._tr_stored_block=bO,EE._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return AE;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return TE;for(e=32;e<BE;e++)if(0!==t.dyn_ltree[2*e])return TE;return AE}(t)),_O(t,t.l_desc),_O(t,t.d_desc),a=function(t){var e;for(gO(t,t.dyn_ltree,t.l_desc.max_code),gO(t,t.dyn_dtree,t.d_desc.max_code),_O(t,t.bl_desc),e=zE-1;e>=3&&0===t.bl_tree[2*VE[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?bO(t,e,n,r):4===t.strategy||o===i?(sO(t,2+(r?1:0),3),vO(t,YE,JE)):(sO(t,4+(r?1:0),3),function(t,e,n,r){var i;for(sO(t,e-257,5),sO(t,n-1,5),sO(t,r-4,4),i=0;i<r;i++)sO(t,t.bl_tree[2*VE[i]+1],3);yO(t,t.dyn_ltree,e-1),yO(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),vO(t,t.dyn_ltree,t.dyn_dtree)),fO(t),r&&hO(t)},EE._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(qE[n]+BE+1)]++,t.dyn_dtree[2*oO(e)]++),t.last_lit===t.lit_bufsize-1},EE._tr_align=function(t){sO(t,2,3),uO(t,FE,YE),function(t){16===t.bi_valid?(aO(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var wO=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var kO=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();var SO,xO=function(t,e,n,r){var i=kO,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},EO={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},OO=kE,AO=EE,TO=wO,CO=xO,RO=EO,IO=0,BO=4,LO=0,MO=-2,zO=-1,PO=4,NO=2,jO=8,DO=9,FO=286,UO=30,KO=19,GO=2*FO+1,ZO=15,HO=3,WO=258,VO=WO+HO+1,YO=42,JO=103,XO=113,qO=666,QO=1,$O=2,tA=3,eA=4;function nA(t,e){return t.msg=RO[e],e}function rA(t){return(t<<1)-(t>4?9:0)}function iA(t){for(var e=t.length;--e>=0;)t[e]=0}function oA(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(OO.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function aA(t,e){AO._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,oA(t.strm)}function sA(t,e){t.pending_buf[t.pending++]=e}function uA(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function cA(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-VO?t.strstart-(t.w_size-VO):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+WO,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=WO-(h-o),o=h-WO,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function lA(t){var e,n,r,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-VO)){OO.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=f?r-f:0}while(--n);e=n=f;do{r=t.prev[--e],t.prev[e]=r>=f?r-f:0}while(--n);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),n=0===l?0:(a.avail_in-=l,OO.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=TO(a.adler,s,l,u):2===a.state.wrap&&(a.adler=CO(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=HO)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+HO-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<HO)););}while(t.lookahead<VO&&0!==t.strm.avail_in)}function fA(t,e){for(var n,r;;){if(t.lookahead<VO){if(lA(t),t.lookahead<VO&&e===IO)return QO;if(0===t.lookahead)break}if(n=0,t.lookahead>=HO&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-VO&&(t.match_length=cA(t,n)),t.match_length>=HO)if(r=AO._tr_tally(t,t.strstart-t.match_start,t.match_length-HO),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=HO){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=t.strstart<HO-1?t.strstart:HO-1,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}function hA(t,e){for(var n,r,i;;){if(t.lookahead<VO){if(lA(t),t.lookahead<VO&&e===IO)return QO;if(0===t.lookahead)break}if(n=0,t.lookahead>=HO&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=HO-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-VO&&(t.match_length=cA(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===HO&&t.strstart-t.match_start>4096)&&(t.match_length=HO-1)),t.prev_length>=HO&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-HO,r=AO._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-HO),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=HO-1,t.strstart++,r&&(aA(t,!1),0===t.strm.avail_out))return QO}else if(t.match_available){if((r=AO._tr_tally(t,0,t.window[t.strstart-1]))&&aA(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return QO}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=AO._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<HO-1?t.strstart:HO-1,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}function dA(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function pA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=jO,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new OO.Buf16(2*GO),this.dyn_dtree=new OO.Buf16(2*(2*UO+1)),this.bl_tree=new OO.Buf16(2*(2*KO+1)),iA(this.dyn_ltree),iA(this.dyn_dtree),iA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new OO.Buf16(ZO+1),this.heap=new OO.Buf16(2*FO+1),iA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new OO.Buf16(2*FO+1),iA(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function vA(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=NO,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?YO:XO,t.adler=2===e.wrap?0:1,e.last_flush=IO,AO._tr_init(e),LO):nA(t,MO)}function _A(t){var e,n=vA(t);return n===LO&&((e=t.state).window_size=2*e.w_size,iA(e.head),e.max_lazy_match=SO[e.level].max_lazy,e.good_match=SO[e.level].good_length,e.nice_match=SO[e.level].nice_length,e.max_chain_length=SO[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=HO-1,e.match_available=0,e.ins_h=0),n}function gA(t,e,n,r,i,o){if(!t)return MO;var a=1;if(e===zO&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>DO||n!==jO||r<8||r>15||e<0||e>9||o<0||o>PO)return nA(t,MO);8===r&&(r=9);var s=new pA;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+HO-1)/HO),s.window=new OO.Buf8(2*s.w_size),s.head=new OO.Buf16(s.hash_size),s.prev=new OO.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new OO.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,_A(t)}SO=[new dA(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(lA(t),0===t.lookahead&&e===IO)return QO;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,aA(t,!1),0===t.strm.avail_out))return QO;if(t.strstart-t.block_start>=t.w_size-VO&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):(t.strstart>t.block_start&&(aA(t,!1),t.strm.avail_out),QO)})),new dA(4,4,8,4,fA),new dA(4,5,16,8,fA),new dA(4,6,32,32,fA),new dA(4,4,16,16,hA),new dA(8,16,32,32,hA),new dA(8,16,128,128,hA),new dA(8,32,128,256,hA),new dA(32,128,258,1024,hA),new dA(32,258,258,4096,hA)],xE.deflateInit=function(t,e){return gA(t,e,jO,15,8,0)},xE.deflateInit2=gA,xE.deflateReset=_A,xE.deflateResetKeep=vA,xE.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?MO:(t.state.gzhead=e,LO):MO},xE.deflate=function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?nA(t,MO):MO;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===qO&&e!==BO)return nA(t,0===t.avail_out?-5:MO);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===YO)if(2===r.wrap)t.adler=0,sA(r,31),sA(r,139),sA(r,8),r.gzhead?(sA(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),sA(r,255&r.gzhead.time),sA(r,r.gzhead.time>>8&255),sA(r,r.gzhead.time>>16&255),sA(r,r.gzhead.time>>24&255),sA(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),sA(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(sA(r,255&r.gzhead.extra.length),sA(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=CO(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(sA(r,0),sA(r,0),sA(r,0),sA(r,0),sA(r,0),sA(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),sA(r,3),r.status=XO);else{var a=jO+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=XO,uA(r,a),0!==r.strstart&&(uA(r,t.adler>>>16),uA(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending!==r.pending_buf_size));)sA(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,sA(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,sA(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=JO)}else r.status=JO;if(r.status===JO&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&oA(t),r.pending+2<=r.pending_buf_size&&(sA(r,255&t.adler),sA(r,t.adler>>8&255),t.adler=0,r.status=XO)):r.status=XO),0!==r.pending){if(oA(t),0===t.avail_out)return r.last_flush=-1,LO}else if(0===t.avail_in&&rA(e)<=rA(n)&&e!==BO)return nA(t,-5);if(r.status===qO&&0!==t.avail_in)return nA(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==IO&&r.status!==qO){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(lA(t),0===t.lookahead)){if(e===IO)return QO;break}if(t.match_length=0,n=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=WO){if(lA(t),t.lookahead<=WO&&e===IO)return QO;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=HO&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+WO;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=WO-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=HO?(n=AO._tr_tally(t,1,t.match_length-HO),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}(r,e):SO[r.level].func(r,e);if(s!==tA&&s!==eA||(r.status=qO),s===QO||s===tA)return 0===t.avail_out&&(r.last_flush=-1),LO;if(s===$O&&(1===e?AO._tr_align(r):5!==e&&(AO._tr_stored_block(r,0,0,!1),3===e&&(iA(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),oA(t),0===t.avail_out))return r.last_flush=-1,LO}return e!==BO?LO:r.wrap<=0?1:(2===r.wrap?(sA(r,255&t.adler),sA(r,t.adler>>8&255),sA(r,t.adler>>16&255),sA(r,t.adler>>24&255),sA(r,255&t.total_in),sA(r,t.total_in>>8&255),sA(r,t.total_in>>16&255),sA(r,t.total_in>>24&255)):(uA(r,t.adler>>>16),uA(r,65535&t.adler)),oA(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?LO:1)},xE.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==YO&&69!==e&&73!==e&&91!==e&&e!==JO&&e!==XO&&e!==qO?nA(t,MO):(t.state=null,e===XO?nA(t,-3):LO):MO},xE.deflateSetDictionary=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return MO;if(2===(o=(n=t.state).wrap)||1===o&&n.status!==YO||n.lookahead)return MO;for(1===o&&(t.adler=TO(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(iA(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new OO.Buf8(n.w_size),OO.arraySet(c,e,l-n.w_size,n.w_size,0),e=c,l=n.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,lA(n);n.lookahead>=HO;){r=n.strstart,i=n.lookahead-(HO-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+HO-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=HO-1,lA(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=HO-1,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,LO},xE.deflateInfo="pako deflate (from Nodeca project)";var yA={},mA=kE,bA=!0,wA=!0;try{String.fromCharCode.apply(null,[0])}catch(zC){bA=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(zC){wA=!1}for(var kA=new mA.Buf8(256),SA=0;SA<256;SA++)kA[SA]=SA>=252?6:SA>=248?5:SA>=240?4:SA>=224?3:SA>=192?2:1;function xA(t,e){if(e<65534&&(t.subarray&&wA||!t.subarray&&bA))return String.fromCharCode.apply(null,mA.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}kA[254]=kA[254]=1,yA.string2buf=function(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new mA.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},yA.buf2binstring=function(t){return xA(t,t.length)},yA.binstring2buf=function(t){for(var e=new mA.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},yA.buf2string=function(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=kA[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return xA(s,r)},yA.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+kA[t[n]]>e?n:e};var EA=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},OA=xE,AA=kE,TA=yA,CA=EO,RA=EA,IA=Object.prototype.toString,BA=0,LA=-1,MA=0,zA=8;function PA(t){if(!(this instanceof PA))return new PA(t);this.options=AA.assign({level:LA,method:zA,chunkSize:16384,windowBits:15,memLevel:8,strategy:MA,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RA,this.strm.avail_out=0;var n=OA.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==BA)throw new Error(CA[n]);if(e.header&&OA.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?TA.string2buf(e.dictionary):"[object ArrayBuffer]"===IA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=OA.deflateSetDictionary(this.strm,r))!==BA)throw new Error(CA[n]);this._dict_set=!0}}function NA(t,e){var n=new PA(e);if(n.push(t,!0),n.err)throw n.msg||CA[n.err];return n.result}PA.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=TA.string2buf(t):"[object ArrayBuffer]"===IA.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new AA.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=OA.deflate(i,r))&&n!==BA)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(TA.buf2binstring(AA.shrinkBuf(i.output,i.next_out))):this.onData(AA.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=OA.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===BA):2!==r||(this.onEnd(BA),i.avail_out=0,!0)},PA.prototype.onData=function(t){this.chunks.push(t)},PA.prototype.onEnd=function(t){t===BA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=AA.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},SE.Deflate=PA,SE.deflate=NA,SE.deflateRaw=function(t,e){return(e=e||{}).raw=!0,NA(t,e)},SE.gzip=function(t,e){return(e=e||{}).gzip=!0,NA(t,e)};var jA={},DA=en,FA=I,UA=qt,KA=at,GA=function(){var t=DA(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ZA=RegExp.prototype,HA=at,WA=function(t){var e=t.flags;return void 0!==e||"flags"in ZA||UA(t,"flags")||!KA(ZA,t)?e:FA(GA,t)},VA=RegExp.prototype,YA=e((function(t){return t===VA||HA(VA,t)?WA(t):t.flags})),JA={},XA=kE,qA=15,QA=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],$A=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],tT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],nT=kE,rT=wO,iT=xO,oT=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,_,g,y,m,b,w,k,S,x,E,O;n=t.state,r=t.next_in,E=t.input,i=r+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,v=n.lencode,_=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=E[r++]<<p,p+=8,d+=E[r++]<<p,p+=8),m=v[d&g];e:for(;;){if(d>>>=b=m>>>24,p-=b,0===(b=m>>>16&255))O[o++]=65535&m;else{if(!(16&b)){if(0==(64&b)){m=v[(65535&m)+(d&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&m,(b&=15)&&(p<b&&(d+=E[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=E[r++]<<p,p+=8,d+=E[r++]<<p,p+=8),m=_[d&y];n:for(;;){if(d>>>=b=m>>>24,p-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=_[(65535&m)+(d&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(k=65535&m,p<(b&=15)&&(d+=E[r++]<<p,(p+=8)<b&&(d+=E[r++]<<p,p+=8)),(k+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=b,p-=b,k>(b=o-a)){if((b=k-b)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=0,x=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}else if(f<b){if(S+=c+f-b,(b-=f)<w){w-=b;do{O[o++]=h[S++]}while(--b);if(S=0,f<w){w-=b=f;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}for(;w>2;)O[o++]=x[S++],O[o++]=x[S++],O[o++]=x[S++],w-=3;w&&(O[o++]=x[S++],w>1&&(O[o++]=x[S++]))}else{S=o-k;do{O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],w-=3}while(w>2);w&&(O[o++]=O[S++],w>1&&(O[o++]=O[S++]))}break}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p},aT=function(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,_,g=s.bits,y=0,m=0,b=0,w=0,k=0,S=0,x=0,E=0,O=0,A=0,T=null,C=0,R=new XA.Buf16(16),I=new XA.Buf16(16),B=null,L=0;for(y=0;y<=qA;y++)R[y]=0;for(m=0;m<r;m++)R[e[n+m]]++;for(k=g,w=qA;w>=1&&0===R[w];w--);if(k>w&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===R[b];b++);for(k<b&&(k=b),E=1,y=1;y<=qA;y++)if(E<<=1,(E-=R[y])<0)return-1;if(E>0&&(0===t||1!==w))return-1;for(I[1]=0,y=1;y<qA;y++)I[y+1]=I[y]+R[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[I[e[n+m]]++]=m);if(0===t?(T=B=a,d=19):1===t?(T=QA,C-=257,B=$A,L-=257,d=256):(T=tT,B=eT,d=-1),A=0,m=0,y=b,h=o,S=k,x=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-x,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=B[L+a[m]],_=T[C+a[m]]):(v=96,_=0),u=1<<y-x,b=c=1<<S;do{i[h+(A>>x)+(c-=u)]=p<<24|v<<16|_|0}while(0!==c);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,m++,0==--R[y]){if(y===w)break;y=e[n+a[m]]}if(y>k&&(A&f)!==l){for(0===x&&(x=k),h+=b,E=1<<(S=y-x);S+x<w&&!((E-=R[S+x])<=0);)S++,E<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=A&f]=k<<24|S<<16|h-o|0}}return 0!==A&&(i[h+A]=y-x<<24|64<<16|0),s.bits=k,0},sT=1,uT=2,cT=0,lT=-2,fT=1,hT=12,dT=30,pT=852,vT=592;function _T(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function gT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new nT.Buf16(320),this.work=new nT.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function yT(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=fT,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new nT.Buf32(pT),e.distcode=e.distdyn=new nT.Buf32(vT),e.sane=1,e.back=-1,cT):lT}function mT(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,yT(t)):lT}function bT(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?lT:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,mT(t))):lT}function wT(t,e){var n,r;return t?(r=new gT,t.state=r,r.window=null,(n=bT(t,e))!==cT&&(t.state=null),n):lT}var kT,ST,xT=!0;function ET(t){if(xT){var e;for(kT=new nT.Buf32(512),ST=new nT.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(aT(sT,t.lens,0,288,kT,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;aT(uT,t.lens,0,32,ST,0,t.work,{bits:5}),xT=!1}t.lencode=kT,t.lenbits=9,t.distcode=ST,t.distbits=5}function OT(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new nT.Buf8(o.wsize)),r>=o.wsize?(nT.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),nT.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(nT.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}JA.inflateReset=mT,JA.inflateReset2=bT,JA.inflateResetKeep=yT,JA.inflateInit=function(t){return wT(t,15)},JA.inflateInit2=wT,JA.inflate=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,_,g,y,m,b,w,k,S,x,E,O=0,A=new nT.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return lT;(n=t.state).mode===hT&&(n.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,f=s,h=u,S=cT;t:for(;;)switch(n.mode){case fT:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=dT;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=dT;break}if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg="invalid window size",n.mode=dT;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:hT,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,8!=(255&YA(n))){t.msg="unknown compression method",n.mode=dT;break}if(57344&YA(n)){t.msg="unknown header flags set",n.mode=dT;break}n.head&&(n.head.text=c>>8&1),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,n.check=iT(n.check,A,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&YA(n)){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&YA(n)&&((d=n.length)>s&&(d=s),d&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),nT.arraySet(n.head.extra,r,o,d,k)),512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&YA(n)){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&YA(n)){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&YA(n)){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=dT;break}c=0,l=0}n.head&&(n.head.hcrc=YA(n)>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=hT;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=_T(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,2;t.adler=n.check=1,n.mode=hT;case hT:if(5===e||6===e)break t;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(ET(n),n.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=dT}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=dT;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(d=n.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;nT.arraySet(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=hT;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=dT;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[T[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=aT(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid code lengths set",n.mode=dT;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;g=(O=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(y<16)c>>>=_,l-=_,n.lens[n.have++]=y;else{if(16===y){for(E=_+2;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=_,l-=_,0===n.have){t.msg="invalid bit length repeat",n.mode=dT;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(E=_+3;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=_,k=0,d=3+(7&(c>>>=_)),c>>>=3,l-=3}else{for(E=_+7;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=_,k=0,d=11+(127&(c>>>=_)),c>>>=7,l-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=dT;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===dT)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=dT;break}if(n.lenbits=9,x={bits:n.lenbits},S=aT(sT,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid literal/lengths set",n.mode=dT;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=aT(uT,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){t.msg="invalid distances set",n.mode=dT;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,oT(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===hT&&(n.back=-1);break}for(n.back=0;g=(O=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(g&&0==(240&g)){for(m=_,b=g,w=y;g=(O=n.lencode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=_,l-=_,n.back+=_,n.length=y,0===g){n.mode=26;break}if(32&g){n.back=-1,n.mode=hT;break}if(64&g){t.msg="invalid literal/length code",n.mode=dT;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(E=n.extra;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;g=(O=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0==(240&g)){for(m=_,b=g,w=y;g=(O=n.distcode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=_,l-=_,n.back+=_,64&g){t.msg="invalid distance code",n.mode=dT;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(E=n.extra;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=dT;break}n.mode=25;case 25:if(0===u)break t;if(d=h-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=dT;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),v=n.window}else v=i,p=a-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[a++]=v[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break t;i[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(h-=u,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=YA(n)?iT(n.check,i,h,a-h):rT(n.check,i,h,a-h)),h=u,(YA(n)?c:_T(c))!==n.check){t.msg="incorrect data check",n.mode=dT;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&YA(n)){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=dT;break}c=0,l=0}n.mode=29;case 29:S=1;break t;case dT:S=-3;break t;case 31:return-4;default:return lT}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==t.avail_out&&n.mode<dT&&(n.mode<27||4!==e))&&OT(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=YA(n)?iT(n.check,i,h,t.next_out-h):rT(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===hT?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&S===cT&&(S=-5),S},JA.inflateEnd=function(t){if(!t||!t.state)return lT;var e=t.state;return e.window&&(e.window=null),t.state=null,cT},JA.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?lT:(n.head=e,e.done=!1,cT):lT},JA.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?lT:11===n.mode&&rT(1,e,r,0)!==n.check?-3:OT(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,cT):lT},JA.inflateInfo="pako inflate (from Nodeca project)";var AT={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var TT=JA,CT=kE,RT=yA,IT=AT,BT=EO,LT=EA,MT=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},zT=Object.prototype.toString;function PT(t){if(!(this instanceof PT))return new PT(t);this.options=CT.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new LT,this.strm.avail_out=0;var n=TT.inflateInit2(this.strm,e.windowBits);if(n!==IT.Z_OK)throw new Error(BT[n]);if(this.header=new MT,TT.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=RT.string2buf(e.dictionary):"[object ArrayBuffer]"===zT.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=TT.inflateSetDictionary(this.strm,e.dictionary))!==IT.Z_OK))throw new Error(BT[n])}function NT(t,e){var n=new PT(e);if(n.push(t,!0),n.err)throw n.msg||BT[n.err];return n.result}PT.prototype.push=function(t,e){var n,r,i,o,a,s=this.strm,u=this.options.chunkSize,c=this.options.dictionary,l=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?IT.Z_FINISH:IT.Z_NO_FLUSH,"string"==typeof t?s.input=RT.binstring2buf(t):"[object ArrayBuffer]"===zT.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new CT.Buf8(u),s.next_out=0,s.avail_out=u),(n=TT.inflate(s,IT.Z_NO_FLUSH))===IT.Z_NEED_DICT&&c&&(n=TT.inflateSetDictionary(this.strm,c)),n===IT.Z_BUF_ERROR&&!0===l&&(n=IT.Z_OK,l=!1),n!==IT.Z_STREAM_END&&n!==IT.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==IT.Z_STREAM_END&&(0!==s.avail_in||r!==IT.Z_FINISH&&r!==IT.Z_SYNC_FLUSH)||("string"===this.options.to?(i=RT.utf8border(s.output,s.next_out),o=s.next_out-i,a=RT.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&CT.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(CT.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==IT.Z_STREAM_END);return n===IT.Z_STREAM_END&&(r=IT.Z_FINISH),r===IT.Z_FINISH?(n=TT.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===IT.Z_OK):r!==IT.Z_SYNC_FLUSH||(this.onEnd(IT.Z_OK),s.avail_out=0,!0)},PT.prototype.onData=function(t){this.chunks.push(t)},PT.prototype.onEnd=function(t){t===IT.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=CT.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},jA.Inflate=PT,jA.inflate=NT,jA.inflateRaw=function(t,e){return(e=e||{}).raw=!0,NT(t,e)},jA.ungzip=NT;var jT={};(0,kE.assign)(jT,SE,jA,AT);var DT=e(jT),FT=e(tt.setInterval),UT=1,KT=function(){function t(e){rg(this,t),Wg(this,"lockingPromise",cy.resolve()),Wg(this,"locks",0),Wg(this,"name",""),Wg(this,"lockId",void 0),this.lockId=UT++,e&&(this.name=e)}return sg(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var n=new cy((function(n){t=function(){e.locks-=1,n()}})),r=this.lockingPromise.then((function(){return t}));return this.lockingPromise=this.lockingPromise.then((function(){return n})),r}}]),t}(),GT="__rtc_umd_name__",ZT=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},HT=function(){function t(e){rg(this,t),Wg(this,"storeName",void 0),Wg(this,"pendingList",[]),this.storeName=e,!Vk()&&ZT()&&this._checkAndCreateStore(e)}var e,n,r,i,o,a,s;return sg(t,[{key:"_checkAndCreateStore",value:(s=ng(tg().mark((function e(n,r){var i,o,a=this;return tg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!ZT.databases){e.next=6;break}return e.next=6,new cy((function(t){var e=function(){return ZT.databases().finally(t)};o=FT(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new cy((function(e){t.db&&(t.db.close(),delete t.db);var o=r?ZT().open(GT,r):ZT().open(GT);o.onupgradeneeded=function(){o.result.createObjectStore(n)},o.onerror=function(){console.error("IndexedDBInterface error",o.error)},o.onsuccess=function(){var r=o.result;t.db=r;try{var s;t.db.transaction(a.storeName,"readonly"),Vg(s=a.pendingList).call(s,function(){var t=ng(tg().mark((function t(e){var n,r,i,o;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.txMode,r=e.pendResolve,i=e.pendReject,t.prev=1,t.next=4,a._getStore(n);case 4:o=t.sent,r(o),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),i();case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()),e()}catch(u){e(a._checkAndCreateStore(n,r.version+1))}finally{i()}}})));case 7:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"_getStore",value:(a=ng(tg().mark((function e(n){var r,i=this;return tg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:return r=e.sent,e.abrupt("return",new cy((function(e,o){if(!t.db)return i.pendingList.push({txMode:n,pendResolve:e,pendReject:o}),void r();try{e(t.db.transaction(i.storeName,n).objectStore(i.storeName))}catch(a){return void i.pendingList.push({txMode:n,pendResolve:e,pendReject:o})}finally{r()}})));case 4:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)})},{key:"put2String",value:(o=ng(tg().mark((function t(e,n){var r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{r=Dk(e)}catch(i){r=e}return t.next=3,this.put(r,n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"get4String",value:(i=ng(tg().mark((function t(e){var n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.get(e);case 2:n=t.sent;try{r=JSON.parse(n)}catch(i){r=n}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"put",value:(r=ng(tg().mark((function t(e,n){var r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return r=t.sent,t.abrupt("return",new cy((function(t,i){var o=r.put(e,n);o.onsuccess=function(){t()},o.onerror=function(t){i(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"get",value:(n=ng(tg().mark((function t(e){var n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readonly");case 2:return n=t.sent,t.abrupt("return",new cy((function(t,r){var i=n.get(e);i.onsuccess=function(){t(i.result)},i.onerror=function(t){r(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"del",value:(e=ng(tg().mark((function t(e){var n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return n=t.sent,t.abrupt("return",new cy((function(t,r){var i=n.delete(e);i.onsuccess=function(){t()},i.onerror=function(t){r(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}();function WT(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=qg(t);for(r=0;r<o.length;r++)n=o[r],ox(e).call(e,n)>=0||(i[n]=t[n]);return i}(t,e);if(Py){var o=Py(t);for(r=0;r<o.length;r++)n=o[r],ox(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}Wg(HT,"db",void 0),Wg(HT,"state","init"),Wg(HT,"_promiseLock",new KT("iDB"));var VT=["message"];var YT,JT,XT,qT=new(function(){function t(){rg(this,t),Wg(this,"name","LongStringReportor"),Wg(this,"inBuffer",[]),Wg(this,"outBuffer",[])}return sg(t,[{key:"push",value:function(t){var e;t.message&&this.inBuffer.push(Lx(Lx({},t),{},{message:{id:My(e=Wk()).call(e,0,3),index:0,end:!0,msg:t.message}}))}},{key:"splice",value:function(t){for(var e=[],n=0;this.outBuffer.length;){var r=Dk(this.outBuffer[0]).length;if(!(r<t))break;t-=r,n+=r,e.push(this.outBuffer.shift())}for(;this.inBuffer[0]&&t>0;){var i=this.inBuffer[0],o=i.message,a=Lx(Lx({},WT(i,VT)),{},{message:Lx(Lx({},o),{},{msg:""})}),s=Dk(a).length,u=t-s,c=Lx({},a);if(u>o.msg.length)c.message.msg=o.msg,this.inBuffer.shift();else{if(!(u>=10))break;var l,f,h=My(l=o.msg).call(l,0,u);c.message.msg=h,c.message.end=!1,this.inBuffer[0].message.msg=My(f=o.msg).call(f,u),this.inBuffer[0].message.index++}var d=Dk(c.message),p=d.length;t-=p+s,n+=p+s,e.push(Lx(Lx({},c),{},{message:d}))}return{payload:e,payloadSize:n}}},{key:"unshift",value:function(t){this.outBuffer=By(t).call(t,this.outBuffer)}},{key:"get",value:function(){var t,e;return By(t=[]).call(t,AS(this.outBuffer),AS(aS(e=this.inBuffer).call(e,(function(t){return Lx(Lx({},t),{},{message:Dk(t.message)})}))))}},{key:"set",value:function(t){var e=this,n=[],r=[];Vg(t).call(t,(function(t){!function(t){return void 0!==t.report_id}(t)?(t.message||(t.message=""),e.inBuffer.push(Lx(Lx({},t),{},{message:JSON.parse(t.message)}))):e.outBuffer.push(t)})),this.outBuffer=By(n).call(n,this.outBuffer),this.inBuffer=By(r).call(r,this.inBuffer)}},{key:"isEmpty",value:function(){return 0===this.inBuffer.length&&0===this.outBuffer.length}}]),t}()),QT={product_line:"rtc",report_version:"5",os:"web",user_agent:Vk()?"":null===(YT=navigator)||void 0===YT?void 0:YT.userAgent,platform:"web",product:"webrtc",app_state:"active"},$T="LogReportor",tC="undefined"!=typeof window&&(Mk(JT=window.location.search).call(JT,"_rtc_debug_")||(null===(XT=window.localStorage)||void 0===XT?void 0:XT.getItem("_rtc_debug_"))),eC=function(){function t(e){rg(this,t),Wg(this,"_buffer",void 0),this._buffer=new HT(e)}var e,n;return sg(t,[{key:"set",value:(n=ng(tg().mark((function t(e,n){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._buffer.put2String(e,n);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"get",value:(e=ng(tg().mark((function t(e){var n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.prev=1,t.next=4,this._buffer.get4String(e);case 4:r=t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",null!==(n=r)&&void 0!==n?n:[]);case 10:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(t){return e.apply(this,arguments)})}]),t}(),nC=function(){function t(){var e=this;rg(this,t),Wg(this,"reportCommon",QT),Wg(this,"reportIds",new Zw),Wg(this,"dataBuffer",[]),Wg(this,"reportorList",[]),Wg(this,"dbBuffer",void 0),Wg(this,"posting",!1),Wg(this,"sucSendTimer",void 0),Wg(this,"preSucTime",0),Wg(this,"errSendTimer",void 0),Wg(this,"errSendDelay",100),Wg(this,"_logServerUrl",void 0),Wg(this,"_retryCount",0),Wg(this,"_reportLimit",5e5),Wg(this,"_disableTimeout",!1),Vk()||(window.addEventListener("beforeunload",(function(){clearTimeout(e.errSendTimer),clearTimeout(e.sucSendTimer),e.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&e.setCommonStats({app_state:"background"})})),tC&&(window.__rtc_debug_reportor__=this)),lx.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),lx.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),Ay((function(){e.reportorList.push(gC),e.reportorList.push(qT)}))}var e;return sg(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=Yx(this.reportCommon,t)}},{key:"getCommonStats",value:function(){return this.reportCommon}},{key:"setReportLimit",value:function(t){this._reportLimit=Math.max(t,5e4),this._reportLimit=Math.min(t,5e5)}},{key:"getReportId",value:function(t){var e;t=null!==(e=t)&&void 0!==e?e:"__global__",this.reportIds.has(t)||this.reportIds.set(t,0);var n=this.reportIds.get(t);return void 0===n&&(uC("no reportId in reportId map with engine-session-id ".concat(t),0,{}),n=0),this.reportIds.set(t,n+1),n}},{key:"push",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.send(t);else{var e,n=null!==(e=t.engine_session_id)&&void 0!==e?e:"__global__";this.reportIds.has(n)||this.reportIds.set(n,0),this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&ok()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send())}}},{key:"enableIndexedDBBuffer",value:function(){var t,e=this;this.dbBuffer||(this.dbBuffer=new eC("ReportorDBBuffer"),this.dbBuffer.get($T).then((function(t){Vg(t).call(t,(function(t){e.push(t)}))})),Vg(t=this.reportorList).call(t,(function(t){var n;null===(n=e.dbBuffer)||void 0===n||n.get(t.name).then((function(e){t.set(e)}))})))}},{key:"backup",value:function(){var t=this;try{var e,n;null===(e=this.dbBuffer)||void 0===e||e.set(AS(this.dataBuffer),$T),Vg(n=this.reportorList).call(n,(function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.set(AS(e.get()),e.name)}))}catch(r){uC("Error when save log into IDB",-1,r)}}},{key:"unshift",value:function(t){var e,n;this.dataBuffer=By(e=t[0]).call(e,this.dataBuffer),Vg(n=this.reportorList).call(n,(function(e,n){var r;e.unshift(null!==(r=t[n+1])&&void 0!==r?r:[])}))}},{key:"_splice",value:function(){var t,e,n=this,r=function(t,e){for(var n=0,r=0;r<t.length;r++)if((n+=Dk(t[r]).length)>e)return r;return t.length}(this.dataBuffer,this._reportLimit);0===r&&this.dataBuffer.length>0&&(this._reportLimit=Dk(this.dataBuffer[0]).length+10,r=1,uC("update report limit to ".concat(this._reportLimit),0,null));var i=VS(t=this.dataBuffer).call(t,0,r),o=Dk(i).length,a=[i],s=this._reportLimit-o;return Vg(e=this.reportorList).call(e,(function(t){var e=VS(t).call(t,s),r=e.payload,i=e.payloadSize;Vg(r).call(r,(function(t){var e,r,i;void 0===t.report_id&&(t.report_id=n.getReportId(t.engine_session_id),!Vk()&&window.__onRTCReport&&(null===(e=(r=window).__onRTCReport)||void 0===e||e.call(r,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,n.getCommonStats())))})),a.push(r),s-=i})),a}},{key:"send",value:(e=ng(tg().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=aE(r=this.reportorList).call(r,(function(t,e){return t&&e.isEmpty()}),!0),(e||this.dataBuffer.length||!i)&&this._logServerUrl){t.next=4;break}return t.abrupt("return");case 4:if(e||(this.posting=!0),o=[],e||(o=this._splice()),a=tC,s={data:e||wE(o).call(o),header:Lx(Lx({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?Dk(s):DT.gzip(Dk(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,Ay((function(){c.abort()}),1e4)}catch(d){console.warn("AbortController is not supported"),this._disableTimeout=!0}return a||(u.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),h=null,t.prev=13,t.next=16,fetch(this._logServerUrl,u);case 16:if(200!==(l=t.sent).status&&304!==l.status){t.next=23;break}return t.t0=JSON,t.next=21,l.text();case 21:t.t1=t.sent,h=t.t0.parse.call(t.t0,t.t1);case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(13),f=t.t2;case 28:e||(this.posting=!1),h&&0===h.StatusCode?e||n||this.sucSend():(Ay((function(){var t,e,n,r;uC(By(t="reportor post error, resJSON:".concat(null===(e=h)||void 0===e?void 0:e.toString()," err:")).call(t,f),null!==(n=null===(r=l)||void 0===r?void 0:r.status)&&void 0!==n?n:-1,f)}),0),e?this.send(e):(this.unshift(o),n?this.send():this.errSend()));case 30:case"end":return t.stop()}}),t,this,[[13,25]])}))),function(t,n){return e.apply(this,arguments)})},{key:"sucSend",value:function(){var t;this.errSendDelay=100,this._retryCount=0,this.preSucTime=ok(),this.sucSendTimer=Ay($g(t=this.send).call(t,this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=Ay((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var rC,iC=new nC,oC=function(){function t(e){rg(this,t),Wg(this,"modifyIds",{}),this.id=e}return sg(t,[{key:"report",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Lx(Lx(Lx({event_key:t,rtc_timestamp:ok()},this.modifyIds),e),{},{common_extra_info:Dk(i),report_id:iC.getReportId(this.modifyIds.engine_session_id)});!Vk()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,this.modifyIds.engine_session_id,o,iC.getCommonStats()));iC.push(o)}},{key:"reportLog",value:function(t){var e=Lx(Lx({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:ok()},this.modifyIds),{},{message:t});gC.push(e)}},{key:"reportLongString",value:function(t,e){var n=Lx(Lx({event_key:"rtc_invoke_status",sdk_api_name:"sdk_long_string_".concat(t),rtc_timestamp:ok()},this.modifyIds),{},{message:e});qT.push(n)}},{key:"set",value:function(t){this.modifyIds=Yx(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}();Ay((function(){rC=new xC("MessageReportor",1)}),0);var aC=function(){function t(e){rg(this,t),Wg(this,"_preTime",ok()),Wg(this,"_one2oneNum",0),Wg(this,"_one2manyNum",0),Wg(this,"_one2oneMsgCache",new Zw),Wg(this,"_one2manyMsgCache",new Zw),Wg(this,"roomId",""),Wg(this,"userId",""),Wg(this,"rtsSessionId",""),this.id=e}return sg(t,[{key:"needReport",value:function(e){return!!t.config&&(ok()-this._preTime>=36e5&&(this._preTime=ok(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===e&&this._one2oneNum<t.config.max_one2one_fpt_per_hour&&Math.random()<=t.config.one2one_fpt_ratio/100||"one2many"===e&&this._one2manyNum<t.config.max_one2many_fpt_per_hour&&Math.random()<=t.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(e){var n;this._one2oneMsgCache.set(e.msg_id,Lx({config_version:(null===(n=t.config)||void 0===n?void 0:n.version)||""},e))}},{key:"updateP2PMsg",value:function(t,e){var n=this._one2oneMsgCache.get(t);n&&this._one2oneMsgCache.set(t,Lx(Lx({},n),e))}},{key:"cacheCustomMsg",value:function(e){var n;this._one2manyMsgCache.set(e.msg_id,Lx({config_version:(null===(n=t.config)||void 0===n?void 0:n.version)||""},e))}},{key:"updateOne2ManyMsg",value:function(t,e){var n=this._one2manyMsgCache.get(t);n&&this._one2manyMsgCache.set(t,Lx(Lx({},n),e))}},{key:"reportP2PMsg",value:function(t){var e,n=this._one2oneMsgCache.get(t);n&&(rC.info("reportP2PMsg",n.type,Dk(n)),null===(e=fC(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportOne2ManyMsg",value:function(t){var e,n=this._one2manyMsgCache.get(t);n&&(rC.info("reportOne2ManyMsg",n.type,Dk(n)),null===(e=fC(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportMsgRecv",value:function(e){var n,r;e.config_version=(null===(n=t.config)||void 0===n?void 0:n.version)||"",rC.info("reportMsgRecv",e.type,Dk(e)),null===(r=fC(this.id))||void 0===r||r.report("rts_message",e)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=ok(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Wg(aC,"config",void 0);var sC=new oC("global"),uC=function(t,e,n){sC.report("rtc_error",{message:t,error_code:e},n)};var cC,lC=new Zw,fC=function(t){return lC.get(t)},hC="undefined"!=typeof window&&Mk(cC=window.location.search).call(cC,"_rtc_upload_console_");function dC(t,e){return aS(t).call(t,(function(t){var n,r,i="";try{if("string"==typeof t)return t;if(void 0===t)return"undefined";if(null===t)return"null";if(t instanceof MediaStreamTrack)return Yk(t);if(t instanceof MediaStream)return null==(r=t)?"undefined | null":"string"==typeof r?r:Dk({id:r.id,active:r.active});if(t instanceof RTCRtpSender)return Jk(t);if(t instanceof RTCRtpReceiver)return Xk(t);if(t instanceof RTCRtpTransceiver)return null==(n=t)?"undefined | null":"string"==typeof n?n:Dk({currentDirection:n.currentDirection,direction:n.direction,mid:n.mid,stopped:n.stopped,receiver:Xk(n.receiver),sender:Jk(n.sender)});i=Dk(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=My(i).call(i,0,e)),i})).join(", ")}var pC,vC,_C,gC=new(function(){function t(){var e=this;rg(this,t),Wg(this,"name","ConsoleReportor"),Wg(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),Wg(this,"_consoleReportId",0),Wg(this,"_engineReportIdMap",new Zw),Wg(this,"_enabled","NULL"),Wg(this,"_consoleCutLength",lx.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),Wg(this,"buffer",[]),hC&&Ay((function(){e.switchOn()}),0),lx.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),lx.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return sg(t,[{key:"enabled",get:function(){return"OFF"!==this._enabled}},{key:"switchOn",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch ON"),this._enabled="ON")}},{key:"turnOff",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch OFF"),this._enabled="OFF",this.buffer=[])}},{key:"getEngineConsoleId",value:function(t){var e,n=null!==(e=this._engineReportIdMap.get(t))&&void 0!==e?e:0;return this._engineReportIdMap.set(t,n+1),n}},{key:"report",value:function(t,e,n,r,i,o,a,s,u){var c,l,f,h,d,p,v,_,g,y,m,b=this;if("OFF"!==this._enabled){var w,k=fC(e),S=this._consoleReportId++,x=this.getEngineConsoleId(e),E=dC(u,this._consoleCutLength),O=AS(u),A="".concat(s).replace(/%o|%s/gi,(function(){return dC([O.shift()],b._consoleCutLength)})),T=By(c=By(l=By(f=By(h=By(d=By(p=By(v=By(_=By(g=By(y=By(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(g,x,"]-")).call(_,n,"-")).call(v,t,"[")).call(p,r,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,A," ")).call(c,E);k?k.reportLog(T):(w=T,sC.reportLog(w))}}},{key:"push",value:function(t){"OFF"!==this._enabled&&this.buffer.push(t)}},{key:"splice",value:function(t){var e;if("ON"!==this._enabled)return{payload:[],payloadSize:0};var n=function(t,e){for(var n=0,r=0;r<t.length;r++){var i=Dk(t[r]).length;if((n+=i)>e)return{index:r,size:n-i}}return{index:t.length,size:n}}(this.buffer,t),r=n.index,i=n.size;return{payload:VS(e=this.buffer).call(e,0,r),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=By(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"set",value:function(t){this.buffer=By(t).call(t,this.buffer)}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),yC="[VERTC]",mC="#0050b3",bC=(Wg(pC={},"DEBUG","rgba(0, 0, 0, 0)"),Wg(pC," INFO","rgba(93, 173, 226, 0)"),Wg(pC," WARN","rgba(255, 119, 0, 0.3)"),Wg(pC,"ERROR","rgba(255, 0, 0, 0.3)"),Wg(pC," SUCC","rgba(0, 119, 0, 0.3)"),pC),wC="undefined"!=typeof window&&(Mk(vC=window.location.search).call(vC,"_rtc_debug_")||(null===(_C=window.localStorage)||void 0===_C?void 0:_C.getItem("_rtc_debug_"))),kC=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";rg(this,t),Wg(this,"indent",void 0),Wg(this,"module",void 0),Wg(this,"_engineId",void 0),this.module=e,this.indent=n,this._engineId=r}return sg(t,[{key:"_print",value:function(t,e){for(var n,r,i,o,a,s,u,c,l=arguments.length,f=new Array(l>2?l-2:0),h=2;h<l;h++)f[h-2]=arguments[h];var d=f.shift();try{var p,v,_,g,y=By(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return Dk(t)}));tS.set(By(v=By(_=By(g="".concat(yC,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,aS(y).call(y,(function(t){return Dk(t)})).join(", ")))}catch(MC){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=SC();gC.report(yC,this._engineId,k,t,b,this.module,e,d,f),wC&&(n=console).log.apply(n,By(r=[By(i=By(o=By(a=By(s=By(u=By(c="%c".concat(k,"-")).call(c,yC,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(mC,";"),"background-color:".concat(bC[t],";"),"color:".concat(mC,";")]).call(r,f))}},{key:"print",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" INFO",t]).call(e,r))}},{key:"debug",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=["DEBUG",t]).call(e,r))}},{key:"info",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" INFO",t]).call(e,r))}},{key:"warn",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" WARN",t]).call(e,r))}},{key:"error",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=["ERROR",t]).call(e,r))}},{key:"success",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" SUCC",t]).call(e,r))}}]),t}(),SC=function(){var t,e,n=new Date;return By(t="".concat(n.toTimeString().split(" ")[0],":")).call(t,OS(e=n.getMilliseconds().toString()).call(e,3,"0"))},xC=kC,EC=function(t){return t[t.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",t[t.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",t[t.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",t}(EC||{}),OC=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(OC||{}),AC=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(AC||{}),TC=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(TC||{}),CC=new xC("RTCBeautyExtension",1),RC="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662.rtc.fix/202303229b38",IC="".concat(RC,"/externals/webar.main.sdk.iife.9b380e37.js");var BC=function(t){Tg(h,t);var e,n,r,i,o,a,s,u,c,l,f=Hg(h);function h(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(rg(this,h),Wg(ug(e=f.call(this)),"name","RTCBeautyExtension"),Wg(ug(e),"_enable",!1),Wg(ug(e),"_beautyExt",void 0),Wg(ug(e),"_backgroundExt",void 0),Wg(ug(e),"_enableBeauty",!1),Wg(ug(e),"_enableBackground",!1),Wg(ug(e),"_fps",15),Wg(ug(e),"_backgroundBackend",TC.CPU),Wg(ug(e),"_backgroundAIModelType",AC.QUALITY),Wg(ug(e),"_backgroundMode",OC.BACKGROUND_BLUR),Wg(ug(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),Wg(ug(e),"_preTrack",null),h._sdkUrl=n.sdkUrl||IC,h._sdkSourceUrl=n.sdkSourceUrl||RC,h._sdkAuthServer=n.sdkAuthServer||"",h._sdkHash=n.sdkHash||"",h._authFileUrl=n.authFileUrl||"",n.aiBackend===TC.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=TC.GPU):e._backgroundBackend=TC.GPU));return e._backgroundAIModelType=null!==(t=n.aiModelType)&&void 0!==t?t:AC.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return sg(h,[{key:"initWebArSDK",value:(l=ng(tg().mark((function t(){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==window.WebARMainSDK){t.next=3;break}return t.next=3,h.loadWebARSDK();case 3:h._sdk||(window.WebARMainSDK.WEBAR_CONSTANTS.REROURCE_PATH_CONFIG.SDK_RESOURCE_URL=h._sdkSourceUrl,h._sdk=new window.WebARMainSDK.WebSDK);case 4:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"init",value:(c=ng(tg().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,p,v,_,g,y=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._rtcSdkApiCall("".concat(this.name,".init"),0,{hasAuthFile:!!h._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),t.next=3,this.initWebArSDK();case 3:return l=null==e?void 0:e.videoCaptureConfig,this._fps=l?"number"==typeof(null==l?void 0:l.frameRate)?(null==l?void 0:l.frameRate)||15:(null==l||null===(n=l.frameRate)||void 0===n?void 0:n.ideal)||15:15,CC.print("init fps",this._fps),null===(r=h._sdk)||void 0===r||r.setOptions({maxFps:this._fps,autoSetCanvasToVideoSize:!0,authFileUrl:h._authFileUrl||""}),t.next=9,null===(i=h._sdk)||void 0===i?void 0:i.setDocumentTemplate(window.WebARMainSDK.API.DocumentTemplateNames.RTC);case 9:return t.next=11,null===(o=h._sdk)||void 0===o?void 0:o.initialize(h._authFileUrl?{aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}:{});case 11:CC.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(f=h._sdk)||void 0===f?void 0:f.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(d=h._sdk)||void 0===d?void 0:d.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),Vg(a=Qg(this._beautyDefaultValue)).call(a,(function(t){y._beautyExt&&(y._beautyExt[t]=y._beautyDefaultValue[t])})),(p=null===(s=h._sdk.video)||void 0===s||null===(u=s._video)||void 0===u?void 0:u._video)&&(p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.opacity="0",p.style.pointerEvents="none"),"safari"===(m=void 0,m="none",null!==window.navigator.userAgent.match("Firefox")?m="mozilla":null!==window.navigator.userAgent.match("Chrome")?(m="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(m="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(m="safari"),m)&&(_=null===(v=h._sdk)||void 0===v?void 0:v.canvas)&&(_.style.width="1px",_.style.height="1px",_.style.position="fixed",_.style.top="0",_.style.left="0",_.style.opacity="0",_.style.pointerEvents="none",_.style.zIndex="-9999",document.body.appendChild(_)),g=$g(c=window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame).call(c,window.WebARMainSDK.documentManager._activeDocTemplate._pipeline),window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame=function(){0!==window.WebARMainSDK.App.video.videoElement.videoWidth&&0!==window.WebARMainSDK.App.video.videoElement.videoHeight&&g()};case 20:case"end":return t.stop()}var m}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=ng(tg().mark((function t(){var e,n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="",t.prev=1,t.next=4,this.initWebArSDK();case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e=(null===t.t0||void 0===t.t0?void 0:t.t0.toString())||(null===t.t0||void 0===t.t0?void 0:t.t0.stack)||"";case 9:if(!h._sdk){t.next=17;break}return t.next=12,h._sdk.checkCompatibility();case 12:return(r=t.sent).isCompatible||0!==uy(n=r.reasons).call(n,(function(t){return 4!==t})).length||(r.isCompatible=!0,r.reasons=[]),t.abrupt("return",r);case 17:return t.abrupt("return",{isCompatible:!1,reasons:[100],message:e});case 18:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(){return u.apply(this,arguments)})},{key:"effect",value:(s=ng(tg().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n||e.mediaTrack,this._enableBeauty||this._enableBackground){t.next=4;break}return this._preTrack&&(null===(i=h._sdk)||void 0===i||i.stopFrame()),t.abrupt("return",r);case 4:if("video"!==e.mediaType||e.streamIndex!==Ww.STREAM_INDEX_MAIN){t.next=16;break}if(this._preTrack===r){t.next=11;break}return t.next=8,null===(c=h._sdk)||void 0===c?void 0:c.setStreamInput(new MediaStream([r]));case 8:return this._preTrack=r,t.next=11,null===(l=h._sdk)||void 0===l||null===(f=l.video)||void 0===f?void 0:f.start();case 11:if(null===(o=h._sdk)||void 0===o||o.startFrame(),null===(a=this._beautyExt)||void 0===a||a.setEnable(this._enableBeauty),null===(s=this._backgroundExt)||void 0===s||s.setEnable(this._enableBackground),null===(u=h._sdk)||void 0===u||!u.canvas){t.next=16;break}return t.abrupt("return",h._sdk.canvas.captureStream(this._fps).getVideoTracks()[0]);case 16:return t.abrupt("return",r);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"enable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".enable"),0,""),this.enableBeauty()}},{key:"enableBeauty",value:(a=ng(tg().mark((function t(){var e,n,r,i,o=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),n=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,Vg(e=Qg(this._beautyDefaultValue)).call(e,(function(t){o._beautyExt&&(o._beautyExt[t]=o._beautyDefaultValue[t])})),this._preTrack&&!n){t.next=8;break}return t.abrupt("return",new cy((function(t,e){o.emit("reset-video-effect",t,e)})));case 8:null===(r=h._sdk)||void 0===r||r.startFrame(),null===(i=this._beautyExt)||void 0===i||i.setEnable(!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"disable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".disable"),0,""),this.disableBeauty()}},{key:"disableBeauty",value:(o=ng(tg().mark((function t(){var e,n,r=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBeauty"),0,""),e=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new cy((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:null===(n=this._beautyExt)||void 0===n||n.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"enableVirtualBackground",value:(i=ng(tg().mark((function t(){var e,n,r,i,o=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBackground"),0,""),n=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,null===(e=this._backgroundExt)||void 0===e||e.setBackgroundMode(this._backgroundMode),this._preTrack&&!n){t.next=8;break}return t.abrupt("return",new cy((function(t,e){o.emit("reset-video-effect",t,e)})));case 8:null===(r=h._sdk)||void 0===r||r.startFrame(),null===(i=this._backgroundExt)||void 0===i||i.setEnable(!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"disableVirtualBackground",value:(r=ng(tg().mark((function t(){var e,n,r=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBackground"),0,""),e=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new cy((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:null===(n=this._backgroundExt)||void 0===n||n.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(t,e){switch(this._rtcSdkApiCall("".concat(this.name,".setBeautyIntensity"),0,[t,e]),e=Math.min(1,Math.max(0,e)),t){case EC.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case EC.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case EC.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.smoothIntensity=e,this._beautyExt&&(this._beautyExt.smoothIntensity=e)}}},{key:"setBackgroundMode",value:function(t){var e;this._rtcSdkApiCall("".concat(this.name,".setBackgroundMode"),0,[t]),this._backgroundMode=t,null===(e=this._backgroundExt)||void 0===e||e.setBackgroundMode(t)}},{key:"getBackgroundImage",value:function(){var t;return this._rtcSdkApiCall("".concat(this.name,".getBackgroundImage"),0,""),(null===(t=this._backgroundExt)||void 0===t?void 0:t.backgroundImage)||""}},{key:"loadBackgroundImage",value:function(t){return this._rtcSdkApiCall("".concat(this.name,".loadBackgroundImage"),0,[t]),this._backgroundExt?this._backgroundExt.loadBackgroundImage(t):cy.reject(new Error("init extension first"))}},{key:"setAIModelType",value:function(t){var e;this._rtcSdkApiCall("".concat(this.name,".setAIModelType"),0,[t]),this._backgroundAIModelType=t,null===(e=this._backgroundExt)||void 0===e||e.setAIModelType(t)}},{key:"applyConstraints",value:function(t,e){var n,r=e.width,i=e.height;t!==Ww.STREAM_INDEX_SCREEN&&"number"==typeof r&&"number"==typeof i&&(null===(n=h._sdk)||void 0===n||n.setCanvasSize(r,i))}},{key:"isSupported",value:(n=ng(tg().mark((function t(){var e,n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkCompatibility();case 2:return(n=t.sent).isCompatible||0!==uy(e=n.reasons).call(e,(function(t){return 4!==t})).length||(n.isCompatible=!0),t.abrupt("return",n.isCompatible);case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var t,e,n;null===(t=h._sdk)||void 0===t||t.stopFrame(),null===(e=h._sdk)||void 0===e||null===(n=e.video)||void 0===n||n.stop()}},{key:"_rtcSdkApiCall",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null===(e=this.monitor)||void 0===e||e.report("rtc_sdk_api_call",{sdk_api_name:t,error_code:n,message:r})}}],[{key:"loadWebARSDK",value:(e=ng(tg().mark((function t(){var e,n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,n=!1,h._loadingProcess||(h._loadingProcess=new cy((function(t,i){try{(e=document.createElement("script")).type="text/javascript",e.async=!0,e.src=h._sdkUrl,e.id="extension-webar-sdk",e.addEventListener("load",(function(){n=!0,clearTimeout(r),t()})),e.addEventListener("error",(function(t){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(t)})),document.body.appendChild(e)}catch(MC){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(MC)}r=Ay((function(){n||(e&&document.body.removeChild(e),h._loadingProcess=void 0),i(new Error("Load WebAR SDK timeout"))}),1e4)}))),t.abrupt("return",h._loadingProcess);case 6:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})}]),h}(Vw);Wg(BC,"_loadingProcess",void 0),Wg(BC,"_sdk",void 0),Wg(BC,"_sdkUrl",void 0),Wg(BC,"_sdkSourceUrl",void 0),Wg(BC,"_sdkHash",""),Wg(BC,"_sdkAuthServer",""),Wg(BC,"_authFileUrl","");var LC=window.BytePlusRTCExtensions||{};LC.RTCBeautyExtension=BC,LC.EffectBeautyMode=EC,window.BytePlusRTCExtensions=LC}));
7
7
  //# sourceMappingURL=index.min.js.map
package/index.d.ts CHANGED
@@ -33,7 +33,7 @@ declare class VERTC implements IVERTC {
33
33
  commitInfo: string;
34
34
  downloadLog: (key?: string | undefined) => void;
35
35
  setLogConfig: ({ logLevel, LogfileSize, }: {
36
- logLevel?: "none" | "error" | "info" | "warning" | "trace" | undefined;
36
+ logLevel?: "none" | "error" | "warning" | "info" | "trace" | undefined;
37
37
  LogfileSize?: number | undefined;
38
38
  }) => void;
39
39
  }
@@ -60,6 +60,7 @@ declare const Config: {
60
60
  VIDEO_STALL_DATA: number;
61
61
  AUDIO_STALL_DATA: number;
62
62
  IOS_SAFARI_ORIENTATION: boolean;
63
+ FALLBACK_ENCODE_CODEC: string;
63
64
  };
64
65
  declare const _default: VERTC;
65
66
  declare enum AudioMixingError {
@@ -5327,6 +5328,7 @@ export interface SetParamInterface {
5327
5328
  SIGNAL_CROP_JOINROOM: boolean;
5328
5329
  VIDEO_STALL_DATA: number;
5329
5330
  AUDIO_STALL_DATA: number;
5331
+ FALLBACK_ENCODE_CODEC: string;
5330
5332
  }
5331
5333
 
5332
5334
  /**