@byteplus/rtc 4.56.0 → 4.56.1-meeting.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extension-beauty/index.js +1 -1
- package/extension-beauty/index.umd.js +1 -1
- package/index.d.ts +17 -0
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!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}()||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,E={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},x=E.all,O=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T={},A=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=o,I=Function.prototype.call,C=R?I.bind(I):function(){return I.apply(I,arguments)},L={},B={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,P=N&&!B.call({1:2},1);L.f=P?function(t){var e=N(this,t);return!!e&&e.enumerable}:B;var z,D,j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},M=i,F=m,U=Object,G=k("".split),Z=M((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==F(t)?G(t,""):U(t)}:U,K=function(t){return null==t},H=K,V=TypeError,W=function(t){if(H(t))throw V("Can't call method on "+t);return t},Y=Z,J=W,X=function(t){return Y(J(t))},q=O,Q=E.all,$=E.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=k({}.isPrototypeOf),st=ot("navigator","userAgent")||"",ut=r,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&<.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(D=(z=dt.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!D&&ct&&(!(z=ct.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=ct.match(/Chrome\/(\d+)/))&&(D=+z[1]);var pt=D,vt=pt,_t=i,gt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),yt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mt=ot,bt=O,wt=at,kt=Object,St=yt?function(t){return"symbol"==typeof t}:function(t){var e=mt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},Et=String,xt=function(t){try{return Et(t)}catch(e){return"Object"}},Ot=O,Tt=xt,At=TypeError,Rt=function(t){if(Ot(t))return t;throw At(Tt(t)+" is not a function")},It=Rt,Ct=K,Lt=function(t,e){var n=t[e];return Ct(n)?void 0:It(n)},Bt=C,Nt=O,Pt=$,zt=TypeError,Dt={exports:{}},jt=r,Mt=Object.defineProperty,Ft=function(t,e){try{Mt(jt,t,{value:e,configurable:!0,writable:!0})}catch(n){jt[t]=e}return e},Ut="__core-js_shared__",Gt=r[Ut]||Ft(Ut,{}),Zt=Gt;(Dt.exports=function(t,e){return Zt[t]||(Zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=Dt.exports,Ht=W,Vt=Object,Wt=function(t){return Vt(Ht(t))},Yt=Wt,Jt=k({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Jt(Yt(t),e)},qt=k,Qt=0,$t=Math.random(),te=qt(1..toString),ee=function(t){return"Symbol("+(void 0===t?"":t)+")_"+te(++Qt+$t,36)},ne=r,re=Xt,ie=ee,oe=gt,ae=yt,se=Kt("wks"),ue=ne.Symbol,ce=ue&&ue.for,le=ae?ue:ue&&ue.withoutSetter||ie,fe=function(t){if(!re(se,t)||!oe&&"string"!=typeof se[t]){var e="Symbol."+t;oe&&re(ue,t)?se[t]=ue[t]:se[t]=ae&&ce?ce(e):le(e)}return se[t]},he=C,de=$,pe=St,ve=Lt,_e=function(t,e){var n,r;if("string"===e&&Nt(n=t.toString)&&!Pt(r=Bt(n,t)))return r;if(Nt(n=t.valueOf)&&!Pt(r=Bt(n,t)))return r;if("string"!==e&&Nt(n=t.toString)&&!Pt(r=Bt(n,t)))return r;throw zt("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=St,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=$,Se=r.document,Ee=ke(Se)&&ke(Se.createElement),xe=function(t){return Ee?Se.createElement(t):{}},Oe=xe,Te=!A&&!i((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Ae=A,Re=C,Ie=L,Ce=j,Le=X,Be=we,Ne=Xt,Pe=Te,ze=Object.getOwnPropertyDescriptor;T.f=Ae?ze:function(t,e){if(t=Le(t),e=Be(e),Pe)try{return ze(t,e)}catch(n){}if(Ne(t,e))return Ce(!Re(Ie.f,t,e),t[e])};var De=i,je=O,Me=/#|\.prototype\./,Fe=function(t,e){var n=Ge[Ue(t)];return n==Ke||n!=Ze&&(je(e)?De(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Ge=Fe.data={},Ze=Fe.NATIVE="N",Ke=Fe.POLYFILL="P",He=Fe,Ve=Rt,We=o,Ye=k(k.bind),Je=function(t,e){return Ve(t),void 0===e?t:We?Ye(t,e):function(){return t.apply(e,arguments)}},Xe={},qe=A&&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=A,rn=Te,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=A?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=T.f,kn=He,Sn=tt,En=Je,xn=_n,On=Xt,Tn=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},An=function(t,e){var n,r,i,o,a,s,u,c,l=t.target,f=t.global,h=t.stat,d=t.proto,p=f?gn:h?gn[l]:(gn[l]||{}).prototype,v=f?Sn:Sn[l]||xn(Sn,l,{})[l],_=v.prototype;for(i in e)n=!kn(f?i:l+(h?".":"#")+i,t.forced)&&p&&On(p,i),a=v[i],n&&(s=t.dontCallGetSet?(c=wn(p,i))&&c.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?En(o,gn):t.wrap&&n?Tn(o):d&&bn(o)?mn(o):o,(t.sham||o&&o.sham||a&&a.sham)&&xn(u,"sham",!0),xn(v,i,u),d&&(On(Sn,r=l+"Prototype")||xn(Sn,r,{}),xn(Sn[r],i,o),t.real&&_&&!_[i]&&xn(_,i,o)))},Rn=m,In=Array.isArray||function(t){return"Array"==Rn(t)},Cn=Math.ceil,Ln=Math.floor,Bn=Math.trunc||function(t){var e=+t;return(e>0?Ln:Cn)(e)},Nn=function(t){var e=+t;return e!=e||0===e?0:Bn(e)},Pn=Nn,zn=Math.min,Dn=function(t){return t>0?zn(Pn(t),9007199254740991):0},jn=Dn,Mn=function(t){return jn(t.length)},Fn=TypeError,Un=function(t){if(t>9007199254740991)throw Fn("Maximum allowed index exceeded");return t},Gn=we,Zn=Xe,Kn=j,Hn=function(t,e,n){var r=Gn(e);r in t?Zn.f(t,r,Kn(0,n)):t[r]=n},Vn={};Vn[fe("toStringTag")]="z";var Wn="[object z]"===String(Vn),Yn=Wn,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=k(Function.toString);er(nr.inspectSource)||(nr.inspectSource=function(t){return rr(t)});var ir=nr.inspectSource,or=k,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=In,br=yr,wr=$,kr=fe("species"),Sr=Array,Er=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},xr=function(t,e){return new(Er(t))(0===e?0:e)},Or=i,Tr=pt,Ar=fe("species"),Rr=function(t){return Tr>=51||!Or((function(){var e=[];return(e.constructor={})[Ar]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ir=An,Cr=i,Lr=In,Br=$,Nr=Wt,Pr=Mn,zr=Un,Dr=Hn,jr=xr,Mr=Rr,Fr=pt,Ur=fe("isConcatSpreadable"),Gr=Fr>=51||!Cr((function(){var t=[];return t[Ur]=!1,t.concat()[0]!==t})),Zr=Mr("concat"),Kr=function(t){if(!Br(t))return!1;var e=t[Ur];return void 0!==e?!!e:Lr(t)};Ir({target:"Array",proto:!0,arity:1,forced:!Gr||!Zr},{concat:function(t){var e,n,r,i,o,a=Nr(this),s=jr(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Kr(o=-1===e?a:arguments[e]))for(i=Pr(o),zr(u+i),n=0;n<i;n++,u++)n in o&&Dr(s,u,o[n]);else zr(u+1),Dr(s,u++,o);return s.length=u,s}});var Hr=tr,Vr=String,Wr=function(t){if("Symbol"===Hr(t))throw TypeError("Cannot convert a Symbol value to a string");return Vr(t)},Yr={},Jr=Nn,Xr=Math.max,qr=Math.min,Qr=function(t,e){var n=Jr(t);return n<0?Xr(n+e,0):qr(n,e)},$r=X,ti=Qr,ei=Mn,ni=function(t){return function(e,n,r){var i,o=$r(e),a=ei(o),s=ti(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}},ri={includes:ni(!0),indexOf:ni(!1)},ii={},oi=Xt,ai=X,si=ri.indexOf,ui=ii,ci=k([].push),li=function(t,e){var n,r=ai(t),i=0,o=[];for(n in r)!oi(ui,n)&&oi(r,n)&&ci(o,n);for(;e.length>i;)oi(r,n=e[i++])&&(~si(o,n)||ci(o,n));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=li,di=fi,pi=Object.keys||function(t){return hi(t,di)},vi=A,_i=qe,gi=Xe,yi=en,mi=X,bi=pi;Yr.f=vi&&!_i?Object.defineProperties:function(t,e){yi(t);for(var n,r=mi(e),i=bi(e),o=i.length,a=0;o>a;)gi.f(t,n=i[a++],r[n]);return t};var wi,ki=ot("document","documentElement"),Si=ee,Ei=Kt("keys"),xi=function(t){return Ei[t]||(Ei[t]=Si(t))},Oi=en,Ti=Yr,Ai=fi,Ri=ii,Ii=ki,Ci=xe,Li="prototype",Bi="script",Ni=xi("IE_PROTO"),Pi=function(){},zi=function(t){return"<"+Bi+">"+t+"</"+Bi+">"},Di=function(t){t.write(zi("")),t.close();var e=t.parentWindow.Object;return t=null,e},ji=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var t,e,n;ji="undefined"!=typeof document?document.domain&&wi?Di(wi):(e=Ci("iframe"),n="java"+Bi+":",e.style.display="none",Ii.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(zi("document.F=Object")),t.close(),t.F):Di(wi);for(var r=Ai.length;r--;)delete ji[Li][Ai[r]];return ji()};Ri[Ni]=!0;var Mi=Object.create||function(t,e){var n;return null!==t?(Pi[Li]=Oi(t),n=new Pi,Pi[Li]=null,n[Ni]=t):n=ji(),void 0===e?n:Ti.f(n,e)},Fi={},Ui=li,Gi=fi.concat("length","prototype");Fi.f=Object.getOwnPropertyNames||function(t){return Ui(t,Gi)};var Zi={},Ki=Qr,Hi=Mn,Vi=Hn,Wi=Array,Yi=Math.max,Ji=m,Xi=X,qi=Fi.f,Qi=function(t,e,n){for(var r=Hi(t),i=Ki(e,r),o=Ki(void 0===n?r:n,r),a=Wi(Yi(o-i,0)),s=0;i<o;i++,s++)Vi(a,s,t[i]);return a.length=s,a},$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Zi.f=function(t){return $i&&"Window"==Ji(t)?function(t){try{return qi(t)}catch(e){return Qi($i)}}(t):qi(Xi(t))};var to={};to.f=Object.getOwnPropertySymbols;var eo=_n,no=function(t,e,n,r){return r&&r.enumerable?t[e]=n:eo(t,e,n),t},ro={},io=fe;ro.f=io;var oo,ao,so,uo=tt,co=Xt,lo=ro,fo=Xe.f,ho=function(t){var e=uo.Symbol||(uo.Symbol={});co(e,t)||fo(e,t,{value:lo.f(t)})},po=C,vo=ot,_o=fe,go=no,yo=function(){var t=vo("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=_o("toPrimitive");e&&!e[r]&&go(e,r,(function(t){return po(n,this)}),{arity:1})},mo=tr,bo=Wn?{}.toString:function(){return"[object "+mo(this)+"]"},wo=Wn,ko=Xe.f,So=_n,Eo=Xt,xo=bo,Oo=fe("toStringTag"),To=function(t,e,n,r){if(t){var i=n?t:t.prototype;Eo(i,Oo)||ko(i,Oo,{configurable:!0,value:e}),r&&!wo&&So(i,"toString",xo)}},Ao=O,Ro=r.WeakMap,Io=Ao(Ro)&&/native code/.test(String(Ro)),Co=r,Lo=$,Bo=_n,No=Xt,Po=Gt,zo=xi,Do=ii,jo="Object already initialized",Mo=Co.TypeError,Fo=Co.WeakMap;if(Io||Po.state){var Uo=Po.state||(Po.state=new Fo);Uo.get=Uo.get,Uo.has=Uo.has,Uo.set=Uo.set,oo=function(t,e){if(Uo.has(t))throw Mo(jo);return e.facade=t,Uo.set(t,e),e},ao=function(t){return Uo.get(t)||{}},so=function(t){return Uo.has(t)}}else{var Go=zo("state");Do[Go]=!0,oo=function(t,e){if(No(t,Go))throw Mo(jo);return e.facade=t,Bo(t,Go,e),e},ao=function(t){return No(t,Go)?t[Go]:{}},so=function(t){return No(t,Go)}}var Zo={set:oo,get:ao,has:so,enforce:function(t){return so(t)?ao(t):oo(t,{})},getterFor:function(t){return function(e){var n;if(!Lo(e)||(n=ao(e)).type!==t)throw Mo("Incompatible receiver, "+t+" required");return n}}},Ko=Je,Ho=Z,Vo=Wt,Wo=Mn,Yo=xr,Jo=k([].push),Xo=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=Ho(p),_=Ko(c,l),g=Wo(v),y=0,m=f||Yo,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:Jo(b,h)}else switch(t){case 4:return!1;case 7:Jo(b,h)}return o?-1:r||i?i:b}},qo={forEach:Xo(0),map:Xo(1),filter:Xo(2),some:Xo(3),every:Xo(4),find:Xo(5),findIndex:Xo(6),filterReject:Xo(7)},Qo=An,$o=r,ta=C,ea=k,na=A,ra=gt,ia=i,oa=Xt,aa=at,sa=en,ua=X,ca=we,la=Wr,fa=j,ha=Mi,da=pi,pa=Fi,va=Zi,_a=to,ga=T,ya=Xe,ma=Yr,ba=L,wa=no,ka=Kt,Sa=ii,Ea=ee,xa=fe,Oa=ro,Ta=ho,Aa=yo,Ra=To,Ia=Zo,Ca=qo.forEach,La=xi("hidden"),Ba="Symbol",Na="prototype",Pa=Ia.set,za=Ia.getterFor(Ba),Da=Object[Na],ja=$o.Symbol,Ma=ja&&ja[Na],Fa=$o.TypeError,Ua=$o.QObject,Ga=ga.f,Za=ya.f,Ka=va.f,Ha=ba.f,Va=ea([].push),Wa=ka("symbols"),Ya=ka("op-symbols"),Ja=ka("wks"),Xa=!Ua||!Ua[Na]||!Ua[Na].findChild,qa=na&&ia((function(){return 7!=ha(Za({},"a",{get:function(){return Za(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ga(Da,e);r&&delete Da[e],Za(t,e,n),r&&t!==Da&&Za(Da,e,r)}:Za,Qa=function(t,e){var n=Wa[t]=ha(Ma);return Pa(n,{type:Ba,tag:t,description:e}),na||(n.description=e),n},$a=function(t,e,n){t===Da&&$a(Ya,e,n),sa(t);var r=ca(e);return sa(n),oa(Wa,r)?(n.enumerable?(oa(t,La)&&t[La][r]&&(t[La][r]=!1),n=ha(n,{enumerable:fa(0,!1)})):(oa(t,La)||Za(t,La,fa(1,{})),t[La][r]=!0),qa(t,r,n)):Za(t,r,n)},ts=function(t,e){sa(t);var n=ua(e),r=da(n).concat(is(n));return Ca(r,(function(e){na&&!ta(es,n,e)||$a(t,e,n[e])})),t},es=function(t){var e=ca(t),n=ta(Ha,this,e);return!(this===Da&&oa(Wa,e)&&!oa(Ya,e))&&(!(n||!oa(this,e)||!oa(Wa,e)||oa(this,La)&&this[La][e])||n)},ns=function(t,e){var n=ua(t),r=ca(e);if(n!==Da||!oa(Wa,r)||oa(Ya,r)){var i=Ga(n,r);return!i||!oa(Wa,r)||oa(n,La)&&n[La][r]||(i.enumerable=!0),i}},rs=function(t){var e=Ka(ua(t)),n=[];return Ca(e,(function(t){oa(Wa,t)||oa(Sa,t)||Va(n,t)})),n},is=function(t){var e=t===Da,n=Ka(e?Ya:ua(t)),r=[];return Ca(n,(function(t){!oa(Wa,t)||e&&!oa(Da,t)||Va(r,Wa[t])})),r};ra||(ja=function(){if(aa(Ma,this))throw Fa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?la(arguments[0]):void 0,e=Ea(t),n=function(t){this===Da&&ta(n,Ya,t),oa(this,La)&&oa(this[La],e)&&(this[La][e]=!1),qa(this,e,fa(1,t))};return na&&Xa&&qa(Da,e,{configurable:!0,set:n}),Qa(e,t)},wa(Ma=ja[Na],"toString",(function(){return za(this).tag})),wa(ja,"withoutSetter",(function(t){return Qa(Ea(t),t)})),ba.f=es,ya.f=$a,ma.f=ts,ga.f=ns,pa.f=va.f=rs,_a.f=is,Oa.f=function(t){return Qa(xa(t),t)},na&&Za(Ma,"description",{configurable:!0,get:function(){return za(this).description}})),Qo({global:!0,constructor:!0,wrap:!0,forced:!ra,sham:!ra},{Symbol:ja}),Ca(da(Ja),(function(t){Ta(t)})),Qo({target:Ba,stat:!0,forced:!ra},{useSetter:function(){Xa=!0},useSimple:function(){Xa=!1}}),Qo({target:"Object",stat:!0,forced:!ra,sham:!na},{create:function(t,e){return void 0===e?ha(t):ts(ha(t),e)},defineProperty:$a,defineProperties:ts,getOwnPropertyDescriptor:ns}),Qo({target:"Object",stat:!0,forced:!ra},{getOwnPropertyNames:rs}),Aa(),Ra(ja,Ba),Sa[La]=!0;var os=gt&&!!Symbol.for&&!!Symbol.keyFor,as=An,ss=ot,us=Xt,cs=Wr,ls=Kt,fs=os,hs=ls("string-to-symbol-registry"),ds=ls("symbol-to-string-registry");as({target:"Symbol",stat:!0,forced:!fs},{for:function(t){var e=cs(t);if(us(hs,e))return hs[e];var n=ss("Symbol")(e);return hs[e]=n,ds[n]=e,n}});var ps=An,vs=Xt,_s=St,gs=xt,ys=os,ms=Kt("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{keyFor:function(t){if(!_s(t))throw TypeError(gs(t)+" is not a symbol");if(vs(ms,t))return ms[t]}});var bs=k([].slice),ws=An,ks=ot,Ss=l,Es=C,xs=k,Os=i,Ts=In,As=O,Rs=$,Is=St,Cs=bs,Ls=gt,Bs=ks("JSON","stringify"),Ns=xs(/./.exec),Ps=xs("".charAt),zs=xs("".charCodeAt),Ds=xs("".replace),js=xs(1..toString),Ms=/[\uD800-\uDFFF]/g,Fs=/^[\uD800-\uDBFF]$/,Us=/^[\uDC00-\uDFFF]$/,Gs=!Ls||Os((function(){var t=ks("Symbol")();return"[null]"!=Bs([t])||"{}"!=Bs({a:t})||"{}"!=Bs(Object(t))})),Zs=Os((function(){return'"\\udf06\\ud834"'!==Bs("\udf06\ud834")||'"\\udead"'!==Bs("\udead")})),Ks=function(t,e){var n=Cs(arguments),r=e;if((Rs(e)||void 0!==t)&&!Is(t))return Ts(e)||(e=function(t,e){if(As(r)&&(e=Es(r,this,t,e)),!Is(e))return e}),n[1]=e,Ss(Bs,null,n)},Hs=function(t,e,n){var r=Ps(n,e-1),i=Ps(n,e+1);return Ns(Fs,t)&&!Ns(Us,i)||Ns(Us,t)&&!Ns(Fs,r)?"\\u"+js(zs(t,0),16):t};Bs&&ws({target:"JSON",stat:!0,arity:3,forced:Gs||Zs},{stringify:function(t,e,n){var r=Cs(arguments),i=Ss(Gs?Ks:Bs,null,r);return Zs&&"string"==typeof i?Ds(i,Ms,Hs):i}});var Vs=to,Ws=Wt;An({target:"Object",stat:!0,forced:!gt||i((function(){Vs.f(1)}))},{getOwnPropertySymbols:function(t){var e=Vs.f;return e?e(Ws(t)):[]}}),ho("asyncIterator"),ho("hasInstance"),ho("isConcatSpreadable"),ho("iterator"),ho("match"),ho("matchAll"),ho("replace"),ho("search"),ho("species"),ho("split");var Ys=yo;ho("toPrimitive"),Ys();var Js=ot,Xs=To;ho("toStringTag"),Xs(Js("Symbol"),"Symbol"),ho("unscopables"),To(r.JSON,"JSON",!0);var qs,Qs,$s,tu=tt.Symbol,eu={},nu=A,ru=Xt,iu=Function.prototype,ou=nu&&Object.getOwnPropertyDescriptor,au=ru(iu,"name"),su={EXISTS:au,PROPER:au&&"something"===function(){}.name,CONFIGURABLE:au&&(!nu||nu&&ou(iu,"name").configurable)},uu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cu=Xt,lu=O,fu=Wt,hu=uu,du=xi("IE_PROTO"),pu=Object,vu=pu.prototype,_u=hu?pu.getPrototypeOf:function(t){var e=fu(t);if(cu(e,du))return e[du];var n=e.constructor;return lu(n)&&e instanceof n?n.prototype:e instanceof pu?vu:null},gu=i,yu=O,mu=$,bu=Mi,wu=_u,ku=no,Su=fe("iterator"),Eu=!1;[].keys&&("next"in($s=[].keys())?(Qs=wu(wu($s)))!==Object.prototype&&(qs=Qs):Eu=!0);var xu=!mu(qs)||gu((function(){var t={};return qs[Su].call(t)!==t}));yu((qs=xu?{}:bu(qs))[Su])||ku(qs,Su,(function(){return this}));var Ou={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:Eu},Tu=Ou.IteratorPrototype,Au=Mi,Ru=j,Iu=To,Cu=eu,Lu=function(){return this},Bu=O,Nu=String,Pu=TypeError,zu=k,Du=en,ju=function(t){if("object"==typeof t||Bu(t))return t;throw Pu("Can't set "+Nu(t)+" as a prototype")},Mu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=zu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(n,r){return Du(n),ju(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fu=An,Uu=C,Gu=su,Zu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Au(Tu,{next:Ru(+!r,n)}),Iu(t,i,!1,!0),Cu[i]=Lu,t},Ku=_u,Hu=To,Vu=no,Wu=eu,Yu=Ou,Ju=Gu.PROPER,Xu=Yu.BUGGY_SAFARI_ITERATORS,qu=fe("iterator"),Qu="keys",$u="values",tc="entries",ec=function(){return this},nc=function(t,e,n,r,i,o,a){Zu(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Xu&&t in d)return d[t];switch(t){case Qu:case $u:case tc:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[qu]||d["@@iterator"]||i&&d[i],v=!Xu&&p||l(i),_="Array"==e&&d.entries||p;if(_&&(s=Ku(_.call(new t)))!==Object.prototype&&s.next&&(Hu(s,f,!0,!0),Wu[f]=ec),Ju&&i==$u&&p&&p.name!==$u&&(h=!0,v=function(){return Uu(p,this)}),i)if(u={values:l($u),keys:o?v:l(Qu),entries:l(tc)},a)for(c in u)(Xu||h||!(c in d))&&Vu(d,c,u[c]);else Fu({target:e,proto:!0,forced:Xu||h},u);return a&&d[qu]!==v&&Vu(d,qu,v,{name:i}),Wu[e]=v,u},rc=function(t,e){return{value:t,done:e}},ic=X,oc=eu,ac=Zo;Xe.f;var sc=nc,uc=rc,cc="Array Iterator",lc=ac.set,fc=ac.getterFor(cc);sc(Array,"Array",(function(t,e){lc(this,{type:cc,target:ic(t),index:0,kind:e})}),(function(){var t=fc(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,uc(void 0,!0)):uc("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),oc.Arguments=oc.Array;var hc={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},dc=r,pc=tr,vc=_n,_c=eu,gc=fe("toStringTag");for(var yc in hc){var mc=dc[yc],bc=mc&&mc.prototype;bc&&pc(bc)!==gc&&vc(bc,gc,yc),_c[yc]=_c.Array}var wc=tu;ho("asyncDispose"),ho("dispose"),ho("matcher"),ho("metadataKey"),ho("observable"),ho("metadata"),ho("patternMatch"),ho("replaceAll");var kc=e(wc),Sc=k,Ec=Nn,xc=Wr,Oc=W,Tc=Sc("".charAt),Ac=Sc("".charCodeAt),Rc=Sc("".slice),Ic=function(t){return function(e,n){var r,i,o=xc(Oc(e)),a=Ec(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Ac(o,a))<55296||r>56319||a+1===s||(i=Ac(o,a+1))<56320||i>57343?t?Tc(o,a):r:t?Rc(o,a,a+2):i-56320+(r-55296<<10)+65536}},Cc={codeAt:Ic(!1),charAt:Ic(!0)}.charAt,Lc=Wr,Bc=Zo,Nc=nc,Pc=rc,zc="String Iterator",Dc=Bc.set,jc=Bc.getterFor(zc);Nc(String,"String",(function(t){Dc(this,{type:zc,string:Lc(t),index:0})}),(function(){var t,e=jc(this),n=e.string,r=e.index;return r>=n.length?Pc(void 0,!0):(t=Cc(n,r),e.index+=t.length,Pc(t,!1))}));var Mc=e(ro.f("iterator"));function Fc(t){return(Fc="function"==typeof kc&&"symbol"==typeof Mc?function(t){return typeof t}:function(t){return t&&"function"==typeof kc&&t.constructor===kc&&t!==kc.prototype?"symbol":typeof t})(t)}var Uc={exports:{}},Gc=An,Zc=A,Kc=Xe.f;Gc({target:"Object",stat:!0,forced:Object.defineProperty!==Kc,sham:!Zc},{defineProperty:Kc});var Hc=tt.Object,Vc=Uc.exports=function(t,e,n){return Hc.defineProperty(t,e,n)};Hc.defineProperty.sham&&(Vc.sham=!0);var Wc=e(Uc.exports);An({target:"Object",stat:!0,sham:!A},{create:Mi});var Yc=tt.Object,Jc=e((function(t,e){return Yc.create(t,e)})),Xc=Wt,qc=_u,Qc=uu;An({target:"Object",stat:!0,forced:i((function(){qc(1)})),sham:!Qc},{getPrototypeOf:function(t){return qc(Xc(t))}});var $c=e(tt.Object.getPrototypeOf),tl=i,el=function(t,e){var n=[][t];return!!n&&tl((function(){n.call(null,e||function(){return 1},1)}))},nl=qo.forEach,rl=el("forEach")?[].forEach:function(t){return nl(this,t,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!=rl},{forEach:rl});var il=tt,ol=function(t){return il[t+"Prototype"]},al=ol("Array").forEach,sl=tr,ul=Xt,cl=at,ll=al,fl=Array.prototype,hl={DOMTokenList:!0,NodeList:!0},dl=e((function(t){var e=t.forEach;return t===fl||cl(fl,t)&&e===fl.forEach||ul(hl,sl(t))?ll:e}));An({target:"Object",stat:!0},{setPrototypeOf:Mu});var pl=e(tt.Object.setPrototypeOf),vl=ot,_l=Fi,gl=to,yl=en,ml=k([].concat),bl=vl("Reflect","ownKeys")||function(t){var e=_l.f(yl(t)),n=gl.f;return n?ml(e,n(t)):e},wl=Xt,kl=bl,Sl=T,El=Xe,xl=Error,Ol=k("".replace),Tl=String(xl("zxcasd").stack),Al=/\n\s*at [^:]*:[^\n]*/,Rl=Al.test(Tl),Il=$,Cl=_n,Ll=eu,Bl=fe("iterator"),Nl=Array.prototype,Pl=function(t){return void 0!==t&&(Ll.Array===t||Nl[Bl]===t)},zl=tr,Dl=Lt,jl=K,Ml=eu,Fl=fe("iterator"),Ul=function(t){if(!jl(t))return Dl(t,Fl)||Dl(t,"@@iterator")||Ml[zl(t)]},Gl=C,Zl=Rt,Kl=en,Hl=xt,Vl=Ul,Wl=TypeError,Yl=function(t,e){var n=arguments.length<2?Vl(t):e;if(Zl(n))return Kl(Gl(n,t));throw Wl(Hl(t)+" is not iterable")},Jl=C,Xl=en,ql=Lt,Ql=function(t,e,n){var r,i;Xl(t);try{if(!(r=ql(t,"return"))){if("throw"===e)throw n;return n}r=Jl(r,t)}catch(o){i=!0,r=o}if("throw"===e)throw n;if(i)throw r;return Xl(r),n},$l=Je,tf=C,ef=en,nf=xt,rf=Pl,of=Mn,af=at,sf=Yl,uf=Ul,cf=Ql,lf=TypeError,ff=function(t,e){this.stopped=t,this.result=e},hf=ff.prototype,df=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=$l(e,l),_=function(t){return r&&cf(r,"normal",t),new ff(!0,t)},g=function(t){return f?(ef(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=uf(t)))throw lf(nf(t)+" is not iterable");if(rf(i)){for(o=0,a=of(t);a>o;o++)if((s=g(t[o]))&&af(hf,s))return s;return new ff(!1)}r=sf(t,i)}for(u=h?t.next:r.next;!(c=tf(u,r)).done;){try{s=g(c.value)}catch(y){cf(r,"throw",y)}if("object"==typeof s&&s&&af(hf,s))return s}return new ff(!1)},pf=Wr,vf=j,_f=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",vf(1,7)),7!==t.stack)})),gf=An,yf=at,mf=_u,bf=Mu,wf=function(t,e,n){for(var r=kl(e),i=El.f,o=Sl.f,a=0;a<r.length;a++){var s=r[a];wl(t,s)||n&&wl(n,s)||i(t,s,o(e,s))}},kf=Mi,Sf=_n,Ef=j,xf=function(t,e){if(Rl&&"string"==typeof t&&!xl.prepareStackTrace)for(;e--;)t=Ol(t,Al,"");return t},Of=function(t,e){Il(e)&&"cause"in e&&Cl(t,"cause",e.cause)},Tf=df,Af=function(t,e){return void 0===t?arguments.length<2?"":e:pf(t)},Rf=_f,If=fe("toStringTag"),Cf=Error,Lf=[].push,Bf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=yf(Nf,this);bf?n=bf(Cf(),i?mf(this):Nf):(n=i?this:kf(Nf),Sf(n,If,"Error")),void 0!==e&&Sf(n,"message",Af(e)),Rf&&Sf(n,"stack",xf(n.stack,1)),Of(n,r);var o=[];return Tf(t,Lf,{that:o}),Sf(n,"errors",o),n};bf?bf(Bf,Cf):wf(Bf,Cf,{name:!0});var Nf=Bf.prototype=kf(Cf.prototype,{constructor:Ef(1,Bf),message:Ef(1,""),name:Ef(1,"AggregateError")});gf({global:!0,constructor:!0,arity:2},{AggregateError:Bf});var Pf,zf,Df,jf,Mf="process"==m(r.process),Ff=ot,Uf=Xe,Gf=A,Zf=fe("species"),Kf=function(t){var e=Ff(t),n=Uf.f;Gf&&e&&!e[Zf]&&n(e,Zf,{configurable:!0,get:function(){return this}})},Hf=at,Vf=TypeError,Wf=function(t,e){if(Hf(e,t))return t;throw Vf("Incorrect invocation")},Yf=yr,Jf=xt,Xf=TypeError,qf=function(t){if(Yf(t))return t;throw Xf(Jf(t)+" is not a constructor")},Qf=en,$f=qf,th=K,eh=fe("species"),nh=function(t,e){var n,r=Qf(t).constructor;return void 0===r||th(n=Qf(r)[eh])?e:$f(n)},rh=TypeError,ih=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),oh=r,ah=l,sh=Je,uh=O,ch=Xt,lh=i,fh=ki,hh=bs,dh=xe,ph=function(t,e){if(t<e)throw rh("Not enough arguments");return t},vh=ih,_h=Mf,gh=oh.setImmediate,yh=oh.clearImmediate,mh=oh.process,bh=oh.Dispatch,wh=oh.Function,kh=oh.MessageChannel,Sh=oh.String,Eh=0,xh={},Oh="onreadystatechange";try{Pf=oh.location}catch(FT){}var Th=function(t){if(ch(xh,t)){var e=xh[t];delete xh[t],e()}},Ah=function(t){return function(){Th(t)}},Rh=function(t){Th(t.data)},Ih=function(t){oh.postMessage(Sh(t),Pf.protocol+"//"+Pf.host)};gh&&yh||(gh=function(t){ph(arguments.length,1);var e=uh(t)?t:wh(t),n=hh(arguments,1);return xh[++Eh]=function(){ah(e,void 0,n)},zf(Eh),Eh},yh=function(t){delete xh[t]},_h?zf=function(t){mh.nextTick(Ah(t))}:bh&&bh.now?zf=function(t){bh.now(Ah(t))}:kh&&!vh?(jf=(Df=new kh).port2,Df.port1.onmessage=Rh,zf=sh(jf.postMessage,jf)):oh.addEventListener&&uh(oh.postMessage)&&!oh.importScripts&&Pf&&"file:"!==Pf.protocol&&!lh(Ih)?(zf=Ih,oh.addEventListener("message",Rh,!1)):zf=Oh in dh("script")?function(t){fh.appendChild(dh("script"))[Oh]=function(){fh.removeChild(this),Th(t)}}:function(t){setTimeout(Ah(t),0)});var Ch,Lh,Bh,Nh,Ph,zh,Dh,jh,Mh={set:gh,clear:yh},Fh=r,Uh=/ipad|iphone|ipod/i.test(st)&&void 0!==Fh.Pebble,Gh=/web0s(?!.*chrome)/i.test(st),Zh=r,Kh=Je,Hh=T.f,Vh=Mh.set,Wh=ih,Yh=Uh,Jh=Gh,Xh=Mf,qh=Zh.MutationObserver||Zh.WebKitMutationObserver,Qh=Zh.document,$h=Zh.process,td=Zh.Promise,ed=Hh(Zh,"queueMicrotask"),nd=ed&&ed.value;nd||(Ch=function(){var t,e;for(Xh&&(t=$h.domain)&&t.exit();Lh;){e=Lh.fn,Lh=Lh.next;try{e()}catch(FT){throw Lh?Nh():Bh=void 0,FT}}Bh=void 0,t&&t.enter()},Wh||Xh||Jh||!qh||!Qh?!Yh&&td&&td.resolve?((Dh=td.resolve(void 0)).constructor=td,jh=Kh(Dh.then,Dh),Nh=function(){jh(Ch)}):Xh?Nh=function(){$h.nextTick(Ch)}:(Vh=Kh(Vh,Zh),Nh=function(){Vh(Ch)}):(Ph=!0,zh=Qh.createTextNode(""),new qh(Ch).observe(zh,{characterData:!0}),Nh=function(){zh.data=Ph=!Ph}));var rd=nd||function(t){var e={fn:t,next:void 0};Bh&&(Bh.next=e),Lh||(Lh=e,Nh()),Bh=e},id=r,od=function(t){try{return{error:!1,value:t()}}catch(FT){return{error:!0,value:FT}}},ad=function(){this.head=null,this.tail=null};ad.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var sd=ad,ud=r.Promise,cd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ld=!cd&&!Mf&&"object"==typeof window&&"object"==typeof document,fd=r,hd=ud,dd=O,pd=He,vd=ir,_d=fe,gd=ld,yd=cd,md=pt,bd=hd&&hd.prototype,wd=_d("species"),kd=!1,Sd=dd(fd.PromiseRejectionEvent),Ed={CONSTRUCTOR:pd("Promise",(function(){var t=vd(hd),e=t!==String(hd);if(!e&&66===md)return!0;if(!bd.catch||!bd.finally)return!0;if(!md||md<51||!/native code/.test(t)){var n=new hd((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[wd]=r,!(kd=n.then((function(){}))instanceof r))return!0}return!e&&(gd||yd)&&!Sd})),REJECTION_EVENT:Sd,SUBCLASSING:kd},xd={},Od=Rt,Td=TypeError,Ad=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Td("Bad Promise constructor");e=t,n=r})),this.resolve=Od(e),this.reject=Od(n)};xd.f=function(t){return new Ad(t)};var Rd,Id,Cd=An,Ld=Mf,Bd=r,Nd=C,Pd=no,zd=To,Dd=Kf,jd=Rt,Md=O,Fd=$,Ud=Wf,Gd=nh,Zd=Mh.set,Kd=rd,Hd=function(t,e){var n=id.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},Vd=od,Wd=sd,Yd=Zo,Jd=ud,Xd=Ed,qd=xd,Qd="Promise",$d=Xd.CONSTRUCTOR,tp=Xd.REJECTION_EVENT,ep=Yd.getterFor(Qd),np=Yd.set,rp=Jd&&Jd.prototype,ip=Jd,op=rp,ap=Bd.TypeError,sp=Bd.document,up=Bd.process,cp=qd.f,lp=cp,fp=!!(sp&&sp.createEvent&&Bd.dispatchEvent),hp="unhandledrejection",dp=function(t){var e;return!(!Fd(t)||!Md(e=t.then))&&e},pp=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&&mp(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(ap("Promise-chain cycle")):(r=dp(n))?Nd(r,n,u,c):u(n)):c(o)}catch(FT){l&&!i&&l.exit(),c(FT)}},vp=function(t,e){t.notified||(t.notified=!0,Kd((function(){for(var n,r=t.reactions;n=r.get();)pp(n,t);t.notified=!1,e&&!t.rejection&&gp(t)})))},_p=function(t,e,n){var r,i;fp?((r=sp.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Bd.dispatchEvent(r)):r={promise:e,reason:n},!tp&&(i=Bd["on"+t])?i(r):t===hp&&Hd("Unhandled promise rejection",n)},gp=function(t){Nd(Zd,Bd,(function(){var e,n=t.facade,r=t.value;if(yp(t)&&(e=Vd((function(){Ld?up.emit("unhandledRejection",r,n):_p(hp,n,r)})),t.rejection=Ld||yp(t)?2:1,e.error))throw e.value}))},yp=function(t){return 1!==t.rejection&&!t.parent},mp=function(t){Nd(Zd,Bd,(function(){var e=t.facade;Ld?up.emit("rejectionHandled",e):_p("rejectionhandled",e,t.value)}))},bp=function(t,e,n){return function(r){t(e,r,n)}},wp=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vp(t,!0))},kp=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ap("Promise can't be resolved itself");var r=dp(e);r?Kd((function(){var n={done:!1};try{Nd(r,e,bp(kp,n,t),bp(wp,n,t))}catch(FT){wp(n,FT,t)}})):(t.value=e,t.state=1,vp(t,!1))}catch(FT){wp({done:!1},FT,t)}}};$d&&(op=(ip=function(t){Ud(this,op),jd(t),Nd(Rd,this);var e=ep(this);try{t(bp(kp,e),bp(wp,e))}catch(FT){wp(e,FT)}}).prototype,(Rd=function(t){np(this,{type:Qd,done:!1,notified:!1,parent:!1,reactions:new Wd,rejection:!1,state:0,value:void 0})}).prototype=Pd(op,"then",(function(t,e){var n=ep(this),r=cp(Gd(this,ip));return n.parent=!0,r.ok=!Md(t)||t,r.fail=Md(e)&&e,r.domain=Ld?up.domain:void 0,0==n.state?n.reactions.add(r):Kd((function(){pp(r,n)})),r.promise})),Id=function(){var t=new Rd,e=ep(t);this.promise=t,this.resolve=bp(kp,e),this.reject=bp(wp,e)},qd.f=cp=function(t){return t===ip||undefined===t?new Id(t):lp(t)}),Cd({global:!0,constructor:!0,wrap:!0,forced:$d},{Promise:ip}),zd(ip,Qd,!1,!0),Dd(Qd);var Sp=fe("iterator"),Ep=!1;try{var xp=0,Op={next:function(){return{done:!!xp++}},return:function(){Ep=!0}};Op[Sp]=function(){return this},Array.from(Op,(function(){throw 2}))}catch(FT){}var Tp=function(t,e){if(!e&&!Ep)return!1;var n=!1;try{var r={};r[Sp]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(FT){}return n},Ap=ud,Rp=Ed.CONSTRUCTOR||!Tp((function(t){Ap.all(t).then(void 0,(function(){}))})),Ip=C,Cp=Rt,Lp=xd,Bp=od,Np=df;An({target:"Promise",stat:!0,forced:Rp},{all:function(t){var e=this,n=Lp.f(e),r=n.resolve,i=n.reject,o=Bp((function(){var n=Cp(e.resolve),o=[],a=0,s=1;Np(t,(function(t){var u=a++,c=!1;s++,Ip(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 Pp=An,zp=Ed.CONSTRUCTOR;ud&&ud.prototype,Pp({target:"Promise",proto:!0,forced:zp,real:!0},{catch:function(t){return this.then(void 0,t)}});var Dp=C,jp=Rt,Mp=xd,Fp=od,Up=df;An({target:"Promise",stat:!0,forced:Rp},{race:function(t){var e=this,n=Mp.f(e),r=n.reject,i=Fp((function(){var i=jp(e.resolve);Up(t,(function(t){Dp(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Gp=C,Zp=xd;An({target:"Promise",stat:!0,forced:Ed.CONSTRUCTOR},{reject:function(t){var e=Zp.f(this);return Gp(e.reject,void 0,t),e.promise}});var Kp=en,Hp=$,Vp=xd,Wp=function(t,e){if(Kp(t),Hp(e)&&e.constructor===t)return e;var n=Vp.f(t);return(0,n.resolve)(e),n.promise},Yp=An,Jp=ud,Xp=Ed.CONSTRUCTOR,qp=Wp,Qp=ot("Promise"),$p=!Xp;Yp({target:"Promise",stat:!0,forced:true},{resolve:function(t){return qp($p&&this===Qp?Jp:this,t)}});var tv=C,ev=Rt,nv=xd,rv=od,iv=df;An({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=nv.f(e),r=n.resolve,i=n.reject,o=rv((function(){var n=ev(e.resolve),i=[],o=0,a=1;iv(t,(function(t){var s=o++,u=!1;a++,tv(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 ov=C,av=Rt,sv=ot,uv=xd,cv=od,lv=df,fv="No one promise resolved";An({target:"Promise",stat:!0},{any:function(t){var e=this,n=sv("AggregateError"),r=uv.f(e),i=r.resolve,o=r.reject,a=cv((function(){var r=av(e.resolve),a=[],s=0,u=1,c=!1;lv(t,(function(t){var l=s++,f=!1;u++,ov(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,fv)))}))})),--u||o(new n(a,fv))}));return a.error&&o(a.value),r.promise}});var hv=An,dv=ud,pv=i,vv=ot,_v=O,gv=nh,yv=Wp,mv=dv&&dv.prototype;hv({target:"Promise",proto:!0,real:!0,forced:!!dv&&pv((function(){mv.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=gv(this,vv("Promise")),n=_v(t);return this.then(n?function(n){return yv(e,t()).then((function(){return n}))}:t,n?function(n){return yv(e,t()).then((function(){throw n}))}:t)}});var bv=tt.Promise,wv=xd,kv=od;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=wv.f(this),n=kv(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Sv=e(bv),Ev=An,xv=In,Ov=k([].reverse),Tv=[1,2];Ev({target:"Array",proto:!0,forced:String(Tv)===String(Tv.reverse())},{reverse:function(){return xv(this)&&(this.length=this.length),Ov(this)}});var Av=ol("Array").reverse,Rv=at,Iv=Av,Cv=Array.prototype,Lv=e((function(t){var e=t.reverse;return t===Cv||Rv(Cv,t)&&e===Cv.reverse?Iv:e})),Bv=An,Nv=In,Pv=yr,zv=$,Dv=Qr,jv=Mn,Mv=X,Fv=Hn,Uv=fe,Gv=bs,Zv=Rr("slice"),Kv=Uv("species"),Hv=Array,Vv=Math.max;Bv({target:"Array",proto:!0,forced:!Zv},{slice:function(t,e){var n,r,i,o=Mv(this),a=jv(o),s=Dv(t,a),u=Dv(void 0===e?a:e,a);if(Nv(o)&&(n=o.constructor,(Pv(n)&&(n===Hv||Nv(n.prototype))||zv(n)&&null===(n=n[Kv]))&&(n=void 0),n===Hv||void 0===n))return Gv(o,s,u);for(r=new(void 0===n?Hv:n)(Vv(u-s,0)),i=0;s<u;s++,i++)s in o&&Fv(r,i,o[s]);return r.length=i,r}});var Wv=ol("Array").slice,Yv=at,Jv=Wv,Xv=Array.prototype,qv=e((function(t){var e=t.slice;return t===Xv||Yv(Xv,t)&&e===Xv.slice?Jv:e}));function Qv(){Qv=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Wc||function(t,e,n){t[e]=n.value},i="function"==typeof kc?kc:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Wc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Jc(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:b(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var _=$c&&$c($c(x([])));_&&_!==e&&n.call(_,o)&&(v=_);var g=p.prototype=h.prototype=Jc(v);function y(t){var e;dl(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Fc(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],dl(t).call(t,k,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(g,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return pl?pl(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Jc(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),u(m.prototype,a,(function(){return this})),t.AsyncIterator=m,t.async=function(e,n,r,i,o){void 0===o&&(o=Sv);var a=new m(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return Lv(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}},t.values=x,E.prototype={constructor:E,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,dl(e=this.tryEntries).call(e,S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+qv(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,f):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),f},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),S(n),f}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function $v(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(FT){return void n(FT)}s.done?e(u):Sv.resolve(u).then(r,i)}function t_(t){return function(){var e=this,n=arguments;return new Sv((function(r,i){var o=t.apply(e,n);function a(t){$v(o,r,i,a,s,"next",t)}function s(t){$v(o,r,i,a,s,"throw",t)}a(void 0)}))}}function e_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n_=e(ro.f("toPrimitive"));function r_(t){var e=function(t,e){if("object"!==Fc(t)||null===t)return t;var n=t[n_];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fc(e)?e:String(e)}function i_(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),Wc(t,r_(r.key),r)}}function o_(t,e,n){return e&&i_(t.prototype,e),n&&i_(t,n),Wc(t,"prototype",{writable:!1}),t}function a_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s_=k,u_=Rt,c_=$,l_=Xt,f_=bs,h_=o,d_=Function,p_=s_([].concat),v_=s_([].join),__={},g_=h_?d_.bind:function(t){var e=u_(this),n=e.prototype,r=f_(arguments,1),i=function(){var n=p_(r,f_(arguments));return this instanceof i?function(t,e,n){if(!l_(__,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";__[e]=d_("C,a","return new C("+v_(r,",")+")")}return __[e](t,n)}(e,n.length,n):e.apply(t,n)};return c_(n)&&(i.prototype=n),i},y_=g_;An({target:"Function",proto:!0,forced:Function.bind!==y_},{bind:y_});var m_=ol("Function").bind,b_=at,w_=m_,k_=Function.prototype,S_=e((function(t){var e=t.bind;return t===k_||b_(k_,t)&&e===k_.bind?w_:e}));function E_(t,e){var n;return(E_=pl?S_(n=pl).call(n):function(t,e){return t.__proto__=e,t})(t,e)}function x_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Jc(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Wc(t,"prototype",{writable:!1}),e&&E_(t,e)}var O_=An,T_=l,A_=g_,R_=qf,I_=en,C_=$,L_=Mi,B_=i,N_=ot("Reflect","construct"),P_=Object.prototype,z_=[].push,D_=B_((function(){function t(){}return!(N_((function(){}),[],t)instanceof t)})),j_=!B_((function(){N_((function(){}))})),M_=D_||j_;O_({target:"Reflect",stat:!0,forced:M_,sham:M_},{construct:function(t,e){R_(t),I_(e);var n=arguments.length<3?t:R_(arguments[2]);if(j_&&!D_)return N_(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 T_(z_,r,e),new(T_(A_,t,r))}var i=n.prototype,o=L_(C_(i)?i:P_),a=T_(t,o,e);return C_(a)?a:o}});var F_=e(tt.Reflect.construct);function U_(t){var e;return(U_=pl?S_(e=$c).call(e):function(t){return t.__proto__||$c(t)})(t)}function G_(t){var e=function(){if("undefined"==typeof Reflect||!F_)return!1;if(F_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(F_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U_(t);if(e){var i=U_(this).constructor;n=F_(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Fc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a_(t)}(this,n)}}function Z_(t,e,n){return(e=r_(e))in t?Wc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K_=Wt,H_=pi;An({target:"Object",stat:!0,forced:i((function(){H_(1)}))},{keys:function(t){return H_(K_(t))}});var V_=e(tt.Object.keys),W_=qo.filter;An({target:"Array",proto:!0,forced:!Rr("filter")},{filter:function(t){return W_(this,t,arguments.length>1?arguments[1]:void 0)}});var Y_=ol("Array").filter,J_=at,X_=Y_,q_=Array.prototype,Q_=e((function(t){var e=t.filter;return t===q_||J_(q_,t)&&e===q_.filter?X_:e})),$_=ol("Array").concat,tg=at,eg=$_,ng=Array.prototype,rg=e((function(t){var e=t.concat;return t===ng||tg(ng,t)&&e===ng.concat?eg:e})),ig=e(tt.Object.getOwnPropertySymbols),og={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}Object.create&&(r.prototype=Object.create(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?qv(r).call(r,1):r);return ig?rg(i).call(i,ig(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}(og);var ag=function(t){x_(r,t);var e,n=G_(r);function r(){var t,e;e_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Z_(a_(e=n.call.apply(n,rg(t=[this]).call(t,o))),"monitor",void 0),e}return o_(r,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=t_(Qv().mark((function t(){return Qv().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}(og.exports.EventEmitter),sg=e(Ul);An({target:"Array",stat:!0},{isArray:In});var ug=e(tt.Array.isArray),cg=en,lg=Ql,fg=Je,hg=C,dg=Wt,pg=function(t,e,n,r){try{return r?e(cg(n)[0],n[1]):e(n)}catch(FT){lg(t,"throw",FT)}},vg=Pl,_g=yr,gg=Mn,yg=Hn,mg=Yl,bg=Ul,wg=Array,kg=function(t){var e=dg(t),n=_g(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=fg(i,r>2?arguments[2]:void 0));var a,s,u,c,l,f,h=bg(e),d=0;if(!h||this===wg&&vg(h))for(a=gg(e),s=n?new this(a):wg(a);a>d;d++)f=o?i(e[d],d):e[d],yg(s,d,f);else for(l=(c=mg(e,h)).next,s=n?new this:[];!(u=hg(l,c)).done;d++)f=o?pg(c,i,[u.value,d],!0):u.value,yg(s,d,f);return s.length=d,s};An({target:"Array",stat:!0,forced:!Tp((function(t){Array.from(t)}))},{from:kg});var Sg=e(tt.Array.from);function Eg(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 xg={exports:{}},Og=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Tg=i,Ag=$,Rg=m,Ig=Og,Cg=Object.isExtensible,Lg=Tg((function(){Cg(1)}))||Ig?function(t){return!!Ag(t)&&((!Ig||"ArrayBuffer"!=Rg(t))&&(!Cg||Cg(t)))}:Cg,Bg=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ng=An,Pg=k,zg=ii,Dg=$,jg=Xt,Mg=Xe.f,Fg=Fi,Ug=Zi,Gg=Lg,Zg=Bg,Kg=!1,Hg=ee("meta"),Vg=0,Wg=function(t){Mg(t,Hg,{value:{objectID:"O"+Vg++,weakData:{}}})},Yg=xg.exports={enable:function(){Yg.enable=function(){},Kg=!0;var t=Fg.f,e=Pg([].splice),n={};n[Hg]=1,t(n).length&&(Fg.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===Hg){e(r,i,1);break}return r},Ng({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ug.f}))},fastKey:function(t,e){if(!Dg(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!jg(t,Hg)){if(!Gg(t))return"F";if(!e)return"E";Wg(t)}return t[Hg].objectID},getWeakData:function(t,e){if(!jg(t,Hg)){if(!Gg(t))return!0;if(!e)return!1;Wg(t)}return t[Hg].weakData},onFreeze:function(t){return Zg&&Kg&&Gg(t)&&!jg(t,Hg)&&Wg(t),t}};zg[Hg]=!0;var Jg=xg.exports,Xg=An,qg=r,Qg=Jg,$g=i,ty=_n,ey=df,ny=Wf,ry=O,iy=$,oy=To,ay=Xe.f,sy=qo.forEach,uy=A,cy=Zo.set,ly=Zo.getterFor,fy=no,hy=Xe.f,dy=Mi,py=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:fy(t,r,e[r],n);return t},vy=Je,_y=Wf,gy=K,yy=df,my=nc,by=rc,wy=Kf,ky=A,Sy=Jg.fastKey,Ey=Zo.set,xy=Zo.getterFor,Oy={getConstructor:function(t,e,n,r){var i=t((function(t,i){_y(t,o),Ey(t,{type:e,index:dy(null),first:void 0,last:void 0,size:0}),ky||(t.size=0),gy(i)||yy(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=xy(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=Sy(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),ky?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=Sy(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return py(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,ky?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),ky?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=vy(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)}}),py(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)}}),ky&&hy(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=xy(e),o=xy(r);my(t,e,(function(t,e){Ey(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)?by("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,by(void 0,!0))}),n?"entries":"values",!n,!0),wy(e)}};(function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=qg[t],u=s&&s.prototype,c={};if(uy&&ry(s)&&(o||u.forEach&&!$g((function(){(new s).entries().next()})))){var l=(r=e((function(e,n){cy(ny(e,l),{type:t,collection:new s}),null!=n&&ey(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=ly(t);sy(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||o&&"clear"==t||ty(l,t,(function(n,r){var i=f(this).collection;if(!e&&o&&!iy(n))return"get"==t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||ay(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Qg.enable();oy(r,t,!1,!0),c[t]=r,Xg({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)}}),Oy);var Ty=tt.Map,Ay=Je,Ry=C,Iy=Rt,Cy=qf,Ly=K,By=df,Ny=[].push,Py=function(t){var e,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return Cy(this),(e=void 0!==a)&&Iy(a),Ly(t)?new this:(n=[],e?(r=0,i=Ay(a,o>2?arguments[2]:void 0),By(t,(function(t){Ry(Ny,n,i(t,r++))}))):By(t,Ny,{that:n}),new this(n))};An({target:"Map",stat:!0,forced:!0},{from:Py});var zy=bs,Dy=function(){return new this(zy(arguments))};An({target:"Map",stat:!0,forced:!0},{of:Dy});var jy=C,My=Rt,Fy=en,Uy=function(){for(var t,e=Fy(this),n=My(e.delete),r=!0,i=0,o=arguments.length;i<o;i++)t=jy(n,e,arguments[i]),r=r&&t;return!!r};An({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:Uy});var Gy=C,Zy=Rt,Ky=en;An({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=Ky(this),o=Zy(i.get),a=Zy(i.has),s=Zy(i.set);return Gy(a,i,t)?(n=Gy(o,i,t),"update"in e&&(n=e.update(n,t,i),Gy(s,i,t,n)),n):(r=e.insert(t,i),Gy(s,i,t,r),r)}});var Hy=Yl,Vy=en,Wy=Je,Yy=Hy,Jy=df;An({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Vy(this),n=Yy(e),r=Wy(t,arguments.length>1?arguments[1]:void 0);return!Jy(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Xy=ot,qy=Je,Qy=C,$y=Rt,tm=en,em=nh,nm=Hy,rm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=tm(this),n=nm(e),r=qy(t,arguments.length>1?arguments[1]:void 0),i=new(em(e,Xy("Map"))),o=$y(i.set);return rm(n,(function(t,n){r(n,t,e)&&Qy(o,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var im=en,om=Je,am=Hy,sm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=im(this),n=am(e),r=om(t,arguments.length>1?arguments[1]:void 0);return sm(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var um=en,cm=Je,lm=Hy,fm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=um(this),n=lm(e),r=cm(t,arguments.length>1?arguments[1]:void 0);return fm(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var hm=An,dm=C,pm=Rt,vm=Yl,_m=df,gm=k([].push);hm({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){pm(e);var n=vm(t),r=new this,i=pm(r.has),o=pm(r.get),a=pm(r.set);return _m(n,(function(t){var n=e(t);dm(i,r,n)?gm(dm(o,r,n),t):dm(a,r,n,[t])}),{IS_ITERATOR:!0}),r}});var ym=en,mm=Hy,bm=function(t,e){return t===e||t!=t&&e!=e},wm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return wm(mm(ym(this)),(function(e,n,r){if(bm(n,t))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var km=C,Sm=df,Em=Rt;An({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;Em(e);var r=Em(n.set);return Sm(t,(function(t){km(r,n,e(t),t)})),n}});var xm=en,Om=Hy,Tm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return Tm(Om(xm(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Am=ot,Rm=Je,Im=C,Cm=Rt,Lm=en,Bm=nh,Nm=Hy,Pm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Lm(this),n=Nm(e),r=Rm(t,arguments.length>1?arguments[1]:void 0),i=new(Bm(e,Am("Map"))),o=Cm(i.set);return Pm(n,(function(t,n){Im(o,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var zm=ot,Dm=Je,jm=C,Mm=Rt,Fm=en,Um=nh,Gm=Hy,Zm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Fm(this),n=Gm(e),r=Dm(t,arguments.length>1?arguments[1]:void 0),i=new(Um(e,zm("Map"))),o=Mm(i.set);return Zm(n,(function(t,n){jm(o,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Km=Rt,Hm=en,Vm=df;An({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Hm(this),n=Km(e.set),r=arguments.length,i=0;i<r;)Vm(arguments[i++],n,{that:e,AS_ENTRIES:!0});return e}});var Wm=en,Ym=Rt,Jm=Hy,Xm=df,qm=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Wm(this),n=Jm(e),r=arguments.length<2,i=r?void 0:arguments[1];if(Ym(t),Xm(n,(function(n,o){r?(r=!1,i=o):i=t(i,o,n,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw qm("Reduce of empty map with no initial value");return i}});var Qm=en,$m=Je,tb=Hy,eb=df;An({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Qm(this),n=tb(e),r=$m(t,arguments.length>1?arguments[1]:void 0);return eb(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var nb=C,rb=en,ib=Rt,ob=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=rb(this),r=ib(n.get),i=ib(n.has),o=ib(n.set),a=arguments.length;ib(e);var s=nb(i,n,t);if(!s&&a<3)throw ob("Updating absent value");var u=s?nb(r,n,t):ib(a>2?arguments[2]:void 0)(t,n);return nb(o,n,t,e(u,t,n)),n}});var ab=C,sb=Rt,ub=O,cb=en,lb=TypeError,fb=function(t,e){var n,r=cb(this),i=sb(r.get),o=sb(r.has),a=sb(r.set),s=arguments.length>2?arguments[2]:void 0;if(!ub(e)&&!ub(s))throw lb("At least one callback required");return ab(o,r,t)?(n=ab(i,r,t),ub(e)&&(n=e(n),ab(a,r,t,n))):ub(s)&&(n=s(),ab(a,r,t,n)),n};An({target:"Map",proto:!0,real:!0,forced:!0},{upsert:fb}),An({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:fb});var hb=e(Ty),db=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}(db||{}),pb=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(pb||{}),vb=function(t){x_(n,t);var e=G_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Z_(a_(r=e.call.apply(e,rg(t=[this]).call(t,o))),"type",db.PRE_PROCESSING),r}return o_(n)}(ag),_b=ol("Array").values,gb=tr,yb=Xt,mb=at,bb=_b,wb=Array.prototype,kb={DOMTokenList:!0,NodeList:!0},Sb=e((function(t){var e=t.values;return t===wb||mb(wb,t)&&e===wb.values||yb(kb,gb(t))?bb:e})),Eb=ol("Array").keys,xb=tr,Ob=Xt,Tb=at,Ab=Eb,Rb=Array.prototype,Ib={DOMTokenList:!0,NodeList:!0},Cb=e((function(t){var e=t.keys;return t===Rb||Tb(Rb,t)&&e===Rb.keys||Ob(Ib,xb(t))?Ab:e})),Lb=ri.includes;An({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return Lb(this,t,arguments.length>1?arguments[1]:void 0)}});var Bb=ol("Array").includes,Nb=$,Pb=m,zb=fe("match"),Db=function(t){var e;return Nb(t)&&(void 0!==(e=t[zb])?!!e:"RegExp"==Pb(t))},jb=TypeError,Mb=fe("match"),Fb=An,Ub=function(t){if(Db(t))throw jb("The method doesn't accept regular expressions");return t},Gb=W,Zb=Wr,Kb=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Mb]=!1,"/./"[t](e)}catch(r){}}return!1},Hb=k("".indexOf);Fb({target:"String",proto:!0,forced:!Kb("includes")},{includes:function(t){return!!~Hb(Zb(Gb(this)),Zb(Ub(t)),arguments.length>1?arguments[1]:void 0)}});var Vb=ol("String").includes,Wb=at,Yb=Bb,Jb=Vb,Xb=Array.prototype,qb=String.prototype,Qb=e((function(t){var e=t.includes;return t===Xb||Wb(Xb,t)&&e===Xb.includes?Yb:"string"==typeof t||t===qb||Wb(qb,t)&&e===qb.includes?Jb:e})),$b=tt,tw=l;$b.JSON||($b.JSON={stringify:JSON.stringify});var ew,nw=function(t,e,n){return tw($b.JSON.stringify,null,arguments)},rw=e(nw),iw=new Uint8Array(16);function ow(){if(!ew&&!(ew="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ew(iw)}var aw=/^(?:[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 sw=[],uw=0;uw<256;++uw)sw.push((uw+256).toString(16).substr(1));function cw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(sw[t[e+0]]+sw[t[e+1]]+sw[t[e+2]]+sw[t[e+3]]+"-"+sw[t[e+4]]+sw[t[e+5]]+"-"+sw[t[e+6]]+sw[t[e+7]]+"-"+sw[t[e+8]]+sw[t[e+9]]+"-"+sw[t[e+10]]+sw[t[e+11]]+sw[t[e+12]]+sw[t[e+13]]+sw[t[e+14]]+sw[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&aw.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}function lw(t,e,n){var r=(t=t||{}).random||(t.rng||ow)();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 cw(r)}var fw=function(){return"undefined"==typeof window};function hw(t){return null==t?"undefined | null":"string"==typeof t?t:rw({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function dw(t){return null==t?"undefined | null":"string"==typeof t?t:rw({track:hw(t.track)})}function pw(t){return null==t?"undefined | null":"string"==typeof t?t:rw({track:hw(t.track)})}var vw="@byted/ve-rtc",_w="@byted/ve-rtc-cache-size",gw=function(){function t(){e_(this,t),Z_(this,"storeKey",void 0),Z_(this,"logLevel",void 0),Z_(this,"LogfileSize",void 0),Z_(this,"db",void 0),Z_(this,"logId",void 0),Z_(this,"cacheLog",void 0),Z_(this,"cachedSize",void 0),Z_(this,"preCacheTime",void 0),Z_(this,"timer",void 0),Z_(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 o_(t,[{key:"_createStore",value:function(){var t=this;if(!fw()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(vw);try{localStorage.removeItem(_w)}catch(FT){}},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(_w);if(e)this.cachedSize=Number(e);else Sb(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(FT){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(_w,"".concat(this.cachedSize))}catch(FT){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(vw,t).objectStore(vw)}},{key:"set",value:function(t){var e=this;return new Sv((function(n,r){if("none"===e.logLevel)return n();var i;if(t&&e.preCacheTime&&e.preCacheTime-Date.now()<1e3)return e.cacheLog+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=setTimeout((function(){e.set("")}),1e3-(e.preCacheTime-Date.now()))),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=rg(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?rg(s=rg(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(rg(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([rg(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Date.now(),n()}catch(p){var d;if(!t)return r(p);e.cacheLog+=rg(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+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,r(n)}}))}},{key:"get",value:function(t){var e=this;return new Sv((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 Sv((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 Cb(this).call(this).then((function(t){var e,n=Date.now();return t.forEach((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 Sv((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 Sv((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}(),yw=new gw,mw=qo.map;An({target:"Array",proto:!0,forced:!Rr("map")},{map:function(t){return mw(this,t,arguments.length>1?arguments[1]:void 0)}});var bw=ol("Array").map,ww=at,kw=bw,Sw=Array.prototype,Ew=e((function(t){var e=t.map;return t===Sw||ww(Sw,t)&&e===Sw.map?kw:e})),xw=Nn,Ow=Wr,Tw=W,Aw=RangeError,Rw=k,Iw=Dn,Cw=Wr,Lw=W,Bw=Rw((function(t){var e=Ow(Tw(this)),n="",r=xw(t);if(r<0||r==1/0)throw Aw("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Nw=Rw("".slice),Pw=Math.ceil,zw=function(t){return function(e,n,r){var i,o,a=Cw(Lw(e)),s=Iw(n),u=a.length,c=void 0===r?" ":Cw(r);return s<=u||""==c?a:((o=Bw(c,Pw((i=s-u)/c.length))).length>i&&(o=Nw(o,0,i)),t?a+o:o+a)}},Dw={start:zw(!1),end:zw(!0)},jw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),Mw=Dw.start;An({target:"String",proto:!0,forced:jw},{padStart:function(t){return Mw(this,t,arguments.length>1?arguments[1]:void 0)}});var Fw=ol("String").padStart,Uw=at,Gw=Fw,Zw=String.prototype,Kw=e((function(t){var e=t.padStart;return"string"==typeof t||t===Zw||Uw(Zw,t)&&e===Zw.padStart?Gw:e}));function Hw(t){return function(t){if(ug(t))return Eg(t)}(t)||function(t){if(void 0!==kc&&null!=sg(t)||null!=t["@@iterator"])return Sg(t)}(t)||function(t,e){var n;if(t){if("string"==typeof t)return Eg(t,e);var r=qv(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Sg(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eg(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 Vw=A,Ww=In,Yw=TypeError,Jw=Object.getOwnPropertyDescriptor,Xw=Vw&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(FT){return FT instanceof TypeError}}(),qw=xt,Qw=TypeError,$w=An,tk=Wt,ek=Qr,nk=Nn,rk=Mn,ik=Xw?function(t,e){if(Ww(t)&&!Jw(t,"length").writable)throw Yw("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ok=Un,ak=xr,sk=Hn,uk=function(t,e){if(!delete t[e])throw Qw("Cannot delete property "+qw(e)+" of "+qw(t))},ck=Rr("splice"),lk=Math.max,fk=Math.min;$w({target:"Array",proto:!0,forced:!ck},{splice:function(t,e){var n,r,i,o,a,s,u=tk(this),c=rk(u),l=ek(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=fk(lk(nk(e),0),c-l)),ok(c+n-r),i=ak(u,r),o=0;o<r;o++)(a=l+o)in u&&sk(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]:uk(u,s);for(o=c;o>c-r+n;o--)uk(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]:uk(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return ik(u,c-r+n),i}});var hk=ol("Array").splice,dk=at,pk=hk,vk=Array.prototype,_k=e((function(t){var e=t.splice;return t===vk||dk(vk,t)&&e===vk.splice?pk:e})),gk=An,yk=ri.indexOf,mk=el,bk=k([].indexOf),wk=!!bk&&1/bk([1],1,-0)<0,kk=mk("indexOf");gk({target:"Array",proto:!0,forced:wk||!kk},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return wk?bk(this,t,e)||0:yk(this,t,e)}});var Sk=ol("Array").indexOf,Ek=at,xk=Sk,Ok=Array.prototype,Tk=e((function(t){var e=t.indexOf;return t===Ok||Ek(Ok,t)&&e===Ok.indexOf?xk:e})),Ak=function(){function t(){e_(this,t),Z_(this,"_all",{})}return o_(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||_k(n).call(n,Tk(n).call(n,e)>>>0,1)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=this._all[t];null==i||qv(i).call(i).forEach((function(t){return t.apply(void 0,n)}))}},{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,rg(e=[t]).call(e,r))}catch(FT){console.error(FT)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),Rk=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var Ik=function(t){x_(n,t);var e=G_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Z_(a_(r=e.call.apply(e,rg(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 o_(n,[{key:"setParameter",value:function(t,e){if(function(t){return Qb(Rk).call(Rk,t)}(t))try{this.config[t]=Number(e)}catch(r){var n;return void console.warn(rg(n="Cannot convert core lib parameter ".concat(t,":")).call(n,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 V_(this.config)}}]),n}(Ak),Ck=new Ik,Lk={exports:{}},Bk=An,Nk=i,Pk=X,zk=T.f,Dk=A,jk=Nk((function(){zk(1)}));Bk({target:"Object",stat:!0,forced:!Dk||jk,sham:!Dk},{getOwnPropertyDescriptor:function(t,e){return zk(Pk(t),e)}});var Mk=tt.Object,Fk=Lk.exports=function(t,e){return Mk.getOwnPropertyDescriptor(t,e)};Mk.getOwnPropertyDescriptor.sham&&(Fk.sham=!0);var Uk=e(Lk.exports),Gk=bl,Zk=X,Kk=T,Hk=Hn;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Zk(t),i=Kk.f,o=Gk(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Hk(a,e,n);return a}});var Vk=e(tt.Object.getOwnPropertyDescriptors),Wk={exports:{}},Yk=An,Jk=A,Xk=Yr.f;Yk({target:"Object",stat:!0,forced:Object.defineProperties!==Xk,sham:!Jk},{defineProperties:Xk});var qk=tt.Object,Qk=Wk.exports=function(t,e){return qk.defineProperties(t,e)};qk.defineProperties.sham&&(Qk.sham=!0);var $k=e(Wk.exports);function tS(t,e){var n=V_(t);if(ig){var r=ig(t);e&&(r=Q_(r).call(r,(function(e){return Uk(t,e).enumerable}))),n.push.apply(n,r)}return n}function eS(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?dl(n=tS(Object(i),!0)).call(n,(function(e){Z_(t,e,i[e])})):Vk?$k(t,Vk(i)):dl(r=tS(Object(i))).call(r,(function(e){Wc(t,e,Uk(i,e))}))}return t}var nS=A,rS=k,iS=C,oS=i,aS=pi,sS=to,uS=L,cS=Wt,lS=Z,fS=Object.assign,hS=Object.defineProperty,dS=rS([].concat),pS=!fS||oS((function(){if(nS&&1!==fS({b:1},fS(hS({},"a",{enumerable:!0,get:function(){hS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=fS({},t)[n]||aS(fS({},e)).join("")!=r}))?function(t,e){for(var n=cS(t),r=arguments.length,i=1,o=sS.f,a=uS.f;r>i;)for(var s,u=lS(arguments[i++]),c=o?dS(aS(u),o(u)):aS(u),l=c.length,f=0;l>f;)s=c[f++],nS&&!iS(a,u,s)||(n[s]=u[s]);return n}:fS,vS=pS;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==vS},{assign:vS});var _S=e(tt.Object.assign),gS=In,yS=Mn,mS=Un,bS=Je,wS=function(t,e,n,r,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&bS(a,s);f<r;)f in n&&(u=h?h(n[f],f,e):n[f],o>0&&gS(u)?(c=yS(u),l=wS(t,e,u,c,l,o-1)-1):(mS(l+1),t[l]=u),l++),f++;return l},kS=wS,SS=Wt,ES=Mn,xS=Nn,OS=xr;An({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=SS(this),n=ES(e),r=OS(e,0);return r.length=kS(r,e,e,n,0,void 0===t?1:xS(t)),r}});var TS=ol("Array").flat,AS=at,RS=TS,IS=Array.prototype,CS=e((function(t){var e=t.flat;return t===IS||AS(IS,t)&&e===IS.flat?RS:e})),LS={};!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=qv(Array.prototype).call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==Fc(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 rg([]).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)}(LS);var BS={},NS={},PS={},zS=LS,DS=0,jS=1;function MS(t){for(var e=t.length;--e>=0;)t[e]=0}var FS=0,US=29,GS=256,ZS=GS+1+US,KS=30,HS=19,VS=2*ZS+1,WS=15,YS=16,JS=7,XS=256,qS=16,QS=17,$S=18,tE=[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],eE=[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],nE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],iE=new Array(2*(ZS+2));MS(iE);var oE=new Array(2*KS);MS(oE);var aE=new Array(512);MS(aE);var sE=new Array(256);MS(sE);var uE=new Array(US);MS(uE);var cE,lE,fE,hE=new Array(KS);function dE(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 pE(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function vE(t){return t<256?aE[t]:aE[256+(t>>>7)]}function _E(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function gE(t,e,n){t.bi_valid>YS-n?(t.bi_buf|=e<<t.bi_valid&65535,_E(t,t.bi_buf),t.bi_buf=e>>YS-t.bi_valid,t.bi_valid+=n-YS):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function yE(t,e,n){gE(t,n[2*e],n[2*e+1])}function mE(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function bE(t,e,n){var r,i,o=new Array(WS+1),a=0;for(r=1;r<=WS;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]=mE(o[s]++,s))}}function wE(t){var e;for(e=0;e<ZS;e++)t.dyn_ltree[2*e]=0;for(e=0;e<KS;e++)t.dyn_dtree[2*e]=0;for(e=0;e<HS;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*XS]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function kE(t){t.bi_valid>8?_E(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 SE(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 EE(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&SE(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!SE(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function xE(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?yE(t,i,e):(yE(t,(o=sE[i])+GS+1,e),0!==(a=tE[o])&&gE(t,i-=uE[o],a),yE(t,o=vE(--r),n),0!==(a=eE[o])&&gE(t,r-=hE[o],a))}while(s<t.last_lit);yE(t,XS,e)}function OE(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=VS,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--)EE(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],EE(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++,EE(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<=WS;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<VS;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),bE(o,c,t.bl_count)}function TE(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*qS]++):s<=10?t.bl_tree[2*QS]++:t.bl_tree[2*$S]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function AE(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{yE(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(yE(t,i,t.bl_tree),s--),yE(t,qS,t.bl_tree),gE(t,s-3,2)):s<=10?(yE(t,QS,t.bl_tree),gE(t,s-3,3)):(yE(t,$S,t.bl_tree),gE(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}MS(hE);var RE=!1;function IE(t,e,n,r){gE(t,(FS<<1)+(r?1:0),3),function(t,e,n,r){kE(t),r&&(_E(t,n),_E(t,~n)),zS.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}PS._tr_init=function(t){RE||(!function(){var t,e,n,r,i,o=new Array(WS+1);for(n=0,r=0;r<US-1;r++)for(uE[r]=n,t=0;t<1<<tE[r];t++)sE[n++]=r;for(sE[n-1]=r,i=0,r=0;r<16;r++)for(hE[r]=i,t=0;t<1<<eE[r];t++)aE[i++]=r;for(i>>=7;r<KS;r++)for(hE[r]=i<<7,t=0;t<1<<eE[r]-7;t++)aE[256+i++]=r;for(e=0;e<=WS;e++)o[e]=0;for(t=0;t<=143;)iE[2*t+1]=8,t++,o[8]++;for(;t<=255;)iE[2*t+1]=9,t++,o[9]++;for(;t<=279;)iE[2*t+1]=7,t++,o[7]++;for(;t<=287;)iE[2*t+1]=8,t++,o[8]++;for(bE(iE,ZS+1,o),t=0;t<KS;t++)oE[2*t+1]=5,oE[2*t]=mE(t,5);cE=new dE(iE,tE,GS+1,ZS,WS),lE=new dE(oE,eE,0,KS,WS),fE=new dE(new Array(0),nE,0,HS,JS)}(),RE=!0),t.l_desc=new pE(t.dyn_ltree,cE),t.d_desc=new pE(t.dyn_dtree,lE),t.bl_desc=new pE(t.bl_tree,fE),t.bi_buf=0,t.bi_valid=0,wE(t)},PS._tr_stored_block=IE,PS._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 DS;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return jS;for(e=32;e<GS;e++)if(0!==t.dyn_ltree[2*e])return jS;return DS}(t)),OE(t,t.l_desc),OE(t,t.d_desc),a=function(t){var e;for(TE(t,t.dyn_ltree,t.l_desc.max_code),TE(t,t.dyn_dtree,t.d_desc.max_code),OE(t,t.bl_desc),e=HS-1;e>=3&&0===t.bl_tree[2*rE[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?IE(t,e,n,r):4===t.strategy||o===i?(gE(t,2+(r?1:0),3),xE(t,iE,oE)):(gE(t,4+(r?1:0),3),function(t,e,n,r){var i;for(gE(t,e-257,5),gE(t,n-1,5),gE(t,r-4,4),i=0;i<r;i++)gE(t,t.bl_tree[2*rE[i]+1],3);AE(t,t.dyn_ltree,e-1),AE(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),xE(t,t.dyn_ltree,t.dyn_dtree)),wE(t),r&&kE(t)},PS._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*(sE[n]+GS+1)]++,t.dyn_dtree[2*vE(e)]++),t.last_lit===t.lit_bufsize-1},PS._tr_align=function(t){gE(t,2,3),yE(t,XS,iE),function(t){16===t.bi_valid?(_E(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 CE=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 LE=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 BE,NE=function(t,e,n,r){var i=LE,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},PE={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"},zE=LS,DE=PS,jE=CE,ME=NE,FE=PE,UE=0,GE=4,ZE=0,KE=-2,HE=-1,VE=4,WE=2,YE=8,JE=9,XE=286,qE=30,QE=19,$E=2*XE+1,tx=15,ex=3,nx=258,rx=nx+ex+1,ix=42,ox=103,ax=113,sx=666,ux=1,cx=2,lx=3,fx=4;function hx(t,e){return t.msg=FE[e],e}function dx(t){return(t<<1)-(t>4?9:0)}function px(t){for(var e=t.length;--e>=0;)t[e]=0}function vx(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(zE.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 _x(t,e){DE._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,vx(t.strm)}function gx(t,e){t.pending_buf[t.pending++]=e}function yx(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function mx(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-rx?t.strstart-(t.w_size-rx):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+nx,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=nx-(h-o),o=h-nx,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 bx(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-rx)){zE.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,zE.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=jE(a.adler,s,l,u):2===a.state.wrap&&(a.adler=ME(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=ex)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+ex-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<ex)););}while(t.lookahead<rx&&0!==t.strm.avail_in)}function wx(t,e){for(var n,r;;){if(t.lookahead<rx){if(bx(t),t.lookahead<rx&&e===UE)return ux;if(0===t.lookahead)break}if(n=0,t.lookahead>=ex&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ex-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-rx&&(t.match_length=mx(t,n)),t.match_length>=ex)if(r=DE._tr_tally(t,t.strstart-t.match_start,t.match_length-ex),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ex){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ex-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=DE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(_x(t,!1),0===t.strm.avail_out))return ux}return t.insert=t.strstart<ex-1?t.strstart:ex-1,e===GE?(_x(t,!0),0===t.strm.avail_out?lx:fx):t.last_lit&&(_x(t,!1),0===t.strm.avail_out)?ux:cx}function kx(t,e){for(var n,r,i;;){if(t.lookahead<rx){if(bx(t),t.lookahead<rx&&e===UE)return ux;if(0===t.lookahead)break}if(n=0,t.lookahead>=ex&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ex-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=ex-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-rx&&(t.match_length=mx(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===ex&&t.strstart-t.match_start>4096)&&(t.match_length=ex-1)),t.prev_length>=ex&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-ex,r=DE._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-ex),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+ex-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=ex-1,t.strstart++,r&&(_x(t,!1),0===t.strm.avail_out))return ux}else if(t.match_available){if((r=DE._tr_tally(t,0,t.window[t.strstart-1]))&&_x(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return ux}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=DE._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<ex-1?t.strstart:ex-1,e===GE?(_x(t,!0),0===t.strm.avail_out?lx:fx):t.last_lit&&(_x(t,!1),0===t.strm.avail_out)?ux:cx}function Sx(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 Ex(){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=YE,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 zE.Buf16(2*$E),this.dyn_dtree=new zE.Buf16(2*(2*qE+1)),this.bl_tree=new zE.Buf16(2*(2*QE+1)),px(this.dyn_ltree),px(this.dyn_dtree),px(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new zE.Buf16(tx+1),this.heap=new zE.Buf16(2*XE+1),px(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new zE.Buf16(2*XE+1),px(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 xx(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=WE,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ix:ax,t.adler=2===e.wrap?0:1,e.last_flush=UE,DE._tr_init(e),ZE):hx(t,KE)}function Ox(t){var e,n=xx(t);return n===ZE&&((e=t.state).window_size=2*e.w_size,px(e.head),e.max_lazy_match=BE[e.level].max_lazy,e.good_match=BE[e.level].good_length,e.nice_match=BE[e.level].nice_length,e.max_chain_length=BE[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ex-1,e.match_available=0,e.ins_h=0),n}function Tx(t,e,n,r,i,o){if(!t)return KE;var a=1;if(e===HE&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>JE||n!==YE||r<8||r>15||e<0||e>9||o<0||o>VE)return hx(t,KE);8===r&&(r=9);var s=new Ex;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+ex-1)/ex),s.window=new zE.Buf8(2*s.w_size),s.head=new zE.Buf16(s.hash_size),s.prev=new zE.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new zE.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,Ox(t)}BE=[new Sx(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(bx(t),0===t.lookahead&&e===UE)return ux;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,_x(t,!1),0===t.strm.avail_out))return ux;if(t.strstart-t.block_start>=t.w_size-rx&&(_x(t,!1),0===t.strm.avail_out))return ux}return t.insert=0,e===GE?(_x(t,!0),0===t.strm.avail_out?lx:fx):(t.strstart>t.block_start&&(_x(t,!1),t.strm.avail_out),ux)})),new Sx(4,4,8,4,wx),new Sx(4,5,16,8,wx),new Sx(4,6,32,32,wx),new Sx(4,4,16,16,kx),new Sx(8,16,32,32,kx),new Sx(8,16,128,128,kx),new Sx(8,32,128,256,kx),new Sx(32,128,258,1024,kx),new Sx(32,258,258,4096,kx)],NS.deflateInit=function(t,e){return Tx(t,e,YE,15,8,0)},NS.deflateInit2=Tx,NS.deflateReset=Ox,NS.deflateResetKeep=xx,NS.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?KE:(t.state.gzhead=e,ZE):KE},NS.deflate=function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?hx(t,KE):KE;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===sx&&e!==GE)return hx(t,0===t.avail_out?-5:KE);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===ix)if(2===r.wrap)t.adler=0,gx(r,31),gx(r,139),gx(r,8),r.gzhead?(gx(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)),gx(r,255&r.gzhead.time),gx(r,r.gzhead.time>>8&255),gx(r,r.gzhead.time>>16&255),gx(r,r.gzhead.time>>24&255),gx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),gx(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(gx(r,255&r.gzhead.extra.length),gx(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=ME(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(gx(r,0),gx(r,0),gx(r,0),gx(r,0),gx(r,0),gx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),gx(r,3),r.status=ax);else{var a=YE+(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=ax,yx(r,a),0!==r.strstart&&(yx(r,t.adler>>>16),yx(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=ME(t.adler,r.pending_buf,r.pending-i,i)),vx(t),i=r.pending,r.pending!==r.pending_buf_size));)gx(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=ME(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=ME(t.adler,r.pending_buf,r.pending-i,i)),vx(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,gx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=ME(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=ME(t.adler,r.pending_buf,r.pending-i,i)),vx(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,gx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=ME(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=ox)}else r.status=ox;if(r.status===ox&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&vx(t),r.pending+2<=r.pending_buf_size&&(gx(r,255&t.adler),gx(r,t.adler>>8&255),t.adler=0,r.status=ax)):r.status=ax),0!==r.pending){if(vx(t),0===t.avail_out)return r.last_flush=-1,ZE}else if(0===t.avail_in&&dx(e)<=dx(n)&&e!==GE)return hx(t,-5);if(r.status===sx&&0!==t.avail_in)return hx(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==UE&&r.status!==sx){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(bx(t),0===t.lookahead)){if(e===UE)return ux;break}if(t.match_length=0,n=DE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(_x(t,!1),0===t.strm.avail_out))return ux}return t.insert=0,e===GE?(_x(t,!0),0===t.strm.avail_out?lx:fx):t.last_lit&&(_x(t,!1),0===t.strm.avail_out)?ux:cx}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=nx){if(bx(t),t.lookahead<=nx&&e===UE)return ux;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=ex&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+nx;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=nx-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ex?(n=DE._tr_tally(t,1,t.match_length-ex),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=DE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(_x(t,!1),0===t.strm.avail_out))return ux}return t.insert=0,e===GE?(_x(t,!0),0===t.strm.avail_out?lx:fx):t.last_lit&&(_x(t,!1),0===t.strm.avail_out)?ux:cx}(r,e):BE[r.level].func(r,e);if(s!==lx&&s!==fx||(r.status=sx),s===ux||s===lx)return 0===t.avail_out&&(r.last_flush=-1),ZE;if(s===cx&&(1===e?DE._tr_align(r):5!==e&&(DE._tr_stored_block(r,0,0,!1),3===e&&(px(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),vx(t),0===t.avail_out))return r.last_flush=-1,ZE}return e!==GE?ZE:r.wrap<=0?1:(2===r.wrap?(gx(r,255&t.adler),gx(r,t.adler>>8&255),gx(r,t.adler>>16&255),gx(r,t.adler>>24&255),gx(r,255&t.total_in),gx(r,t.total_in>>8&255),gx(r,t.total_in>>16&255),gx(r,t.total_in>>24&255)):(yx(r,t.adler>>>16),yx(r,65535&t.adler)),vx(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?ZE:1)},NS.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==ix&&69!==e&&73!==e&&91!==e&&e!==ox&&e!==ax&&e!==sx?hx(t,KE):(t.state=null,e===ax?hx(t,-3):ZE):KE},NS.deflateSetDictionary=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return KE;if(2===(o=(n=t.state).wrap)||1===o&&n.status!==ix||n.lookahead)return KE;for(1===o&&(t.adler=jE(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(px(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new zE.Buf8(n.w_size),zE.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,bx(n);n.lookahead>=ex;){r=n.strstart,i=n.lookahead-(ex-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+ex-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=ex-1,bx(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=ex-1,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,ZE},NS.deflateInfo="pako deflate (from Nodeca project)";var Ax={},Rx=LS,Ix=!0,Cx=!0;try{String.fromCharCode.apply(null,[0])}catch(UT){Ix=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(UT){Cx=!1}for(var Lx=new Rx.Buf8(256),Bx=0;Bx<256;Bx++)Lx[Bx]=Bx>=252?6:Bx>=248?5:Bx>=240?4:Bx>=224?3:Bx>=192?2:1;function Nx(t,e){if(e<65534&&(t.subarray&&Cx||!t.subarray&&Ix))return String.fromCharCode.apply(null,Rx.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}Lx[254]=Lx[254]=1,Ax.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 Rx.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},Ax.buf2binstring=function(t){return Nx(t,t.length)},Ax.binstring2buf=function(t){for(var e=new Rx.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},Ax.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=Lx[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 Nx(s,r)},Ax.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+Lx[t[n]]>e?n:e};var Px=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},zx=NS,Dx=LS,jx=Ax,Mx=PE,Fx=Px,Ux=Object.prototype.toString,Gx=0,Zx=-1,Kx=0,Hx=8;function Vx(t){if(!(this instanceof Vx))return new Vx(t);this.options=Dx.assign({level:Zx,method:Hx,chunkSize:16384,windowBits:15,memLevel:8,strategy:Kx,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 Fx,this.strm.avail_out=0;var n=zx.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Gx)throw new Error(Mx[n]);if(e.header&&zx.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?jx.string2buf(e.dictionary):"[object ArrayBuffer]"===Ux.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=zx.deflateSetDictionary(this.strm,r))!==Gx)throw new Error(Mx[n]);this._dict_set=!0}}function Wx(t,e){var n=new Vx(e);if(n.push(t,!0),n.err)throw n.msg||Mx[n.err];return n.result}Vx.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=jx.string2buf(t):"[object ArrayBuffer]"===Ux.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 Dx.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=zx.deflate(i,r))&&n!==Gx)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(jx.buf2binstring(Dx.shrinkBuf(i.output,i.next_out))):this.onData(Dx.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=zx.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Gx):2!==r||(this.onEnd(Gx),i.avail_out=0,!0)},Vx.prototype.onData=function(t){this.chunks.push(t)},Vx.prototype.onEnd=function(t){t===Gx&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Dx.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},BS.Deflate=Vx,BS.deflate=Wx,BS.deflateRaw=function(t,e){return(e=e||{}).raw=!0,Wx(t,e)},BS.gzip=function(t,e){return(e=e||{}).gzip=!0,Wx(t,e)};var Yx={},Jx=en,Xx=C,qx=Xt,Qx=at,$x=function(){var t=Jx(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},tO=RegExp.prototype,eO=at,nO=function(t){var e=t.flags;return void 0!==e||"flags"in tO||qx(t,"flags")||!Qx(tO,t)?e:Xx($x,t)},rO=RegExp.prototype,iO=e((function(t){return t===rO||eO(rO,t)?nO(t):t.flags})),oO={},aO=LS,sO=15,uO=[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],cO=[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],lO=[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],fO=[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],hO=LS,dO=CE,pO=NE,vO=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,E,x,O;n=t.state,r=t.next_in,x=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+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,(p+=8)<b&&(d+=x[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,E=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=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,E=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=O}for(;w>2;)O[o++]=E[S++],O[o++]=E[S++],O[o++]=E[S++],w-=3;w&&(O[o++]=E[S++],w>1&&(O[o++]=E[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},_O=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,E=0,x=0,O=0,T=0,A=null,R=0,I=new aO.Buf16(16),C=new aO.Buf16(16),L=null,B=0;for(y=0;y<=sO;y++)I[y]=0;for(m=0;m<r;m++)I[e[n+m]]++;for(k=g,w=sO;w>=1&&0===I[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===I[b];b++);for(k<b&&(k=b),x=1,y=1;y<=sO;y++)if(x<<=1,(x-=I[y])<0)return-1;if(x>0&&(0===t||1!==w))return-1;for(C[1]=0,y=1;y<sO;y++)C[y+1]=C[y]+I[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[C[e[n+m]]++]=m);if(0===t?(A=L=a,d=19):1===t?(A=uO,R-=257,L=cO,B-=257,d=256):(A=lO,L=fO,d=-1),T=0,m=0,y=b,h=o,S=k,E=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-E,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=L[B+a[m]],_=A[R+a[m]]):(v=96,_=0),u=1<<y-E,b=c=1<<S;do{i[h+(T>>E)+(c-=u)]=p<<24|v<<16|_|0}while(0!==c);for(u=1<<y-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,m++,0==--I[y]){if(y===w)break;y=e[n+a[m]]}if(y>k&&(T&f)!==l){for(0===E&&(E=k),h+=b,x=1<<(S=y-E);S+E<w&&!((x-=I[S+E])<=0);)S++,x<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=T&f]=k<<24|S<<16|h-o|0}}return 0!==T&&(i[h+T]=y-E<<24|64<<16|0),s.bits=k,0},gO=1,yO=2,mO=0,bO=-2,wO=1,kO=12,SO=30,EO=852,xO=592;function OO(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function TO(){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 hO.Buf16(320),this.work=new hO.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function AO(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=wO,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new hO.Buf32(EO),e.distcode=e.distdyn=new hO.Buf32(xO),e.sane=1,e.back=-1,mO):bO}function RO(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,AO(t)):bO}function IO(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)?bO:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,RO(t))):bO}function CO(t,e){var n,r;return t?(r=new TO,t.state=r,r.window=null,(n=IO(t,e))!==mO&&(t.state=null),n):bO}var LO,BO,NO=!0;function PO(t){if(NO){var e;for(LO=new hO.Buf32(512),BO=new hO.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(_O(gO,t.lens,0,288,LO,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;_O(yO,t.lens,0,32,BO,0,t.work,{bits:5}),NO=!1}t.lencode=LO,t.lenbits=9,t.distcode=BO,t.distbits=5}function zO(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 hO.Buf8(o.wsize)),r>=o.wsize?(hO.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),hO.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(hO.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}oO.inflateReset=RO,oO.inflateReset2=IO,oO.inflateResetKeep=AO,oO.inflateInit=function(t){return CO(t,15)},oO.inflateInit2=CO,oO.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,E,x,O=0,T=new hO.Buf8(4),A=[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 bO;(n=t.state).mode===kO&&(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=mO;t:for(;;)switch(n.mode){case wO: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,T[0]=255&c,T[1]=c>>>8&255,n.check=pO(n.check,T,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=SO;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=SO;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=SO;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:kO,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&iO(n))){t.msg="unknown compression method",n.mode=SO;break}if(57344&iO(n)){t.msg="unknown header flags set",n.mode=SO;break}n.head&&(n.head.text=c>>8&1),512&iO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=pO(n.check,T,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&iO(n)&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=pO(n.check,T,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&iO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=pO(n.check,T,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&iO(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&iO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=pO(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&iO(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)),hO.arraySet(n.head.extra,r,o,d,k)),512&iO(n)&&(n.check=pO(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&iO(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&iO(n)&&(n.check=pO(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&iO(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&iO(n)&&(n.check=pO(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&iO(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=SO;break}c=0,l=0}n.head&&(n.head.hcrc=iO(n)>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=kO;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=OO(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=kO;case kO: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(PO(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=SO}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=SO;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;hO.arraySet(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=kO;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=SO;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[A[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=_O(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid code lengths set",n.mode=SO;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(x=_+2;l<x;){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=SO;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(x=_+3;l<x;){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(x=_+7;l<x;){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=SO;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===SO)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=SO;break}if(n.lenbits=9,E={bits:n.lenbits},S=_O(gO,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid literal/lengths set",n.mode=SO;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=_O(yO,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){t.msg="invalid distances set",n.mode=SO;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,vO(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===kO&&(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=kO;break}if(64&g){t.msg="invalid literal/length code",n.mode=SO;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(x=n.extra;l<x;){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=SO;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(x=n.extra;l<x;){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=SO;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=SO;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=iO(n)?pO(n.check,i,h,a-h):dO(n.check,i,h,a-h)),h=u,(iO(n)?c:OO(c))!==n.check){t.msg="incorrect data check",n.mode=SO;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&iO(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=SO;break}c=0,l=0}n.mode=29;case 29:S=1;break t;case SO:S=-3;break t;case 31:return-4;default:return bO}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<SO&&(n.mode<27||4!==e))&&zO(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=iO(n)?pO(n.check,i,h,t.next_out-h):dO(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===kO?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&S===mO&&(S=-5),S},oO.inflateEnd=function(t){if(!t||!t.state)return bO;var e=t.state;return e.window&&(e.window=null),t.state=null,mO},oO.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?bO:(n.head=e,e.done=!1,mO):bO},oO.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?bO:11===n.mode&&dO(1,e,r,0)!==n.check?-3:zO(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,mO):bO},oO.inflateInfo="pako inflate (from Nodeca project)";var DO={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 jO=oO,MO=LS,FO=Ax,UO=DO,GO=PE,ZO=Px,KO=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},HO=Object.prototype.toString;function VO(t){if(!(this instanceof VO))return new VO(t);this.options=MO.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 ZO,this.strm.avail_out=0;var n=jO.inflateInit2(this.strm,e.windowBits);if(n!==UO.Z_OK)throw new Error(GO[n]);if(this.header=new KO,jO.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=FO.string2buf(e.dictionary):"[object ArrayBuffer]"===HO.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=jO.inflateSetDictionary(this.strm,e.dictionary))!==UO.Z_OK))throw new Error(GO[n])}function WO(t,e){var n=new VO(e);if(n.push(t,!0),n.err)throw n.msg||GO[n.err];return n.result}VO.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?UO.Z_FINISH:UO.Z_NO_FLUSH,"string"==typeof t?s.input=FO.binstring2buf(t):"[object ArrayBuffer]"===HO.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 MO.Buf8(u),s.next_out=0,s.avail_out=u),(n=jO.inflate(s,UO.Z_NO_FLUSH))===UO.Z_NEED_DICT&&c&&(n=jO.inflateSetDictionary(this.strm,c)),n===UO.Z_BUF_ERROR&&!0===l&&(n=UO.Z_OK,l=!1),n!==UO.Z_STREAM_END&&n!==UO.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==UO.Z_STREAM_END&&(0!==s.avail_in||r!==UO.Z_FINISH&&r!==UO.Z_SYNC_FLUSH)||("string"===this.options.to?(i=FO.utf8border(s.output,s.next_out),o=s.next_out-i,a=FO.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&MO.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(MO.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!==UO.Z_STREAM_END);return n===UO.Z_STREAM_END&&(r=UO.Z_FINISH),r===UO.Z_FINISH?(n=jO.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===UO.Z_OK):r!==UO.Z_SYNC_FLUSH||(this.onEnd(UO.Z_OK),s.avail_out=0,!0)},VO.prototype.onData=function(t){this.chunks.push(t)},VO.prototype.onEnd=function(t){t===UO.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=MO.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Yx.Inflate=VO,Yx.inflate=WO,Yx.inflateRaw=function(t,e){return(e=e||{}).raw=!0,WO(t,e)},Yx.ungzip=WO;var YO={};(0,LS.assign)(YO,BS,Yx,DO);var JO,XO,qO,QO=e(YO),$O=1,tT=function(){function t(e){e_(this,t),Z_(this,"lockingPromise",Sv.resolve()),Z_(this,"locks",0),Z_(this,"name",""),Z_(this,"lockId",void 0),this.lockId=$O++,e&&(this.name=e)}return o_(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var n=new Sv((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}(),eT="__rtc_umd_name__",nT=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},rT=function(){function t(e){e_(this,t),Z_(this,"storeName",void 0),Z_(this,"pendingList",[]),this.storeName=e,!fw()&&nT()&&this._checkAndCreateStore(e)}var e,n,r,i,o,a,s;return o_(t,[{key:"_checkAndCreateStore",value:(s=t_(Qv().mark((function e(n,r){var i,o,a=this;return Qv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!nT.databases){e.next=6;break}return e.next=6,new Sv((function(t){var e=function(){return nT.databases().finally(t)};o=setInterval(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new Sv((function(e){t.db&&(t.db.close(),delete t.db);var o=r?nT().open(eT,r):nT().open(eT);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{t.db.transaction(a.storeName,"readonly"),a.pendingList.forEach(function(){var t=t_(Qv().mark((function t(e){var n,r,i,o;return Qv().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(s){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=t_(Qv().mark((function e(n){var r,i=this;return Qv().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 Sv((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=t_(Qv().mark((function t(e,n){var r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{r=rw(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=t_(Qv().mark((function t(e){var n,r;return Qv().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=t_(Qv().mark((function t(e,n){var r;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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}();Z_(rT,"db",void 0),Z_(rT,"state","init"),Z_(rT,"_promiseLock",new tT("iDB"));var iT={product_line:"rtc",report_version:"5",os:"web",user_agent:fw()?"":null===(JO=navigator)||void 0===JO?void 0:JO.userAgent,platform:"web",product:"webrtc",app_state:"active"},oT="LogReportor",aT="undefined"!=typeof window&&Qb(XO=window.location.search).call(XO,"_rtc_debug_")||(null===(qO=localStorage)||void 0===qO?void 0:qO.getItem("_rtc_debug_")),sT=function(){function t(e){e_(this,t),Z_(this,"_buffer",void 0),this._buffer=new rT(e)}var e,n;return o_(t,[{key:"set",value:(n=t_(Qv().mark((function t(e,n){return Qv().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=t_(Qv().mark((function t(e){var n,r;return Qv().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}(),uT=function(){function t(){var e=this;e_(this,t),Z_(this,"reportCommon",iT),Z_(this,"reportIds",new hb),Z_(this,"dataBuffer",[]),Z_(this,"reportorList",[]),Z_(this,"dbBuffer",void 0),Z_(this,"posting",!1),Z_(this,"sucSendTimer",void 0),Z_(this,"preSucTime",0),Z_(this,"errSendTimer",void 0),Z_(this,"errSendDelay",100),Z_(this,"_logServerUrl",void 0),Z_(this,"_retryCount",0),Z_(this,"_reportLimit",5e5),Z_(this,"_disableTimeout",!1),fw()||(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"})})),aT&&(window.__rtc_debug_reportor__=this)),Ck.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),Ck.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),setTimeout((function(){e.reportorList.push(ST)}))}var e;return o_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=_S(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&&(pT("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){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.send(t):(this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"enableIndexedDBBuffer",value:function(){var t=this;this.dbBuffer||(this.dbBuffer=new sT("ReportorDBBuffer"),this.dbBuffer.get(oT).then((function(e){e.forEach((function(e){t.push(e)}))})),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.get(e.name).then((function(t){t.forEach((function(t){e.push(t)}))}))})))}},{key:"backup",value:function(){var t=this;try{var e;null===(e=this.dbBuffer)||void 0===e||e.set(Hw(this.dataBuffer),oT),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.set(Hw(e.get()),e.name)}))}catch(n){pT("Error when save log into IDB",-1,n)}}},{key:"unshift",value:function(t){var e;this.dataBuffer=rg(e=t[0]).call(e,this.dataBuffer),this.reportorList.forEach((function(e,n){var r;e.unshift(null!==(r=t[n+1])&&void 0!==r?r:[])}))}},{key:"_splice",value:function(){var t,e=this,n=function(t,e){for(var n=0,r=0;r<t.length;r++)if((n+=rw(t[r]).length)>e)return r;return t.length}(this.dataBuffer,this._reportLimit);0===n&&this.dataBuffer.length>0&&(this._reportLimit=rw(this.dataBuffer[0]).length+10,n=1,pT("update report limit to ".concat(this._reportLimit),0,null));var r=[_k(t=this.dataBuffer).call(t,0,n)],i=this._reportLimit-n;return this.reportorList.forEach((function(t){var n=_k(t).call(t,i),o=n.payload,a=n.payloadSize;o.forEach((function(t){var n,r;(t.report_id=e.getReportId(t.engine_session_id),!fw()&&window.__onRTCReport)&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,t.engine_session_id,t,e.getCommonStats()))})),r.push(o),i-=a})),r}},{key:"send",value:(e=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),(e||this.dataBuffer.length)&&this._logServerUrl){t.next=3;break}return t.abrupt("return");case 3:if(e||(this.posting=!0),r=[],e||(r=this._splice()),i=aT,o={data:e||CS(r).call(r),header:eS(eS({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},a={method:"POST",body:i?rw(o):QO.gzip(rw(o))},!this._disableTimeout)try{s=new AbortController,a.signal=s.signal,setTimeout((function(){s.abort()}),1e4)}catch(f){console.warn("AbortController is not supported"),this._disableTimeout=!0}return i||(a.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),l=null,t.prev=12,t.next=15,fetch(this._logServerUrl,a);case 15:if(200!==(u=t.sent).status&&304!==u.status){t.next=22;break}return t.t0=JSON,t.next=20,u.text();case 20:t.t1=t.sent,l=t.t0.parse.call(t.t0,t.t1);case 22:t.next=27;break;case 24:t.prev=24,t.t2=t.catch(12),c=t.t2;case 27:e||(this.posting=!1),l&&0===l.StatusCode?e||n||this.sucSend():(setTimeout((function(){var t,e,n,r;pT(rg(t="reportor post error, resJSON:".concat(null===(e=l)||void 0===e?void 0:e.toString()," err:")).call(t,c),null!==(n=null===(r=u)||void 0===r?void 0:r.status)&&void 0!==n?n:-1,c)}),0),e?this.send(e):(this.unshift(r),n?this.send():this.errSend()));case 29:case"end":return t.stop()}}),t,this,[[12,24]])}))),function(t,n){return e.apply(this,arguments)})},{key:"sucSend",value:function(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=window.setTimeout((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var cT,lT=new uT,fT=function(){function t(e){e_(this,t),Z_(this,"modifyIds",{}),this.id=e}return o_(t,[{key:"report",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=eS(eS(eS({event_key:t,rtc_timestamp:Date.now()},this.modifyIds),e),{},{common_extra_info:rw(i),report_id:lT.getReportId(this.modifyIds.engine_session_id)});!fw()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,this.modifyIds.engine_session_id,o,lT.getCommonStats()));lT.push(o)}},{key:"reportLog",value:function(t){var e=eS(eS({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Date.now()},this.modifyIds),{},{message:t});ST.push(e)}},{key:"set",value:function(t){this.modifyIds=_S(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}();setTimeout((function(){cT=new IT("MessageReportor",1)}),0);var hT=function(){function t(e){e_(this,t),Z_(this,"_preTime",Date.now()),Z_(this,"_one2oneNum",0),Z_(this,"_one2manyNum",0),Z_(this,"_one2oneMsgCache",new hb),Z_(this,"_one2manyMsgCache",new hb),Z_(this,"roomId",""),Z_(this,"userId",""),Z_(this,"rtsSessionId",""),this.id=e}return o_(t,[{key:"needReport",value:function(e){return!!t.config&&(Date.now()-this._preTime>=36e5&&(this._preTime=Date.now(),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,eS({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,eS(eS({},n),e))}},{key:"cacheCustomMsg",value:function(e){var n;this._one2manyMsgCache.set(e.msg_id,eS({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,eS(eS({},n),e))}},{key:"reportP2PMsg",value:function(t){var e,n=this._one2oneMsgCache.get(t);n&&(cT.info("reportP2PMsg",n.type,rw(n)),null===(e=gT(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportOne2ManyMsg",value:function(t){var e,n=this._one2manyMsgCache.get(t);n&&(cT.info("reportOne2ManyMsg",n.type,rw(n)),null===(e=gT(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)||"",cT.info("reportMsgRecv",e.type,rw(e)),null===(r=gT(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=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Z_(hT,"config",void 0);var dT=new fT("global"),pT=function(t,e,n){dT.report("rtc_error",{message:t,error_code:e},n)};var vT,_T=new hb,gT=function(t){return _T.get(t)},yT="undefined"!=typeof window&&Qb(vT=window.location.search).call(vT,"_rtc_upload_console_");function mT(t,e){return Ew(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 hw(t);if(t instanceof MediaStream)return null==(r=t)?"undefined | null":"string"==typeof r?r:rw({id:r.id,active:r.active});if(t instanceof RTCRtpSender)return dw(t);if(t instanceof RTCRtpReceiver)return pw(t);if(t instanceof RTCRtpTransceiver)return null==(n=t)?"undefined | null":"string"==typeof n?n:rw({currentDirection:n.currentDirection,direction:n.direction,mid:n.mid,stopped:n.stopped,receiver:pw(n.receiver),sender:dw(n.sender)});i=rw(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=qv(i).call(i,0,e)),i})).join(", ")}var bT,wT,kT,ST=new(function(){function t(){var e,n=this;e_(this,t),Z_(this,"name","ConsoleReportor"),Z_(this,"_uuid",qv(e=lw()).call(e,0,3)),Z_(this,"_consoleReportId",0),Z_(this,"_engineReportIdMap",new hb),Z_(this,"_enabled","NULL"),Z_(this,"_consoleCutLength",Ck.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),Z_(this,"buffer",[]),yT&&setTimeout((function(){n.switchOn()}),0),Ck.on("UPLOAD_CONSOLE_ON",(function(t){t?n.switchOn():n.turnOff()})),Ck.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){n._consoleCutLength=t}))}return o_(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")}},{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=gT(e),S=this._consoleReportId++,E=this.getEngineConsoleId(e),x=mT(u,this._consoleCutLength),O=Hw(u),T="".concat(s).replace(/%o|%s/gi,(function(){return mT([O.shift()],b._consoleCutLength)})),A=rg(c=rg(l=rg(f=rg(h=rg(d=rg(p=rg(v=rg(_=rg(g=rg(y=rg(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(g,E,"]-")).call(_,n,"-")).call(v,t,"[")).call(p,r,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,T," ")).call(c,x);k?k.reportLog(A):(w=A,dT.reportLog(w))}}},{key:"push",value:function(t){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=rw(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:_k(e=this.buffer).call(e,0,r),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=rg(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"isEmpty",value:function(){return 0===this.buffer.length}}]),t}()),ET="[VERTC]",xT="#0050b3",OT=(Z_(bT={},"DEBUG","rgba(0, 0, 0, 0)"),Z_(bT," INFO","rgba(93, 173, 226, 0)"),Z_(bT," WARN","rgba(255, 119, 0, 0.3)"),Z_(bT,"ERROR","rgba(255, 0, 0, 0.3)"),Z_(bT," SUCC","rgba(0, 119, 0, 0.3)"),bT),TT="undefined"!=typeof window&&Qb(wT=window.location.search).call(wT,"_rtc_debug_")||(null===(kT=localStorage)||void 0===kT?void 0:kT.getItem("_rtc_debug_")),AT=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";e_(this,t),Z_(this,"indent",void 0),Z_(this,"module",void 0),Z_(this,"_engineId",void 0),this.module=e,this.indent=n,this._engineId=r}return o_(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=rg(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return rw(t)}));yw.set(rg(v=rg(_=rg(g="".concat(ET,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,Ew(y).call(y,(function(t){return rw(t)})).join(", ")))}catch(FT){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=RT();ST.report(ET,this._engineId,k,t,b,this.module,e,d,f),TT&&(n=console).log.apply(n,rg(r=[rg(i=rg(o=rg(a=rg(s=rg(u=rg(c="%c".concat(k,"-")).call(c,ET,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(xT,";"),"background-color:".concat(OT[t],";"),"color:".concat(xT,";")]).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,rg(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,rg(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,rg(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,rg(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,rg(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,rg(e=[" SUCC",t]).call(e,r))}}]),t}(),RT=function(){var t,e,n=new Date;return rg(t="".concat(n.toTimeString().split(" ")[0],":")).call(t,Kw(e=n.getMilliseconds().toString()).call(e,3,"0"))},IT=AT,CT=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}(CT||{}),LT=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(LT||{}),BT=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(BT||{}),NT=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(NT||{}),PT=new IT("RTCBeautyExtension",1),zT="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",DT="".concat(zT,"/externals/webar.main.sdk.iife.9b380e37.js");var jT=function(t){x_(h,t);var e,n,r,i,o,a,s,u,c,l,f=G_(h);function h(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e_(this,h),Z_(a_(e=f.call(this)),"name","RTCBeautyExtension"),Z_(a_(e),"_enable",void 0),Z_(a_(e),"_beautyExt",void 0),Z_(a_(e),"_backgroundExt",void 0),Z_(a_(e),"_enableBeauty",!1),Z_(a_(e),"_enableBackground",!1),Z_(a_(e),"_fps",15),Z_(a_(e),"_backgroundBackend",NT.CPU),Z_(a_(e),"_backgroundAIModelType",BT.QUALITY),Z_(a_(e),"_backgroundMode",LT.BACKGROUND_BLUR),Z_(a_(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),Z_(a_(e),"_preTrack",null),h._sdkUrl=n.sdkUrl||DT,h._sdkSourceUrl=n.sdkSourceUrl||zT,h._sdkAuthServer=n.sdkAuthServer||"",h._sdkHash=n.sdkHash||"",h._authFileUrl=n.authFileUrl||"",n.aiBackend===NT.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=NT.GPU):e._backgroundBackend=NT.GPU));return e._backgroundAIModelType=null!==(t=n.aiModelType)&&void 0!==t?t:BT.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return o_(h,[{key:"initWebArSDK",value:(l=t_(Qv().mark((function t(){return Qv().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=t_(Qv().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,p,v=this;return Qv().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 u=null==e?void 0:e.videoCaptureConfig,this._fps=u?"number"==typeof(null==u?void 0:u.frameRate)?(null==u?void 0:u.frameRate)||15:(null==u||null===(n=u.frameRate)||void 0===n?void 0:n.ideal)||15:15,PT.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:PT.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(c=h._sdk)||void 0===c?void 0:c.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(l=h._sdk)||void 0===l?void 0:l.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),V_(this._beautyDefaultValue).forEach((function(t){v._beautyExt&&(v._beautyExt[t]=v._beautyDefaultValue[t])})),(f=null===(a=h._sdk.video)||void 0===a||null===(s=a._video)||void 0===s?void 0:s._video)&&(f.style.position="fixed",f.style.top="0",f.style.left="0",f.style.opacity="0",f.style.pointerEvents="none"),"safari"===(_=void 0,_="none",null!==window.navigator.userAgent.match("Firefox")?_="mozilla":null!==window.navigator.userAgent.match("Chrome")?(_="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(_="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(_="safari"),_)&&(p=null===(d=h._sdk)||void 0===d?void 0:d.canvas)&&(p.style.width="1px",p.style.height="1px",p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.opacity="0",p.style.pointerEvents="none",p.style.zIndex="-9999",document.body.appendChild(p));case 18:case"end":return t.stop()}var _}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=t_(Qv().mark((function t(){var e,n,r;return Qv().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!==Q_(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=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n||e.getTrack(),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!==pb.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=t_(Qv().mark((function t(){var e,n,r,i=this;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),e=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,V_(this._beautyDefaultValue).forEach((function(t){i._beautyExt&&(i._beautyExt[t]=i._beautyDefaultValue[t])})),this._preTrack&&!e){t.next=8;break}return t.abrupt("return",new Sv((function(t,e){i.emit("reset-video-effect",t,e)})));case 8:null===(n=h._sdk)||void 0===n||n.startFrame(),null===(r=this._beautyExt)||void 0===r||r.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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r,i,o=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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 CT.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case CT.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case CT.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):Sv.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!==pb.STREAM_INDEX_SCREEN&&"number"==typeof r&&"number"==typeof i&&(null===(n=h._sdk)||void 0===n||n.setCanvasSize(r,i))}},{key:"isSupported",value:(n=t_(Qv().mark((function t(){var e,n;return Qv().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!==Q_(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=t_(Qv().mark((function t(){var e,n,r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,n=!1,h._loadingProcess||(h._loadingProcess=new Sv((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(FT){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(FT)}r=setTimeout((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}(vb);Z_(jT,"_loadingProcess",void 0),Z_(jT,"_sdk",void 0),Z_(jT,"_sdkUrl",void 0),Z_(jT,"_sdkSourceUrl",void 0),Z_(jT,"_sdkHash",""),Z_(jT,"_sdkAuthServer",""),Z_(jT,"_authFileUrl","");var MT=window.BytePlusRTCExtensions||{};MT.RTCBeautyExtension=jT,MT.EffectBeautyMode=CT,window.BytePlusRTCExtensions=MT}));
|
|
1
|
+
!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}()||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,E={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},x=E.all,O=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T={},A=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=o,I=Function.prototype.call,C=R?I.bind(I):function(){return I.apply(I,arguments)},L={},N={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,D=B&&!N.call({1:2},1);L.f=D?function(t){var e=B(this,t);return!!e&&e.enumerable}:N;var P,M,z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},j=i,F=m,U=Object,K=k("".split),G=j((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=E.all,$=E.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=k({}.isPrototypeOf),st=ot("navigator","userAgent")||"",ut=r,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&<.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(M=(P=dt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!M&&ct&&(!(P=ct.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ct.match(/Chrome\/(\d+)/))&&(M=+P[1]);var pt=M,vt=pt,_t=i,gt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),yt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mt=ot,bt=O,wt=at,kt=Object,St=yt?function(t){return"symbol"==typeof t}:function(t){var e=mt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},Et=String,xt=function(t){try{return Et(t)}catch(e){return"Object"}},Ot=O,Tt=xt,At=TypeError,Rt=function(t){if(Ot(t))return t;throw At(Tt(t)+" is not a function")},It=Rt,Ct=Z,Lt=function(t,e){var n=t[e];return Ct(n)?void 0:It(n)},Nt=C,Bt=O,Dt=$,Pt=TypeError,Mt={exports:{}},zt=r,jt=Object.defineProperty,Ft=function(t,e){try{jt(zt,t,{value:e,configurable:!0,writable:!0})}catch(n){zt[t]=e}return e},Ut="__core-js_shared__",Kt=r[Ut]||Ft(Ut,{}),Gt=Kt;(Mt.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Zt=Mt.exports,Ht=V,Wt=Object,Vt=function(t){return Wt(Ht(t))},Yt=Vt,Jt=k({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Jt(Yt(t),e)},qt=k,Qt=0,$t=Math.random(),te=qt(1..toString),ee=function(t){return"Symbol("+(void 0===t?"":t)+")_"+te(++Qt+$t,36)},ne=r,re=Xt,ie=ee,oe=gt,ae=yt,se=Zt("wks"),ue=ne.Symbol,ce=ue&&ue.for,le=ae?ue:ue&&ue.withoutSetter||ie,fe=function(t){if(!re(se,t)||!oe&&"string"!=typeof se[t]){var e="Symbol."+t;oe&&re(ue,t)?se[t]=ue[t]:se[t]=ae&&ce?ce(e):le(e)}return se[t]},he=C,de=$,pe=St,ve=Lt,_e=function(t,e){var n,r;if("string"===e&&Bt(n=t.toString)&&!Dt(r=Nt(n,t)))return r;if(Bt(n=t.valueOf)&&!Dt(r=Nt(n,t)))return r;if("string"!==e&&Bt(n=t.toString)&&!Dt(r=Nt(n,t)))return r;throw Pt("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=St,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=$,Se=r.document,Ee=ke(Se)&&ke(Se.createElement),xe=function(t){return Ee?Se.createElement(t):{}},Oe=xe,Te=!A&&!i((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Ae=A,Re=C,Ie=L,Ce=z,Le=X,Ne=we,Be=Xt,De=Te,Pe=Object.getOwnPropertyDescriptor;T.f=Ae?Pe:function(t,e){if(t=Le(t),e=Ne(e),De)try{return Pe(t,e)}catch(n){}if(Be(t,e))return Ce(!Re(Ie.f,t,e),t[e])};var Me=i,ze=O,je=/#|\.prototype\./,Fe=function(t,e){var n=Ke[Ue(t)];return n==Ze||n!=Ge&&(ze(e)?Me(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(je,".").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=A&&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=A,rn=Te,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=z,_n=A?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=T.f,kn=He,Sn=tt,En=Je,xn=_n,On=Xt,Tn=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},An=function(t,e){var n,r,i,o,a,s,u,c,l=t.target,f=t.global,h=t.stat,d=t.proto,p=f?gn:h?gn[l]:(gn[l]||{}).prototype,v=f?Sn:Sn[l]||xn(Sn,l,{})[l],_=v.prototype;for(i in e)n=!kn(f?i:l+(h?".":"#")+i,t.forced)&&p&&On(p,i),a=v[i],n&&(s=t.dontCallGetSet?(c=wn(p,i))&&c.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?En(o,gn):t.wrap&&n?Tn(o):d&&bn(o)?mn(o):o,(t.sham||o&&o.sham||a&&a.sham)&&xn(u,"sham",!0),xn(v,i,u),d&&(On(Sn,r=l+"Prototype")||xn(Sn,r,{}),xn(Sn[r],i,o),t.real&&_&&!_[i]&&xn(_,i,o)))},Rn=m,In=Array.isArray||function(t){return"Array"==Rn(t)},Cn=Math.ceil,Ln=Math.floor,Nn=Math.trunc||function(t){var e=+t;return(e>0?Ln:Cn)(e)},Bn=function(t){var e=+t;return e!=e||0===e?0:Nn(e)},Dn=Bn,Pn=Math.min,Mn=function(t){return t>0?Pn(Dn(t),9007199254740991):0},zn=Mn,jn=function(t){return zn(t.length)},Fn=TypeError,Un=function(t){if(t>9007199254740991)throw Fn("Maximum allowed index exceeded");return t},Kn=we,Gn=Xe,Zn=z,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=Kt,rr=k(Function.toString);er(nr.inspectSource)||(nr.inspectSource=function(t){return rr(t)});var ir=nr.inspectSource,or=k,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=In,br=yr,wr=$,kr=fe("species"),Sr=Array,Er=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},xr=function(t,e){return new(Er(t))(0===e?0:e)},Or=i,Tr=pt,Ar=fe("species"),Rr=function(t){return Tr>=51||!Or((function(){var e=[];return(e.constructor={})[Ar]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ir=An,Cr=i,Lr=In,Nr=$,Br=Vt,Dr=jn,Pr=Un,Mr=Hn,zr=xr,jr=Rr,Fr=pt,Ur=fe("isConcatSpreadable"),Kr=Fr>=51||!Cr((function(){var t=[];return t[Ur]=!1,t.concat()[0]!==t})),Gr=jr("concat"),Zr=function(t){if(!Nr(t))return!1;var e=t[Ur];return void 0!==e?!!e:Lr(t)};Ir({target:"Array",proto:!0,arity:1,forced:!Kr||!Gr},{concat:function(t){var e,n,r,i,o,a=Br(this),s=zr(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Zr(o=-1===e?a:arguments[e]))for(i=Dr(o),Pr(u+i),n=0;n<i;n++,u++)n in o&&Mr(s,u,o[n]);else Pr(u+1),Mr(s,u++,o);return s.length=u,s}});var Hr=tr,Wr=String,Vr=function(t){if("Symbol"===Hr(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Yr={},Jr=Bn,Xr=Math.max,qr=Math.min,Qr=function(t,e){var n=Jr(t);return n<0?Xr(n+e,0):qr(n,e)},$r=X,ti=Qr,ei=jn,ni=function(t){return function(e,n,r){var i,o=$r(e),a=ei(o),s=ti(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}},ri={includes:ni(!0),indexOf:ni(!1)},ii={},oi=Xt,ai=X,si=ri.indexOf,ui=ii,ci=k([].push),li=function(t,e){var n,r=ai(t),i=0,o=[];for(n in r)!oi(ui,n)&&oi(r,n)&&ci(o,n);for(;e.length>i;)oi(r,n=e[i++])&&(~si(o,n)||ci(o,n));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=li,di=fi,pi=Object.keys||function(t){return hi(t,di)},vi=A,_i=qe,gi=Xe,yi=en,mi=X,bi=pi;Yr.f=vi&&!_i?Object.defineProperties:function(t,e){yi(t);for(var n,r=mi(e),i=bi(e),o=i.length,a=0;o>a;)gi.f(t,n=i[a++],r[n]);return t};var wi,ki=ot("document","documentElement"),Si=ee,Ei=Zt("keys"),xi=function(t){return Ei[t]||(Ei[t]=Si(t))},Oi=en,Ti=Yr,Ai=fi,Ri=ii,Ii=ki,Ci=xe,Li="prototype",Ni="script",Bi=xi("IE_PROTO"),Di=function(){},Pi=function(t){return"<"+Ni+">"+t+"</"+Ni+">"},Mi=function(t){t.write(Pi("")),t.close();var e=t.parentWindow.Object;return t=null,e},zi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var t,e,n;zi="undefined"!=typeof document?document.domain&&wi?Mi(wi):(e=Ci("iframe"),n="java"+Ni+":",e.style.display="none",Ii.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Pi("document.F=Object")),t.close(),t.F):Mi(wi);for(var r=Ai.length;r--;)delete zi[Li][Ai[r]];return zi()};Ri[Bi]=!0;var ji=Object.create||function(t,e){var n;return null!==t?(Di[Li]=Oi(t),n=new Di,Di[Li]=null,n[Bi]=t):n=zi(),void 0===e?n:Ti.f(n,e)},Fi={},Ui=li,Ki=fi.concat("length","prototype");Fi.f=Object.getOwnPropertyNames||function(t){return Ui(t,Ki)};var Gi={},Zi=Qr,Hi=jn,Wi=Hn,Vi=Array,Yi=Math.max,Ji=m,Xi=X,qi=Fi.f,Qi=function(t,e,n){for(var r=Hi(t),i=Zi(e,r),o=Zi(void 0===n?r:n,r),a=Vi(Yi(o-i,0)),s=0;i<o;i++,s++)Wi(a,s,t[i]);return a.length=s,a},$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Gi.f=function(t){return $i&&"Window"==Ji(t)?function(t){try{return qi(t)}catch(e){return Qi($i)}}(t):qi(Xi(t))};var to={};to.f=Object.getOwnPropertySymbols;var eo=_n,no=function(t,e,n,r){return r&&r.enumerable?t[e]=n:eo(t,e,n),t},ro={},io=fe;ro.f=io;var oo,ao,so,uo=tt,co=Xt,lo=ro,fo=Xe.f,ho=function(t){var e=uo.Symbol||(uo.Symbol={});co(e,t)||fo(e,t,{value:lo.f(t)})},po=C,vo=ot,_o=fe,go=no,yo=function(){var t=vo("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=_o("toPrimitive");e&&!e[r]&&go(e,r,(function(t){return po(n,this)}),{arity:1})},mo=tr,bo=Vn?{}.toString:function(){return"[object "+mo(this)+"]"},wo=Vn,ko=Xe.f,So=_n,Eo=Xt,xo=bo,Oo=fe("toStringTag"),To=function(t,e,n,r){if(t){var i=n?t:t.prototype;Eo(i,Oo)||ko(i,Oo,{configurable:!0,value:e}),r&&!wo&&So(i,"toString",xo)}},Ao=O,Ro=r.WeakMap,Io=Ao(Ro)&&/native code/.test(String(Ro)),Co=r,Lo=$,No=_n,Bo=Xt,Do=Kt,Po=xi,Mo=ii,zo="Object already initialized",jo=Co.TypeError,Fo=Co.WeakMap;if(Io||Do.state){var Uo=Do.state||(Do.state=new Fo);Uo.get=Uo.get,Uo.has=Uo.has,Uo.set=Uo.set,oo=function(t,e){if(Uo.has(t))throw jo(zo);return e.facade=t,Uo.set(t,e),e},ao=function(t){return Uo.get(t)||{}},so=function(t){return Uo.has(t)}}else{var Ko=Po("state");Mo[Ko]=!0,oo=function(t,e){if(Bo(t,Ko))throw jo(zo);return e.facade=t,No(t,Ko,e),e},ao=function(t){return Bo(t,Ko)?t[Ko]:{}},so=function(t){return Bo(t,Ko)}}var Go={set:oo,get:ao,has:so,enforce:function(t){return so(t)?ao(t):oo(t,{})},getterFor:function(t){return function(e){var n;if(!Lo(e)||(n=ao(e)).type!==t)throw jo("Incompatible receiver, "+t+" required");return n}}},Zo=Je,Ho=G,Wo=Vt,Vo=jn,Yo=xr,Jo=k([].push),Xo=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=Wo(u),v=Ho(p),_=Zo(c,l),g=Vo(v),y=0,m=f||Yo,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:Jo(b,h)}else switch(t){case 4:return!1;case 7:Jo(b,h)}return o?-1:r||i?i:b}},qo={forEach:Xo(0),map:Xo(1),filter:Xo(2),some:Xo(3),every:Xo(4),find:Xo(5),findIndex:Xo(6),filterReject:Xo(7)},Qo=An,$o=r,ta=C,ea=k,na=A,ra=gt,ia=i,oa=Xt,aa=at,sa=en,ua=X,ca=we,la=Vr,fa=z,ha=ji,da=pi,pa=Fi,va=Gi,_a=to,ga=T,ya=Xe,ma=Yr,ba=L,wa=no,ka=Zt,Sa=ii,Ea=ee,xa=fe,Oa=ro,Ta=ho,Aa=yo,Ra=To,Ia=Go,Ca=qo.forEach,La=xi("hidden"),Na="Symbol",Ba="prototype",Da=Ia.set,Pa=Ia.getterFor(Na),Ma=Object[Ba],za=$o.Symbol,ja=za&&za[Ba],Fa=$o.TypeError,Ua=$o.QObject,Ka=ga.f,Ga=ya.f,Za=va.f,Ha=ba.f,Wa=ea([].push),Va=ka("symbols"),Ya=ka("op-symbols"),Ja=ka("wks"),Xa=!Ua||!Ua[Ba]||!Ua[Ba].findChild,qa=na&&ia((function(){return 7!=ha(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ka(Ma,e);r&&delete Ma[e],Ga(t,e,n),r&&t!==Ma&&Ga(Ma,e,r)}:Ga,Qa=function(t,e){var n=Va[t]=ha(ja);return Da(n,{type:Na,tag:t,description:e}),na||(n.description=e),n},$a=function(t,e,n){t===Ma&&$a(Ya,e,n),sa(t);var r=ca(e);return sa(n),oa(Va,r)?(n.enumerable?(oa(t,La)&&t[La][r]&&(t[La][r]=!1),n=ha(n,{enumerable:fa(0,!1)})):(oa(t,La)||Ga(t,La,fa(1,{})),t[La][r]=!0),qa(t,r,n)):Ga(t,r,n)},ts=function(t,e){sa(t);var n=ua(e),r=da(n).concat(is(n));return Ca(r,(function(e){na&&!ta(es,n,e)||$a(t,e,n[e])})),t},es=function(t){var e=ca(t),n=ta(Ha,this,e);return!(this===Ma&&oa(Va,e)&&!oa(Ya,e))&&(!(n||!oa(this,e)||!oa(Va,e)||oa(this,La)&&this[La][e])||n)},ns=function(t,e){var n=ua(t),r=ca(e);if(n!==Ma||!oa(Va,r)||oa(Ya,r)){var i=Ka(n,r);return!i||!oa(Va,r)||oa(n,La)&&n[La][r]||(i.enumerable=!0),i}},rs=function(t){var e=Za(ua(t)),n=[];return Ca(e,(function(t){oa(Va,t)||oa(Sa,t)||Wa(n,t)})),n},is=function(t){var e=t===Ma,n=Za(e?Ya:ua(t)),r=[];return Ca(n,(function(t){!oa(Va,t)||e&&!oa(Ma,t)||Wa(r,Va[t])})),r};ra||(za=function(){if(aa(ja,this))throw Fa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?la(arguments[0]):void 0,e=Ea(t),n=function(t){this===Ma&&ta(n,Ya,t),oa(this,La)&&oa(this[La],e)&&(this[La][e]=!1),qa(this,e,fa(1,t))};return na&&Xa&&qa(Ma,e,{configurable:!0,set:n}),Qa(e,t)},wa(ja=za[Ba],"toString",(function(){return Pa(this).tag})),wa(za,"withoutSetter",(function(t){return Qa(Ea(t),t)})),ba.f=es,ya.f=$a,ma.f=ts,ga.f=ns,pa.f=va.f=rs,_a.f=is,Oa.f=function(t){return Qa(xa(t),t)},na&&Ga(ja,"description",{configurable:!0,get:function(){return Pa(this).description}})),Qo({global:!0,constructor:!0,wrap:!0,forced:!ra,sham:!ra},{Symbol:za}),Ca(da(Ja),(function(t){Ta(t)})),Qo({target:Na,stat:!0,forced:!ra},{useSetter:function(){Xa=!0},useSimple:function(){Xa=!1}}),Qo({target:"Object",stat:!0,forced:!ra,sham:!na},{create:function(t,e){return void 0===e?ha(t):ts(ha(t),e)},defineProperty:$a,defineProperties:ts,getOwnPropertyDescriptor:ns}),Qo({target:"Object",stat:!0,forced:!ra},{getOwnPropertyNames:rs}),Aa(),Ra(za,Na),Sa[La]=!0;var os=gt&&!!Symbol.for&&!!Symbol.keyFor,as=An,ss=ot,us=Xt,cs=Vr,ls=Zt,fs=os,hs=ls("string-to-symbol-registry"),ds=ls("symbol-to-string-registry");as({target:"Symbol",stat:!0,forced:!fs},{for:function(t){var e=cs(t);if(us(hs,e))return hs[e];var n=ss("Symbol")(e);return hs[e]=n,ds[n]=e,n}});var ps=An,vs=Xt,_s=St,gs=xt,ys=os,ms=Zt("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{keyFor:function(t){if(!_s(t))throw TypeError(gs(t)+" is not a symbol");if(vs(ms,t))return ms[t]}});var bs=k([].slice),ws=An,ks=ot,Ss=l,Es=C,xs=k,Os=i,Ts=In,As=O,Rs=$,Is=St,Cs=bs,Ls=gt,Ns=ks("JSON","stringify"),Bs=xs(/./.exec),Ds=xs("".charAt),Ps=xs("".charCodeAt),Ms=xs("".replace),zs=xs(1..toString),js=/[\uD800-\uDFFF]/g,Fs=/^[\uD800-\uDBFF]$/,Us=/^[\uDC00-\uDFFF]$/,Ks=!Ls||Os((function(){var t=ks("Symbol")();return"[null]"!=Ns([t])||"{}"!=Ns({a:t})||"{}"!=Ns(Object(t))})),Gs=Os((function(){return'"\\udf06\\ud834"'!==Ns("\udf06\ud834")||'"\\udead"'!==Ns("\udead")})),Zs=function(t,e){var n=Cs(arguments),r=e;if((Rs(e)||void 0!==t)&&!Is(t))return Ts(e)||(e=function(t,e){if(As(r)&&(e=Es(r,this,t,e)),!Is(e))return e}),n[1]=e,Ss(Ns,null,n)},Hs=function(t,e,n){var r=Ds(n,e-1),i=Ds(n,e+1);return Bs(Fs,t)&&!Bs(Us,i)||Bs(Us,t)&&!Bs(Fs,r)?"\\u"+zs(Ps(t,0),16):t};Ns&&ws({target:"JSON",stat:!0,arity:3,forced:Ks||Gs},{stringify:function(t,e,n){var r=Cs(arguments),i=Ss(Ks?Zs:Ns,null,r);return Gs&&"string"==typeof i?Ms(i,js,Hs):i}});var Ws=to,Vs=Vt;An({target:"Object",stat:!0,forced:!gt||i((function(){Ws.f(1)}))},{getOwnPropertySymbols:function(t){var e=Ws.f;return e?e(Vs(t)):[]}}),ho("asyncIterator"),ho("hasInstance"),ho("isConcatSpreadable"),ho("iterator"),ho("match"),ho("matchAll"),ho("replace"),ho("search"),ho("species"),ho("split");var Ys=yo;ho("toPrimitive"),Ys();var Js=ot,Xs=To;ho("toStringTag"),Xs(Js("Symbol"),"Symbol"),ho("unscopables"),To(r.JSON,"JSON",!0);var qs,Qs,$s,tu=tt.Symbol,eu={},nu=A,ru=Xt,iu=Function.prototype,ou=nu&&Object.getOwnPropertyDescriptor,au=ru(iu,"name"),su={EXISTS:au,PROPER:au&&"something"===function(){}.name,CONFIGURABLE:au&&(!nu||nu&&ou(iu,"name").configurable)},uu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cu=Xt,lu=O,fu=Vt,hu=uu,du=xi("IE_PROTO"),pu=Object,vu=pu.prototype,_u=hu?pu.getPrototypeOf:function(t){var e=fu(t);if(cu(e,du))return e[du];var n=e.constructor;return lu(n)&&e instanceof n?n.prototype:e instanceof pu?vu:null},gu=i,yu=O,mu=$,bu=ji,wu=_u,ku=no,Su=fe("iterator"),Eu=!1;[].keys&&("next"in($s=[].keys())?(Qs=wu(wu($s)))!==Object.prototype&&(qs=Qs):Eu=!0);var xu=!mu(qs)||gu((function(){var t={};return qs[Su].call(t)!==t}));yu((qs=xu?{}:bu(qs))[Su])||ku(qs,Su,(function(){return this}));var Ou={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:Eu},Tu=Ou.IteratorPrototype,Au=ji,Ru=z,Iu=To,Cu=eu,Lu=function(){return this},Nu=O,Bu=String,Du=TypeError,Pu=k,Mu=en,zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Bu(t)+" as a prototype")},ju=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Pu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(n,r){return Mu(n),zu(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fu=An,Uu=C,Ku=su,Gu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Au(Tu,{next:Ru(+!r,n)}),Iu(t,i,!1,!0),Cu[i]=Lu,t},Zu=_u,Hu=To,Wu=no,Vu=eu,Yu=Ou,Ju=Ku.PROPER,Xu=Yu.BUGGY_SAFARI_ITERATORS,qu=fe("iterator"),Qu="keys",$u="values",tc="entries",ec=function(){return this},nc=function(t,e,n,r,i,o,a){Gu(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Xu&&t in d)return d[t];switch(t){case Qu:case $u:case tc:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[qu]||d["@@iterator"]||i&&d[i],v=!Xu&&p||l(i),_="Array"==e&&d.entries||p;if(_&&(s=Zu(_.call(new t)))!==Object.prototype&&s.next&&(Hu(s,f,!0,!0),Vu[f]=ec),Ju&&i==$u&&p&&p.name!==$u&&(h=!0,v=function(){return Uu(p,this)}),i)if(u={values:l($u),keys:o?v:l(Qu),entries:l(tc)},a)for(c in u)(Xu||h||!(c in d))&&Wu(d,c,u[c]);else Fu({target:e,proto:!0,forced:Xu||h},u);return a&&d[qu]!==v&&Wu(d,qu,v,{name:i}),Vu[e]=v,u},rc=function(t,e){return{value:t,done:e}},ic=X,oc=eu,ac=Go;Xe.f;var sc=nc,uc=rc,cc="Array Iterator",lc=ac.set,fc=ac.getterFor(cc);sc(Array,"Array",(function(t,e){lc(this,{type:cc,target:ic(t),index:0,kind:e})}),(function(){var t=fc(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,uc(void 0,!0)):uc("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),oc.Arguments=oc.Array;var hc={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},dc=r,pc=tr,vc=_n,_c=eu,gc=fe("toStringTag");for(var yc in hc){var mc=dc[yc],bc=mc&&mc.prototype;bc&&pc(bc)!==gc&&vc(bc,gc,yc),_c[yc]=_c.Array}var wc=tu;ho("asyncDispose"),ho("dispose"),ho("matcher"),ho("metadataKey"),ho("observable"),ho("metadata"),ho("patternMatch"),ho("replaceAll");var kc=e(wc),Sc=k,Ec=Bn,xc=Vr,Oc=V,Tc=Sc("".charAt),Ac=Sc("".charCodeAt),Rc=Sc("".slice),Ic=function(t){return function(e,n){var r,i,o=xc(Oc(e)),a=Ec(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Ac(o,a))<55296||r>56319||a+1===s||(i=Ac(o,a+1))<56320||i>57343?t?Tc(o,a):r:t?Rc(o,a,a+2):i-56320+(r-55296<<10)+65536}},Cc={codeAt:Ic(!1),charAt:Ic(!0)}.charAt,Lc=Vr,Nc=Go,Bc=nc,Dc=rc,Pc="String Iterator",Mc=Nc.set,zc=Nc.getterFor(Pc);Bc(String,"String",(function(t){Mc(this,{type:Pc,string:Lc(t),index:0})}),(function(){var t,e=zc(this),n=e.string,r=e.index;return r>=n.length?Dc(void 0,!0):(t=Cc(n,r),e.index+=t.length,Dc(t,!1))}));var jc=e(ro.f("iterator"));function Fc(t){return(Fc="function"==typeof kc&&"symbol"==typeof jc?function(t){return typeof t}:function(t){return t&&"function"==typeof kc&&t.constructor===kc&&t!==kc.prototype?"symbol":typeof t})(t)}var Uc={exports:{}},Kc=An,Gc=A,Zc=Xe.f;Kc({target:"Object",stat:!0,forced:Object.defineProperty!==Zc,sham:!Gc},{defineProperty:Zc});var Hc=tt.Object,Wc=Uc.exports=function(t,e,n){return Hc.defineProperty(t,e,n)};Hc.defineProperty.sham&&(Wc.sham=!0);var Vc=e(Uc.exports);An({target:"Object",stat:!0,sham:!A},{create:ji});var Yc=tt.Object,Jc=e((function(t,e){return Yc.create(t,e)})),Xc=Vt,qc=_u,Qc=uu;An({target:"Object",stat:!0,forced:i((function(){qc(1)})),sham:!Qc},{getPrototypeOf:function(t){return qc(Xc(t))}});var $c=e(tt.Object.getPrototypeOf),tl=i,el=function(t,e){var n=[][t];return!!n&&tl((function(){n.call(null,e||function(){return 1},1)}))},nl=qo.forEach,rl=el("forEach")?[].forEach:function(t){return nl(this,t,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!=rl},{forEach:rl});var il=tt,ol=function(t){return il[t+"Prototype"]},al=ol("Array").forEach,sl=tr,ul=Xt,cl=at,ll=al,fl=Array.prototype,hl={DOMTokenList:!0,NodeList:!0},dl=e((function(t){var e=t.forEach;return t===fl||cl(fl,t)&&e===fl.forEach||ul(hl,sl(t))?ll:e}));An({target:"Object",stat:!0},{setPrototypeOf:ju});var pl=e(tt.Object.setPrototypeOf),vl=ot,_l=Fi,gl=to,yl=en,ml=k([].concat),bl=vl("Reflect","ownKeys")||function(t){var e=_l.f(yl(t)),n=gl.f;return n?ml(e,n(t)):e},wl=Xt,kl=bl,Sl=T,El=Xe,xl=Error,Ol=k("".replace),Tl=String(xl("zxcasd").stack),Al=/\n\s*at [^:]*:[^\n]*/,Rl=Al.test(Tl),Il=$,Cl=_n,Ll=eu,Nl=fe("iterator"),Bl=Array.prototype,Dl=function(t){return void 0!==t&&(Ll.Array===t||Bl[Nl]===t)},Pl=tr,Ml=Lt,zl=Z,jl=eu,Fl=fe("iterator"),Ul=function(t){if(!zl(t))return Ml(t,Fl)||Ml(t,"@@iterator")||jl[Pl(t)]},Kl=C,Gl=Rt,Zl=en,Hl=xt,Wl=Ul,Vl=TypeError,Yl=function(t,e){var n=arguments.length<2?Wl(t):e;if(Gl(n))return Zl(Kl(n,t));throw Vl(Hl(t)+" is not iterable")},Jl=C,Xl=en,ql=Lt,Ql=function(t,e,n){var r,i;Xl(t);try{if(!(r=ql(t,"return"))){if("throw"===e)throw n;return n}r=Jl(r,t)}catch(o){i=!0,r=o}if("throw"===e)throw n;if(i)throw r;return Xl(r),n},$l=Je,tf=C,ef=en,nf=xt,rf=Dl,of=jn,af=at,sf=Yl,uf=Ul,cf=Ql,lf=TypeError,ff=function(t,e){this.stopped=t,this.result=e},hf=ff.prototype,df=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=$l(e,l),_=function(t){return r&&cf(r,"normal",t),new ff(!0,t)},g=function(t){return f?(ef(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=uf(t)))throw lf(nf(t)+" is not iterable");if(rf(i)){for(o=0,a=of(t);a>o;o++)if((s=g(t[o]))&&af(hf,s))return s;return new ff(!1)}r=sf(t,i)}for(u=h?t.next:r.next;!(c=tf(u,r)).done;){try{s=g(c.value)}catch(y){cf(r,"throw",y)}if("object"==typeof s&&s&&af(hf,s))return s}return new ff(!1)},pf=Vr,vf=z,_f=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",vf(1,7)),7!==t.stack)})),gf=An,yf=at,mf=_u,bf=ju,wf=function(t,e,n){for(var r=kl(e),i=El.f,o=Sl.f,a=0;a<r.length;a++){var s=r[a];wl(t,s)||n&&wl(n,s)||i(t,s,o(e,s))}},kf=ji,Sf=_n,Ef=z,xf=function(t,e){if(Rl&&"string"==typeof t&&!xl.prepareStackTrace)for(;e--;)t=Ol(t,Al,"");return t},Of=function(t,e){Il(e)&&"cause"in e&&Cl(t,"cause",e.cause)},Tf=df,Af=function(t,e){return void 0===t?arguments.length<2?"":e:pf(t)},Rf=_f,If=fe("toStringTag"),Cf=Error,Lf=[].push,Nf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=yf(Bf,this);bf?n=bf(Cf(),i?mf(this):Bf):(n=i?this:kf(Bf),Sf(n,If,"Error")),void 0!==e&&Sf(n,"message",Af(e)),Rf&&Sf(n,"stack",xf(n.stack,1)),Of(n,r);var o=[];return Tf(t,Lf,{that:o}),Sf(n,"errors",o),n};bf?bf(Nf,Cf):wf(Nf,Cf,{name:!0});var Bf=Nf.prototype=kf(Cf.prototype,{constructor:Ef(1,Nf),message:Ef(1,""),name:Ef(1,"AggregateError")});gf({global:!0,constructor:!0,arity:2},{AggregateError:Nf});var Df,Pf,Mf,zf,jf="process"==m(r.process),Ff=ot,Uf=Xe,Kf=A,Gf=fe("species"),Zf=function(t){var e=Ff(t),n=Uf.f;Kf&&e&&!e[Gf]&&n(e,Gf,{configurable:!0,get:function(){return this}})},Hf=at,Wf=TypeError,Vf=function(t,e){if(Hf(e,t))return t;throw Wf("Incorrect invocation")},Yf=yr,Jf=xt,Xf=TypeError,qf=function(t){if(Yf(t))return t;throw Xf(Jf(t)+" is not a constructor")},Qf=en,$f=qf,th=Z,eh=fe("species"),nh=function(t,e){var n,r=Qf(t).constructor;return void 0===r||th(n=Qf(r)[eh])?e:$f(n)},rh=TypeError,ih=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),oh=r,ah=l,sh=Je,uh=O,ch=Xt,lh=i,fh=ki,hh=bs,dh=xe,ph=function(t,e){if(t<e)throw rh("Not enough arguments");return t},vh=ih,_h=jf,gh=oh.setImmediate,yh=oh.clearImmediate,mh=oh.process,bh=oh.Dispatch,wh=oh.Function,kh=oh.MessageChannel,Sh=oh.String,Eh=0,xh={},Oh="onreadystatechange";try{Df=oh.location}catch(WT){}var Th=function(t){if(ch(xh,t)){var e=xh[t];delete xh[t],e()}},Ah=function(t){return function(){Th(t)}},Rh=function(t){Th(t.data)},Ih=function(t){oh.postMessage(Sh(t),Df.protocol+"//"+Df.host)};gh&&yh||(gh=function(t){ph(arguments.length,1);var e=uh(t)?t:wh(t),n=hh(arguments,1);return xh[++Eh]=function(){ah(e,void 0,n)},Pf(Eh),Eh},yh=function(t){delete xh[t]},_h?Pf=function(t){mh.nextTick(Ah(t))}:bh&&bh.now?Pf=function(t){bh.now(Ah(t))}:kh&&!vh?(zf=(Mf=new kh).port2,Mf.port1.onmessage=Rh,Pf=sh(zf.postMessage,zf)):oh.addEventListener&&uh(oh.postMessage)&&!oh.importScripts&&Df&&"file:"!==Df.protocol&&!lh(Ih)?(Pf=Ih,oh.addEventListener("message",Rh,!1)):Pf=Oh in dh("script")?function(t){fh.appendChild(dh("script"))[Oh]=function(){fh.removeChild(this),Th(t)}}:function(t){setTimeout(Ah(t),0)});var Ch,Lh,Nh,Bh,Dh,Ph,Mh,zh,jh={set:gh,clear:yh},Fh=r,Uh=/ipad|iphone|ipod/i.test(st)&&void 0!==Fh.Pebble,Kh=/web0s(?!.*chrome)/i.test(st),Gh=r,Zh=Je,Hh=T.f,Wh=jh.set,Vh=ih,Yh=Uh,Jh=Kh,Xh=jf,qh=Gh.MutationObserver||Gh.WebKitMutationObserver,Qh=Gh.document,$h=Gh.process,td=Gh.Promise,ed=Hh(Gh,"queueMicrotask"),nd=ed&&ed.value;nd||(Ch=function(){var t,e;for(Xh&&(t=$h.domain)&&t.exit();Lh;){e=Lh.fn,Lh=Lh.next;try{e()}catch(WT){throw Lh?Bh():Nh=void 0,WT}}Nh=void 0,t&&t.enter()},Vh||Xh||Jh||!qh||!Qh?!Yh&&td&&td.resolve?((Mh=td.resolve(void 0)).constructor=td,zh=Zh(Mh.then,Mh),Bh=function(){zh(Ch)}):Xh?Bh=function(){$h.nextTick(Ch)}:(Wh=Zh(Wh,Gh),Bh=function(){Wh(Ch)}):(Dh=!0,Ph=Qh.createTextNode(""),new qh(Ch).observe(Ph,{characterData:!0}),Bh=function(){Ph.data=Dh=!Dh}));var rd=nd||function(t){var e={fn:t,next:void 0};Nh&&(Nh.next=e),Lh||(Lh=e,Bh()),Nh=e},id=r,od=function(t){try{return{error:!1,value:t()}}catch(WT){return{error:!0,value:WT}}},ad=function(){this.head=null,this.tail=null};ad.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var sd=ad,ud=r.Promise,cd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ld=!cd&&!jf&&"object"==typeof window&&"object"==typeof document,fd=r,hd=ud,dd=O,pd=He,vd=ir,_d=fe,gd=ld,yd=cd,md=pt,bd=hd&&hd.prototype,wd=_d("species"),kd=!1,Sd=dd(fd.PromiseRejectionEvent),Ed={CONSTRUCTOR:pd("Promise",(function(){var t=vd(hd),e=t!==String(hd);if(!e&&66===md)return!0;if(!bd.catch||!bd.finally)return!0;if(!md||md<51||!/native code/.test(t)){var n=new hd((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[wd]=r,!(kd=n.then((function(){}))instanceof r))return!0}return!e&&(gd||yd)&&!Sd})),REJECTION_EVENT:Sd,SUBCLASSING:kd},xd={},Od=Rt,Td=TypeError,Ad=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Td("Bad Promise constructor");e=t,n=r})),this.resolve=Od(e),this.reject=Od(n)};xd.f=function(t){return new Ad(t)};var Rd,Id,Cd=An,Ld=jf,Nd=r,Bd=C,Dd=no,Pd=To,Md=Zf,zd=Rt,jd=O,Fd=$,Ud=Vf,Kd=nh,Gd=jh.set,Zd=rd,Hd=function(t,e){var n=id.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},Wd=od,Vd=sd,Yd=Go,Jd=ud,Xd=Ed,qd=xd,Qd="Promise",$d=Xd.CONSTRUCTOR,tp=Xd.REJECTION_EVENT,ep=Yd.getterFor(Qd),np=Yd.set,rp=Jd&&Jd.prototype,ip=Jd,op=rp,ap=Nd.TypeError,sp=Nd.document,up=Nd.process,cp=qd.f,lp=cp,fp=!!(sp&&sp.createEvent&&Nd.dispatchEvent),hp="unhandledrejection",dp=function(t){var e;return!(!Fd(t)||!jd(e=t.then))&&e},pp=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&&mp(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(ap("Promise-chain cycle")):(r=dp(n))?Bd(r,n,u,c):u(n)):c(o)}catch(WT){l&&!i&&l.exit(),c(WT)}},vp=function(t,e){t.notified||(t.notified=!0,Zd((function(){for(var n,r=t.reactions;n=r.get();)pp(n,t);t.notified=!1,e&&!t.rejection&&gp(t)})))},_p=function(t,e,n){var r,i;fp?((r=sp.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Nd.dispatchEvent(r)):r={promise:e,reason:n},!tp&&(i=Nd["on"+t])?i(r):t===hp&&Hd("Unhandled promise rejection",n)},gp=function(t){Bd(Gd,Nd,(function(){var e,n=t.facade,r=t.value;if(yp(t)&&(e=Wd((function(){Ld?up.emit("unhandledRejection",r,n):_p(hp,n,r)})),t.rejection=Ld||yp(t)?2:1,e.error))throw e.value}))},yp=function(t){return 1!==t.rejection&&!t.parent},mp=function(t){Bd(Gd,Nd,(function(){var e=t.facade;Ld?up.emit("rejectionHandled",e):_p("rejectionhandled",e,t.value)}))},bp=function(t,e,n){return function(r){t(e,r,n)}},wp=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vp(t,!0))},kp=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ap("Promise can't be resolved itself");var r=dp(e);r?Zd((function(){var n={done:!1};try{Bd(r,e,bp(kp,n,t),bp(wp,n,t))}catch(WT){wp(n,WT,t)}})):(t.value=e,t.state=1,vp(t,!1))}catch(WT){wp({done:!1},WT,t)}}};$d&&(op=(ip=function(t){Ud(this,op),zd(t),Bd(Rd,this);var e=ep(this);try{t(bp(kp,e),bp(wp,e))}catch(WT){wp(e,WT)}}).prototype,(Rd=function(t){np(this,{type:Qd,done:!1,notified:!1,parent:!1,reactions:new Vd,rejection:!1,state:0,value:void 0})}).prototype=Dd(op,"then",(function(t,e){var n=ep(this),r=cp(Kd(this,ip));return n.parent=!0,r.ok=!jd(t)||t,r.fail=jd(e)&&e,r.domain=Ld?up.domain:void 0,0==n.state?n.reactions.add(r):Zd((function(){pp(r,n)})),r.promise})),Id=function(){var t=new Rd,e=ep(t);this.promise=t,this.resolve=bp(kp,e),this.reject=bp(wp,e)},qd.f=cp=function(t){return t===ip||undefined===t?new Id(t):lp(t)}),Cd({global:!0,constructor:!0,wrap:!0,forced:$d},{Promise:ip}),Pd(ip,Qd,!1,!0),Md(Qd);var Sp=fe("iterator"),Ep=!1;try{var xp=0,Op={next:function(){return{done:!!xp++}},return:function(){Ep=!0}};Op[Sp]=function(){return this},Array.from(Op,(function(){throw 2}))}catch(WT){}var Tp=function(t,e){if(!e&&!Ep)return!1;var n=!1;try{var r={};r[Sp]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(WT){}return n},Ap=ud,Rp=Ed.CONSTRUCTOR||!Tp((function(t){Ap.all(t).then(void 0,(function(){}))})),Ip=C,Cp=Rt,Lp=xd,Np=od,Bp=df;An({target:"Promise",stat:!0,forced:Rp},{all:function(t){var e=this,n=Lp.f(e),r=n.resolve,i=n.reject,o=Np((function(){var n=Cp(e.resolve),o=[],a=0,s=1;Bp(t,(function(t){var u=a++,c=!1;s++,Ip(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 Dp=An,Pp=Ed.CONSTRUCTOR;ud&&ud.prototype,Dp({target:"Promise",proto:!0,forced:Pp,real:!0},{catch:function(t){return this.then(void 0,t)}});var Mp=C,zp=Rt,jp=xd,Fp=od,Up=df;An({target:"Promise",stat:!0,forced:Rp},{race:function(t){var e=this,n=jp.f(e),r=n.reject,i=Fp((function(){var i=zp(e.resolve);Up(t,(function(t){Mp(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Kp=C,Gp=xd;An({target:"Promise",stat:!0,forced:Ed.CONSTRUCTOR},{reject:function(t){var e=Gp.f(this);return Kp(e.reject,void 0,t),e.promise}});var Zp=en,Hp=$,Wp=xd,Vp=function(t,e){if(Zp(t),Hp(e)&&e.constructor===t)return e;var n=Wp.f(t);return(0,n.resolve)(e),n.promise},Yp=An,Jp=ud,Xp=Ed.CONSTRUCTOR,qp=Vp,Qp=ot("Promise"),$p=!Xp;Yp({target:"Promise",stat:!0,forced:true},{resolve:function(t){return qp($p&&this===Qp?Jp:this,t)}});var tv=C,ev=Rt,nv=xd,rv=od,iv=df;An({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=nv.f(e),r=n.resolve,i=n.reject,o=rv((function(){var n=ev(e.resolve),i=[],o=0,a=1;iv(t,(function(t){var s=o++,u=!1;a++,tv(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 ov=C,av=Rt,sv=ot,uv=xd,cv=od,lv=df,fv="No one promise resolved";An({target:"Promise",stat:!0},{any:function(t){var e=this,n=sv("AggregateError"),r=uv.f(e),i=r.resolve,o=r.reject,a=cv((function(){var r=av(e.resolve),a=[],s=0,u=1,c=!1;lv(t,(function(t){var l=s++,f=!1;u++,ov(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,fv)))}))})),--u||o(new n(a,fv))}));return a.error&&o(a.value),r.promise}});var hv=An,dv=ud,pv=i,vv=ot,_v=O,gv=nh,yv=Vp,mv=dv&&dv.prototype;hv({target:"Promise",proto:!0,real:!0,forced:!!dv&&pv((function(){mv.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=gv(this,vv("Promise")),n=_v(t);return this.then(n?function(n){return yv(e,t()).then((function(){return n}))}:t,n?function(n){return yv(e,t()).then((function(){throw n}))}:t)}});var bv=tt.Promise,wv=xd,kv=od;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=wv.f(this),n=kv(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Sv=e(bv),Ev=An,xv=In,Ov=k([].reverse),Tv=[1,2];Ev({target:"Array",proto:!0,forced:String(Tv)===String(Tv.reverse())},{reverse:function(){return xv(this)&&(this.length=this.length),Ov(this)}});var Av=ol("Array").reverse,Rv=at,Iv=Av,Cv=Array.prototype,Lv=e((function(t){var e=t.reverse;return t===Cv||Rv(Cv,t)&&e===Cv.reverse?Iv:e})),Nv=An,Bv=In,Dv=yr,Pv=$,Mv=Qr,zv=jn,jv=X,Fv=Hn,Uv=fe,Kv=bs,Gv=Rr("slice"),Zv=Uv("species"),Hv=Array,Wv=Math.max;Nv({target:"Array",proto:!0,forced:!Gv},{slice:function(t,e){var n,r,i,o=jv(this),a=zv(o),s=Mv(t,a),u=Mv(void 0===e?a:e,a);if(Bv(o)&&(n=o.constructor,(Dv(n)&&(n===Hv||Bv(n.prototype))||Pv(n)&&null===(n=n[Zv]))&&(n=void 0),n===Hv||void 0===n))return Kv(o,s,u);for(r=new(void 0===n?Hv:n)(Wv(u-s,0)),i=0;s<u;s++,i++)s in o&&Fv(r,i,o[s]);return r.length=i,r}});var Vv=ol("Array").slice,Yv=at,Jv=Vv,Xv=Array.prototype,qv=e((function(t){var e=t.slice;return t===Xv||Yv(Xv,t)&&e===Xv.slice?Jv:e}));function Qv(){Qv=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Vc||function(t,e,n){t[e]=n.value},i="function"==typeof kc?kc:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Vc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Jc(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:b(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var _=$c&&$c($c(x([])));_&&_!==e&&n.call(_,o)&&(v=_);var g=p.prototype=h.prototype=Jc(v);function y(t){var e;dl(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Fc(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],dl(t).call(t,k,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(g,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return pl?pl(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Jc(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),u(m.prototype,a,(function(){return this})),t.AsyncIterator=m,t.async=function(e,n,r,i,o){void 0===o&&(o=Sv);var a=new m(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return Lv(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}},t.values=x,E.prototype={constructor:E,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,dl(e=this.tryEntries).call(e,S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+qv(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,f):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),f},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),S(n),f}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function $v(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(WT){return void n(WT)}s.done?e(u):Sv.resolve(u).then(r,i)}function t_(t){return function(){var e=this,n=arguments;return new Sv((function(r,i){var o=t.apply(e,n);function a(t){$v(o,r,i,a,s,"next",t)}function s(t){$v(o,r,i,a,s,"throw",t)}a(void 0)}))}}function e_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n_=e(ro.f("toPrimitive"));function r_(t){var e=function(t,e){if("object"!==Fc(t)||null===t)return t;var n=t[n_];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fc(e)?e:String(e)}function i_(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),Vc(t,r_(r.key),r)}}function o_(t,e,n){return e&&i_(t.prototype,e),n&&i_(t,n),Vc(t,"prototype",{writable:!1}),t}function a_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s_=k,u_=Rt,c_=$,l_=Xt,f_=bs,h_=o,d_=Function,p_=s_([].concat),v_=s_([].join),__={},g_=h_?d_.bind:function(t){var e=u_(this),n=e.prototype,r=f_(arguments,1),i=function(){var n=p_(r,f_(arguments));return this instanceof i?function(t,e,n){if(!l_(__,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";__[e]=d_("C,a","return new C("+v_(r,",")+")")}return __[e](t,n)}(e,n.length,n):e.apply(t,n)};return c_(n)&&(i.prototype=n),i},y_=g_;An({target:"Function",proto:!0,forced:Function.bind!==y_},{bind:y_});var m_=ol("Function").bind,b_=at,w_=m_,k_=Function.prototype,S_=e((function(t){var e=t.bind;return t===k_||b_(k_,t)&&e===k_.bind?w_:e}));function E_(t,e){var n;return(E_=pl?S_(n=pl).call(n):function(t,e){return t.__proto__=e,t})(t,e)}function x_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Jc(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Vc(t,"prototype",{writable:!1}),e&&E_(t,e)}var O_=An,T_=l,A_=g_,R_=qf,I_=en,C_=$,L_=ji,N_=i,B_=ot("Reflect","construct"),D_=Object.prototype,P_=[].push,M_=N_((function(){function t(){}return!(B_((function(){}),[],t)instanceof t)})),z_=!N_((function(){B_((function(){}))})),j_=M_||z_;O_({target:"Reflect",stat:!0,forced:j_,sham:j_},{construct:function(t,e){R_(t),I_(e);var n=arguments.length<3?t:R_(arguments[2]);if(z_&&!M_)return B_(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 T_(P_,r,e),new(T_(A_,t,r))}var i=n.prototype,o=L_(C_(i)?i:D_),a=T_(t,o,e);return C_(a)?a:o}});var F_=e(tt.Reflect.construct);function U_(t){var e;return(U_=pl?S_(e=$c).call(e):function(t){return t.__proto__||$c(t)})(t)}function K_(t){var e=function(){if("undefined"==typeof Reflect||!F_)return!1;if(F_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(F_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U_(t);if(e){var i=U_(this).constructor;n=F_(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Fc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a_(t)}(this,n)}}function G_(t,e,n){return(e=r_(e))in t?Vc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z_=Vt,H_=pi;An({target:"Object",stat:!0,forced:i((function(){H_(1)}))},{keys:function(t){return H_(Z_(t))}});var W_=e(tt.Object.keys),V_=qo.filter;An({target:"Array",proto:!0,forced:!Rr("filter")},{filter:function(t){return V_(this,t,arguments.length>1?arguments[1]:void 0)}});var Y_=ol("Array").filter,J_=at,X_=Y_,q_=Array.prototype,Q_=e((function(t){var e=t.filter;return t===q_||J_(q_,t)&&e===q_.filter?X_:e})),$_=ol("Array").concat,tg=at,eg=$_,ng=Array.prototype,rg=e((function(t){var e=t.concat;return t===ng||tg(ng,t)&&e===ng.concat?eg:e})),ig=e(tt.Object.getOwnPropertySymbols),og={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}Object.create&&(r.prototype=Object.create(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?qv(r).call(r,1):r);return ig?rg(i).call(i,ig(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}(og);var ag=function(t){x_(r,t);var e,n=K_(r);function r(){var t,e;e_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(e=n.call.apply(n,rg(t=[this]).call(t,o))),"monitor",void 0),e}return o_(r,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=t_(Qv().mark((function t(){return Qv().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}(og.exports.EventEmitter),sg=e(Ul);An({target:"Array",stat:!0},{isArray:In});var ug=e(tt.Array.isArray),cg=en,lg=Ql,fg=Je,hg=C,dg=Vt,pg=function(t,e,n,r){try{return r?e(cg(n)[0],n[1]):e(n)}catch(WT){lg(t,"throw",WT)}},vg=Dl,_g=yr,gg=jn,yg=Hn,mg=Yl,bg=Ul,wg=Array,kg=function(t){var e=dg(t),n=_g(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=fg(i,r>2?arguments[2]:void 0));var a,s,u,c,l,f,h=bg(e),d=0;if(!h||this===wg&&vg(h))for(a=gg(e),s=n?new this(a):wg(a);a>d;d++)f=o?i(e[d],d):e[d],yg(s,d,f);else for(l=(c=mg(e,h)).next,s=n?new this:[];!(u=hg(l,c)).done;d++)f=o?pg(c,i,[u.value,d],!0):u.value,yg(s,d,f);return s.length=d,s};An({target:"Array",stat:!0,forced:!Tp((function(t){Array.from(t)}))},{from:kg});var Sg=e(tt.Array.from);function Eg(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 xg={exports:{}},Og=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Tg=i,Ag=$,Rg=m,Ig=Og,Cg=Object.isExtensible,Lg=Tg((function(){Cg(1)}))||Ig?function(t){return!!Ag(t)&&((!Ig||"ArrayBuffer"!=Rg(t))&&(!Cg||Cg(t)))}:Cg,Ng=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bg=An,Dg=k,Pg=ii,Mg=$,zg=Xt,jg=Xe.f,Fg=Fi,Ug=Gi,Kg=Lg,Gg=Ng,Zg=!1,Hg=ee("meta"),Wg=0,Vg=function(t){jg(t,Hg,{value:{objectID:"O"+Wg++,weakData:{}}})},Yg=xg.exports={enable:function(){Yg.enable=function(){},Zg=!0;var t=Fg.f,e=Dg([].splice),n={};n[Hg]=1,t(n).length&&(Fg.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===Hg){e(r,i,1);break}return r},Bg({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ug.f}))},fastKey:function(t,e){if(!Mg(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!zg(t,Hg)){if(!Kg(t))return"F";if(!e)return"E";Vg(t)}return t[Hg].objectID},getWeakData:function(t,e){if(!zg(t,Hg)){if(!Kg(t))return!0;if(!e)return!1;Vg(t)}return t[Hg].weakData},onFreeze:function(t){return Gg&&Zg&&Kg(t)&&!zg(t,Hg)&&Vg(t),t}};Pg[Hg]=!0;var Jg=xg.exports,Xg=An,qg=r,Qg=Jg,$g=i,ty=_n,ey=df,ny=Vf,ry=O,iy=$,oy=To,ay=Xe.f,sy=qo.forEach,uy=A,cy=Go.set,ly=Go.getterFor,fy=no,hy=Xe.f,dy=ji,py=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:fy(t,r,e[r],n);return t},vy=Je,_y=Vf,gy=Z,yy=df,my=nc,by=rc,wy=Zf,ky=A,Sy=Jg.fastKey,Ey=Go.set,xy=Go.getterFor,Oy={getConstructor:function(t,e,n,r){var i=t((function(t,i){_y(t,o),Ey(t,{type:e,index:dy(null),first:void 0,last:void 0,size:0}),ky||(t.size=0),gy(i)||yy(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=xy(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=Sy(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),ky?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=Sy(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return py(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,ky?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),ky?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=vy(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)}}),py(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)}}),ky&&hy(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=xy(e),o=xy(r);my(t,e,(function(t,e){Ey(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)?by("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,by(void 0,!0))}),n?"entries":"values",!n,!0),wy(e)}};(function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=qg[t],u=s&&s.prototype,c={};if(uy&&ry(s)&&(o||u.forEach&&!$g((function(){(new s).entries().next()})))){var l=(r=e((function(e,n){cy(ny(e,l),{type:t,collection:new s}),null!=n&&ey(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=ly(t);sy(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||o&&"clear"==t||ty(l,t,(function(n,r){var i=f(this).collection;if(!e&&o&&!iy(n))return"get"==t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||ay(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Qg.enable();oy(r,t,!1,!0),c[t]=r,Xg({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)}}),Oy);var Ty=tt.Map,Ay=Je,Ry=C,Iy=Rt,Cy=qf,Ly=Z,Ny=df,By=[].push,Dy=function(t){var e,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return Cy(this),(e=void 0!==a)&&Iy(a),Ly(t)?new this:(n=[],e?(r=0,i=Ay(a,o>2?arguments[2]:void 0),Ny(t,(function(t){Ry(By,n,i(t,r++))}))):Ny(t,By,{that:n}),new this(n))};An({target:"Map",stat:!0,forced:!0},{from:Dy});var Py=bs,My=function(){return new this(Py(arguments))};An({target:"Map",stat:!0,forced:!0},{of:My});var zy=C,jy=Rt,Fy=en,Uy=function(){for(var t,e=Fy(this),n=jy(e.delete),r=!0,i=0,o=arguments.length;i<o;i++)t=zy(n,e,arguments[i]),r=r&&t;return!!r};An({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:Uy});var Ky=C,Gy=Rt,Zy=en;An({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=Zy(this),o=Gy(i.get),a=Gy(i.has),s=Gy(i.set);return Ky(a,i,t)?(n=Ky(o,i,t),"update"in e&&(n=e.update(n,t,i),Ky(s,i,t,n)),n):(r=e.insert(t,i),Ky(s,i,t,r),r)}});var Hy=Yl,Wy=en,Vy=Je,Yy=Hy,Jy=df;An({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Wy(this),n=Yy(e),r=Vy(t,arguments.length>1?arguments[1]:void 0);return!Jy(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Xy=ot,qy=Je,Qy=C,$y=Rt,tm=en,em=nh,nm=Hy,rm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=tm(this),n=nm(e),r=qy(t,arguments.length>1?arguments[1]:void 0),i=new(em(e,Xy("Map"))),o=$y(i.set);return rm(n,(function(t,n){r(n,t,e)&&Qy(o,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var im=en,om=Je,am=Hy,sm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=im(this),n=am(e),r=om(t,arguments.length>1?arguments[1]:void 0);return sm(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var um=en,cm=Je,lm=Hy,fm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=um(this),n=lm(e),r=cm(t,arguments.length>1?arguments[1]:void 0);return fm(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var hm=An,dm=C,pm=Rt,vm=Yl,_m=df,gm=k([].push);hm({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){pm(e);var n=vm(t),r=new this,i=pm(r.has),o=pm(r.get),a=pm(r.set);return _m(n,(function(t){var n=e(t);dm(i,r,n)?gm(dm(o,r,n),t):dm(a,r,n,[t])}),{IS_ITERATOR:!0}),r}});var ym=en,mm=Hy,bm=function(t,e){return t===e||t!=t&&e!=e},wm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return wm(mm(ym(this)),(function(e,n,r){if(bm(n,t))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var km=C,Sm=df,Em=Rt;An({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;Em(e);var r=Em(n.set);return Sm(t,(function(t){km(r,n,e(t),t)})),n}});var xm=en,Om=Hy,Tm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return Tm(Om(xm(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Am=ot,Rm=Je,Im=C,Cm=Rt,Lm=en,Nm=nh,Bm=Hy,Dm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Lm(this),n=Bm(e),r=Rm(t,arguments.length>1?arguments[1]:void 0),i=new(Nm(e,Am("Map"))),o=Cm(i.set);return Dm(n,(function(t,n){Im(o,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Pm=ot,Mm=Je,zm=C,jm=Rt,Fm=en,Um=nh,Km=Hy,Gm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Fm(this),n=Km(e),r=Mm(t,arguments.length>1?arguments[1]:void 0),i=new(Um(e,Pm("Map"))),o=jm(i.set);return Gm(n,(function(t,n){zm(o,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Zm=Rt,Hm=en,Wm=df;An({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Hm(this),n=Zm(e.set),r=arguments.length,i=0;i<r;)Wm(arguments[i++],n,{that:e,AS_ENTRIES:!0});return e}});var Vm=en,Ym=Rt,Jm=Hy,Xm=df,qm=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Vm(this),n=Jm(e),r=arguments.length<2,i=r?void 0:arguments[1];if(Ym(t),Xm(n,(function(n,o){r?(r=!1,i=o):i=t(i,o,n,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw qm("Reduce of empty map with no initial value");return i}});var Qm=en,$m=Je,tb=Hy,eb=df;An({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Qm(this),n=tb(e),r=$m(t,arguments.length>1?arguments[1]:void 0);return eb(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var nb=C,rb=en,ib=Rt,ob=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=rb(this),r=ib(n.get),i=ib(n.has),o=ib(n.set),a=arguments.length;ib(e);var s=nb(i,n,t);if(!s&&a<3)throw ob("Updating absent value");var u=s?nb(r,n,t):ib(a>2?arguments[2]:void 0)(t,n);return nb(o,n,t,e(u,t,n)),n}});var ab=C,sb=Rt,ub=O,cb=en,lb=TypeError,fb=function(t,e){var n,r=cb(this),i=sb(r.get),o=sb(r.has),a=sb(r.set),s=arguments.length>2?arguments[2]:void 0;if(!ub(e)&&!ub(s))throw lb("At least one callback required");return ab(o,r,t)?(n=ab(i,r,t),ub(e)&&(n=e(n),ab(a,r,t,n))):ub(s)&&(n=s(),ab(a,r,t,n)),n};An({target:"Map",proto:!0,real:!0,forced:!0},{upsert:fb}),An({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:fb});var hb=e(Ty),db=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}(db||{}),pb=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(pb||{}),vb=function(t){x_(n,t);var e=K_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(r=e.call.apply(e,rg(t=[this]).call(t,o))),"type",db.PRE_PROCESSING),r}return o_(n)}(ag),_b=ol("Array").values,gb=tr,yb=Xt,mb=at,bb=_b,wb=Array.prototype,kb={DOMTokenList:!0,NodeList:!0},Sb=e((function(t){var e=t.values;return t===wb||mb(wb,t)&&e===wb.values||yb(kb,gb(t))?bb:e})),Eb=ol("Array").keys,xb=tr,Ob=Xt,Tb=at,Ab=Eb,Rb=Array.prototype,Ib={DOMTokenList:!0,NodeList:!0},Cb=e((function(t){var e=t.keys;return t===Rb||Tb(Rb,t)&&e===Rb.keys||Ob(Ib,xb(t))?Ab:e})),Lb=ri.includes;An({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return Lb(this,t,arguments.length>1?arguments[1]:void 0)}});var Nb=ol("Array").includes,Bb=$,Db=m,Pb=fe("match"),Mb=function(t){var e;return Bb(t)&&(void 0!==(e=t[Pb])?!!e:"RegExp"==Db(t))},zb=TypeError,jb=fe("match"),Fb=An,Ub=function(t){if(Mb(t))throw zb("The method doesn't accept regular expressions");return t},Kb=V,Gb=Vr,Zb=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[jb]=!1,"/./"[t](e)}catch(r){}}return!1},Hb=k("".indexOf);Fb({target:"String",proto:!0,forced:!Zb("includes")},{includes:function(t){return!!~Hb(Gb(Kb(this)),Gb(Ub(t)),arguments.length>1?arguments[1]:void 0)}});var Wb=ol("String").includes,Vb=at,Yb=Nb,Jb=Wb,Xb=Array.prototype,qb=String.prototype,Qb=e((function(t){var e=t.includes;return t===Xb||Vb(Xb,t)&&e===Xb.includes?Yb:"string"==typeof t||t===qb||Vb(qb,t)&&e===qb.includes?Jb:e})),$b=tt,tw=l;$b.JSON||($b.JSON={stringify:JSON.stringify});var ew=function(t,e,n){return tw($b.JSON.stringify,null,arguments)},nw=e(ew),rw=function(){return"undefined"==typeof window};function iw(t){return null==t?"undefined | null":"string"==typeof t?t:nw({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function ow(t){return null==t?"undefined | null":"string"==typeof t?t:nw({track:iw(t.track)})}function aw(t){return null==t?"undefined | null":"string"==typeof t?t:nw({track:iw(t.track)})}var sw="@byted/ve-rtc",uw="@byted/ve-rtc-cache-size",cw=function(){function t(){e_(this,t),G_(this,"storeKey",void 0),G_(this,"logLevel",void 0),G_(this,"LogfileSize",void 0),G_(this,"db",void 0),G_(this,"logId",void 0),G_(this,"cacheLog",void 0),G_(this,"cachedSize",void 0),G_(this,"preCacheTime",void 0),G_(this,"timer",void 0),G_(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 o_(t,[{key:"_createStore",value:function(){var t=this;if(!rw()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(sw);try{localStorage.removeItem(uw)}catch(WT){}},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(uw);if(e)this.cachedSize=Number(e);else Sb(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(WT){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(uw,"".concat(this.cachedSize))}catch(WT){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(sw,t).objectStore(sw)}},{key:"set",value:function(t){var e=this;return new Sv((function(n,r){if("none"===e.logLevel)return n();var i;if(t&&e.preCacheTime&&e.preCacheTime-Date.now()<1e3)return e.cacheLog+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=setTimeout((function(){e.set("")}),1e3-(e.preCacheTime-Date.now()))),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=rg(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?rg(s=rg(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(rg(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([rg(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Date.now(),n()}catch(p){var d;if(!t)return r(p);e.cacheLog+=rg(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+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,r(n)}}))}},{key:"get",value:function(t){var e=this;return new Sv((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 Sv((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 Cb(this).call(this).then((function(t){var e,n=Date.now();return t.forEach((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 Sv((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 Sv((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}(),lw=new cw,fw=qo.map;An({target:"Array",proto:!0,forced:!Rr("map")},{map:function(t){return fw(this,t,arguments.length>1?arguments[1]:void 0)}});var hw=ol("Array").map,dw=at,pw=hw,vw=Array.prototype,_w=e((function(t){var e=t.map;return t===vw||dw(vw,t)&&e===vw.map?pw:e})),gw=Bn,yw=Vr,mw=V,bw=RangeError,ww=k,kw=Mn,Sw=Vr,Ew=V,xw=ww((function(t){var e=yw(mw(this)),n="",r=gw(t);if(r<0||r==1/0)throw bw("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Ow=ww("".slice),Tw=Math.ceil,Aw=function(t){return function(e,n,r){var i,o,a=Sw(Ew(e)),s=kw(n),u=a.length,c=void 0===r?" ":Sw(r);return s<=u||""==c?a:((o=xw(c,Tw((i=s-u)/c.length))).length>i&&(o=Ow(o,0,i)),t?a+o:o+a)}},Rw={start:Aw(!1),end:Aw(!0)},Iw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),Cw=Rw.start;An({target:"String",proto:!0,forced:Iw},{padStart:function(t){return Cw(this,t,arguments.length>1?arguments[1]:void 0)}});var Lw=ol("String").padStart,Nw=at,Bw=Lw,Dw=String.prototype,Pw=e((function(t){var e=t.padStart;return"string"==typeof t||t===Dw||Nw(Dw,t)&&e===Dw.padStart?Bw:e}));function Mw(t){return function(t){if(ug(t))return Eg(t)}(t)||function(t){if(void 0!==kc&&null!=sg(t)||null!=t["@@iterator"])return Sg(t)}(t)||function(t,e){var n;if(t){if("string"==typeof t)return Eg(t,e);var r=qv(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Sg(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eg(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 zw=A,jw=In,Fw=TypeError,Uw=Object.getOwnPropertyDescriptor,Kw=zw&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(WT){return WT instanceof TypeError}}(),Gw=xt,Zw=TypeError,Hw=An,Ww=Vt,Vw=Qr,Yw=Bn,Jw=jn,Xw=Kw?function(t,e){if(jw(t)&&!Uw(t,"length").writable)throw Fw("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qw=Un,Qw=xr,$w=Hn,tk=function(t,e){if(!delete t[e])throw Zw("Cannot delete property "+Gw(e)+" of "+Gw(t))},ek=Rr("splice"),nk=Math.max,rk=Math.min;Hw({target:"Array",proto:!0,forced:!ek},{splice:function(t,e){var n,r,i,o,a,s,u=Ww(this),c=Jw(u),l=Vw(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=rk(nk(Yw(e),0),c-l)),qw(c+n-r),i=Qw(u,r),o=0;o<r;o++)(a=l+o)in u&&$w(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]:tk(u,s);for(o=c;o>c-r+n;o--)tk(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]:tk(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return Xw(u,c-r+n),i}});var ik=ol("Array").splice,ok=at,ak=ik,sk=Array.prototype,uk=e((function(t){var e=t.splice;return t===sk||ok(sk,t)&&e===sk.splice?ak:e})),ck=An,lk=ri.indexOf,fk=el,hk=k([].indexOf),dk=!!hk&&1/hk([1],1,-0)<0,pk=fk("indexOf");ck({target:"Array",proto:!0,forced:dk||!pk},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return dk?hk(this,t,e)||0:lk(this,t,e)}});var vk=ol("Array").indexOf,_k=at,gk=vk,yk=Array.prototype,mk=e((function(t){var e=t.indexOf;return t===yk||_k(yk,t)&&e===yk.indexOf?gk:e})),bk=function(){function t(){e_(this,t),G_(this,"_all",{})}return o_(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||uk(n).call(n,mk(n).call(n,e)>>>0,1)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=this._all[t];null==i||qv(i).call(i).forEach((function(t){return t.apply(void 0,n)}))}},{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,rg(e=[t]).call(e,r))}catch(WT){console.error(WT)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),wk=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var kk=function(t){x_(n,t);var e=K_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(r=e.call.apply(e,rg(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 o_(n,[{key:"setParameter",value:function(t,e){if(function(t){return Qb(wk).call(wk,t)}(t))try{var n=Number(e);if(Number.isNaN(n))return;this.config[t]=n}catch(i){var r;return void console.warn(rg(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 W_(this.config)}}]),n}(bk),Sk=new kk,Ek={exports:{}},xk=An,Ok=i,Tk=X,Ak=T.f,Rk=A,Ik=Ok((function(){Ak(1)}));xk({target:"Object",stat:!0,forced:!Rk||Ik,sham:!Rk},{getOwnPropertyDescriptor:function(t,e){return Ak(Tk(t),e)}});var Ck=tt.Object,Lk=Ek.exports=function(t,e){return Ck.getOwnPropertyDescriptor(t,e)};Ck.getOwnPropertyDescriptor.sham&&(Lk.sham=!0);var Nk=e(Ek.exports),Bk=bl,Dk=X,Pk=T,Mk=Hn;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Dk(t),i=Pk.f,o=Bk(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Mk(a,e,n);return a}});var zk=e(tt.Object.getOwnPropertyDescriptors),jk={exports:{}},Fk=An,Uk=A,Kk=Yr.f;Fk({target:"Object",stat:!0,forced:Object.defineProperties!==Kk,sham:!Uk},{defineProperties:Kk});var Gk=tt.Object,Zk=jk.exports=function(t,e){return Gk.defineProperties(t,e)};Gk.defineProperties.sham&&(Zk.sham=!0);var Hk=e(jk.exports);function Wk(t,e){var n=W_(t);if(ig){var r=ig(t);e&&(r=Q_(r).call(r,(function(e){return Nk(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vk(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?dl(n=Wk(Object(i),!0)).call(n,(function(e){G_(t,e,i[e])})):zk?Hk(t,zk(i)):dl(r=Wk(Object(i))).call(r,(function(e){Vc(t,e,Nk(i,e))}))}return t}var Yk=A,Jk=k,Xk=C,qk=i,Qk=pi,$k=to,tS=L,eS=Vt,nS=G,rS=Object.assign,iS=Object.defineProperty,oS=Jk([].concat),aS=!rS||qk((function(){if(Yk&&1!==rS({b:1},rS(iS({},"a",{enumerable:!0,get:function(){iS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=rS({},t)[n]||Qk(rS({},e)).join("")!=r}))?function(t,e){for(var n=eS(t),r=arguments.length,i=1,o=$k.f,a=tS.f;r>i;)for(var s,u=nS(arguments[i++]),c=o?oS(Qk(u),o(u)):Qk(u),l=c.length,f=0;l>f;)s=c[f++],Yk&&!Xk(a,u,s)||(n[s]=u[s]);return n}:rS,sS=aS;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==sS},{assign:sS});var uS=e(tt.Object.assign),cS=Rt,lS=Vt,fS=G,hS=jn,dS=TypeError,pS=function(t){return function(e,n,r,i){cS(n);var o=lS(e),a=fS(o),s=hS(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 dS("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}},vS={left:pS(!1),right:pS(!0)}.left,_S=pt,gS=jf;An({target:"Array",proto:!0,forced:!el("reduce")||!gS&&_S>79&&_S<83},{reduce:function(t){var e=arguments.length;return vS(this,t,e,e>1?arguments[1]:void 0)}});var yS=ol("Array").reduce,mS=at,bS=yS,wS=Array.prototype,kS=e((function(t){var e=t.reduce;return t===wS||mS(wS,t)&&e===wS.reduce?bS:e})),SS=In,ES=jn,xS=Un,OS=Je,TS=function(t,e,n,r,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&OS(a,s);f<r;)f in n&&(u=h?h(n[f],f,e):n[f],o>0&&SS(u)?(c=ES(u),l=TS(t,e,u,c,l,o-1)-1):(xS(l+1),t[l]=u),l++),f++;return l},AS=TS,RS=Vt,IS=jn,CS=Bn,LS=xr;An({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=RS(this),n=IS(e),r=LS(e,0);return r.length=AS(r,e,e,n,0,void 0===t?1:CS(t)),r}});var NS=ol("Array").flat,BS=at,DS=NS,PS=Array.prototype,MS=e((function(t){var e=t.flat;return t===PS||BS(PS,t)&&e===PS.flat?DS:e})),zS={};!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=qv(Array.prototype).call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==Fc(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 rg([]).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)}(zS);var jS={},FS={},US={},KS=zS,GS=0,ZS=1;function HS(t){for(var e=t.length;--e>=0;)t[e]=0}var WS=0,VS=29,YS=256,JS=YS+1+VS,XS=30,qS=19,QS=2*JS+1,$S=15,tE=16,eE=7,nE=256,rE=16,iE=17,oE=18,aE=[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],sE=[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],uE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lE=new Array(2*(JS+2));HS(lE);var fE=new Array(2*XS);HS(fE);var hE=new Array(512);HS(hE);var dE=new Array(256);HS(dE);var pE=new Array(VS);HS(pE);var vE,_E,gE,yE=new Array(XS);function mE(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 bE(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function wE(t){return t<256?hE[t]:hE[256+(t>>>7)]}function kE(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function SE(t,e,n){t.bi_valid>tE-n?(t.bi_buf|=e<<t.bi_valid&65535,kE(t,t.bi_buf),t.bi_buf=e>>tE-t.bi_valid,t.bi_valid+=n-tE):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function EE(t,e,n){SE(t,n[2*e],n[2*e+1])}function xE(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function OE(t,e,n){var r,i,o=new Array($S+1),a=0;for(r=1;r<=$S;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]=xE(o[s]++,s))}}function TE(t){var e;for(e=0;e<JS;e++)t.dyn_ltree[2*e]=0;for(e=0;e<XS;e++)t.dyn_dtree[2*e]=0;for(e=0;e<qS;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*nE]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function AE(t){t.bi_valid>8?kE(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 RE(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 IE(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&RE(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!RE(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function CE(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?EE(t,i,e):(EE(t,(o=dE[i])+YS+1,e),0!==(a=aE[o])&&SE(t,i-=pE[o],a),EE(t,o=wE(--r),n),0!==(a=sE[o])&&SE(t,r-=yE[o],a))}while(s<t.last_lit);EE(t,nE,e)}function LE(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=QS,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--)IE(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],IE(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++,IE(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<=$S;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<QS;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),OE(o,c,t.bl_count)}function NE(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*rE]++):s<=10?t.bl_tree[2*iE]++:t.bl_tree[2*oE]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function BE(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{EE(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(EE(t,i,t.bl_tree),s--),EE(t,rE,t.bl_tree),SE(t,s-3,2)):s<=10?(EE(t,iE,t.bl_tree),SE(t,s-3,3)):(EE(t,oE,t.bl_tree),SE(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}HS(yE);var DE=!1;function PE(t,e,n,r){SE(t,(WS<<1)+(r?1:0),3),function(t,e,n,r){AE(t),r&&(kE(t,n),kE(t,~n)),KS.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}US._tr_init=function(t){DE||(!function(){var t,e,n,r,i,o=new Array($S+1);for(n=0,r=0;r<VS-1;r++)for(pE[r]=n,t=0;t<1<<aE[r];t++)dE[n++]=r;for(dE[n-1]=r,i=0,r=0;r<16;r++)for(yE[r]=i,t=0;t<1<<sE[r];t++)hE[i++]=r;for(i>>=7;r<XS;r++)for(yE[r]=i<<7,t=0;t<1<<sE[r]-7;t++)hE[256+i++]=r;for(e=0;e<=$S;e++)o[e]=0;for(t=0;t<=143;)lE[2*t+1]=8,t++,o[8]++;for(;t<=255;)lE[2*t+1]=9,t++,o[9]++;for(;t<=279;)lE[2*t+1]=7,t++,o[7]++;for(;t<=287;)lE[2*t+1]=8,t++,o[8]++;for(OE(lE,JS+1,o),t=0;t<XS;t++)fE[2*t+1]=5,fE[2*t]=xE(t,5);vE=new mE(lE,aE,YS+1,JS,$S),_E=new mE(fE,sE,0,XS,$S),gE=new mE(new Array(0),uE,0,qS,eE)}(),DE=!0),t.l_desc=new bE(t.dyn_ltree,vE),t.d_desc=new bE(t.dyn_dtree,_E),t.bl_desc=new bE(t.bl_tree,gE),t.bi_buf=0,t.bi_valid=0,TE(t)},US._tr_stored_block=PE,US._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 GS;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return ZS;for(e=32;e<YS;e++)if(0!==t.dyn_ltree[2*e])return ZS;return GS}(t)),LE(t,t.l_desc),LE(t,t.d_desc),a=function(t){var e;for(NE(t,t.dyn_ltree,t.l_desc.max_code),NE(t,t.dyn_dtree,t.d_desc.max_code),LE(t,t.bl_desc),e=qS-1;e>=3&&0===t.bl_tree[2*cE[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?PE(t,e,n,r):4===t.strategy||o===i?(SE(t,2+(r?1:0),3),CE(t,lE,fE)):(SE(t,4+(r?1:0),3),function(t,e,n,r){var i;for(SE(t,e-257,5),SE(t,n-1,5),SE(t,r-4,4),i=0;i<r;i++)SE(t,t.bl_tree[2*cE[i]+1],3);BE(t,t.dyn_ltree,e-1),BE(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),CE(t,t.dyn_ltree,t.dyn_dtree)),TE(t),r&&AE(t)},US._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*(dE[n]+YS+1)]++,t.dyn_dtree[2*wE(e)]++),t.last_lit===t.lit_bufsize-1},US._tr_align=function(t){SE(t,2,3),EE(t,nE,lE),function(t){16===t.bi_valid?(kE(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 ME=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 zE=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 jE,FE=function(t,e,n,r){var i=zE,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},UE={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"},KE=zS,GE=US,ZE=ME,HE=FE,WE=UE,VE=0,YE=4,JE=0,XE=-2,qE=-1,QE=4,$E=2,tx=8,ex=9,nx=286,rx=30,ix=19,ox=2*nx+1,ax=15,sx=3,ux=258,cx=ux+sx+1,lx=42,fx=103,hx=113,dx=666,px=1,vx=2,_x=3,gx=4;function yx(t,e){return t.msg=WE[e],e}function mx(t){return(t<<1)-(t>4?9:0)}function bx(t){for(var e=t.length;--e>=0;)t[e]=0}function wx(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(KE.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 kx(t,e){GE._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,wx(t.strm)}function Sx(t,e){t.pending_buf[t.pending++]=e}function Ex(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function xx(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-cx?t.strstart-(t.w_size-cx):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+ux,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=ux-(h-o),o=h-ux,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 Ox(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-cx)){KE.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,KE.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=ZE(a.adler,s,l,u):2===a.state.wrap&&(a.adler=HE(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=sx)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+sx-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<sx)););}while(t.lookahead<cx&&0!==t.strm.avail_in)}function Tx(t,e){for(var n,r;;){if(t.lookahead<cx){if(Ox(t),t.lookahead<cx&&e===VE)return px;if(0===t.lookahead)break}if(n=0,t.lookahead>=sx&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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-cx&&(t.match_length=xx(t,n)),t.match_length>=sx)if(r=GE._tr_tally(t,t.strstart-t.match_start,t.match_length-sx),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=sx){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=t.strstart<sx-1?t.strstart:sx-1,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}function Ax(t,e){for(var n,r,i;;){if(t.lookahead<cx){if(Ox(t),t.lookahead<cx&&e===VE)return px;if(0===t.lookahead)break}if(n=0,t.lookahead>=sx&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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=sx-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-cx&&(t.match_length=xx(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===sx&&t.strstart-t.match_start>4096)&&(t.match_length=sx-1)),t.prev_length>=sx&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-sx,r=GE._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-sx),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+sx-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=sx-1,t.strstart++,r&&(kx(t,!1),0===t.strm.avail_out))return px}else if(t.match_available){if((r=GE._tr_tally(t,0,t.window[t.strstart-1]))&&kx(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return px}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=GE._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<sx-1?t.strstart:sx-1,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}function Rx(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 Ix(){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=tx,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 KE.Buf16(2*ox),this.dyn_dtree=new KE.Buf16(2*(2*rx+1)),this.bl_tree=new KE.Buf16(2*(2*ix+1)),bx(this.dyn_ltree),bx(this.dyn_dtree),bx(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new KE.Buf16(ax+1),this.heap=new KE.Buf16(2*nx+1),bx(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new KE.Buf16(2*nx+1),bx(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 Cx(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=$E,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?lx:hx,t.adler=2===e.wrap?0:1,e.last_flush=VE,GE._tr_init(e),JE):yx(t,XE)}function Lx(t){var e,n=Cx(t);return n===JE&&((e=t.state).window_size=2*e.w_size,bx(e.head),e.max_lazy_match=jE[e.level].max_lazy,e.good_match=jE[e.level].good_length,e.nice_match=jE[e.level].nice_length,e.max_chain_length=jE[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=sx-1,e.match_available=0,e.ins_h=0),n}function Nx(t,e,n,r,i,o){if(!t)return XE;var a=1;if(e===qE&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>ex||n!==tx||r<8||r>15||e<0||e>9||o<0||o>QE)return yx(t,XE);8===r&&(r=9);var s=new Ix;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+sx-1)/sx),s.window=new KE.Buf8(2*s.w_size),s.head=new KE.Buf16(s.hash_size),s.prev=new KE.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new KE.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,Lx(t)}jE=[new Rx(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(Ox(t),0===t.lookahead&&e===VE)return px;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,kx(t,!1),0===t.strm.avail_out))return px;if(t.strstart-t.block_start>=t.w_size-cx&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):(t.strstart>t.block_start&&(kx(t,!1),t.strm.avail_out),px)})),new Rx(4,4,8,4,Tx),new Rx(4,5,16,8,Tx),new Rx(4,6,32,32,Tx),new Rx(4,4,16,16,Ax),new Rx(8,16,32,32,Ax),new Rx(8,16,128,128,Ax),new Rx(8,32,128,256,Ax),new Rx(32,128,258,1024,Ax),new Rx(32,258,258,4096,Ax)],FS.deflateInit=function(t,e){return Nx(t,e,tx,15,8,0)},FS.deflateInit2=Nx,FS.deflateReset=Lx,FS.deflateResetKeep=Cx,FS.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?XE:(t.state.gzhead=e,JE):XE},FS.deflate=function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?yx(t,XE):XE;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===dx&&e!==YE)return yx(t,0===t.avail_out?-5:XE);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===lx)if(2===r.wrap)t.adler=0,Sx(r,31),Sx(r,139),Sx(r,8),r.gzhead?(Sx(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)),Sx(r,255&r.gzhead.time),Sx(r,r.gzhead.time>>8&255),Sx(r,r.gzhead.time>>16&255),Sx(r,r.gzhead.time>>24&255),Sx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Sx(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Sx(r,255&r.gzhead.extra.length),Sx(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=HE(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Sx(r,3),r.status=hx);else{var a=tx+(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=hx,Ex(r,a),0!==r.strstart&&(Ex(r,t.adler>>>16),Ex(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(t),i=r.pending,r.pending!==r.pending_buf_size));)Sx(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(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,Sx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(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,Sx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=fx)}else r.status=fx;if(r.status===fx&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&wx(t),r.pending+2<=r.pending_buf_size&&(Sx(r,255&t.adler),Sx(r,t.adler>>8&255),t.adler=0,r.status=hx)):r.status=hx),0!==r.pending){if(wx(t),0===t.avail_out)return r.last_flush=-1,JE}else if(0===t.avail_in&&mx(e)<=mx(n)&&e!==YE)return yx(t,-5);if(r.status===dx&&0!==t.avail_in)return yx(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==VE&&r.status!==dx){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(Ox(t),0===t.lookahead)){if(e===VE)return px;break}if(t.match_length=0,n=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=ux){if(Ox(t),t.lookahead<=ux&&e===VE)return px;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=sx&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+ux;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=ux-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=sx?(n=GE._tr_tally(t,1,t.match_length-sx),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}(r,e):jE[r.level].func(r,e);if(s!==_x&&s!==gx||(r.status=dx),s===px||s===_x)return 0===t.avail_out&&(r.last_flush=-1),JE;if(s===vx&&(1===e?GE._tr_align(r):5!==e&&(GE._tr_stored_block(r,0,0,!1),3===e&&(bx(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),wx(t),0===t.avail_out))return r.last_flush=-1,JE}return e!==YE?JE:r.wrap<=0?1:(2===r.wrap?(Sx(r,255&t.adler),Sx(r,t.adler>>8&255),Sx(r,t.adler>>16&255),Sx(r,t.adler>>24&255),Sx(r,255&t.total_in),Sx(r,t.total_in>>8&255),Sx(r,t.total_in>>16&255),Sx(r,t.total_in>>24&255)):(Ex(r,t.adler>>>16),Ex(r,65535&t.adler)),wx(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?JE:1)},FS.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==lx&&69!==e&&73!==e&&91!==e&&e!==fx&&e!==hx&&e!==dx?yx(t,XE):(t.state=null,e===hx?yx(t,-3):JE):XE},FS.deflateSetDictionary=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return XE;if(2===(o=(n=t.state).wrap)||1===o&&n.status!==lx||n.lookahead)return XE;for(1===o&&(t.adler=ZE(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(bx(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new KE.Buf8(n.w_size),KE.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,Ox(n);n.lookahead>=sx;){r=n.strstart,i=n.lookahead-(sx-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+sx-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=sx-1,Ox(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=sx-1,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,JE},FS.deflateInfo="pako deflate (from Nodeca project)";var Bx={},Dx=zS,Px=!0,Mx=!0;try{String.fromCharCode.apply(null,[0])}catch(VT){Px=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(VT){Mx=!1}for(var zx=new Dx.Buf8(256),jx=0;jx<256;jx++)zx[jx]=jx>=252?6:jx>=248?5:jx>=240?4:jx>=224?3:jx>=192?2:1;function Fx(t,e){if(e<65534&&(t.subarray&&Mx||!t.subarray&&Px))return String.fromCharCode.apply(null,Dx.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}zx[254]=zx[254]=1,Bx.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 Dx.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},Bx.buf2binstring=function(t){return Fx(t,t.length)},Bx.binstring2buf=function(t){for(var e=new Dx.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},Bx.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=zx[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 Fx(s,r)},Bx.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+zx[t[n]]>e?n:e};var Ux=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},Kx=FS,Gx=zS,Zx=Bx,Hx=UE,Wx=Ux,Vx=Object.prototype.toString,Yx=0,Jx=-1,Xx=0,qx=8;function Qx(t){if(!(this instanceof Qx))return new Qx(t);this.options=Gx.assign({level:Jx,method:qx,chunkSize:16384,windowBits:15,memLevel:8,strategy:Xx,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 Wx,this.strm.avail_out=0;var n=Kx.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Yx)throw new Error(Hx[n]);if(e.header&&Kx.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?Zx.string2buf(e.dictionary):"[object ArrayBuffer]"===Vx.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=Kx.deflateSetDictionary(this.strm,r))!==Yx)throw new Error(Hx[n]);this._dict_set=!0}}function $x(t,e){var n=new Qx(e);if(n.push(t,!0),n.err)throw n.msg||Hx[n.err];return n.result}Qx.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=Zx.string2buf(t):"[object ArrayBuffer]"===Vx.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 Gx.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=Kx.deflate(i,r))&&n!==Yx)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(Zx.buf2binstring(Gx.shrinkBuf(i.output,i.next_out))):this.onData(Gx.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=Kx.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yx):2!==r||(this.onEnd(Yx),i.avail_out=0,!0)},Qx.prototype.onData=function(t){this.chunks.push(t)},Qx.prototype.onEnd=function(t){t===Yx&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gx.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},jS.Deflate=Qx,jS.deflate=$x,jS.deflateRaw=function(t,e){return(e=e||{}).raw=!0,$x(t,e)},jS.gzip=function(t,e){return(e=e||{}).gzip=!0,$x(t,e)};var tO={},eO=en,nO=C,rO=Xt,iO=at,oO=function(){var t=eO(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},aO=RegExp.prototype,sO=at,uO=function(t){var e=t.flags;return void 0!==e||"flags"in aO||rO(t,"flags")||!iO(aO,t)?e:nO(oO,t)},cO=RegExp.prototype,lO=e((function(t){return t===cO||sO(cO,t)?uO(t):t.flags})),fO={},hO=zS,dO=15,pO=[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],vO=[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],_O=[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],gO=[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],yO=zS,mO=ME,bO=FE,wO=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,E,x,O;n=t.state,r=t.next_in,x=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+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,(p+=8)<b&&(d+=x[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,E=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=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,E=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=O}for(;w>2;)O[o++]=E[S++],O[o++]=E[S++],O[o++]=E[S++],w-=3;w&&(O[o++]=E[S++],w>1&&(O[o++]=E[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},kO=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,E=0,x=0,O=0,T=0,A=null,R=0,I=new hO.Buf16(16),C=new hO.Buf16(16),L=null,N=0;for(y=0;y<=dO;y++)I[y]=0;for(m=0;m<r;m++)I[e[n+m]]++;for(k=g,w=dO;w>=1&&0===I[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===I[b];b++);for(k<b&&(k=b),x=1,y=1;y<=dO;y++)if(x<<=1,(x-=I[y])<0)return-1;if(x>0&&(0===t||1!==w))return-1;for(C[1]=0,y=1;y<dO;y++)C[y+1]=C[y]+I[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[C[e[n+m]]++]=m);if(0===t?(A=L=a,d=19):1===t?(A=pO,R-=257,L=vO,N-=257,d=256):(A=_O,L=gO,d=-1),T=0,m=0,y=b,h=o,S=k,E=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-E,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=L[N+a[m]],_=A[R+a[m]]):(v=96,_=0),u=1<<y-E,b=c=1<<S;do{i[h+(T>>E)+(c-=u)]=p<<24|v<<16|_|0}while(0!==c);for(u=1<<y-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,m++,0==--I[y]){if(y===w)break;y=e[n+a[m]]}if(y>k&&(T&f)!==l){for(0===E&&(E=k),h+=b,x=1<<(S=y-E);S+E<w&&!((x-=I[S+E])<=0);)S++,x<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=T&f]=k<<24|S<<16|h-o|0}}return 0!==T&&(i[h+T]=y-E<<24|64<<16|0),s.bits=k,0},SO=1,EO=2,xO=0,OO=-2,TO=1,AO=12,RO=30,IO=852,CO=592;function LO(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function NO(){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 yO.Buf16(320),this.work=new yO.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function BO(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=TO,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new yO.Buf32(IO),e.distcode=e.distdyn=new yO.Buf32(CO),e.sane=1,e.back=-1,xO):OO}function DO(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,BO(t)):OO}function PO(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)?OO:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,DO(t))):OO}function MO(t,e){var n,r;return t?(r=new NO,t.state=r,r.window=null,(n=PO(t,e))!==xO&&(t.state=null),n):OO}var zO,jO,FO=!0;function UO(t){if(FO){var e;for(zO=new yO.Buf32(512),jO=new yO.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(kO(SO,t.lens,0,288,zO,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;kO(EO,t.lens,0,32,jO,0,t.work,{bits:5}),FO=!1}t.lencode=zO,t.lenbits=9,t.distcode=jO,t.distbits=5}function KO(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 yO.Buf8(o.wsize)),r>=o.wsize?(yO.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),yO.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(yO.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}fO.inflateReset=DO,fO.inflateReset2=PO,fO.inflateResetKeep=BO,fO.inflateInit=function(t){return MO(t,15)},fO.inflateInit2=MO,fO.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,E,x,O=0,T=new yO.Buf8(4),A=[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 OO;(n=t.state).mode===AO&&(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=xO;t:for(;;)switch(n.mode){case TO: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,T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,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=RO;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=RO;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=RO;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:AO,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&lO(n))){t.msg="unknown compression method",n.mode=RO;break}if(57344&lO(n)){t.msg="unknown header flags set",n.mode=RO;break}n.head&&(n.head.text=c>>8&1),512&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=bO(n.check,T,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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&lO(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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&lO(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)),yO.arraySet(n.head.extra,r,o,d,k)),512&lO(n)&&(n.check=bO(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&lO(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&lO(n)&&(n.check=bO(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&lO(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&lO(n)&&(n.check=bO(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&lO(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=RO;break}c=0,l=0}n.head&&(n.head.hcrc=lO(n)>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=AO;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=LO(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=AO;case AO: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(UO(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=RO}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=RO;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;yO.arraySet(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=AO;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=RO;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[A[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=kO(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid code lengths set",n.mode=RO;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(x=_+2;l<x;){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=RO;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(x=_+3;l<x;){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(x=_+7;l<x;){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=RO;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===RO)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=RO;break}if(n.lenbits=9,E={bits:n.lenbits},S=kO(SO,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid literal/lengths set",n.mode=RO;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=kO(EO,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){t.msg="invalid distances set",n.mode=RO;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,wO(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===AO&&(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=AO;break}if(64&g){t.msg="invalid literal/length code",n.mode=RO;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(x=n.extra;l<x;){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=RO;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(x=n.extra;l<x;){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=RO;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=RO;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=lO(n)?bO(n.check,i,h,a-h):mO(n.check,i,h,a-h)),h=u,(lO(n)?c:LO(c))!==n.check){t.msg="incorrect data check",n.mode=RO;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&lO(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=RO;break}c=0,l=0}n.mode=29;case 29:S=1;break t;case RO:S=-3;break t;case 31:return-4;default:return OO}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<RO&&(n.mode<27||4!==e))&&KO(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=lO(n)?bO(n.check,i,h,t.next_out-h):mO(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===AO?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&S===xO&&(S=-5),S},fO.inflateEnd=function(t){if(!t||!t.state)return OO;var e=t.state;return e.window&&(e.window=null),t.state=null,xO},fO.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?OO:(n.head=e,e.done=!1,xO):OO},fO.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?OO:11===n.mode&&mO(1,e,r,0)!==n.check?-3:KO(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,xO):OO},fO.inflateInfo="pako inflate (from Nodeca project)";var GO={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 ZO=fO,HO=zS,WO=Bx,VO=GO,YO=UE,JO=Ux,XO=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},qO=Object.prototype.toString;function QO(t){if(!(this instanceof QO))return new QO(t);this.options=HO.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 JO,this.strm.avail_out=0;var n=ZO.inflateInit2(this.strm,e.windowBits);if(n!==VO.Z_OK)throw new Error(YO[n]);if(this.header=new XO,ZO.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=WO.string2buf(e.dictionary):"[object ArrayBuffer]"===qO.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=ZO.inflateSetDictionary(this.strm,e.dictionary))!==VO.Z_OK))throw new Error(YO[n])}function $O(t,e){var n=new QO(e);if(n.push(t,!0),n.err)throw n.msg||YO[n.err];return n.result}QO.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?VO.Z_FINISH:VO.Z_NO_FLUSH,"string"==typeof t?s.input=WO.binstring2buf(t):"[object ArrayBuffer]"===qO.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 HO.Buf8(u),s.next_out=0,s.avail_out=u),(n=ZO.inflate(s,VO.Z_NO_FLUSH))===VO.Z_NEED_DICT&&c&&(n=ZO.inflateSetDictionary(this.strm,c)),n===VO.Z_BUF_ERROR&&!0===l&&(n=VO.Z_OK,l=!1),n!==VO.Z_STREAM_END&&n!==VO.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==VO.Z_STREAM_END&&(0!==s.avail_in||r!==VO.Z_FINISH&&r!==VO.Z_SYNC_FLUSH)||("string"===this.options.to?(i=WO.utf8border(s.output,s.next_out),o=s.next_out-i,a=WO.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&HO.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(HO.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!==VO.Z_STREAM_END);return n===VO.Z_STREAM_END&&(r=VO.Z_FINISH),r===VO.Z_FINISH?(n=ZO.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===VO.Z_OK):r!==VO.Z_SYNC_FLUSH||(this.onEnd(VO.Z_OK),s.avail_out=0,!0)},QO.prototype.onData=function(t){this.chunks.push(t)},QO.prototype.onEnd=function(t){t===VO.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=HO.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},tO.Inflate=QO,tO.inflate=$O,tO.inflateRaw=function(t,e){return(e=e||{}).raw=!0,$O(t,e)},tO.ungzip=$O;var tT={};(0,zS.assign)(tT,jS,tO,GO);var eT,nT,rT,iT=e(tT),oT=1,aT=function(){function t(e){e_(this,t),G_(this,"lockingPromise",Sv.resolve()),G_(this,"locks",0),G_(this,"name",""),G_(this,"lockId",void 0),this.lockId=oT++,e&&(this.name=e)}return o_(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var n=new Sv((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}(),sT="__rtc_umd_name__",uT=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},cT=function(){function t(e){e_(this,t),G_(this,"storeName",void 0),G_(this,"pendingList",[]),this.storeName=e,!rw()&&uT()&&this._checkAndCreateStore(e)}var e,n,r,i,o,a,s;return o_(t,[{key:"_checkAndCreateStore",value:(s=t_(Qv().mark((function e(n,r){var i,o,a=this;return Qv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!uT.databases){e.next=6;break}return e.next=6,new Sv((function(t){var e=function(){return uT.databases().finally(t)};o=setInterval(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new Sv((function(e){t.db&&(t.db.close(),delete t.db);var o=r?uT().open(sT,r):uT().open(sT);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{t.db.transaction(a.storeName,"readonly"),a.pendingList.forEach(function(){var t=t_(Qv().mark((function t(e){var n,r,i,o;return Qv().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(s){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=t_(Qv().mark((function e(n){var r,i=this;return Qv().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 Sv((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=t_(Qv().mark((function t(e,n){var r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{r=nw(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=t_(Qv().mark((function t(e){var n,r;return Qv().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=t_(Qv().mark((function t(e,n){var r;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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}();G_(cT,"db",void 0),G_(cT,"state","init"),G_(cT,"_promiseLock",new aT("iDB"));var lT={product_line:"rtc",report_version:"5",os:"web",user_agent:rw()?"":null===(eT=navigator)||void 0===eT?void 0:eT.userAgent,platform:"web",product:"webrtc",app_state:"active"},fT="LogReportor",hT="undefined"!=typeof window&&(Qb(nT=window.location.search).call(nT,"_rtc_debug_")||(null===(rT=window.localStorage)||void 0===rT?void 0:rT.getItem("_rtc_debug_"))),dT=function(){function t(e){e_(this,t),G_(this,"_buffer",void 0),this._buffer=new cT(e)}var e,n;return o_(t,[{key:"set",value:(n=t_(Qv().mark((function t(e,n){return Qv().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=t_(Qv().mark((function t(e){var n,r;return Qv().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}(),pT=function(){function t(){var e=this;e_(this,t),G_(this,"reportCommon",lT),G_(this,"reportIds",new hb),G_(this,"dataBuffer",[]),G_(this,"reportorList",[]),G_(this,"dbBuffer",void 0),G_(this,"posting",!1),G_(this,"sucSendTimer",void 0),G_(this,"preSucTime",0),G_(this,"errSendTimer",void 0),G_(this,"errSendDelay",100),G_(this,"_logServerUrl",void 0),G_(this,"_retryCount",0),G_(this,"_reportLimit",5e5),G_(this,"_disableTimeout",!1),rw()||(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"})})),hT&&(window.__rtc_debug_reportor__=this)),Sk.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),Sk.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),setTimeout((function(){e.reportorList.push(RT)}))}var e;return o_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=uS(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&&(bT("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){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.send(t):(this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"enableIndexedDBBuffer",value:function(){var t=this;this.dbBuffer||(this.dbBuffer=new dT("ReportorDBBuffer"),this.dbBuffer.get(fT).then((function(e){e.forEach((function(e){t.push(e)}))})),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.get(e.name).then((function(t){t.forEach((function(t){e.push(t)}))}))})))}},{key:"backup",value:function(){var t=this;try{var e;null===(e=this.dbBuffer)||void 0===e||e.set(Mw(this.dataBuffer),fT),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.set(Mw(e.get()),e.name)}))}catch(n){bT("Error when save log into IDB",-1,n)}}},{key:"unshift",value:function(t){var e;this.dataBuffer=rg(e=t[0]).call(e,this.dataBuffer),this.reportorList.forEach((function(e,n){var r;e.unshift(null!==(r=t[n+1])&&void 0!==r?r:[])}))}},{key:"_splice",value:function(){var t,e=this,n=function(t,e){for(var n=0,r=0;r<t.length;r++)if((n+=nw(t[r]).length)>e)return r;return t.length}(this.dataBuffer,this._reportLimit);0===n&&this.dataBuffer.length>0&&(this._reportLimit=nw(this.dataBuffer[0]).length+10,n=1,bT("update report limit to ".concat(this._reportLimit),0,null));var r=uk(t=this.dataBuffer).call(t,0,n),i=nw(r).length,o=[r],a=this._reportLimit-i;return this.reportorList.forEach((function(t){var n=uk(t).call(t,a),r=n.payload,i=n.payloadSize;r.forEach((function(t){var n,r,i;void 0===t.report_id&&(t.report_id=e.getReportId(t.engine_session_id),!rw()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,e.getCommonStats())))})),o.push(r),a-=i})),o}},{key:"send",value:(e=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=kS(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=hT,s={data:e||MS(o).call(o),header:Vk(Vk({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?nw(s):iT.gzip(nw(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,setTimeout((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():(setTimeout((function(){var t,e,n,r;bT(rg(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(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=window.setTimeout((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var vT,_T=new pT,gT=function(){function t(e){e_(this,t),G_(this,"modifyIds",{}),this.id=e}return o_(t,[{key:"report",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Vk(Vk(Vk({event_key:t,rtc_timestamp:Date.now()},this.modifyIds),e),{},{common_extra_info:nw(i),report_id:_T.getReportId(this.modifyIds.engine_session_id)});!rw()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,this.modifyIds.engine_session_id,o,_T.getCommonStats()));_T.push(o)}},{key:"reportLog",value:function(t){var e=Vk(Vk({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Date.now()},this.modifyIds),{},{message:t});RT.push(e)}},{key:"set",value:function(t){this.modifyIds=uS(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}();setTimeout((function(){vT=new PT("MessageReportor",1)}),0);var yT=function(){function t(e){e_(this,t),G_(this,"_preTime",Date.now()),G_(this,"_one2oneNum",0),G_(this,"_one2manyNum",0),G_(this,"_one2oneMsgCache",new hb),G_(this,"_one2manyMsgCache",new hb),G_(this,"roomId",""),G_(this,"userId",""),G_(this,"rtsSessionId",""),this.id=e}return o_(t,[{key:"needReport",value:function(e){return!!t.config&&(Date.now()-this._preTime>=36e5&&(this._preTime=Date.now(),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,Vk({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,Vk(Vk({},n),e))}},{key:"cacheCustomMsg",value:function(e){var n;this._one2manyMsgCache.set(e.msg_id,Vk({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,Vk(Vk({},n),e))}},{key:"reportP2PMsg",value:function(t){var e,n=this._one2oneMsgCache.get(t);n&&(vT.info("reportP2PMsg",n.type,nw(n)),null===(e=ST(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportOne2ManyMsg",value:function(t){var e,n=this._one2manyMsgCache.get(t);n&&(vT.info("reportOne2ManyMsg",n.type,nw(n)),null===(e=ST(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)||"",vT.info("reportMsgRecv",e.type,nw(e)),null===(r=ST(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=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();G_(yT,"config",void 0);var mT=new gT("global"),bT=function(t,e,n){mT.report("rtc_error",{message:t,error_code:e},n)};var wT,kT=new hb,ST=function(t){return kT.get(t)},ET="undefined"!=typeof window&&Qb(wT=window.location.search).call(wT,"_rtc_upload_console_");function xT(t,e){return _w(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 iw(t);if(t instanceof MediaStream)return null==(r=t)?"undefined | null":"string"==typeof r?r:nw({id:r.id,active:r.active});if(t instanceof RTCRtpSender)return ow(t);if(t instanceof RTCRtpReceiver)return aw(t);if(t instanceof RTCRtpTransceiver)return null==(n=t)?"undefined | null":"string"==typeof n?n:nw({currentDirection:n.currentDirection,direction:n.direction,mid:n.mid,stopped:n.stopped,receiver:aw(n.receiver),sender:ow(n.sender)});i=nw(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=qv(i).call(i,0,e)),i})).join(", ")}var OT,TT,AT,RT=new(function(){function t(){var e=this;e_(this,t),G_(this,"name","ConsoleReportor"),G_(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),G_(this,"_consoleReportId",0),G_(this,"_engineReportIdMap",new hb),G_(this,"_enabled","NULL"),G_(this,"_consoleCutLength",Sk.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),G_(this,"buffer",[]),ET&&setTimeout((function(){e.switchOn()}),0),Sk.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),Sk.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return o_(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=ST(e),S=this._consoleReportId++,E=this.getEngineConsoleId(e),x=xT(u,this._consoleCutLength),O=Mw(u),T="".concat(s).replace(/%o|%s/gi,(function(){return xT([O.shift()],b._consoleCutLength)})),A=rg(c=rg(l=rg(f=rg(h=rg(d=rg(p=rg(v=rg(_=rg(g=rg(y=rg(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(g,E,"]-")).call(_,n,"-")).call(v,t,"[")).call(p,r,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,T," ")).call(c,x);k?k.reportLog(A):(w=A,mT.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=nw(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:uk(e=this.buffer).call(e,0,r),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=rg(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),IT="[VERTC]",CT="#0050b3",LT=(G_(OT={},"DEBUG","rgba(0, 0, 0, 0)"),G_(OT," INFO","rgba(93, 173, 226, 0)"),G_(OT," WARN","rgba(255, 119, 0, 0.3)"),G_(OT,"ERROR","rgba(255, 0, 0, 0.3)"),G_(OT," SUCC","rgba(0, 119, 0, 0.3)"),OT),NT="undefined"!=typeof window&&(Qb(TT=window.location.search).call(TT,"_rtc_debug_")||(null===(AT=window.localStorage)||void 0===AT?void 0:AT.getItem("_rtc_debug_"))),BT=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";e_(this,t),G_(this,"indent",void 0),G_(this,"module",void 0),G_(this,"_engineId",void 0),this.module=e,this.indent=n,this._engineId=r}return o_(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=rg(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return nw(t)}));lw.set(rg(v=rg(_=rg(g="".concat(IT,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,_w(y).call(y,(function(t){return nw(t)})).join(", ")))}catch(WT){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=DT();RT.report(IT,this._engineId,k,t,b,this.module,e,d,f),NT&&(n=console).log.apply(n,rg(r=[rg(i=rg(o=rg(a=rg(s=rg(u=rg(c="%c".concat(k,"-")).call(c,IT,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(CT,";"),"background-color:".concat(LT[t],";"),"color:".concat(CT,";")]).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,rg(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,rg(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,rg(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,rg(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,rg(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,rg(e=[" SUCC",t]).call(e,r))}}]),t}(),DT=function(){var t,e,n=new Date;return rg(t="".concat(n.toTimeString().split(" ")[0],":")).call(t,Pw(e=n.getMilliseconds().toString()).call(e,3,"0"))},PT=BT,MT=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}(MT||{}),zT=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(zT||{}),jT=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(jT||{}),FT=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(FT||{}),UT=new PT("RTCBeautyExtension",1),KT="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",GT="".concat(KT,"/externals/webar.main.sdk.iife.9b380e37.js");var ZT=function(t){x_(h,t);var e,n,r,i,o,a,s,u,c,l,f=K_(h);function h(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e_(this,h),G_(a_(e=f.call(this)),"name","RTCBeautyExtension"),G_(a_(e),"_enable",void 0),G_(a_(e),"_beautyExt",void 0),G_(a_(e),"_backgroundExt",void 0),G_(a_(e),"_enableBeauty",!1),G_(a_(e),"_enableBackground",!1),G_(a_(e),"_fps",15),G_(a_(e),"_backgroundBackend",FT.CPU),G_(a_(e),"_backgroundAIModelType",jT.QUALITY),G_(a_(e),"_backgroundMode",zT.BACKGROUND_BLUR),G_(a_(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),G_(a_(e),"_preTrack",null),h._sdkUrl=n.sdkUrl||GT,h._sdkSourceUrl=n.sdkSourceUrl||KT,h._sdkAuthServer=n.sdkAuthServer||"",h._sdkHash=n.sdkHash||"",h._authFileUrl=n.authFileUrl||"",n.aiBackend===FT.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=FT.GPU):e._backgroundBackend=FT.GPU));return e._backgroundAIModelType=null!==(t=n.aiModelType)&&void 0!==t?t:jT.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return o_(h,[{key:"initWebArSDK",value:(l=t_(Qv().mark((function t(){return Qv().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=t_(Qv().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,p,v,_=this;return Qv().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 u=null==e?void 0:e.videoCaptureConfig,this._fps=u?"number"==typeof(null==u?void 0:u.frameRate)?(null==u?void 0:u.frameRate)||15:(null==u||null===(n=u.frameRate)||void 0===n?void 0:n.ideal)||15:15,UT.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:UT.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(c=h._sdk)||void 0===c?void 0:c.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(l=h._sdk)||void 0===l?void 0:l.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),W_(this._beautyDefaultValue).forEach((function(t){_._beautyExt&&(_._beautyExt[t]=_._beautyDefaultValue[t])})),(f=null===(a=h._sdk.video)||void 0===a||null===(s=a._video)||void 0===s?void 0:s._video)&&(f.style.position="fixed",f.style.top="0",f.style.left="0",f.style.opacity="0",f.style.pointerEvents="none"),"safari"===(g=void 0,g="none",null!==window.navigator.userAgent.match("Firefox")?g="mozilla":null!==window.navigator.userAgent.match("Chrome")?(g="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(g="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(g="safari"),g)&&(p=null===(d=h._sdk)||void 0===d?void 0:d.canvas)&&(p.style.width="1px",p.style.height="1px",p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.opacity="0",p.style.pointerEvents="none",p.style.zIndex="-9999",document.body.appendChild(p)),v=window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame.bind(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&&v()};case 20:case"end":return t.stop()}var g}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=t_(Qv().mark((function t(){var e,n,r;return Qv().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!==Q_(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=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n||e.getTrack(),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!==pb.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=t_(Qv().mark((function t(){var e,n,r,i=this;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),e=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,W_(this._beautyDefaultValue).forEach((function(t){i._beautyExt&&(i._beautyExt[t]=i._beautyDefaultValue[t])})),this._preTrack&&!e){t.next=8;break}return t.abrupt("return",new Sv((function(t,e){i.emit("reset-video-effect",t,e)})));case 8:null===(n=h._sdk)||void 0===n||n.startFrame(),null===(r=this._beautyExt)||void 0===r||r.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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r,i,o=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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 MT.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case MT.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case MT.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):Sv.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!==pb.STREAM_INDEX_SCREEN&&"number"==typeof r&&"number"==typeof i&&(null===(n=h._sdk)||void 0===n||n.setCanvasSize(r,i))}},{key:"isSupported",value:(n=t_(Qv().mark((function t(){var e,n;return Qv().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!==Q_(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=t_(Qv().mark((function t(){var e,n,r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,n=!1,h._loadingProcess||(h._loadingProcess=new Sv((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(WT){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(WT)}r=setTimeout((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}(vb);G_(ZT,"_loadingProcess",void 0),G_(ZT,"_sdk",void 0),G_(ZT,"_sdkUrl",void 0),G_(ZT,"_sdkSourceUrl",void 0),G_(ZT,"_sdkHash",""),G_(ZT,"_sdkAuthServer",""),G_(ZT,"_authFileUrl","");var HT=window.BytePlusRTCExtensions||{};HT.RTCBeautyExtension=ZT,HT.EffectBeautyMode=MT,window.BytePlusRTCExtensions=HT}));
|